GL865-DUAL, FW 10.01.150, under Python control, GPRS with TCP connection to dedicated server. MDM2 is used for GPRS, and MDM is used to check connection and socket status.
In some places (probably with poor network coverage):
AT+CREG? return +CREG: 0,1 (unfortunately I do not check received signal strenght)
AT#SGACT? return #SGACT: 1,0 – connection is closed
AT#SS=1 return #SS: 1,1,10.190.136.123,42574,…,…
According to AT-command manual and IP Easy, this command is intended especially to check socket status, but in this case this is wrong answer
and MDM2.send() return -1.
A temporary loss of radio signal does not necessarly means that sockets are closed, they simply are in a kind of supsen/wait for radio link to come up again; hence send methods do not accept data because the radio level informs TCP about this. Quite normal, as radio can go up and down without IP being dependent of this.
I’m agree. But which set of commands to use to know the real status?
Regarding TCP/IP stuff AT##SS should do the job.
Is this a joke?
No AT##SS command. If you can suggest solution, go ahead…
Hit enter to search or ESC to close
Knowledge Base & Download Zone