<?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>Maximum length of manufacturer specific data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110804/maximum-length-of-manufacturer-specific-data</link><description>Hello, 
 
 I am using a nrf5340 together with nrf Connect SDK v2.4.2. 
 I use extended advertising to be able to send manufacturer specific data. 
 For now I am able to send 184 bytes of data including my company id. 
 According to Bluetooth specification</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 May 2024 09:47:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110804/maximum-length-of-manufacturer-specific-data" /><item><title>RE: Maximum length of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/482471?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 09:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77a12760-7ae6-4d2f-8269-01f2aafca388</guid><dc:creator>ProfNocturne</dc:creator><description>&lt;p&gt;I checked it again:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I&amp;nbsp;&lt;span&gt;did a pristine build in VS Code&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;I used Erase and Flash and after that Debug.&lt;/li&gt;
&lt;li&gt;(Also Debugging with Ozone showed the same error.)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After that I had a deeper look in the prj.conf-File:&lt;/p&gt;
&lt;p&gt;CONFIG_BT_CTLR_ADV_EXT=y and&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX&lt;/span&gt;&lt;span&gt;=1650 were marked with a warning.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I removed&amp;nbsp;CONFIG_BT_CTLR_ADV_EXT=y and copied&amp;nbsp;CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=1650 to the child image config file&amp;nbsp;hci_rpmsg.conf&lt;/p&gt;
&lt;p&gt;I had to change the file name&amp;nbsp;&lt;span&gt;hci_rpmsg.conf to&amp;nbsp;hci_ipc.conf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After that the example worked as intended and helped me to answer my question.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Maximum length of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/482244?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 10:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd2e41a9-f25d-47f6-80fb-6405f564bca4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The `bt_le_ext_adv_create()` function can return error code -5 (EIO) when there&amp;#39;s an issue with the Bluetooth controller. This can happen when the controller doesn&amp;#39;t recognize the opcode for setting extended advertising parameters. This suggests that support for the extended advertising feature has not been enabled in the Bluetooth controller running on the network core (see following case for details:&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/103091/identical-code-to-peripheral-hr-coded-sample-not-working-in-my-own-project"&gt;Identical code to Peripheral HR Coded sample not working in my own project&lt;/a&gt;&amp;nbsp;).&lt;/p&gt;
&lt;p&gt;In another case, the error was resolved by using the &amp;quot;Erase and Flash&amp;quot; action, suggesting that there might have been some old data in the network core or elsewhere that was causing the issue (see following case for details:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81405/error-when-trying-to-enable-extended-advertising-on-code-based-on-nus-example"&gt;Error when trying to enable extended advertising on code based on NUS example&lt;/a&gt;&amp;nbsp;).&lt;/p&gt;
&lt;p&gt;Therefore, if you&amp;#39;re encountering error -5 with `bt_le_ext_adv_create()`, you should check that extended advertising is indeed enabled, that there&amp;#39;s no old data causing issues.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Maximum length of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/482176?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 07:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:725aef74-21a5-4c19-8cdc-54b9d65654a0</guid><dc:creator>ProfNocturne</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried the following example which Hung Bui provided in your linked discussion:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5305.peripheral_5F00_hr_5F00_chained.zip"&gt;5305.peripheral_hr_chained.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I built it with SDK 2.6.1. But I got an error during Debugging when the advertising information is created. (&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;(main.c, line 110: err&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_ext_adv_create&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;param&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;adv&lt;/span&gt;&lt;span&gt;); =&amp;gt; function returns with err = -5)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static int create_advertising_chained(void)
{
	int err;
	struct bt_le_adv_param param =
		BT_LE_ADV_PARAM_INIT(BT_LE_ADV_OPT_USE_NAME | BT_LE_ADV_OPT_USE_IDENTITY |
				     BT_LE_ADV_OPT_EXT_ADV 
				     ,
				     BT_GAP_ADV_FAST_INT_MIN_2,
				     BT_GAP_ADV_FAST_INT_MAX_2,
				     NULL);

	err = bt_le_ext_adv_create(&amp;amp;param, NULL, &amp;amp;adv);
	if (err) {
		printk(&amp;quot;Failed to create advertiser set (err %d)\n&amp;quot;, err);
		return err;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you clarify if this example runs on the&amp;nbsp;nrf5340 DK?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Maximum length of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/481536?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 11:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b828d6-884a-4db9-bcd6-3f2c7e9b4480</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please see discussion here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93316/chaining---current-status"&gt;Chaining - current status&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;tldr; You can&amp;#39;t send it in one advertisment, but need to split it in two (chained advertisment).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>