<?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>Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58459/automatically-connected-without-putting-the-static-passkey-at-the-time-of-pairing-with-out-bonding</link><description>Hello, 
 I am trying connect with the nRF52840 dongle from my android phone using nRF Connect App. The nRF52840 dongle as peripheral and I am using nRF SDK 15.20 and s140_nRF52_6.1.1 device. My objective is The nRF52840 dongle should connect with nRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Mar 2020 10:23:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58459/automatically-connected-without-putting-the-static-passkey-at-the-time-of-pairing-with-out-bonding" /><item><title>RE: Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/thread/237683?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 10:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba02571-c8d5-447f-8b1d-b0f036d0e167</guid><dc:creator>prayuktibid</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/thread/237674?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 10:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94e37426-97b5-4dda-8821-09ce1a74b8cd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="prayuktibid"]What If I add a single tactile button with the BLE module and I can&amp;nbsp; start advertising and scanning by pressing the button then Can I achieve some security level?[/quote]
&lt;p&gt;It would be better from a usability perspective since the likelihood of you actually connecting to the correct device will increase (since there are probably fewer advertisers, and you can typically advertise with shorter advertising interval when the duration is short). However, it would not increase &lt;em&gt;security&lt;/em&gt;, since an attacker would still be able to connect (or be connected to) instead.&lt;/p&gt;
&lt;p&gt;It is not even theoretically possible with&amp;nbsp;authentication without a form of side-channel, but the side-channel could in principle be anything (typically either human via button/display, NFC, pre-provisioned in flash etc.).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/thread/237592?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 04:17:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca69207b-eba0-4d59-ae9a-230d42922666</guid><dc:creator>prayuktibid</dc:creator><description>&lt;p&gt;Thank you Mr. Einar,&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/58459/automatically-connected-without-putting-the-static-passkey-at-the-time-of-pairing-with-out-bonding/237429"]&amp;nbsp;I understand. But what I wanted to know what how important it was to make sure that this could never happen. Since you want to do this in the field and don&amp;#39;t have any I/O capability or another side channel, it is not possible to make it secure from attackers. But that is hopefully not a concern.[/quote]
&lt;p&gt;I got your point. What If I add a single tactile button with the BLE module and I can&amp;nbsp; start advertising and scanning by pressing the button then Can I achieve some security level?&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/58459/automatically-connected-without-putting-the-static-passkey-at-the-time-of-pairing-with-out-bonding/237429"]&amp;nbsp;I see. The central can choose to connect to just peripherals with the &amp;quot;correct&amp;quot; name, as long as the peripheral puts the name in the advertising packet. For the peripheral, it does not know anything about the central until after it has connected, but you could make the peripheral read the central name after the connection, and disconnect if the name is incorrect.[/quote]
&lt;p&gt;Thank you, I will try on it and let you know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/thread/237429?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 12:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04d2e403-1b88-4f4c-9c46-fddc8d0c45a4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="prayuktibid"]Are &amp;#39;filtering&amp;#39; and &amp;#39;whitelisting&amp;#39;&amp;nbsp; is same thing? I have bit confusion among these two thing.[/quote]
&lt;p&gt;Not necessarily. You can filter on anything. Whitelisting in BLE is essentially filtering on the MAC address (either directly if it is static or by resolving it to an IRK).&lt;/p&gt;
[quote user="prayuktibid"]No button, no display and no keyboard. The peripheral device(assume nrF52840 dongle) should connect automatically with the central device(assume another nrF52840 dongle) whenever it comes withing the range.[/quote]
&lt;p&gt;I see. So it is impossible to make a secure solution in this case, but that is probably not needed anyway.&lt;/p&gt;
[quote user="prayuktibid"]Obviously, I don&amp;#39;t want to connect with wrong device that is why I want to connect with the particular central device[/quote]
&lt;p&gt;&amp;nbsp;I understand. But what I wanted to know what how important it was to make sure that this could never happen. Since you want to do this in the field and don&amp;#39;t have any I/O capability or another side channel, it is not possible to make it secure from attackers. But that is hopefully not a concern.&lt;/p&gt;
[quote user="prayuktibid"]I&lt;span&gt;&amp;nbsp;want to produce central devices and peripheral devices by some particular name. Suppose I make all central device&amp;#39;s &amp;quot;DEVICE_NAME = Master&amp;quot; and peripheral&amp;nbsp;device&amp;#39;s &amp;quot;DEVICE_NAME = Slave&amp;quot;. I want every &amp;quot;Slave&amp;quot;&amp;nbsp; should connect with any &amp;quot;Master&amp;quot; and vice verse but no other devices which have different name. The &amp;quot;Slave&amp;quot; should give provision to connect with it if the device name &amp;quot;Master&amp;quot; is matched otherwise no connection will be established.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;I want to give a generic name or uuid for all centrals and peripherals.&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;I see. The central can choose to connect to just peripherals with the &amp;quot;correct&amp;quot; name, as long as the peripheral puts the name in the advertising packet. For the peripheral, it does not know anything about the central until after it has connected, but you could make the peripheral read the central name after the connection, and disconnect if the name is incorrect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/thread/237396?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 11:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a808f3c0-c530-4346-a352-8ab60f40331f</guid><dc:creator>prayuktibid</dc:creator><description>&lt;p&gt;Thank you Mr. Einar,&lt;/p&gt;
&lt;p&gt;Are &amp;#39;filtering&amp;#39; and &amp;#39;whitelisting&amp;#39;&amp;nbsp; is same thing? I have bit confusion among these two thing.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/58459/automatically-connected-without-putting-the-static-passkey-at-the-time-of-pairing-with-out-bonding/237341"]Will you pair the two devices in production somehow, or should the matching of two specific devices be done later in the field?[/quote]
&lt;p&gt;Basically in field.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/58459/automatically-connected-without-putting-the-static-passkey-at-the-time-of-pairing-with-out-bonding/237341"]Do your devices have buttons, display or anything else? What does it have?[/quote]
&lt;p&gt;No button, no display and no keyboard. The peripheral device(assume nrF52840 dongle) should connect automatically with the central device(assume another nrF52840 dongle) whenever it comes withing the range.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/58459/automatically-connected-without-putting-the-static-passkey-at-the-time-of-pairing-with-out-bonding/237341"]What level of security do you require? Is it acceptable that an attacker can make the devices connect to the wrong device?[/quote]
&lt;p&gt;Obviously, I don&amp;#39;t want to connect with wrong device that is why I want to connect with the particular central device but data is not important cause I want to control hardware(On/OFF type) on peripheral device from the central device.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/58459/automatically-connected-without-putting-the-static-passkey-at-the-time-of-pairing-with-out-bonding/237341"]If you produce two and two devices to work together, then you can do pairing (or a similar concept) during production, and in that case, it would be secure and user-friendly. If you don&amp;#39;t pair them in production, then you need another mechanism, such as suggested below. It will not be as secure, but it may be good enough, depending on your requirements:[/quote]
&lt;p&gt;I&lt;span&gt;&amp;nbsp;want to produce central devices and peripheral devices by some particular name. Suppose I make all central device&amp;#39;s &amp;quot;DEVICE_NAME = Master&amp;quot; and peripheral&amp;nbsp;device&amp;#39;s &amp;quot;DEVICE_NAME = Slave&amp;quot;. I want every &amp;quot;Slave&amp;quot;&amp;nbsp; should connect with any &amp;quot;Master&amp;quot; and vice verse but no other devices which have different name. The &amp;quot;Slave&amp;quot; should give provision to connect with it if the device name &amp;quot;Master&amp;quot; is matched otherwise no connection will be established.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;I want to give a generic name or uuid for all centrals and peripherals.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you advanced.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/thread/237341?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 09:10:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87455ddf-6c5f-4664-a17e-8ccfed5a7716</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="prayuktibid"]So, this is not possible but I would like to know that Is there any produce by which I can ensure the peripheral device will connect with a particular central device?&amp;nbsp;[/quote]
&lt;p&gt;If the devices are bonded beforehand, then this is standardized. You could use whitelisting, where only a central with a specific MAC address (or a specific IRK address if it uses resolvable addresses, as mobile phones do).&lt;/p&gt;
[quote user="prayuktibid"]In case of central device we can do filtering by name, by UUID, by mac id etc... So that the central device connect only those devices which are in filter list.&amp;nbsp;In peripheral device Can I do same thing?&amp;nbsp;[/quote]
&lt;p&gt;Yes. The same whitelisting concept can be used for both central and peripheral devices. But again, you need to bond in that case (or at least know the MAC address and/or IRK address in advance).&lt;/p&gt;
[quote user="prayuktibid"]Actually my primary objective is not security its secondary, my primary and main objective is peripheral should connect the particular central device which I want.[/quote]
&lt;p&gt;I see. This leaves you several options, but which option makes more sense depends on some factors that have not been discussed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Will you pair the two devices in production somehow, or should the matching of two specific devices be done later in the field?&lt;/li&gt;
&lt;li&gt;Do your devices have buttons, display or anything else? What does it have?&lt;/li&gt;
&lt;li&gt;What level of security do you require? Is it acceptable that an attacker can make the devices connect to the wrong device?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you produce two and two devices to work together, then you can do pairing (or a similar concept) during production, and in that case, it would be secure and user-friendly. If you don&amp;#39;t pair them in production, then you need another mechanism, such as suggested below. It will not be as secure, but it may be good enough, depending on your requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use a button press to start advertising, and only advertises for a short while. This makes it unlikely that another device is close by advertising at the same time. This is the approach typically used with HID mice. This is not suitable in an environment when many devices might do this at the same time, and an attacker can easily act as peripheral making the central connect to it instead.&lt;/li&gt;
&lt;li&gt;Use RSSI to only allow connections from devices with a high RSSI (assumes close by). Disconnect if RSSI of the first received packet is low. This is not very accurate though and might decrease user-friendliness.&lt;/li&gt;
&lt;li&gt;Combination of the above in order to increase security (but it will still not be good).&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/thread/237306?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2020 04:17:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56515559-d91d-44a9-a866-aa6c5292a052</guid><dc:creator>prayuktibid</dc:creator><description>&lt;p&gt;Thank you Mr. Einar.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, this is not possible but I would like to know that Is there any produce by which I can ensure the peripheral device will connect with a particular central device?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In case of central device we can do filtering by name, by UUID, by mac id etc... So that the central device connect only those devices which are in filter list.&amp;nbsp;In peripheral device Can I do same thing?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Actually my primary objective is not security its secondary, my primary and main objective is peripheral should connect the particular central device which I want. I think you got my point.&lt;/p&gt;
&lt;p&gt;My humble request to you please suggest me some method by which I can achieve my goal.&lt;/p&gt;
&lt;p&gt;Thank you advanced.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically connected without putting the static passkey at the time of pairing with out bonding.</title><link>https://devzone.nordicsemi.com/thread/237230?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 18:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80f2f21-428c-41f5-ba77-6c64054298db</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]My objective is The nRF52840 dongle should connect with nRF Connect App after getting the passkey reply from nRF Connect App otherwise it should not connect.[/quote]
&lt;p&gt;This is not possible. The establishment of a BLE connection is not related to the passkey concept, which can be used to provide authenticity (man in the middle protection). That is a concept of pairing, so the passkey exchange always happens during pairing (if used).&lt;/p&gt;
&lt;p&gt;That said, you could make it so that all your characteristics require security so that it would be impossible to do anything without pairing. You could also request&amp;nbsp;pairing and disconnect if it does not happen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>