ArduinoCore-stm32l0 icon indicating copy to clipboard operation
ArduinoCore-stm32l0 copied to clipboard

Device rapidly sending port 0 messages

Open SloMusti opened this issue 3 years ago • 4 comments

The issue has been observed on a few devices deployed in the filed, where they start sending port 0 messages - mac commands at a rapid pace (every few seconds) until they are rebooted. This appears to be some anomaly related to the MAC commands form the network server.

To resolve this issue, it would be good to understand the mechanism what can trigger this @GrumpyOldPizza . Alternatively I need to find a way to safeguard against it.

SloMusti avatar Jan 08 '21 15:01 SloMusti

Well, first off, do you know what mac commands they are sending off ?

The best thing you can do is to look at the source code and use a ST-Link debugger to see what is going on.

GrumpyOldPizza avatar Jan 09 '21 11:01 GrumpyOldPizza

Debugging is unfortunately not practical, as this only happens to a few devices in the field after a while, haven`t been able to reproduce this in the lab yet.

At this point, also the mac commands are not logged and available. Generally the network server is not configured to be sending any.

As the first action, a monitor logic will be implemented on a few devices to detect how many messages are transmitted that originate from the stack itself, then we can better understand the case.

SloMusti avatar Jan 09 '21 15:01 SloMusti

@GrumpyOldPizza managed to get a better debug of the issue. Device keep sending the RXParamSetupReq to which the network server does not respond or send the ack. What triggers this behavior is unknown, device reset resolves it for a while, which can be up to a month and then it may repeat again.

{
                        "cid": "RXParamSetupReq",
                        "payload": {
                            "channelAck": true,
                            "rx2DataRateAck": true,
                            "rx1DROffsetAck": true
                        }
                    },

SloMusti avatar Jan 15 '21 06:01 SloMusti

Has there been any updates? I believe I am experiencing the same issue. TTN is reporting that the last time it had seen the device was "Now" but it has not actually displayed any data in the console. The "Now" has not gone away for over 3 hours.

kevin192291 avatar Jun 30 '21 18:06 kevin192291