Cant write from linux to Win98 through a serial port connect
Closed / Fixed218833ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:06:19
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
welch Closed ticket [218833ffff].
[History diff]2000-10-26 08:30:12
dgp Ticket [218833ffff]: 3 changes
[History diff]2001-04-23 03:06:41
Log in (anonymous is fine) to add a comment.