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

COAP Thread Server stops receiving messages at a high rate and with multiple sensors

Hello there,

I have developed simple coap client and simple coap server based firmwares on nRF52840. My hardware/software configuration is:

SDK: nRF5_SDK_for_Thread_v0.10.0_e1c3d11
Thread version:OPENTHREAD/g6a15261b-dirty
THREAD Border Router = nRF52840 dev kit.

I am sending data from client to server every 1 min. There are 7 such client sensors. There is a parallel activity to forward this data to gateway device over TWI. I am using a queue to buffer this data. With these activities, Thread server works for 7/8 hours and then stops receiving data but the main loop works fine. i.e TWI works fine. Probably thread is overloaded and crashed.

When I send data after every 2 seconds it works for 15-20 mins.

Possible causes:
1. Two Thread packets arrive at the same time?
2. Thread internal buffer gets full/overwritten abruptly?

Questions:
1. At what rate thread is able to receive messages? What happens when two thread messages arrive at same time.
2. Is there any way to know if the thread is alive or not?

Can you please help me with this?

Related