Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cc8746157596c54e770c6687bbe95aa6c537cb87
Ticket: 438509ffffffffffffffffffffffffffffffffff
TIP#35 Patches: Serial port enhancements
User & Date: schroedter on 2001-07-04 12:03:50
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "schroedter"
  9. subsystem changed to: "27. Channel Types"
  10. title changed to: "TIP#35 Patches: Serial port enhancements"
  11. type changed to: "Patch"