0

CRC Rule A

Marcel 1 month ago in IQANdesign updated 3 weeks ago 2

I need a CRC check described as Rule A as seen in the table. I'm not sure if it is possible at the moment and how to make it work. I think it is different than the standard options in iQanDesign.

Can someone help me please?

Image 4711

Image 4710

Image 4709

Image 4708

Hello Marcel.

I am afraid that we do not have native support for this rule.

If you use the custom CRC and chose to include the ID in the calculation it will be added in the beginning instead of the end as this rule wants.

It is also the entire ID (priority, PGN and SA) in little endian that is used, not only the PGN and SA.

There is another post on the forum with an example of how to set up a CRC manually.

https://forum.iqan.se/communities/1/topics/2049-crc-16-protocol

You can use the CRC page you used to generate the lookup table needed.

So you could create something yourself.

Because this CRC check is not supported I already made my own solution because I had no time and had to make something. I also looked at the example you gave me in your above comment and came with a working solution.

I noticed (but I think it is clear also) that the tricky part is the calculation order of the CRC calculation. You need to be sure the calculation is done with the last received parameters and then send immediately after calculation. With sending a frame, it is the same. Be sure the calculation matches the send frame by checking the calculation order .

Image 4718