LoRa Node
41
0x02 – Report all Enabled Inputs:
0x02
Total
length
Port ID[i]
Data[i]
length
Data[i]
value[]
…
Checksum
1 byte
1 byte
1 byte
1 byte
1 byte * n
1 byte
Command: 0x02
Purpose: A LoRa node is Uploading the status (data) of all enabled input ports to network server.
Port ID[i]: Identifier for each input port. Only those enabled input ports will appear in the payload.
DI-1
0x10
DI-2
0x11
AI-1
0x30
AI-2
0x31
AI-3
0x32
Modbus-1
0x50
Modbus-2
0x51
Modbus-3
0x52
Data[i] Length: the data length of the corresponding input port.
Data[i] Value: the data of the corresponding input port.
For example, the packet
“
020E3002000031020000320200003D” is composed of
Command byte – 0x02
Total Length – 0x0E
Port ID[1] – 0x30 /* Port AI-1 */
Data[1] Length – 0x02
Data[1] Length – 0x0000
…
Checksum - 0x3D