SNIP SCAN only 1 channel & never finish

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

cross mob
EdMA_4611511
Level 2
Level 2
10 replies posted 5 replies posted Welcome!

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
1 Solution

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
17 Replies