
LoRa Data Logger
34
0x03 – Report each Enabled Input:
0x03
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: 0x03
Purpose: A LoRa node is Uploading the status (data) of all enabled input ports to network server.
Similar to 0x02, but due to payload limitation issue on low data rate connection, up to 4 separate
packets could be transmitted. One for all DIs/AIs, and one for each Modbus device.
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 packet1
“
030A1002010231021F3307”, Packet2 “030D500901030300FA03C8DB64D8” are
composed of
Command byte – 0x03
Packet1 Total Length – 0x0A
Port ID[1] – 0x10 /* Port DI-1 */; Data[1] Length – 0x02, Data[1] Value – 0x0102
Port ID[1] – 0x31 /* Port AI-1 */; Data[1] Length – 0x02, Data[1] Value – 0x1F33
Checksum - 0x07
Packet2 Total Length – 0x0D
Port ID[1] – 0x50 /* Port Modbus-1 */;
Data[1] Length – 0x09
Data[1] Value –0x01030300FA03C8DB64
Checksum - 0xD8