uCon HomePage

Script Command: COMPORT


COMPORT [ baud | BREAK | DTRTGL | RTSTGL | ...]

COMPORT [ DBC NNN ]


If the argument is the string "BREAK", then send a BREAK to the COM port.
If the argument is the string "DTRTGL", then toggle the state of the DTR pin on the RS232 port.
If the argument is the string "RTSTGL", then toggle the state of the RTS pin on the RS232 port.
If the argument is the scrint "DBC", then change the current delay-between-characters value to 'NNN' milliseconds.
If the argument is the string "RTSSET/RTSCLR/DTRSET/DTRCLR", then set (or clear) the state of RTS (or DTR).

Else, assume the argument is a baud rate and re-define the baud rate of the COM port.

Valid values are 9600, 19200, 38400, 57600 and 115200.

If no argument is specified, then the current baud rate is returned. The value is also placed in the BAUDRATE shell variable.