CYW943907AEVAL1F Unable to obtain IP address via DHCP

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mvpablo
Level 2
Level 2
10 sign-ins 5 replies posted 5 questions asked

Hi

I'm trying to  connect my dev kit to WiFi using the WICED SDK  wiced_network_up() function and the device gets the error 4

the function gets stuck trying to get an IP address. See stack trace below and configuration.

I know this takes quite some time first time to connect in the network that I'm testing (2.4 GHz). sometimes around 20 to 40 seconds

If I switch to the 5GHz  channel the process is successful right away

Is there a way to configure the process to reattempt to get the IP several times or wait longer time before it throws the error?

thanks

Starting WICED Wiced_006.004.000.0061

Platform CYW943907AEVAL1F initialised

Started ThreadX v5.8

WICED_core Initialized

Initialising NetX_Duo v5.10_sp3

Creating Packet pools

WLAN MAC Address : C4:AC:59:98:AE:36

WLAN Firmware    : wl0: May  2 2019 02:34:15 version 7.15.168.130 (r714231) FWID 01-7fc7cd46

WLAN CLM         : API: 12.2 Data: 9.10.74 Compiler: 1.31.3 ClmImport: 1.36.3 Creation: 2019-05-02 02:29:29

Joining : mynetwork

Failed to join : mynetwork

Joining : mynetwork

Successfully joined : mynetwork

Obtaining IPv4 address via DHCP

L1420 : dhcp_client_init() : DHCP CLIENT hostname = [WICED IP]

Unable to obtain IP address via DHCP

/* This is the default AP the device will connect to (as a client)*/

#define CLIENT_AP_SSID       "mynetwork"

#define CLIENT_AP_PASSPHRASE "mynetworkpass"

#define CLIENT_AP_BSS_TYPE   WICED_BSS_TYPE_INFRASTRUCTURE

#define CLIENT_AP_SECURITY   WICED_SECURITY_WPA2_MIXED_PSK

#define CLIENT_AP_CHANNEL    1

#define CLIENT_AP_BAND       WICED_802_11_BAND_2_4GHZ

0 Likes
1 Solution

I guess it is a problem with my router and how flaky is my 2.4 wifi channel.

thanks for your answer

View solution in original post

0 Likes
5 Replies