Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

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