<?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>Bonded device scanning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55121/bonded-device-scanning</link><description>Hi all, 
 My project involves a ble-central initialising peripherals and creating a bond. When this is complete the peripheral should go into sleep mode and only wake up when data is ready. I want the central to be constantly scanning for the bonded peripherals</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Dec 2019 12:44:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55121/bonded-device-scanning" /><item><title>RE: Bonded device scanning</title><link>https://devzone.nordicsemi.com/thread/223594?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 12:44:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73e1b335-f284-4ee2-a6de-63f7df322afa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s not possible to extend it for more than 8 peripherals (due to radio hardware limitation). You can rotate the list as you plan but there isn&amp;#39;t any &amp;quot;Not Found&amp;quot; event, unless you set a timeout for the scanner. Then you will have a timeout event and then can rotate the list to new devices.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But for&amp;nbsp;large number of&amp;nbsp;devices (30 ? ), I would suggest to just use the address list instead of whitelist. This meant you scan for any device, and then when you receive the advertising packet, you check if the address is in the list, then you can do connection to that address. This can be done in the application.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonded device scanning</title><link>https://devzone.nordicsemi.com/thread/223567?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 11:56:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c2eda08-3fce-4178-bed7-040fc7f82109</guid><dc:creator>ble_bmt</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks the example, my firmware is now working well as long as peer manager contains 8 or less bonded devices.My next step is to extend this to the full range of&amp;nbsp;peripherals (&amp;gt;8). Are there any events I can use to tell me when to update the whitelist for the next peripherals(something like a &amp;quot;not found&amp;quot; event)?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonded device scanning</title><link>https://devzone.nordicsemi.com/thread/223397?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 15:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:958b6e73-9ef0-429a-9673-5232a8a163ab</guid><dc:creator>ble_bmt</dc:creator><description>&lt;p&gt;OK thanks i&amp;#39;ll have a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonded device scanning</title><link>https://devzone.nordicsemi.com/thread/223396?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 15:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c38de26a-cd73-4cef-8b76-d1f34829faf0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The ble_app_hrs_c example only support 1 peripheral at a time. If you want an example with multiple peripheral, please check the ble_app_multiplink_central.&amp;nbsp;&lt;br /&gt;You need to start scanning again after a connection is established.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonded device scanning</title><link>https://devzone.nordicsemi.com/thread/223390?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 15:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4d13aa6-5448-417e-9166-26ebc766100c</guid><dc:creator>ble_bmt</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. That&amp;#39;s the example I am currently working off, I have managed getting it work to the point that it will scan for white listed peripherals and connect to the first one it sees. However, if there are more than one peripherals appearing on the scan only the first connect correctly. I suspect this is because I am trying to send a connect command to a second peripheral before the first has fully connected?&lt;/p&gt;
&lt;p&gt;I am trying to connect after receiving a &amp;quot;Peripheral Found&amp;quot;&amp;nbsp;event from the scan, is there a better way I can go about this?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonded device scanning</title><link>https://devzone.nordicsemi.com/thread/223384?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 15:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79f8d208-cede-4803-b846-f889d21d1c60</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi ble_bmt,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you used our peer manager library ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can have a look at ble_app_hrs_c example, in the example we do use whitelist when scanning and connecting. So that the device only scan for bonded peripherals. To disable whitelist to add a new device, you need to press&amp;nbsp;BTN_ID_WHITELIST_OFF (button 2 on the nRF52 DK)&lt;/p&gt;
&lt;p&gt;However, the whitelist only support up to 8 addresses.&amp;nbsp; If you want to do a whitelisting for up to 20-30 devices, you would need to do it manually. Take a look at&amp;nbsp;is_connect_per_addr inside&amp;nbsp;scan_init() in the same example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>