Thanks for your answer.
However, I don't think this is exactly a hw locking issue. I don't want
coLinux to directly access any hardware at all, rather, I'm in search
of a generally applicable technique to redirect *both* stdin and stdout
of a Windows program to a com port. I don't think this is (technically)
difficult at all (and it doesn't have anything to do with coLinux per
If this is not possible to do with standard windows command line tools,
I might write a little console application which takes two arguments,
1) a program name to execute, and 2) a serial port name (e. g., COM1)
to which both stdin and stdout of the program will be directed.
This application should be fairly trivial to implement. We could of
course also add this functionality to colinux-serial-daemon as an
additional command line option.
What do you think?
> I don't think there is a reliable way to do this. I've talked to many
> of the designers, and they all site the same issue: locking. Often,
> there is a lot of contention between Windows and coLinux for the same
> hardware, and managing this contention is extremely difficult. Also,
> writing drivers for various type of hardware is difficult as well.
> On Fri, 11 Feb 2005 12:04:37 +0100, Nemec, Bernhard
> <Bernhard.Nemec@...> wrote:
> > I just found that on Windows,
> > type COM1 | colinux-serial-daemon.exe
> > as well as
> > colinux-serial-daemon.exe > COM1
> > work as a means of transfmitting data from/to COM1 to/from
> > coLinux' /dev/ttyS0.
> > But I haven't yet found a way to establish the communication
> > in both directions at the same time. I'd appreciate any hints on
> > how to do this...
> > Thanks!
> > Bernhard
> > > Hi,
> > >
> > > I read about "coSerial" on the mailing lists, but it's not clear
> > > to me how to use it.
> > >
> > > I can open a minicom terminal inside coLinux and
> > > "type some.txt | colinux-serial-daemon.exe" on the windows side,
> > > and I can see some output in minicom.
> > >
> > > But what I really want is access the real hardware of the host
> > > from Linux, i. e., somehow connect /dev/ttyS0 to COM1 so my
> > > Linux application can talk to a serial device connected to my
> > > PC.
> > >
> > > Is this possible?
> > >
> > > Thank you, regards,
> > > Bernhard