User`s guide

XBee Sensor Adapter
43
Sensor function configuration and data retrieval
Digi provides a Python module for configuring sensor functions and
retrieving data from XBee Sensor Adapters. This module is named
xbee_sensor.py and is available for downloading from
www.digi.com/din/docs, in a file named XBee Adapter Libraries. By
uploading this Python module to the gateway that serves as a coordinator
for the adapter, you can use it in your own programs. The
XBee Adapter Libraries file includes a readme file and a sample program
showing how xbee_sensor.py is used. xbee_sensor.py issues a remote
AT 1S (Force Sample) command through the XBee API and decodes the
results. See these files for more information.
Upload Python modules to gateway
1. Go to www.digi.com/din/docs.
2. In the list of downloadable files, select and download file
XBee Adapter Libraries.
3. Unzip the downloaded file.
4. Read the readme file.
5. Open the web interface for the gateway, go to Applications > Python.
6. In the Upload File edit box, enter the file name for the
XBee Adapter Libraries, DigiXBeeDrivers.zip, using the Browse
button as needed, and click Upload.
Additional programming resources
For further information on writing Python programs and using Python
functions, see:
Digi Python Programming Guide
http://ftp1.digi.com/support/documentation/90000833_b.pdf
The Python Support Forum on digi.com
http://www.digi.com/support/forum/forum.jspa?forumID=104
For more information about AT commands, see:
XBee ZNet 2.5 (Series 2) RF Module data sheet
http://www.digi.com/pdf/ds_xbeemodules.pdf
XBee ZNet 2.5 (Series 2) RF Module Product Manual
http://ftp1.digi.com/support/documentation/90000866_A.pdf