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

nRF9160 DK sleep current too high after opening and closing a TCP socket

Hi,

Similar to https://devzone.nordicsemi.com/f/nordic-q-a/45544/nrf9160-dk-psm-current-too-high-after-opening-and-closing-a-tcp-socket/260026#260026, however they said that issue has already been fixed and to make a new post.

After opening, connecting and closing a TCP socket and powering down the modem (either AT+CFUN=4 or  AT+CFUN=0), the device wakes every 1.2 seconds which raises the sleep current by an average of 20uA...

Below is a capture of the device sleeping (~6uA), then registering, opening a socket to Google, closing the socket and powering off, then waking every second. I found that it stops waking every second after a few minutes?

I'm using version 1.2 of the modem. I've also included a simple sample as well:

1234.tcpOpenClose.zip

Note: The sample use RTT as the debug interface not the UART.

Parents Reply
  • Hi Thomas,

    Surely if the modem is no longer registered or powered off it should stop?

    Yes, I believe so. The modem team is studying how to improve the power efficiency in TCP, but it may take some time. At the moment the problem is that some TCP timers are left running even though they should be stopped.

    Could this not lead to socket issues? There are only a limited number of sockets and if the modem does not free them up properly they will quickly run out?

    No, socket is closed correctly, it is only TCP protocol inside modem that keeps waking up because of missing TCP FIN from server side.

Children
Related