Overview
| Artifact ID: | cc8746157596c54e770c6687bbe95aa6c537cb87 |
|---|---|
| Ticket: | 438509ffffffffffffffffffffffffffffffffff
TIP#35 Patches: Serial port enhancements |
| User & Date: | schroedter on 2001-07-04 12:03:50 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The attached tar.gz file contains patches for TIP#35: Enhanced Support for Serial communications. Affected systems: Windows and Unix (termios.h). The changes have been tested under Windows 95/98/NT4.0/2000 Linux (Suse7.1). Unix system file patches: tclUnixChan.c The following options are added to the fconfigure command for serial ports: -handshake none|rtscts|xonxoff Setup automatic handshake -xchar Query xon/xoff characters -xchar {xonChar xoffChar} Setup xon/xoff characters -timeout msec Setup read timeout, granularity = 100 msec -ttycontrol {RTS 1 DTR 0 BREAK 1} Control RS-232 handshake output lines -ttystatus Query RS-232 handshake input lines, returns e.g. {CTS 1 DSR 0 RING 1 DCD 0} -queue Query number of bytes in the system input and output queues, returns a list of 2 int's, e.g. {25 87} For Windows the following options are implemented: -handshake none|dtrdsr|rtscts|xonxoff Setup automatic handshake -sysbuffer {inBufSize outBufSize} Setup the system buffer sizes for serial I/O. -xchar -xchar {xonChar xoffChar} -timeout msec -ttycontrol {RTS 1 DTR 0 BREAK 1} -ttystatus -queue For Windows the following files are affected: tclWinPort.h Declare a new function TclWinSerialReopen() tclWinChan.h Call TclWinSerialReopen() after detecting the serial port. tclWinSerial.c Partial rewrite of Tcl's serial driver. The current implementation only performs blocking output. Added [fconfigure] options. The following doc files are patched: fconfigure.n Serial [fconfigure] options are now documented here. open.n Serial port filenames are documented here. Added a link to [fconfigure] for additional serial options. The attached file tip35patch.tgz contains patches (diff -c file.old file.new > file.patch) against the Tcl8.4a2 sources. The patch file for tclWinSerial.c is larger than the original file. Therefore both files are attached: tclWinSerial.c tclWinSerial.c.patch - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "schroedter"
- subsystem changed to: "27. Channel Types"
- title changed to: "TIP#35 Patches: Serial port enhancements"
- type changed to: "Patch"