<?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>disable encryption  uart ble code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28573/disable-encryption-uart-ble-code</link><description>Hi Folks,
I am playing with uart ble example described in this link ( devzone.nordicsemi.com/.../). 
 However, I would like to disable encryption on BLE link. I was trying to modify the c code of this example but I couldn&amp;#39;t disable BLE encryption </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Dec 2017 08:30:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28573/disable-encryption-uart-ble-code" /><item><title>RE: disable encryption  uart ble code</title><link>https://devzone.nordicsemi.com/thread/113215?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 08:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ccd8fe-f8c3-4e14-9ca9-e7040c1a9b56</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If the BLE_GAP_EVT_SEC_PARAMS_REQUEST event is not received the peer doesn&amp;#39;t try to pair (and encrypt) the link and the link will not be encrypted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disable encryption  uart ble code</title><link>https://devzone.nordicsemi.com/thread/113214?ContentTypeID=1</link><pubDate>Sat, 16 Dec 2017 03:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85144682-c962-4e9d-9733-dad93b60b107</guid><dc:creator>Ali97</dc:creator><description>&lt;p&gt;Hi, I found the code you listed above. However, it seems that the program does not call it. Is there any way to make sure that BLE link is not encrypted? i.e. encryption is disabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disable encryption  uart ble code</title><link>https://devzone.nordicsemi.com/thread/113213?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 11:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd605a7-861c-4c41-91dd-8fc80adb2031</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;That is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disable encryption  uart ble code</title><link>https://devzone.nordicsemi.com/thread/113212?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 11:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bdd5361-813a-4ce4-bdcd-02f71feb945d</guid><dc:creator>Ali97</dc:creator><description>&lt;p&gt;Thank again petter for your comment. I have quick question just to make sure that I am on the right track; by disabling encryption on BLE link, data on the air will be whitened data (no encryption no other manipulation), right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disable encryption  uart ble code</title><link>https://devzone.nordicsemi.com/thread/113211?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 10:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20fe16bc-931f-4bf1-8f19-f6b91a6531c8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Shouldn&amp;#39;t be too hard to find. It is in on_ble_evt() in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disable encryption  uart ble code</title><link>https://devzone.nordicsemi.com/thread/113210?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 10:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4459c2d-00c2-4fb2-8e1d-43f9496de844</guid><dc:creator>Ali97</dc:creator><description>&lt;p&gt;Thank you Petter for your answer.
I am using nRF5 SDK 12.2. And SoftDevice is 132..&lt;/p&gt;
&lt;p&gt;Could you please tell me where (in the uart ble example) to find the segment of c code you suggest to modify?&lt;/p&gt;
&lt;p&gt;Thank you again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disable encryption  uart ble code</title><link>https://devzone.nordicsemi.com/thread/113209?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 10:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3f08546-222c-40f7-83bc-1c2497708780</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Usually the question is on how to enable encryption :)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what SDK and SoftDevice you are using, but you should handle the BLE_GAP_EVT_SEC_PARAMS_REQUEST event. Something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    case BLE_GAP_EVT_SEC_PARAMS_REQUEST:
        // Pairing not supported
        err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL);
        APP_ERROR_CHECK(err_code);
        break;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>