Posted on 2006-04-07
Last Modified: 2012-06-27
I have a little application in VB6 that uses the MSComm control to read data coming in from the serial port. The data is being transmitted by another computer through a modem, over the air (1200 baud FM radio transmission), and being received at my end by another modem connected to the serial port of the PC. We now want to add some CRC (error checking) because as you can image, FM transmission is quite prone to errors. The data transmitted is simple ASCII strings of about 20 bytes at most. What would be a good CRC check to apply to the data? I don't need to correct errors - just identify them. I saw some examples of people simply XORing the bytes together, and then adding an extra byte at the end with the result. Is this good? I've also read about CRC16 and CRC32 and MD5 and so forth. We're looking for something simply yet effective.

Question by:SETP
    LVL 13

    Accepted Solution


    i think a simple xor should do the trick,

    you can use just one, or 2 characters
    LVL 2

    Expert Comment

    if you know what you goning to  recive you can calculate the string and send the result - if it is not match so you got a wrong string.....

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now