<?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>Authentication before connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12426/authentication-before-connection</link><description>I am using nRF51 with Softdevice S110 to do a BLE peripheral, I want to have pin-code authentication before central device (or android phone) can connect to the peripheral to read/write characteristics. 
 I realize the SDK of nRF has very limited published</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Mar 2016 05:32:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12426/authentication-before-connection" /><item><title>RE: Authentication before connection</title><link>https://devzone.nordicsemi.com/thread/47031?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 05:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1effbf-2113-4e47-9215-b999fc66f737</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;so there you go - it&amp;#39;s easy. If there are no bonds you let anyone connect - the first guy who connects and bonds is then &amp;#39;the connection&amp;#39;. If you have a bond then you use the functions to whitelist the address and only that guy will connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authentication before connection</title><link>https://devzone.nordicsemi.com/thread/47030?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 03:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0cd849d-21b3-410c-830b-f8374c9052d7</guid><dc:creator>YSquare</dc:creator><description>&lt;p&gt;For the first time (whitelist is empty), the peripheral should allow connection &amp;amp; paring if the central passes the authentication.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authentication before connection</title><link>https://devzone.nordicsemi.com/thread/47029?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 03:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff166156-cc99-4e30-a51d-2d236be02ab4</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Well that&amp;#39;s just whitelisting again and the peer manager (Nordic&amp;#39;s library code) supports making a whitelist for bonded peripherals.&lt;/p&gt;
&lt;p&gt;However how&amp;#39;s that actually going to work in practice? If you can&amp;#39;t connect unless you&amp;#39;re bonded and you can&amp;#39;t bond before you connect, then there&amp;#39;s no way to get a peripheral bonded so you can connect to it the first time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authentication before connection</title><link>https://devzone.nordicsemi.com/thread/47028?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 03:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e60fa2cc-d525-454f-bda3-cf79f5743d9e</guid><dc:creator>YSquare</dc:creator><description>&lt;p&gt;Thanks. It is also acceptable to allow/disallow central device to connect if it is not bonded before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authentication before connection</title><link>https://devzone.nordicsemi.com/thread/47027?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 02:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51260034-fecb-46db-896f-68744534d48d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You can&amp;#39;t. Bluetooth doesn&amp;#39;t support that type of authentication before connection, only afterwards. However what&amp;#39;s the problem? If no characteristics can be read before bonding, you don&amp;#39;t have an issue.&lt;/p&gt;
&lt;p&gt;You can whitelist by MAC address to allow/disallow device connection by address, if you know the addresses you want, but that&amp;#39;s it, that&amp;#39;s all you can do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>