Detect if a sensor is disconnected from the LoRa network

Hi everyone,

I need to detect when my sensor is disconnected from the network and retrieve it from a PLC. Do you have any ideas?

I was thinking of using Chirpstack and somehow (I don’t know how) retrieving the status displayed in the dashboard (see image below).

image

Thank you very much for your help and Merry Christmas to all.

LoRaWAN is a connectionless technology. It’s also one that doesn’t necessarily guarantee that messages are transferred successfully. But if you knew that and meant to ask how you can get that online/offline status from Chirpstack, that is a good question.

You can get the “last seen” time from the DeviceService gRPC, but this specific status seems to be not exposed for devices. If that’s right, you could still make use of the “last seen” time to determine whether the device has been sending data, reasonably recently.

1 Like

Thank you, that gives me a clue

The dashboard status is simplistic and based on the expected payload interval that you have configured. You would probably be better off building your own logic based on your application to determine when a device has gone out of service.