[Tutor] how to read over serial port

shawn bright nephish at gmail.com
Tue Nov 4 03:34:09 CET 2008

Forgot some info,
i hooked the device up and used a serial terminal and got back stuff like this
some of the above is what i am looking for.

settings are the same as in my python script

thanks for any help,

On Mon, Nov 3, 2008 at 3:49 PM, Jerry Hill <malaclypse2 at gmail.com> wrote:
> 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
> work?
> 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
> that.
> --
> Jerry
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list