BGS2T HTTP GET txt-file | Telit Cinterion IoT Developer Community
November 14, 2017 - 6:32pm, 2355 views
Hello,
I am currently trying to download a .txt-file via HTTP GET from http://httpbin.org/robots.txt with an BGS2T-Modem. I have also tried to connect with http://example.com, but I could net get neither an URC response from any server nor that data is ready to receive...
The following code shows response of the modem with echo of the used commands, where the actual command is on the left side and the response is on the right:
AT&F0 OK AT+CFUN=1,1 OK NO CARRIER ATI1 Cinterion BGS2-W REVISION
01.301 A-REVISION
01.000.03 OK ATE1 OK AT+CMEE=2 OK AT+CPIN=9336 OK AT+CGATT=1 OK AT+CGDCONT=1,"IP","a1.net" OK AT+CGACT=1,1 OK AT^SCFG="Tcp/WithURCs","on" ^SCFG:"Tcp/WithURCs",
"on" OK AT^SICS=1,conType,GPRS0 OK AT^SICS=1,alphabet,1 OK AT^SICS=1,user,ppp@a1plus.at OK AT^SICS=1,passwd,ppp OK AT^SICS=1,apn,a1.net OK AT^SISS=1,srvType,"Http" OK AT^SISS=1,conId,1 OK AT^SISS=1,alphabet,1 OK AT^SISS=1,"address","http://httpbin.org/robots.txt" OK AT^SISS=1,hcContLen,0 OK AT^SISS=1,hcContent,"" OK AT^SISS=1,hcUsrAgent,"GPRS Modem" OK AT^SISS=1,hcMethod,0 OK AT^SISO=1 OK AT^SISR=1,10 ^SISR: 1, 0 OK AT^SISI=1 ^SISI: 1,4,0,0,0,0 OK AT^SICI=1 ^SICI:1,2,1,
"100.121.246.73" OK AT^SISR=1,10 ^SISR: 1, 0 OK AT^SISR=1,10 ^SISR: 1, 0 OK AT^SISI=1 ^SISI: 1,4,0,0,0,0 OK AT^SICI=1 ^SICI:1,2,1,
"100.121.246.73" OK AT^SISC=1 OK
Thanks in regards!
Martin
I have just realised, that an already working precedure to upload txt-files to another FTP server is also not working anymore. I suspect, that the AT&F0 reset maybe changed an important setting...
Commands for FTP-Upload (was working before):
I hope this helps to find my mistake...
Hello,
Do you have polling mode or URC mode configured (at^scfg=tcp/withurcs)?
In case of first connection it seems that connection is up. Can you also check 'AT^SISO?' command? Have you tried any other sites?
In case of FTP the connecction is still in the connecting state. So maybe there is some problem with network or ftp server, or subscription if the same was working before.
Regards,
Bartłomiej
Hello Bartłomiej,
Thank you for your fast response.
After some experiments with settings, I tried out a different SIM card and it is finally working again.
It also solved the HTTP problem...
Thank you very much!
Best regards, Martin