Hi
i'm trying to make my arduino uno work with the sim908 GPS/GSM shield with this simple code just to make sure that it works first:
#include<SoftwareSerial.h>
int TX = 11;
int RX = 10;
int modGSM = 8;
int modGPS = 7;
SoftwareSerial SIM908(RX,TX);
int x =0;
char rep[100];
void setup(){
pinMode(TX,OUTPUT);
pinMode(RX,INPUT);
pinMode(modGSM, OUTPUT);
pinMode(modGPS, OUTPUT);
Serial.begin(115200);
Serial.println("Initializing...");
delay(2000);
SIM908.begin(9600);
Serial.println("AT");
SIM908.println("AT");
if(SIM908.available()){
rep[x]=SIM908.read();
x++;
Serial.print(rep[x]);
}
else Serial.println("SIM908 not available");
}
void loop(){
}
but i keep having the message "SIM908 not available."
could someone help me please?