Block Check Character (BCC)

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

User avatar
mol
Posts: 2742
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 91 times
Been thanked: 32 times
Contact:

Re: Block Check Character (BCC)

Post by mol » Fri Mar 17, 2017 6:28 am

Send manual in English if you have

edk
Posts: 103
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 24 times
Been thanked: 44 times

Post by edk » 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.

User avatar
Roberto Lopez
HMG Founder
Posts: 3880
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 107 times

Post by Roberto Lopez » Fri Mar 17, 2017 12:52 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest