from uspp import * #open com1 in 8N1 format, speed 9600 s = SerialPort("/dev/ttyS0", None, 9600) #remove any pending bytes s.flush() while 1: print s.read()