[Tutor] how to read over serial port

Jerry Hill malaclypse2 at gmail.com
Mon Nov 3 22:49:24 CET 2008

On Mon, Nov 3, 2008 at 4:08 PM, shawn bright <nephish at gmail.com> wrote:
> yes, they look like this
> ����������������������
> so i used your print repr(chr(ord(i))) and got this

Note that that's the same thing as just printing repr(i).

> so, what do i do now?
> and thanks for the info, by the way, been writing python for 2 years,
> but this is all new to me.

Maybe we should back up a little bit.  You said in your original post
that you were expecting ASCII characters from the serial device.  How
do you know that's what you should be getting back?  Have you tried
communicating with the device using some other program?  If so, what
program?  Do you have specs that tell you that's how it's supposed to

Are you sure you're connecting to the device with the right parameters
for baudrate, byte size, parity, etc?

I notice that nowhere in this thread have you posted the code you use
to actually communicate with the serial device.  Maybe you should do


More information about the Tutor mailing list