
Program XBee Industrial Gateway using
Python
XBee Industrial Gateway Python application and Remote
Manager
Digi XBee Industrial Gateway
60
n
Automatically store status information for DIO and Analog-to-Digital Converter (ADC) lines
reported by the XBee nodes of the network in Remote Manager.
n
Receive serial data from Remote Manager and send it to the corresponding XBee module of
the network.
n
Receive serial data from an XBee node of the network and store it in Remote Manager
automatically.
n
Set the value of the DIO lines of any XBee module in the network through Remote Manager.
XBee Industrial Gateway Python application requirements
You must complete the following requirements before you can use the XBee Industrial Gateway
Python application and Remote Manager capabilities:
1. A Remote Manager account. If you do not have a Remote Manager account, follow the
instructions in the
Digi Remote Manager User Guide
to
create a Remote Manager account
.
2. Your XBee Industrial Gateway device must be registered in your Remote Manager account.
Follow the instructions in the
Digi Remote Manager User Guide
to
in your
Remote Manager account.
3. The XBee Industrial Gateway Python application must be running in your XBee Industrial
Gateway device. By default, the XBee Industrial Gateway Python application is already installed
and running on the XBee Industrial Gateway devices; that is, the application executes
automatically when the device is initialized. Therefore, you do not have to start the application.
If you uninstalled the application, use the File Management function in Remote Manager or the
XBee Industrial Gateway web interface to install the XBee Industrial Gateway Python
application again.
Store status data for XBee lines in Remote Manager
You can configure XBee nodes in a network to report information about the status of the DIO lines and
ADC values to the coordinator or other nodes in the network. This scenario is very common when the
XBee node is attached to one or more sensors to monitor a process or some environment values. In
such a case, you may want to report the data from the sensor(s) to the coordinator every time a line
changes its status or every period of time. Using the XBee Industrial Gateway Python application, you
can automatically upload those values to Remote Manager, store them there, and retrieve the values
later for use by other user applications.
Whenever an XBee module in the network reports the status of the DIO lines and ADC values to XBee
Industrial Gateway, the XBee Industrial Gateway Python application automatically handles the XBee
frame containing those values, processes it, and uploads the reported values to Remote Manager.
This process generates a data stream for each of the different measures reported by the XBee
module. For more information about data streams are, see the
Digi Remote Manager Programmer
. The following figure demonstrates the process of storing status data on Remote Manager.
Using the Remote Manager Web Services API, you can retrieve the data stream values from Remote
Manager to be used in end user applications with different purposes, for example, to display a
histogram or generate a database. To learn more about the Remote Manager Web Services API, see
the