03-06-2017 11:36 AM
Hello!
I am working in a project that uses CRC16 to evaluate transmission errors between an emitter and a receiver. Data is transmitted via RF.
In the emitter side, I already have an algorithm to generate CRC16. Then, data is sent in a string with the correspondent CRA.
For example, let’s consider the string “123456789”. The CRC for this string is 31C3 (hexadecimal). So, the message sent will be “12345678931C3”.
Now this message will be received in a VI that I want to create, via Serial Port (using VISA Read). Then I must process the CRC verification dividing the received message by the CRC16 polynomial (1021 hexadecimal) to see if the remainder is zero. If so, the message has no errors.
I think that I should provide a XOR operation between the received string and the polynomial for sometimes until no further division is possible.
Can anyone help me with this? I just need the CRC verification part, since the string processing I know what to do and how to do.
Thank you very much.
Duarte
Solved! Go to Solution.
03-06-2017 11:49 AM
Here's a link to LabVIEW CRC stuff. This should save you a lot of heartache. 😉
03-06-2017 11:56 AM
I typically just perform the same CRC algorithm on the data and just check to see if it matches the supplied CRC. Not all CRCs will go back to 0 when performed with the calculated CRC.
03-06-2017 03:32 PM
Thank you very much!
🙂
03-08-2017 06:19 AM
Thanks are given with kudos and marking solutions.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-08-2017 07:19 AM
Hooovahh escreveu:
Thanks are given with kudos and marking solutions.
Not only. 🙂
Done!
Thanks for reminding.