5 Replies Latest reply on Apr 15, 2016 2:41 PM by userc_6124

    Changing WIFI Mode

      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

        • 1. Re: Changing WIFI Mode
          MichaelF_56

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

          • 2. Re: Changing WIFI Mode

            Hi SeyhanA_31 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

            • 3. Re: Changing WIFI Mode

              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

              • 4. Re: Changing WIFI Mode

                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
                1 of 1 people found this helpful
                • 5. Re: Changing WIFI Mode

                  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
                  1 of 1 people found this helpful