03-15-2018 02:50 PM
I am unable to get the CRC calculator going off the C examples I have found. Can one of you gurus help me out on this one.
Standard Polynomial 0x3D65
Reverse Polynomial 0xA6BC
Initial Remainder 0x0000
Polynomial: X^16+X^13+X^12+X^11+X^10+X^8+X^6+X^5+X^2+X^0
Example Data (hex): A5 0F 06 90 05 00 00 00
CRC: B3 38
https://stackoverflow.com/questions/43052658/how-to-calculate-the-crc16-for-wireless-m-bus-messages
Solved! Go to Solution.
03-15-2018 09:33 PM
I think this may work. I'll leave it up to you to decide.
It works on the "live data" from the link you provided.
Correct
Correct
But not on the first set of hex/crc data in that link. Website gives 0xB92F as the correct CRC
Wrong
This is what I get using your example data. When comparing the calculated CRC to your expected value, the bytes are swapped. 0x38B3 vs.0xB338
Bytes Swapped
Do you have any more data to try?? It would be an easy fix in the above VI to swap the byte order.