Vega SH-2 / User Manual
26
Revision 06 – 06 July 2020
5 COMMUNICATION PROTOCOL
This part describes the SH-02 data exchange protocol with LoRaWAN and NB-IoT
network.
In fields consisting of several bytes, the little-endian byte order is used
VEGA SH-02 MODEM TRANSMITS THE FOLLOWING TYPES OF PACKETS
1.
Packet with current readings, sent regularly on LoRaWAN port 2
Size in bytes
Field description
Data type
1 byte
Packet type:
01 – if the 1-Wire used
09 – if the ModBus used
uint8
1 byte
Reason for packet was formed:
1 – by the schedule
2 – alarm on input 1
3 – alarm on input 2
4 – pressing the button in application
uint8
1 byte
Battery charge, %
uint8
4 bytes
Reading time for values in this packet (unixtime UTC) uint32
1 byte
Temperature,
°
С
int8
20 bytes
Readings of the ten external temperature sensors,
0.1
°
С
Or readings of the ten ModBus registers
int16
uint16
4 bytes
Pulse number on the input 1
uint32
4 bytes
Pulse number on the input 2
uint32
2 bytes
Voltage value on the analog input 1, mV
uint16
2 bytes
Voltage value on the analog input 2, mV
uint16
2.
Packet with time correction request, sent every seven days on LoRaWAN port 4
Size in bytes
Field description
Data type
1 byte
Packet type, this packet == 255
uint8
4 bytes
Time of the modem at a moment of the packet
transmission (unixtime UTC)
uint32
After receiving this type of package, the application can send to modem the packet with
time correction.
VEGA SH-02 MODEM RECEIVES PACKETS OF THE FOLLOWING TYPES
1.
Real-time clock adjustment – send by application on LoRaWAN port 4
Size in bytes
Field description
Data type
1 byte
Packet type, this packet = 255
uint8