Programming with Wireless Programming Modules for Arduino

On trying to upload the program the ecoduino board (http://www.dfrobot.com/wiki/index.php?title=Auto_flower_watering_kit%28SKU:KIT0003%29) with help of wireless programming modules for arduino (http://www.dfrobot.com/wiki/index.php?title=Wireless_Programming_Module_For_Arduino_%28SKU:TEL0037%29) i received the following error:

avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

with the following code:

void setup() {
  Serial.begin(115200);      //initialize serial
  pinMode(13, OUTPUT);    //set pin 13 as output
}

void loop() {
  while(Serial.available()){  //is there anything to read?
    char getData = Serial.read();  //if yes, read it

    if(getData == 'a'){
     digitalWrite(13, HIGH);
    }else if(getData == 'b'){
     digitalWrite(13, LOW);
    }
  }
}

The right serial port and the Arduino UNO board was selected. When the program was uploaded to the board with the help of a serial light adapter there was no error received and the program was successfully uploaded to the board, the serial light adapter was on a different COM port i.e COM3.

The wireless programming modules were configured via XBee USB Adapter V2.0 using the configuration tools software provided on the DFRobot page and the instructions give on the link mentioned.

The following settings were applied to both the WPMs: Baud Rate: 115200 Microcontroller: Arduino UNO Air Rate: 250K Time Out: 20 Frequency: 125 Baud Rate:115200 Module ID: 192.168.1.1.1

After both the WPMs were configured with the above settings one of the WPM was set up on the XBee Adapter and the other on the ecoduino Board an attempt was made to upload the program onto the board with both the MODE and PROG_EN switches in off mode. After the error showed up another attempt was made to upload the program onto the board with the PROG_EN switch in ON mode but to no avail.