hi,
my GSM-Shield with Quectel M10 on a Mega2560 very often is hanging during gsmAccess.begin(PINNUMBER).
With debug mode I detected two different problems.
First problem:
Start GSM shield <--- output from my sketch
AT%13%
Power is on but the GSM shield does not respond at all.
I inserted following code (tip from this forum) before calling gsmAccess.begin(PINNUMBER) without success:
pinMode(7, OUTPUT);
digitalWrite(7,LOW);
delay(1000);
digitalWrite(7,HIGH);
delay(2200);
digitalWrite(7,LOW);
delay(3000);
Second problem:
Start GSM shield <--- output from my sketch
AT%13%
0 9>AT%13%%13%%10%OK%13%%10%
AT+CGREG?%13%
9 40>AT+CGREG?%13%%13%%10%+CGREG: 0,0%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
40 71>AT+CGREG?%13%%13%%10%+CGREG: 0,0%13%%10%%13%%10%OK%13%%10%
The response "...+CGREG: 0,0 ..." means "Not registered, ME is not currently searching a new operator to register to". This response is repeated on and on.
In cases when the GSM-Shield is working properly the response is several times"...+CGREG: 0,2 ..." and then "...+CGREG: 0,1 ...". The response with "...0,2..." means that ME is searching and finally "...0,1..." means "registered".
It is crazy!
Sometimes it works, sometimes there is no response at all and sometimes ME is not searching.
How to get it responding at all und how to get it searching?
The content of setup() is the same for all three types of performance.