how to read serial stream of data [newbie]

Jean Dupont jeandupont115 at gmail.com
Mon Feb 6 22:40:35 CET 2012


I'd like to read in a stream of data which looks like this:
the device sends out a byte-string of 11 bytes roughly every second:

    B0B0B0B0B03131B0B50D8A
    B0B0B0B0B03131B0B50D8A
    B0B0B031B63131B0310D8A
    B0B034B3323432B3310D8A
    B0B03237B53432B3310D8A
.
.
.

As you see every string is ended by 0D8A
How can this be accomplished in Python?


thanks

Jean



More information about the Python-list mailing list