![]() Download Latest Version |
November 21st, 2010 ·
1098 views / 322 downloads Category: Libraries Maturity: Beta API version: 1.4.3 Tags: xbee USB dongle zigbee 802.15.4 Application may depend on:
|
This is a port of the xbee-api. It presents a high level abstraction for controlling XBee radios. xbee-api requires rxtx and log4j; fortunately, both had been ported to BUG :). This are included through a simple Import-Package statement in the manifest; it would be interesting if someone created a service of this, but so far I haven’t needed it. All packages in the api are exported the same way.
About the dependencies:
com.buglabs.emulator.rxtx: the repository has changed so the new address to install the package is this one
log4jlib_osgi: I had some problems running the api against this library in the virtual BUG. All worked well using a slightly modified version, with an activator (with just the code automatically generated by Dragonfly). Also, you may need to export (and import them in this project) more packages to use some classes in the api (e.g. org.apache.log4j.spi)
Last but not least, the api needs to be used with openJDK (so I’m hoping it’ll work out of the box with 2.0 and the new USB dongle module)
Usage:
You can start another project or add an activator to this one and call the main methods in the example packages to test the functionality, for example:
ApiSenderTest.main(null);
To write your own app, just follow the projects wiki
I’ve used the BUGs with XBee 802.15.4 radios, Sparkfun’s USB dongle and the USB in the VonHippel module. The XBees simply appear as tty devices (e.g. ”/dev/ttyUSB0”) so you should change the xbee.open(...) methods in the examples to match the USB devices in your BUG or PC when using the virtual BUG. Although you can program the radios with the API, Digi’s XCTU is a good starting point for configuration (here’s a way to use it in linux)
MANY thanks to Andrew Rapp for this great API and many thanks as well to Jconnolly for teaching me step by step how to do this port XP
| Download Latest Version |
| Version | Date | Uploaded by | Notes | |
|---|---|---|---|---|
| Version 1 | November 21st, 2010 | maurothesandman | This is a port of the xbee-api (http://code.google.com/p/xbee-api/). It presents... (more) This is a port of the xbee-api (http://code.google.com/p/xbee-api/). It presents a high level abstraction for controlling XBee radios. xbee-api requires rxtx and log4j; fortunately, both had been ported to BUG :). This are included through a simple Import-Package statement in the manifest; it would be interesting if someone created a service of this, but so far I haven't needed it. All packages in the api are exported the same way. About the dependencies: com.buglabs.emulator.rxtx: the repository has changed so the new address to install the package is: http://repo.buglabs.net/legacy/bug-extras/com.buglabs.bug.jni.rxtx_1.0+svnr10825-r2_bug.ipk log4jlib_osgi: I had some problems running the api against this library in the virtual BUG. All worked well using a slightly modified version, with an activator (with just the code automatically generated by Dragonfly). Also, you may need to export (and import them in this project) more packages to use some classes in the api (e.g. org.apache.log4j.spi) Last but not least, the api needs to be used with openJDK (http://community.buglabs.net/kgilmer/posts/213-OpenJDK-on-BUG-1-3-Devices-Update-now-with-shark-). Usage: You can start another project or add an activator to this one and call the main methods in the example packages to test the functionality, for example: ApiSenderTest.main(null); To write your own app, just follow the projects wiki: http://code.google.com/p/xbee-api/w/list I've used the BUGs with XBee 802.15.4 radios, Sparkfun's USB dongle (http://www.sparkfun.com/products/9819) and the USB in the VonHippel module. The XBees simply appear as tty devices (e.g. "/dev/ttyUSB0") so you should change the xbee.open(...) methods in the examples to match the USB devices in your BUG or PC when using the virtual BUG. Although you can program the radios with the API, Digi's XCTU is a good starting point for configuration (here's a way to use it in linux: http://lizard43.blogspot.com/2008/10/x-ctu-with-linux.html) MANY thanks to Andrew Rapp for this great API and many thanks as well to Jconnolly for teaching me step by step how to do this port XP (collapse) | download |
| Viewing xbee_api_0_9_osgi | Link |
2 Comments |
|
monster said on May 21st, 2012 02:58:06 AM



monster said on May 21st, 2012 02:57:34 AM