ItsBadBeGood
Newbie level 1
- Joined
- Nov 18, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 24
First of all, hi everyone.
I am using sim900 module with a FEZ PANDA for my final years project.
I need to do an http GET on a server to create a geopoint on a map. As simple as that.
I was using these commands, but httpaction was returning 601 status code (NETWORK ISSUES):
AT+CPIN=XXXX
AT+CIPSHUT
AT+CGDCONT=1, "IP", "gprs-service.com"
AT+CSTT="gprs-service.com","",""
AT+CIPSTATUS
AT+CGATT=1
AT+HTTPINIT
AT+HTTPPARA="URL","urlofthedesiredwebsite"
AT+HTTPPARA="CID",1
AT+HTTPACTION = 0
AT+HTTPREAD
AT+HTTPTERM
only "AT+HTTPACTION = 0 returned other than OK, which was 0,601,0.
So i read on this website (https://www.cooking-hacks.com/documentation/tutorials/raspberry-pi-gprs-gsm-quadband-sim900#step8) that he uses AT+SAPBR commands instead of CGDCONT,CSTT AND CGATT.
So i tried, and everything is ok, but then again at AT+HTTPACTION the module reboots.
It is certainly no problem of power, since It is connected through usb to fez panda AND aswell with another connector from power source (9V) for extra amps.
Does anybody know if i have the commands wrong? What is best, first option or second option? And why does it power off when it is supposed to do an http get to the link?
I am sorry i am new to gsm modules...
Thank you for your time.
Albert.
- - - Updated - - -
Also, is it the correct way to connect to a site?
If i do an http get to the "urlofthedesiredwebsite" in google chrome, for example, it will create a geopoint on the map. (of course with www.whateversite.com/add?lat=xxx&lon=yyy
Doing httpaction=0 will also do the same, as if i put the link in google chrome, or am I wrong?
Thanks.
- - - Updated - - -
Another update, if I try to connect to google, it also turns off on httpaction=0...
But if I put the wrong url, (https://www.google.com instead of https://www.google.es/?gws_rd=cr , httpread reads status 302 and the
I am using sim900 module with a FEZ PANDA for my final years project.
I need to do an http GET on a server to create a geopoint on a map. As simple as that.
I was using these commands, but httpaction was returning 601 status code (NETWORK ISSUES):
AT+CPIN=XXXX
AT+CIPSHUT
AT+CGDCONT=1, "IP", "gprs-service.com"
AT+CSTT="gprs-service.com","",""
AT+CIPSTATUS
AT+CGATT=1
AT+HTTPINIT
AT+HTTPPARA="URL","urlofthedesiredwebsite"
AT+HTTPPARA="CID",1
AT+HTTPACTION = 0
AT+HTTPREAD
AT+HTTPTERM
only "AT+HTTPACTION = 0 returned other than OK, which was 0,601,0.
So i read on this website (https://www.cooking-hacks.com/documentation/tutorials/raspberry-pi-gprs-gsm-quadband-sim900#step8) that he uses AT+SAPBR commands instead of CGDCONT,CSTT AND CGATT.
So i tried, and everything is ok, but then again at AT+HTTPACTION the module reboots.
It is certainly no problem of power, since It is connected through usb to fez panda AND aswell with another connector from power source (9V) for extra amps.
Does anybody know if i have the commands wrong? What is best, first option or second option? And why does it power off when it is supposed to do an http get to the link?
I am sorry i am new to gsm modules...
Thank you for your time.
Albert.
- - - Updated - - -
Also, is it the correct way to connect to a site?
If i do an http get to the "urlofthedesiredwebsite" in google chrome, for example, it will create a geopoint on the map. (of course with www.whateversite.com/add?lat=xxx&lon=yyy
Doing httpaction=0 will also do the same, as if i put the link in google chrome, or am I wrong?
Thanks.
- - - Updated - - -
Another update, if I try to connect to google, it also turns off on httpaction=0...
But if I put the wrong url, (https://www.google.com instead of https://www.google.es/?gws_rd=cr , httpread reads status 302 and the
Last edited: