<?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>How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79349/how-to-get-scan-response-data-of-connectable-directed-with-sd_ble_gap_scan_start-in-the-condition-of-reconnect</link><description>Current I am using nRF52840 Dongle to develop a Bluetooth PC Tool base on nrf_ble_driver_obj_sd_api_v5 which shared on https://github.com/NordicSemiconductor/pc-ble-driver/blob/master/examples/heart_rate_collector/main.c . 
 I add sd_ble_gap_connect and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Sep 2021 12:26:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79349/how-to-get-scan-response-data-of-connectable-directed-with-sd_ble_gap_scan_start-in-the-condition-of-reconnect" /><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/329835?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 12:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73e51efd-726e-4bed-a549-0f9fb8eb7856</guid><dc:creator>Macl</dc:creator><description>&lt;p&gt;Thanks Kenneth.&lt;/p&gt;
&lt;p&gt;I can get Direct reconnect advertisement now by performing bonding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/329399?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 11:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15a513c0-a57e-44cf-9a55-56ce9b5657c0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Looking at your sniffer log I would expect that the target address of the ADV_DIRECT_IND should match the initiator address of the CONNECT_IND packet. But they don&amp;#39;t, so I don&amp;#39;t see how the scanner will be able to receive the ADV_DIRECT_IND packets in this case.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/329361?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 09:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:144873dd-d4f3-4b51-884c-8a5b0695245a</guid><dc:creator>Macl</dc:creator><description>&lt;p&gt;Thank you Kenneth.&lt;/p&gt;
&lt;p&gt;How can I add whitelist after I used&amp;nbsp;sd_ble_gap_authenticate? Is it whitelist scan if I set&amp;nbsp;&amp;nbsp;&lt;span&gt;scan_params.adv_dir_report to 1?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/329352?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 08:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb4e7568-a3ae-4a92-a259-036a0590d32e</guid><dc:creator>Macl</dc:creator><description>&lt;p&gt;I attached sniffer log by Nordic Sniffer. Please view it. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/329351?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 08:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4aca704-a12b-406e-891c-faff4c730726</guid><dc:creator>Macl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/reconnect.pcapng"&gt;devzone.nordicsemi.com/.../reconnect.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/329329?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 07:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:835178bb-6ec1-4423-88db-163fec24b3f9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It&amp;#39;s not possible to use v6 without some major changes, I don&amp;#39;t recommend trying that.&lt;/p&gt;
&lt;p&gt;What you are trying to do should work&amp;nbsp;without updating. Do you have an on-air sniffer log that show that you are actually using directed advertisment to the peer device that is scanning?&lt;/p&gt;
&lt;p&gt;For v5 there is no specific filters, instead you can use the&amp;nbsp;scan_params.adv_dir_report = 1; and possible .use_whitelist to achieve the same.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/329320?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 07:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:194e64c6-74e8-4e57-bdeb-caa343890e04</guid><dc:creator>Macl</dc:creator><description>&lt;p&gt;Thank you. Kenneth.&lt;/p&gt;
&lt;p&gt;Well, I think I should use the&amp;nbsp;&lt;span&gt;BLE_GAP_SCAN_FP_ACCEPT_ALL when scanning and connecting. But it only exist on SD_API_V6.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you give me an instruction on how to update my nRF52840 dongle from SD_API_V5 to V6. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/328721?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 07:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98573468-601f-4b8d-b8fc-40c3f08f6328</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The first question would be have you established a bond previously? Typically directed advertisement is only used after two peers have established a bond, thereby the advertiser and initiater have previously exchanged addresses (else the advertiser does not know which initiator address to place in the directed advertisment packet).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not familiar with the pc ble driver, but in principle the api and events should be the same as working on chip. In both cases (directed or undirected advertisement) the scanner should get an BLE_GAP_EVT_ADV_REPORT, and it should be possible to connect to the peer as normal in both cases, see message sequence charts:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___s_c_a_n___m_s_c.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___s_c_a_n___m_s_c.html&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_o_n_n___m_s_c.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_o_n_n___m_s_c.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When scanning and connecting you should use&amp;nbsp;&lt;span&gt;BLE_GAP_SCAN_FP_ACCEPT_ALL, and on&amp;nbsp;BLE_GAP_EVT_ADV_REPORT event while scanning you should check the ble_gap_evt_adv_report_t::direct_addr.addr_id_peer is set than&amp;nbsp;you found proper peer, so just call sd_ble_gap_connect() with BLE_GAP_SCAN_FP_ACCEPT_ALL.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note: If the directed advertisment does not contain the initiater address of the scanner here, then the scanner will not receive the&amp;nbsp;BLE_GAP_EVT_ADV_REPORT.&lt;/span&gt;&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><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/328685?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 02:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0fdbd22-1916-41c0-8894-6565274ad9f3</guid><dc:creator>Macl</dc:creator><description>&lt;p&gt;Thanks, Kenneth. But how can I get the directed advertisement packet and how can I do a fast reconnection after I get it? which API should I use in &lt;strong&gt;&lt;span&gt;nrf_ble_driver_obj_sd_api_v5&amp;nbsp;? Thanks in advance.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get scan response data of connectable directed with sd_ble_gap_scan_start in the condition of reconnect?</title><link>https://devzone.nordicsemi.com/thread/328421?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 13:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ea19356-7dfe-46fe-9912-0804a5b7ec79</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The directed advertisment packet (ADV_DIRECT_IND) contains only advertiser address + initiater address, there is no advertisement data or scan response to this packet. The directed advertisement packet is only intended for fast reconnection.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>