This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WL1837MOD: How to select channel, standard, data rate of wifi device

Part Number: WL1837MOD
Other Parts Discussed in Thread: WL1837

Hi,

In my project I have to select the channel, wireless standards(a, b, g, n), data rate of the WL1837 wifi device. The wifi is up and running and I am able to scan and connect with wireless AP. Also the iw tools shows that automatically some channel, data rate are selected. I would like to know if I can select the standard(a, b, g, n), channel and the data rate of the device and if so, how can do it?

In between, the "iw reg get" command is giving the below output and I am not able to set any other region.

global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)

Regards,

Pratheesh

  • Hi,

    The below iw commands failed which are used to set the channel and bit rate. Could you please tell me, how I can solve these problems.

    # iwconfig wlan0 channel 3
    Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Device or resource busy.

    # iwconfig wlan0 freq 2.422G
    Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Device or resource busy.

    # iw dev wlan0 set channel 3 HT20
    command failed: Device or resource busy (-16)

    Regards,

    Pratheesh

  • Hi Prateesh, 

    Is your experiment intended for RF testing or something else? for RF testing you can use the calibrator tool http://processors.wiki.ti.com/index.php/WL18xx_TX_Testing

    Regards, 

    Sudharshan K N

  • Hi Sudharshan,

    Calibrator tool is now ported to the device. I plan to use this tool to set the channel, data rate and txpower as per the processors.wiki.ti.com/index.php/WL18xx_TX_Testing link.

    I would like to know if the protocol (a, b, g, n) can be set/select using this tool.?

    Regards,

    Pratheesh

  • Hi Prateesh, 

    Is this for AP role or STA role? For AP role you can do so using the following parameter in hostapd.conf

    # Operation mode (a = IEEE 802.11a (5 GHz), b = IEEE 802.11b (2.4 GHz),
    # g = IEEE 802.11g (2.4 GHz), ad = IEEE 802.11ad (60 GHz); a/g options are used
    # with IEEE 802.11n (HT), too, to specify band). For IEEE 802.11ac (VHT), this
    # needs to be set to hw_mode=a. When using ACS (see channel parameter), a
    # special value "any" can be used to indicate that any support band can be used.
    # This special case is currently supported only with drivers with which
    # offloaded ACS is used.
    # Default: IEEE 802.11b
    hw_mode=g

    https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf

    Also you can set the channel number and data rate parameters from this config file

    Regards,
    Sudharshan K N


  • Hi Sudharshan,

    Our device is a client device (STA role). So hostapd.conf is applicable for setting various parameters? 

    Previously you replied that calibrator tool can be used for setting channel, txpower and data rate. Using calibrator tool we can set the channel, txpower and data rate. right?

    Other than this, I have one more query, whether calibrator tool can be used to set the protocol (a, b, g, n) also? Or do we have any other mechanism to set the protocol?

    Regards,

    Pratheesh

  • Hi Pratheesh, 

    Yes you can use the calibrator tool for continuous TX packet transmission at different rates in different standards. If the test is to understand the modulations and the data transmission you can use the calibrator tool. 

    if the test is to understand the 802.11 protocol standards you need to make suitable configuration and use a sniffer tool to capture the packets to analyze them. 

    Regards, 

    Sudharshan K N