Serial Channel

Usage

dp_connect serial -device serDev -block bBlock -readonly bRead

Comments

serDev is the Tcl-DP name of the given serial port. In order to make Tcl-DP scripts as portable as possible, DP names the serial ports "serial1", "serial2", "serial3", etc. The DP name is then translated internally to the OS specific name (COM1, /dev/ttyb, etc).

Options like baudrate, parity and character size can be set using fconfigure after the channel is opened.

Examples

dp_connect serial -device serial2
dp_connect serial -device serial1 -readonly true