Programming Manual

i480e&i480e-MD2 Programming Manual
91 / 139
Mouse left key released:
AT+B HIDIRPT 07,\X02\X00\X00\X00\X00\X00\X00\r
Mouse right key pressed down:
AT+B HIDIRPT 07,\X02\X02\X00\X00\X00\X00\X00\r
2. If CBSTARTEX is sent after the HID connection is established, the HID
mouse X, Y values are absolute positions. It represents to where it
moves.
If CBSTARTEX isn’t sent after the HID connection is established, the
HID mouse X, Y values are relative positions. It represents to where it
drifts.
3. When sending control commands (volume, back, home), it needs to
send press and release commands together:
Volume+: AT+B HIDIRPT 02,\x03\x01\rAT+B HIDIRPT 02,\x03\x00\r
Volume-: AT+B HIDIRPT 02,\x03\x02\rAT+B HIDIRPT 02,\x03\x00\r
Back: AT+B HIDIRPT 02,\x03\x04\rAT+B HIDIRPT 02,\x03\x00\r
Home: AT+B HIDIRPT 02,\x03\x08\r AT+B HIDIRPT 02,\x03\x00\r
(Many mobile phones don’t support this feature)
If using AT+B SPRO command to only enable HID mouse function, it
needs to send input as follows: \x0a\x00\xa1[(raw_data)]. Under this
circumstance, the module will not return the indication.
The HIDBIRPT command is used to send an input report sent when the module
is in the boot mode.
Command
AT+B HIDBIRPT [len], [(raw_data)]
Indication
Succeeded: AT-B HIDBIRPT 0
Failed: AT-B HIDBIRPT 1
Parameter
len
Data length, equals to 7.
raw_data
Input X/Y coordinates, mouse wheel, press. Little endian.
Format definition as follows:
Repor
t ID
(Fixed
as
0x02)
Button1-3(bit0-2),(bit3-
bit7 is 0)
X -
8bit
Y -
8bit
Wheel
- 8bit
Barrot Confidential