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.

Android Smart Config Problem

Other Parts Discussed in Thread: MSP430F5529

I'm attempting to use the andriod smart config application to configure my CC3000.

I put the CC3000 into smart config mode.

When I open the the smat config app, I see my SSID of my access point.  I type in my password, enter the correct device name and click start.

In the code running on my processor,  I see it step through all of the code in StartSmartConfig function.  All of the function calls seem to return correctly. 

After the function StartSmartConfig has completed and returns I start seeing the unsolicited even HCI_EVNT_WLAN_UNSOL_DISCONNECT start happening ever couple of seconds.  This persists even if I power off my device, power it back on and open the CC3000 connection again.

It seems I'm getting the settings to the CC3000, but the setttings are not correct?

I've verified the settings and am at a bit of a loss.

Is there a way to dump the settings back to my host processor so I can verify they were received correctly?

One point of confusion for me is that on the Android Smart Config App, when I select  the AES key, the start button goes inactive.  So I've assumed I can't use the AES key.  However in my code if I define CC3000_UNENCRYPTED_SMART_CONFIG I get linker errors.  So it seems like there is a disconnect here.  Is this causing the problem I'm seeing?  If so how do I fix it?

  • Hi Troy,

    Which demo application are you using?

    We have two demo application for the Smart Config:

    1. Basic WiFi Application which enable AES encryption by default.

    2. Sensor Application which disable AES encryption by default.

     

    I think the reason the Smart Config does not finish successfully is because the application you are using expect to receive AES encrypted data and the SmartConfig Android App sends unencrypted data.

    You can select the AES checkbox and enter a key to enable the Start button. (Default key in our demo application is smartconfigAES16 - refer to basic_wifi_application.c)

    Other option is to use the Sensor App which has AES encryption disabled (then leave the Key checkbox unchecked), or to solve the linking issue (there is no obvious reason it should not work).

    Yael

     

  • I added the key 'smartconfigAES16' to the android app and that did it.

    Thanks!

  • I'm having a similar issue using the basic WiFi application with the CC3000 and the MSP430F5529.  However, I have the AES key setup in the smartconfig app.  I'm at a bit of a loss here.  I have gotten the device to connect using these settings before but its very rare.