
Smart-MS0101 / User Manual
22
Revision
№ 03 - 28.09.2018
5 COMMUNICATION PROTOCOL
This part describes the Smart-MS0101 data exchange protocol with LoRaWAN™ network.
Smart-MS0101 uses the LoRaWAN™ port 2 for uplink and downlink messages. In fields consisting
of several bytes, the little endian byte order is used.
SMART-MS0101 TRANSMITS THE FOLLOWING TYPES OF PACKETS
1.
Packet with current readings, sent regularly, and every time alarm event occurs.
Size in bytes
Field description
Data type
1 byte
Packet type (1 – for that packet)
uint8
1 byte
Battery charge, %
uint8
1 byte
Values of basic settings
(byte field)
uint8
2 bytes
Temperature in
⁰
С, multiplied by 10
int16_t
1 byte
Sending reason (0 – by the time, 1 – alarm)
uint8
1 byte
reserve
uint8
"Values of basic settings" bit field decoding
Bits
Field description
0 bit
Activation type 0 - OTAA, 1 – ABP
1 bit
Query for packet confirmation 0 – off, 1 – on
2,3 bit
Communication period:
|2==0|3==0| - 1 hour
|2==1 |3==0| - 6 hours
|2==0|3==1 | - 12 hours
|2==1 |3==1 | - 24 hours
4 bit
reserve
5 bit
reserve
6 bit
reserve
7 bit
reserve