I want to communicate with a LanBox and I have to send values in hexadecimal, but represented by their ASCII values. So, for example 0 is 00 in hexadecimal, and it's sent as 48 48. 255 is FF and is sent as 70 70. The only thing I can think of is [makefilename], but it seems that it's only helpful for converting a decimal number to hexadecimal. How can I go about the rest, splitting the two characters and finding their ASCII values?
Thanks! This works perfectly. Well ff is 102 102 cause it's lower case whereas I want to send upper case, but I've split the list in the end and added an [expr if($f1>57,$f1-32,$f1)] there and I get the numbers I want.
On Fri, May 31, 2013 at 3:54 AM, Patrice Colet colet.patrice@free.frwrote:
I've added namespace for moocow any2bytes in this version