User`s guide
XBee Sensors
55
Connection and power-on
Insert batteries. Device power is indicated by the green ASSC LED on the
front panel of the XBee Sensor.
Discover the XBee Sensor in the ZigBee network and change configuration
settings as needed, as described in "Configuration with a ConnectPort X
gateway" on page 61.
Configuration
Python modules for configuring inputs and outputs
Digi provides several Python modules for configuring the light,
temperature, and humidity functions for XBee Sensors and retrieving data
from them. These modules are available for downloading from
www.digi.com/din/docs, in a file named XBee Adapter Libraries. By
uploading these Python modules to the gateway that serves as a
coordinator for the adapter, you can use them in your own programs.
Python module descriptions
The Python modules in the zip file that are relevant to programming XBee
Sensors are:
Module Description
xbeeprodid.py Contains calls to determine the type of adapter; (Analog,
Digital, Sensor, RS-232, etc.)
xbeedevice.py Implements a base class of any XBee device on the ZigBee
network.
xbeelt.py Configures Light and Temperature functions for the XBee
Sensor /L/T and issues AT commands to retrieve data from
the integrated sensors. Functions and arguments are
shown on page 56.
This module derives an LT (Light/Temperature) class from
the base class of any XBee device on the ZigBee network.
That is, module xbeelt.py uses xbeedevice.py internally.
xbeeelth.py Configures Light, Temperature, and Humidity functions for
the XBee Sensor /L/T/H and issues AT commands to
retrieve data from the integrated sensors. Functions and
arguments are shown on page 57.
This module derives an LTH (Light/Temperature/Humidity)
class from the base class of any XBee device on the ZigBee
network. That is, module xbeelth.py uses xbeedevice.py
internally.
sensor_io.py Decodes the output of the AT IS command.