#933 Cant write from linux to Win98 through a serial port connect

final: 8.1.1

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'

Prabhat Arora

# 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


  • Brent B. Welch

    Brent B. Welch - 2000-10-26
    • priority: 5 --> 2
    • status: open --> closed-fixed
  • Don Porter

    Don Porter - 2001-04-22
    • labels: 104246 --> 27. Channel Types

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks