Digi Connect WAN Series User Manual page 137

Hide thumbs Also See for Connect WAN Series:
Table of Contents

Advertisement

Digi Connect WAN Family web interface
Python: For loading and running custom programs authored in the Python programming
n
language onto Connect and ConnectPort devices that support Python.
RealPort: Configures RealPort settings.
n
Industrial Automation: Configures the Digi device for use in industrial automation
n
applications.
Python Configuration
If you have a Python-enabled Digi Connect WAN Family device, you can manage Python files using the
Application > Python menu options. Python options include:
Uploading Python program files to the Digi Connect WAN Family device
n
Deleting a Python program file from the device
n
Configuring which Python programs to execute when the Digi Connect WAN Family device
n
boots (also known as auto-start programs)
Python Files
The Python Files page allows you to upload and manage Python programs on a Digi Connect WAN
Family device.
Upload Files: Click Choose File to select a file to upload and click Upload.
n
Manage Files: Select any files to remove from the Digi Connect WAN Family device and click
n
Delete.
Auto-start settings
Use the Auto-start Settings page to configure Python programs to execute when the Digi Connect
WAN Family device boots. You can configure up to four auto-start entries.
Enable: When selected, the program specified in the Auto-start command line field runs when
n
the device boots.
Auto-start command line: Specify the name of a Python program file to be executed and any
n
arguments to pass to the program using the following syntax:
filename [ arg1 arg2 ...]
Manually execute uploaded Python programs
To manually execute an uploaded Python program on a Digi Connect WAN Family device:
Access the Digi device command-line interface and type the following command:
n
python filename [ arg1arg2 ...]
View and manage Python programs
To view Python threads running on the Digi Connect WAN Family device:
Access the Digi device command-line interface and type the who command.
n
Python program management and programming resources
Digi incorporates a Python development environment into Digi Connect WAN Family devices. Digi
integration of the universal Python programming language allows customers an open standard for
Digi Connect WAN Family User Guide
Configuration through the web interface
137

Advertisement

Table of Contents
loading

Table of Contents