Page 39 of 39
King Pigeon Hi-Tech. Co., Ltd.
Ver 1.0
GSM/SMS/GPRS/3G/4G/Ethernet/Cloud
LoRa Gateway
Receive device return message format
Send content
Bytes
Send Data
Remark
Command counter
1
00 00H Start
Every time send out a packet, the value of the counter is
incremented by1.
Command counter
1
Fixed Digital
1
00H
Fixed format, fixed character
Fixed Digital
1
00H
Fixed format, fixed character
SMS content length
1
00 06H
Fill in according to the bytes in the following content
SMS content length
1
Device Address
1
01H
Device No. 01, range: 1-247, subject to the set address
Function Code
1
04
Read input register
Start register
address
2
9C 40H
Range: 9C40H-9C43 (40000-40003), refer to the above
corresponding explanation ofthe address.Datatransmissionorder: high
byte first, such as 0010, then order: 0010
Read register Numbers 3
00 03H
Range: 0000H-0004H, read the corresponding master
parameters, data transmission order: high byte is first, such as 0008,
then orderly: 00 08.
Send data
Bytes
Send data
Remark
Command
counter
1
00 00H
The device address assigned by the platform must be the same
as the address set by the configuration software.
Command
counter
1
Fixed Digital
1
00H
Fixed format, fixed character
Fixed Digital
1
00H
Fixed format, fixed character
SMS
content
length
1
00 0BH
Fill in according to the bytes in the following content
SMS
content
length
1
Device address
1
01H
01 device The device address assigned by the platform must be
the same as the address set by the configuration software.
Function Code
1
04H
Read input register
Return
bytes
length
1
06H
Data
:
2N
,
N is query registers number
Return data
6
0126 024D
0022H
From left to right, every 2 bytes represents a gateway register
parameter, the low byte is first, such as 00 01H, then the order:
01 00H. Specific explanation:
0126H:294, temperature: 29.4C
024DH: 589, humidity: 58.9% RH
0022H:34, voltage: 3.4V