2021-08-23 03:17 AM
Hi,
We have encountered the following situation:
Once the equipment is Joined to the network, if by chance there is a power cut that affects the Gateway and it restarts, we have realized that we stop receiving data from the device.
Our Device can be configured with or without Confirmation ACK.
We can't know whether there is a power cut and we stop receiving data.
What is the correct way to detect and treat this situation?
We can check if after an uplink we receive the ACK or not, to be able to treat it.
We checked in the OnTxData Callback if the MSG_Type was LORAMAC_HANDLER_CONFIRMED_MSG and in that case if AckReceived was 0 we know that the Gateway is not responding with the ACK to the Uplink, and in that case we Reset the device to Force a Join Request.
Is it the correct way to detect and treat this situation?
Best Regards
2021-08-27 08:34 AM
I'm not so sure, but I think that redundancy must be obtained using multiple gateways, of course with different supplies and environments.
F.
2021-08-27 10:59 AM
In send-n-pray there really aren't any guarantees.
You should perhaps consider a configuration item where you set a periodicity to attempt a rejoin, whether it makes sense at a daily, weekly, monthly level depends of the reliability of the infrastructure, and availability of a back-channel, for example GALILEO has a return-link message to confirm reception of emergency beacon alerts. Or your ability to wake up at accurate/specific times to get an inbound message, perhaps on a different band/frequency.
Get the gateway on a UPS