Hi Helmut, Sorry about that. I thought that was the correct polynomial. My mistake.
Try searching for crc software on the web. There should be lots of examples of generating the coefficient tables for various polynomials. There must be somebody out there who knows the polynomial for the PalmOS UInt16 Crc16CalcBlock (const void *bufP, UInt16 count, UInt16 crc) function. I can't believe it's meant to be a secret. Regards, On 11/02/07, Helmut A. Bender <[EMAIL PROTECTED]> wrote: > > Hi Pinus, > > the second one... I knew it was one of the coefficents but not which. > > But ok, that's not the polynomial I need. So I do have to implement > myself. > > Thank you all. > > Am Sonntag, 11. Februar 2007 18:06 schrieb Pinus Alba: > > HI Helmut, > > > > It depends how much maths you know. If you look at the zlib and other > palm > > crcs they all use the same 32 bit coefficients. The second 16 bit > > coefficent gives the polynomial. From memory this is 0x1021, ie. the > same > > as the xmodem polynomial > > > > generator polynomial (X^16 + X^12 + X^5 + 1) > > > > Try that polynomial. > > > > Regards, > > > > On 11/02/07, Helmut A. Bender <[EMAIL PROTECTED]> wrote: > > > Am Samstag, 10. Februar 2007 15:38 schrieb Aaron Ardiri: > > > > On 2/10/07, Helmut A. Bender <[EMAIL PROTECTED]> wrote: > > > > > Thanks, but no... thats the CRC32 of the zlib... I need to know > the > > > > > polynomial of the included Crc16CalcBlock API... > > > > > > > > > http://www.koders.com/c/fid8749525F1BD9303912F4DFBD3B01AE13A35604D5.asp > > > >x > > > > > > > > there you go; same site - but, the sources to POSE (palmos > emulator). > > > > the routine is right there for you. > > > > > > Hm - I think I should look inti this site a bit deeper. :-) > > > > > > But it doesn't solve my problem, since there is only the table, but > not > > > the > > > polynomial. > > > > > > Background: I have to implement a CRC-16 with a given polynomial. If > it > > > were > > > the same as used in CRC16CalcBlock I could use that. > > > > > > Well, I'll see it as a exercise to implement it myself: :-) > > > > > > -- > > > Mit freundlichen Grüßen > > > Helmut A. Bender > > > > > > Helmut Bender GmbH > > > 75203 Königsbach-Stein > > > Amtsgericht Mannheim HRB 501213 > > > Geschäftsführer: Helmut A. Bender > > > > > > -- > > > For information on using the PalmSource Developer Forums, or to > > > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > -- > Mit freundlichen Grüßen > Helmut A. Bender > > Helmut Bender GmbH > 75203 Königsbach-Stein > Amtsgericht Mannheim HRB 501213 > Geschäftsführer: Helmut A. Bender > > -- > For information on using the PalmSource Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
