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

NRF9160 infinite nrf_connect blocking behavior post LTE PSM wakeup

Hi,

I've noticed several times now when the NRF9160 comes out of a PSM sleep cycle that when a call to an underlying socket connect(), or nrf_getaddrinfo() call (whether it be from a socket connect at the app level, or the connect() within sntp_init) that the underlying nrf_connect/nrf_getaddrinfo blocks forever.

So my first question is

- Why would the nrf_connect/nrf_getaddrinfo block indefinitely, even if there is a strange state issue with DNS or other with the provider iBasis or otherwise, a failure timeout should occur.

- Can either of those functions within nrf91_sockets be non-blocking enabled with O_NONBLOCKING? This is assuming there isn't an internal K_FOREVER lock state within the modem firmware which would lock it all up regardless.

I'm using the latest modem firmware and V1.0.0 tag

Thanks!

Parents Reply Children
No Data
Related