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.

CC3220SF: API to set transceiver mode to get the beacons of local routers

Part Number: CC3220SF
Other Parts Discussed in Thread: SYSCONFIG

Hi!,

Which simplelink API should be used to set the device in transceiver mode and read the beacon info of the local routers ?

Thanks in advance.

  • Hi,

    to start the device in  transceiver mode use:

    Switch from any role to STA:

     

    sl_WlanSetMode(ROLE_STA);
    sl_Stop(0);
    sl_Start(NULL,NULL,NULL);

    (or configuring via sysconfig) and calling,

    SlWlanNetworkEntry_t netEntries[10];
    _u8 i;
    _i16 resultsCount = sl_WlanGetNetworkList(0,10,&netEntries[0]);
    for(i=0; i< resultsCount; i++)
    {
        printf("%d. ", i + 1);
        printf("SSID: %.32s        ", Entries[i].Ssid);
        printf("BSSID: %x:%x:%x:%x:%x:%x    ", Entries[i].Bssid[0], Entries[i].Bssid[1], Entries[i].Bssid[2], Entries[i].Bssid[3], Entries[i].Bssid[4], Entries[i].Bssid[5]);
        printf("Channel: %d    ", Entries[i].Channel);
        printf("RSSI: %d    ", Entries[i].Rssi);
        printf("Security type: %d    ", SL_WLAN_SCAN_RESULT_SEC_TYPE_BITMAP(Entries[i].SecurityInfo));
        printf("Group Cipher: %d    ", SL_WLAN_SCAN_RESULT_GROUP_CIPHER(Entries[i].SecurityInfo));
        printf("Unicast Cipher bitmap: %d    ", SL_WLAN_SCAN_RESULT_UNICAST_CIPHER_BITMAP(Entries[i].SecurityInfo));
        printf("Key Mgmt suites bitmap: %d    ", SL_WLAN_SCAN_RESULT_KEY_MGMT_SUITES_BITMAP(Entries[i].SecurityInfo));
        printf("Hidden SSID: %d    ", SL_WLAN_SCAN_RESULT_HIDDEN_SSID(Entries[i].SecurityInfo));
        printf("PMF Enable: %d    ", SL_WLAN_SCAN_RESULT_PMF_ENABLE(Entries[i].SecurityInfo));
        printf("PMF Required: %d\r\n", SL_WLAN_SCAN_RESULT_PMF_REQUIRED(Entries[i].SecurityInfo));

    in order to read the beacon info of the local routers.

    take a look at these functions in: https://dev.ti.com/tirex/explore/node?node=A__AO6Uh7Oii5BBfYbgEZ9fGg__com.ti.SIMPLELINK_CC32XX_SDK__fc2e6sr__LATEST

    and especially take a look at the network terminal example it has this already implemented in the wlan_cmd.c ( https://dev.ti.com/tirex/explore/node?node=A__AE3.OYy11PdaL9VvsDX6Rg__com.ti.SIMPLELINK_CC32XX_SDK__fc2e6sr__LATEST)

    best regards,

    Avi