newbie sending hex values over UDP socket

Peter Hansen peter at
Fri Sep 10 19:21:26 CEST 2004

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. :-)


More information about the Python-list mailing list