
Vega TD-11 / User Manual
28
Revision 04 - 24 January 2019
5 COMMUNICATION PROTOCOL
This part describes the TD-11 data exchange protocol with LoRaWAN network.
In fields consisting of several bytes, the little endian byte order is used
SENSOR TD-11 TRANSMITS THE FOLLOWING TYPES OF PACKETS
1.
Packet with current readings
Size in bytes
Field description
Data type
1 byte
Packet type, this packet == 1
uint8_t
1 byte
Battery level, %
uint8_t
1 byte
Overlimits (“0” – no overlimits, “1” – there is overlimit)
uint8_t
4 bytes
Time of sending readings (unixtime UTC)
uint32_t
1 byte
Current temperature in °C multiplied by 10
int16_t
1 byte
Temperature low threshold
int8_t
1 byte
Temperature high threshold
int8_t
1 byte
Reason of sending message
uint8_t
1 byte
TD-11 inputs/outputs state
uint8_t
If thermistor is not connected to the TD-11 (contacts «Therm» and « »), in
the «Temperature» field will be sent an -1000 value for breakage or fault
indication. In case of thermistor short circuit will be sent an -1270 value
"Inputs state" bit field decoding
Bits
Field description
Value
0 bit
Security input state
“0” – short, “1” – open
1 bit
Tamper state
“0” – case not open, “1” – case open
2 bit
Hall sensor 1 state
“0” – sensor triggered, “1” – sensor not
triggered
3 bit
Hall sensor 2 state
“0” – sensor triggered, “1” – sensor not
triggered
4…7 bits
not used