newbie sending hex values over UDP socket
fluxent at yahoo.com
Sat Sep 11 14:33:24 CEST 2004
Peter Hansen <peter at engcorp.com> wrote in message news:<QYGdnckJ3ukLf9zcRVn-sQ at powergate.ca>...
> Bill Seitz wrote:
> > Are you saying I can just do something as simple as
> > sock.send('ri0')
> > ?
> Exactly. That sends three bytes corresponding to the
> "raw" byte values you showed before.
> > (This interface is typically used over a modem connection between 2
> > embedded/hardware devices, if that provides a clue/context. So it's
> > entirely possible that I've thought the situation was more complicated
> > than it really is because the other guy is used to dealing with these
> > low-level devices...)
> The beauty of Python... makes working with even low-level hardware
> a pleasure compared to many languages. :-)
Excellent - now how about calculating a parity-check byte?
More information about the Python-list