Sim900 Debugging Testing Module Arduino Santiapps
Arduino - SIM900 GSM_GPRS module Santiapps Marcio Valenzuela
Arduino – SIM900 GSM_GPRS Module

This is actually my work log on Arduino & SIM900 GSM/GPRS module.

I’m starting off from here:

https://github.com/MarcoMartines/GSM-GPRS-GPS-Shield/blob/GSMSHIELD/examples/GSM_GPRSLibrary_Client/GSM_GPRSLibrary_Client.ino

But Im getting this error:

status=READY
ATT: ERROR
RIC:
ERROR

DB:STARTING NEW CONNECTION
ATT: SHUT OK
RIC:
SHUT OK

DB:SHUTTED OK
status=ERROR ==> Not connecting to apn for some reason.

DB:NOT CONN
ATT: OK
RIC:
ERROR

DB:NOT CONN

Number of data received:
0

Data received:

This was quickly solved by increasing the timeout value in the inetGSM library file from 500 to 10000 ms.

Now the error is:

GSM Shield testing.
DB:ELSE
DB:CORRECT BR
RIC: ATE0
ATT: +CPMS:
+CPMS: 28,190,28,190,28,190
ATT: SHUT OK
status=READY
DB:STARTING NEW CONNECTION
DB:SHUTTED OK
DB:APN OK
DB:CONNECTION OK
RIC: 10.124.39.139
DB:ASSIGNED AN IP
status=ATTACHED
DB:RECVD CMD
ATT: CONNECT OK
DB:NOT CONN
ATT: OK
RIC: AT+CIPSTART=”TCP”,”www.google.com”,80
ERROR
DB:NOT CONN
ATT: OK
RIC: AT+CIPSTART=”TCP”,”www.google.com”,80
ERROR
DB:NOT CONN
Number of data received:
0
Data received: 

So it seems its losing the connection.  I believe it might be due to a power loss situation where the SIM900 is reported to require a steady 2A power supply to avoid such issues when it requires bursts of energy.

Im currently researching how to solve this issue…

I was about to try a capacitor (22microF) and a 4xAA battery pack thru the Vin when all of a sudden it worked!

I just tried it again another day and it worked again.  Apparently my sim wasn’t properly activated…

GSMesting.
GSM Shield testing.
ATT: OK
RIC:
OK

DB:ELSE
ATT: OK
RIC:
OK

DB:ELSE
ATT: OK
RIC:
OK

DB:ELSE
ATT: OK
RIC:
OK

DB:CORRECT BR
ATT: OK
RIC:
OK

ATT: OK
RIC:
OK

ATT: OK
RIC: ATE0

OK

ATT: OK
RIC:
OK

ATT: OK
RIC:
OK

ATT: OK
RIC:
OK

ATT: OK
RIC:
OK

ATT: +CPMS:
RIC:
+CPMS: 37,190,37,190,37,190

OK

ATT: OK
RIC:
OK

ATT: SHUT OK
RIC:
SHUT OK
status=READY
ATT: ERROR
RIC:
ERROR

DB:STARTING NEW CONNECTION
ATT: SHUT OK
RIC:
SHUT OK

DB:SHUTTED OK
ATT: OK
RIC:
OK

DB:APN OK
ATT: OK
RIC:
OK

DB:CONNECTION OK
ATT: ERROR
RIC:
10.125.69.222

DB:ASSIGNED AN IP
status=ATTACHED

10.125.69.222
ATT: OK
RIC:
OK

DB:RECVD CMD
ATT: CONNECT OK
RIC:
OK

ATT: OK
RIC:
CONNECT OK

DB:OK TCP
ATT: >
RIC:
>
DB:>
ATT: SEND OK
RIC:
SEND OK

DB:SENT

Number of data received:
50

Data received:

HTTP/1.0 302 Found
Location: http://www.google.hn/?gws_rd=cr&ei=rEtyVZzBI9XfsAT9zLvABA
Cache-Control: private
Content-Type: text/html; charset=UTF-8
Set-Cookie: PREF=ID=4bf4186862639d93:FF=0:TM=1433553836:LM=1433553836:S=vDVVuaRrLthWg9Cz; expires=Mon, 05-Jun-2017 01:23:56 GMT; path=/; domain=.google.com
Set-Cookie: NID=68=cj3CJ_MYqgELI9nt9GdFr0DLx8QyH9jRSQ3hWD8XgKpJhzAmKLaw-bY1KDmg5ylOvsj5zDAfkQ29QmOurH9vHxhb44f5wMqaH6AuO5vtHIJBEF1_4U4IqTyVEswuSdmq; expires=Sun, 06-Dec-2015 01:23:56 GMT; path=/; domain=.google.com; HttpOnly
P3P: CP=”This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info.”
Date: Sat, 06 Jun 2015 01:23:56 GMT
Server: gws
Content-Length: 258
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Alternate-Protocol: 80:quic,p=0

<HTML><HEAD><meta http-equiv=”content-type” content=”text/html;charset=utf-8″>
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF=”http://www.google.hn/?gws_rd=cr&amp;ei=rEtyVZzBI9XfsAT9zLvABA”>here</A>.
</BODY></HTML>

CLOSED

4 Comments

Leave a Reply