<?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>Thread kick off too slow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114021/thread-kick-off-too-slow</link><description>Hi, 
 I encountered a &amp;quot;Thread kick off too slow&amp;quot; issue. Let me explain it 
 My develop environment 
 Hardware: nRf7002-DK 
 SDK: 2.6.1 
 A. I copy the sample nrf/samples/net/mqtt to my work space, use &amp;quot; wifi_cred add&amp;quot; to connect my WIFI. Everything is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Aug 2024 14:17:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114021/thread-kick-off-too-slow" /><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/500024?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 14:17:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076aa469-1fda-436e-ac04-613141466acf</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Thanks a lot and I will try tomorrow and let you know the result&lt;/p&gt;
&lt;p&gt;Lance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/499908?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 07:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc94a1ab-749c-4fd7-b219-99ce6af3b26e</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Lance,&lt;/p&gt;
&lt;p&gt;I did further&amp;nbsp;comparison between generated build/mqtt/zephyr/.config.conf files when static IP enabled or not.&lt;/p&gt;
&lt;p&gt;It figures out the default&amp;nbsp;&lt;span&gt;CONFIG_NET_CONFIG_INIT_TIMEOUT=30 effect the waiting time, it basically will still&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;wait for IPv4 address from&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;DHCPv4 until this timeout&lt;/span&gt;. You can change it to 0 to trigger using static IP directly.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;There are quite many samples set&amp;nbsp;&lt;span&gt;CONFIG_NET_CONFIG_INIT_TIMEOUT=0 when using static IP.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/499860?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 23:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:617f7dbb-f61b-4017-8b97-bc797e8e001b</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; So, what can I do now is waiting for your response, right?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Lance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/499801?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 14:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fa52f40-c28a-4fce-9816-46addec873d3</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Lance,&lt;/p&gt;
&lt;p&gt;Sorry for the delay. After set the static IP outside&amp;nbsp;my router DHCP IP pool. My device can successfully get the static IP with previous setting now.&lt;/p&gt;
&lt;p&gt;I can observe the delay before following log appear. Look into the codes, it seems related to Zephyr NET Connection Manager. I will report this issue to our development team for further debugging.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&amp;lt;inf&amp;gt; network: Bringing network interface up and connecting to the network&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/499639?ContentTypeID=1</link><pubDate>Sat, 24 Aug 2024 15:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb96aac-ff45-4b23-a840-37d26240ca4a</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Any hits?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/499409?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 14:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a160939a-c16a-4ee4-a5ee-88d62ab113ac</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Lance,&lt;/p&gt;
&lt;p&gt;I did a try with following configuration but I observer from router that nRF7002DK still get IP from DHCP server.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_DHCPV4&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_CONFIG_SETTINGS&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_CONFIG_NEED_IPV4&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_CONFIG_MY_IPV4_ADDR&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;192.168.50.201&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_CONFIG_MY_IPV4_GW&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;192.168.50.1&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DNS_SERVER_IP_ADDRESSES&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DNS_SERVER1&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;192.168.50.1&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I doubt we set static IP in the correct way. Let me try the sta sample tomorrow to do a comparison.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/499291?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 04:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aaf90a3-2a02-478f-b949-8853b7b13b56</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Hi Charle,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Any update?&lt;/p&gt;
&lt;p&gt;Lance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/499098?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 15:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34a37a2d-6d39-435b-acfb-eac21b8ad47e</guid><dc:creator>LanceTaiwan</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; After I changed log level to 4 ( default is 3 ). A lots of messages come out but they are helpless.&amp;nbsp; BTY, I follow your comment to set&amp;nbsp;&lt;span&gt;static Wi-Fi network configurations like SSID and Password and the result is the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; If I set to static IP, the kernel boot to the first thread will be very slow.&amp;nbsp; Any other idea?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;00:01:08.233,612] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x2000f680 took mutex 0x2000ff84, count: 1, orig prio: 0&lt;br /&gt;[00:01:08.233,642] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x2000ff84 lock_count: 1&lt;br /&gt;[00:01:08.233,642] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x2000ff84: (nil) (prio: -1000)&lt;br /&gt;[00:01:08.233,673] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x2000f680 took mutex 0x2000ffac, count: 1, orig prio: 0&lt;br /&gt;[00:01:08.233,703] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x2000ffac lock_count: 1&lt;br /&gt;[00:01:08.233,734] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x2000ffac: (nil) (prio: -1000)&lt;br /&gt;[00:01:08.233,764] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x2000f680 took mutex 0x20010024, count: 1, orig prio: 0&lt;br /&gt;[00:01:08.233,795] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x20010024 lock_count: 1&lt;br /&gt;[00:01:08.233,795] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x20010024: (nil) (prio: -1000)&lt;br /&gt;[00:01:08.236,053] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x2000eeb0 took mutex 0x2000d288, count: 1, orig prio: -1&lt;br /&gt;[00:01:08.236,083] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x2000d288 lock_count: 1&lt;br /&gt;[00:01:08.236,114] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x2000d288: (nil) (prio: -1000)&lt;br /&gt;[00:01:08.236,480] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x2000f680 took mutex 0x2000fee4, count: 1, orig prio: 0&lt;br /&gt;[00:01:08.236,541] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x2000fee4 lock_count: 1&lt;br /&gt;[00:01:08.236,572] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: new owner of mutex 0x2000fee4: (nil) (prio: -1000)&lt;br /&gt;[00:01:08.236,572] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_lock: 0x2000f680 took mutex 0x2000ff5c, count: 1, orig prio: 0&lt;br /&gt;[00:01:08.236,602] &amp;lt;dbg&amp;gt; os: z_impl_k_mutex_unlock: mutex 0x2000ff5c lock_count: 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread kick off too slow</title><link>https://devzone.nordicsemi.com/thread/498850?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 12:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64b74b58-09b1-4577-9ec5-e80f1814b8f2</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Lance,&lt;/p&gt;
&lt;p&gt;Thanks for checking with us. I would suggest you to check log to find more clue, choose higher debug level like debug will help you understand which step&amp;nbsp;consume more time.&lt;/p&gt;
&lt;p&gt;In case you did not realize, It is also possible to connect Wi-Fi router with&amp;nbsp;&lt;span&gt;static Wi-Fi network configurations like SSID and Password to speed up your network connect&lt;/span&gt;.&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/wi-fi-fundamentals/lessons/lesson-2-wifi-fundamentals/topic/lesson-2-exercise-2-2/"&gt;Exercise 2 - Nordic Developer Academy (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>