cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

New Contributor II

Hi,

I am porting scan snip of Wiced SDK 6.4 to IAR.

It seems to work fine but :

  1/ It display only channel 1 networks.

  2/ The scan never end. (I never received WICED_SCAN_COMPLETED_SUCCESSFULLY or WICED_SCAN_ABORTED)

  3/ If I manually set a channel with "wwd_wifi_set_channel( WWD_STA_INTERFACE, 6 )" I only see network present on channel 6.

When I read code, it seems that the wifi module should automatically scan all channels and return WICED_SCAN_COMPLETED_SUCCESSFULLY without intervention of the SDK during the scan. Does it correct ?

Any idea of which parameters/setting can set the WIFI module to scan only 1 channel and never end ? (I probably missed a #define while transferring code to IAR)

Hardware :

   Custom board with a BL6212 (43438A1).

IDE / Toolchain :

     IAR

Log :

Wifi task started

Starting WICED Unknown

Platform Unknown initialised

Started FreeRTOS Unknown

WICED_core Initialized

Initialising LwIP Unknown

WWD SDIO interface initializing with US/0

WLAN MAC Address : 60:23:A4:04:36:75

WLAN Firmware    : wl0: May  2 2019 02:39:20 version 7.45.98.83 (r714225 CY) FWID 01-476cc09d

WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-05-02 02:29:53

Init took ~375 ms

Waiting for scan results...

  # Type  BSSID              RSSI Rate Chan Security               SSID                            CCode    Flag

------------------------------------------------------------------------------------------------------------------

  0 Infra E0:A1:D7:3E:7B:44 -54 144.4    1   WPA AES TKIP PSK     SFR_7B40                                 BEACON       

  1 Infra A2:A1:D7:3E:7B:45 -54 144.4    1   Open                 SFR WiFi FON                             BEACON       

  2 Infra A2:A1:D7:3E:7B:47 -54 144.4    1   AES Enterprise       SFR WiFi Mobile                          BEACON 

Log with wwd_wifi_set_channel( WWD_STA_INTERFACE, 6 ) before the scan start :

Wifi task started

Starting WICED Unknown

Platform Unknown initialised

Started FreeRTOS Unknown

WICED_core Initialized

Initialising LwIP Unknown

WWD SDIO interface initializing with US/0

WLAN MAC Address : 60:23:A4:04:36:75

WLAN Firmware    : wl0: May  2 2019 02:39:20 version 7.45.98.83 (r714225 CY) FWID 01-476cc09d

WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-05-02 02:29:53

Init took ~327 ms

Waiting for scan results...

  # Type  BSSID              RSSI Rate Chan Security               SSID                            CCode    Flag

------------------------------------------------------------------------------------------------------------------

  0 Infra 7C:26:64:9F:9D:40 -44 144.4    6   WPA2 AES PSK         Mer                                      PROBE  

0 Likes
Reply
1 Solution
New Contributor II

OK, it works !!!!

The issue was :

- LPO pin should be wired to a 32Khz source (PA8)

- DON'T comment #define WICED_USE_WIFI_32K_CLOCK_MCO (Event if the comment say you can...)

View solution in original post

0 Likes
Reply
17 Replies
Moderator
Moderator

hello:

    Would you please use your phone to create more hotspots by the side of the phone? 

We can have a judge it is caused by signal strength,  I mean the scan only can get an AP with strong signal.

Obviously, it is not a normal behavior , but we can have a judge.

0 Likes
Reply
New Contributor II

Thanks for your reply.

It doesn't seems to be due to signal strength, because :

  • SSID: "Mer" is at 3 meters from the board and he is displayed only if I set channel to 6 before the scan 
    wwd_wifi_set_channel( WWD_STA_INTERFACE, 6 )
    Note : In the log above, SSID : "Mer" have an RSSI of -44.


  • If I manually set channel one by one, I can see all WIFI networks.
0 Likes
Reply
Moderator
Moderator

Actually, It is hard to debug the issue, I think you can add more logs into scan_events handler to see if your process was blocked with some reason like semaphore .  We always have many scan events like below:

43841: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOCI

43864: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

43875: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

43887: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

43899: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-81 ssid=ZQXX-GUEST bssid=0a:xx:xx:xx:xx:xx

  54:12:34:56:55 OFF 144.4    6   Open                 ZQXX-GUEST                       CN      BEACON

New Contributor II

Thanks for your reply.

Below fresh log.

(For info : I can connect to a Wifi network and make https request, only scan doesn't works).

  

Detailed Log :

Wifi task started

Starting WICED Unknown

Platform Unknown initialised

Started FreeRTOS Unknown

WICED_core Initialized

Initialising LwIP Unknown

Minus key is pressed

DHCP CLIENT hostname Wellcome

WWD SDIO interface initializing with US/0

--> WARN:  wwd_sdpcm_send_ioctl L#1030 wwd_sdpcm_send_ioctl() FAILED, retval=2023

WLAN MAC Address : 60:23:A4:04:36:75

WLAN Firmware    : wl0: May  2 2019 02:39:20 version 7.45.98.83 (r714225 CY) FWID 01-476cc09d

WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-05-02 02:29:53

Init took ~1018 ms

  > Write data : 0ms

Waiting for scan results...

  # Type  BSSID              RSSI Rate Chan Security               SSID                            CCode    Flag

------------------------------------------------------------------------------------------------------------------

1166: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1175: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

  0 Infra 1178: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

E0:A1:D7:3E:7B:44 1180: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

OFF 144.4    1   WPA AES TKIP PSK     SFR_7B40                                 BEACON       

  1 Infra A2:A1:D7:3E:7B:45 -52 144.4    1   Open                 SFR WiFi FON                             BEACON       

  2 Infra A2:A1:D7:3E:7B:47 -53 144.4    1   AES Enterprise       SFR WiFi Mobile                          BEACON       

1200: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1233: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1280: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

1283: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

1286: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

1368: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1385: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

1388: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

1391: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

Minus key is pressed

1402: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1435: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1469: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1491: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

1493: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

1496: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

1503: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1570: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1596: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

1599: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

1602: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

1604: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1637: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1671: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1701: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

1704: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-50 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

1707: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-50 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

1738: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1772: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1806: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1808: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

1811: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

1813: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

1873: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1912: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

1915: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

1917: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

1941: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

1975: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2008: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2017: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2020: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2023: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2042: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2109: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2122: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2125: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2128: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2143: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2228: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2232: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2234: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2244: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2278: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2311: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2333: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2335: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2338: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2345: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2379: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Minus key is pressed

2438: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2441: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2444: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2446: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2480: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2543: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2546: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2549: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2581: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2614: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2648: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2650: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2652: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2655: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2715: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2749: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2754: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2756: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2759: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-51 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2783: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2817: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2850: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2859: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2862: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2865: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2884: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2918: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2951: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

2964: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

2967: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

2970: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

2985: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

3019: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

3052: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

3070: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-52 ssid=SFR_7B40 bssid=e0:a1:d7:3e:7b:44

3072: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi FON bssid=a2:a1:d7:3e:7b:45

3075: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

Scan result: channel=0 signal=-53 ssid=SFR WiFi Mobile bssid=a2:a1:d7:3e:7b:47

3120: Event (interface, type, status, reason): WWD_STA_INTERFACE WLC_E_ESCAN_RESULT WLC_E_STATUS_PARTIAL WLC_E_REASON_INITIAL_ASSOC

0 Likes
Reply
New Contributor II

Any idea to found this issue ?

0 Likes
Reply
Moderator
Moderator

> WARN:  wwd_sdpcm_send_ioctl L#1030 wwd_sdpcm_send_ioctl() FAILED, retval=2023

I can't find failed return in my log,  which ioctl command is from this failure ?

New Contributor II

Thanks for your reply ZhengbaoZ_96

For : "WARN:  wwd_sdpcm_send_ioctl L#1030 wwd_sdpcm_send_ioctl() FAILED, retval=2023"

  • I had debug info in wwd_sdpcm_send_ioctl() when the function doesn't return WWD_SUCCESS.
  • retval=2023 mean UNSUPPORTED
  • I got it for IOVAR_STR_RAND :

    /* get a seed, using hardware on wlan module (if supported); otherwise, seed comes due to difference in cycles for wiced_init completion */

    result = ( wiced_result_t )wwd_wifi_get_iovar_value( IOVAR_STR_RAND, &wlan_rand, WWD_STA_INTERFACE );

    /* Not always a supported operation */

    if ( result == WICED_SUCCESS )

    {

        random_seed_needed = WICED_FALSE;

        wiced_crypto_add_entropy( &wlan_rand, sizeof( wlan_rand ) );

    }

0 Likes
Reply
New Contributor II

Now, I scan all channels using the code below :

    for(int i=1;i<14;i++) {

        wwd_wifi_set_channel( WWD_STA_INTERFACE, i );

        wiced_wifi_scan_networks(scan_result_handler, &scan_data );

             osDelay(50);

        wwd_wifi_abort_scan( );   

    }

After checking the code it seems that WIFI module should automatically scan all channel and return an event to signal the "end of scan". (But it doesn't on my board)
Can this issue be specific to the réf BL6212 ?

0 Likes
Reply
Moderator
Moderator

Helllo:

I do not think the issue is related with specific board.

0 Likes
Reply
New Contributor II

Can it be due to NVRAM image ?

(When I check the MAC address, it is not the one in wifi_nvram_image array)

0 Likes
Reply
Moderator
Moderator

I think you can set it to a reasonable Unicast address for a test.

0 Likes
Reply
New Contributor II

Note : I have commented :

//#define WICED_USE_WIFI_32K_CLOCK_MCO

Does the 32Khz input is used during scan ?

0 Likes
Reply
Moderator
Moderator

Hello:

  LPO clock is needed always,  I suggest not to delete the default define which is not in application layer makefile. 

0 Likes
Reply
New Contributor II

OK, it works !!!!

The issue was :

- LPO pin should be wired to a 32Khz source (PA8)

- DON'T comment #define WICED_USE_WIFI_32K_CLOCK_MCO (Event if the comment say you can...)

View solution in original post

0 Likes
Reply
Moderator
Moderator

that is great, thanks for the share.

0 Likes
Reply
New Contributor II

Thanks for your help

0 Likes
Reply
Moderator
Moderator

also I test the "scan" command from command_console_wifi .

It has a semphore pending there until the scanning of all the channel are finished.

test.console for the compile.

in command_console_wifi.c

if ( ( result = wiced_wifi_scan_networks_ex(scan_result_handler, NULL, scan_type, bss_type,
                     optional_ssid, optional_mac, channel_list, optional_extended_params, interface) ) == WICED_SUCCESS )
{
    /* Wait until scan is complete */
    wiced_rtos_get_semaphore(&scan_semaphore, WICED_WAIT_FOREVER);
}

static wiced_result_t scan_result_handler( wiced_scan_handler_result_t* malloced_scan_result )

{

            WPRINT_APP_INFO( ( "**********scan_result_handler************ " ) );

    if ( malloced_scan_result != NULL )

    {

        malloc_transfer_to_curr_thread( malloced_scan_result );

        if ( malloced_scan_result->status == WICED_SCAN_INCOMPLETE )

        {

            wiced_scan_result_t* record = &malloced_scan_result->ap_details;

            WPRINT_APP_INFO( ( "#########scan_result_handler%3d ", record_count ) );

You can have a try if your code can do the same .

> scan

Waiting for scan results...

  # Type  BSSID              RSSI Rate Chan Security               SSID                            CCode    Flag

------------------------------------------------------------------------------------------------------------------

**********scan_result_handler************ #########scan_result_handler  0

Infra A8:E5:44:26:CA:00 -76 144.4    1   WPA2 AES PSK         HUAWEI-Cow012          CN      PROBE        

**********scan_result_handler************ #########scan_result_handler  1

Infra 32:32:17:23:32:23 -43 216.7    1   WPA2 AES PSK         tp2g                      PROBE        

**********scan_result_handler************ #########scan_result_handler  2

Infra 0E:23:23:32:32:17 -91 216.7    1   Open                 ZQXX-STU       CN      PROBE        

**********scan_result_handler************ #########scan_result_handler  3

Infra 06:74:43:23:23:17 -90 216.7    1   Open                 ZQXX                             CN      PROBE        

**********scan_result_handler************ #########scan_result_handler  4

Infra 0A:23:9C:23:8E:17 -89 216.7    1   Open                 ZQXX-GUEST                       CN      PROBE        

**********scan_result_handler************ #########scan_result_handler  5

Infra 25:E5:44:23:CA:05 -81 144.4    1   WPA2 AES PSK                                          CN      BEACON       

**********scan_result_handler************ #########scan_result_handler  6

Infra 12:22:44:26:CA:01 -78 144.4    1   WPA2 AES PSK                                          CN      BEACON       

**********scan_result_handler************ #########scan_result_handler  7

Infra 06:74:ee:F1:EE:22 OFF 144.4    6   Open                 ZQXX                             CN      BEACON       

**********scan_result_handler************ #########scan_result_handler  8

Infra D4:11:22:36:44:37 OFF 144.4    7   WPA2 AES TKIP PSK    ChinaNet-GhJZ             CN      PROBE        

**********scan_result_handler************ #########scan_result_handler  9

Infra B4:D0:22:0D:11:22 OFF 144.4    9   WPA2 AES TKIP PSK    CMCC-LuJG            CN      PROBE      

**********scan_result_handler************

End of scan result