User`s guide
Contents
5
Restore Factory Defaults ................................................................................................................................78
Reboot.............................................................................................................................................................78
Disconnect ......................................................................................................................................................78
Firmware.........................................................................................................................................................78
File Management ............................................................................................................................................79
System log ......................................................................................................................................................80
System information.........................................................................................................................................81
Chapter 5: Programming....................................................................................................................................................... 82
Programming resources............................................................................................................................................83
Python.............................................................................................................................................................83
Digi ESP for Python .......................................................................................................................................83
Programming calls through Server Command Interface (SCI) and Remote Command Interface (RCI).......85
Digi Developer Community Wiki ..................................................................................................................85
ConnectPort X2e ZB Wiki..............................................................................................................................85
Digi Python Programmer’s Guide ..................................................................................................................86
Python Support Forum on digi.com................................................................................................................86
Digi-specific Python modules for programming......................................................................................................87
Sample programs......................................................................................................................................................88
Button handling ..............................................................................................................................................88
LED control ....................................................................................................................................................89
Watchdog........................................................................................................................................................90
RCI callback ...................................................................................................................................................91
XBee functions ...............................................................................................................................................93
Sending and receiving SMS messages ...........................................................................................................93
The ConnectPort X2e ZB filesystem .......................................................................................................................94
Differences between Windows and Linux filesystems...................................................................................94
Important directories.......................................................................................................................................94
Access/browse the filesystem from device interfaces ....................................................................................94
Common operations for directories and files..................................................................................................94
The Linux command shell (command-line interface)..............................................................................................95
Username and password for the Linux command shell..................................................................................95
Connect and log on to the device....................................................................................................................95
Command shell reference documentation ......................................................................................................95