crc Questions

4

Solved

I want to create a 32-bit number out of an ASCII-string. CRC32 algorithm is exactly what I'm looking for, but I can't use it because the table it requires is way too huge (it is for an embedded sys...
Feudalize asked 14/1, 2015 at 9:44

3

Solved

Upd. See the end of post for working code I'm already mad with this. How can I make checksum from CRC unit on stm32f103 match with software implementation? Stm has polynom 0x04C11DB7 and reset val...
Grandmother asked 7/4, 2016 at 17:32

3

If I have a certain number of bytes to transfer serially, how do I determine which CRC (CRC8, CRC16, etc., basically a how many bit CRC?) to use and still have error detection percentage be high? I...
crc
Spivey asked 23/6, 2010 at 19:22

5

I am using the following function to generate a CRC sum and it doesn't appear to be returning the same checksum when compared to online CRC-CCITT calculators. This function specifically uses the X...
Kassandrakassaraba asked 19/6, 2013 at 16:40

4

I'm modifying a firmware file (.jic) JTAG Indirect Configuration File with a small algorithm, but changing data inside the file makes it unusable because there is a checksum somewhere in the file t...
Gamb asked 17/7, 2017 at 14:53

7

Solved

I'm working on a library to provide simple reliable communication over an RS232 or RS485 connection. Part of this code involves using a CRC16 checksum on the data to detect corruption from line noi...
Boyish asked 12/5, 2012 at 14:13

2

Solved

I know that implementations exist for SHA-1 and SHA-256 in System.Security.Cryptography. Is there anything built in that can compute CRC hashes?
Franky asked 11/8, 2014 at 19:11

15

Solved

What is the fastest way to create a hash function which will be used to check if two files are equal? Security is not very important. Edit: I am sending a file over a network connection, and will...
Diet asked 19/11, 2009 at 7:52

5

Solved

I have seen multiple implementation of crc8 implementation in C, but I am unable to figure out for polynomial(x8,x5,x4,1) i.e. 0x31 and initialization 0xFF. Also reflect input = False, reflect ou...
Cunnilingus asked 8/8, 2018 at 17:19

4

I need to calculate exactly CRC-8-Dallas/Maxim. Can someone provide an algorithm? Any help is appreciated!
Incorporating asked 23/3, 2015 at 15:37

4

Solved

I'm trying to add CRC16 error detection to a Motorola HCS08 microcontroller application. My checksums don't match, though. One online CRC calculator provides both the result I see in my PC program ...
Kathrynekathy asked 15/12, 2010 at 21:45

3

Solved

I'm trying to calculate/validate the CRC32 checksums for compressed bzip2 archives. .magic:16 = 'BZ' signature/magic number .version:8 = 'h' for Bzip2 ('H'uffman coding) .hundred_k_blocksize:8 = '...
Ruby asked 17/12, 2010 at 7:43

3

I need to get CRC64 checksum of files using PHP. With this code file_put_contents('example.txt', 'just an example'); echo hash_file('crc32', 'example.txt'); I get CRC32 checksum "c8c429fe"; B...
Maisel asked 20/4, 2012 at 11:42

8

Solved

Problem I am writing code for an embedded device. A lot of solutions out there for CRC-CCITT 16-bit calculations require libraries. Given that using libraries is almost impossible and a drain on ...
Incase asked 11/8, 2014 at 8:59

14

Solved

When is it appropriate to use CRC for error detection versus more modern hashing functions such as MD5 or SHA1? Is the former easier to implement on embedded hardware?
Tabu asked 15/6, 2009 at 15:43

4

Solved

I need to calculate this CRC using Python for the communication with Aurora (ABB) solar inverter. This is the document: http://www.drhack.it/images/PDF/AuroraCommunicationProtocol_4_2.pdf in the l...
Fullrigged asked 18/11, 2018 at 7:5

3

I tried to find out how to calculate the error detection capabilities of arbitrary CRC polynomials. I know that there are various error detection capabilities that may (or may not) apply to an arb...

8

I am trying to write a script to clean up mp3 file names using Python and eyeD3 but I am getting "WARNING:eyed3.mp3.headers:Lame tag CRC check failed" when I try to load an mp3 file using the follo...
Retro asked 15/4, 2016 at 0:0

4

Solved

I have the following frame: 7e 01 00 00 01 00 18 ef 00 00 00 b5 20 c1 05 10 02 71 2e 1a c2 05 10 01 71 00 6e 87 02 00 01 42 71 2e 1a 01 96 27 be 27 54 17 3d b9 93 ac 7e If I understand correctly...
Maziemazlack asked 2/11, 2011 at 16:30

7

Solved

I've seen 8-bit, 16-bit, and 32-bit CRCs. At what point do I need to jump to a wider CRC? My gut reaction is that it is based on the data length: 1-100 bytes: 8-bit CRC 101 - 1000 bytes: 16-bit...
Stercoricolous asked 23/2, 2010 at 21:2

3

Solved

Is there any library/code in Java to calculate the 32-bit CRC of a stream of bytes in a way thats consistent with the cksum command in unix ?
Penology asked 12/10, 2011 at 20:57

2

There are two ways of implementing CRC generation with linear feedback shift registers (LFSR), as shown in this figure . The coefficients of generator polynomial in this picture are 100111, and the...
Collodion asked 20/8, 2014 at 22:48

1

Where I can find this crc32() function in detail? I saw this Link but I couldn't figure out how CRC is being calculated. I asked a question about updating the CRC based on the data stream instead o...
crc
Hales asked 31/12, 2020 at 1:21

10

I want to calculate the CRC of file and get output like: E45A12AC. Here's my code: #!/usr/bin/env python import os, sys import zlib def crc(fileName): fd = open(fileName,"rb") content = fd.rea...
Oversubtle asked 16/11, 2009 at 15:23

1

Solved

Is it possible to calculate the CRCs on the fly (in the streams)? For example, I have 1-gigabyte data and I want to reduce the possibility of undetected errors. I want to implement something (CRC o...
Roseanneroseate asked 31/8, 2020 at 3:38

© 2022 - 2025 — McMap. All rights reserved.