question about binary and serial info
Grant Edwards
grante at visi.com
Thu Aug 18 22:17:17 EDT 2005
On 2005-08-19, John Machin <sjmachin at lexicon.net> wrote:
> The OP is reading raw output from a serial port. He's already said he's
> getting "funny ASCII characters". One gets the impression he thinks he
> needs to do bit-twiddling on *each* byte. Looks like he needs ord(), or
> (better) struct.unpack()
Yes, I finally reached that conclusion. The OP kept insisting
he was reading hex strings -- an impression given him by the
device's vendor, apparently.
--
Grant Edwards grante Yow! Jesuit priests are
at DATING CAREER DIPLOMATS!!
visi.com
More information about the Python-list
mailing list