<?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>Establishing a connection with a bonded phone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65879/establishing-a-connection-with-a-bonded-phone</link><description>I have the following problem: 
 
 1 to 3 phones are bonded with an nRF52832 
 These phones are on the whitelist of nRF52832 
 nRF52832 goes into Power Off Mode 
 nRF52832 is woken by a sensor and wants to send this current value to a cell phone that is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Sep 2020 14:14:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65879/establishing-a-connection-with-a-bonded-phone" /><item><title>RE: Establishing a connection with a bonded phone</title><link>https://devzone.nordicsemi.com/thread/272352?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 14:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5b510b9-60e2-4a33-a632-6344a2b7b3a0</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;1. Sorry, I did not realize you where also asking about scanning. Did you already read the documentation her: &lt;span&gt;&lt;a title="Whitelist" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_ble_scan.html?cp=7_1_3_2_12_2#scan_whitelist"&gt;Whitelist&lt;/a&gt;&lt;/span&gt;?&lt;/p&gt;
&lt;p&gt;2. The IRK will normally be exchanged at the end of the pairing process. If the peer devices uses a resolvable private address you need the IRK.&lt;/p&gt;
&lt;p&gt;3. Yes, it&amp;#39;s stored when exchanged. But the application has to tell the SD to use the whitelist. As mentioned in my previous reply.&lt;/p&gt;
&lt;p&gt;4. Did you already look at the hids_keyboard example? Main.c: line 353. For scanning look atthe function nrf_ble_scan_start in nrf_ble_scan.c. This takes a struct called: nrf_ble_scan_t -&amp;gt; ble_gap_scan_params_t&amp;nbsp; set the filter policy to whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Establishing a connection with a bonded phone</title><link>https://devzone.nordicsemi.com/thread/271935?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 06:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d101b018-839b-4149-adaf-64edb7e05c14</guid><dc:creator>Werner.Loser</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;sorry if I ask the questions differently again, but the answer does not help me.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Question 1&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;On the peripheral side the connection with Advertising works if the whitelist is configured ( init.config.ble_adv_whitelist_enabled = true; ).&lt;/p&gt;
&lt;p&gt;But on the central side I did not understand how can I start a scan with only one or more whitelist &lt;span&gt;entriy/&lt;/span&gt;&lt;span&gt;entries&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Question 2&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it correct that I need IRK in my case?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Question 3&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The whitelist is completely managed by the peer manager - is that correct?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Question 4&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Again, are there one or more examples or which functions with which parameters do I have to call for this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Werner Loser&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Establishing a connection with a bonded phone</title><link>https://devzone.nordicsemi.com/thread/271756?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 11:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3d081c9-605f-4e61-a2a3-08efc01bd7bf</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;The Peer manager has a function to configure the whitelist. If you look at the ble_hids_keyboard example you can see the function: whitelist_set being called before the call to ble_advertising_start. This function will end up calling sd_ble_gap_whitelist_set to configure the sd. The maximum number of entries are defined in ble_gap.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Maximum amount of addresses in the whitelist. */
#define BLE_GAP_WHITELIST_ADDR_MAX_COUNT (8)


/**@brief Maximum amount of identities in the device identities list. */
#define BLE_GAP_DEVICE_IDENTITIES_MAX_COUNT (8)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Establishing a connection with a bonded phone</title><link>https://devzone.nordicsemi.com/thread/270542?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 10:29:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6a975e-ee22-4c32-b58a-bce7e9026bd9</guid><dc:creator>Werner.Loser</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have read the content in the links. &lt;br /&gt;In addition, I worked through the following tutorials and read several blogs&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/bluetooth-smart-and-the-nordics-softdevices-part-2"&gt;devzone.nordicsemi.com/.../bluetooth-smart-and-the-nordics-softdevices-part-2&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/bluetooth-smart-and-the-nordics-softdevices-part-1"&gt;devzone.nordicsemi.com/.../bluetooth-smart-and-the-nordics-softdevices-part-1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Sorry, but I&amp;#39;m still missing the entry point to establish a connection via the peer manager (prefix pm) with an entry in the whitelist. &lt;br /&gt;Is it correct that I need IRK in my case?&lt;br /&gt;To make it easier, I would start with only one entry in the whitelist (Only 1 Device bonded)&lt;br /&gt;The whitelist is completely managed by the peer manager - is that correct?&lt;br /&gt;What is the maximum size of the whitelist?&lt;br /&gt;Again, are there one or more examples or which functions with which parameters do I have to call for this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Werner Loser&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Establishing a connection with a bonded phone</title><link>https://devzone.nordicsemi.com/thread/269716?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2020 14:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34ee766c-7e17-4be6-b2e5-b6fa61949273</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If it doesn&amp;#39;t matter which one of the bonded phones connect to your device, the whitelist can be used while advertising to avoid connections from unknown devices. If you want to identify the device after connection you can look at the function &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__peer__manager.html#ga753b87346d599de963c65adb4d8c1b5c"&gt;peer_id_get &lt;/a&gt;There is a high level explanation in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_pm_functionality.html?cp=7_1_3_2_7_1_1#lib_pm_functionality_peers"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_pm_functionality.html?cp=7_1_3_2_7_1_1#lib_pm_functionality_peers&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>