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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
serial port communication can only send message out
- type changed to: "Bug"