OriginalBugID: 2302 Bug
# I am trying to make a TCl script on a linux machine communicate with a
# script on Win98. I have made a serial port connection between the two.
# 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!!
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