Okay I'm stuck and BEGGING for help.

sbg
New Member
New Member
Posts: 36
Joined: Thu May 24, 2007 12:17 pm
Contact:

Okay I'm stuck and BEGGING for help.

Postby sbg » Sat Nov 07, 2009 5:49 pm

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:

0,1,27,PUT,Main_Zone(Vol(Mute=On)),135

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

0,1,27,PUT,Main_Zone(Vol(Mute=On)),71

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
0x30+0x2C+0x31+0x2C+0x32+0x37+0x2C+0x50+0x55+0x54=0x247
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.

Thanks,
Jim

sbg
New Member
New Member
Posts: 36
Joined: Thu May 24, 2007 12:17 pm
Contact:

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

Postby sbg » Sat Nov 07, 2009 9:57 pm

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.


Return to “Global Cache”

Who is online

Users browsing this forum: No registered users and 1 guest