PySerial rereads its own data
Cliff Wells
LogiplexSoftware at earthlink.net
Tue Jun 3 15:07:45 EDT 2003
On Tue, 2003-06-03 at 10:54, Cliff Wells wrote:
> On Mon, 2003-06-02 at 16:45, Peter Hansen wrote:
> > Cliff Wells wrote:
> > >
> > > I'm trying to write an app that talks to a bit of hardware on the serial
> > > port. As a test setup, I've got a null modem cable linking /dev/ttyS0
> > > and /dev/ttyS1 on the same PC.
> > [snip]
> > > 'hello' correctly appears on the console running 'cat /dev/ttyS1'.
> > >
> > > My question is this: why do I get back the data I just wrote? More to
> > > the point, how do I stop it?
> >
> > Maybe check (or post?) the output of "stty" for /dev/ttyS0 on the
> > sending machine? Echoing?
>
> I was thinking the same thing after I got home last night, but that
> doesn't appear to be it:
Go figure. For some reason 'cat' must do something odd. If I run
anything but cat, it works as expected.
That's what I get for just picking the "simplest tool" that could
*never* do anything unexpected...
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 (800) 735-0555
More information about the Python-list
mailing list