<?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>configuring device name larger than 31 bytes in nRF52840 (SDK17)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75442/configuring-device-name-larger-than-31-bytes-in-nrf52840-sdk17</link><description>Hello, 
 in our product we need to have the possibility to set name higher then 31 bytes. 
 We modify the code according the tick 
 devzone.nordicsemi.com/.../sd_ble_cfg_set-for-ble_gap_cfg_device_name-returns-nrf_error_invalid_addr 
 in the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jun 2021 11:54:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75442/configuring-device-name-larger-than-31-bytes-in-nrf52840-sdk17" /><item><title>RE: configuring device name larger than 31 bytes in nRF52840 (SDK17)</title><link>https://devzone.nordicsemi.com/thread/315373?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 11:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ba85ce5-d0c8-477a-82d8-014343bc1290</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad we were able to get to the bottom of this issue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuring device name larger than 31 bytes in nRF52840 (SDK17)</title><link>https://devzone.nordicsemi.com/thread/315133?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 12:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92fabe75-7a85-4029-8c28-afe3df0dfc08</guid><dc:creator>Elisa</dc:creator><description>&lt;p&gt;Thanks Simon,&lt;/p&gt;
&lt;p&gt;that was the issue, we made the invocation in the wrong context.&lt;/p&gt;
&lt;p&gt;Now it works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuring device name larger than 31 bytes in nRF52840 (SDK17)</title><link>https://devzone.nordicsemi.com/thread/312583?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 09:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e748b265-0642-4ceb-899a-303e7532fa92</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Which of the functions is it that returns NRF_ERROR_INVALID_STATE though? If it&amp;#39;s sd_ble_cfg_set for instance, it means that the BLE stack has already been initialized and that you try doing it again, for instance.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuring device name larger than 31 bytes in nRF52840 (SDK17)</title><link>https://devzone.nordicsemi.com/thread/312191?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 16:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d7f80a3-bbc5-44d0-9fc2-3a8bab64a4b6</guid><dc:creator>Elisa</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;yes we&amp;#39;ve already followed the&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;Adjustment of RAM and Flash memory tutorial&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;. Anyway we checked again and verified&amp;nbsp;RAM and FLASH and they are correct. We also tried to decrease the&amp;nbsp;&lt;span&gt;BLE_GAP_DEVNAME_MAX_LEN up to 40 but we get the same error:NRF_ERROR_INVALID_STATE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We tried also to use&amp;nbsp;BLE_ADVDATA_FULL_NAME instead BLE_ADVDATA_SHORT_NAME in the advertising but with the same result.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you have a look at the code I sent in the first message to see if you can see any error?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please send us some more suggestion?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elisa&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuring device name larger than 31 bytes in nRF52840 (SDK17)</title><link>https://devzone.nordicsemi.com/thread/311321?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 07:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb1ea9c-ab71-4b30-a0dc-c41e40d40566</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Elisa&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t mean to change the BLE_GAP_DEVNAME_DEFAULT_LEN, but to set the limit used by your advertising function to BLE_GAP_DEVNAME_MAX_LEN instead. Indeed, you might need to increase the RAM and Flash memory somewhat. You should get a message by the IDE you&amp;#39;re using with a request to increase the RAM to value X. Please follow our &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;Adjustment of RAM and Flash memory tutorial &lt;/a&gt;to see how to do so.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuring device name larger than 31 bytes in nRF52840 (SDK17)</title><link>https://devzone.nordicsemi.com/thread/311221?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 09:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0305b71-eb9d-4baa-991b-5745d6a2ff52</guid><dc:creator>Elisa</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;thanks for your prompt reply.&lt;/p&gt;
&lt;p&gt;In the advertising we use the shortened name (8bytes) but we need a complete name length up to 40 bytes.&lt;br /&gt;Changing the BLE_GAP_DEVNAME_DEFAULT_LEN we get malfunction because, as explained in the blog, it&amp;#39;s the space reserved for the name in the FLASH of SD.&lt;br /&gt;For what we understood in the ticket, to have a complete name higher than BLE_GAP_DEVNAME_DEFAULT_LEN (up to the BLE_GAP_DEVNAME_MAX_LEN value = 248) we need to allocate the device name in the RAM of the application like we did in the code I sent but it doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;We are using&amp;nbsp;&lt;span&gt;SoftDevice version 7.0.1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elisa&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: configuring device name larger than 31 bytes in nRF52840 (SDK17)</title><link>https://devzone.nordicsemi.com/thread/311056?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 12:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ca6b6c6-b228-4284-ae75-ce0e5d3eaf6e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What size are you trying to set the device name to? According to the spec. the maximum device name length is 248. See&amp;nbsp;&lt;strong&gt;BLE_GAP_DEVNAME_MAX_LEN&lt;/strong&gt; in ble_gap.h of the SoftDevice you&amp;#39;re using. However, I guess that your advertising_init() function uses the &lt;strong&gt;BLE_GAP_DEVNAME_DEFAULT_LEN&lt;/strong&gt; of 31 as the maximum limit which is why you&amp;#39;re seeing this error when trying to increase it beyond 31 bytes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>