![Digi XGI-20CZ7-E00-W0 User Manual Download Page 74](http://html1.mh-extra.com/html/digi/xgi-20cz7-e00-w0/xgi-20cz7-e00-w0_user-manual_2496341074.webp)
Program XBee Industrial Gateway using
Python
XBee Industrial Gateway Python application and Remote
Manager
Digi XBee Industrial Gateway
74
7. Click
Data Services
and then click
Data Streams
. The Data Streams page appears and displays
all the data streams (data channels) by the XBee nodes that are registered to your account on
your network that reported data. The streams follow this pattern:
[device_id]/[source]/[xbee_mac]{/[dio_number]}
Where:
n
[device_id]
Is the ID of your XBee Industrial Gateway.
n
[source]
Is the source of the data. Legal values are:
l
xbee.digitalIn
l
xbee.analog
l
xbee.serialIn
n
[xbee_mac]
Is the MAC Address of the XBee node that reported the data in the
following format:
[XX:XX:XX:XX:XX:XX:XX:XX]!
n
[dio_number]
Is the name of the DIO that generated the data. This is only present if
the [SOURCE] is xbee.digitalIn or xbee.analog.
One of the streams displayed should correspond to the serial data of your XBee device.
For example:
00000000-00000000-00409DFF-FF5C388D/xbee.serialIn/
[00:13:A2:00:40:31:A8:E1]!
Click that serial data stream. Observe how the latest serial data value corresponds to
the following text:
SGVsbG8sIFdvcmxkIQ==
This serial data value is
Hello, World!
encoded in base64.
Manage XBee DIO lines though Remote Manager
The XBee Industrial Gateway Python application allows you to remotely manage the DIO lines of any
of the XBee nodes on your network through Remote Manager. Use this application feature to turn
on/off different actuators.
The XBee Industrial Gateway Python application can receive digital output commands sent through
Remote Manager (using the Web Services API) and dispatch them to a specific XBee module in the
network to set its corresponding pin high or low.
The following figure demonstrates how this remote management mechanism works.