<?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 scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4449/how-to-scan-only-advertising-packet-ble-android</link><description>While scanning for advertising beacons with startLeScan method, this method also request peripheral device for scan response and stores it in scanRecord. I only want to scan for advertising payload I don’t want to send request scan response to peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Nov 2014 15:40:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4449/how-to-scan-only-advertising-packet-ble-android" /><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15810?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2014 15:40:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5995eb9e-aeae-4f26-8d87-ee6733699a39</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@hssn601: Then I think changing the ADV type is the best solution. You can switch to scannable advertising type periodically, e.g 5 seconds every 1 minute.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15809?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2014 15:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91cf8142-6e01-4748-8d7d-1c23dca60291</guid><dc:creator>hssn601</dc:creator><description>&lt;p&gt;if phone send scan request again and again than beacon will transmit extra 32 bytes which will drain more battery, i only need scan response when needed to save battery.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15808?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2014 15:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0c63812-4998-4ad9-af03-0019281122d0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@hssn601: To switch between different advertising type, you would need to stop advertising, reconfigure the parameter m_adv_params.type and call sd_ble_gap_adv_start() again.&lt;/p&gt;
&lt;p&gt;Note that if you advertise in non-connectable mode the minimum advertising interval should be &amp;gt;100ms&lt;/p&gt;
&lt;p&gt;Just for curiousity, may I ask the reason why you don&amp;#39;t want the phone to send scan request ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15807?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2014 15:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1d6db05-8f43-4872-9eba-e7ae4e8280ef</guid><dc:creator>hssn601</dc:creator><description>&lt;p&gt;I am looking for a solution to  BLE_GAP_ADV_TYPE_ADV_NONCONN_IND | ADV_SCAN_IND or ADV_IND on runtime as some times i need scan response and some times only advertising data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15806?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2014 14:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e230920-f5d2-4a17-89bd-9657d80737c7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@hssn601: As far as I know, it&amp;#39;s not possible that the app on the phone can choose to scan in passive mode or active mode. What user9384 suggested is correct, you can change the flag to BLE_GAP_ADV_TYPE_ADV_NONCONN_IND so that the phone won&amp;#39;t send scan request packet. If you still want to have extra 32 bytes, you can switch the flag back to ADV_SCAN_IND or ADV_IND when needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15805?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2014 08:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f82edc23-f02e-4e06-841d-17790a115fb3</guid><dc:creator>hssn601</dc:creator><description>&lt;p&gt;but i need to get extra 32bytes(scan responce) when required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15804?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2014 08:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:762b74a5-0079-49e7-844d-d17ece36fa4e</guid><dc:creator>Knut Eldhuset</dc:creator><description>&lt;p&gt;On the beacon, you can set advertising type to BLE_GAP_ADV_TYPE_ADV_NONCONN_IND. The peer is not allowed to send scan request nor connection requests, and this should be honored automatically by Android.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15803?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2014 06:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63af9687-52bc-4794-a57c-012a10c4f07f</guid><dc:creator>hssn601</dc:creator><description>&lt;p&gt;i am also in search of how to scan for ble devices passively. Unfortunately didn&amp;#39;t find any method in android ble api.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to scan only Advertising Packet BLE [ANDROID]</title><link>https://devzone.nordicsemi.com/thread/15802?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2014 06:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b2f0778-4b88-4206-a2d3-22e5e0b20fa0</guid><dc:creator>Salman</dc:creator><description>&lt;p&gt;I am having the same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>