Serial port mapping

Patron

See the table below to find out how the physical RS485/RS232 serial port lines are mapped into Linux ports within /dev/.


RS485-1 RS232(485)-2 RS485-3 RS485-4
S107ttyNS0ttymxc1ttymxc0x
S117ttyNS0ttymxc2ttymxc1ttymxc0
S167 LTEttyNS0ttymxc0xx
S207ttymxc0xxx

RS485-1.1 RS232(485)-1.2 RS485-1.3 RS485-2.1
M207ttyNS0ttymxc1ttymxc0x
M267 LTEttyNS0ttymxc0xx
M527ttyNS0ttymxc1ttymxc0ttyNS1
M537ttyNS0ttymxc1ttymxc0ttyNS1
M567 LTEttyNS0ttymxc0xttyNS1
L207ttyNS0ttymxc1ttymxc0x
L527ttyNS0ttymxc1ttymxc0ttyNS1

(!)

Attention:
Serial line access via extcomm is deprecated and is no longer available in our OS running Debian 13.

Alternatively, all serial ports with N (eg. /dev/ttyNS0) mentioned below are also accessible via /dev/extcomm/Y/X, where Y is the number of section, and X is the number of the serial port. X and Y are counted from 0.

USB ports

USB converters (FTDI, CH34x, PLxxxx and CPxxxx) are also supported by default. For using other gateways or devices, installation of drivers is necessary.

USB1 /dev/serial/by-port/0
USB2 /dev/serial/by-port/1

LTE modem

The LTE modem is build in the Patron S167, M267 and M567 units.

The unipi-lte package, which makes the use of an LTE modem available, also includes a virtual serial line for communication with the modem via AT commands (FID 1.x, FID 2.0+). Modem settings could be managed for example, by the minicom program, directly from the unit's Linux console (by SSH access).

In the control SW (Node-RED, etc.) the serial line can be used, for example, to send and receive SMS messages or calls.

Modem's serial line for AT commands /dev/ttyLTE_AT1
(or /run/unipi-plc/by-sys/lte.1/tty_at1)

Since this is a virtual serial line, communication parameters (baudrate, parity, etc.) can be selected arbitrarily.