<?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>mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104147/mesh-shell-errors-provisioning-over-the-air</link><description>In the SDK prior to 2.4.2 ( 2.2.0 I think) 
 I used the following command to configure a publication parameters for a custom model 
 mesh models cfg model pub 101 4098 2570 49153 0 0 255 74 1 300 
 The parameters were 
 101: device unicast address 
 4098</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Oct 2023 14:24:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104147/mesh-shell-errors-provisioning-over-the-air" /><item><title>RE: mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/thread/449878?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 14:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bb1fb79-2da6-45f1-b972-f7d19fb876ad</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/thread/449606?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 14:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7cf8857-5282-473c-a24f-90062fa9345a</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems the test was changed to == 9 earlier this year. This should eventually propagate to the release version of nRF Connect SDK: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/e51a90934344dbae214cdd94a6130ce35246a550"&gt;https://github.com/nrfconnect/sdk-zephyr/commit/e51a90934344dbae214cdd94a6130ce35246a550&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/thread/447983?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 14:16:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a831deb5-4040-4b84-a88a-d36080d80afe</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Correct. I changed it to &amp;gt;=8&amp;nbsp; and was able to proceed further&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/thread/447982?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 14:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8fa9d2b-fc86-45ec-bd02-0189a5625212</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can register a bug in our internal tracker.&lt;/p&gt;
&lt;p&gt;Is it the check on line 1567 of zephyr/subsys/bluetooth/mesh/shell/cfg.c, in the function cmd_mod_pub(), which leads to error?&lt;/p&gt;
&lt;p&gt;I.e. the first line of the following code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	if (argc == 1 || argc == 8) {
		cid = shell_strtoul(argv[0], 0, &amp;amp;err);
		argc--;
		argv++;
	} else {
		cid = CID_NVAL;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/thread/447971?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 13:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:281d9492-9cf0-42c7-95ce-b2fc619d831e</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Thank you for pointing me to the doc&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The code is still broken - because it expects exactly 8 parameters it prints an error and returns&lt;/p&gt;
&lt;p&gt;Where do I file a bug?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/thread/447828?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 21:57:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75634823-10d9-45c9-a7f8-69a0670f93d8</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like this maps directly to &amp;quot;Number of Steps&amp;quot; and &amp;quot;Step resolution&amp;quot; in section 4.2.2.2 &amp;quot;Publish Period&amp;quot; of the Mesh Profile Specification v1.0.1.&lt;/p&gt;
&lt;p&gt;&amp;quot;Number of Steps&amp;quot; is &amp;quot;PerSteps&amp;quot;, and &amp;quot;Step resolution&amp;quot; is the same as in the description of &amp;quot;PerRes&amp;quot;. The resulting publish period is specified as &amp;quot;Step Resolution&amp;quot; times &amp;quot;Number of Steps&amp;quot;. In the case where &amp;quot;Number of Steps&amp;quot; equals 0 there will be no periodic publication.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/thread/447792?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 15:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf9662f-b8b6-45fe-8e14-a9ee53e091cb</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Update&lt;/p&gt;
&lt;p&gt;Found this description in SDK 2.4.2 documentation&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/zephyr/connectivity/bluetooth/api/mesh/shell.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/zephyr/connectivity/bluetooth/api/mesh/shell.html&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;PerRes&lt;/span&gt;&lt;/code&gt;: Resolution of the publication period steps:&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;
&lt;p&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;0x00&lt;/span&gt;&lt;/code&gt;: The Step Resolution is 100 milliseconds&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;0x01&lt;/span&gt;&lt;/code&gt;: The Step Resolution is 1 second&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;0x02&lt;/span&gt;&lt;/code&gt;: The Step Resolution is 10 seconds&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;0x03&lt;/span&gt;&lt;/code&gt;: The Step Resolution is 10 minutes&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;PerSteps&lt;/span&gt;&lt;/code&gt;: Number of publication period steps, or 0 to disable periodic publication.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Don&amp;#39;t quite understand what &amp;quot;&lt;span&gt;PerSteps&lt;/span&gt;&amp;quot; means here&amp;nbsp; - can you give a couple of examples?&lt;/p&gt;
&lt;p&gt;Generally it seems that this command should just take a number of seconds for a publication period and do the appropriate encoding internally - or just accept an already encoded value, as it used to in the previous versions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh shell errors provisioning over the air</title><link>https://devzone.nordicsemi.com/thread/447593?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 23:45:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f802d15-b32d-4a47-bb16-a33c1647f9da</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Update&lt;/p&gt;
&lt;p&gt;I changed&amp;nbsp; the code on line 1587 in cfg.c from&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (argc == &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt; || argc == &lt;/span&gt;&lt;span&gt;8&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (argc == &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt; || argc &amp;gt;= &lt;/span&gt;&lt;span&gt;8&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And now I can successfully set the publication parameters over the air.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Still need clarification for the res_steps and step parameter.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Mainly how to convert seconds to res_steps and step&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank you&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></channel></rss>