tcl.set-baud Verb: Access/TCL


Command tcl.set-baud Verb: Access/TCL
Applicable release versions: AP, R83
Category TCL (746)
Description sets the baud rate for the current port or for another port.

The form 1 is valid for all AP platforms.
The form 2 is valid for all AP/Unix platforms only.
The form 3 is valid for all R83.

"port.number" is the serial port to change. If the port.number is not specified, the baud rate is set on the current port. A "-1" may also be specified to indicate the current port.

The baud "rate" may be one of the following supported baud rates: 110, 150, 300, 600, 1200, 2400, 4800, 9600, 19200. The default baud rate for each port is 9600.

On AP/Unix systems, the port.number may be specified either by a number or by a device name, such as /dev/tty3, in which case the port does not have to be connected to the Pick virtual machine. /dev/ can be omitted. This command is provided for compatibility with non-Unix implementations.

"word.len" is the data length and may be any number between 5 and 8, inclusive.

If no Unix process is connected to the device, "set-baud" displays:

Process not connected

In this case, the device is probably not initialized properly or not connected to a physical terminal. The form with a tty name instead of a port number should then be used.

"parity" is the data parity. The following values are permitted:

0 (zero) or "n" indicates no parity.
1 (one) or "o" indicates odd parity.
2 or "e" indicates even Parity
There is no "Mark" or "Space" parity supported.

"stop.bits" is the number of data stop bits. May be 0, 1, or 2.
Syntax set-baud {port.number{,rate,parity, stop.bits,word.len}}

set-baud {tty{,rate,{parity,stop.bits,word.len}}}

set-baud {port.number,}rate
Line number :        4 (/dev/tty4)
Baud rate   :     9600
Parity      :     NONE
Stop bits   :        1
Word length :        8
Related tcl.set-port