PySerial rereads its own data
Cliff Wells
LogiplexSoftware at earthlink.net
Tue Jun 3 13:54:40 EDT 2003
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:
# stty -F /dev/ttyS0
speed 9600 baud; line = 0;
-brkint -imaxbel
# stty -F /dev/ttyS1
speed 9600 baud; line = 0;
-brkint -imaxbel
Regards,
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 (800) 735-0555
More information about the Python-list
mailing list