Other Parts Discussed in Thread: EK-TM4C1294XL, , UNIFLASH, CC3100
Dear TI community,
I am using the CC3100BOOST Launchpad together with the EK-TM4C1294XL Connected LaunchPad.
I did the out-of-the-box example for the former, and the Ethernet example for the latter, so I am assuming that none of the devices is broken.
Furthermore, I updated the service pack on the CC3100 to the latest version using Uniflash.
Then I followed this tutorial video: "www.youtube.com/watch
Instead of the MSP4305529, I used the EK-TM4C129XL Connected LaunchPad instead. There exists a "getting_started_with_wlan_station" example for this board as well.
In oder to make it run, I changed the following:
- Corrected the TIVAWARE_ROOT Path variable (that was wrong, probably a bug)
- In sl_common.h, I changed the SSID to "eduroam" (our university's network), the SEC_TYPE to SL_SEC_TYPE_WPA_ENT, I hash-defined USER to "my-name@my-university.de" (of course I used my actual credenditals), and set PASSKEY to my password
#define SSID_NAME "eduroam" /* Access point name to connect to. */ #define SEC_TYPE SL_SEC_TYPE_WPA_ENT /* Security type of the Access piont */ #define USER "my-name@my-university.de" (I used my actual username here) #define USER_LEN pal_Strlen(USER) #define PASSKEY "password" (I used my actual pw here) #define PASSKEY_LEN pal_Strlen(PASSKEY) /* Password length in case of secure AP */
- In main.c, in the function static _i32 establishConnectionWithAP(), I added the following code
SlSecParamsExt_t secParamsExt = {0}; secParamsExt.User = USER; secParamsExt.UserLen = pal_Strlen(USER); secParamsExt.EapMethod = SL_ENT_EAP_METHOD_PEAP0_MSCHAPv2; - I changed the call to sl_WlanConnect accordingly
//retVal = sl_WlanConnect((_i8 *)SSID_NAME, pal_Strlen(SSID_NAME), 0, &secParams, 0); retVal = sl_WlanConnect((_i8 *)SSID_NAME, pal_Strlen(SSID_NAME), 0, &secParams, &secParamsExt);
Then, I received the following output at the console
Getting started with station application - Version 1.2.0
**********************************************************************
Device is configured in default state
Device started as STATION
But then, it gets stuck in the line
/* Wait */
while((!IS_CONNECTED(g_Status)) || (!IS_IP_ACQUIRED(g_Status))) { _SlNonOsMainLoopTask(); }
and loops forever (it actually stops with an error after several minutes), with g_Status having the value 0.
My eduroam credentials are correct, I tested them with both a laptop and a phone. The return value retVal of the call to sl_WlanConnect returns 0.
As I am not very familiar with Wi-Fi technology, but want to add connectivity to my project (I guess that's what the CC3100 is intended for :) ), I would greatly appreciate any pointers on where to look for errors next.
Thanks,
--Philipp