2014년 2월 6일 목요일

망고24R2 Marvell Bluetooth HID 테스트 방법



망고24R2 Marvell Bluetooth HID 테스트 방법 § Mango24 공부방전체공개2014.02.06 21:19
답변 0 
조회 13

(2450 Bluetooth HID Keyboard 테스트)

2450는 kernel에 hidp 가 설정 안되어 있습니다.

kernel 소스에서 체크
[*] Networking support ---> <*> Bluetooth subsystem support --->


# insmod mbtchar.ko
# insmod bt8787.ko
BT FW is active(0)
BT: FW already downloaded!

블루투스 키보드의 connect버튼을 누루면, LED가 깜빡깜빡입니다. 이때, 아래 명령을 수행합니다.

# hidd --search
Searching ...
Connecting to device DC:2C:26:E7:51:FD
input: ITON Bluetooth Wireless Keyboard as /devices/virtual/bluetooth/hci0/hci0:1/input3
generic-bluetooth 0005:0A5C:8502.0001: input: BLUETOOTH HID v1.1b Keyboard [ITON Bluetooth Wireless Keyboard ] on 00:22:58:6E:8B:AB

위 명령만 수행하면, 알아서 페어링을 수행합니다.

# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="gpio-keys"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/platform/gpio-keys.0/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=600 0 0 10000000

I: Bus=0019 Vendor=dead Product=beef Version=0102
N: Name="S3C24XX TouchScreen"
P: Phys=
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=mouse0 event1
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=3

I: Bus=0005 Vendor=0a5c Product=8502 Version=011b
N: Name="ITON Bluetooth Wireless Keyboard "
P: Phys=00:22:58:6E:8B:AB
S: Sysfs=/devices/virtual/bluetooth/hci0/hci0:1/input2
U: Uniq=DC:2C:26:E7:51:FD
H: Handlers=sysrq kbd event2
B: PROP=0
B: EV=12001b
B: KEY=10000 2000007 ff9f387a d941d7ff febeffdf ffefffff ffffffff fffffffe
B: ABS=f00 0
B: MSC=10
B: LED=1f

아래 명령을 수행하고 블루투스 키보드에서 아무키나 누르면 아래와 같이 HEX값을 보실수 있습니다.

# hexdump /dev/input/event2

0000000 828b 386d 466b 0005 0004 0004 000c 0007
0000010 828b 386d 46a0 0005 0001 0017 0001 0000
0000020 828b 386d 46bb 0005 0000 0000 0000 0000
0000030 828b 386d fbe7 0006 0004 0004 000c 0007
0000040 828b 386d fc19 0006 0001 0017 0000 0000
0000050 828b 386d fc2b 0006 0000 0000 0000 0000
dsc에서는 이렇게 밖에 테스트 할 수 밖에.. 없습니다. 아직 LCD가 없기 때문에,


2450에서, QT로 확인해봅니다.


동작화면, 실행되고, 키보드로 아무키나 입력하면 아래와 같이 입력 하실 수 있습니다.

댓글 없음:

댓글 쓰기