MQTT-SN event: Retransmission retries limit has been reached

Hi,

I am using an pca10059 as a SED together with a border router in my thread network. The SED shall publish every 5 min sensor data. That works fine. But after some time (randomly after 40 min or 6h) I get this error message via logger and I cant publish the sensor data anymore:

<info> app: MQTT-SN event: Retransmission retries limit has been reached.

<info> app: MQTT-SN event: Timed-out message: 5. Message ID: 0.

While testing where the problem lies, I added a pca10056 (SED) and got the same error at the same time for both devices.

These are my parameters for the SED devices (standard):

#define DEFAULT_CHILD_TIMEOUT    40                                         /**< Thread child timeout [s]. */
#define DEFAULT_POLL_PERIOD      1000                                       /**< Thread Sleepy End Device polling period when MQTT-SN Asleep. [ms] */
#define SHORT_POLL_PERIOD        100                                        /**< Thread Sleepy End Device polling period when MQTT-SN Awake. [ms] */
#define SEARCH_GATEWAY_TIMEOUT 5  

#define SCHED_QUEUE_SIZE      32                              /**< Maximum number of events in the scheduler queue. */
#define SCHED_EVENT_DATA_SIZE APP_TIMER_SCHED_EVENT_DATA_SIZE /**< Maximum app_scheduler event size. */

Do I have to change some timeout parameter for the gateway? Or does the thread network need at least one FTD next to the border router?

Ps: I use Linux, SDK17, VS-Code, pca10056/59

Related