Home/Support/Support Forum/can xbee end device receive data from coordinator???
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

can xbee end device receive data from coordinator???

0 votes
asked Feb 4, 2015 in Satellite Modules by desta New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
If your Xbee end device is in the range of coordinator, then definitely it will receive data either as a broadcast or uni cast.
answered Feb 4, 2015 by Love_Micky New to the Community (12 points)
Thanks for your answer, i think that it to, but when i try with arduino, it's not work, before that, i set DH and DL 0 in xbee end device, can you help me?
Do you use Xbee Series 2 ?
yes, i use xbee series 2, can help me please...
i try use my code in xbee coordinator like this:
#include <SoftwareSerial.h>

SoftwareSerial xbee(0, 1); // RX, TX

void setup()
{
    Serial.begin(9600);

    Serial.println( "Arduino started receiving bytes via XBee" );

    // Set the data rate for the SoftwareSerial port.
    xbee.begin(9600);
}

void loop()  {
    if (xbee.available()) {
        char temp= xbee.read();
        Serial.print(temp);
        if( temp == 'F'){
          char a = 'A';
          xbee.write(a);
        }
    }
    delay(1000);
}

And my code in xbee end device like this:

#include <SoftwareSerial.h>
#include <Xbee.h>

SoftwareSerial xbee(0, 1); // RX, TX
char c = 'A';

void setup()
{
    Serial.begin(9600);

    Serial.println( "Arduino started sending bytes via XBee" );

    //Set the data rate for the SoftwareSerial port
    xbee.begin(9600);
}

void loop() {
    // Send character via XBee to other XBee connected to Mac
    // via USB cable.
    xbee.write( c );

    //--- Display the character just sent on console. ---
    Serial.println( c );

    //--- Get the next letter in the alphabet, and reset to ---
    //--- 'A' once we have reached 'Z'.
    c = c + 1;
    if (xbee.available()) {
        char temp= xbee.read();
        Serial.println(temp);
        temp = c;
    }
    delay( 1000 );
}


that is wrong or right???
can help me please, give me tutorial about this....
thanks before
...