set-port

set-port


set-ovf-reserve Index Level set-remote-user
Syntax set-port tty{,baud,parity,stop.bits,word.length}

set-port port.number{,baud,parity, stop.bits,word.length}
Category TCL
Type Verb
Description displays or changes the communication speed and protocol for a given port or displays the current setting if none of the communication paremeters are given.

set-port with tty format is for D3/Unix.

set-port with port.number format is for AP/DOS and AP/Native.

"port.number" is the serial port number to change. The current port may be specified by specifying port "-1".

"baud" is the baud rate. Legal baud rates are: 110, 150, 300, 600, 1200, 2400, 4800, 9600, and 19200.

"parity" is "n" or "0" (zero) for no parity. "o" or "1" for odd parity. "e" or "2" for even parity. "m" for mark parity. "s" for space parity. ("s" and "m" parity are NOT supported in R83.)

"stop.bit" is the number of stop bits. Valid numbers are 1 or 2.

"word.length" is the data length. Valid numbers are 7 or 8.

If no options are entered, the current port settings are displayed. If any option is entered, then all options must be entered.

D3/Unix Systems:

The port can be specified either by its serial port.number, or by a device name (e.g., /dev/tty03), 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.

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

Process not connected

In this case, the device is probably not initialized properly or not connected to a physical terminal.

"status-port" is a synonym of "set-port"
Options
See Also status-port wheres set-baud reset-port port.number list-ports (R83) system privileges setport setup.sio (R83) list-lines set.port
Example
Warnings
Compatibility D3 7.0 AP R83
set-ovf-reserve Index Level set-remote-user