Nov 8, 2007 #1 C copper230230 Newbie level 6 Joined Feb 6, 2006 Messages 12 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,394 Dear Sirs, When I study the USB spec, it said that the CRC polynomial of token was: G(x) = X^5 + X^2+1 When the host send message with crc to device, then device use this CRC to check these data. If no error occured, the residual was X^5+X^3+X^2. I also found some document, but I can't understand what it meant at the item 3 at page 2. ( www.usb.org/developers/whitepapers/crcdes.pdf ) Why the residual will always be a constant? If someone can kindly tell me the math inside this constant which CRC residual. Thanks!!
Dear Sirs, When I study the USB spec, it said that the CRC polynomial of token was: G(x) = X^5 + X^2+1 When the host send message with crc to device, then device use this CRC to check these data. If no error occured, the residual was X^5+X^3+X^2. I also found some document, but I can't understand what it meant at the item 3 at page 2. ( www.usb.org/developers/whitepapers/crcdes.pdf ) Why the residual will always be a constant? If someone can kindly tell me the math inside this constant which CRC residual. Thanks!!
Nov 8, 2007 #2 K kelvin_sg Advanced Member level 4 Joined Aug 17, 2004 Messages 102 Helped 3 Reputation 6 Reaction score 3 Trophy points 1,298 Location Singapore Activity points 852 Help for CRC If you invert the received message and run through the CRC checker, you get residue of some fixed number. If you don't invert, you get residue of 0.
Help for CRC If you invert the received message and run through the CRC checker, you get residue of some fixed number. If you don't invert, you get residue of 0.