PySerial rereads its own data

Peter Hansen peter at engcorp.com
Mon Jun 2 19:45:16 EDT 2003


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?

-Peter




More information about the Python-list mailing list