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 Children
  • 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 

  • Hi.

    First of all, I am sincerely sorry for the long wait (again).

    As the modem is delivered as a compiled application, only runtime configuration is possible. FOr the LTE stack, this is done through AT commands, while for the IP stack it is done through socket options. You are therefore limited to the socket options that can be set through bsdlib.

    When it comes to the application level protocols, those run on the application core and can be configured by Kconfig or replaced/rewritten partially or fully.

  • According to the modem team, the modem team makes no assumptions about the validity of the session.

    It is up to the server to check if the session is still valid. If it is not, the server will respond with an error. However, that error might get lost due to the NAT timeout I have already mentioned.

Related