Comments (4)
As far as I understand CCITT-16 encompasses a range of similar configurations…
One source of confusion is, some literature refers to "the CCITT polynomial" (𝑥16 + 𝑥12 + 𝑥5 + 1; 0x1021) only caring about the polynomial itself, without regard to the other parameters that constitute a CRC algorithm. So from that point-of-view, any CRC that uses the "CCITT polynomial" might be confusingly named a CCITT CRC.
Eg Cyclic redundancy check — Polynomial representations (Wikipedia) lists various CRC polynomials including CCITT without other parameters.
Since the Catalogue of parametrised CRC algorithms exists and provides a more precise identification of CRC algorithms, it makes sense to follow its nomenclature.
Will be addressed in 7.0.0
Thanks for that. I appreciate your work to improve this.
from crc.
Hi @cmcqueen,
Thanks for reaching out. As far as I understand CCITT-16 encompasses a range of similar configurations, not just one. I wasn't fully aware of this in the past, leading to the current approach. I will address this in the future when releasing the next major
version. I'm always a bit cautious about potential breaking changes. For now, I see the best step as improving documentation to mitigate this.
You can find a basic outline of the configurations here:
Acknowledging this isn't ideal, I'm considering creating a MkDocs plugin to enhance the documentation in regard to the CRC configurations.
best
Nico
from crc.
Will be addressed in 7.0.0
from crc.
Hi @cmcqueen,
thanks for response, yes that's pretty much what happend to me 😅.
best
Nico
from crc.
Related Issues (20)
- mypy error: Skipping analyzing "crc": [...] missing library stubs or py.typed marker HOT 8
- Invalid checksum for HDLC Frame HOT 2
- 🐞 Invalid checksum is calculated when using `Calculator` instead of `Register` classes HOT 10
- Crc8.SAEJ1850 has wrong `init_value` and `final_xor_value` HOT 2
- 📚 Readme update HOT 2
- 🔧 Refactor CRC-16 Configuration Naming and Expand Variants HOT 4
- 🐞 Return of digest() is not stable HOT 2
- 🐞 My project on github uses crc. When I ran my tests I got an error relating to CCITT HOT 1
- Inconsistent CRC result for different input type HOT 9
- Add support for arbitrary input and output bit widths HOT 7
- Automate pypi deployment with GitHub action(s) HOT 1
- Automate code coverage reporting with GitHub Actions
- lookup table generation output is wrong HOT 1
- file input handling could be better HOT 1
- Create a pypi release containing the latest changes HOT 1
- Implement Reverse Input/Output Lookup Table when running table_based HOT 7
- Add missing __version__ attribute HOT 2
- "poly" should be "polynomial" in example HOT 1
- Add 16bit MODBUS config HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crc.