<?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>Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45075/need-detailed-information-on-peer-manager-and-whitelisting-principle-while-advertising-and-scanning</link><description>Hi i am using SDK15.2 nrf52832. 
 What is peer id? Which function is adding device mac address to whitelist? how does the whitelisting process implemented in HID example code?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Mar 2019 13:31:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45075/need-detailed-information-on-peer-manager-and-whitelisting-principle-while-advertising-and-scanning" /><item><title>RE: Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/thread/178687?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 13:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:282eff7b-6a59-41f0-9fe6-1d27eea553aa</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you are using the advertisement module you simple stop and start advertisement, and then on&amp;nbsp;BLE_ADV_EVT_WHITELIST_REQUEST event you call&amp;nbsp;ble_advertising_whitelist_reply() with the desired peer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are not using the advertisement module it should be possible to call&amp;nbsp;sd_ble_gap_whitelist_set() directly yes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/thread/178656?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 12:11:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da3c6067-0bec-49f6-96f5-3cd40ea5cb01</guid><dc:creator>Rekha</dc:creator><description>&lt;p&gt;can i use sd_ble_gap_whitelist_set() to set the whitelist with MAC ID as input?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/thread/178630?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 11:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c09d3c42-e81a-41c9-8c85-2b4abb360b43</guid><dc:creator>Rekha</dc:creator><description>&lt;p&gt;Thank you, But i how to enable&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_SCAN_REQ_REPORT event in event handler? because i followed many blogs but i could not achieve it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;also, how to add MAC ID to whitelist directly in the case&amp;nbsp;BLE_ADV_EVT_WHITELIST_REQUEST: Please post the code snippet if possible.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/thread/178596?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 09:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22906e89-373c-41ab-9d49-9fe0c62c9f5c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can use the&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_SCAN_REQ_REPORT event, because this&amp;nbsp;event include RSSI value and GAP address of the scanner, and based on this you can the for instance add the scanner to the whitelist if you want to allow connection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For this to work you should set&amp;nbsp;BLE_GAP_ADV_FP_FILTER_CONNREQ when advertisement, since it will allow all peers to send scan request (cause&amp;nbsp;BLE_GAP_EVT_SCAN_REQ_REPORT event), but only those in the whitelist can connect.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/thread/178589?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 09:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:400d9c53-8f0a-4887-8eed-e5d5b090a23c</guid><dc:creator>Rekha</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/45075/need-detailed-information-on-peer-manager-and-whitelisting-principle-while-advertising-and-scanning/177122"]But you may just add devices (if you know the gap address of the peer) as you see fit&amp;nbsp;on&amp;nbsp;&lt;span&gt;BLE_ADV_EVT_WHITELIST_REQUEST.&lt;/span&gt;[/quote]
&lt;p&gt;how to add Known MAC ID to the whitelist without bonding ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/thread/177122?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 15:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e12404-d749-4f7f-9230-fd1c78371e87</guid><dc:creator>Kenneth</dc:creator><description>[quote user="Rekha"]Is Bonding is mandatory for whitelisting activity?&amp;nbsp;[/quote]
&lt;p&gt;It is typically used to whitelist devices that have been previously bonded yes. But you may just add devices (if you know the gap address of the peer) as you see fit&amp;nbsp;on&amp;nbsp;&lt;span&gt;BLE_ADV_EVT_WHITELIST_REQUEST.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/thread/177049?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 13:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db461dc2-645f-4fb4-90ea-9d39d71b9423</guid><dc:creator>Rekha</dc:creator><description>&lt;p&gt;Thanks Kenneth, Is Bonding is mandatory for whitelisting activity?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;will i be able to proceed without bond and pairing process to whitelist devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need detailed information on Peer Manager and whitelisting principle while advertising and scanning.</title><link>https://devzone.nordicsemi.com/thread/177020?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 13:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c0a8f6e-f46b-46e8-bb9e-c1ef45fce8e7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Peer id is:&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fgroup__peer__manager.html&amp;amp;anchor=ga0aa174d9642816af3ba36db985465f46"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fgroup__peer__manager.html&amp;amp;anchor=ga0aa174d9642816af3ba36db985465f46&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Usage:&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_pm_usage.html?cp=4_0_0_3_2_7_2"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_pm_usage.html?cp=4_0_0_3_2_7_2&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you set: init.config.ble_adv_whitelist_enabled&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = true;&lt;br /&gt;before calling:&amp;nbsp;err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);&lt;/p&gt;
&lt;p&gt;Then the&amp;nbsp;advertisement will ask for the whitelist by&amp;nbsp;BLE_ADV_EVT_WHITELIST_REQUEST in&amp;nbsp;on_adv_evt(). Look at the hid keyboard example how the application request the peer manager to create the whitelist from already bonded peers.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>