[Tutor] Need help with serial input

2005-08-18 Thread nephish
Hey there, i am using the serial module and trying to get some info over an RS232 port. Seems to be comming in ok, but when i print it out, its in ASCII instead of hex. is there a way to have python read serial in hex bytes instead of ASCII ? thanks. shawn

Re: [Tutor] Need help with serial input

2005-08-18 Thread Alan G
Hi Shawn, i am using the serial module and trying to get some info over an RS232 port. Seems to be comming in ok, but when i print it out, its in ASCII instead of hex. Thats because print interprets sequences of bytes as ASCII codes. The bytes you read from serial are just binary numbers