This is an old revision of the document!
Serial port mapping
See the table below to find out how the physical RS485/RS232 serial port lines are mapped into Linux ports within /dev/.
Patron
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. 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 |
Since this is a virtual serial line, communication parameters (baudrate, parity, etc.) can be selected arbitrarily.