Page
29 of 52
King Pigeon Communication Co., Ltd.
www.iot-solution.com
Wireless Data Acquisition System - LoRa Gateway BL280
Qty of Read Register
7
00 07H
Range:0000H-0006H,read corresponding
gateway parameter, data is sent in
sequence. For example, 0008, sequence:
00 08
CRC Check
2
9E 4CH
Check according to actual requirement,
low byte is in front
Note: Gateway BL280 supports max 50 nodes. Up to 350 register data can be read. If more than
that, data reading will be invalid. Reading register starting address is 40000(9C40H). The
corresponding node register is (n-1)*7+40000 (n is device ID). If WT107 ID is 5, then it’s needed to
read 7 data consecutively starting from 40035
Return Message Format:
Content
Byte Qty Data Sent Remark
Device Address
1
01H
Device 01, must be the same as data sent
Function Code
1
04H
Read input register
Returned Byte Size
1
0EH
Data: 2N, N is the number of viewing register
number
Returned Data
14
01 31
02 44
00 C8
01 9A
00 06
01 C2
01 F4H
From left to right, every 2 bytes refer to one
gateway register parameter
0131H
:
305, temperature 30.5 C;
0244H
:
580, humidity 58.0 %RH;
00C8H
:
200, light intensity 200 ILL;
019AH
:
410, Co2 concentration 410 ppm;
0006H
:
6, TVOC concentration 6 ppb;
01C2H
:
450, soil temperature 45.0 C;
01F4H
:
580, soil humidity 50.0 %RH.
CRC Check
2
B3 B6H
Check according to actual requirement, low
byte is in front
(2) Function code 01H(0x01): read coil status (read WT102, 2 DO for control output)
Message Format sent from server master station:
Content
Byte Qty Data Sent Remark
Device Address
1
01H
Device 01, range: 1-247, same as the set
address
Function Code
1
01H
Read coil status
Start Address of Register 2
00 00H
Read 2 channel digital output status of
node WT102
with ID 1. For details,
please refer to below remark.
QTY of Read Register
10
00 0AH
Range: 0000H-0009H, read 2 channels
digital output status of node WT102 with
ID 1-5
CRC Check
2
BC 0DH
Check according to actual status. Low
byte is in front.
Note: Maximum 100 registers of digital output can be read. If more than that, it will be invalid. Each
WT102 has 2 digital output and its Modbus address relation is(ID-1)*2. If the starting address of
node WT102 with ID 1 is 0, then the starting address of node WT102 with ID 2 is 2.
Return Message Format: