Best thing to do is this basic test to see if you can communicate with the Sim Shield.
First though, check the Serial Jumpers that they are selecting D7 and D8.
/* Basic AT tester for Sim900/800 Shield or Module Without a Sim Card
*
* The sim900 shield or module can be run from the Unos power supply.
*
* Power On the Shield, the Net led should flash 1hz and the Status led is on.
*
* Upload this program, start the Serial Monitor at 19200 baud
*
* Type AT in the top box next to Send and then hit Send or Return.
* It will return OK is its got through to the SIM chip.
*
* Type in AT+GSN and it should return the IMEI number printed on the chip
*
*/
#include <SoftwareSerial.h>
SoftwareSerial SIM900(7,8); // RX, TX
void setup()
{
SIM900.begin(19200);
Serial.begin(19200);
}
void loop()
{
if (SIM900.available())
{
while(SIM900.available())
{
Serial.write(SIM900.read());
}
}
if (Serial.available())
{
SIM900.write(Serial.read());
}
}
Do I have to set the jumper in hardware serial mode for this to work? How exactly do I set the jumpers. The guides I've seen are not very clear to me. What connects to what?
In software serial mode, all I get is AT AT AT AT.
In Hardware serial mode, all the commands echo back and then gets stuck on CGPSStatus.
I want to be able to modify the code to work with my gsm shield and later add a functionality to control a relay switch using sms.
I've been able to make calls, send sms, receive sms, get GPS coordinates using the SIM900 library. But I'm a noob and I'll I want to do is to do the same project done in the link above.
deekson:
I've been able to make calls, send sms, receive sms, get GPS coordinates using the SIM900 library. But I'm a noob and I'll I want to do is to do the same project done in the link above.
Ah, afraid I misunderstood your first post, thought you meant that you could not get the Sim shield to work at all.
Clearly is just a problem with that sites code as you now say the board works fine with other sim900 code.
Have you tried contacting that sites author for help with his code ?