LANSITEC 100-13248 User manual

Smart LoRaWAN Bluetooth Gateway
1/ 25
Document Number: 990-01201
Rev. 1.73 11/2021
1. General Introduction
The Bluetooth Gateway is designed based on Bluetooth and LoRa technology. With the advanced LoRa
technology and built-in Bluetooth module, the Bluetooth gateway receives the Bluetooth beacon signals
and reports to the LoRa gateway. The parameter settings, such as the heartbeat period, and LoRa work
mode are adjustable as per customers' requirements.
This document applies to the following products:
Name
Product Description
Indoor Bluetooth Gateway
Bluetooth 5.0, 120 x 120 x 31 mm, 5V, triangular
Compact Bluetooth Gateway
Bluetooth 5.0, 97 x 62 x 7 mm, 600 mAh, 5V
Solar Bluetooth Gateway
Bluetooth 5.0, built-in antenna, solar, 150 x 90 x 60 mm, 5300 mAh
Macro Bluetooth Gateway
Bluetooth 5.0, build-in antenna, 150 x 90 x 60 mm, 38000 mAh
2. Abbreviation
ABP: Activation by Personalization
BLE: Bluetooth Low Energy
CRC: Cyclic Redundancy Check
LoRa: Long Range modulation technique
LoRaWAN: LoRa Wide Area Network
OTAA: Over the Air Activation
RSSI: Received Signal Strength Indicator

Smart LoRaWAN Bluetooth Gateway
2/ 25
3. Product Specifications
Table 1: Product Specifications
LoRaWAN
Protocol
Version 1.0.2B
Activation Mode
OTAA or ABP
LoRa Frequency
US915, AU915, EU868, EU433, AS920-923, AS923-925,
RU864, ID920, KR920, IN865, KZ865, CN470, CN470-Ali
LoRa TX power
0 to 20dBm
LoRa Sensitivity
-139dBm @SF12, BW 125kHz,
434MHz/470MHz
-137dBm @SF12, BW 125kHz,
868MHz/915MHz
LoRa Communication Distance
>1.5km in the urban area
Encryption
AES128
Bluetooth
Protocol
Bluetooth 5.0
TX Power
4, 0, -4, -8, -12, -16, -20dBm
Sensitivity
-96dBm
Receiving Range
50m
System and Mechanical
Parameter
Indoor
Bluetooth Gateway
Compact
Bluetooth
Gateway
Solar
Bluetooth
Gateway
Macro
Bluetooth
Gateway
Product Picture
Operating
Current
6mA @ Bluetooth receiving
Max. 140mA @ 20dBm
Operating
Temperature
-40℃~ + 70℃
-10℃~ + 60℃
-40℃~+ 70℃
-40℃~+ 70℃
Charging
Temperature
N/A
0℃~ + 40℃
-20℃~+ 60℃
N/A
Storage
Temperature
-50℃~+ 85℃
-40℃~ + 85℃
-50℃~+ 85℃
-50℃~+ 85℃

Smart LoRaWAN Bluetooth Gateway
3/ 25
Operating
Humidity
5% ~ 95%
Battery
Connected to
power source
Li-ion 600mAh
rechargeable
5300mAh,
Lithium
rechargeable
2 x 19,000mAh,
lithium thionyl
chloride non-
chargeable
battery
Power
DC 5V/1A
DC 5V/1A
Solar-powered
Do NOT charge
this product and
battery
Dimension
120 x 120 x 31 mm
97 x 62 x 7 mm
150 x 90 x 62 mm
150 x 90 x 60 mm
4. Application Information
4.1 Function
The gateway supports both OTAA and ABP mode. The indoor gateway and compact gateway work on
class C mode while outdoor or macro gateway work on class A mode. The data rate is limited from DR3 to
DR5 to transmit 115 bytes payload at a time. DevEUI, AppEUI, and AppKey, or DevAddr, NwkSKey, and
AppSKey are stored in the gateway and are necessary for joining a network. Please find DevEUI or
DevAddr labeled at the back of the device. Lansitec helps to configure these parameters before shipping,
if required. After power is turned on and after it joins the LoRa network, the gateway sends a registration
message that includes the gateway's current parameters setting to the Customer Server (CS).
The gateway reports the heartbeat message to CS periodically. The duty cycle is configurable by
commands from CS. Coordinate acquisition and report period depends on the Bluetooth receiving results.
According to LoRaWAN specification, the downlink response time is decided by the uplink duty cycle in
Class A. The heartbeat period is configurable to be an integral multiple of 30 seconds. The default HB
period is 5 minutes. Heartbeat message also contains status information of the gateway. CS can use it to
monitor the gateway.
The Bluetooth gateway forwards Bluetooth beacons (UUID F2-A5-2D-43-E0-AB-48-9C-B6-4C-4A-83-00-
14-67-20), tags or bracelets received and forwards the corresponding information to LoRaWAN gateway.
If it receives a tag multiple times in one Bluetooth receiving duration, it only reports the latest one.
Please refer to:
990-00170 "B-Fixed® PERSONNEL& ASSET TRACKING SOLUTION" to find how to design and develop your
tracking system.
4.2 Application Scenarios
The gateway follows the general rules below:
When a registration request is received from the gateway,
-If CS only wants the gateway to work with default parameters, CS ignores the registration
message and waits for the periodically report.

Smart LoRaWAN Bluetooth Gateway
4/ 25
-Or CS records the first-time configuration and acknowledges the request. If CS contains
some history configuration of the gateway and mismatch occurrs, CS should send the new
configuration to the gateway. Thereafter, the gateway updates and starts working with the
new parameters.
After registration, the user can change the configuration of the gateway. CS needs to save the new
parameters and CRC16 of the parameters.
In case the gateway resets after registration, or when receiving periodical heartbeat message,
CS needs to check if any configuration mismatch occurrs. If necessary, CS should send the new
configuration to the gateway in the next downlink window.
4.3 On/Off and LED Status
4.3.1 Indoor Bluetooth Gateway
1) Turn on: Plug in the charger, the red LED flashes four times, while the green LED is on.
Then the green LED is off, and the red LED is on.
2) Turn off: Unplug the charger
3) Joining the network: The green LED is on.
4) LoRa communication: The green LED flashes once with every LoRa communication.
4.3.2 Compact Bluetooth Gateway
1) Turn on: Long press the button for four seconds; the red LED flashes four times while the green LED is
on.
2) Turn off: Long press the button for four seconds, the red LED is “on”for four seconds and then turns
off.
3) Reboot: LED status is the same as turning on;
4) Joining the network: The green LED is on.
5) After joining the network, Press the button once:
a) Green LED is on: Successfully joined.
b) Green LED is off: Joining failed, or the gateway is in off state.
6) In ON state, press the button three times, the green LED blinks three times, the gateway rejoins the
network.
7) Charge: red LED flashes every second.
8) Charge done: solid red LED.
4.3.3 Macro Bluetooth Gateway & Solar Bluetooth Gateway
1) Turn on: Long press the power on button 3-5 seconds until the gateway beeps once.
Find the power button on the sidebar, labeled with Power On/Off label
2) Turn off: Long press the power on button 3-5 seconds until the gateway beeps 3 times
3) Joining the network: no sign, please check the packets in the network server

Smart LoRaWAN Bluetooth Gateway
5/ 25
4.4 Uplink Message
Table 2: Uplink Message Table
Message
Type
Name
Description
0x1
Registration
The gateway will send this message once when joined the LoRa
network successfully or when a specific command request downlink
message is received.
0x2
Heartbeat
The gateway will periodically send this message to confirm the
status of the Lora network connection.
0x8
Beacons
A list of beacons received
Beacon’s UUID must be F2-A5-2D-43-E0-AB-48-9C-B6-4C-4A-83-
00-14-67-20.
0x9
Bracelet
A list of bracelets received
0xA
Light Perception
Light sensors received
0xB
G-Sensor
Acceleration sensors received
0xD
Message List
A combination of beacons received
0xF
Acknowledgment
Processes result of any downlink message that needs to be
acknowledged.
4.4.1 Registration
Bytes
1
1
1
1
2
1
2
Item
TYPE
SMODE
POWER
CFG
POS
HB
CRC
TYPE FIELD (the most significant byte)
Bit
Name
Value
Description
7~4
TYPE
0x1
Message type. CS uses it to identify different uplink
messages.
Bit7 is the significant bit.
3
ADR
0: OFF
1: ON
ADR (Adaptive Data Rate) status. The default value is
OFF.
2~0
MODE
0x01~0x07
Current working scheme should be one of SMODE.
0x1: AU915
0x3: CN470
0x4: AS923
0x5: EU433
0x6: EU868
0x7: US915
SMODE FIELD
Bit
Name
Value
Description
7~0
SMODE
0x01: AU915
The data schemes supported by the gateway

Smart LoRaWAN Bluetooth Gateway
6/ 25
0x04: CN470
0x08: AS923
0x10: EU433
0x20: EU868
0x40: US915
This field is reserved by Lansitec and will be configured
before shipping.
Default value:
European market: EU868
China market: CN470
Southeast Asian market: AS923
American market US915.
Currently, it only supports one mode.
POWER FIELD
Bit
Name
Value
Description
7~3
POWER
0~20
LoRa transmit power (dBm). The default value depends on
the gateway working mode, and it's the largest allowed.
For example, if the mode is EU868, the default value of
POWER should be 14 dBm. For detailed setting
information, please refer to the LoRa TRANSMITTING
POWER table.
2~0
Reserved
0x0
Reserved for future use.
Table 3: LoRa TRANSMITTING POWER (dBm)
EU868
US915
AU915
CN470
AS923
KR920
IN865
STE920
16
20
20
20
16
14
20
20
14
18
18
18
14
12
18
18
12
16
16
16
12
10
16
16
10
14
14
14
10
8
14
14
8
12
12
12
8
6
12
12
6
10
10
10
6
4
10
10
4
8
8
8
4
2
-
-
2
6
6
6
2
-
-
-
CFG FIELD
Bit
Name
Value
Description
7~4
DR
3~5
Data Rate (DR3~DR5). The default value is DR3. The
gateway works in this data rate. The data rate is limited
from DR3 to DR5. ADR is NOT supported.
Please contact us if you want to use DR0 ~ DR2.
3~0
Reserved
0x0
Reserved for future use.
Table 4: LoRa Data Rate and Payload Length Limitation Map (bytes)
DR
EU868
US915
EU433
AU915
CN470
AS923
KR920
IN865
STE920
0
51
11
51
51
51
51
65
51
51
1
51
53
51
51
51
51
151
51
51
2
51
126
51
51
51
51
242
51
51

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 . 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

Smart LoRaWAN Bluetooth Gateway
8/ 25
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0x2
Message type, CS uses it to identify different uplink
messages.
3~0
Version
1
The version of the message type, the current version is 1.
VOL FIELD
Bit
Name
Value
Description
7~0
VOL
Macro
Gateway
0~250
Unit 0.01v, Base 2.50, plus this offset *0.01.
This is the Voltage of the battery. if VOL=70, the Voltage
value is 2.5 + 70* 0.01=3.2v.
Note: If the battery's voltage is lower than 3.2v, it is
suggested to change the battery ASAP.
Solar &
Compact
Gateway
0~100
Battery level in percentage. It indicates how much it is
left.
(Unit: %)
Indoor
Gateway
This field remains 0.
RSSI FIELD
Bit
Name
Value
Description
7~0
RSSI
0~160
The downlink Received Signal Strength Indication,
detected and calculated by the gateway.
(unit: -1dBm)
SNR FIELD
Bit
Name
Value
Description
15~0
SNR
-3000~3000
Signal Noise Ratio, *0.01, i.e., 30.00~30.00
CHGSTAT FIELD
Bit
Name
Value
Description
7~0
CHGSTAT
Compact &
Solar Gateway
0x0:
Not charging
0x5: Charging
0x6: Charging completed
Status of charging
Macro Gateway
This field remains 0x0, and can't be changed.
Indoor Gateway
This field remains 0x0, and can't be changed.
CRC FIELD

Smart LoRaWAN Bluetooth Gateway
9/ 25
Bit
Name
Value
Description
15~0
CRC
The same CRC16 as calculated in the register message. It
can be used for the server to check for a configuration
mismatch.
4.4.3 Beacon
This chapter describes the Bluetooth beacons that broadcast major and minor instead of MAC.
Bytes
1
2
2
1
2
2
…
N
Item
TYPE
MAJOR
MINOR
RSSI
MAJOR
MINOR
…
TOFF
Byte0
Byte1
…
B0
B1
B2
B3
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0x8
Message type, CS uses it to identify different uplink
messages.
3~0
LENGTH
M (1~15)
The number of beacons transmitted in this message
The gateway can receive 100 beacons within one second.
It transmits maximum 15 beacons in one message. The
rest are transmitted 15 by 15 in the next cycle if there are
more than 15.
MAJOR FIELD
Bit
Name
Value
Description
15~0
MAJOR
Short
Major of Bluetooth beacon.
MINOR FIELD
Bit
Name
Value
Description
15~0
MINOR
Short
Minor of Bluetooth beacon.
RSSI FIELD
Bit
Name
Value
Description
7~0
RSSI
Integer
Received Signal Strength Indication of the beacon; the
server utilizes it to calculate the distance.
This value -256 = the real RSSI
Example: the value is 170, the real RSSI =170 - 256 = -86
dBm
TOFF FIELD
Bytes
Name
Value
Description
N
TMOFF
Time offset means the delta between the time every

Smart LoRaWAN Bluetooth Gateway
10 / 25
beacon received and the time message sent.
N = (M+1) / 2
Byte0: bit7 bit6 bit5 bit4 | bit3 bit2 bit1 bit0
Beacon0 | Beacon1
Byte1: bit7 bit6 bit5 bit4 | bit3 bit2 bit1 bit0
Beacon2 | Beacon3
…
Example: If there are 4 beacons in the message, then M
will be 4, and N will be 2. Suppose the message is sent at
15:04:27, the beacon1 is received at 15:04:25, beacon2 at
15:04:23, beacon3 at 15:04:26, beacon4 at 15:04:27, then
TMOFF should be 0x2410.
This field is designed for precise positioning, and if multi
gateways receive a beacon at the same time, the server
can calculate the distance between the beacon and
gateway, and then calculate the position of the beacon.
4.4.4 Bracelet
Bytes
1
6
1
2
1
1
1
2
1
1
..
N
Item
TYPE
MAC
HB
STEPS
BAT
SYSP
DIAP
CALO
RSSI
SOS
..
TOFF
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0x9
Message type, CS uses it to identify different uplink
messages.
3~0
LENGTH
1~6
The number of bracelets transmitted in this message
MAC FIELD
Bit
Name
Value
Description
47~0
MAC
6 bytes
MAC address of the bracelet
HB FIELD
Bit
Name
Value
Description
7~0
HB
Integer
Heartbeat
Records the heartbeat rate of the person who wears the
bracelet.
STEPS FIELD
Bit
Name
Value
Description
15~0
STEPS
Short
Steps amount in one day
BAT FIELD

Smart LoRaWAN Bluetooth Gateway
11 / 25
Bit
Name
Value
Description
7~0
BAT
0~100
Battery level in percentage
SYSP FIELD
Bit
Name
Value
Description
7~0
SYSP
Integer
Systolic Pressure
DIAP FIELD
Bit
Name
Value
Description
7~0
DIAP
Integer
Diastolic Pressure
CALO FIELD
Bit
Name
Value
Description
15~0
CALO
Short
Number of calories consumed
(Unit: Calorie)
RSSI FIELD
Bit
Name
Value
Description
7~0
RSSI
Integer
Received Signal Strength Indication of the bracelet, the
server utilizes it to calculate the distance.
This value - 256 = the real RSSI
Example: the value is 170, the real RSSI =170-256
= -86 dBm
SOS FIELD
Bit
Name
Value
Description
7~0
SOS
Integer
SOS (Not supported currently)
TOFF field
Refer to 4.4.3.
4.4.5 Light perception
For Bluetooth beacons that detect and report light change.
Bytes
1
6
2
1
1
…
N
Item
TYPE
MAC
LIGHT
BAT
RSSI
…
TOFF
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0xA
Message type, CS uses it to identify different uplink
messages.
3~0
LENGTH
M (1~10)
The number of light sensors transmitted in this message

Smart LoRaWAN Bluetooth Gateway
12 / 25
MAC FIELD
Bit
Name
Value
Description
47~0
MAC
6 Bytes
MAC address
LIGHT FIELD
Bit
Name
Value
Description
15~0
LIGHT
Short
Intensity of light.
(Unit: Lux)
BAT FIELD
Bit
Name
Value
Description
7~0
BAT
1~100
Battery left (Unit: %)
RSSI FIELD
Bit
Name
Value
Description
7~0
RSSI
Integer
Received Signal Strength Indication of the sensor, the
server utilizes it to calculate the distance.
This value - 256 = the real RSSI
Example: the value is 170, the real RSSI =170-256
= -86 dBm
TOFF FIELD
Refer to 4.4.3
4.4.6 G-sensor
For Bluetooth beacons that detect and report movement.
Bytes
1
6
2
2
2
1
1
…
N
Item
TYPE
MAC
X
Y
Z
BAT
RSSI
…
TOFF
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0xB
Message type, CS uses it to identify different uplink
messages.
3~0
LENGTH
M (1~7)
The number of g-sensor beacons transmitted in this
message
MAC FIELD
Bit
Name
Value
Description
47~0
MAC
6 Bytes
MAC address
X FIELD
Bit
Name
Value
Description
15~0
X
Short
Accelerometer in X-axis.

Smart LoRaWAN Bluetooth Gateway
13 / 25
-2 ~ 2
(Unit: g)
Y FIELD
Bit
Name
Value
Description
15~0
Y
Short
-2 ~ 2
Accelerometer in Y-axis.
(Unit: g)
Z FIELD
Bit
Name
Value
Description
15~0
Z
Short
-2 ~ 2
Accelerometer in Z-axis.
(Unit: g)
BAT FIELD
Bit
Name
Value
Description
7~0
BAT
1~100
Battery
(Unit: percentage)
RSSI FIELD
Bit
Name
Value
Description
7~0
RSSI
Integer
Received Signal Strength Indication of the sensor, the
server utilizes it to calculate the distance.
This value - 256 = the real RSSI
Example: the value is 170, the real RSSI =170-256
= -86 dBm
TOFF FIELD
Refer to 4.4.3
4.4.7 Message List
This message contains at least two kinds of messages described in 4.4.3, 4.4.4, 4.4.5, 4.4.6.
Bytes
1
1
N
…
Item
TYPE
MSGTYPE
MSGBODY
…
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0xD
Message type, CS uses it to identify different uplink
messages.
3~0
LENGTH
M (1~4)
The number of transmitted message types in this message
MSGTYPE
Bit
Name
Value
Description
7~4
MSGTYPE
Message type:

Smart LoRaWAN Bluetooth Gateway
14 / 25
1: Beacon
2: Bracelet
3: Light perception
4: G-Sensor
3~0
LENGTH
1~15
Message length
MSGBODY
Bit
Name
Value
Description
N
MSGBODY
Refer to chapters 4.4.3, 4.4.4, 4.4.5, 4.4.6 for the details.
Below is the priority of the devices to be sent.
BLE Wristband
100-00136
G-Sensor Bluetooth tag
100-02198
Light alarm Bluetooth tag
100-02196
Bluetooth Beacon
100-02195
Figure 1: Beacon List
The gateway sends information of 115 bytes at one time.
Below is an example of the beacon message transmit priority. It shows how many cycles are needed to
send all 15+15+5+6. And these devices go out of the range of gateway after they all are received. (it takes
1s for the gateway to receive the information from all these devices.)
Priority
Bluetooth
Wristband
100-00136
G-Sensor
Bluetooth tag
100-02198
Light alarm
Bluetooth tag
100-02196
Bluetooth
Beacon
100-02195
16.5 bytes, note 1
14.5 bytes
10.5 bytes
5.5 bytes
Quantity
Received
15
15
5
6
LoRa Transmit
cycle 1 (message
to be sent)
6, note 2
1, note 3
0
0
LoRa Transmit
cycle 2
0
7 (102 bytes in
all), note 4
1 (11 bytes), note 5
0
LoRa Transmit
cycle 3
1
3rd place in this
cycle, note 8
0
note 9
4
1st place in this
cycle, note 6
6
2nd place in this
cycle, note 7
LoRa Transmit
cycle 4
6
1st place in this
cycle
1
2nd place in this
cycle
0
0

Smart LoRaWAN Bluetooth Gateway
15 / 25
LoRa Transmit
cycle 5
1
2nd place in this
cycle
6
1st place in this
cycle
0
0
LoRa Transmit
cycle 6
1
0
0
0
Note 1.
0.5 byte is 4 bits. It is the time offset.
Refer to the description in the TOFF field.
Note 2.
115-6*16.5=16 bytes, 16 is not enough for one wristband information (16.5 bytes).
In cycle 1, Bluetooth Wristband has higher priority.
Note 3.
16 bytes are enough for one G-sensor tag message (15 bytes).
Note 4.
14.5*6+15=102 bytes. There are 115-102=13 left and it's not enough for one more G-Sensor Bluetooth
tag message.
In cycle 2, G-Sensor Bluetooth tag has higher priority.
Note 5.
13-11=2 bytes. 13 bytes left is enough for one more light alarm Bluetooth tag message. The 2 bytes
left is not enough for any more messages.
Note 6.
4*10.5+1*11=53 bytes
In cycle 3, Light alarm Bluetooth tag has higher priority.
Note 7.
5.5*6=33 bytes
In cycle 3, Bluetooth Beacon message is sent after the light alarm Bluetooth tag.
Note 8.
115-53-33=29 bytes. It is enough for one Bluetooth Wristband message (17 bytes).
In cycle 4, Bluetooth Wristband is sent after Bluetooth beacon message.
Note 9.
29-17=12. It is not enough for one G-Sensor Bluetooth tag information.
The example below shows all 3 (Bluetooth Wristband) + 2 (G-Sensor Bluetooth tag) + 2 (Light alarm
Bluetooth tag) + 5 (Bluetooth Beacon) stay in the range of the GW all the time.

Smart LoRaWAN Bluetooth Gateway
16 / 25
Priority
Bluetooth
Wristband
100-00136
G-Sensor
Bluetooth tag
100-02198
Light alarm
Bluetooth tag
100-02196
Bluetooth
Beacon
100-02195
16.5 bytes
14.5 bytes
10.5 bytes
5.5 bytes
Quantity Received
3
2
2
5
LoRa Transmit
cycle 1
Bluetooth
Wristband is sent
first
3
[1]
2
[2]
2
[3]
2
[4]
LoRa Transmit
cycle 2
G-Sensor
Bluetooth tag is
sent first
2
[4]
2
[1]
2
[2]
3
[3]
LoRa Transmit
cycle 3
Light alarm
Bluetooth tag is
sent first
1
[3]
2
[4]
2
[1]
5
[2]
LoRa Transmit
cycle 4
Bluetooth Beacon
is sent first
3
[2]
2
[3]
0
[4]
5
[1]
LoRa Transmit
cycle 5
Bluetooth
Wristband is sent
first
3
[1]
2
[2]
2
[3]
2
[4]
LoRa Transmit
cycle 6
G-Sensor
Bluetooth tag is
sent first
2
[4]
2
[1]
2
[2]
3
[3]
LoRa Transmit
cycle 7
Light alarm
Bluetooth tag is
sent first
1
[3]
2
[4]
2
[1]
5
[2]
LoRa Transmit
cycle 8
Bluetooth Beacon
is sent first
3
[2]
2
[3]
0
[4]
5
[1]

Smart LoRaWAN Bluetooth Gateway
17 / 25
4.4.8 Acknowledgement
Bytes
1
1
Item
TYPE
MSGID
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0xF
Message type, CS uses it to identify different uplink
messages.
3~0
RESULT
0: success
1: failure
Processes result of any downlink message that needs to be
acknowledged.
MSGID FIELD
Bit
Name
Value
Description
7~0
MSGID
0~255
The MSGID field of corresponding downlink message.
4.5 Downlink Message
Table 5: Downlink Message Table
Message
Type
Name
Description
0x1
Registration Acceptance
Registration result message
0x8
LoRa configuration
CS can use this message to configure LoRa parameters.
0x9
Gateway configuration
CS can use this message to configure the Gateway parameters.
0xA
Command request
CS can use this message to request the gateway to execute instructions.
0xF
Acknowledgment
Processes result of any uplink message that needs to be acknowledged.
4.5.1 Registration Acceptance
Bytes
1
Item
TYPE
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0x1
Message type, the gateway uses it to identify different
downlink messages.
3~0
RESULT
0: success
1: illegal gateway
2: server busy
Register result.
In the current gateway, if the result is not 0, the gateway
goes on to send the registration message again.
4.5.2 LoRa Configuration
Bytes
1
1
1
Item
TYPE
DR
MODE

Smart LoRaWAN Bluetooth Gateway
18 / 25
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0x8
Message type, the gateway uses it to identify different
downlink messages.
3
ADR
0: OFF
1: ON
ADR (Adaptive Data Rate) status. Please keep ADR off.
2~0
Reserved
0x0
Reserved for future use
DR FIELD
Bit
Name
Value
Description
7~4
DR
3~5
Data Rate (DR3~DR5). The data rate is limited from DR3 to
DR5. ADR is NOT supported. Keep ADR off, and the gateway
will work in this data rate.
3~0
Reserved
0
Reserved for future use
MODE FIELD
Bit
Name
Value
Description
7~5
MODE
Configure the Band mode. It can't be changed currently.
4~0
POWER
0~20
Configure transmit power (unit: dBm)
4.5.3 Gateway Configuration
Bytes
1
2
1
Item
TYPE
POS
HB
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0x9
Message type; the gateway uses it to identify different
downlink messages.
3~0
Reserved
0x0
Reserved for future use.
POS FIELD
Bit
Name
Value
Description
15~0
POS
0~65535
Report interval, unit 5s. 0 means OFF. (Big endian)
Default: 2 (10s)
HB FIELD
Bit
Name
Value
Description
7~0
HB
1~255
The period of heartbeat message, unit 30s. This value must
be larger than 0.
Default: 10 (5 minutes)

Smart LoRaWAN Bluetooth Gateway
19 / 25
4.5.4 Command Request
Bytes
1
1
1
Item
TYPE
MSGID
VALUE
TYPE FIELD
Bit
Name
Value
Description
7~4
TYPE
0xA
Message type; the gateway uses it to identify different
downlink messages.
3~0
COMMAND
0x2: register request
0x3: device reboot
0x4: Stop Bluetooth
receiving
0x5: Start Bluetooth
receiving
0x6: Change
Bluetooth receiving
start time
0x7: Change
Bluetooth receiving
duration
0x2: request the gateway to send the register message.
0x3: reboot the gateway.
0x4: stop continuous receiving Bluetooth.
It is opposed to 0x5. Once 0x4 is activated, it enables
receiving function for 3 seconds (or the value set before
0x5) ahead of sending.
Please refer to Figure 2: POS Field and Receiving .
0x5: start continuous receiving Bluetooth.
It applies to all Bluetooth gateways.
0x6: advance or delay the receiving start time. It applies
to all Bluetooth gateways.
The negative value advances the start time.
Figure 3 shows an example of delaying the receiving start
time for 3 seconds. It applies to all Bluetooth gateways.
Command: 0xA60103
Advance 3s command: 0xA601FD
0xFD = Decibel 256-3
0x7: change the receiving duration for the solar and macro
Bluetooth gateway; in default the Bluetooth receiving is 3
seconds long.
Figure 4 is an example of changing it to 5 seconds.
Command: 0xA70205
Default:
Compact and Indoor Bluetooth Gateway, Bluetooth is in
continuous receiving mode. POS field is 10s (the report
interval is 10s).
Solar and Macro gateway, Bluetooth receiving is 3s. POS
field is 20s (the report interval is 20s).

Smart LoRaWAN Bluetooth Gateway
20 / 25
010 20 30717
POS, 10s in default
Bluetooth receivingduration is 3s in default
POS, 10s in default
Figure 2: POS Field and Receiving Period
010 20 30
Bluetooth receivingduration is 3s in default
313717 23
Delay 3s Delay 3s
Figure 3: Delay the Receiving Start Time
010 20 30515
POS, 10s in default
Bluetooth receiving: 5s
POS, 10s in default
Figure 4: Bluetooth Receiving Period: 5s
MSGID FIELD
Bit
Name
Value
Description
7~0
MSGID
0~255
This field is for the server to differentiate the ACK message
sent by the gateway. The server generates a sequence
number of downlink messages that need MSGID. The
gateway responds ACK with this number, otherwise, CS
should resend the message.
VALUE FIELD
Bit
Name
Value
Description
7~0
VALUE
-127~127
If the command is 6, this field is used to set the value of
advancing or delaying time.
If the value is positive, the receive starting time will delay,
This manual suits for next models
36
Table of contents