Benoit Payen

SCI communication with XBee

Discussion created by Benoit Payen on Apr 5, 2011
Latest reply on Apr 5, 2011 by Benoit Payen

Hi guys,

Here's the situation: I've got 2 XBee modules, each one is connected to an HCS08 (the GT60A) via SCI.


I'm trying to implement a basic communication to exchange data from MCU1 to MCU2, like this:

MCU1 <--SCI--> XBee1 <<----------RF---------->> XBee2 <--SCI--> MCU2

 

So far I've been able to send commands from the MCUs to the Xbees, which reply "OK\r" through SCI when they receive the command.
I have configured the XBees with the parameters DL=0xFFFF and MY=0xFFFF, because I want to broadcast messages, using the transparent mode.


After leaving the Command mode (with the "ATCN" command), the Xbees go to Idle mode. My problem is that in this mode, everytime I will try to send data from the MCU to the SCI register, the MCU would reset and the XBee would never receive the data to transmit.

 

So my concern is: why can I send data through SCI when the XBee is in Command mode, but not when it is in Idle mode?

Thanks for your help,
Benoit

Outcomes