<?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>Minimum Requirements for Scanning Filters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65147/minimum-requirements-for-scanning-filters</link><description>Hi, 
 I am currently trying to implement a beacon scanner alongside peripheral mode BLE on an nRF52832. As I am only scanning for beacons, I was hoping I would not need to include any code other than &amp;quot;nrf_ble_scan.c&amp;quot; and ignore the rest of the central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Aug 2020 07:25:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65147/minimum-requirements-for-scanning-filters" /><item><title>RE: Minimum Requirements for Scanning Filters</title><link>https://devzone.nordicsemi.com/thread/266368?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 07:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:241187d6-b71d-4bc7-9146-44e54043df78</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Ben,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These filters are intended to decide what device to connect to. You can see how they are used in nrf_ble_scan.c, in the nrf_ble_scan_on_adv_report() function.&lt;/p&gt;
&lt;p&gt;The softdevice doesn&amp;#39;t filter based on these filter settings. It is up to the application (nrf_ble_scan.c). Depending on whether all_filter_mode is true or false, you need to match all the set filters, or only one in order to trigger the&amp;nbsp;NRF_BLE_SCAN_EVT_FILTER_MATCH event or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It will also call nrf_ble_scan_connect_with_target() which will connect to the target in case of NRF_BLE_SCAN_EVT_FILTER_MATCH if .connect_if_match is true.&lt;/p&gt;
&lt;p&gt;So the assumption that the softdevice will filter out the advertisements and only pass the filter matched advertisements to BLE_GAP_EVT_ADV_REPORT event is not true. All advertisements will be forwarded to&amp;nbsp;BLE_GAP_EVT_ADV_REPORT, but only the filter matches will be passed onto the&amp;nbsp;&lt;span&gt;NRF_BLE_SCAN_EVT_FILTER_MATCH&amp;nbsp;event.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is your code able to get inside the nrf_ble_scan_on_adv_report()? Does it&amp;nbsp;match all the set filters?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Requirements for Scanning Filters</title><link>https://devzone.nordicsemi.com/thread/266330?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 20:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:428e60b9-45d7-4c40-8cfb-2f1ce772e99e</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Both of these are set to 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Requirements for Scanning Filters</title><link>https://devzone.nordicsemi.com/thread/266329?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 20:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8aaf944-c1ca-4983-9a3b-f689059e4d3e</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;What do you mean by this? I have put a breakpoint on this part but it is never hit.&amp;nbsp;Where should I be debugging the code? I am struggling as there are many devices discovered by the central so it is hard to pinpoint where I should put a breakpoint&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Requirements for Scanning Filters</title><link>https://devzone.nordicsemi.com/thread/266312?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 16:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd83423-358c-4a99-a9a0-551aa9951054</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Worth a quick check: Did you set&amp;nbsp;NRF_BLE_SCAN_UUID_CNT to 1, and&amp;nbsp;NRF_BLE_SCAN_FILTER_ENABLE to 1?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Requirements for Scanning Filters</title><link>https://devzone.nordicsemi.com/thread/266234?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 12:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25f0befe-6a7f-4346-a646-5e5de6328ad5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Ben,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The NRF_BLE_SCAN_EVT_FILTER_MATCH event is given in the nrf_ble_scan.c. You should debug the code to find out the reason why it didn&amp;#39;t get.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>