Skip to content

HTTPPost example is not working with vodafone sim #2

@radar155

Description

@radar155

I've just opened the example, changed pins and apn configuration, enabled debug.
This is the output from serial monitor

N: Powering on SIM808...
Init...
Waiting for echo...

-->AT
Waiting for echo...

-->AT
<--�Waiting for echo...

-->AT
<--AT
<--OK
<--
<--RDY

-->ATE0
<--
<--+CFUN: 1
<--
<--+CPIN: READY
<--ATE0
<--OK

-->AT+CGREG?
<--
<--+CGREG: 0,2
<--
<--OK

-->AT+CSQ
<--
<--+CSQ: 0,0
<--
<--OK
N: No network yet...

-->AT+CGREG?
<--
<--Call Ready
<--
<--SMS Ready
<--
<--+CGREG: 0,1
<--
<--OK

-->AT+CSQ
<--
<--+CSQ: 16,0
<--
<--OK
N: Network is ready.
N: Attenuation : -82 dBm, Estimated quality : 16
N: Powering on SIM808's GPRS...

-->AT+CIPSHUT
<--
<--SHUT OK

-->AT+CGATT=1
<--
<--OK

-->AT+CSTT="mobile.vodafone.it","",""
<--
<--OK

-->AT+SAPBR=1,1
<--
<--OK
N: Sending HTTP request...

-->AT+HTTPTERM
<--
<--ERROR

-->AT+HTTPINIT
<--
<--OK

-->AT+HTTPPARA="REDIR","1"
<--
<--OK

-->AT+HTTPPARA="CID","1"
<--
<--OK

-->AT+HTTPPARA="URL","http://httpbin.org/anything"
<--
<--OK

-->AT+HTTPPARA="CONTENT","text/plain"
<--
<--OK

-->AT+HTTPDATA=16,10000
<--
<--DOWNLOAD

-->This is the body<--
<--OK

-->AT+HTTPACTION=1
<--
<--OK
<--
<--+HTTPACTION: 1,601,0

-->AT+HTTPREAD=0,0
<--
<--ERROR
N: Server responsed : 601
N: This is the body

As you can see, in this example i didn't even changed the url, but it's not working with any url. HttpGet give the same error. Apn configuration is ok, my simcard is working and I can use with success http request by using this library. It handles both GPRS Setup and http request with different AT COMMANDS than those you used. For HTTP he is using TCP AT Commands, for GPRS Setup he is using a slightly different AT command flow and parameters (but i'm not an expert). I can't understand if the problem is with HTTP Commands or with GPRS Setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions