Go Down

Topic: Arduino+XBee communicate with bare XBee? (Read 676 times) previous topic - next topic

ScottG

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?

PaulS

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...

ScottG

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?

PaulS

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.

ScottG

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.

PaulS

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.

ScottG

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.

ScottG


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.

bakenzilo

sorry, but I'm desperate here

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

ScottG


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.

bakenzilo

#10
Jul 01, 2012, 07:39 pm Last Edit: Jul 01, 2012, 07:43 pm by bakenzilo Reason: 1
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

Go Up