RIOTEC CO. LTD R8001 用户手册

下载
页码 19
                                                                                                                                                                           
           
               
Version 1.4, 2012/10/4 
 
 
Byte 
Description 
Length of packet in bytes (including this byte) 
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 
0x0c 
Length of packet (12) 
0x00  Forward HID Report. 
0xa1 
HID Input Report Header 
0x01  Keyboard Report ID 
0x00  Modifier Keys (none pressed) 
5 0x00 
Reserved 
0x04  Keycode 1 ('A' key pressed on USA keyboard) 
0x00  Keycode 2 (not pressed) 
0x00  Keycode 3 (not pressed) 
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