LoNet Mini GSM Module : sim800L gprs post request

0 votes
I've been working on a LoNet mini GSM module (SIM800L), interfacing it with Arduino. I've inserted the SIM mobile card with Internet connection available. Through serial monitor I'm communicating with it with no problems, but when it comes to make a GET or a POST request to a webserver page it returns Network Error (601). Here it is:

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

AT+HTTPINIT OK

AT+HTTPPARA="CID",1 OK

AT+HTTPPARA="URL","http://:8080/folder/savedata.php" OK

AT+HTTPACTION=0 OK +HTTPACTION: 0,601,0 //601: Network Error

AT+HTTPREAD=1,100000 OK

And no response of the "echo" of the php page... Do you have any suggestion?

Thanks.
Nov 16, 2018 in IoT (Internet of Things) by Upasana
• 7,560 points
114 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Did you set up your PDP context already? I think some main concepts are that you need to successfully attach and startup GPRS connection.

Some things that need to be active before this will work:

1) Network registration

AT+CREG?     should return 0,1    if so, skip to 2)

if it doesn't then you can start by turning on and off the modem by inputting AT+CFUN=0 and then AT+CFUN=1

if you are still having problems registering make sure you have selected the correct network: AT+COPS? should see your service providers name in the results eg. AT+COPS: 1,0,"T-Mobile USA"

If you don't, then make sure your band is set properly to your service provider. Look up your providers 2G band e.g. t-mobile uses PCS_MODE for their 2G service. set this via: AT+CBAND="PCS_MODE"

Also, obviously you should make sure you have signal: AT+CSQ should return at at least a 5 or 6

2) Network Activation

AT+CIPSHUT   
AT+CGATT=1      - this can take some time to get through. I have a 40 sec timeout

Its important for this step to work. If it doesn't perhaps restart your modem. But this is a key part.

3) setting PDP context and bringing up GPRS service

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

set your APN: find out what your 2g APN is from your provider. e.g. for t-mobile: epc.tmobile.com define your APN:

T+SAPBR=3,1,"APN","epc.tmobile.com"

AT+SAPBR=1,1        This is the most important part to get through. Sometimes it takes a while to get through, I have a timeout on this part for 3 minutes to let it work.

if this doesn't give you an error proceed:

4) sending HTTP Basically proceed with what you have...

an example of what I do:

AT+HTTPTERM
AT+HTTPINIT
AT+HTTPPARA="CID",1
AT+HTTPPARA="URL","www.google.com"
AT+HTTPACTION = 0      This should return 200 if it is successful

5 shut down GPRS

AT+CIPSHUT    this may give you an error buts its not important
AT+SAPBR=0,1     can take awhile 
AT+CGATT=0       also can take a while

anyways I wrote some pretty neat lightweight code for arduino to send data via HTTP. I also wrote one for SMS. let me if you want to take a look. I use a SIM800L -- one of the cheap breakout boards.

answered Nov 16, 2018 by Shubham
• 12,150 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer
0 votes
1 answer

Connecting GSM Module to Raspberry Pi 2

Hey, just use any 'supported' USB-to-Serial adapter ...READ MORE

answered Nov 22, 2018 in IoT (Internet of Things) by DataKing99
• 8,100 points
90 views
0 votes
1 answer

Issues with Intel Edison MRAA module

You can work on this choice:- In the ...READ MORE

answered Jul 11, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
30 views
0 votes
1 answer

IoT request response protocol

Based on your requirement of a light ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
163 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Suggest Implementation method for Smart Parking Points

They are different things. Raspberry PI is ...READ MORE

answered Aug 24, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
16 views
0 votes
1 answer

NodeMCU HTTP : How to use HTTPS post request?

Your firmware might not have SSL/TLS enabled. ...READ MORE

answered Feb 11 in IoT (Internet of Things) by Shubham
• 12,150 points
78 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.