SETPORT

SETPORT

Top  Previous  Next

 

The SETPORT command sets communications parameters of a serial port.

 

 

Format

 

SETPORT port {BAUD rate} {BITS bits.per.byte} {PARITY parity} {STOP.BITS stop} {BRIEF}

 

where

 

portis the name of the port to be accessed (e.g. COM1 on Windows or /dev/cua0 on Linux, FreeBSD or AIX).

 

rateis the baud rate for the port.

 

bits.per.byteis the number of bits per byte (5 to 8).

 

parityis the parity mode (NONE, ODD or EVEN).

 

stopis the number of stop bits (1 or 2).

 

BRIEFSuppresses the normal confirmation prompt

 

 

If only port is given, the current settings of the port are reported.

 

On some systems, it may be necessary to change the permissions on the device driver to make it accessible to users.

 

 

Example

 

SET.PORT COM1 BAUD 9600 BITS 7 PARITY ODD STOP.BITS 1