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.

[参考译文] CC3200-LAUNCHXL:CCS/CC3200-LAUNCHXL:simplelink wifi cc3200 launchpad wlan_station demo SSID 安全密钥长度问题

Guru**** 2553450 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/566799/cc3200-launchxl-ccs-cc3200-launchxl-simplelink-wifi-cc3200-launchpad-wlan_station-demo-ssid-security-key-length-issue

器件型号:CC3200-LAUNCHXL

目前、我尝试 使用 cc3200 Launchpad wlan_station 演示、发现 security_key 长度不能超过10个字符。 (在 common.h 文件定义中 ,如下所示)

#define SSID_NAME "AndroidAP"/* AP SSID */
#define SECURITY_TYPE SL_SEC_TYPE_WPA/*安全类型(开放或 WEP 或 WPA/
#define SECURITY_KEY "work1122" /*安全 AP 的密码不应超过10个字符?*/
#define SSID_LEN_MAX 32
#define BSSID_LEN_MAX 6.

调试演示时,       当您准备好调用 sl_WlanConnect() 时,您会在函数 WlanConnect()(在 main.c 文件中)中发现 secParams 参数问题。  secParams 调整字符串。  这是否由 CCS 编译器或  类型 SlSecParams_t 定义引起。  

静态长 WlanConnect()

SlSecParams_t secParams ={0};
long lRetVal = 0;

secParams.Key =(signed char*) security_key;
secParams.KeyLen = strlen (security_key);
secParams.Type = SECURITY_TYPE;

lRetVal = sl_WlanConnect ((signed char*) ssn_name、strlen (ssn_name)、0、secParams、0);
ASSERT_ON_ERROR (lRetVal);

//等待 WLAN 事件
while ((!is_connected (g_ulStatus)))||(!is_ip_acquired (g_ulStatus)))  
{  
//切换 LED 以指示连接进度
GPIO_IF_LedOff (MCU_IP_ALLOC_IND);
MAP_UtilsDelay (800000);
GPIO_IF_LedOn (MCU_IP_ALLOC_IND);
MAP_UtilsDelay (800000);

返回成功;

此问题是否有任何解决方法。  

此致。