i am looking for a solution to automatically convert ASCII characters to HEX code.
Like the "VReplaceASCIINumberByHexCode" command, but including characters and not only numbers.
Why?
I want to control a Denon DN700C via TCP and need to calcuate a checksum depending on a fader's volume value.
Description from the manual:
If you change the command parameter from the sample command below, you have to pay attention to change the Check Sum data in the command. The calculation is to add all bytes from the ‘Format’ code to ‘Parameter Pack’ code. For example, in case of CUE TIM 000:05;67 command, Check Sum is the 0x1f8 (0x11 + 0x01 + 0x00 + 0x00 + 0x06 + 0x09 + 0x30 + 0x30 + 0x30 + 0x3a + 0x30 + 0x35 + 0x3b + 0x36 + 0x37, 5th to 19th code). You use 1 byte (0xf8), the Check Sum code is ‘f’ (ASCII code is 0x46) and ‘8’ (ASCII code is 0x38). So, command codes are;
0xF0,0x00,0x40,0x03,0x11,0x01,0x00,0x00,0x06,0x09,0x30,0x30,0x30,0x3a,0x30,0x35,0x3b,0x36,0x37,0x46,0x38,0xF7