Translating a 3rd party ascii table to display with a standard library

Hi all,

My current project is building a controller surface for my recording software that's based on a protocol called "HUI" by a company called mackie. I'm having a lot of success by referencing this:

and by using a midi monitor to watch how messages behave... but this isn't really related to my question.

The problem at hand is that I'm reading in some Hex bytes from software (that thinks it's talking to a HUI device) and I want to print them using a standard library (or through serial monitor), but the device the computer thinks it's talking to had it's own idea of what each byte means. For example, digits 0 though 9 are 0x30 to 0x39; capital A is 0x41 and counts up for a bit, then picks at capital P with 0x50. There's special characters as well. The table of values is on page 13 in the link above.

So I guess my question to more experienced programmers what would be the easiest way to "translate" the incoming hex bytes into the expected characters? Is it a big array or characters indexed by the hex values? Can I define a character set? There are 127 values to deal with.

Thanks for entertaining such a weird question,
Brian

The table of values you refer to is probably standard ASCII. If all you want to do is print them, they're already in the right format, since the serial monitor communicates in ASCII. So there isn't any translation to do, and there's no need for any lookup tables or anything like that.

But you have to send them out with a Serial.write(), instead of Serial.print().

aarg,

Well, I'm a big dope. Not sure why I didn't do a quick check to standard ascii just to see first... must have just been too sleepy. I don't think all the special characters line up but it looks like the alpha-numerics are working fine with serial.write. Thanks!

Brian