0

I tried to use send a GET request using TCP over a SIM868 modem , but I always received "ERROR" after the AT command: AT+CIPSEND. Using minicom on my raspberry 3 , these are the command I sent:

AT+CSTT="APN NAME"
OK
AT+CIICR
OK
AT+CIFSR
100.73.110.9

AT+CIPSTART="TCP","exploreembedded.com",80
OK
CONNECT OK

AT+CIPSEND
> 
GET exploreembedded.com/wiki/images/1/15/Hello.txt HTTP/1.0
SEND OK

After the I received the SEND OK , I never receive the the page content. Also according the AT Commands manual after you type the GET you must type CTRL+Z, what I did it.
I tried the url in the browser and it works OK. Help will be vey appreciated!

CBal
  • 21
  • 5

1 Answers1

0

Try to use HTTP commands instead. That works for me and SIM800L:

AT

OK
AT+CPIN?

+CPIN: READY

OK
AT+CREG?

+CREG: 0,1

OK
AT+CFUN?

+CFUN: 1

OK
AT+CGATT?

CGATT=1

OK
AT+SAPBR=3,1,"CONTYPE","GPRS"

OK
AT+SAPBR=3,1,"APN","inet.es"

OK
.AT+SAPBR=2,1
.+SAPBR: 1,3,"0.0.0.0"

.OK

AT+SAPBR=1,1

OK
AT+SAPBR=2,1

+SAPBR: 1,1,"172.28.50.25"

OK
AT+HTTPINIT

OK
W
AT+HTTPPARA="URL","http://yourweb.com/prova3.php?ky=5FD9&in=461"

OK
AT+HTTPACTION=0

OK
AT+HTTPREAD

OK
AT+HTTPTERM

OK
Alberto
  • 7
  • 3