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,

    I did a try with following configuration but I observer from router that nRF7002DK still get IP from DHCP server.

    CONFIG_NET_DHCPV4=n
    CONFIG_NET_CONFIG_SETTINGS=y
    CONFIG_NET_CONFIG_NEED_IPV4=y
    CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.50.201"
    CONFIG_NET_CONFIG_MY_IPV4_GW="192.168.50.1"
    CONFIG_DNS_SERVER_IP_ADDRESSES=y
    CONFIG_DNS_SERVER1="192.168.50.1"
    I doubt we set static IP in the correct way. Let me try the sta sample tomorrow to do a comparison.
    Best regards,
    Charlie
Reply
  • Hi Lance,

    I did a try with following configuration but I observer from router that nRF7002DK still get IP from DHCP server.

    CONFIG_NET_DHCPV4=n
    CONFIG_NET_CONFIG_SETTINGS=y
    CONFIG_NET_CONFIG_NEED_IPV4=y
    CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.50.201"
    CONFIG_NET_CONFIG_MY_IPV4_GW="192.168.50.1"
    CONFIG_DNS_SERVER_IP_ADDRESSES=y
    CONFIG_DNS_SERVER1="192.168.50.1"
    I doubt we set static IP in the correct way. Let me try the sta sample tomorrow to do a comparison.
    Best regards,
    Charlie
Children
Related