Gemalto is now part of the Thales Group, find out more.

You are here

Socket not connected | Thales IoT Developer Community

September 14, 2015 - 2:17pm, 2682 views

Hello,

I am using http POST to upload data to a server. The modem used is BGS2-W.

My device is uploading data periodically to the server. Sometimes on opening the connection, I receive the URC ^SIS:0,18, "Socket not connected" from the modem. I close the connection and I retry the upload after 2 minutes. But I keep on getting the same URC. The only way to get out of this situation is to reboot the modem using AT+CFUN=1,1. On rebooting, the upload starts normally again.

I checked for the internet connection and service profile, but they seem to be as per what I have set. The AT+CEER command returns no error (all 0s).

The response to AT1 command:

Cinterion

BGS2-W

REVISION 02.000

The AT command log:

20150912T180002 INFO Modem:AT^SCKS?

20150912T180002 INFO Modem:^SCKS: 0,1

20150912T180002 INFO Modem:AT+CREG?

20150912T180002 INFO Modem:+CREG: 0,1

20150912T180002 INFO Modem:AT^SISS=0,hcContLen,6229

20150912T180002 INFO Modem:OK

20150912T180003 INFO Modem:AT^SISS=0,address,http://testing.ibexis.net/ibexis-upload/data

20150912T180003 INFO Modem:OK

20150912T180003 INFO Modem:AT^SISO=0

20150912T180035 WARN Modem:Resp timeout 

^SIS: 0,0,18,"Socket not connected"

20150912T180035 INFO Modem:AT^SICI=0

20150912T180035 INFO Modem:Resp Success : 0,0,0,"0.0.0.0"

20150912T180035 INFO Modem:AT^SISI=0

20150912T180035 INFO Modem:Resp Success : 0,6,0,0,0,0

20150912T180035 INFO Modem:AT^SISE=0

20150912T180035 INFO Modem:Resp Success : 0,18,"Socket not connected" 

What could be the reason for continuous socket errors? We can discount the server as on rebooting the modem, it is able to upload to the same server. The socket errors are observed when the device is running for about more than 24 hours.

Thanks and Regards,

Kalyani Kulkarni