Vega SI-21 / User Manual
Revision 11 – 23 October 2020
28
VEGA SI-21 PULSE COUNTER RECEIVES PACKETS OF THE FOLLOWING TYPES
1.
Real-time clock adjustment – send by application on LoRaWAN port 4
Size in bytes
Field description
1 byte
Packet type, this packet == 255
8 bytes
The value in seconds for which you need to adjust the time.
Can be positive or negative
2.
Packet with request of settings – sent by application on LoRaWAN port 3
Size in bytes
Field description
1 byte
Packet type, this packet == 1
Answering that packet, the device will send the packet with settings.
3.
Packet with settings is identical to such packet from device
Size in bytes
Field description
Data type
1 byte
Packet type, this packet == 0
uint8
2 bytes
ID of parameter
uint16
1 byte
Data length (len)
uint8
len bytes
Parameter value
-----
2 bytes
ID of parameter
uint16
1 byte
Data length (len)
uint8
len bytes
Parameter value
-----
…
…
…
2 bytes
ID of parameter
uint16
1 byte
Data length (len)
uint8
len bytes
Parameter value
-----
The package with settings sent to the device may not contain all the settings supported
by the device, but only the part that needs to be changed.
Table of ID of SI-21 parameters and these possible values
ID of
parameter
Description
Data
length
Possible values
4
Confirmed uplinks
1 byte
1 – confirmed
2 – unconfirmed
12
Input 1 mode
1 byte
1 – pulse
2 – guard
13
Input 2 mode
1 byte
1 – pulse
2 – guard
14
Input 3 mode
1 byte
1 – pulse
2 – guard
15
Input 4 mode
1 byte
1 – pulse
2 – guard