<?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>Advertising 1650 bytes of Host advertising data in an Auxiliary segment using Advertising Extensions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88164/advertising-1650-bytes-of-host-advertising-data-in-an-auxiliary-segment-using-advertising-extensions</link><description>The BLE core specification states that using advertising extensions, the total host advertising data that can be advertised is 1650 bytes. This is achieved through fragmentation of data in multiple PDUs and chaining them together as one Auxiliary segment</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Jun 2022 12:14:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88164/advertising-1650-bytes-of-host-advertising-data-in-an-auxiliary-segment-using-advertising-extensions" /><item><title>RE: Advertising 1650 bytes of Host advertising data in an Auxiliary segment using Advertising Extensions</title><link>https://devzone.nordicsemi.com/thread/370439?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 12:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f51523a5-6c2b-4ced-ac34-265882195bca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sukriti,&amp;nbsp;&lt;br /&gt;After the discussion with the R&amp;amp;D team, it&amp;#39;s turned out that the issue was with the length definition of bt_data:&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_data&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;data_len&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; *&lt;/span&gt;&lt;span&gt;data&lt;/span&gt;&lt;span&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;Max length is uint8_t meaning the cap is 255.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;To be able to advertise more than 255 bytes you would need to define multiple ad structure.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For example this one worked for me:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_data&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ad&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; = {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_DATA&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;BT_DATA_MANUFACTURER_DATA&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;mfg_data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;200&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_DATA&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;BT_DATA_MANUFACTURER_DATA&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;mfg_data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;200&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_DATA&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;BT_DATA_MANUFACTURER_DATA&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;mfg_data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;200&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_DATA&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;BT_DATA_MANUFACTURER_DATA&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;mfg_data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;200&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I can see 800 bytes advertising in 4 chained adv packet.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0576.peripheral_5F00_hr_5F00_chained.zip"&gt;devzone.nordicsemi.com/.../0576.peripheral_5F00_hr_5F00_chained.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For SDK v2.5.x and above use this:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5305.peripheral_5F00_hr_5F00_chained.zip"&gt;devzone.nordicsemi.com/.../5305.peripheral_5F00_hr_5F00_chained.zip&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 1650 bytes of Host advertising data in an Auxiliary segment using Advertising Extensions</title><link>https://devzone.nordicsemi.com/thread/370077?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 05:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2caf423-1de6-4095-9353-340762c14f61</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Eagerly waiting for a positive response from your end!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 1650 bytes of Host advertising data in an Auxiliary segment using Advertising Extensions</title><link>https://devzone.nordicsemi.com/thread/369983?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 12:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dee7c9c2-cae4-454d-93b4-bb3ba0eea74c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sukriti,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tested here and saw the same problem. Only the first bytes got transmitted with AUX_ADV_IND when the rest 254 bytes gone missing.&amp;nbsp;&lt;br /&gt;I am checking with our team to see what could be the problem, this feature is expected to be supported in current nRF Connect SDK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 1650 bytes of Host advertising data in an Auxiliary segment using Advertising Extensions</title><link>https://devzone.nordicsemi.com/thread/369763?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 11:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e5c2bb0-e0a0-4f4c-bed1-ad638c62c4c1</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Hi Hung!!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So following your suggestion,&amp;nbsp;I shifted to nRF Connect SDK.&amp;nbsp;I altered the periodic_adv sample and&amp;nbsp;am using it for extended advertising. As you suggested,&amp;nbsp;I&amp;nbsp;set&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=1650. But unfortunately, I am still not able to get the&amp;nbsp;AUX_CHAIN_IND PDUs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Basically, I am using the Manufacturer Specific Data type to advertise the data. However, I am still not able to send more than 249 bytes of data. This includes 1 byte of AD Type and 2 bytes of Company Identifier code. Thus, effectively, I&amp;#39;m able to send only 246 bytes of custom Payload. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is happening probably because the controller is not fragmenting the data into chain PDUs when it exceeds 255 bytes in total. All I&amp;#39;m getting is an AUX_ADV_IND PDU of length 255 bytes. Can you please suggest how to achieve advertising data chaining?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 1650 bytes of Host advertising data in an Auxiliary segment using Advertising Extensions</title><link>https://devzone.nordicsemi.com/thread/368980?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 10:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0552538-c241-468d-a40f-4355d8c47644</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Hey!&lt;/p&gt;
&lt;p&gt;Understood! Thanks for the quick and crisp response, Hung!&lt;/p&gt;
&lt;p&gt;Have a good day! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising 1650 bytes of Host advertising data in an Auxiliary segment using Advertising Extensions</title><link>https://devzone.nordicsemi.com/thread/368956?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 09:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eec27c2-9ac7-4e0e-bd66-69b233d0b8b1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gautam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately it&amp;#39;s not supported in our Softdevice in nRF5 SDK. 255 is the maximum data length for a chained advertising data set.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can have a look here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38702/maximum-extended-advertising-data-length-supported"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38702/maximum-extended-advertising-data-length-supported&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, it&amp;#39;s supported with our BLE stack in NRF Connect SDK. So if it&amp;#39;s possible to change the SDK, I would suggest to have a look at the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html"&gt;nRF Connect SDK.&amp;nbsp;&lt;/a&gt;&lt;br /&gt;What you need to change is to set&amp;nbsp;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=1650.&lt;/p&gt;
&lt;p&gt;Note that the nRF5 SDK is legacy development platform and we will not add new feature to the SDK. And if you want to have new feature and be &amp;quot;future proof&amp;quot; we would strongly suggest to move to nRF Connect SDK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>