Giter Site home page Giter Site logo

Diverging CRC16 results about crc HOT 4 CLOSED

ClaesClaes avatar ClaesClaes commented on May 23, 2024
Diverging CRC16 results

from crc.

Comments (4)

RobTillaart avatar RobTillaart commented on May 23, 2024

Not much time this week to dive into this.

Things I would check

  • line endians "\n \r" or single versions.
  • UTF encoding?
  • special characters?

Would start with a simple test - just a single char "a", extend it and see when it breaks.

from crc.

ClaesClaes avatar ClaesClaes commented on May 23, 2024

No worries,
thanks for the tip. Integers fitting in one byte produce the same crc results. So good first step. I have no special characters in the files (json) but could be something with the UTF encoding. I'll look in that direction. Thanks again.

from crc.

ClaesClaes avatar ClaesClaes commented on May 23, 2024

Well, turns out both libraries spits out the exact same crc...
It was my mistake. In the iOS application I add the crc number to the json file at the time of transmission to the ESP32 (my first verification architecture approach) but not the copy stored in iOS. So the two files could never be the same and obviously with different crc outcomes. Apologies for taking up your time.

from crc.

RobTillaart avatar RobTillaart commented on May 23, 2024

No problem, on contrary. It is good to have another real live test that the lib is working and doing what it supposed to do.
Thanks

from crc.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.