<?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>NCS Joiner fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90271/ncs-joiner-fails</link><description>NCS version 1.9.1 
 nRF52840 DK 
 I have two projects based on the coap server and coap client examples. I have made the server a commissioner, and call otCommissioerJoinerStart() when button 4 is pressed (instead of activating provisioning). 
 I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Jul 2022 14:03:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90271/ncs-joiner-fails" /><item><title>RE: NCS Joiner fails</title><link>https://devzone.nordicsemi.com/thread/378943?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2022 14:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a13a7dc7-5169-4c73-a429-e3a32c42f099</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;I got it to work.&amp;nbsp; The changes I made were:&lt;/p&gt;
&lt;p&gt;Increase CONFIG_OPENTHREAD_RADIO_WORKQUEUE_STACK_SIZE (from 1024) to 2048&lt;br /&gt;Increase CONFIG_OPENTHREAD_THREAD_STACK_SIZE (from 6240 ) to 8192&lt;/p&gt;
&lt;p&gt;Increase MBEDTLS_HEAP_SIZE by 20K bytes&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Joiner fails</title><link>https://devzone.nordicsemi.com/thread/378727?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 13:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1716515f-2e2e-4f43-95a9-7d0796c29564</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi, Edvin has started his summer vacation, and we are lacking some mesh experts due to the holidays. We need to wait for a week until few experts come back. I will update this thread when I can ask someone regarding this. Thanks for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Joiner fails</title><link>https://devzone.nordicsemi.com/thread/378370?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 17:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6b8aef3-db7e-46a8-b42a-17050759ab1f</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;The function &amp;#39;openthread_set_state_changed_cb()&amp;#39; is not a callback.&amp;nbsp; It sets a callback function to be called on a state change.&amp;nbsp; I want to know if a callback can be set after the openthread stack is already running.&lt;/p&gt;
&lt;p&gt;I presume the source address for the &amp;quot;Client Hello&amp;quot; message is from the client.&lt;/p&gt;
&lt;p&gt;I do not see the UDP message in the sniffer trace.&lt;/p&gt;
&lt;p&gt;The client does not connect to the network.&lt;/p&gt;
&lt;p&gt;The error log messages are printed to the console, which is shown in my original post.&lt;/p&gt;
&lt;p&gt;My coap_client can join the network if I run the cli example instead of the coap_server, and enter these commands:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;ot ifconfig up&lt;br /&gt;ot thread start&lt;br /&gt;ot commissioner start&lt;br /&gt;ot commissioner joiner add * J01NUS 100&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached the Wireshark capture for this scenario.&amp;nbsp; Note the DTLS exchange (Server Hello, key exhange, etc), which is not present when running the coap_server.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m probably missing some key CONFIG_ parameter in prj.conf, but I don&amp;#39;t know what.&amp;nbsp; I&amp;#39;ve compared the .config files for the clI and my coap_server and have added the ones listed below, but still cannot join.&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_OPENTHREAD_SHELL&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style="color:#569cd6;"&gt;CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;#CONFIG_MBEDTLS_SHA1_C=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_SHA1_C&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/cli_5F00_commish_5F00_coap_5F00_client_5F00_joiner_5F00_ok.pcapng"&gt;devzone.nordicsemi.com/.../cli_5F00_commish_5F00_coap_5F00_client_5F00_joiner_5F00_ok.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Joiner fails</title><link>https://devzone.nordicsemi.com/thread/378328?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 13:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98189873-a866-4c5c-9eb9-87841ec9ffb3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Mary,&lt;/p&gt;
[quote user=""]&lt;p&gt;Also, can I call&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;openthread_set_state_changed_cb&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;on_thread_state_changed&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;when openthread is autostarted?&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;This is a callback, so you can&amp;#39;t call it to force it to change state, if that is what you are asking.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am a bit confused about the sniffer trace. Perhaps they are not decrypted correctly, but what devices (addresses) are your client and server? Do you see the UDP message in the sniffer trace? Does the client connect to the network? Where is the error message in the log printed?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>