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

Guru**** 671890 points
Other Parts Discussed in Thread: SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1242332/cc3220sf-api-to-set-transceiver-mode-to-get-the-beacons-of-local-routers

器件型号:CC3220SF
主题中讨论的其他器件:SysConfig

您好!

应使用哪个 SimpleLink API 将器件设置为收发器模式并读取本地路由器的信标信息?

提前感谢。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    若要在  收发器模式下启动器件、请使用:

    从任何角色切换到 STA:

     

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

    (或通过 SysConfig 配置)并调用、

    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));

    以读取本地路由器的信标信息。

    请查看 https://dev.ti.com/tirex/explore/node?node=A__AO6Uh7Oii5BBfYbgEZ9fGg__com.ti.SIMPLELINK_CC32XX_SDK__fc2e6sr__LATEST 中的这些函数

    尤其要 看一下网络终端示例,该示例已在 wlan_cmd.c ( https://dev.ti.com/tirex/explore/node?node=A__AE3.OYy11PdaL9VvsDX6Rg__com.ti.SIMPLELINK_CC32XX_SDK__fc2e6sr__LATEST)中实现。

    此致、

    AVI