WICED SDK: Add Wi-Fi test commands for command console application
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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.
File: command_console_wifi.c // add callback functions.
File: wwd_wlioctl.h // to enlarge the array to get more channel results.
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.