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

Server socket silently stop working after GPS search

Modem fw version: nrf9160_1.2.1

How to reproduce:

- Set AT%XSYSTEMMODE=0,1,1,0

- Open a TCP IPV4 server socket in a thread and wait for connection (i.e. accept). The zephyr echo server sample can be used as reference.

- Verify the socket works.

- Start a GPS scan/search (I used gps_control_start())

Problem: Unable to connect to device. I would expect `accept` to wake up the thread and return -1 or, preferably, that my server socket was still working.

I do not see any warnings or errors in log.

Sorry if this is already a known issue, I could not find it.

Parents Reply
  • Telia. Yes it is a roaming SIM.

    I think this might be related to the provider. I get occasional errors like this:

    lte_lc: Could not get TAU, error: -22

    lte_lc: Failed to parse PSM configuration, error: -22

    They started to appear after I first posted but there have been other issues with the network. Unfortunately I do not have time to investigate this further right now so I disabled the GPS.

    I still believe `accept` should return error if the socket is dead and will never recover.

Children
Related