<?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>Custom Scan Request, Scan Response</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77462/custom-scan-request-scan-response</link><description>Dear Nordic Team and Community! 
 I have again a question concerning advertising. Currently I am working with the devices nRF52840Dongle (Advertising, S140, 10059) and nRF52840DK (Scanning, S140, 10056). My advertising works / should work like the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Aug 2021 07:45:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77462/custom-scan-request-scan-response" /><item><title>RE: Custom Scan Request, Scan Response</title><link>https://devzone.nordicsemi.com/thread/324132?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 07:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:413e240c-21d3-4b6b-9ac3-d62f490257e6</guid><dc:creator>AndrzejR</dc:creator><description>&lt;p&gt;In ble-advertising.c in&amp;nbsp;ble_advertising_start(() please try add green line:&lt;br /&gt; case BLE_ADV_MODE_FAST:&lt;br /&gt;&lt;span style="color:#00ff00;"&gt;p_advertising-&amp;gt;adv_params.scan_req_notification = 1;&lt;/span&gt;&lt;br /&gt;ret = set_adv_mode_fast(p_advertising, &amp;amp;p_advertising-&amp;gt;adv_params);&lt;br /&gt; break;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Andrzej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Scan Request, Scan Response</title><link>https://devzone.nordicsemi.com/thread/320211?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 10:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:924cb730-b49a-4130-a13a-b9c923a4c127</guid><dc:creator>SinopeXI</dc:creator><description>&lt;p&gt;Thank you for your very fast response. I have already experimented with different advertising intervals and these structure should save even more power.&lt;/p&gt;
&lt;p&gt;I see, that my current system must be adapted and I have already some ideas which I might share in the future for others, if I have some success with that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately I have an other question concerning the scan request, I hope, I don&amp;#39;t take too much time.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;know, that it is possible to read the Scan Request on the peripheral/beacon/dongle, even if I cannot modify it. This should be possible with the case: (S140, nRF52840Dongle, 10059)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;case: BLE_GAP_EVT_SCAN_REQ_REPORT&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For testing purposes I switched back to a demo example (ble_app_blinky) to do not destroy my current project. Although I tried many suggestions from different posts, I am not able to receive the Scan Request Report (the case doesn&amp;#39;t trigger).&lt;/p&gt;
&lt;p&gt;On the &lt;strong&gt;Central/Scanner Side&lt;/strong&gt;&amp;nbsp;I&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;activated active Scanning by setting it to 1&lt;/li&gt;
&lt;li&gt;sending scannable packages&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On the &lt;strong&gt;Peripheral/Advertising Side&lt;/strong&gt; I &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;activated scanning reports (adv_params.scan_req_notification = 1)&lt;/li&gt;
&lt;li&gt;added the case&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Maybe you know anything that I have forgotten or other reasons for my problem.&lt;br /&gt;Thank you for your time and the nice support!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Scan Request, Scan Response</title><link>https://devzone.nordicsemi.com/thread/320011?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 12:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8bd1453-6592-4cb6-9f9f-45dc280276db</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Is this possible? How can I read the Scan Request? How can I jump over the Scan Response?[/quote]
&lt;p&gt;I get the impression from your diagram that you intend to transfer data from the central to your peripheral through the scan request, is this correct?&lt;br /&gt;If so, please know that the Scan Request packet can not contain any custom data payload.&lt;br /&gt;&lt;span&gt;This is a result of the BLE Specification, which defines scan requests to only contain the address of the scanner and the address of the receiver. You may read more about this in&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.bluetooth.com/specifications/specs/core-specification/"&gt;the BLE Core specification Version 5.2, VOL 6, Part B, Section 2.3.2&lt;/a&gt;&lt;span&gt;. Note the last line of section 2.3.2.1, which notes that these scan request payloads contains no host data, which is why it is handled completely by the SoftDevice.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]s&lt;strong&gt;end no scan response&lt;/strong&gt; on the Advertising (Peripheral) Side[/quote]
&lt;p&gt;If I understand you correctly and you wish to not send a scan response packet from your peripheral, then you can advertise as NONSCANNABLE, which will mean that the peripheral does not listen for a scan request following an advertisement.&lt;/p&gt;
[quote user=""]My advertising works / should work like the following structure, because I want to save energy:[/quote]
&lt;p&gt;Is power saving the reason why you would like to communicate through advertisements rather than over a connection?&lt;br /&gt;If so, please know that you can set &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s112.api.v7.2.0%2Fgroup___b_l_e___g_a_p___c_p___l_i_m_i_t_s.html&amp;amp;anchor=ga6bf5d65e6d586000cd5f7ba43c0d2e76"&gt;the connection interval to up to 4 s&lt;/a&gt;, which may end up saving you power compared to the advertisements - since advertisements are in no way acknowledged, and data may therefore be lost.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to ask if any part of this still should be unclear!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>