Page 3 of 3

Re: Block Check Character (BCC)

Posted: Fri Mar 17, 2017 6:28 am
by mol
Send manual in English if you have

Re: Block Check Character (BCC)

Posted: Fri Mar 17, 2017 10:49 am
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.

Re: Block Check Character (BCC)

Posted: Fri Mar 17, 2017 12:52 pm
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!