Hi guys,
I have a ITEAD SIM5216A 3g shield onto of an arduino uno. code below
Im currently have trouble getting it to talk to the Arduino uno at all. i have configured the jump pins on the top of the board to pin 7 is RX and 6 TX as
I do have a connection to the network as the 4th light on the ITEAD is flashing.
Apart from that from what i can tell my code should be returning something from the unit ???
Also please note that the SSSSS and FFFFF do come up on the serial monitor.
any help would be greatly appreciated, as im new to the 3g stuff
#include <SoftwareSerial.h>
SoftwareSerial GSM(6,7);
void setup(){
Serial.begin(19200);
GSM.begin(19200); //GSM
delay(2000);
Serial.println("SSSSS");
GSM.println("AT\r");
delay(100);
ShowSerialData();
GSM.println("AT+CREG?\r");
delay(100);
ShowSerialData();
delay(300);
GSMkonf();
delay(100);
ShowSerialData();
Serial.println("FFFFF");
}
//do nothing
void loop() {}
////////////////////////////////////////////////////////
void GSMpower()
// software equivalent of pressing the GSM shield "power" button
{
digitalWrite(7, HIGH);
Serial.println("Power Reset Start");
delay(1000);
digitalWrite(7, LOW);
Serial.println("Power Reset End");
delay(5000);
}
void ShowSerialData()
{
while(GSM.available())
Serial.write(GSM.read());
}
void GSMkonf (){
GSM.print("AT+CMGF=1\r");
delay(100);
GSM.print("AT+CNMI=2,2,0,0,0\r");
delay(100);
}