Smart LoRaWAN Bluetooth Gateway
7
/
25
3
115
242
115
115
115
115
242
115
115
4
242
242
242
242
242
242
242
242
242
5
242
-
242
242
242
242
242
242
242
POS FIELD
Bit
Name
Value
Description
15~0
POS
0~65535
Report interval, unit 5s. 0 means OFF. (Big endian) The
default value is 10s.
The gateway sends uplink messages containing beacons'
info or sensors' data to CS with this interval
For indoor or compact gateway, the Bluetooth keeps receiving all the time, and sends the beacon info list
at the end of the POS period. It only sends 15 Bluetooth beacons at a time, if more are received, other
beacons are stored in the buffer and sent through the following messages. If more beacons are received in
the next period, the new beacons are placed at the end of the buffer, the stored beacons received in the
previous period to be sent on a priority bias. If a few beacons are received but are not sent in the current
cycle, and received again in the next cycle, their information will be renewed and sent. Moreover, they will
not be placed at the tail of the message.
For outdoor type, to save power, the gateway starts Bluetooth receiving for several seconds at the
beginning of each reporting period. The default value is 3 seconds, and it is configurable. The receive period
and transmit period is different to reduce the send delay. In some situations, the outdoor gateway may be
configured to report every 30 minutes or one hour. If the gateway still sends the data at the end of the
report period, it will take hours to send all beacons. To solve this issue, the gateway checks the report
period every time after it sends the data, at the end of the period. If the report period is more than 5
minutes, it goes on to check the buffer, and if there are beacons left, it launches another transmission 5
seconds later till all beacons are sent.
HB FIELD
Bit
Name
Value
Description
7~0
HB
1~255
Heartbeat interval, unit 30s. Heartbeat can't be disabled.
The default value is 10, i.e., 5 minutes.
CRC FIELD
Bit
Name
Value
Description
15~0
CRC
CRC16 of previous fields with TYPE bits is set to 0, the
polynomial is
𝑥
16
+ 𝑥
15
+ 𝑥
2
+ 1
. CS only needs to
compare this data field with the one CS stored to judge
whether the configuration is changed.
The default value of gateway configuration depends on specific products.
4.4.2
Heartbeat
Bytes
1
1
1
2
1
1
2
Item
TYPE
VOL
RSSI
SNR
REV
CHGSTAT
CRC