Tools include a library for working with XBee API mode serial data and an XBee serial command shell for interacting with XBee radios. E.g.:
import serial from xbee import xbee serial = serial.Serial() serial.port = '/dev/tty.usbserial-A4001ib8' serial.open() while 1: packet = xbee.find_packet(serial) if packet: xb = xbee(packet) print xb
The xbee object provides accessors for the radio's address, signal strength, analog and digital input values, etc.
The XBee API code is incomplete, missing support for valid checksums and an implementation for working with the Series 2 API. It is an incomplete port of Rob Faludi's XBee Processing library.