473,472 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

calculation of crc-16 in C

3 New Member
I am using an ethernet and for sending ECHO reply,its important to calculate CRC.Should Iconsider data while calculating 16-bit CRC, and if YES then where shoul i append the EXTRA zeros,
1. at the place of CRC itself or
2.in the end..

for example:
if msg is:
45 00 00 3c 02 13 00 00 80 01 [two bytes of crc] [source IP] [destination IP]

should i consider source and destination IP's while calculating CRC-16 or not..?

and where should i append zeroes..?

please,help me..
Nov 5 '09 #1
2 4826
sicarie
4,677 Recognized Expert Moderator Specialist
I think that depends on a few different things. What is this going to be used for? Is this a homework question where you're just working on theory, or are you going to create an algorithm and small program to calculate this? If so, what language, and what specifically are you going to be calculating?
Nov 9 '09 #2
khatavkar
3 New Member
I am going to create an algorithm,& a small program also..in C'language..
Also ,i am not able to decide polynomial for this calcaulation,could u please help me!!
Nov 10 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dwight via AccessMonster.com | last post by:
Hi everyone I have a database containing pictures (actually only links to them). Each picture has a ID consisting of a number. My problem is this: as more pictures are added, duplicates will...
2
by: joboja | last post by:
Looking for help with 8 bit crc. Poly is x8 + x7 + x4 + x3 + x + 1 starting with all one bits. Crc result is complemented before transmission. Received message 14000000 with appended crc 05.
5
by: Susanne Strege | last post by:
Hello... I'm wondering if it is possible to perform a CRC or Checksum on the data contained in a simple Linked List that uses pointers to nodes???
5
by: ALuPin | last post by:
Hi, I have found a piece of C code for checksum calculation CRC16 ccitt. Is that right? How can I initialize crc?
2
by: Chen L. | last post by:
Hi all, If I have a 32-bit data M, and the CRC genrator polynomial G(x),which power is 32, then I can get the CRC checkword R by the following algorithm: X^32*M(x) = Q(x)G(x) + R(x), But how...
0
by: Andreas Håkansson | last post by:
Hi, I'm trying to implement a 32bit Table based CRC caluclator based on the guidelines in this http://thorkildsen.no/faqsys/docs/crc.txt document. However I have run into a small "problem"...
1
by: Dragon | last post by:
Hi, I am trying to find out what type CRC a particular utility is using. I am attaching a sample txt file (in a zip). When I use CRC32 to get the CRC value of this text file I get 3524-41C2. When I...
15
by: ValK | last post by:
Hello, I’m working with handheld device that communicates with windows service thru the serial port. Transaction between device and my application looks like this: Handshaking: Device sends ...
2
by: VictorTan | last post by:
Hello. I'm new to this forum. Hope that I don't make mistakes in here but if I do, please correct me if there is. Thanks. I also wanted to ask you guys regarding about the following following...
1
by: `Zidane Tribal | last post by:
it would appear that using the command 'crc("data")' from the String::CRC returns incorrect results (although, they are at least consistently incorrect). for example, this script..... ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.