Programming Manual

i480e&i480e-MD2 Programming Manual
90 / 139
Command
AT+B HIDIRPT [len], [(raw_data)]
Indication
Succeeded: AT-B HIDIRPT 0
Failed: AT-B HIDIRPT 1
Parameter
len
Data length, equals to 7.
raw_data
Input X/Y coordinates, mouse wheel, press. Little endian.
Format definition as follows:
Home, back, volume+, volume- buttons.
Format definition as follows.
Repor
t ID
(0x03)
Control
(01: volume +
02: volume -
04: back
08: home
10: menu)
Note
1. When the module is in report mode, it uses this command to send
mouse input information. The first field’s length is 1byte. Bit 0~2
represents mouse press status; bit 3~7 are 0. The second and third
fields are 2 bytes, representing X/Y coordinate drift values. The forth
field’s length is 1 byte, representing mouse wheel value. The X/Y
values are between -2048 to 2047. For instance, AT+B HIDIRPT
07,\x02\x00\x50\x00\x50\x00\x00\r” represents the mouse position
drift is 0x0050(X) / 0x0050(Y).
Other examples:
Mouse left key pressed down:
AT+B HIDIRPT 07,\X02\X01\X00\X00\X00\X00\X00\r
Report
Button1-3(bit0-2),(bit3-bit7
X -
Y -
Wheel
ID
is 0)
16bit
16bit
- 8bit
(Fixed
as
0x02)
Barrot Confidential