hello, I searched the forum but have not found anything that describes my case.
I just started a few days with arduino and do not know the rules of the forum
I live in Roma (Italy)
I'm using arduino mega 2560 rev3 and gsm shield developed with TELEFONICA, Windows 7 64bit and Arduino 1.0.5
I'm using my own sim that is enabled to send sms.
When I connect arduino, the sim can be reached by phone. (the phone rings!)
I use the example to send text messages, but "gsmAccess.begin" returns only the state "CONNECTING" in place of the state "GSM_READY" and are not able to send sms.
In debug I get only "AT%13%".
I tried to send sms with the sim in the phone and everything works.
I tried with the correct PinNumber ("xxxx") and without PinNumber ("")
I tried the "RESET" button on the board
On the board, the LED "ON" is lit and flashing LEDs "NET" and "STATUS"
I tried to change sim but the problem remains.
I attach source and output
can someone help me?
any ideas?
thanks
Marco
#
#SKETCH
#
#include <GSM.h>
GSM gsmAccess(true);
GSM_SMS sms;
void setup()
{
Serial.begin(9600);
char code='X';
while(true)
{
Serial.println("try Access");
code=gsmAccess.begin("",true,false); // code=gsmAccess.begin("0000",true,false); // my pin is "0000"
Serial.println("\nAfter Access");
if(code==GSM_READY)
{
Serial.println("code is GSM_READY");
break;
}
if(code==CONNECTING)
{
Serial.println("code is CONNECTING");
}
if(code==ERROR) {Serial.println("code is ERROR");}
if(code==IDLE) {Serial.println("code is IDLE");}
if(code==GPRS_READY) {Serial.println("code is GPRS_READY");}
if(code==TRANSPARENT_CONNECTED) {Serial.println("code is TRANSPARENT_CONNECTED");}
delay(1000);
}
}
void loop()
{
}
SERIAL OUTPUT
try Access
AT%13%
After Access
code is CONNECTING
try Access
AT%13%
After Access
code is CONNECTING
try Access
...