User`s guide
Configure Digi devices
117
Digi Python Custom Development Environment page
Python functions can be used to obtain data from attached and integrated sensors on Digi products
that have embedded XBee RF modules, such as the Drop-in Networking Accessories. The Digi
Python Custom Development Environment page is an access point: for such information.
http://www.digi.com/technology/drop-in-networking/python.jsp
Python Support Forum on digi.com
Find answers to common questions and exchange ideas and examples with other members of the
Digi Python development community at:
http://www.digi.com/support/forum/forum.jspa?forumID=104
Python configuration pages
Selecting Applications > Python from the main menu for a Python-enabled Digi device displays
the Python Configuration pages. These pages are used to manage Python program files including
uploading them to Digi devices and deleting them as needed, and configure Python programs to
execute when the Digi device boots, also known as auto-start programs.
Python files
The Python Files page is for uploading and managing Python programs on a Digi device.
Upload Files: Click Browse to select a file to upload to and click Upload.
Manage Files: Select any files to remove from the Digi device and click Delete.
Auto-start settings
The Auto-start Settings page configures Python programs to execute when the Digi device boots.
Up to four auto-start programs can be configured.
Enable: When checked, the program specified in the Auto-start command line field will
be run when the device boots.
Auto-start command line: Specify the Python program filename to be executed
and any arguments to pass to the program. The syntax is:
filename [arg1 arg2...]
Manually execute uploaded Python programs
To manually execute an uploaded Python program on a Digi device, access the command line of
the device and enter the command:
python filename [arg1 arg2...]
View and manage executing Python programs
To view Python threads running on the Digi device, access the command line and enter the who
command.