First, I want to publicly thank John Boxall from tronixstuff with the series on using the SM5100B. However, even with those excellent instructions, I’m still not getting a successful connection-at least I don’t think I am. I have stacked the SM5100B onto a UNO R2. I wired a battery pack with 3 AA batteries directly into the SM5100B sheild, black wire to GND and red wire to 5V. I have a Quad-band Cellular Antenna SMA (CEL-08347) attached to help with reception. I have an AT&T SIM card that I activated at the local store installed. Although, I am in an urban area (Viginia, USA) where reception is not an issue for AT&T (using Go Phone SIM card, prepaid wireless). I’ve used the instructions from tronixstuff except I could not find an unlocked phone to be able to turn off the power-on PIN requirement. Is this an issue? Below is my sketch using IDE v.1.0:
#include <SoftwareSerial.h> //Include the NewSoftSerial library to send serial commands to the cellular module.
#include <string.h> //Used for string manipulations
char incoming_char=0; //Will hold the incoming character from the Serial Port.
SoftwareSerial cell(2,3); //Create a 'fake' serial port. Pin 2 is the Rx pin, pin 3 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 used Bray’s Terminal and set the following paramaters:
Baud: 9600
Data Bits: 8
Parity: None
Sop Bits: 1
Handshaking: none
And sent the following command at the bottom of the window without +CR selected: AT+SBAND=1 (although I tried 0, 2 and 3 as well)
I yield the following when I select reset on the shield
Starting SM5100B Communication…
+SIND: 1
+SIND: 10,“SM”,1,“FD”,1,“LD”,1,“MC”,1,“RC”,1,“ME”,1
+SIND: 3
+SIND: 8
+SIND: 4
Is this the correct response?