<?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>How disable packet encryption in nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35571/how-disable-packet-encryption-in-nrf51822</link><description>Hi to all, 
 i have an example that it implemented a device with some charactristics, when i use sniffer to sniff these packets i can not see the packets data because the encryption enabled, now i want know that how can disable packet encryption in this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jun 2018 07:18:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35571/how-disable-packet-encryption-in-nrf51822" /><item><title>RE: How disable packet encryption in nrf51822</title><link>https://devzone.nordicsemi.com/thread/137583?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 07:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8b02c35-0293-426f-97a6-9bc3e203bff7</guid><dc:creator>H&amp;#229;vard</dc:creator><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:10pt;"&gt;I see that you have entered an LTK, but still, the LTK is the prime suspect for faulty decryption.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:10pt;"&gt;Try deleting the bond on both sides, then connect and bond. And let me see the key exchange that happens.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:10pt;"&gt;&lt;span style="float:none;background-color:transparent;color:#000000;font-family:arial, helvetica, sans-serif;font-size:13.33px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt; (erasing the entire chip will do the trick to delete bonds, but for most of our BLE examples, you can simply hold button 2 while doing a power cycle).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-align:left;color:#11171a;text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;white-space:normal;float:none;background-color:transparent;"&gt;What example in the SDK are you using as your starting point?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How disable packet encryption in nrf51822</title><link>https://devzone.nordicsemi.com/thread/137317?ContentTypeID=1</link><pubDate>Sun, 24 Jun 2018 05:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14eca3d8-24a2-4a9f-a880-6e6984db37f9</guid><dc:creator>alireza sadeghpour</dc:creator><description>&lt;p&gt;i am using CC2540 sniffer and version of my softdevice is 13, when i&amp;nbsp;use sniffer to sniff the ble packets, it show something like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8228.sniffer.png" /&gt;&lt;/p&gt;
&lt;p&gt;as you can see i entered the pass key and also sniffer detected the LTK, but still do not encrypt packets and i&amp;nbsp; could not see the packets raw data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for your response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How disable packet encryption in nrf51822</title><link>https://devzone.nordicsemi.com/thread/137039?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e500aca4-4348-4c25-8ed2-fe42145ab23d</guid><dc:creator>H&amp;#229;vard</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What sniffer are you using? Most sniffers have no problem following basic SMP. But some simpler models, like our own&amp;nbsp;&lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer"&gt;https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer&lt;/a&gt; has trouble with advanced LESC.&lt;/p&gt;
&lt;p&gt;What SDK are you using? 12.3?&lt;/p&gt;
&lt;p&gt;What example in the SDK are you using as your starting point?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think you should try to remove the encryption. If you are a beginner you may be making things harder instead of simpler.&lt;/p&gt;
&lt;p&gt;But here are some ideas anyway:&lt;/p&gt;
&lt;p&gt;If your device is a central, you can try to avoid calling&amp;nbsp;pm_conn_secure(), however, many characteristics that you interact with have security requirements. Notice that many examples use these macros&amp;nbsp;BLE_GAP_CONN_SEC_MODE_SET_OPEN,&amp;nbsp;BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM etc in the main.c files&lt;/p&gt;
&lt;p&gt;So on your periheral side, you would have to disable security (set to open) on all characteristics.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>