<?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 i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49548/how-i-can-restrict-nrf52832-connecttion-with-the-custom-mobile-application-only</link><description>Hello, 
 I am working on nRF52832 having SDK 15.3.0, Windows 10 and Segger Studio IDE. 
 My query is, i want to restrict my nRF board connection to a particular custom application developed by us. 
 It should get connect to other application like nRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jul 2019 10:57:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49548/how-i-can-restrict-nrf52832-connecttion-with-the-custom-mobile-application-only" /><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197795?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 10:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97ee9217-daf7-4c03-82f2-3eae1c6868b1</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;Agreed (with awneil).&lt;/p&gt;
&lt;p&gt;In this case you can&amp;#39;t prevent connection, but you can prevent access to data by using GATTs Read and Write Request with Authorization.&lt;/p&gt;
&lt;p&gt;In a custom service you can pass an &amp;quot;authorization token&amp;quot; to your device -&amp;nbsp; say a GUID that is pre-programmed into your device - in a custom characteristic. Any app connecting to your device should provide this token.&lt;/p&gt;
&lt;p&gt;The rest of your custom characteristics and services should be set to require read and write authorization. On handling the request you compare the token in the &amp;quot;authorization&amp;quot; characteristic and allow or deny the action accordingly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197791?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 10:38:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c7ebf56-0972-42f4-b702-e24d23142054</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Not sure how well that&amp;#39;s going to work - since the whole point of GATT is exactly that it&amp;#39;s a standard protocol for discovering the Services of a Peripheral...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197787?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 10:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c320a57e-ef3a-4559-8a38-f9a3869e5fef</guid><dc:creator>Heena</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/49548/how-i-can-restrict-nrf52832-connecttion-with-the-custom-mobile-application-only/197725"]But, from your OP, it sounded like you wanted to restrict your nRF to connect to only one &lt;em&gt;app&lt;/em&gt; - not to restrict is to a particular &lt;em&gt;user&lt;/em&gt;?[/quote]
&lt;p&gt;Yes, I dont want to restrict it to a particular user.&lt;/p&gt;
&lt;p&gt;I just want my product to get connect with the application developed by us.if user tries to connect with any other app, then it should get connect but within 30 seconds it will disconnects.So that the BLE services developed by us won&amp;#39;t be visible to others.&lt;/p&gt;
&lt;p&gt;Mainly we want to restrict others to do reverse engineering.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197725?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 07:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64c1ea1a-9f27-40c7-9794-dddc447b074c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;It&amp;#39;s your system - it&amp;#39;s up to you to design it to do whatever it is that you require.&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t know what you are actually trying to achieve - what is your goal here?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.catb.org/esr/faqs/smart-questions.html#goal"&gt;http://www.catb.org/esr/faqs/smart-questions.html#goal&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But, from your OP, it sounded like you wanted to restrict your nRF to connect to only one &lt;em&gt;app&lt;/em&gt; - not to restrict is to a particular &lt;em&gt;user&lt;/em&gt;?&lt;/p&gt;
&lt;p&gt;Think about how printers recognise whether you&amp;#39;ve inserted a manufacturer&amp;#39;s genuine ink cartridge, or a 3rd-party sunstitute ...&lt;/p&gt;
&lt;p&gt;Is that the kind of thing you&amp;#39;re trying to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197705?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 05:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa6beae1-86b3-4385-bdb6-a457a1719f1a</guid><dc:creator>Heena</dc:creator><description>&lt;p&gt;When we say authorization /authentication process, we can create custom service and expect user&amp;nbsp; to respond back with particular password after connecting&amp;nbsp; or something like this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197703?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 05:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:228349a7-c6b1-4916-ac3e-32680a960e2c</guid><dc:creator>Heena</dc:creator><description>&lt;p&gt;Thanks for the reply.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197661?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 15:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5643d8e2-aae6-4f3c-a511-4125448e3ca7</guid><dc:creator>awneil</dc:creator><description>[quote userid="81321" url="~/f/nordic-q-a/49548/how-i-can-restrict-nrf52832-connecttion-with-the-custom-mobile-application-only"]Is it possible[/quote]
&lt;p&gt;Sure it is - just like a website that will only let you in if it &amp;quot;knows&amp;quot; you!&lt;/p&gt;
&lt;p&gt;You would need to have some sort of secure authentication/authorisation process ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197660?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 15:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27196923-9d1a-4903-91a2-61d9f3617be8</guid><dc:creator>awneil</dc:creator><description>[quote userid="73165" url="~/f/nordic-q-a/49548/how-i-can-restrict-nrf52832-connecttion-with-the-custom-mobile-application-only/197644"]use &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=3_4_2_1_2_1_2_0#ga0d859904dea45d4f0f4d5a95d9d65e78"&gt;sd_ble_gap_addr_get()&lt;/a&gt;&amp;nbsp;to get the peer address[/quote]
&lt;p&gt;Assuming that the Central has a fixed address ?&lt;/p&gt;
&lt;p&gt;If the Central is a phone, that is normally not the case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How i can restrict nrf52832 connecttion with the custom mobile application only?</title><link>https://devzone.nordicsemi.com/thread/197644?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 13:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:048031d7-bbad-44c3-8c1a-3612a7226852</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You could use &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=3_4_2_1_2_1_2_0#ga0d859904dea45d4f0f4d5a95d9d65e78"&gt;sd_ble_gap_addr_get()&lt;/a&gt;&amp;nbsp;to get the peer address of the connected device and compare it with the address that you want to connect to. If it doesn&amp;#39;t match the specific address you could then proceed to disconnect. Another alternative would be to use &lt;a href="https://devzone.nordicsemi.com/search?q=whitelist"&gt;whitelist&lt;/a&gt;, but this would prevent the device from connecting in the first place.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>