ConnectPort X4/X4H USB Serial
From Digi Developer
Contents |
Digi ConnectPort X4/X4H USB Serial
The Digi ConnectPort X4/X4H have 1 and 2 USB Host port respectively, and many USB serial device can be connected enabling Python access.
Connects as /com/11
Once connected, the device MIGHT show up as "/com/11" or serial port 11 (zero-based). You would use the normal Digi Serial Port Access methods based on the OS module, such as:
try: serfd = os.open( '/com/11', os.O_RDWR | os.O_NONBLOCK) except: ( ... handle port in use or invalid name ... )
Limitations
- Not all USB serial devices will work. Those supporting the most basic 'usb serial' device profiles should work. Several product based on the FTDI chipset have been tested to work.
- The Digi ConnectPort X4/X4H have not been designed for you to repeatedly plug and unplug the USB serial device. A few unplug-plug work, but eventually you might get the driver in an undesired state and be forced to reboot the gateway. So only use a USB serial device which is designed to be permanently installed.
- You will have no normal Digi terminal/device server access - so the serial device will not show up in the web interface. It cannot be accessed by RealPort or TCP sockets. It will only be accessible by Python.
Tested Devices
Examples of devices tested to work:
- Digi XStream® RF Modems with USB port, such as Model X09-009PKC-UA
- FTDI RS-232 cables such as UC232R-10 (available from Digikey and other resellers)

