Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SIM900 powers off on HTTPACTION=0 (Get)

Status
Not open for further replies.

ItsBadBeGood

Newbie level 1
Newbie level 1
Joined
Nov 18, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
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
 
Last edited:

Try the below commands.....you can change the APN and URL.
i just give that in example..
AT+CGATT=1
AT+SAPBR=3,1"APN","airtelgprs.com"
AT+SAPBR=1,1
AT+HTTPINIT
AT+HTTPPARA="URL","http://www.google.com"
AT+HTTPACTION=1
 

I, too, am experiencing a shutdown of the SIM900 when I issue the AT+HTTPACTION = 0 command. The suggested fix by arunbharathi.arasu doesn't help. Instead the AT+HTTPACTION=1 command receives an OK from the SIM900, but then powers down when I follow it with AT+HTTPREAD.

Can anyone help me to fix this?
 

If I replace AT+HTTPACTION=0 with AT+HTTPACTION=1, as you suggest, then the SIM900 powers off on the next command, AT+HTTPREAD. Any other suggestions?
 

9 times out of 10 the problem will be power supply related i.e. not enough current.

Temporarily put a 1,000uF cap across the SIM900 supply pins and see if problem is eliminated, if so change the power supply.

Cheers.
 

9 times out of 10 the problem will be power supply related i.e. not enough current.

Temporarily put a 1,000uF cap across the SIM900 supply pins and see if problem is eliminated, if so change the power supply.

Cheers.

That fixed it. Thank you!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top