EH-MA41 User Guide
22-26
5.3.3.1. Description:
This command is used to query the state of HID channel.
5.3.3.2. Syntax:
Synopsis:
AT+IS<CR><LF>
5.3.3.3. Examples:
Ex. 5.89. To query the state of HID channel:
AT+IS<CR><LF>
query the state of HID channel
.
IS=01,00189600ABCD<CR><LF>
the HID channel of Bluetooth module is now connecting to the remote HID
host which address is 00:18:96:00:AB:CD.
5.3.4. KR
—Send HID report to remote HID host
5.3.4.1. Description:
This command is used to send a HID report to the remote HID host.
5.3.4.2. Syntax:
Synopsis:
AT+KR{=HidReport}<CR><LF>
5.3.4.3. Parameter Description:
Parameter
Description
Mandatory
Comments
Hid Report
The HID report needs to be sent to
HID host.
M
5.3.4.4. Report Format and Examples:
Start Report Id Data
(1Byte) (1Byte) (8 Bytes for Keyboard Report and Joystick/Gamepad, 2 Bytes for Consumer Report, 5 Bytes for Mouse)
Notes:
In Proxy mode, all of the data field in HID report should be given in ASCII characters and separated by comma,
while in Bypass mode, all of the data field should be given in raw data (binary) and no separator is needed. About
the Proxy mode and Bypass mode, please refer to section 5.1.19 and 5.1.29.
1.
Keyboard Report:
A1 01 Modifier 00 ScanCode1 ScanCode2 ScanCode3 ScanCode4 ScanCode5 ScanCode6
The
Modifier
byte is a bit mask interpreted as shown. For example, you can use 02h or 20h to turn a lower case
‘a’ into
an upper case
‘A’.
Bit Mask of Modifier Byte in Keyboard Report
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Right Right Right Right Left Left Left Left
GUI Alt Shift Ctrl GUL Alt Shift Ctrl
The
ScanCode
is defined by the USB HID Spec.
Ex. 5.90. If the key A and the Right Shift are pressed, the keyboard report should be:
A1 01 20 00 04 00 00 00 00 00
Ex. 5.91. If all of the pressed keys have been released, the keyboard report should be:
A1 01 00 00 00 00 00 00 00 00
Ex. 5.92. To send a keyboard report to HID host:
AT+KR=A1,01,00,00,04,00,00,00,00,00<CR><LF>
send a keyboard report to the HID host. The key A is pressed.
OK<CR><LF>
response from the module to indicate the command is adopted.