SDM630MCT-LoRaWAN User Manual
Zhejiang Eastron Electronic Co.,Ltd.
Add: No.1369. Chengnan Road, Nanhu District, Jiaxing City, Zhejiang, China 314001.
- 3 -
The format of standard LoRaWAN is shown below:
The following description of the text is defined the data in the segment of
FRMPayload
region in
LoRaWAN protocol. The software in PC only need to get this part of data from gateway. According
to the following protocol definition to parse the data.
The data format and encoding of meter communication protocol are modified based on the
Modbus ASCII transmission mode. Remove the start and end characters from the Modbus ASCII
transmission mode and change LRC validation to CRC validation.
Encoding of data: communication data is encoded with ASCII, and each byte of data is sent with
two ASCII characters.
E.g.: a byte data 0x5b is encoded as two characters: 0x35 and 0x62 (ASCII code 0x35= "5", 0x62=
"b")
Command format definition:
I: The data format of the gateway sending the copy command:
Reserved
Function
Code
The first Address of The
Register to Read Data
The Number of Registers
to Read Data
CRC Check
Codes
1byte
1byte
2byte
2byte
2byte
Note: the reserved bit is fixed as 0x01
II: the data format returned by the meter after receiving the copy command:
Reserved
Function
Code
The Length of
Data Returned
Specific Data Returned by The
Meter
CRC Check
Codes
1byte
1byte
1byte
N byte
2byte
Note: the reserved bit is fixed as 0x01
III: Note: the above commands need to be ASCII, so 1byte data will have 2 characters.
E.g.
1). Suppose to read the current data of the meter L1, the data sent by the gateway is the ASCII
coded data as shown in the following table: