<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht.]]></title><description><![CDATA[<p>Es muss sehr schnell sein und darf keine Hilfstabellen brauchen, da es für einen uC ist. Sowas tolles wie MD5 u.a. kommt also nicht in Frage ;-).</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/153219/schnelles-kurz-zu-implementierendes-prüfsummenverfahren-gesucht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 16:57:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/153219.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Jul 2006 06:30:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 06:30:59 GMT]]></title><description><![CDATA[<p>Es muss sehr schnell sein und darf keine Hilfstabellen brauchen, da es für einen uC ist. Sowas tolles wie MD5 u.a. kommt also nicht in Frage ;-).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097478</guid><dc:creator><![CDATA[Molocko_]]></dc:creator><pubDate>Fri, 14 Jul 2006 06:30:59 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 07:16:11 GMT]]></title><description><![CDATA[<p>CRC? Oder simple Pruefbits (1 oder 2 dimensional)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097492</guid><dc:creator><![CDATA[Korbinian]]></dc:creator><pubDate>Fri, 14 Jul 2006 07:16:11 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 07:20:40 GMT]]></title><description><![CDATA[<p>Sehr beliebt sind auch &quot;Bitweise invertieren dann Addieren&quot;-Verfahren bei uC... Dabei wird jedes Byte des Speicherbereichs invertiert und dann die Summe darüber gebildet...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097494</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Fri, 14 Jul 2006 07:20:40 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 07:41:10 GMT]]></title><description><![CDATA[<p>Warum invertiert man da noch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097503</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Fri, 14 Jul 2006 07:41:10 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 08:30:41 GMT]]></title><description><![CDATA[<p>Molocko_ schrieb:</p>
<blockquote>
<p>Es muss sehr schnell sein und darf keine Hilfstabellen brauchen, da es für einen uC ist. Sowas tolles wie MD5 u.a. kommt also nicht in Frage ;-).</p>
</blockquote>
<p>z.b. sowas:</p>
<pre><code>#define GOODFCS 0xf0b8
#define INITFCS 0xffff

static UINT16 crc_tab[16] =
{
  0x0000, 0x1081, 0x2102, 0x3183,
  0x4204, 0x5285, 0x6306, 0x7387,
  0x8408, 0x9489, 0xA50A, 0xB58B,
  0xC60C, 0xD68D, 0xE70E, 0xF78F
};

/* CRC16 implementation acording to CCITT standards */
UINT16 crc_update (UINT16 crc, UINT8 c)
{
    crc = (((crc &gt;&gt; 4) &amp; 0x0FFF) ^ crc_tab[((crc ^ c) &amp; 0x000F)]);
    crc = (((crc &gt;&gt; 4) &amp; 0x0FFF) ^ crc_tab[((crc ^ (c&gt;&gt;4)) &amp; 0x000F)]);
    return crc;
}
</code></pre>
<p>die 32 bytes für die tabelle bekommste in die kleinste mcu rein. der code ist ja auch recht wenig...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097524</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097524</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Fri, 14 Jul 2006 08:30:41 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 12:54:04 GMT]]></title><description><![CDATA[<p>Molocko_ schrieb:</p>
<blockquote>
<p>Es muss sehr schnell sein und darf keine Hilfstabellen brauchen, da es für einen uC ist. Sowas tolles wie MD5 u.a. kommt also nicht in Frage ;-).</p>
</blockquote>
<p>Was spricht gegen chksum? Einfach die Summe bilden?! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
Ist &lt; O(n/2^8) ... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097698</guid><dc:creator><![CDATA[Prof84]]></dc:creator><pubDate>Fri, 14 Jul 2006 12:54:04 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 12:59:55 GMT]]></title><description><![CDATA[<p>Ja, so habe ich es nun gemacht.</p>
<p>Danke an alle!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097705</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097705</guid><dc:creator><![CDATA[Molocko_]]></dc:creator><pubDate>Fri, 14 Jul 2006 12:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 13:25:23 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">lst &lt; O(n/2^8)
</code></pre>
<p>was soll das bedeuten, kann mir das einer erklaeren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097724</guid><dc:creator><![CDATA[frager]]></dc:creator><pubDate>Fri, 14 Jul 2006 13:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 13:36:15 GMT]]></title><description><![CDATA[<p>Das wird Dir wohl niemand erklären können, weil es nämlich falsch ist.<br />
Das Verfahren läuft in O(n), nicht schneller. Wenn Dir das nichts sagt, schau mal bei wikipedia nach O-Kalkül.</p>
<p>Gegen die einfache Summe spricht, unter Umständen die Anwendung. Wenn es dabei um Kommunikation geht, dann ist das nicht so toll, weil sich Fehler lokal wieder wegheben können. Bei CRC hat man Garantien, das wenn eine gewisse höchstmenge aufeinanderfolgender Bits gestört sind die Checksumme auf jeden Fall falsch ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097736</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Fri, 14 Jul 2006 13:36:15 GMT</pubDate></item><item><title><![CDATA[Reply to Schnelles, kurz zu implementierendes Prüfsummenverfahren gesucht. on Fri, 14 Jul 2006 15:34:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/324">@Jester</a>:<br />
Joh, Faktoren sind nicht statthaft in der Klassifikation!<br />
Punkt für dich. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Hier eine schönere Kladde:<br />
<a href="http://www.physik.fu-berlin.de/~goerz/studies/semester01/comp_sci2/inf_skript.pdf" rel="nofollow">http://www.physik.fu-berlin.de/~goerz/studies/semester01/comp_sci2/inf_skript.pdf</a></p>
<p>Das heißt chksum, weil die Summe gecheckt wird.<br />
Das reduziert nur die Wahrscheinlichkeit von Fehlern auf ein Minimum,<br />
schließt Sie aber nicht aus.</p>
<p>1:1 ! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097809</guid><dc:creator><![CDATA[Prof84]]></dc:creator><pubDate>Fri, 14 Jul 2006 15:34:46 GMT</pubDate></item></channel></rss>