Block Check Character (BCC)

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

edk
Posts: 911
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Block Check Character (BCC)

Post by edk »

Hi Roberto, I found a BCC explanation on the Polish forum:
BCC= The low part of the binary sum of all bytes.
That would explain why only a part of the BCC sum agrees with the according manual.

Code: Select all

Result: '0554' 
The Hight part is '05'
The Low part is: '54'
Roberto Lopez wrote: Thu Mar 16, 2017 4:57 pm Simply replacing the first two digits of the result generated by your code and replacing them by '00' I get the 'correct' answers:
You're right.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Block Check Character (BCC)

Post by Roberto Lopez »

edk wrote: Fri Mar 17, 2017 10:49 am Hi Roberto, I found a BCC explanation on the Polish forum:
BCC= The low part of the binary sum of all bytes.
That would explain why only a part of the BCC sum agrees with the according manual.

Code: Select all

Result: '0554' 
The Hight part is '05'
The Low part is: '54'
Roberto Lopez wrote: Thu Mar 16, 2017 4:57 pm Simply replacing the first two digits of the result generated by your code and replacing them by '00' I get the 'correct' answers:
You're right.
Wow!

Now... searching based on your information, I've found this:
Checksum is calculated using 8-bit addition of all bytes in the data structure.Overflows are not taken into account (1 byte).
Very strange indeed :)

I'll do some tests ASAP.

Many thanks to all for the help!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply