|
2001-04-20
| ||
| 01:59 | • Ticket [218380ffff] serial port communication can only send message out stat... artifact: e61867bf6d user: dgp | |
|
2000-10-26
| ||
| 08:21 | • Closed ticket [218380ffff]. artifact: c49b41df21 user: welch | |
| 00:56 | • New ticket [218380ffff]. artifact: ea5e45c08c user: nobody | |
serial port communication can only send message out
Closed / Fixed218380ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:53
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
welch Closed ticket [218380ffff].
[History diff]2000-10-26 08:21:16
dgp Ticket [218380ffff]: 3 changes
[History diff]2001-04-20 01:59:34
Log in (anonymous is fine) to add a comment.