![Digi XGI-20CZ7-E00-W0 Скачать руководство пользователя страница 87](http://html1.mh-extra.com/html/digi/xgi-20cz7-e00-w0/xgi-20cz7-e00-w0_user-manual_2496341087.webp)
Program XBee Industrial Gateway using Python
DIA software
Digi XBee Industrial Gateway
87
DIA software
The Digi ESP development environment includes Device Integration Application (DIA) software. DIA
software is another advanced programming tool for developing custom programs for XBee Industrial
Gateway. DIA software simplifies connecting remote devices and sensors to Digi gateway products by
providing ready-to-use software. DIA is targeted for applications that need to gather samples of data
from a set of devices, such as ZigBee® sensors and wired industrial equipment. The Digi gateways can
use the DIA framework to gather data from XBee sensor networks, transform the data into a useful
form, and push the data to Remote Manager for consumption by a user.
DIA allows developers to focus efforts on proprietary logic, and includes a comprehensive library of
ready-to-use modules for common operations and abstractions for components like:
n
Interface handling (drivers)
n
Data management (channels)
n
Data delivery (presentations)
Written in the Python programming language for use on Digi devices, you can extend it to meet unique
device connectivity requirements. When used with the Digi ESP for Python, DIA can shrink the
development cycle for complex data gathering and transformation applications.
For more information on DIA software, see the
page on the Device Cloud Wiki.
Linux command shell (command-line interface)
XBee Industrial Gateway has a Linux shell command-line interface, which allows you to experiment
with the Python interpreter interactively, create scripts, launch scripts, and control the script
operation. While Digi ESP for Python is intended as the main programming interface, you may find this
interface useful for some programming and device management tasks.
A shell is a program that takes commands from the keyboard and gives them to the operating system
to perform. On XBee Industrial Gateway, a program called
ash
acts as the shell program. You can use
this shell in several useful instances, particularly in managing files, executing Python programs, and
programming and executing commands to the XBee RF module in the gateway.
User name and password for the Linux command shell
The command-line interface is accessed using SSH and is described in the Linux command shell
(command-line interface). Access to XBee Industrial Gateway is at the user level.
n
User name:
python
n
Password:
dbps
XBee Industrial Gateway ash shell reference documentation
For more information on the ash shell, go to the following website:
http://linux.die.net/man/1/ash
Note that the ash shell supported in XBee Industrial Gateway is similar, but not identical, to the ash
shell described in this website.
Connect and log in to the XBee Industrial Gateway device
To connect and log in to the XBee Industrial Gateway device through the command-line interface:
1. Open a command prompt or terminal window, such as one provided by PuTTY. You can
download PuTTY from
Содержание XGI-20CZ7-E00-W0
Страница 1: ...Digi XBee Industrial Gateway User Guide...