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

Other Parts Discussed in Thread: CC3100, CC3200

I have loaded and running the Simplemail code in the FR evaluation board.  I am attempting to configure the device using the SmartConfig Java app.  I enter all the necessary information and all it does is say that it is working.  I have only one blue led lit on the evaluation board.  It has been sitting there for close to ten minutes now and nothing.

Suggestions?

  • I have now attempted this using a smartPhone app.  I get the same results; press start and all I get is the red stop button with the hurricane

    I have now used two different methods and got the same results.  Must be something that I am not entering correctly.

    Suggestions?

  • I am not sure which smartphone app you are using, IOS or Android. I also got the same problem you describe with the SmartConfig available from the App Store.

    It is like many things that have to do with the CC3000, it is not exactly working to spec. So do not pay attention to the hurricane, if you want to see if your device has joined the network, then have a look on your router and see if you see a new device there. Or you can use a tool like Fing on your IOS device, it will come up as Texas Instruments, so it is easy to see.

    I haven't played with the Simplemail code, but I suspect it works like the rest of the examples. Once you press the button on your board, the LED should flash and then once it has connect it will go solid.

    Glenn.

  • Hi,

    I've just tested the email example code with smartconfig and it works for me.

    Please make sure you are working on the latest release (1.11) and have flash the driver and firmware patches (in that order).

    For the PC Java application, please make sure your PC MTU is set to at least 1500 bytes.
    You can check your MTU by running the following command in CMD:
       netsh interface ipv4 show subinterfaces

    You can change your MTU (if required) bu running the following command in CMD (admin mode):
       netsh interface ipv4 set subinterface "Wireless Network Connection" mtu=1500 store=persistent

    Please note that you need to press “01” in a UART terminal connected to the MSP430 UART port in order to put the CC3000 into smartconfig mode.
    Once C3000 is in Smartconfig mode LED 6 should blink
    Once smartconfig is done LED6 will become constant and some other LEDs will turn on to signal on connection and IP acquiring.
    For more information please refer to http://processors.wiki.ti.com/index.php?title=CC3000_Email_Demo_Application

    Thanks,
    Alon.S 

  • Hi Alon,

    When you say it is working, I am assuming you are referring to the Java App SmartConfig?

    Regarding the SmartConfig App from the App Store, I can assure you that the hurricane does not stops spinning, even though the device has joined the network. I just tested it again that second, and I am on the latest firmware release (.24).

    Not a huge issue, as most of us will code our own version of SmartConfig within our Apps, but it does cause confusion and wasted time when you are first learning about SmartConfig. 

    Glenn.

  •  Hi Glenn,

    First of all thanks for all the input you are providing.
    I've tested the App many times before, mostly on an Android phone, but also the iPhone one.

    The way this feature works is that once CC3000 gets connected it sends mDNS packets to the LAN.
    The smartphone App waits for these packets and stops upon reception of such a packet.

    I can see in the code something that might be a problem which is that the email example only sends 3 mDNS packets. These are UDP packets so they might get lost in numerous ways.
    I suggest trying to increase the number of calls to "mdnsAdvertiser()" API.

    In any case, I'll retest the iPhone App with the Email example code and get back to you.

    Thanks,
    Alon.S

  • Well, I am not an expert in this area.  Increase the number of calls to "mdnsAdvertiser()", I have no idea what that means.  I am using an iPhone to attempt to get a connection.  I see nothing on my PC that indicates there is anything being transmitted.  I am going to need a little more hand holding to work through this.

  • Hi Sab,

    This means that, keep calling the mDnsAdvertiser API more frequently. You can use a timer to invoke it timely.

    After connecting to an AP try something like below snippet:             

    while(1)
    {
    if(SendmDNSAdvertisment == 1)
          {
                ret = mdnsAdvertiser(1,"TestingTesting",14);
                SendmDNSAdvertisment = 0;
          }
          __delay_cycles(10000);
    }

    Here the variable 'SendmDNSAdvertisment' can be set every 5 seconds or 10 seconds.

    Thanks & Regards,

    Raghavendra

  • I have no idea if I am connected to an AP or not.  Is their an app note on how and why to do this?  

  • Hi SAB,

    To confirm you have successfully connected your CC3000 device to an access point, you have a few options.

    1) If you connected to a router, you could view your Attached Devices list to see if you can see a new device added.

    2) You can use an App called Fing, which is available for IOS devices (Android may have a similar app). You will clearly see a new Texas Instruments device added to the network.

    3) Assuming mDNS actually worked and sent packets (this is a big if). You will be able to find the device listed using various mDNS tools available on both smartphones and computers.

    Glenn.

  • OK, I do not have access to the router; it is tucked away in a corner.  I have my laptop and that is about it.

    Suggestions?

  • You would usually access your router using your laptop, by using a browser to access the router's web based administration, but this would depend largely on your router. You would need to refer to the user manual for your router, as each is quite different in this respect.

    Glenn.

  • That is helpful.  I will look for the user manual.

    steve

  • I expect the manual to be most helpful, so long as it's available and has the content you seek.

    Glenn.

  • The router does not see the device.  Suggestions?

  • You now have your answer. The CC3000 has not connected to your wifi router. 

  • Great...why not?  I downloaded the patch as instructed and am using the basic email application supplied by TI.  I am sure there is something that I am not doing correctly, but right now I have absolutely no clues as to what that is.  On the evaluation board I have the green LED on (PWR) and LED 1.  The rest are off.

  • Hi Sab,

    In order to just check if the CC3000 has managed to connect to the AP, just place a breakpoint inside

    if (lEventType == HCI_EVNT_WLAN_UNSOL_DHCP) 
    {

     }

    This would make sure that it has connected and AP has assigned an IP address.

     And just to make sure that we have done everything right from CC3000 perspective, can you test only SmartConfig using the Basic Wifi application?

    Also, sometimes it can be a case where the laptop and the smartphone that you have used is a MIMO device. And CC3000 smartConfig does not work with MIMO devices.

    Thanks & Regards,

    Raghavendra

  • Hello Alon,

      Please elaborate on what you mean by: " . .  Please make sure you are working on the latest release (1.11) and have flash the driver and firmware patches (in that order).   ".

    I have a customer who cannot get SmartConfig to work but only 1 out of 10 tries.  He is using the "http_server" demo as is, no changes.  He says this: I don’t know of any other way to configure the SSID/password into the board. I tried using the board in AP mode and setting the parameters there, but once I reset, everything gets erased.  

    Thank you!

    ~Leonard 

  • Hi Leonard,

    CC3000 doesn't support AP mode.

    Is your customer working with CC3000 or CC3100?

    Thanks,
    Alon

  • This is a CC3200 application - apologies I did not specify that in the beginning.  We also referenced the previous instructions to  update the drivers and SW, plus referred engineer to the WiKi.

    ~Leonard