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
but
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.
Any idea?
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?
Why Nikolay?
No AT##SS command. If you can suggest solution, go ahead…
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
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
but
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.
Any idea?
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?
Why Nikolay?
No AT##SS command. If you can suggest solution, go ahead…