Page 1 of 1

Okay I'm stuck and BEGGING for help.

Posted: Sat Nov 07, 2009 5:49 pm
by sbg
I have made some progress in trying to figure all this stuff out but at this point I am stuck trying to figure out how to calculate the "1 byte sum".

I found this example command that WORKS:


But when I follow the instructions on how to calculate the 1 byte sum I come up with this command that does NOT work:


Obviously I am not doing my calculations correctly. Here are the instructions that I am trying to follow.

A character is considered as a hexadecimal data (ex. "A"=0x41)
Calculate 1byte sum and convert it to a decimal number (0 to 255)
(Example of Sum calculation)
When the first 10 characters of the above command 0,1,27,PUT
are presented in ASCII code and added up...
0 , 1 , 2 7 , P U T
To calculate 1 byte sum, take out the last 1 byte of the above result "0x47"
and then convert it to decimal number. The final result becomes 71

Even these instructions from Yamaha say that the final result is 71 and that does not work, but the example command I found with 135 does.

I'm so confused ANY help would be greatly appreciated.


Re: Okay I'm stuck and BEGGING for help.

Posted: Sat Nov 07, 2009 9:57 pm
by sbg
Just in case anyone else every try's to figure this out here is an answer I got on another forum.

The example just uses the first 10 characters of the command, but if you sum everything in the string "0,1,27,PUT,Main_Zone(Vol(Mute=On))," right up to and including the last comma before the sum itself, then you'll get 135.