Pyserial - send and receive characters through linux serial port

terry itskrithika at gmail.com
Fri Apr 25 19:22:37 EDT 2008


Hi,

I am trying to send a character to '/dev/ttyS0' and expect the same
character and upon receipt I want to send another character. I tired
with Pyserial but in vain.

Test Set up:

1. Send '%' to serial port and make sure it reached the serial port.
2. Once confirmed, send another character.

I tried with write and read methods in Pyserial but no luck.

Can you help?

Thanking you all.
T



More information about the Python-list mailing list