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.

CC3100BOOST: CC3100: Not connecting and no IP acquired when connecting to eduroam

Part Number: CC3100BOOST
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

  • Hi Philipp,

    The getting_started_with_wlan_station project does not demonstrate how to connect to a network with enterprise security. There are a few more steps that you would need to take to connect to that network. Please refer to section 9.1.2 of the CC3100/CC3200 User Guide which describes the networking functions of the device.

    It will be easiest for development to work with a non-enterprise secured network, especially if your project doesn't strictly require connecting to one. 

    Best Regards,

    Ben M

  • Hi Ben,

    Thank you! Using a personal hotspot on my phone with WPA2 did the trick.

    Thanks for giving me pointers on how to connect to the enterprise network as well.

    Best Regards,
    --Philipp