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

How to configure DTLS and CoAP idle timeout in nRF9160?

Hi,

We have a working LwM2M device based on nRF9160 and NRF Connect SDK 1.1. When we run with a short register-update period (30 seconds) on a NB-IoT network it works. When we increase the register-update period to 5 minutes it times out every time and the L2M2M client reconnects the DTLS session and LwM2M session. This is not acceptable.

I guess there is an idle timeout on lower level, e.g. CoAP or DTLS!? I have offloaded the IP stack incl DTLS to the modem. How can I configure the DTLS idle timeout (if any)? How can I configure the CoAP idel timeout (if any)?

BR / Björn

Parents Reply
  • Hi Didrik,

    Thanks for your response.

    I have not gotten any answers to your questions from our developers yet.

    Ok, let me know when you hear something. I am interested in 1) what are the default timeouts in the modem and 2) can they be changed

    At the end of the last reply, I suggest a method that might let you use a non-offloaded IP stack. Note that we have not tested that, so I can not guarantee that it works.

    Sorry, this is not an option for us. We dont have enough flash.

    Did you get a reply from your network operator?

    No

    While they might have different timeouts, the timeouts we have seen are typical <1 minute. SO I would not dismiss the possibility that the problem is caused by the networks NAT policy

    Yes, you are right. I will approach them to rule out the possibility. 

    BR / Björn 

Children
Related