<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NRF Snifffer 1.0.1 crc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24878/nrf-snifffer-1-0-1-crc</link><description>Hello, 
 I am getting data from UART and extract NRF BLE packet.
I check the CRC Flag and its OK. But sometimes the UART has some error and I have to check the 3 CRC bytes at the end of the packet manually.
So I need to check the 24 bit CRC which is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 03 Sep 2017 09:17:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24878/nrf-snifffer-1-0-1-crc" /><item><title>RE: NRF Snifffer 1.0.1 crc</title><link>https://devzone.nordicsemi.com/thread/97972?ContentTypeID=1</link><pubDate>Sun, 03 Sep 2017 09:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb3a0b13-50dd-4342-81ef-ba65a8c56890</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;From Bluetooth Core Spec (Vol 6., Part B):&lt;/p&gt;
&lt;p&gt;3.1.1 CRC Generation&lt;/p&gt;
&lt;p&gt;The CRC shall be calculated on the PDU field in all Link Layer packets. If the PDU is encrypted, then the CRC shall be calculated after encryption of the PDU has been performed.&lt;/p&gt;
&lt;p&gt;The CRC polynomial is a 24-bit CRC and all bits in the PDU shall be processed in transmitted order starting from the least significant bit. The polynomial has theformofx24 +x10 +x9 +x6 +x4 +x3 +x+1.For every Data Channel PDU, the shift register shall be preset with the CRC initialization value set for the Link Layer connection and communicated in the CONNECT_REQ PDU. For every Advertising Channel PDU the shift register shall be preset with 0x555555.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>