RIOTEC CO. LTD R8001 用户手册
Version 1.4, 2012/10/4
Byte
Description
0
Length of packet in bytes (including this byte)
1
Type of packet: 0 - Forward HID Report.
2 to n
The HID Report including header.
Below is an example packet for a Boot Keyboard Report:
Note: For devices that requiring PIN entry to be made by pressing the keys on the keyboard.
Keyboard reports must be sent using the HID Keyboard Boot Report format so that the HID library
intercept these packets and extract the keycodes during pairing.
Byte Value Description
0
0x0c
Length of packet (12)
1
0x00 Forward HID Report.
2
0xa1
HID Input Report Header
3
0x01 Keyboard Report ID
4
0x00 Modifier Keys (none pressed)
5 0x00
Reserved
6
0x04 Keycode 1 ('A' key pressed on USA keyboard)
7
0x00 Keycode 2 (not pressed)
8
0x00 Keycode 3 (not pressed)
9
0x00 Keycode 4 (not pressed)
10
0x00 Keycode 5 (not pressed)
11
0x00 Keycode 6 (not pressed)
Note:
To show/hide the virtual keyboard on an iOS device after connection in HID mode. Host must send
the particular package composed of 0x05 0x00 0xa1 0x02 0x01 0x05 0x00 0xa1 0x02 0x00.
Page.
13