Hi,
i am communicating with stm 32 via UART. The frame i receive is "1C000000B0B80700040400000000000000" and the CRC of the frame is " 9D0351B5". its not matching the calculation of the crc which i do, the calcuated crc is " 226F9471" . I tried the calculation with python and other sources calculated crc works fine. If anyone how to solve, pleas elet me know.
Solved! Go to Solution.
Any clue about the code the microcontroller is running? There are many variations on CRCs, so you pretty much need to know what algorithm is being used in order to get it to work.
Also things like high byte/low byte ordering are important which could "swap" by communication protocols.
Norbert
nope. I don't know that info. but i know the CRC calculation is according to the IEEE 802.3 standard. Also Communication is Little Endian.
@jay0909 wrote:
[...] Also Communication is Little Endian.
Are you sending the data litle endian?
Norbert
Hi
Nope I recieve in Little Endian, as per the UART specs. I cannot send becos of the CRC problem.
Can you post your VI which includes the receiver part?
Norbert
I believe there is a nice set of CRC vis in the VIPM.
Hi,
The attachment contains the code of the recieving end. I have segregated according to the frame format last 4 bytes after data is the CRC.
@ PalanivelT : Please read the whole post carefully.