This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CoAP client sample - send command freezes after a few iterations

Hi,

as discussed in different issue on DevZone. We have discovered that send command freezes the program in the CoAP client sample. The Nordic employee Hakon has confirmed that it also happens on his board.

Could you please try to inspect the issue? Unfortunately, we are not able to collect the modem trace right now our DK broke up and we are not able to collect traces on our custom board.

The modified sample could be downloaded under this link: devzone.nordicsemi.com/.../coap_5F00_client.zip

Parents Reply Children
  • Could we at least know the cause or workaround? Our app on the device randomly freezes, which means it is unusable, and we have not been able to get any solution/fix for two months. To be honest, I am quite disappointed.

  • Hi, I completely understand that this has taken a long time. Unfortunately, this is to be expected during summer. The developers have a lot of other cases, just like yours, to look into at the same time. 

    They will run the sample and confirm that this is, in fact, a bug, and then try to provide you with a workaround.

    Best regards,

    heidi

  • So in the meantime, could you please at least provide us your input on collecting the modem trace on custom boards?

    We would be very happy if we could capture the modem trace. However, we have not found a solution on how to do this on our custom board. The trace from nRF9160 could be gathered only on UART. 

    In our setup, we use nRF9160 and nRF52820 that are wired via one UART interface, so we don't know how to pass the trace through it without completely rewriting the application. If there would be an interface from Nordic on how to save the trace to the internal/external flash, so it could be sent via Bluetooth/LTE afterward, it would greatly help us.

  • Hi again, so they took a look at the case. 

    The reason it's freezing is because the received data is never read. So the buffers that the modem uses to send information to the application code fills up and then the modem can't even send the acknowledge message back to the application core when the application core tries to send a CoAP message.

    If you add a read in the for-loop after the CoAP package is sent, it should run fine. 

    Best regards,

    Heidi

  • Hi Heidi,

    We still have not been able to troubleshoot it in our main application. Seems like the example issue is a different one then we are experiencing in the main firmware. I am closing this as it is example related and I will open a new private issue where we will provide modem trace for analysis from our main firmware.

    Thanks for your help.

Related