<?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>Unable to scan advertising device after it gets bonded.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105783/unable-to-scan-advertising-device-after-it-gets-bonded</link><description>Hi, 
 
 We are working on project, In which we need to support secure LE connection and Bonding with third party BLE device. We have achieved both of our requirernments, But after disconnection we were not able scan bonded BLE deice. For comparison we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Nov 2023 10:03:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105783/unable-to-scan-advertising-device-after-it-gets-bonded" /><item><title>RE: Unable to scan advertising device after it gets bonded.</title><link>https://devzone.nordicsemi.com/thread/456350?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 10:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a2f518-55cb-4aca-9c2c-f18a152e063e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Swapnil,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad that you found the issue. You can use&amp;nbsp;NRF_BLE_SCAN_EVT_NOT_FOUND, but if the filter is not needed you can just remove the filter. I don&amp;#39;t see much point of using the filter if the name is not included in the advertising packet.&amp;nbsp;&lt;br /&gt;Of course if you have a reason to use it (if before bonding it advertiser with name) then it&amp;#39;s fine.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to scan advertising device after it gets bonded.</title><link>https://devzone.nordicsemi.com/thread/456313?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 07:09:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21bc14ff-2652-42f4-a5e1-baf16907919f</guid><dc:creator>Swapnil Karkare</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is misunderstanding from my side. The advertising is unidirected one.To verify the packets I am using Name filter comparison. But actual advertising packet doesn&amp;#39;t have Name in adv data. I can see the adv when I compare respective MAC address. That resolved my issue.&lt;/p&gt;
&lt;p&gt;Also found out that using nrf_ble_scan. library we can see those adv packet in event&amp;nbsp;&amp;nbsp;&lt;strong&gt;NRF_BLE_SCAN_EVT_NOT_FOUND&lt;/strong&gt;. So no need to use&amp;nbsp;&lt;strong&gt;BLE_GAP_EVT_ADV_REPORT&amp;nbsp;&lt;/strong&gt;BLE event handler.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to scan advertising device after it gets bonded.</title><link>https://devzone.nordicsemi.com/thread/456178?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 13:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba4dbd3f-86b9-4e70-a489-62f35d1e5cbd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please clarify what I pointed to earlier. I don&amp;#39;t see the device doing Directed advertising, it&amp;#39;s more likely also Undirected advertising, just with different flag.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can do a test by setting up a device doing similar advertising with the same flag and check if the scanner can actually scan.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that&amp;nbsp;BLE_GAP_SCAN_FP_ACCEPT_ALL&amp;nbsp; will scan all advertising packet, but it will not show the directed advertising with the wrong address. So there can be a chance that the directed advertising was using a wrong address.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It&amp;#39;s important that you can verify that the device actually does directed advertising, not the normal one. And that the directed advertising packet has the correct target address.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Don&amp;#39;t use NAME filter. The directed advertising packet doesn&amp;#39;t have any name included in the packet, only address.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to scan advertising device after it gets bonded.</title><link>https://devzone.nordicsemi.com/thread/456124?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 10:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a83bea8a-e8fa-4c17-9b5b-bf2f356a6299</guid><dc:creator>Swapnil Karkare</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I have attached my scan init implementation. Also using&amp;nbsp;BLE_GAP_SCAN_FP_ACCEPT_ALL as filter policy. I have also tried to&amp;nbsp;check&amp;nbsp;BLE_GAP_EVT_ADV_REPORT event. Where i can compare desire MAC address with all adv report. I Didn&amp;#39;t found any match there as well.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unfortunately, The Testing going on at diff location so they don&amp;#39;t have nrf dongle or dk.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also we are using NAME filter for scanning.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700218012830v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to scan advertising device after it gets bonded.</title><link>https://devzone.nordicsemi.com/thread/456112?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 10:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3387887c-5d17-410a-b78c-e223add82b6c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Swapnil,&amp;nbsp;&lt;br /&gt;From what I can see both of the screenshot showed that the advertising type was &amp;quot;Connectable Undirected&amp;quot;&amp;nbsp;&lt;br /&gt;So I&amp;#39;m not so sure if one of them was doing directed advertising.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as I know the Softdevice can scan regardless if the device has the discoverable flag or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you show how you do scanning ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you try capture a sniffer trace when the device does advertising in discoverable and non-discoverable ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>