EasyManua.ls Logo

WiT WTVB01-BT50 - Host Communication and Control; Reading Register Packets; Setting Instructions

Default Icon
17 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Example55 61 11 00 16 00 02 00 02 00 00 00 01 00 E6 0A 43 00 47 00 0A 00 25 00 25 00 25 00
HZX[15:0]=(((short)HZXH <<8)|HZXL) = 0x0025 = 37(Hz)
HZY[15:0]=(((short)HZYH <<8)|HZYL) = 0x0025 = 37(Hz)
HZZ[15:0]=(((short)HZZH <<8)|HZZL) = 0x0025 = 37(Hz)
5.3 Host computer to module
Read register packet
The single return packet needs to send the register reading instruction first. The
instruction format is as follows:
FF AA 27 XX 00
XX refers to the number of the corresponding register. The number of the register is
referred to. The example of sending instructions is as follows:
function
instruction
Read temperature
FF AA 27 40 00
After sending this instruction, the module will send back a data packet starting with
0x55 0x71, which contains the data corresponding to the start register address, the
start register address and the following 7 register data (8 registers are fixed to be
uploaded). The format of the return data is as follows:
Start register (2Byte) + Register data (16Byte,8 registers)
baotou
Flag bit
Start
register
address
low
Start
register
address
high
Register
1 data
low
The
number
of register
1 is high
......
Register 8
data low
Register 8
data high
0x55
0x71
RegL
RegH
0xNN
0xNN
......
0xNN
0xNN
Note: 0xNN is the specific value received, with the low byte first and the high byte
second.
Set instruction description
function
instruction
Unlock (useful for 10 seconds)
FF AA 69 88 B5
set
FF AA register address Register value Low
register value high
save
FF AA 00 00 00

Related product manuals