User`s guide
Programming resources
83
Programming resources
Several tools and resources are available for developing software programs for the
ConnectPort X2e ZB.
Python
Python is a dynamic, object-oriented language for developing software applications, from simple
programs to complex embedded applications. The ConnectPort X2e ZB runs the standard Python
2.7.1 distribution. This Python distribution has a more complete library set than the versions
supported in predecessor gateway products, and integrates well with standard Python.
Digi ESP for Python
Digi ESP for Python is an Integrated Development Environment (IDE) that allows for easy
development of applications in the Python programming language to be loaded, run, tested, and
debugged on the device. This development environment includes a Getting Started Guide that
guides you in creating your first simple application for your ConnectPort X2e ZB, plus extensive
documentation, tutorials, and code samples to help you get started developing custom applications
for your product. Digi ESP for Python is built on Eclipse, an open, extensible IDE, and the Python
Development Environment (Pydev) plug-in.
Unlike proprietary embedded development platforms, the integration of the universal Python
programming language allows for a truly open standard for complete control of connections to
devices, the manipulation of data, and event-based actions.
For example, applications can be created to:
Aggregate data on the gateway throughout the day, then upload to iDigi once a day.
Develop a driver for a custom protocol to talk to device connected to the gateway, such
as devices in an XBee network.
Translate data, for example, from raw serial into an XML format that can be consumed
by other systems, such as iDigi.
The Getting Started Guide shows how to download and install Digi ESP for Python, and how to
launch the Getting Started tutorial to build your first application.