RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
11
Description:
1.The Host terminal loop sends the Head CMD to the module of the "set
channel" command code 0xAB, and the sending process requires a query
whether received ACK (0x85).
2.If received CMD then stop the current Head ACK send.
3.The command code for the current command and the parameter data (8Byte) of
the belt.. Detailed reference “4.2.4 network channel ”.
4.Need to wait for the execution of the command, and determine whether the
execution is successful. You can judge the INT pin is high, or read the status
command, read to Data_flag=1 (0x81), to determine whether the module data
need to read.Detail 3.4.6 status register.
5.The Host end loop sends the read status command code CMD to the Head
0xA1 to the module, and the sending process requires a query if there is
received ACK (0x85).
6.If received CMD then stop the current Head ACK send.
7.Send 1 Dummy bytes for the subsequent status status.
8.Determine the status byte Data_flag=1, then read the data read the command,
or read the state repeatedly.
9.Host end loop sends the read data command code CMD to the Head 0xA2 to
the module, and the sending process is required to query if there is received
ACK (0x85).
10.If received CMD then stop the current Head ACK send.
11.Send 2 Dummy bytes for receiving length, high byte before. The received
length should be 0x03 because the return value of the setup channel
command is only 3 bytes. Detailed reference to the “ 4.2.4 set up network
channel command”.
12.After obtaining the value of length equal to 0x03, send Dummy 0x03 bytes
for receiving subsequent data. Of the received data, the first two bytes are
code code, and the last byte bit command is executed by the status code, and
then the command is executed successfully. Detailed reference to the “ 4.2.4
set up network channel command”.