Network-related functions
Uplink types
This command is used to set Vicki uplink message type.
Byte index
Hex value – Meaning
0
11 – The command code.
1
00 – Vicki sends unconfirmed uplink messages; Default for f.w. >=3.5
01 – Vicki sends confirmed uplink messages. Default for f.w. <= 3.4
Example command: 0x1101 – The server sets Vicki uplink message type to confirmed.
Byte index
Sent request
Received response
0
1B – Command code.
1B – The command code.
1
00 – Vicki uplinks are unconfirmed;
01 – Vicki uplinks are confirmed.
Example command: 0x1B
Example response: 0x1B00 -> Vicki sent uplinks are unconfirmed.
Join-retry period
This command is used to set the period (T) of LoRaWAN join request sending from the device, in case it was unable to join the network from the first attempt.
Byte index
Hex value – Meaning
0
10 – The command code.
1
Value 0x00 isn’t applicable.
Default value for f.w. < 4.1: 3 minutes. Default value for f.w. >= 4.1: 10 minutes
Example command: 0x10F0 – the server sets join request send period to 20 minutes.
Byte index
Sent request
Received response
0
19 – Command code.
19 – The command code.
1
XX – Network join retry period value.
Example command: 0x19
Example response: 0x19C6 => T = 0xC6 * 5 = 198 * 5 = 990s = 16.5 minutes.
This join retry period (T) must comply to LoRaWAN messages duty cycle. Otherwise the join request will be sent on the next attempt. In most of cases, min. acceptable value for T is 240s. Recommended are higher values, for less battery discharge, e.g. 480s.
Communication Watch Dog
There is a Watch Dog functionality that forces the device to reset, so it can rejoin the network in case a certain threshold has been reached where no downlinks have been received. There are 2 independent threshold values, one for confirmed mode and one for unconfirmed mode.
When working in confirmed mode if no downlink is received for the period defined by the Watch Dog Period (WDPconfirmed) parameter (see table below), the device resets itself.
When working in unconfirmed mode if no downlink is received for the period defined by the Watch Dog Period (WDPunconfirmed) parameter (see table below), the device resets itself.
The command is described in the table below. The keep-alive in the response is omitted for clarity.
Byte index
Hex value – Meaning
0
1C – The command code.
1
XX – Watch Dog Period (WDP) when confirmed uplinks are used by the device.
XX defines how many uplinks should be received without ACK so that the device restarts. On top of that XX uplinks, another 7 minutes should pass before the device restarts.
Default value for XX: 0x02
Note that value 0x00 disables the functionality when confirmed uplinks are used.
2
XX – Watch Dog Period (WDP) when unconfirmed uplinks are used by the device. Value is represented in hours.
Default value for XX: 0x18 (24 hours)
Note that value 0x00 disables the functionality when unconfirmed uplinks are used.
Example command: 0x1C0300 – Assuming that the Keep-alive period is 5 minutes, the device will wait for 3x5+7 = 22 minutes before resetting if confirmed uplinks are used. If unconfirmed uplinks are used the functionality is disabled (0x00).
Byte index
Sent request
Received response
0
1D – Command code.
1D – The command code.
1
value.
2
value.
Example command: 0x1D
Example response: 0x1D020C – Assuming that the Keep-alive period is 5 minutes, the device will wait for 2x5+7 = 17 minutes before resetting if confirmed uplinks are used. If unconfirmed uplinks are used it will wait for 0x0C = 12 hours and reset.
Last updated
Was this helpful?