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.

SmartConfig not working with out of box example CC3200

Other Parts Discussed in Thread: CC3200, CC3100

Hi,

Smartconfig provisioning is not working with out of box example. I am using latest service pack 1.0.0.1. Please find the complete details below as I tried almost all the suggestion I could find in this forum related to similar problem reported earlier.

  • Hardware: CC3200 LAUNCHXL Rev 3.2
  • Formated SFlash from Uniflesh
  • Flashed Service Pack 1.0.0.1
  • Programmed out of box files based on out_of_box.ucf
  • When VCC Pin58 Jumper connected. Device is in AP mode and it works fine. I can connect http://mysimplelink.net and see pages
  • When Jumper removed Device is in station mode and I try with Android TI Simplelink Wifi Starter application. Provided my ssid and password and pressed start. After completing, application says no new device found. LED is red. Tried several time by rebooting again and again with no success
  • There is no existing device previously connected in Wifi Starter application. This is first time Wifi starter application is downloaded from Google Play Store. Android version 4.4 (kitkat). Phone hardware: MotoE
  • My Wifi router (AP) is running using 2.4GHz band
  • I can connect to same EP using getting_started_with_wlan_station successfully by providing my ssid/password/wep setting. This means device in station mode can connect to my AP. Only problem is with smartconfig provisioning
  • I debugged out of box application and installed breakpoint sl_WlanEvtHdlr() to see what events are reported to application.
    1. When I start android app with ssid and password sl_WlanEvtHdlr() function hits with event SL_WLAN_SMART_CONFIG_START_EVENT
    2.  After that no further event is reported (sl_WlanEvtHdlr() never hit again). I was expecting that SL_WLAN_CONNECT_EVENT will be reported fir successful connection. Interestingly SL_WLAN_SMART_CONFIG_STOP_EVENT is also not reported. I thought that it will be reported when progress war on android app finishes and it says No new Device Found.


Looking for your expert comments to resolve smartconfig problem.

  • Hi Vipin,

    Try SmartConfig when not in debug mode. And should you not receive a notice that things have connected, have a look at the following

    1) Download the Fing tool on your Android phone. This will help you see whether the device connected, but you just were not notified. You will see a device with a Manufacturer Texas Instruments in the list.

    2) Make sure your device is close enough to the Wifi Router to connect.

    3) Try the provisioning_smartconfig example instead. Make sure you read the PDF documentation for details on use.

    Glenn.

  • Hi Glenn,


    Thanks for your suggestion.

    1) I will try but I do not think that this is the case where device is connected in not visible in android app. The reason is that i am not getting SL_WLAN_CONNECT_EVENT at all on device.

    2) Tried having device and android phone next to router. Same behaviour

    3) Tried provisioning_smartconfig example but it also doesn't work. Stuck in following loop. The real problem is not getting SL_WLAN_CONNECT_EVENT only getting getting event 3 i.e. SL_WLAN_SMART_CONFIG_START_EVENT.

        // Wait for WLAN Event
    	while((!IS_CONNECTED(g_ulStatus)) || (!IS_IP_ACQUIRED(g_ulStatus)))
    	{
    		_SlNonOsMainLoopTask();
    	}

  • When trying these suggestions, it is preferable to not try these suggestions while debug mode. SmartConfig uses a combination of timing and packet size to work, so anything that could effect these factors needs to be taken into consideration. Each example has a ready to use binary in the SDK, so it may be preferable to flash the serial flash with this binary and then test.

    Other things to look into:-

    1) What sort of Wifi Router are you using. Can you try with a different Wifi Router or if you have another smartphone, set it up as an Access Point/Hot Spot and see if you can join it to that. Basically see whether this issue is related to the Wifi Router.

    2) Do you have another smartphone to try, that you can install SmartConfig onto. This is to see whether issues are related to the SmartPhone. Make sure you are using the right version of SmartConfig, there are 2 versions at least on the Apple AppStore, one for the CC3000 and the other for the CC3100/CC3200, not sure if this is the case for Android Play.

    3) What language is your Wifi Router set up to use? Is this the same as your Android device.

    Glenn.

  • Hi Glenn,

    It turned out to be a Wifi Router problem. With another router its working fine. This means that we can not expect smartConfig to work reliably in the field and need to have alternate/backup plan for first time configuration.

    The router smartconfig have problem with is provided by my broadband service provider (Airtel) having millions of subscribers in India and model number is Beetel 450 BXI. I added this info to help people who may face this problem. Please try with another router before suspecting your device or code if your router model is the one mentioned here.

    Thanks again Glenn for your help.

  • Hi Vipin,

    The alternative or backup plan is to use Access Point mode and the internal web server.

    Regarding the Wifi Router, I am sure the CC3200 team will want to look into this to see what is different with this router to other routers.

    Another issue, which I had with a router, which you may wish to check, is to make sure that this is not a settings issue or some other sort of issue. For example, I had one router that had been used for years and had lots and lots of profiles stored on it. I reset the router, which just involves removing these profiles (which are re-added automatically when the device connects again). This then resolved the issue and SmartConfig could be used.

    One other question, was the Wifi Router language Hindi or English?

    Glenn.

  • Hi Glenn,

    WiFi Router language is English.

    My router reboots couple of times per day due to power outage so I don't think that I resetting again will help.

  • Vipin Kumar Gahlaut said:
    My router reboots couple of times per day due to power outage so I don't think that I resetting again will help.

    When I mentioned resetting, I did not mean resetting power but resetting the settings saved on the router. Routers usually have 2 types of internal resets available, the first will usually just delete the stored profiles (i.e. the record and details of the devices that connected to it), the second is a factory reset, which will delete all settings including those used to connect to your ISP (is your WiFi router is also a modem). I was suggesting you look for the first option, to delete all old/stale profiles....and then test again. If that does not work, you may also want to try the second option, but make sure you copy all the details require to connect back to your ISP, if this is a Router and Modem.

    Glenn.