Hello,
Today i have setup my Arduino UNO with the GPRS Shield v1.2 and it seems to work.
But I get sometimes wrong char from the GPRS Shield after i send an AT Command.
You can see the terminal event, that the GPRS Shield starts correctly and with command AT+CMGR=3 I want to read the messages 3.
But I need to retype the command several times, to get the phonenumber correctly transmitted.
What is the Problem?
I use Arduino 1.0
<0>ÿÿÿÿÿÿÿÿ
RDY
+CFUN: 1
+CPIN: SIM PIN
AT+CPIN=XXXX
OK
+PACSP: 1
Call Ready
AT+CMGR=3
+CMGR: “REC READ”,"+436–42163404","",“12/06/09,19:50:43+˜8”
:-
ÿÿAT+CMGR=3
+CMGR: “REC READ”,"+436–42163404","",“12/06/09,19:50:43«08”
:-AT+CMGR=3
+CMGR: “REC READ”,"+4“6642163404","",“12/06/09,19:50:43+08”
:-AT+CMGR=3
+CMGR: “REC READ”,"+43664²163404","",“12/06/09,19:50:43+0¸”
:-AT+CMGR=3
+CMGR: “REC READ”,"+436–42163404","",“12/06/09,19:50:43+˜8”
:-
AT+CMGR=3
+CMGR: “REC READ”,"+4366”2163404","",“12/06/09,19:50:43+°8”
:-AT+CMGR=3
+CMGR: “REC READ”,"+43664216344","",“12/06/09,19:50:43+08”
:-ÿÿ
And here my small Arduino Sketch
#include <SoftwareSerial.h>
SoftwareSerial GPRS(4, 5);
void setup()
{
GPRS.begin(19200); // the GPRS baud rate
Serial.begin(19200); // the GPRS baud rate
pinMode(3, OUTPUT);
digitalWrite(3,LOW);
delay(1000);
digitalWrite(3,HIGH);
delay(2500);
digitalWrite(3,LOW);
delay(3500);
GPRS.print(“AT+CPIN=xxxx\r”);
}
void loop()
{
if (GPRS.available())
{
Serial.write(GPRS.read());
}
if (Serial.available())
GPRS.write(Serial.read());
}