Calculating CRCs or FCSs
The cyclic redundancy check (CRC) is a function on the Event Display window used to produce a checksum. The frame check sequence (FCS) are the extra checksum characters added to a frame to detect errors.
- Open the Event Display window.
- Click and drag to select the data for which you want to generate a CRC.
- Click on the CRC icon .
- In the CRC dialog box, click on the down arrow to show the list of choices for CRC algorithms. Choose an algorithm to use. Choose CRC 32 (Ethernet). Choose CRC 32 (Ethernet) for Ethernet data or the appropriate CRC type for serial data.
- Enter a Seed value in hexadecimal if desired.
- Click OK to generate
the CRC. It
appears in the byte information lines at the bottom of the Event Display
window. Whenever
you select a range of data, a CRC
using the algorithm you selected is calculated automatically.
Calculating CRC for interwoven data
Frontline calculates the CRC for either side of the interwoven data. Which side it calculates is determined by the first byte selected. If the first byte is from one side, then Frontline calculates the CRC for just the bytes on that side. If the first byte is from the other side, then Frontline calculates the CRC for just the bytes on that side.
Incorrect results with CRC16 for serial data
If you are calculating CRCs using the CRC16 algorithm and the CRCs do not match what you know they should be, try CRC16rev. What hardware often calls CRC16 is what software calls CRC16rev.