home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / electron / 19218 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.9 KB  |  44 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!infonode!ingr!b30news!catbyte.b30.ingr.com!medin
  3. From: medin@catbyte.b30.ingr.com (Dave Medin)
  4. Subject: Re: How is this (SDLC?) CRC computed ?
  5. Message-ID: <1992Nov19.200324.3291@b30.ingr.com>
  6. Keywords: SDLC, CRC, MNP
  7. Sender: usenet@b30.ingr.com (Usenet Feed)
  8. Reply-To: medin@catbyte.b30.ingr.com
  9. Organization: Intergraph Corporation, Huntsville AL
  10. References:  <1992Nov19.174655.1416@cs.tcd.ie>
  11. Date: Thu, 19 Nov 1992 20:03:24 GMT
  12. Lines: 30
  13.  
  14. In article <1992Nov19.174655.1416@cs.tcd.ie>, dherity@cs.tcd.ie (Herity D.) writes:
  15. |> I'm doing an SDLC implementation in software (processing every bit) and
  16. |> am stumped by the CRC calculation.
  17. |> I receive a packet 03h,05h,08h,17h,31h,94h, the last two bytes of which are
  18. |> the CRC. This is in MNP level 5. I've read several versions of how the
  19. |> SDLC CRC is computed, but I can't reproduce it. I've tried CRC-CCITT,
  20. |> CRC-16, LSB first and MSB first, initialising to 0s and 1s, but there's
  21. |> something missing.
  22.  
  23. I've got a public domain program to do 16 bit CRC's (CCITT) for
  24. HDLC by the table lookup method. It is also in the PPP RFC 1331,
  25. addenums. I can mail the table and some "C" fragments that use it.
  26. It is invertible, getting the magic number 0xf0b8 as a result.
  27. I think I saved my small test program, too. I'll e-mail what I've got
  28. to requestors.
  29.  
  30. The Internet RFC example is much more readable than my modified
  31. code, and I would advise looking at it if at all possible.
  32.  
  33. -- 
  34. --------------------------------------------------------------------
  35.        Dave Medin            Phone:    (205) 730-3169 (w)
  36.     SSD--Networking                (205) 837-1174 (h)
  37.     Intergraph Corp.
  38.        M/S GD3004         Internet: medin@catbyte.b30.ingr.com
  39.   Huntsville, AL 35894        UUCP:  ...uunet!ingr!b30!catbyte!medin
  40.  
  41.    ******* Everywhere You Look (at least around my office) *******
  42.  
  43.  * The opinions expressed here are mine (or those of my machine)
  44.