ASCII characters to HEX

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

ASCII characters to HEX

Postby tom0101 » Tue Jun 04, 2019 6:00 pm


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.

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;
Posts: 2
Joined: Wed Jan 18, 2012 10:46 am

Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 2 guests