07-18-2016 03:21 AM
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.
07-18-2016 07:17 AM
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.
07-18-2016 08:32 AM
Also things like high byte/low byte ordering are important which could "swap" by communication protocols.
Norbert
07-18-2016 08:46 AM
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.
07-18-2016 08:51 AM
@jay0909 wrote:
[...] Also Communication is Little Endian.
Are you sending the data litle endian?
Norbert
07-18-2016 08:56 AM
Hi
Nope I recieve in Little Endian, as per the UART specs. I cannot send becos of the CRC problem.
07-18-2016 08:59 AM
Can you post your VI which includes the receiver part?
Norbert
07-18-2016 12:38 PM
I believe there is a nice set of CRC vis in the VIPM.
07-18-2016 10:46 PM
07-19-2016 01:43 AM - edited 07-19-2016 01:45 AM
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.