Smart-HS0101 / User Manual
26
Revision
№ 01 - 01 February 2019
5 COMMUNICATION PROTOCOL
This part describes the Smart-HS0101 communication protocol with LoRaWAN
network.
In fields consisting of several bytes, the little endian byte order is used
SMART-HS0101 TRANSMITS THE FOLLOWING TYPES OF PACKETS
1.
Packet with current readings and alarm events
Size in bytes
Field description
Data type
1 byte
Packet type
1 – current state
2 – Hall sensor 1 alarm
3 – Hall sensor 2 alarm
4 – accelerometer alarm
5 – humidity value out of range
6 – temperature value out of range
uint8
1 byte
Battery charge, %
uint8
4 bytes
Reading time for values in this packet (for packet type 1)
Time of the modem at the moment of the packet
transmission (for the packets type 2…5) (unixtime UTC)
uint32
2 bytes
Temperature in
⁰
С, multiplied by 10
int16
1 byte
Humidity in %
uint8
1 byte
Sensor 1 state (0 – open, 1 – close)
uint8
1 byte
Sensor 2 state (0 – open, 1 – close)
uint8
1 byte
Vertical tint angle (0…90)
uint8
1 byte
Humidity low threshold in %
uint8
1 byte
Humidity high threshold in %
uint8
1 byte
Temperature low threshold
uint8
1 byte
Temperature high threshold
uint8
2.
Packet with time correction request, sent every seven days on LoRaWAN port 4
Size in bytes
Field description
1 byte
Packet type, this packet == 255
4 bytes
Time of the modem at the moment of the packet transmission
(unixtime UTC)
After receiving this type of package, the application can send to modem the packet with
time correction.