<?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>nRF5 SDK for Mesh: How to change the proxy models advertising data during operation?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85093/nrf5-sdk-for-mesh-how-to-change-the-proxy-models-advertising-data-during-operation</link><description>Dear Nordic Experts, A few short questions about mesh advertising in regard to Softdevice s132, 7.3.0, Mesh SDK 5.0.0 and nRF5 SDK 17.0.2: 
 
 How do you change the advertised name of a mesh node during operation - the name broadcasted by the proxy model</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Mar 2022 16:31:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85093/nrf5-sdk-for-mesh-how-to-change-the-proxy-models-advertising-data-during-operation" /><item><title>RE: nRF5 SDK for Mesh: How to change the proxy models advertising data during operation?</title><link>https://devzone.nordicsemi.com/thread/357740?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 16:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24187fb4-ffe4-4949-bd6d-edbeaaf30630</guid><dc:creator>BlueMike</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;thank you very much for the clarification!&lt;/p&gt;
&lt;p&gt;Michael.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh: How to change the proxy models advertising data during operation?</title><link>https://devzone.nordicsemi.com/thread/357089?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 10:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c457543-4212-43a7-952e-8c79699320f1</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="BlueMike"]d_ble_gap_device_name_set() to return error code NRF_ERROR_INTERNAL (3)?[/quote]
&lt;p&gt;That means the allocated length for the device name is too short. You can configure this yourself using&amp;nbsp;&lt;span&gt;ble_gap_cfg_device_name_t. I can imagine the naming being a bit confusing, we were planning on replacing it with&amp;nbsp;NRF_ERROR_DATA_SIZE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh: How to change the proxy models advertising data during operation?</title><link>https://devzone.nordicsemi.com/thread/356576?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2022 12:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfdb447f-af1c-477d-b474-4f4fb39994bc</guid><dc:creator>BlueMike</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;thanks for the clarification. Do you have any ideas what causes sd_ble_gap_device_name_set() to return error code NRF_ERROR_INTERNAL (3)? The error isn&amp;#39;t mentioned at the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gae779f7eed346027dc4cbaf438352e5db"&gt;docs&lt;/a&gt;, making it a little difficult to figure out what&amp;#39;s wrong...&lt;/p&gt;
&lt;p&gt;The firmware is based on the generic level example from the Mesh sdk (5.0.0), running with Softdevice s132 7.3.0 and nRF SDK 17.0.2. &lt;/p&gt;
&lt;p&gt;Thank you,&lt;br /&gt;Michael.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh: How to change the proxy models advertising data during operation?</title><link>https://devzone.nordicsemi.com/thread/356370?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 15:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b922c7d9-16e2-47f6-822d-d29e9e838e94</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again, sorry about the wait.&amp;nbsp;&lt;/p&gt;
[quote user=""]How do you change the advertised name of a mesh node during operation - the name broadcasted by the proxy model?[/quote]
&lt;p&gt;You can see the node name defined&amp;nbsp;as GAP_DEVICE_NAME in nrf_mesh_config_app.h, but changing it programmatically can be a bit more work. You would have to use the function&amp;nbsp;sd_ble_gap_device_name_set() that you can see in ble_softdevice_support.c and then adv_data_node_id_set() from proxy.c.&amp;nbsp;adv_data_node_id_set is also a static function, so definitely have to modify several parts of&amp;nbsp;the code. There are unfortunately no straight forward API or way to do this, but it should be possible.&lt;/p&gt;
[quote user=""]Is the vendor id, device id and firmware version already part of the proxy models advertising data? If not, how do you add it to the proxy models advertising data?[/quote]
&lt;p&gt;In section 7.2 in the spec you can see that none of this is being advertised, and what is being advertised is required. You can add what you need to this however, as long as it doesn&amp;#39;t end up being longer than 32bytes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1884.pastedimage1646406459032v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh: How to change the proxy models advertising data during operation?</title><link>https://devzone.nordicsemi.com/thread/355377?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 19:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:941700ea-0502-412f-b28d-f3a90bd98ef9</guid><dc:creator>BlueMike</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Thanks for your help with this! Any updates on it?&lt;/p&gt;
&lt;p&gt;Michael.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK for Mesh: How to change the proxy models advertising data during operation?</title><link>https://devzone.nordicsemi.com/thread/354842?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 13:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ee2756f-40e7-4102-9f5b-d3d26d542170</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Mike,&lt;/p&gt;
&lt;p&gt;I will have to get back to you on this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>