CRC-CCITT I guess

I searched through the various threads on CRC and am at a loss as to what I really need. I received a specificaiton with almost no information. I am very familiar with the Red Cross Canadian so I hope some of you can help out me.

Requirements

* One CRC 16 bit is calculated for load fields useful sequence number and message. The CRC should be placed after the message payload.

* CRC is calculated according to the standard polynomial x 16 + x 12 + x 5 + 1

* CRC initial value. The computation of the CRC initial value must be zero

Then, I give myself a C code sample which is suppose to calculate CRC using a lookup table. The upper part of the code includes the following comment, "CRC-16-CCITT, Reversed, x ^ (16) + x ^ (12) + x ^ (5) + 1, 0 x 8408.

Verification Test data

Here is a sequence of test data for the verification of the CRC algorithm. This data consists of 16, 16-bit (in hexadecimal format).

0 x 5554 CCCE EEE9 6963 637B 5B 24 DA16 D836 CDB6 EDB6 D5B6 DFB6 DB8E 7B5B C71D 9249

CRC for this sequence of data is 0x86DE

I tried to put this sequence in various vi I found in the forums, but none of them give me the 0x86DE. Even change the entries form 8 bit to bit 16 etc.. Because I can't seem to find out how the CRC is suppose to work I can't debug the problem. I worked with this code as it seems the simplist (wish I could remember who posted it so that I could give credit).

Any help would be appreciated.

Skydyvr,

I fiddled a bit and you got an implementation that I think that works you need (based on one of several others I have done).  No tables, so it's a run more slowly, but is generally irrelevent for infrequent calls or short messages.

From the sources I have, it looks like "Kermit" flavor, some descriptions describe as a 'real' CRC-CCITT.

Here's a good link:

Online calculator of the CRC - Lammert Bies

I would like to know if it works for you.  I pasted your example chain in and makes it the default input data, just to make demonstration easier.

Best regards

Dave

Tags: NI Software

Similar Questions

  • 8-bit CRC-CCITT

    Hello

    I'm trying to generate a bit 8 CCITT CRC with the polynomal 9-bit U3 + U2 + U4 + U8 + 1

    I have studied and tried to change the CRC 16 bit found here calculator and Vi post by Shoneill here, but I'm getting nowhere...

    Generator of CRC should be initialized to 0, LSB is sent first.

    In the datasheet, I found the example:

    Data 1:1010 0000

    2 data: 0000 0011

    CRC: 0010 1010

    Any intervention on how I can modify the existing 16-bit calcultors, or would it be a better idea to start from scratch?

    Solved. Change the shoneill vi finally gave me the result I needed.

  • Calculation of the CRC-16 CCITT

    I need help for generating a CRC - 16 CCITT.  I've searched high and low and can't find the right one.  Here is a list of the sites that I have used to try to find a LabVIEW VI to do the trick:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/1660

    https://decibel.NI.com/content/docs/doc-1103

    http://forums.NI.com/T5/LabVIEW/CRC-CCITT-16bit-initial-value-of-0xFFFF-or-0x1D0F/TD-p/896664

    http://forums.NI.com/T5/LabVIEW/CRC-16-CCITT-of-serial-packets/TD-p/1471386

    http://forums.NI.com/T5/LabVIEW/trying-to-find-VI-in-LabVIEW-to-calculate-CRC-CCITT-1021-X-25/TD-p/1...

    http://forums.NI.com/T5/LabVIEW/CRC-CCITT/TD-p/109061

    http://forums.NI.com/T5/LabVIEW/computing-CRC/TD-p/825325

    Some of these even have several CRC to the choice.

    Now, what I have is a piece of code C.  And this is where I ask for help because I have no idea how to turn C in G.  And I'm certainly not fair why this CRC is different from 'standard' ones found in the links above.

    I have attached the PDF with the code.

    Here are a few hexadecimal strings and their corresponding CRC:

    String: 00 CRC 08:07 1

    String: 00 09 CRC: 1-06

    Chain: 02 22 03 E8 CRC: E5 6a

    Chain: 02 27 03 E8 CRC: B5 CF

    Chain: 02 29 00 02 CRC: EB 57

    String: 04 29 00 01 00 03 CRC: CC 94

    Chain: 02 00 64 CRC 3D: 05 38

    If there is someone out there willing to give a shot of this I am CERTAINLY happy!

    Paul.

    Ah.  There is a small tweak in there that makes it different from the 'standard' CRC  How sneaky of them.  This code gives me the results you're looking for.

  • Hex String CRC with different polynomial equation

    Hello

    I can't change a standard CRC16 (I guess) code for working with the equations I.

    The camera I use has the equation of x 16 + x 13 + x 12 + x 11 + x 10 + x 8 + x 6 + x 5 + x 2 + 1, with an initial value of 0.

    I tried to read about CRC via wikipedia etc, but I don't follow it now.

    I watched a lot of examples, but to be honest, I don't know why it is calculated as it is.

    Thank you.

    Here's an example, I was looking at: https://decibel.ni.com/content/docs/DOC-11072

    This code works in both cases.  But not the first.  You type something?

  • CRC of the MBR or UEFI boot loader changes at each reboot?

    I have a Fujitsu Esprimo desktop running Windows 7 Professional.  Whenever I restart, it stops before loading Windows with the following message:

    "The CRC of the MBR boot drive or the UEFI boot loader has changed since the last system startup.
    Press a key to enter setup. »
    To continue, I need to go into the BIOS Setup, output without any change, then Windows loads normally.  This repeat on the next reboot.
    I have run chkdsk on the drive system (c :)), and no problem not found.
    What would do this, and how can I change it?

    I have never activated this setting on my laptop. I don't know exactly what it checks - if it's just the MBR or other things like Bootmgr and BCD. On a system with only Windows 7 installed, I don't expect the MBR and Bootmgr to change after installation. If this started after an update? Reliability Monitor may show changes with has occurred around the time it started.

    I guess that the Fujitsu support have verified that you have the most up to the date of the BIOS. Have you tried to disable the warning of viruses and then allowing him once again in which case it must be reset? Even if it is a boot virus, I don't expect to be changing in order to cause the detection at each start. If you want to eliminate this possibility, it is preferable to use a virus scan offline as Windows Defender in offline mode.

    An outside possibility is that Webroot is something clever with these files that is causing the problem.

    You can reset the MBR and Bootmgr using the method here:

    http://support.Microsoft.com/kb/927392

  • The CCITT u - Law encoder settings

    HI - please forgive my ignorance, I have much to learn about recording audio, but I searched on the web and these forums widely as well as trial and error and I'm stumped.

    I just a copy of Adobe Audition and have been invited to create audio messages to a phone connection system (CISCO) unit.

    The settings that I received are as follows:

    Flow rate: 64 kbps

    Audio sample size: 8 bit

    Channels: 1 (mono)

    Sampling frequency: 8 kHz

    Audio format: CCITT U - law

    I think I found where to adjust them all of the above except the audio format.

    I found information announcing that these audio prompts can be created with hearing (even recommended), but no real step by step instructions.
    I also found a few free conversion tools. I tried registering with the hearing and conversion. The quality is severely wrong parcel after conversion. I guess that's to be expected with 8-bit but I would like to have the best possible quality.

    I got a decent 8-bit sounding record in hearing but in the properties of the resulting file .wav file it details State parameters of the encoder: PCM8bit-1.png:

    Considering that convert it with the free converter shows the encoder settings: CCITT u - Law

    8bit-2.png

    SO my question is... How can I get the ecoder settings to read CCITT u - Law, during the registration/export directly from hearing?

    And advice to maximize the quality of the recording are appreciated. You can see the settings I've chosen above.

    Thanks much for any guidance you can provide.

    Best,

    Aimee

    Hi love,

    You will need to have CS6 Audition CS5.5 did not support the native export to u - Law.

    • When you are ready to export, select file > save under...
    • Choose "libsndfile (*.aifc, *.aiff.)" , as the Format, and then click on the button 'Change...' next to Parameters of Format
    • In the new dialog box, set the Format "Audio waveform" and coding for "u - Law"
    • Then repeatedly click OK to apply these settings

  • Cannot be deactivated domain guessing version 37.0.2 to go to about.config

    Online suggestions have not helped, including going in Preferences > browser, because the browser is not in my version. What I need it to must stop geolocation requiring an entry "about.config" in the URL, but adds field bar ALWAYS guess www. for her, so I get error 'server not found '. Mac OS x 10.6.8. Thanks for your help.

    It is not about.config by a point, but Subject: config with a colon.
    topic: is a protocol such as http: and is used to access the built-in special pages
    You can open on: pages through the address bar.

    I guess you are looking for this pref:

    • Geo.Enabled = false

    Note that Firefox will always ask for permission before using the geolocation.

    If geolocation is not used Web sites can do a reverse DNS glance upward from your IP address and is generally not very accurate.

  • Airport network guess without the access control list.

    In fact, on the page AirPort base stations: on the guest network feature, Apple write this:

    "If enabled, access control lists will be applied to both the main Wi - Fi network and the network of comments. If you use Access Control Lists, you will need to add your comments network clients to the list so that they can join. »

    I think that on previous versions of the airport, it was possible to use the network to guess without the access control list.

    The idea is that only the (primary) private network should use this access control list.

    The network presupposes that is give for direct and temporary access (not necessary to access Airport utility, ask your friend and note its Mac address, restart the resort from the airport... for every friend who invited you to home)!

    Is there a workaround resolution?

    Unless you have set up a default rule 'No access' in the timed access settings, then it is not necessary to set up a rule for each "guest." Just give them the password for the network of comments and they will be able to access the network.

    IF... you have set a default rule 'No access' in the timed access settings, then you must also configure a rule for each device that you want to allow to connect with the settings for the time that the device is allowed to access the network.

  • Corrupted file? I can't type in Firefox - guess I need to reload without lossing bookmarks?

    Only with Firefox I can't type anything. My mouse, works etc but it does not save the key stores. I guess I need to reload the browser, but I want to assure you that I do not lose my favorites (sorted and unsorted) until I restore the browser.

    Hmm,

    Try to creat a new profile for you:

    Also:

    I've seen some comments that Ad-Aware SE will solve the problem, if you want to test:

    At the Windows Update?

  • My iPhone-ish syncs with macbook pro when it comes to iTunes. Message reads "iPhone need latest version of iTunes. I can't understand how to upgrade iTunes on the iPhone, unless it comes to update the operating system. I guess I have the latest OS, 9.3

    My iPhone-ish syncs with macbook pro when it comes to iTunes. Message reads "iPhone need latest version of iTunes. I can't understand how to upgrade iTunes on the iPhone, unless it comes to update the operating system. I guess I have the latest OS, 9.3.2 on my iPhone. Any help for this problem?

    • Sync with iTunes on a Mac or a PC requires:

    iTunes too old and too old osx to support necessary to have iTunes, you will need to update osx to update iTunes to work

  • Safari screen claims to make Apple Macintosh system alert, saying: my data was in danger and telling me to call 1-844-316-5 * 5. I'm guessing it's a scam, but it is also a sign of a problem? I have to run some sort of cleaner? Thank you!

    Hello. When you click on a link in Safari, I got a screen that says: "ATTENTION Verizon Online Lic user: your Apple macintosh has been blocked." Apple Macintosh system alert! System was infected due to an unexpected error. "Immediately, certified technicians Mac 1-844-316-5 * 5" etc.  I guess it's a scam and did not call the number. But it does not suggest that I was hacked somehow? Can I launch a kind of cleaner? Thank you!

    < published by host >

    1 n °

    2. only if these messages appear on trusted sites.

    (142425)

  • I used to have a box with the letters/folder called "All messages" - I do not have. Don't know what happened to her - I guess I could have deleted by accident? Can someone tell me how to get it back? Thank you

    I use the MAIL function on my MacBook Pro. I used to have a box with the letters/folder called "All messages" - I do not have. Don't know what happened to her - I guess I could have deleted by accident? Can someone tell me how to get it back? Thank you

    What do you mean 'all messages '? all mail entering, or email any or all all. ?

  • disable the words to guess when you type in the search window

    How to disable words to guess when you type in the search window

    https://support.Mozilla.com/en-us/KB/search+bar

    See - search suggestions at the bottom of this support article.

  • Too bad, I guess that the help is not really available.

    Too bad, I guess that the help is not really available.

    Hi Arcticgold-

    This site of any support is managed by the generosity of volunteers. It is a challenge to deal with all the questions. If you can answer with a link to your original problem, I'll try to help you with it.

  • With 2 pencils of Apple, I guess...

    So with the iPad 2 Pro (a 13 ", 10"), but a single case of stylus, I guess I'm either going to 'mark' a pencil so that I know that he is paired with Device13 or Device10 or go through the pairing process, whenever I take the wrong pencil?

    Not sure I'm wild in this topic...

    Alternatives?

    Clinton

    Seems to be the only solution.

    Personally to prevent permanent making devices, I'll wrap a piece of clear tape/Ribbon adhesive on one end, permanent marker allows to place some type of visible mark on the first layer of tape, and then cover the mark with another piece of clear tape to protect the brand. Permanent marker on Scotch tape is not very "stable".

Maybe you are looking for

  • Cannot download Wemo App for my iphone4 iOs 7.1.2

    I bought the model of WEMO 2 F7C027au switch / but I can't download the WEMO app with my iPhone 4 / iOs 7.1.2. This message appears whenever I tried - "this app requires iOS 8.0 or later version. You need to update to iOs ignored 8.0 to download and

  • Phone locked out

    I myself locked out of my phone because I forgot the password. My phone says now use itunes. How can I use itunes to get back into my phone? Please give me directions

  • RAZR OFFICIAL / MAXX ICS - OTA

    It appears that a user on the coast is currently receives the official OTA from Verizon for the Razr Maxx. It is not part of the study of impregnation according to him. You know what forums to look at. XDA. You will not find any help here.

  • I need to know how much it will cost for a fan and the battrie

    namely that iam a studtent to the iam school was by using one of the notebooks hp because my father was asking someone in the store of the computer on which would be the best for me at school and they said that the hp pavilion g6 it worked well im go

  • Instability of the vertical scroll bar of the Panel

    Win 7 Professional, SP 1, 64-bit on a Lenovo ThinkPad. The vertical scroll bar on the "Programs and features" Control Panel suddenly is so unstable that it is impossible to click on a title. Agitation is present both a Logitech mouse and ThinkPad tra