Pages: [1]   Go Down
Author Topic: Arduino+XBee communicate with bare XBee?  (Read 595 times)
0 Members and 1 Guest are viewing this topic.
New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 537
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've got two XBees Series 1 (API mode) each connected to an Arduino and I can get them to communicate using xbee.h library.  I'd like to add a 3rd XBee to the mix that is not connected to an Arduino and it has some sensors connected to it's inputs.  Is this possible?  Are there functions in the xbee.h library that would let me read the inputs on the 3rd XBee?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is this possible?
Yes, and no. Yes it is possible to have two XBees, on Arduinos using the XBee library, communicate with a 3rd XBee.

No, using the XBee library on that XBee is not possible. How could it be? There is no Arduino running code...
Logged

New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 537
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I didn't mean to imply that I wanted xhee.h running on the 3rd XBee, I understand that doesn't make sense since it's not connected to an Arduino.  What functions in the xbee.h library would let me read the input values on the 3rd XBee?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What functions in the xbee.h library would let me read the input values on the 3rd XBee?
Perhaps the issue is that you need to re-word this question. You can't do anything ON the 3rd XBee, since you can't change the programming on the microcontroller on the XBee.

If the 3rd XBee is operating in API mode, the packets that it sends can be read using the XBee library, and packets that the XBee library formats, that the Arduino sends, can be understood by that XBee.
Logged

New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 537
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to connect some sensors to the input pins on the 3rd XBee (the one without an Arduino).  From my other XBee which is on an Arduino, I want to read the values of the input pins on the 3rd XBee.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 644
Posts: 50452
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I want to connect some sensors to the input pins on the 3rd XBee (the one without an Arduino).
OK. Go right ahead.

Quote
From my other XBee which is on an Arduino, I want to read the values of the input pins on the 3rd XBee.
It doesn't work that way. The 3rd XBee needs to read the values of the pins, and broadcast them. One or the other of the other XBees receives the packets sent by the 3rd XBee and needs to decode them to determine what the 3rd XBee found the pin states to be.

This is almost entirely a configure-the-XBees-correctly issue.

I'd strongly recommend that you acquire "Wireless Sensor Networks" by Rob Faludi. It is an excellent resource for using XBees in AT or API mode, and configuring them to read I/O pins, etc.

The book applies specifically to Series 2 radios, but most of the examples and exercises work equally well with Series 1 radios.
Logged

New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 537
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

bakenzilo,

Since your questions is a lot different then the topic of this thread, It would be better if you started a new post instead of hijacking this one.  It just makes it confusing.
Logged

New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 537
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd strongly recommend that you acquire "Wireless Sensor Networks" by Rob Faludi. It is an excellent resource for using XBees in AT or API mode, and configuring them to read I/O pins, etc.

The book applies specifically to Series 2 radios, but most of the examples and exercises work equally well with Series 1 radios.

I'd heard about that book, but I didn't get it because it's mostly about Series 2 XBees.  But if a lot of the Series 2 examples apply to Series 1, I think it's worth getting a copy.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry, but I'm desperate here

I'll delete that post since is getting on your nerves obviously...chill out
Logged

New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 537
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry, but I'm desperate here

I'll delete that post since is getting on your nerves obviously...chill out

I'm just trying to make it easier for everyone.  You're more likely to get a good answer by putting up a new post anyway. Also, Digi has pretty good support, you can actually get tech support on the phone if you want.  Here's Digi's support email address: rf-experts@digi.com

I don't really have any suggestions for your problem, but have you thought about just using 16-bit addressing instead of 64-bit.  It's a bit simpler.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I don't really have any suggestions for your problem, but have you thought about just using 16-bit addressing instead of 64-bit.  It's a bit simpler.

yup, I did, but didn't find how to send a message to other xbee using just 16-bit address (I'm using using Arduino Xbee library and Xbee Series 2)

Quote
Also, Digi has pretty good support, you can actually get tech support on the phone if you want.  Here's Digi's support email address: rf-experts@digi.com

thanks, I'll try to contact them if I don't get any help here

once again, sorry for jumping into your topic
« Last Edit: July 01, 2012, 12:43:05 pm by bakenzilo » Logged

Pages: [1]   Go Up
Jump to: