<?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>openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100665/openthread-cli-does-not-auto-start-and-cannot-use-commissionner</link><description>I&amp;#39;m trying to create an openthread network extension with nrf52840 dongle. For that, it needs to be Full Thtead Device so that it&amp;#39;s capable of becoming a router and should be able to join automatically so auto start thread and joined config. I based it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jul 2023 16:38:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100665/openthread-cli-does-not-auto-start-and-cannot-use-commissionner" /><item><title>RE: openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/thread/434530?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 16:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b904e8b0-db39-4b01-9b3f-562e55f7839e</guid><dc:creator>wass</dc:creator><description>&lt;p&gt;Thank you very much for your support, the &amp;quot;autojoin&amp;quot; sample is out of scope though, as the question was about the cli. I am&amp;nbsp;capable of using join functions with a custom app. Therefore, I will not follow up this question we can close it as I will proceed by creating a different sample than the cli.&lt;br /&gt;Thank you again for the help, I don&amp;#39;t think it is worth it to follow up why exactly the cli sample did not work with a specific flag.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/thread/434373?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 08:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69f5783e-c216-4d48-b386-a92d7c36ad05</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi wass.&lt;/p&gt;
&lt;p&gt;I will continue helping in this case.&lt;/p&gt;
[quote user="wass"]Flashing actually does not delete the openthread settings region[/quote]
&lt;p&gt;That is correct.&lt;/p&gt;
&lt;p&gt;However, if you flash and erase, openthread settings will be erased.&lt;/p&gt;
[quote user="wass"]As you can see, the cli sample starts as disabled and does not attempt to join any network as per the expected `&lt;span&gt;CONFIG_OPENTHREAD_JOINER_AUTOSTART=y&lt;/span&gt;`[/quote]
&lt;p&gt;From your description, your issue is that when you call &amp;quot;ot factoryreset&amp;quot;, the device does not autojoin again, rigjt?&lt;/p&gt;
&lt;p&gt;If I run my &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/openthread_samples/autojoin"&gt;autojoin&lt;/a&gt; sample, the device automatically joins on &amp;quot;ot factoryreset&amp;quot;. &lt;br /&gt;See the video below for a sample&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/autojoin.mp4"&gt;devzone.nordicsemi.com/.../autojoin.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/thread/432046?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 13:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5e1401-e235-4dcf-9604-4dceb0cf8e01</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for providing me with a sample and steps to recreate the issue. This is just a heads up that it might take some time attempt to recreate the issue you&amp;#39;re observing but I will try to prioritize it towards the end of the working week&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/thread/431095?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 17:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64a67580-14fc-4b0c-9766-90ccd6c0f1ff</guid><dc:creator>wass</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for the suggestions. I checked the github issue link, that is something I was aware of and is quite common for newly flashed devices in order to be in a factory reset state right after flashing. Flashing actually does not delete the openthread settings region, that&amp;#39;s why, what actually deletes the openthread settings region is calling &amp;quot;ot factoryreset&amp;quot; which I included in my&amp;nbsp;test as shown above.&lt;/p&gt;
&lt;p&gt;I think the question could be answered by investigating the code or having a clear overview on what the cli does, which is a bit challenging to me. If the code proves that the&amp;nbsp;behavior is expected then reproducing it will not justify if it is a bug or not, maybe the cli example was just not intended to be used like that.&lt;/p&gt;
&lt;p&gt;In order to make reproduction easier, as requested here I put together in one directory all what is needed, the readme also includes the needed command which must include the test overlay&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/HomeSmartMesh/sdk-hsm-thingy53/tree/main/samples/30_usb_dongle_router"&gt;https://github.com/HomeSmartMesh/sdk-hsm-thingy53/tree/main/samples/30_usb_dongle_router&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;here the commands from the readme&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;```shell&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;west&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;build&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-p&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;always&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-b&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;nrf52840dongle_nrf52840&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;-DOVERLAY_CONFIG=overlay-usb.conf;overlay-joiner-rounter.conf&amp;quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-DDTC_OVERLAY_FILE=&lt;/span&gt;&lt;span&gt;&amp;quot;usb.overlay&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;nrfutil&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pkg&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;generate&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--hw-version&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;52&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--sd-req=0x00&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--application&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;build/zephyr/zephyr.hex&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;--application-version&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;build/zephyr/zephyr.zip&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;nrfutil&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dfu&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;usb-serial&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-pkg&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;build/zephyr/zephyr.zip&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-p&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;COM9&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;```&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/thread/430676?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 09:16:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f04fbd84-1dfc-4942-8662-c78c3fecae31</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From what I know it should autojoin. Could you have a look at this git issue from zephyr and check the logs to see if the issue is similar as the one reported in the issue and try the suggested fix:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/30433"&gt;github.com/.../30433&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;It seems that you have not erased the OT settings area on flash (west flash --erase). Looking at the logs, your device already had a dataset stored and it simply formed a network. The startup code won&amp;#39;t bother with the joining procedure if it has a valid dataset stored in flash.&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;If it does not solve the issue, could you check and see if it is reproducable in a somewhat minimal sample such as&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/openthread_samples/autojoin"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/openthread_samples/autojoin?&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/thread/430572?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 16:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ee3bec4-5930-4d18-b6c4-7bd585d1aebb</guid><dc:creator>wass</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;thank you for taking this up.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to simplify and reduce the scope of the question.&lt;/p&gt;
&lt;p&gt;With the above joiner config&amp;nbsp;applied on the cli sample, is the following scenario expected&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;uart:~$ ot factoryreset
------reboot
uart:~$ ot state
disabled
Done&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you can see, the cli sample starts as disabled and does not attempt to join any network as per the expected `&lt;span&gt;CONFIG_OPENTHREAD_JOINER_AUTOSTART=y&lt;/span&gt;`&lt;/p&gt;
&lt;p&gt;If that is somehow expected, that would answer the question as it is different than normal samples, the cli is maybe overriding the default config ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/thread/430542?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 14:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a1af70-968a-431a-b999-dc9112416234</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Glad to hear that you&amp;#39;ve solved (atleast partially?) the issue you were observing. Could you verify if you&amp;#39;ve solved it or not?&lt;/p&gt;
&lt;p&gt;If not, I&amp;#39;ll continue supporting you with solving the case!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread cli does not auto start and cannot use commissionner</title><link>https://devzone.nordicsemi.com/thread/430312?ContentTypeID=1</link><pubDate>Sat, 10 Jun 2023 14:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37bf873b-9e31-44cb-9a77-5d47fec31765</guid><dc:creator>wass</dc:creator><description>&lt;p&gt;I answer part of my own issue, as I clarified the &amp;quot;commissioning&amp;quot; part. It was not clear to me when a dataset is needed and when not.&lt;br /&gt;when testing a new fresh factoryreset cli and creating a dataset as described here, it works&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/overview/commissioning.html#setting-up-the-commissioner"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/overview/commissioning.html#setting-up-the-commissioner&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll still investigate why it does not autostart, and when it comes to other issues (joining from intermediate router, I&amp;#39;ll test more and might open an issue in a different ticket).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>