Hey there,
Is it possible to manually request a device’s status, preferably via the API?
Greetings
Hey there,
Is it possible to manually request a device’s status, preferably via the API?
Greetings
A getDeviceRequest call to the API would provide the status:
https://www.chirpstack.io/docs/chirpstack/api/api.html#api-DeviceService
Thats not exactly what I meant. I was referring to the devices status thats periodically requested from the lora-server (with margin, battery status, external power source etc)
AFAIK, it is not possible to do this on-demand via chirpstack panel. The only setting available regarding device status is in the device profile settings where you can choose the number of device status requests per day.
However, even though I have not tested this, you could achieve just that by transmitting a downlink to the device with a forged payload containing the DevStatusReq MAC command on port 0. According to the LoRaWAN spec, the payload to send would be simply 0x06 (which is the command identifier of the MAC command DevStatusReq). Assuming it is correctly processed by the device and responds with the DevStatusAns, i’m not sure either that it will be processed by chirpstack (because it did not issue the request in the first place).
Give it a try and keep us updated!
Cheers,
Nicolas
Hey Nicolas,
Thank you for your input!
From what I can see, it seems like sending a downlink over Port 0 is not possible (at least via Web-GUI) because it automatically changes the 0 in the port field to a 1.
I’ve tried it with port 1 just to be sure, I’ll send another update if it works.
This is not possible. Currently the only way to trigger a DeviceStatusReq mac-command is by setting the interval in the device-profile.