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

cross mob

WICED SDK: Add Wi-Fi test commands for command console application

lock attach
Attachments are accessible only for community members.

WICED SDK: Add Wi-Fi test commands for command console application

Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

How to add Wi-Fi test commands for command console application?

 

We already have a lot of commands listed in the command_console_wifi.h, however we need more to check the information from firmware when doing a WI-FI test.

You can add two commands when doing debug or a basic RF WI-FI test is needed:

- Disable roam function on RF tests.

- Get the supported lists for different country code and revisions.

Below you can see the modifications, and the code:

File: command_console_wifi.h // commands added in the lists.

pastedImage_1.png

File:  command_console_wifi.c  // add callback functions.

搜狗截图20180530155422.png

File: wwd_wlioctl.h  //  to enlarge the array to get more channel results.

pastedImage_3.png

Test results from test.console

 

Test.console-BCM943340WCD1 download run: 

> set_country US/0

wwd_sdpcm_send_iovar country results are   0

> get_channels

wwd_wifi_get_channels : 35

1  2  3 4  5  6  7  8 9  10  11 36  40  44 48  52  56 60  64  100 104  108  112 116  120  124 128  132  136 140  149  153 157  161  165 165

> set_country CN/0

wwd_sdpcm_send_iovar country results are   0

> get_channels

wwd_wifi_get_channels : 18

1  2  3 4  5  6  7  8 9  10  11 12  13  149 153  157  161 165  >

> roam_disable 1

  roam_disable = 1

 

Note: in the attachments you can find a zip for a command console.

Attachments
1640 Views