VEGA SI-13/User Manual
26
Revision 08 – 04 May 2018
VEGA SI-13 PULSE COUNTER RECEIVES PACKETS OF THE FOLLOWING TYPES
1.
Data sending to RS-232 or RS-485 interface
Size in bytes
Field description
1 byte
Packet type, this packet = 4
array
data
Upon receiving this packet, SI-13 will transfer the data contained therein to the RS-232 /
RS-485 interface (depending on the model). In the event that the external device connected via
the interface answers within the timeout specified in the SI-13 settings, the response will be
transmitted to the LoRaWAN network.
The LoRa data transfer technology limits the maximum packet size, depending on the
speed of the device operation. The packet size sent to the device shall not exceed 51 bytes.
If the larger packet is required, the external application is to query the network server if
the current speed of the device operation allows sending larger packets. The table below
shows the maximum packet sizes for different speeds
Data rate
Spread factor
Maximum packet size
DR0
SF12
51 bytes
DR1
SF11
51 bytes
DR2
SF10
51 bytes
DR3
SF9
115 bytes
DR4
SF8
222 bytes
DR5
SF7
222 bytes
2.
Command to change the RS232 / RS485 interface settings
Size in bytes
Field description
1 byte
Packet type, this packet = 5
4 bytes
Interface speed. May be equal to values 300, 600, 1200, 2400,
4800, 9600, 19200, 38400, 57600, 115200
1 byte
Number of data bits, may be equal to 8 or 9
1 byte
Parity. 0 – none, 1 – even, 2 – odd
1 byte
Number of stop bits. May be equal to 1 or 2.
2 bytes
Response timeout. May be equal to 100, 500, 1000, 3000, 5000
When a packet of this type is received, the device will send a packet confirming the
execution of the command.