Network-related settings
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
T, [s] = XX * 5. Value 0x00 isnβt applicable. Default value: 0x78*5 = 600 sec = 10 minutes.
Example command: 0x10F0 = 240*5 = 1200 sec = 20min β the server sets the join request period to 20 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.
This join retry period (T) is for the first 15 sent messages. After, the used LoRaWAN stack automatically changes the possibility to send join request to ~20 minutes for 20 network join attempts. If the device is still not joined to the network after these 20 attempts, next join request can be sent after ~3 hours and 15 minutes.
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, [Hex]: 1C0300 β 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).
LoRaWAN Region
This command reports the LoRaWAN Region your device is setup to work in. Make sure it matches you network as LoRaWAN regions/bands are country dependent. This region is hardcoded in the FW and the user can not change it, only report on it. The keep-alive in the command response is omitted for clarity.
Byte index
Sent request
Received response
0
A4 β Command code
A4 β Command code
1
Radio region: 00 => EU868
01 => AS923
02 => AU915
03 => US915
Example command, [Hex]: A400 β extracting the 1st byte value we get 00[HEX], thus the device operates in the EU868 LoRaWAN band.
Last updated