3.8.3.22 -sercfg
: specify serial port configuration
This option specifies the configuration parameters for the serial port (baud rate, stop bits etc). Its argument is interpreted as a comma-separated list of configuration options, which can be as follows:
- Any single digit from 5 to 9 sets the number of data bits.
-
‘
1
’, ‘1.5
’ or ‘2
’ sets the number of stop bits. - Any other numeric string is interpreted as a baud rate.
-
A single lower-case letter specifies the parity: ‘
n
’ for none, ‘o
’ for odd, ‘e
’ for even, ‘m
’ for mark and ‘s
’ for space. -
A single upper-case letter specifies the flow control: ‘
N
’ for none, ‘X
’ for XON/XOFF, ‘R
’ for RTS/CTS and ‘D
’ for DSR/DTR.
For example, ‘-sercfg 19200,8,n,1,N
’ denotes a baud rate of 19200, 8 data bits, no parity, 1 stop bit and no flow control.