<?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>Parsing scan response with SDK 15.3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75950/parsing-scan-response-with-sdk-15-3</link><description>Hi everybody, 
 I am using nRF52832/40 with SDK 15.3 and softdevices S132/S140 v6.1.1. 
 One of my devices is performing active scanning, therefore sending scan requests, and the other one is replying with scan responses. 
 I can see clearly that this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Jun 2021 07:48:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75950/parsing-scan-response-with-sdk-15-3" /><item><title>RE: Parsing scan response with SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/313562?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 07:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5c729b8-20fb-41c5-aa79-fb64a9f73ee6</guid><dc:creator>Lorenzo</dc:creator><description>&lt;p&gt;Hi Hung,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks. I removed the previous answer because I noticed that the modified&amp;nbsp;&lt;em&gt;ble_app_multilink_central&lt;/em&gt; was correctly showing scan responses.&lt;/p&gt;
&lt;p&gt;Now I have to understand why I cannot catch them in my project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your help! I&amp;#39;ll keep you posted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parsing scan response with SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/313561?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 07:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57d880e7-0337-4fa4-8139-40c451a16793</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Lorenzo,&amp;nbsp;&lt;br /&gt;I added this to the ble_app_multiplink_central:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/714x125/__key/communityserver-discussions-components-files/4/pastedimage1622792195004v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And I can see that it can catch some scan response packets:&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1622792236225v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(I changed connect if match = false)&lt;/p&gt;
&lt;p&gt;I attached the main.c file (I tested on SDK v15.2 but I don&amp;#39;t think it would be much different to SDK v15.3)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_multilink_5F00_central_5F00_pca10056_5F00_s140.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_multilink_5F00_central_5F00_pca10056_5F00_s140.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parsing scan response with SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/313487?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 16:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e859a49-e82e-4540-ae00-edb7349992fd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;br /&gt;I would suggest to do a quick test in one of the central example we have. You can just try to remove any filter we have and print out any advertising packet you receive. I did a quick test here and I can see many packets with scan_response bit = 1.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parsing scan response with SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/313480?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 15:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c140a381-5dc8-4b85-890d-826a940739f5</guid><dc:creator>Lorenzo</dc:creator><description>&lt;p&gt;Hi Hung,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for your answer. Unfortunately posting the full code is not possible at the moment since I&amp;#39;m working on top of a bigger project, but of course I can extract the necessary parts that are needed. Function on_adv_report() is called from the default ble_evt_handler():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
    ...

    case BLE_GAP_EVT_ADV_REPORT:
    
        on_adv_report(&amp;amp;p_gap_evt-&amp;gt;params.adv_report);
    
    break;
    
    ...
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;About filters, if you are referring to the ones that can be set from the scan configuration, I am not using any:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief Scan parameters requested for scanning and connection. */
static ble_gap_scan_params_t m_scan_params = 
{
    .active        = true, 
    .interval      = INITIAL_SCAN_INTERVAL,
    .window        = INITIAL_SCAN_WINDOW,
    .timeout       = SCAN_DURATION,
    .scan_phys     = BLE_GAP_PHY_1MBPS,
    .extended      = 0,
    .filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;While I was replying to you, I&amp;#39;ve tried setting&amp;nbsp;&lt;em&gt;extended&lt;/em&gt; to true, but this didn&amp;#39;t change the result.&lt;br /&gt;&lt;br /&gt;Is there any other configuration that I&amp;#39;m missing?&lt;br /&gt;&lt;br /&gt;Please let me know if I can help you&amp;nbsp;by reproducing the situation in a lighter, sharable project (that would take me some time though &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;Thank you and best regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parsing scan response with SDK 15.3</title><link>https://devzone.nordicsemi.com/thread/313477?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 15:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5fbd0b6-3529-443e-8d0a-64a644dd5d99</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Lorenzo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you post your full code ? From where did you call&amp;nbsp;on_adv_report() ?&amp;nbsp;&lt;br /&gt;Note that the scan request packet is treated separately from the advertising packet. So if you use any filter, for example UUID filter for your scanner and if the scan request doesn&amp;#39;t have this UUID it will not match to the scanner filter and will be filtered out. So there is no link between the main advertising packet and the scan response packet.&amp;nbsp;So most likely the filter in the scan module would remove the packet due to no match. Please try testing again without any filter.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>