<?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>Enabling extended advertising with scannable advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105722/enabling-extended-advertising-with-scannable-advertising</link><description>Hi there, 
 I am working with the distance measurement toolbox and am requiring an extended advertisement on one of my devices to broadcast a list of devices that has been seen and queued for distance measurement. 
 However, when I attempt to add this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Nov 2023 19:48:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105722/enabling-extended-advertising-with-scannable-advertising" /><item><title>RE: Enabling extended advertising with scannable advertising</title><link>https://devzone.nordicsemi.com/thread/456246?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 19:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a84c53-4276-469f-8e18-d0d6072f5a12</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;See&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/zephyr/connectivity/bluetooth/api/gap.html#c.bt_le_ext_adv_set_data"&gt;bt_le_ext_adv_set_data&lt;/a&gt;() from the API documentation:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;If the advertising set has been configured for extended advertising, then the maximum data length is defined by the controller with the maximum possible of&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/zephyr/connectivity/bluetooth/api/gap.html#group__bt__gap__defines_1ga53af114e4925482739dc50dc84c2f641"&gt;&lt;span&gt;BT_GAP_ADV_MAX_EXT_ADV_DATA_LEN&lt;/span&gt;&lt;/a&gt;&amp;nbsp;bytes.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;This applies to the scan response packet as well.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;-Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling extended advertising with scannable advertising</title><link>https://devzone.nordicsemi.com/thread/456042?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2023 19:36:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:284d7194-f1c4-4a67-aa87-47bc3458568b</guid><dc:creator>Matthew</dc:creator><description>&lt;p&gt;So, I cannot use the &amp;#39;ad&amp;#39; payload for my extended advertisement but can I use the &amp;#39;sd&amp;#39; payload?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the &amp;#39;sd&amp;#39; payload limited to 31 bytes when extended advertising is enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling extended advertising with scannable advertising</title><link>https://devzone.nordicsemi.com/thread/456033?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2023 18:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741b175e-ae10-499a-a2cd-b4ce9e7f1971</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="MattBurton"]Is your recommendation to have this extended advertising data on my &amp;#39;sd&amp;#39; payload?[/quote]
&lt;p&gt;No, they cannot be used at the same time.&amp;nbsp;See&amp;nbsp;&lt;span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/zephyr/connectivity/bluetooth/api/gap.html#c.bt_le_ext_adv_set_data"&gt;bt_le_ext_adv_set_data&lt;/a&gt;() from the API documentation:&lt;/span&gt;&lt;br /&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/pastedimage1700157721483v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling extended advertising</title><link>https://devzone.nordicsemi.com/thread/455851?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 21:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82386a3c-3dc2-48b2-9ea3-c12c0769f159</guid><dc:creator>Matthew</dc:creator><description>&lt;p&gt;However, I am not attempting to be connectable and scannable?&lt;/p&gt;
&lt;p&gt;I just want to have an extended advertisement and be scannable. Is to have extended advertising, to, in turn become connectable?&lt;br /&gt;&lt;br /&gt;Is your recommendation to have this extended advertising data on my &amp;#39;sd&amp;#39; payload? is this not limited to 31 bytes making it unusable for ext advertising? / How can I actually use an extended advertisement while being scannable?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling extended advertising</title><link>https://devzone.nordicsemi.com/thread/455846?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 15:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d618f834-572e-47f1-bb50-61c965dd2d6e</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can&amp;nbsp;&lt;/span&gt;&lt;em&gt;not&lt;/em&gt;&lt;span&gt;&amp;nbsp;use both ad. data and scan response data concurrently when using the extended advertising feature. This is defined and limited by the Bluetooth spec.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Bluetooth Core Specification Version 5.3 | Vol 4, Part E section 7.8.53: LE Set Extended Advertising Parameters command (page 2450 in the Bluetooth Core Specification Version 5.3):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;If extended advertising PDU types are being used (bit 4 = 0) then: The advertisement shall not be both connectable and scannable. High duty cycle directed connectable advertising (≤ 3.75 ms advertising interval) shall not be used (bit 3 = 0).&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling extended advertising</title><link>https://devzone.nordicsemi.com/thread/455845?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2023 03:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2baa442c-3071-4ea2-8375-b8a0a50a5e28</guid><dc:creator>Matthew</dc:creator><description>&lt;p&gt;Which on further investigation I find the function&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;	if (ext_adv) {
		if ((scannable &amp;amp;&amp;amp; ad_len) || (!scannable &amp;amp;&amp;amp; sd_len)) 
		{
			return -ENOTSUP;
		}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which then suggests that if I am to have an advertisement and be scannable, then extended advertising is not available?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I should remove my advertisement? / advertisement length?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The multiple broadcast example gets around this by not being scannable as it seems, however I require information both on my advertisement packet and I require to be scannable so this does not seem like a plausible fix.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Am I not able to be scannnable and do extended advertising?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling extended advertising</title><link>https://devzone.nordicsemi.com/thread/455844?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 23:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db7c10a3-73f6-4ba5-96c9-e24e62fa9d4a</guid><dc:creator>Matthew</dc:creator><description>&lt;p&gt;When the adv_params .options is: &amp;#39;&lt;span&gt;BT_LE_ADV_OPT_USE_IDENTITY&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;BT_LE_ADV_OPT_SCANNABLE&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;BT_LE_ADV_OPT_NOTIFY_SCAN_REQ&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;BT_LE_ADV_OPT_EXT_ADV&amp;#39;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The output is:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;#39;*** Booting Zephyr OS build v3.3.99-ncs1 ***&lt;br /&gt;I: SoftDevice Controller build revision: &lt;br /&gt;I: e0 7e 2e c1 5e 05 85 23 |.~..^..#&lt;br /&gt;I: 46 15 dc fa 8e 29 7d 70 |F....)}p&lt;br /&gt;I: 10 93 a5 fc |.... &lt;br /&gt;I: HW Platform: Nordic Semiconductor (0x0002)&lt;br /&gt;I: HW Variant: nRF52x (0x0002)&lt;br /&gt;I: Firmware: Standard Bluetooth controller (0x00) Version 224.11902 Build 2231721665&lt;br /&gt;I: Identity: DE:AD:BE:EF:22:22 (random)&lt;br /&gt;I: HCI: version 5.4 (0x0d) revision 0x1077, manufacturer 0x0059&lt;br /&gt;I: LMP: version 5.4 (0x0d) subver 0x1077&lt;br /&gt;Failed setting adv data (err -134)&lt;br /&gt;Failed to start advertising (err -134)&lt;br /&gt;Synchronisation init failed (err -134)&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Indicating that the function &amp;#39;bt_le_ext_adv_set_data(adv, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd))&amp;#39; is causing an error.&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: Enabling extended advertising</title><link>https://devzone.nordicsemi.com/thread/455843?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 22:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:159e99cf-ce7e-4b33-bd4d-e08bb981294d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/nrf_dm#bluetooth-nrf-distance-measurement-with-bluetooth-le-discovery"&gt;nRF Distance Measurement with Bluetooth LE discovery&lt;/a&gt;&amp;nbsp;sample already supports&amp;nbsp;extended advertising as&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/nrf_dm/prj.conf#L20"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/nrf_dm/prj.conf#L20&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]However, when I attempt to add this functionality by including &amp;#39;BT_LE_ADV_OPT_EXT_ADV&amp;#39; in the &amp;#39;adv_params&amp;#39;, along with &amp;#39;BT_LE_ADV_OPT_USE_IDENTITY | BT_LE_ADV_OPT_SCANNABLE | BT_LE_ADV_OPT_NOTIFY_SCAN_REQ&amp;#39; I am faced with the zephyr error code &amp;#39;134&amp;#39;.[/quote]
&lt;p&gt;134 means&amp;nbsp;Not supported. Which function returned the error code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>