-
Notifications
You must be signed in to change notification settings - Fork 81
serialdev usage
The serialdev gensio connects to serial ports. It can do RS-232 and RS-485 (if the hardware supports it) and has a boatload of options.
A few terminal options are are fairly critical to understand. These are:
-
[speed=] - Set the basic serial port parameters. Like "9600n81". The "speed=" at the beginning is optional.
-
local - This allows modem control lines (DCD, DTR, DSR) to be ignored with "local=true" or just "local" (specifying a boolean option without the values means "true"). You can use "on" instead of "true". The default is "off" or "false", meaning that modem control lines are interpreted and sent. This option is important to match with your hardware. If you have these modem control lines connected, like you have a real modem, or a full null modem between two systems, you need to set this to "false". If you just have a simple connection with RX and TX and perhaps RTS and CTS, you need to set this to "true".
-
rtscts - speaking of RTS and CTS, if you have these connected, you should set this option to "true" so it will do hardware flow control. If you set this on a connection that does not have the lines connected, the connection will hang.