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.

BOOSTXL-CC3135: Configuring Band frequency

Part Number: BOOSTXL-CC3135

Hi Team,

Can you please help with the inquiry below?

I want to be able to dictate which band to use (either 2.4Ghz or 5Ghz) by coding it into Code Composer Studio and not using the network terminal. 

Also, is there an example in the SDK that I can refer to?

Thanks and regards,

Marvin

  • you can set the channels to use in scan (which will impact the connection as well) using the sl_WlanSet. Check the following options:

        - SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS:
        \code
            SlWlanScanParamCommand_t ScanParamConfig;
            _u16 Option = SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS;
            _u16 OptionLen = sizeof(ScanParamConfig);
            // 2.4G channels bits order:  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 
            
            ScanParamConfig.RssiThreshold = -70;
            ScanParamConfig.ChannelsMask = 0x1FFF;
            sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, &Option, &OptionLen, (_u8 *)&ScanParamConfig);
        \endcode
        <br>
    
            - SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS_5G:
        \code
            SlWlanScanParam5GCommand_t ScanParamConfig5G;
            _u16 Option = SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS_5G;
            _u16 OptionLen = sizeof(SlWlanScanParam5GCommand_t);
            // 5.0G channels bits order: 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132,
            //                          136, 140, 144, 149, 153, 157, 161, 165, 169, 184, 188, 192, 196 
            
            ScanParamConfig5G.ChannelsMask = 0x0000000F; // Select ChannelsMask for channels 36, 40, 44, 48 
            ScanParamConfig5G.RssiThreshold = -70;
            sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, Option, OptionLen, (_u8 *)&ScanParamConfig5G);
        \endcode
        <br>
    

    The 5G Band can be enabled/disabled using the following command (but this can't be done for 2.4):

    	- SL_WLAN_GENERAL_PARAM_OPT_ENABLE_5G
    	\code
    	    _u8  Enabled5GStatus = 1;
    	    _u16 Option = SL_WLAN_GENERAL_PARAM_OPT_ENABLE_5G;
    	    _u16 OptionLen = sizeof(_u8);
    
    	    ret = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, Option, OptionLen, (_u8 *)&Enabled5GStatus);
    	\endcode
    	<br>

  • Hi Kobi,

    Where can I find this code? is it available in  the SDK?

  • yes, in the Simplelink driver (under <SDK-ROOT>/source/ti/drivers/net/wifi) in "wlan.h".

    you can find more in the NWP Programmer's Guide.