tcl.set-port

Verb: Access/TCL, Releases: AP and R83

Adjusts baud rate and communication parameters for specific port.

Syntax

set-port tty{,baud,parity,stop.bits,word.length} set-port port.number{,baud,parity, stop.bits,word.length}

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'

See Also

Command Name Type Description
tcl.status-port Verb: Access Invokes program 'set-port'.
tcl.wheres Verb: Access Displays execution status and last command for each process.
tcl.set-baud Verb: Access Adjusts baud rate for specific port.
tcl.reset-port Verb: Access Initializes specified port.
port.number Definition The port number associated with the process.
tcl.list-ports Verb: Access Displays port communication parameters.
system.privileges Definition Description of privilege levels.
tcl.setport Verb: Access Sets all ports except 0 to 9600 baud, no parity, 1 stop, 8 bits.
tcl.setup.sio Verb: Access Alter parity and start/stop bits.
tcl.list-lines Verb: Access Lists all port baudrates, parity, bits setup.
tcl.set.port Verb: Access

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.