Block Check Character (BCC)
Moderator: Rathinagiri
Re: Block Check Character (BCC)
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.
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'
You're right.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:
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Block Check Character (BCC)
Wow!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'
You're right.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:
Now... searching based on your information, I've found this:
Very strange indeedChecksum is calculated using 8-bit addition of all bytes in the data structure.Overflows are not taken into account (1 byte).
I'll do some tests ASAP.
Many thanks to all for the help!
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)