Page
31 of 52
King Pigeon Communication Co., Ltd.
www.iot-solution.com
Wireless Data Acquisition System - LoRa Gateway BL280
Following message size
1
00 06H
Fill based on following byte size
Following message size
1
Device Address
1
01H
Device 01, range: 1-247, same as set
address
Function Code
1
04
Read input register
Starting
Address
of
Register
2
9C 40H
Range:
9C40H-9C46(40000-40006),
address definition is in below remark. Data
sequence: high byte is in front. For
example, 0010, the sequence is 00 10
Qty of Read Register
7
00 07H
Range: 0000H-0006H,
read corresponding gateway parameter.
Data sequence: high byte is in front. For
example, 0008, sequence is 00 08
Note: Gateway BL280 can support maximum 50 nodes. Up to 350 registers can be read. If more
than that, it’s invalid. Starting address of reading register is 40000(9C40H), the corresponding node
register is (n-1)*7+40000(n is device ID), for example if WT107 ID is 5, then read 7 consecutive data
from 40035
Return Message Format
Content
Byte Qty Data Sent Remark
Command Counter
1
00 00H
Same as data sent
Command Counter
1
Fixed character
1
00H
Fixed format, fixed character
Fixed character
1
00H
Fixed format, fixed character
Following message size
1
00 11H
Same as following message byte size
Following message size
1
01H
Device 01, same as data sent
Device Address
1
Function Code
1
04H
Read input register
Return Byte Size
1
0EH
Data: N / 8 + N % 8, N is the qty of register
to be inquired
Return Data
14
01 26
02 2B
00 44
01 90
00 0A
01 E0
01 F4H
From left to right, every 2 bytes represents
a gateway register parameters
0126H: 294, temperature 29.4
℃
;
022BH: 555, humidity 55.5 %RH;
0044H: 68, light intensity 68 lx;
0190H: 400, Co2 concentration 400 ppm
000AH: 10
,
TVOC concentration 10 ppb;
01E0H: 480, soil temperature 48.0
℃
;
01F4H: 580, soil humidity 50.0 %RH
(2) Function code 01H(0x01): read coil register (read node WT102 with 2 digital outputs)
Message Format sent from server master station:
Content
Byte Qty Data Sent Remark
Command Counter
1
00 00H
Every time a data package is sent, the
counter value will be added by 1
Command Counter
1
Fixed Character
1
00H
Fixed format, fixed character
Fixed Character
1
00H
Fixed format, fixed character
Following Message Size
1
00 06H
Same as following message byte size
Following Message Size
1