Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ea5e45c08cb398f7b37ee545a427d61f6ba5c39a
Ticket: 218380ffffffffffffffffffffffffffffffffff
serial port communication can only send message out
User & Date: nobody on 2000-10-26 00:56:53
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4356 Bug
    Version: 8.3
    SubmitDate: '2000-03-10'
    LastModified: '2000-04-04'
    Severity: CRIT
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows 95
    OSVersion: 8.3
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-04'
    
    
    Name:
    Keshu Zhang
    
    ReproducibleScript:
    set comFd [open COM2: RDWR]
    flush comFd
    fileevent $comFd readable "clientRead"
    
    proc clientRead {} {
        fconfigure $comFd -blocking no
        set readSize [gets $comFd readBuf]
        if {$readSize==-1 && [eof $comFd]==1} {
           puts "the pipe is closed. The program has to be closed either!"
           exit
        }
    }
    
    ObservedBehavior:
    The other end of the serial communication in a vxworks machine(unix system alike). I want to receive the message sent out from the machine. But I can not receive anything!
    
    On the other hand, the window's hyperterminal which connectes COM2 can receive message from the vxworks  machine. It seems that It is not the problem of COM2 and communication pipe.
    
    
    
    As provided, this script wouldn't work.  The $comFd needs to be
    declared global, or passed in (the better choice).  Serial communication
    should indeed be OK in both directions (OK for others). 
    -- 04/04/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.3"
  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:
    serial port communication can only send message out
    
  11. type changed to: "Bug"