<?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>callback when sending scan request PDU to a peripheral.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69509/callback-when-sending-scan-request-pdu-to-a-peripheral</link><description>Hi Team, 
 We have developed an application where we are able to receive scan request notification in peripheral and scan response notification in central. 
 Is it possible to set/receive callback in central when sending scan request PDU(prior to scan</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2020 14:57:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69509/callback-when-sending-scan-request-pdu-to-a-peripheral" /><item><title>RE: callback when sending scan request PDU to a peripheral.</title><link>https://devzone.nordicsemi.com/thread/285134?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 14:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ded026f5-2d4d-4d36-9bc9-97044ff1f47f</guid><dc:creator>Vishnu</dc:creator><description>&lt;p&gt;ok Thanks! will try!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: callback when sending scan request PDU to a peripheral.</title><link>https://devzone.nordicsemi.com/thread/285102?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 13:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d41e1dce-9130-4e2b-8b21-0bc596476a7d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it&amp;#39;s possible. But you can do the opposite. You can do passive only scanning (no scan request) and when you find a device that you want to do scan request,&amp;nbsp; you switch to ative scanning with the address filter for the advertiser(s).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: callback when sending scan request PDU to a peripheral.</title><link>https://devzone.nordicsemi.com/thread/285093?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 13:30:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e1230c4-4327-470f-b828-5ff702da56d6</guid><dc:creator>Vishnu</dc:creator><description>&lt;p&gt;Thanks for your reply &lt;a href="https://devzone.nordicsemi.com/members/hungbui"&gt;Hung Bui&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Buy any chance can we abort sending scan request PDU from central for particular peripheral devices?&lt;/p&gt;
&lt;p&gt;in other words.. can we restrict scan request PDUs before sending from central(when active scanning) ..so that peripheral device may not receive&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_SCAN_REQ_REPORT event?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: callback when sending scan request PDU to a peripheral.</title><link>https://devzone.nordicsemi.com/thread/285082?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 13:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49066e7f-b29c-458a-a554-55ef0c3a065c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vishnu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the peripheral side you will receive&amp;nbsp;BLE_GAP_EVT_SCAN_REQ_REPORT event when there is a scan request.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the central side you receive&amp;nbsp;BLE_GAP_EVT_ADV_REPORT when you receive an advertising packet, and when you receive a scan response packet.&amp;nbsp;&lt;br /&gt;So you don&amp;#39;t receive an event when you sent scan request but you do receive an event when the advertiser reply with a scan response packet. To be able to detect if the data is from an advertising packet or scan response packet you need to check the &amp;quot;type&amp;quot; value inside&amp;nbsp;ble_gap_evt_adv_report_t struct when you receive the event.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>