Pages: [1]   Go Down
Author Topic: GSM Shield doesn't connect: CGREG: 0,2  (Read 311 times)
0 Members and 1 Guest are viewing this topic.
Berlin
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
I'm currentliy working with the GSM-Shield, and it connects sometimes, but isn't reliable, sometimes it doesn't get past the GSM.begin() and shows things like:
Quote
AT+CGREG?%13%
120 23>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
23 54>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%

I really don't what the reason could be, the GSM shield is working, because sometimes it connects and sends an SMS just like it should, no matter whether there's an external power source.

According to another post (http://forum.arduino.cc/index.php?topic=243407.0), the CGREG has  the following meaning:

Quote
When serach for AT commands in http://www.activexperts.com/mmtoolkit/at/commands/?at=%2BCGREG I can see that reply +CGREG: 0,2 can be parsed as:

0 - disable network registration unsolicited result code
[,,]
2 not registered, but ME is currently searching a new operator to register to

This could mean, that the operator network may have some issues, my other guess is, that's a problem in the library, but then again it wouldn't work at all.
Logged

“DO I DETECT A NOTE OF UNSEASONAL GRUMPINESS? said Death. NO SUGAR PIGGYWIGGY FOR YOU, ALBERT.”
― Terry Pratchett, Hogfather

Madrid (Spain)
Offline Offline
Full Member
***
Karma: 0
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The CGREG response is a response received directly from modem, and it receives this from network antenna. While library doesn't hang or freeze itself, the reason of problem of CGREG is network takes too much time to allow your SIM.
Logged

Pages: [1]   Go Up
Jump to: