Remember
Register
Home
/
Support
/
Support Forum
/
can xbee end device receive data from coordinator???
Digi Forum
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.
All categories
Digi Remote Manager
(390)
Python
(1,023)
RF Solutions and XBee
(8,464)
Digi TransPort
(792)
Digi Connect Cellular
(450)
DAL
(5)
Embedded Devices
(4,174)
Google Coral
(2)
Rabbit
(3,202)
Console Servers
(354)
Modbus and Industrial Automation
(246)
Realport
(604)
Serial Servers
(837)
Satellite Modules
(25)
USB
(1,275)
Serial Cards
(715)
ConnectPort Display
(58)
Feedback/Wish List
(93)
Other/Legacy
(380)
can xbee end device receive data from coordinator???
0
votes
xbee
asked
Feb 4, 2015
in
Satellite Modules
by
desta
New to the Community
(
0
points)
Please
log in
or
register
to add a comment.
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
Please
log in
or
register
to add a comment.
...