it seems turning radio off then on resolves the issue.
To recreate… I start my app which
a) turns the radio on (if off) with le_mrc_SetRadioPower(LE_ON)
b) wait for network registration (in the le_mrc_AddNetRegStateEventHandler)
c) request data connection with le_data_Request()
d) wait for connection in le_data_AddConnectionStateHandler
At this point I can ping successfully to 8.8.8.8
then in my app it
e) get IP address for hostname using getaddrinfo and getnameinfo
f) create a non blocking socket using “connect”
g) send/receive data over socket
h) close the socket once done.
At this point I cannot ping to 8.8.8.8 anymore… I get no response as per tcpdump…
cm radio and cm data suggest I still have a connection… however I can’t successfully send/rec anything over rmnet…
cm data connect -1 followed by cm data connect does not seem to solve it… I need to cm radio off and then cm radio on…
However that is a problem as I cannot turn the radio off and on for each socket connection…
I assume I am doing something wrong… but can’t work out what…
one idea is to try the modemdemo application, if it works, and then you can port the code there to your application
In this way, you don’t need to debug your current code