Page 1 of 1
XBee api
Posted: Fri Mar 25, 2011 9:51 am
by timmos
Hallo,
i'm using XBee series 1 modules in api mode, they must transmit some analog signals...
This works fine, on the receiver XBee i can see the values of my ADC's with Zigbee operator:
http://www.zigbeeoperator.com/
Now my question is, how can i process those values with an arduino?
Re: XBee api
Posted: Fri Mar 25, 2011 10:06 am
by Digit
I would start with connecting pins DIN and DOUT of the XBee to Arduino pins.
Usually I use the NewSoftSerial library to create a Serial connection on non-standard ports for this.
This way you should be able to receive the API frames on the Arduino.
From there it's a matter of writing code... have a look at
http://code.google.com/p/xbee-arduino/ for example, this is an Arduino library for communicating with XBees in API mode (never used it myself though).
Maybe that will help.
Re: XBee api
Posted: Fri Mar 25, 2011 10:11 am
by timmos
if there is another way than api mode, that's also good...
What i want is 5 analog values wireless in my arduino, is there a better solution then api mode?
i've visit your site and blog, nice, but i can't find how you did some things :d
Re: XBee api
Posted: Fri Mar 25, 2011 10:37 am
by Digit
Since you use series1 XBees which are for point to point, there's less benefit in using API mode.
API mode is more flexible but needs some more work on code to work with.
Maybe in your case AT mode will suffice; and if you have specific questions, just ask.
OTOH, I can't imagine that what you want hasn't been done dozens of times already...

Re: XBee api
Posted: Tue Mar 29, 2011 12:46 pm
by timmos
it works now in api mode, avery 5 seconds he sent me the value of one adc...
But i want to sent more then one adc at once, what's the best way to transmit the values as fast as possible?(eg every ms)
Re: XBee api
Posted: Tue Mar 29, 2011 11:57 pm
by Digit
What modem type and Function set are on your XBee right now?
Cause with the right firmware it's just a matter of configuring the pins you want to use as ADC and you'll get multiple values in one API frame...
Re: XBee api
Posted: Wed Apr 06, 2011 8:41 am
by timmos
What do you mean?
I'm using XBee series 1 modules...
XB24 XBEE 802.15.4 version 10E8
Re: XBee api
Posted: Wed Apr 06, 2011 9:12 pm
by Digit
I am talking about the XBee ADCs. You too?
In that case, with the firmware you mention, you can have up to 6 ADC's. (D0...D5).
But I'm more familiar with Series 2 API mode, so I could be wrong.
Re: XBee api
Posted: Thu Apr 07, 2011 8:42 am
by timmos
i think we are talking about the same
i want to use 4 analog inputs from the xbee module, so 4 ADC's, then i want the fastest way to transmit the value's, is that possible with more than 10 values/second?
Am i wrong or is the fastest way to transmit the values the api mode?