Thread kick off too slow

Hi,

    I encountered a "Thread kick off too slow" 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 "wifi_cred add" to connect my WIFI. Everything is running well.

B. Because our environment only allow to use static IP, so I do the following changes

  1. Disable DHCP client ( Mark CONFIG_NET_DHCPV4 )
  2. Set CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.0.201"
  3. Set CONFIG_NET_CONFIG_MY_IPV4_GW="192.168.0.1"
  4. Set CONFIG_DNS_SERVER_IP_ADDRESSES=y
  5. Set CONFIG_DNS_SERVER1="192.168.0.1"

Beside the above changes, I modify nothing.  The result is

  1. The samplecan connect to my WIFI and can send MQTT package to the server.
  2. The network_task is trigger after 20 seconds ( in network.c )

My question is, if I use DHCP, the network_task is trigger almost immediately, why the same sample delays almost 20 seconds after I change to static IP?  

I tested nrf/samples/wifi/sta , both DHCP/STATIC IP work well.  I already try almost 3 days, any hit?

Thanks

Lance

Parents
  • Hi Lance,

    Sorry for the delay. After set the static IP outside my router DHCP IP pool. My device can successfully get the static IP with previous setting now.

    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.

    <inf> network: Bringing network interface up and connecting to the network

    Best regards,

    Charlie

Reply
  • Hi Lance,

    Sorry for the delay. After set the static IP outside my router DHCP IP pool. My device can successfully get the static IP with previous setting now.

    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.

    <inf> network: Bringing network interface up and connecting to the network

    Best regards,

    Charlie

Children
Related