Hi, I'm running a GSM module on Arduino Uno board and I am having trouble with initializing.
In the Test Modem example I got a wrong IMEI number but it is saying that the modem is working fine.
In the Pin Management example I got the Pin and Puk locked message.
Lastly, in the TestGPRS example I got the feedback as below:
Connecting GSM network...AT%13%
0 9>J%253%%13%%13%%10%OK%13%%10%
AT+CGREG?%13%
9 40>E%253%+CGREG?%13%%13%%10%+CGREG: 0,1%13%%10%%13%%10%OK%13%%10%
AT+IFC=1,1%13%
40 56>PU%165%)%212%T1,1%13%%13%%10%OK%13%%10%
AT+CMGF=1%13%
56 72>AT+CM%253%F=1%13%%13%%10%OK%13%%10%
AT+CLIP=1%13%
72 87>T+CLIP=1%13%%13%%10%OK%13%%10%
ATE0%13%
87 98>ATE0%13%%13%%10%OK%13%%10%
AT+COLP=1%13%
98 107>%13%%10%ERROR%13%%10%
ERROR
What could be the problem?
I tried running it with another library called SerialGSM and I am able to send sms to my phone. The code is as below:
#include <SerialGSM.h>
#include <SoftwareSerial.h>
SerialGSM cell(2,3);
void setup(){
Serial.begin(9600);
cell.begin(9600);
cell.Verbose(true);
cell.Boot();
cell.FwdSMS2Serial();
cell.Rcpt("Enter phone number");
cell.Message("Testing 123");
Serial.print("Enter 1 to send message");
while(cell.available())
{
char c= Serial.read();
if(c == '1')
{
cell.SendSMS();
}
}
}
void loop(){
if (cell.ReceiveSMS()){
Serial.println(cell.Message());
cell.DeleteAllSMS();
}
}
What could be the problem when running arduino gsm library?