3g ITEAD sim5216A not talking back to arduino uno
hi guys,
i have itead sim5216a 3g shield onto of arduino uno. code below
im have trouble getting talk arduino uno @ all. have configured jump pins on top of board pin 7 rx , 6 tx as
i have connection network 4th light on itead flashing.
apart from can tell code should returning unit
also please note sssss , fffff come on serial monitor.
any appreciated, im new 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 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);
}
i have itead sim5216a 3g shield onto of arduino uno. code below
im have trouble getting talk arduino uno @ all. have configured jump pins on top of board pin 7 rx , 6 tx as
i have connection network 4th light on itead flashing.
apart from can tell code should returning unit
also please note sssss , fffff come on serial monitor.
any appreciated, im new 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 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);
}
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > 3g ITEAD sim5216A not talking back to arduino uno
arduino
Comments
Post a Comment