Re: Block Check Character (BCC)
Posted: Fri Mar 17, 2017 6:28 am
Send manual in English if you have
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://hmgforum.com/
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:
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:
Very strange indeedChecksum is calculated using 8-bit addition of all bytes in the data structure.Overflows are not taken into account (1 byte).