Pyserial never read

Petr Jakes petr at tpc.cz
Wed Feb 22 12:04:09 EST 2006


Well, I think it is better to start with some simple code first.
Try to read serial port and print it out.
something like this could work:

import serial

s = serial.Serial(port=2,baudrate=38400, timeout=20)

while 1:
    print s.readline()

Petr Jakes




More information about the Python-list mailing list