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

Maximum AT Command Wait

Hi,

I am implementing timeouts on AT command socket send and receive functions. Currently I have a timeout of 5 minutes but that seems too low as the modem appears to take longer to respond when on the edge of coverage.

What is the maximum time taken for the modem to respond to a command?

Kind regards,

Thomas

Parents Reply
  • I think the issue is with the modem library. I've been trying to create error conditions and if you close an AT socket, or shutdown the modem library while a thread is either trying to receive or send on the socket, that thread is stuck forever. 

    This could be fixed by using non blocking sockets and polling for events instead, but when you try and set the send function as non blocking on an AT socket, it returns an error. Any ideas? (Currently using v1.5.1 of the SDK)

Children
No Data
Related