<?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 send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118256/how-to-send-advertising-packet-with-non-connectable-and-non-scannable</link><description>NCS v2.9.0 
 nRF52832 DK 
 peripheral_uart sample 
 
 &amp;quot;Online Power Profiler for Bluetooth LE&amp;quot; 
 
 has a BLE role to send non-connectable, non-scannable packet, 
 
 I want to send this kind of advertising packet to test current consumption, 
 
 use BT_LE_ADV_NCONN</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2025 14:30:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118256/how-to-send-advertising-packet-with-non-connectable-and-non-scannable" /><item><title>RE: How to send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/thread/521580?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 14:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd3ae88d-6b9b-423b-b05c-50f8eebe39ea</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Does it work as you expect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/thread/521460?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 08:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c538255-ae98-494d-855d-42c31bf82fb1</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), NULL, 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Using the above statement, got the ADV_NONCONN_IND advertising packet in the wireshark.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/thread/521370?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 15:48:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a71c486b-3459-417b-95ce-09f48e9117d4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;As I said in the first reply, If you want non-scannable, simply don&amp;#39;t add a scan response packet to the advertising. Please remove sd.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/thread/521257?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 09:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff6f1be9-e950-4941-a639-3875e3405c74</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;1)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BT_LE_ADV_NCONN_IDENTITY BT_LE_ADV_PARAM(BT_LE_ADV_OPT_USE_IDENTITY, \
						 BT_GAP_ADV_FAST_INT_MIN_2, \
						 BT_GAP_ADV_FAST_INT_MAX_2, \
						 NULL)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To use&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BT_LE_ADV_NCONN_IDENTITY as parameter,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), sd,
			      ARRAY_SIZE(sd));&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;It&amp;#39;s ADV_SCAN_IND PDU type in wireshark.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;2)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="c_cpp"&gt;	err = bt_le_adv_start(BT_LE_ADV_NCONN, ad, ARRAY_SIZE(ad), sd,
			      ARRAY_SIZE(sd));&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;It&amp;#39;s also ADV_SCAN_IND PDU type&lt;/div&gt;
&lt;div&gt;3) Both are TX AND RX advertising packet,&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738662791670v1.png" alt=" " /&gt;&lt;/div&gt;
&lt;div&gt;still can&amp;#39;t get TX ONLY advertising packet.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/thread/520358?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 12:18:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d49d98a-6e2e-4536-8247-7e55fc5d857e</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s Chinese New Year now, and I will check it when back to the office.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/thread/519836?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 15:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5934a928-bd16-45c6-b352-0cb16d192675</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;It needs &lt;a href="https://docs.nordicsemi.com/bundle/zephyr-apis-2.9.0/page/group_bt_gap.html#ga6ef9fb7a469b03265c7adc99ea19a11b"&gt;BT_LE_ADV_NCONN_IDENTITY&lt;/a&gt;&amp;nbsp;to use with&amp;nbsp;BT_LE_ADV_OPT_USE_IDENTITY or you can use&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/zephyr-apis-2.9.0/page/group_bt_gap.html#ga1610555bf59f1d691d640f245957fdce"&gt;BT_LE_ADV_NCONN&lt;/a&gt;&amp;nbsp;as this DevAcademy course: &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-2-bluetooth-le-advertising/topic/blefund-lesson-2-exercise-1/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-2-bluetooth-le-advertising/topic/blefund-lesson-2-exercise-1/&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/thread/519682?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 06:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8eb1962-9659-45b3-b5b8-ead6c9e62b2c</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;&lt;strong&gt;Non-connectable and non-scannable (&lt;code&gt;ADV_NONCONN_IND&lt;/code&gt;)&lt;/strong&gt;&lt;span&gt;:&amp;nbsp;&lt;/span&gt;&lt;span&gt;where the device does not need to switch the radio to receiver mode since they do not allow receiving any data, which in turn reduces battery consumption.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It is what I need, TX only and non-RX, you can also see the same situation on the graph on the web.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1737612182198v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2) Nordic AI suggests the following parameters, but I can&amp;#39;t get the ADV_NONCONN_IND advertising packet in the wireshark, there is not any advertising packet.&lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;
&lt;p&gt;To make this non-connectable (ADV_NONCONN_IND), you need to modify the `adv_param` as follows:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;static struct bt_le_adv_param *adv_param = BT_LE_ADV_PARAM(&lt;br /&gt; BT_LE_ADV_OPT_USE_IDENTITY | BT_LE_ADV_OPT_USE_NAME | BT_LE_ADV_OPT_NO_2M,&lt;br /&gt; BT_GAP_ADV_FAST_INT_MIN_2,&lt;br /&gt; BT_GAP_ADV_FAST_INT_MAX_2,&lt;br /&gt; NULL);&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The key here is adding the `BT_LE_ADV_OPT_NO_2M` option, which makes the advertising non-connectable.&lt;/p&gt;
&lt;p&gt;Then, start advertising with:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;err = bt_le_adv_start(adv_param, ad, ARRAY_SIZE(ad), NULL, 0);&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This configuration will set up non-connectable, non-scannable advertising, which corresponds to the ADV_NONCONN_IND type in NCS.&lt;/p&gt;
&lt;p&gt;===&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Advertising packet with non-connectable and non-scannable</title><link>https://devzone.nordicsemi.com/thread/519619?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 16:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da617a6d-43b3-48db-8503-93773b6804da</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want non-scannable, simply don&amp;#39;t add a scan response packet to the advertising.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>