Changing WIFI Mode

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

cross mob
Anonymous
Not applicable

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

0 Likes
5 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

I will discuss with seyhan​ on the applications team and ask him to respond.

0 Likes
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

If you would like to do this with ZentriOS, the command is very straight forward:

wlan.rate.protocol

Abbreviationwl r p 
Accessget/set

Description

WLAN client data rate protocol selection.

Arguments

<11b/11g/auto>

Value

Description
11bRestrict 802.11 PHY data rates to 802.11b
11gRestrict 802.11 PHY data rates to 802.11g
autoAutomatically 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
Anonymous
Not applicable

Incidentally these commands may also be useful to you:

wlan.rate.transmit

Abbreviationwl r x 
Accessget/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:

valueDescription
autoauto rate selection
1, 2, 5.5, 11protocol = 802.11b
6, 9, 12, 18, 24, 36, 48, 54protocol = 802.11g
mcs0, mcs1, mcs2, ... , mcs7protocol = 802.11n 1x1

Default

auto

Get example

> get wl r x 5.5

Set example

> set wlan.rate.transmit mcs3 Set OK

wlan.region

Abbreviationwl g
Accessget/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.

USAEuropeJapanROW (Rest of World)
Wi-Fi channels1-111-131-131- 13
Transmit power1818 - antenna_gain18 - antenna_gain18

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