V
V
Vasily Pupkin2019-09-16 09:09:48
Algorithms
Vasily Pupkin, 2019-09-16 09:09:48

How to calculate the CRC calculation algorithm if several calculation examples are known?

Good afternoon.
Maybe someone can advise.
I need to calculate exactly how the CRC is calculated for an array of bytes.
There are several calculation examples
Byte array (00 85 70) CRC (0a 5b)
Byte array (01 71 63) CRC (2a 99)
Byte array (68) CRC (97 be)
I can't figure out how it counts.
Already wrote a program that counts CRC8 and CRC16. The loop runs through the original array of bytes for polynomials from 0 to FF (crc8) and initialization points ( init) from 0 to ff.
for crc16 respectively from 0 to ffff.
No combination gives an intersection in all three arrays.
The only thing I found out is that if you check the array in the calculator
https://www.scadacore.com/tools/programming-calcul...
then the first CRC number is CheckSum8 2s Complement 0x100 - Sum Of Bytes minus 1.
Further fog.
Can anyone suggest something?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kalapanga, 2019-09-16
@kalapanga

No way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question