Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 32b2c9d0c3a240ef600fc31951b216d0ddfea32b
Ticket: 218833ffffffffffffffffffffffffffffffffff
Cant write from linux to Win98 through a serial port connect
User & Date: nobody on 2000-10-26 01:06:19
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2302 Bug
    Version: 8.1.1
    SubmitDate: '1999-06-28'
    LastModified: '1999-10-21'
    Severity: SER
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Other
    Machine: NA
    FixedDate: '1999-10-21'
    FixedInVersion: 8.2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Prabhat Arora
    
    ReproducibleScript:
    # I am trying to make a TCl script on a linux machine communicate with a
        TCl 
        # script on Win98. I have made a serial port connection between the two.
        Then 
        # I try the following commands on the two consoles: 
        
        #on a linux Tcl console
        
        set in [open /dev/ttyS0 r+]
        fconfigure $in -blocking 0 -buffering line -mode 9600,0,8,1
        puts $in "Test sentence"
        
        #on the windows TCl console I type
        
        set out [open com1: r+]
        fconfigure $out -blocking 0 -buffering line -mode 9600,0,8,1
        puts stdout [gets $out]
        
        #no output on the Win console... if the mode is blocking it freezes!!
    
    ObservedBehavior:
    I am trying to make a serial connection between a Win98 PC  and a linux
        machine. I can write stuff on the Win 98 Tcl console (using open com1,
        puts etc) and read it on the linux console (using gets..). But somehow
        with the same settings the connection doesnt work the other way i.e. if
        I write to the  serial port at the linux console, i cant read it at the
        Win98 Tcl console. I am using TCl 8.1.1
        What am i doing wrong??
    
    
    
    The serial and socket device drivers were significantly changed
    from 8.1.1 to 8.2.  This should work with that release. 
    -- 10/21/1999 hobbs
    
  4. foundin changed to: "final: 8.1.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    Cant write from linux to Win98 through a serial port connect
    
  11. type changed to: "Bug"