Vega SH-2 / User Manual
27
Revision 02
–
5 COMMUNICATION PROTOCOL
This part describes the SH-2 data exchange protocol with LoRaWAN and NB-IoT
network.
In fields consisting of several bytes, the little endian byte order is used
VEGA SH-2 MODEM TRANSMITS THE FOLLOWING TYPES OF PACKETS
1.
Packet with current readings, sent regularly on LoRaWAN port 2
Size in bytes
Field description
1 byte
Packet type, this packet == 1
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
1 byte
Battery charge, %
4 bytes
Reading time for values in this packet (unixtime UTC)
1 byte
Temperature,
°
С
20 bytes
External temperature sensors
’
readings,
°
С
4 bytes
Pulse number on the input 1
4 bytes
Pulse number on the input 2
2 bytes
Voltage value on the analog input 1, mV
2 bytes
Voltage value on the analog input 2, mV
The modem has internal clock and calendar; time and date is factory set. When sending
a packet with the current readings, the device uses the data taken at the nearest time, which is
multiple to the interval, set by the switches:
•
1 hour period: the readings of the beginning of the current hour are sent;
•
6 hours period: 00:00, 06:00, 12:00, 18:00 readings are sent;
•
12 hours period: 00:00, 12:00 readings are sent;
•
24 hours period: the readings of 00:00 of the current day are sent.
Time zone considered during collection data from an external meter.