Problem communicating with SIM908 wiarduino uno

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?

SIM908.println("AT");
if(SIM908.available()){
rep[x]=SIM908.read();
x++;
Serial.print(rep[x]);
}
else Serial.println("SIM908 not available");

Heads up. Pay attention. I demand a response RIGHT NOW!

Ain't going to happen.

Just out of curiosity, which SIM908 shield?

PaulS:

SIM908.println("AT");

if(SIM908.available()){
rep[x]=SIM908.read();
x++;
Serial.print(rep[x]);
}
else Serial.println("SIM908 not available");



Heads up. Pay attention. I demand a response RIGHT NOW!

Ain't going to happen.

Excuse me i didn't understand what do you mean please !!