tcl.set-port Verb: Access/TCL

tcl.set-port

Command tcl.set-port Verb: Access/TCL
Applicable release versions: AP, R83
Category TCL (746)
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 AP/Unix.

set-port with port.number format is for AP/DOS,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.

AP/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"
Syntax set-port tty{,baud,parity,stop.bits,word.length}

set-port port.number{,baud,parity, stop.bits,word.length}
Options
Example
Purpose
Related tcl.status-port
tcl.wheres
tcl.set-baud
tcl.reset-port
port.number
tcl.list-ports
system.privileges
tcl.setport
tcl.setup.sio
tcl.list-lines
tcl.set.port