davek17
Newbie level 3
- Joined
- May 2, 2012
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Liverpool, UK
- Activity points
- 1,318
Hi There
I have read pretty much every post about this on here, read the manual, talked to Arduino people and this is driving me crazy. I really hope someone can help.
I can do pretty much everything with the SIM900 and at the moment i'm just using Terminal v1.19b to talk to it through serial, throwing AT commands merrily to the SIM, connected to an arduino Uno.
The problem is that I can't get any data back from a POST or GET to a server. Even the simple Google and Yahoo examples give me the SEND OK.....CLOSED scenario.
I have checked for the CRLF format that I know some servers can be fussy about, and I have triple checked my vodafone SIM card works in a PDA and of course using the AT+CIPSTATUS and AT+CIFSR to check the connection and IP address are there. I can put the card in a PDA and it will browse to google.co.uk etc too.
I simply cannot get the card to get any return data.
My next job will be to write my own webs ervice, stick a DB behind it and check if the card is sending data but I really feel like the simple exmaples to google/yahoo not working are showing something fundamentally wrong with my code. My sequence of AT commands are below (I know half of the below is not needed but its complete):
AT+CPIN?
AT+CSQ
AT+CREG?
AT+CGATT?
AT+CGDCONT=1, "IP", "pp.vodafone.co.uk"
AT+CSTT="pp.vodafone.co.uk", "web", "web"
AT+CIICR
AT+CIFSR
AT+CIPSTART="TCP","http://www.google.com","80"
AT+CIPHEAD=1
AT+CIPSEND
GET / HTTP/1.1
Host: https://www.google.com
Connection: Keep-Alive
Accept: */*
Accept-Language: en-us
All the above has a CR + LF at the end of each line. I then finsih with another CRLF then send a $1A (Ctrl-Z) to complete the GET.
I get a SEND OK, and about 30 seconds later I get CLOSED. No data returned.
If I send an incorrectly formatted GET then I get an error so I must be connecting to the server.
I am really flummoxed, days over my original schedule to get this working and any help would be greatly received.
Davek17
I have read pretty much every post about this on here, read the manual, talked to Arduino people and this is driving me crazy. I really hope someone can help.
I can do pretty much everything with the SIM900 and at the moment i'm just using Terminal v1.19b to talk to it through serial, throwing AT commands merrily to the SIM, connected to an arduino Uno.
The problem is that I can't get any data back from a POST or GET to a server. Even the simple Google and Yahoo examples give me the SEND OK.....CLOSED scenario.
I have checked for the CRLF format that I know some servers can be fussy about, and I have triple checked my vodafone SIM card works in a PDA and of course using the AT+CIPSTATUS and AT+CIFSR to check the connection and IP address are there. I can put the card in a PDA and it will browse to google.co.uk etc too.
I simply cannot get the card to get any return data.
My next job will be to write my own webs ervice, stick a DB behind it and check if the card is sending data but I really feel like the simple exmaples to google/yahoo not working are showing something fundamentally wrong with my code. My sequence of AT commands are below (I know half of the below is not needed but its complete):
AT+CPIN?
AT+CSQ
AT+CREG?
AT+CGATT?
AT+CGDCONT=1, "IP", "pp.vodafone.co.uk"
AT+CSTT="pp.vodafone.co.uk", "web", "web"
AT+CIICR
AT+CIFSR
AT+CIPSTART="TCP","http://www.google.com","80"
AT+CIPHEAD=1
AT+CIPSEND
GET / HTTP/1.1
Host: https://www.google.com
Connection: Keep-Alive
Accept: */*
Accept-Language: en-us
All the above has a CR + LF at the end of each line. I then finsih with another CRLF then send a $1A (Ctrl-Z) to complete the GET.
I get a SEND OK, and about 30 seconds later I get CLOSED. No data returned.
If I send an incorrectly formatted GET then I get an error so I must be connecting to the server.
I am really flummoxed, days over my original schedule to get this working and any help would be greatly received.
Davek17