I have the Arduino Leonardo and trying to interface it with the SM5100B shield.
I have jumped pins 2 and 3 to pins 10 and 11 as mentioned in http://tronixstuff.wordpress.com/2011/0 … -part-one/ I am using an external 5V power supply to power the board to ensure I have enough current supply. After trying the initial check code I am still not receiving anything in my serial monitor.
#include <SoftwareSerial.h>
char incoming_char=0; //Will hold the incoming character from the Serial Port.
SoftwareSerial cell(10,11); //Create a 'fake' serial port. Pin 10 is the Rx pin, pin 11 is the Tx pin.
void setup()
{
//Initialize serial ports for communication.
Serial.begin(9600);
cell.begin(9600);
Serial.println("Starting SM5100B Communication...");
}
void loop()
{
//If a character comes in from the cellular module...
if(cell.available() >0)
{
incoming_char=cell.read(); //Get the character from the cellular serial port.
Serial.print(incoming_char); //Print the incoming character to the terminal.
}
//If a character is coming from the terminal to the Arduino...
if(Serial.available() >0)
{
incoming_char=Serial.read(); //Get the character coming from the terminal
cell.print(incoming_char); //Send the character to the cellular module.
}
}
I am using the serial monitor in the arduino program and also using terminal v1.9b application to monitor it.
I am not even getting the first statement “Starting SM5100B Communication…”
Could anyone give me some advice on why I would not be communicating with it?
Thanks