background preloader


Facebook Twitter

DevelopersGuide - xbee-api - Developer's Guide - A Java API for Digi XBee/XBee-Pro OEM RF Modules. The XBee class is the primary interface for communicating with an XBee radio and a gateway to the wireless network. The XBee class coordinates sending and receiving data, via packets. An instance of the XBee class is created as follows: XBee xbee = new XBee(); This software communicates with XBee radios through serial communication, so you will need to connect an XBee radio (typically a coordinator) to your computer's serial port.

Since most computers don't have serial ports these days, a USB-serial adapter is a popular choice for interfacing with XBees. The open() method must be called to establish a serial connection to the radio."COM1", 9600); The COM port varies depending on the operating system: API Mode In API mode, we communicate with XBee radios by sending and receiving packets. Transmit Packets Receive Packets Sending Packets The XBee class provides two methods for sending packets: sendAsynchronous and sendSynchronous. Xbee.sendAsynchronous(new AtCommand("NT")); AT Command. Libxbee - C/C++ library to aid the use of Digi XBee radios in API mode. Feel free to ask questions! Either email, or I'm often in #libxbee on

News 3 September 2013: Series 6B (WiFi) support is now in the master branch! 26 August 2013: I've updated the 'Getting Started Guide' for libxbee! 23 June 2013: Series 6 (WiFi) XBee modules are now supported! 11 February 2013: Basic support for XBee ZigBee modules is now in the master branch! 12 June 2012: New and greatly improved C++ interface! Overview libxbee is a C/C++ library is to aid the use of Digi XBee radios running in API mode. I have tried to keep flexibility to a maximum. To get a quick idea of how to use the library, see the samples in the sample directory.

Documentation libxbee v3 is documented using the Unix man page system. There is a Getting Started Guide that covers many aspects of libxbee. If you are running Linux or FreeBSD, you can easily install the man pages by cloning the Git repository, and following the installation steps below. Unix Installation & Use Example #include <xbee.h> Simple XBee Class - TinyCLR. XBee Class. XBee Library. Xbee-arduino - Arduino library for communicating with XBees in API mode. Overview This is an Arduino library for communicating with XBees in API mode, with support for both Series 1 (802.15.4) and Series 2 (ZB Pro/ZNet).

This library Includes support for the majority of packet types, including: TX/RX, AT Command, Remote AT, I/O Samples and Modem Status. Note: This software requires API mode, by setting AP=2. If you are using Series 2 XBee, you'll need to install API Firmware with X-CTU (Series 2 are manufactured with with AT firmware), then set AP=2. This software will not work correctly with AP=1 Refer to XBeeConfiguration and WhyApiMode for more info. News 2/1/14 Release 0.5 is available. Documentation Doxygen API documentation is available in the downloads. Download Google Project Hosting no longer supports downloads. Example I have created several sketches of sending/receiving packets with Series 1 and 2 XBee radios. // Create an XBee object at the top of your sketchXBee xbee = XBee(); // Send your requestxbee.send(zbTx); Learning/Books Hardware XBee Shield Support.

Libxbee - A C/C++ library to aid the use of Digi XBee radios in API mode. Raspberry Pi and XBee. One nice gadget to play with is the quite new Raspberry Pi. I added a XBee (Coordinator AT) to the RasPi and sent some serial data to an Arduino UNO (and back) with a XBee attached (Router AT) via serial terminal (minicom) and Python. The RasPi is running on Debian wheezy and the perfboard is connected via two row header sockets to the GPIO pins. The 3.3V for the XBee is directly coming from Pin 1 of the GPIO-Header (GND from Pin 6), DOUT is connected to Pin 10 (GPIO RXD) and DIN to Pin 8 (GPIO TXD). I didn't test it with a XBee Pro attached, this will certainly draw too much current from the RasPi.

The 3.3V supply only delivers 50mA as per this wiki . This is fine with the normal XBee which has 40mA max. current demand as per datasheet. If you need more current (XBee PRO needs 295mA@3.3V when transmitting with maximum output power) you could use the 5V power source with a subsequent voltage regulator as mentioned in the blog entries before. Xbee.write(b'8') to send as a String. Raspberry Pi as an Xbee Wireless Sensor Network Gateway « Tinaja Labs. Notes about Raspberry Pi, an ARM based pc about the size of a deck of cards which costs $35. I might use it as a replacement for the Asus WL520 GU wifi modems I’ve been using as an Xbee WSN Gateway. General References I started out with the 4G SD Card from Newark that was pre-loaded with wheezy-debian. Now I’m using the distro from Adafruit called Occidentalis v0.2.

Copy the image to a 4G SD Card using Win32DiskImager. Before selecting an SD Card, look at the list in Verified Peripherals. Login as: pi, password: raspberryI set up a root account and did most of the installation as root Expanding the partition on the sccard Once installed, expand the SD Card partition to fill the 4G memory space. Set up SSH so you can access the Raspberry Pi from a terminal program of via Putty and/or WinSCP. ssh-keygen -t rsa -C "" XBee connection Raspberry Pi with XBee daughterboard, Slice of Pi Install Apache on Raspberry Pi suds #!

File is ready. Xbee.pdf (application/pdf Object) XBeeUseCases - xbee-api - XBee Use Cases - A Java API for Digi XBee/XBee-Pro OEM RF Modules. This guide describes several use cases for using this software and XBee Arduino to communicate with XBee radios in API mode. In this configuration we have an XBee connected to a computer through a serial connection, possibly by using a SparkFun Explorer. I'll refer to this XBee (on left) as the local XBee.

The XBee on the right side is the remote or stand-alone XBee. This XBee has only power and a few components (LED, accelerometer, and push button) connected to the XBee's I/O pins. The XBee's I/O pins support digital input, digital output and analog input (refer to XBeePins for a listing of pin capabilities). The SparkFun Explorer Regulated board is a good choice for interfacing with a remote XBee. There are two possibilities for communicating with the remote XBee in this configuration: Remote AT and I/O samples. In the following code example we demonstrate the digital output capability by flashing the LED (which is connected to pin 20 on the XBee w/ a resistor). PC to XBee/Arduino. Working on Zigbee API mode interface - Digits Domotica Blog. Since 4 weeks i have a Digi XStick. This is a USB module that provides connectivity to a XBee network: XStick This XStick ZB is configured to behave as a coordinator within a mesh topology.

The XStick can be plugged directly into the USB port of a PC and doesn’t require batteries or power adapter since it’s USB powered. Last 2 weeks i’ve been working on a Zigbee interface for my domotica system, using ths XStick. First some things you need to know.. An Xbee module has three communication modes: Transparent mode,Command modeAPI mode. At startup, an Xbee module is in transparent mode. Command mode is where you can change a large amount of settings of the XBee module. Sending messages to constantly changing targets (=other XBee modules), API mode is the best mode to choose. API mode has some special abilities: Changing parameters without entering command mode;RSSI and source address information;Receive packet delivery confirmation on every transmitted packet.