- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have WICED 3.4.0 SDK through which i am successfully having wifi connection.
I now want to change WIFI modes to A or B or G or N, how can i switch between
these modes through code
- Tags:
- wiced-3.4.0-aws
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi seyhan Is there a way to change the WIFI modes(a/b/g/n) of module through code, Please specify the API used to do it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please look at the console app as well as the wiced APIs
They allow you to set specific modes and data rates
This is documented
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you would like to do this with ZentriOS, the command is very straight forward:
wlan.rate.protocol
Abbreviation | wl r p |
Access | get/set |
Description
WLAN client data rate protocol selection.
Arguments
<11b/11g/auto>
Value | Description |
---|---|
11b | Restrict 802.11 PHY data rates to 802.11b |
11g | Restrict 802.11 PHY data rates to 802.11g |
auto | Automatically select the best rate from all 802.11b/g/n rates |
Default
auto
Get example
> get wl r p auto
Set example
> set wlan.rate.protocol 11b Set OK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Incidentally these commands may also be useful to you:
wlan.rate.transmit
Abbreviation | wl r x |
Access | get/set |
Description
Force the WLAN interface to transmit at a fixed data rate. The transmit rate is taken from valid rates specified by wlan.rate.protocol.
Arguments
<rate>
where:
value | Description |
---|---|
auto | auto rate selection |
1, 2, 5.5, 11 | protocol = 802.11b |
6, 9, 12, 18, 24, 36, 48, 54 | protocol = 802.11g |
mcs0, mcs1, mcs2, ... , mcs7 | protocol = 802.11n 1x1 |
Default
auto
Get example
> get wl r x 5.5
Set example
> set wlan.rate.transmit mcs3 Set OK
wlan.region
Abbreviation | wl g |
Access | get/set |
Description
The WLAN region determines the available Wi-Fi channels and sets a limit on Tx power for the module.
The table below shows the permitted channels and Tx power for the different Regions. Note the maximum transmit power for the AMW004, AMW006 and AMW106 modules is 18dBm.
USA | Europe | Japan | ROW (Rest of World) | |
---|---|---|---|---|
Wi-Fi channels | 1-11 | 1-13 | 1-13 | 1- 13 |
Transmit power | 18 | 18 - antenna_gain | 18 - antenna_gain | 18 |
For the eu
and jp
regions, the variable wlan.tx_power must be set to the maximum power corresponding to the module minus the measured antenna gain.
To set channels used, see wlan.scan.channel_mask.
Arguments
<eu / jp / us / row>
Default
us
Get example
> get wl g us
Set example
> set wl g eu Set OK