communication between xbee connected to arduino and xbee connected to PC

hello my problem is how to send a message from xbee connected to arduino mega 2560 via a wireless sd shield and an xbee connected to an usb explorer .
xbee1: set as a coordinatoor conected to the arduino
xbee2: set as a router connected to an usb explorer
the xbees are well configurated(PAN ID ,channel SH/SL and DH/DL..) they communicate well via the xctu terminal but when i try to apply the following program it doesn't work
PS: i can send caracters from the xbee connected to the explorer they are shown on the serial monitor of the arduino but the letter 'a' doesen't show on the terminal xctu of the router(connected to the explorer)
i know my situation seem's complicated but please i need help

the sketch has been selected from a tutorial on youtube:

char letter;
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.write('a');
delay(1000);
if (Serial.available())
{
letter=Serial.read();
Serial.print(letter);
}
}