- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
ispn:38946:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I guess it is a problem with my router and how flaky is my 2.4 wifi channel.
thanks for your answer