tcl.set-port
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
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
