| set-batchdly | Index Level | set-break |
| 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 |
| Category | TCL |
| Type | Verb |
| Description |
sets the baud rate for the current port or for another port.
The form 1 is valid for all D3 platforms. The form 2 is valid for all D3/Unix platforms only. The form 3 is valid for all R83 platforms. "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 D3/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. |
| Options | |
| See Also | set-port reset-port port.number system privileges setport user-coldstart |
| Example |
set-baud
Line number : 4 (/dev/tty4) Baud rate : 9600 Parity : NONE Stop bits : 1 Word length : 8 |
| Warnings | On Unix implementations, the Unix 'stty' command can be used to change the port setting, except for the current port. |
| Compatibility | D3 7.0 AP R83 |
| set-batchdly | Index Level | set-break |