problem programming bluetooth shield

I posted my problem in the robotics section but no there helped me i hope someone here will help me i uploaded the following code to the arduino when i send (a) through bluetooth terminal the led at pin 13 should light but nothing happens instead tx led light my problem is that i want the arduino to receive not send data which means i want the rx led to lights if there is something wrong with my code tell me this is the bluetooth shield i use http://www.elecfreaks.com/store/bluetooth-shield-shd18-p-233.html this is the code

#include <SoftwareSerial.h>

const int rxpin = 2;           // pin used to receive
const int txpin = 3; 
// pin used to send to
SoftwareSerial bluetooth(rxpin, txpin); // new serial port on given pins
int led=13;
char c;
void setup()
{
  Serial.begin(9600);  
  bluetooth.begin(9600); // initialize the software serial port
  Serial.println("Serial ready");
  bluetooth.println("Bluetooth ready");  
  pinMode(led,OUTPUT);
    digitalWrite(led,LOW);
    pinMode(rxpin,INPUT);
    pinMode(txpin,OUTPUT);
}

void loop()
{

  if (bluetooth.available())
  {
     c = bluetooth.read();
    Serial.write(c);
  }
  if (Serial.available())
  {
     c = Serial.read();
    bluetooth.write(c);
  }
  if(c=='a'){
    digitalWrite(led,HIGH);
  }
  if(c=='b'){
    digitalWrite(led,LOW);
  }
}

The way that you are using Serial is stupid. Use Serial to debug what you are getting from the bluetooth device. Do NOT use it for ANYTHING else until YOU know that your bluetooth POS is working properly.

you know what i dont understand you and you started to get on my nerve so dont answer me again and dont feel you are a genius or something .

why not try this to see if you have your bluetooth module communicating to your arduino.

Then uncomment the part that sends it back, once you know it is working to debug the transmission side.

please check your connections (unless you are using a shield)… and even post a photo on how they are connected that may tell us more.

#include <SoftwareSerial.h>

const int rxpin = 2;           // pin used to receive
const int txpin = 3; 
char myDataIn, myDataToSend;
int led = 13;
SoftwareSerial bluetooth(rxpin, txpin); // new serial port on given pins
//
void setup()
{
  Serial.begin(9600);  
  bluetooth.begin(9600); // initialize the software serial port
  Serial.println("Serial ready");
  pinMode(led,OUTPUT);
  //pinMode(rxpin,INPUT);// not sure you need with SoftwareSerial library
  //pinMode(txpin,OUTPUT);
}
//
void loop()
{
  if (bluetooth.available())
  {
    myDataIn = bluetooth.read();
    Serial.print("Recieved: ");
    Serial.println(myDataIn);
  }
  /*
  if (Serial.available())
  {
    myDataToSend = Serial.read();
    bluetooth.write(myDataToSend);
    Serial.print("Sent: ");
    Serial.println(myDataToSend);
  }
  */
  if(myDataIn == 'a' )
  {
    digitalWrite(led,HIGH);
  }
  if(myDataIn == 'b')
  {
    digitalWrite(led,LOW);
  }
}

i dont understand how to debug or what it is .

Hi I notice in the device info page it says you can set to master or slave have you set it to slave?

yes , i want a code without any variables like (c) bec. it makes the serial and bluetooth read looks strange on the screen and i think this may be the reason why the led is not blinking .