Home/Support/Support Forum/Problem in establishing network

Problem in establishing network

0 votes
I am trying to establish a connection between a router and a coordinator in AT mode with 0 as destination address of router and FFFF as destination address (low) of coordinator . I am interfacing this with an arduino . even without a print statement on the coordinator end , the serial monitor is printing the transmitted symbol. And if I try to check for the received symbol and try to print a different symbol , the serial monitor shows the same symbol as transmitted. Please refer the code.

Transmitting end:

void setup()
{
Serial.begin(19200);
}
void loop()
{
Serial.println('a');
}

Coordinator end: code 1:

void setup()
{
Serial.begin(19200);
}
void loop()
{
// without any code
}

Coordinator end: code 2:

void setup()
{
Serial.begin(19200);
}
void loop()
{
char data = Serial.read();
if(data=='a')
{
Serial.println("transmitting");
}
else
{

}
}

Do I need to make changes u=in the X ctu setup.
asked Jun 9, 2014 in RF Solutions and XBee by tej9288 New to the Community (0 points)

Please log in or register to answer this question.

2 Answers

0 votes
The default baud rate for the radios is 9600bps. Try opening your COM port up at this rate. Try also verifying that the router and coordinator are associated by Polling the AI, CH and ID parameters.
answered Jun 9, 2014 by mvut Veteran of the Digi Community (14,807 points)
0 votes
i think you are uploading a code which has serial.print statement in the setup block.
i too faced a similar problem when i used the print statement in the setup block.
answered Jun 9, 2014 by bshaman1993 New to the Community (1 point)
...