hi guys
im using arduino due & sm5100b cellular shield for a project of mine and i need to send an sms message to my phone.
i installed the shield correctly, using some tutorials i found in troxinstuff.
im getting all the right responses at the startup of the shield (the registered to network part and so on..)
im using the bray terminal and when im calling the shield im getting a ring.
but when im trying to send an sms message or make an outside call nothing happens at all,
i dont get a response from the module, maybe im doing something wrong.
i have this basic code:
#define GSMSerial Serial1 // the hardware serial will now be known as GSMSerial
#define SMSerial Serial //
char incoming_char=0; //Will hold the incoming character from the software Serial Port.
void setup()
{
SMSerial.begin(9600);
GSMSerial.begin(9600);
SMSerial.println("Starting SM5100B Communication...");
}
void loop()
{
if(GSMSerial.available()>0) //If a character comes in from the cellular module...
{
SMSerial.write(GSMSerial.read()); //write it out to the serial monitor so we can see it
}
if(SMSerial.available()>0) //If you type something into the serial monitor
{
incoming_char=SMSerial.read(); //Get the character coming from the terminal
GSMSerial.print(incoming_char); //Send the character to the cellular module.
}
}
and input all the AT commands in the bray terminal to make the call /sms
it is quite frustrating since the whole thing should be pretty simple and i feel like im missing something.
can anyone please help me understand what im doing wrong or missing?
thanks in advance,
serg.