Contents
5
Python.............................................................................................................................................................56
Digi ESP for Python .......................................................................................................................................56
Programming calls through Server Command Interface (SCI) and Remote Command Interface (RCI).......58
Digi Developer Community Wiki ..................................................................................................................58
Digi Python Programmer’s Guide..................................................................................................................59
Python Support Forum on digi.com................................................................................................................59
Digi-specific Python modules for programming......................................................................................................60
Sample programs......................................................................................................................................................61
Button handling ..............................................................................................................................................61
LED control....................................................................................................................................................62
Watchdog........................................................................................................................................................63
RCI callback ...................................................................................................................................................64
XBee functions ...............................................................................................................................................66
The ConnectPort X2e ZB filesystem .......................................................................................................................67
Differences between Windows and Linux filesystems...................................................................................67
Important directories.......................................................................................................................................67
Access/browse the filesystem from device interfaces ....................................................................................67
Common operations for directories and files..................................................................................................67
The Linux command shell (command-line interface)..............................................................................................68
Username and password for the Linux command shell..................................................................................68
Connect and log on to the device....................................................................................................................68
Command shell reference documentation ......................................................................................................68
Chapter 6: Troubleshooting................................................................................................................................................... 69
System logs ..............................................................................................................................................................69
Troubleshooting chart ..............................................................................................................................................70
Cannot connect to DNS server to resolve the iDigi server address .........................................................................72
Cannot connect to NTP time server to get correct time...........................................................................................72
Required open network ports and use of firewalls...................................................................................................72