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.

Smart config is not working.

Other Parts Discussed in Thread: MSP430FR5739

Hello everyone. I have a cc3000MOD which perfectly connects to any AP by wlan_connect. And smart config is not working! I was tried all patches and FW's from 1.10.2 to 1.14 with their host drivers and have no acceptable result. I use app v1.1 downloaded from ti pages with android 5.0.1. My AP is configured in 11bg mixed mode. Which way I can get to smart config working well?

  • Hi Igor,

    Can you please go through the smartConfig limitations listed out in the wiki here?
    processors.wiki.ti.com/.../CC3000_Smart_Config

    Also, first try with the Open AP and without smartconfig AES encryption. (Define CC3000_UNENCRYPTED_SMART_CONFIG).
    And call the API wlan_smart_config_start(0). Please note, the argument 0 is important. And in the smart phone application do not give any password or encryption key.

    Regards,
    Raghavendra
  • Hi Raghavendra,
    Thank you for your reply.

    Yes, i read this page. And let's go thru it one by one:
    - I attempt to configure only one cc3000 with only one AP;
    - I'm using a smartphone with Android OS;
    - I don't use AES encryption and pass 0 to wlan_smart_config_start;
    - as I wrote above, I don't use encryption. However I don't use WEP encryption on AP (actually I tried it with WPS2 and with no security, and no success);
    - what is means "configurable side"? If it is cc3000, than I don't changed it. Actually I don't changed it at all nowhere;
    - I use galaxy S4 as configuring device. There is no MIMO;
    - as I say in my previous post, I set 11bg mode. There is no 40MHz bandwidth;
    - same reason.

    Do you mean this OpenAP - en.wikipedia.org/.../OpenAP I have one AP which I may upgrade FW to OpenAP or similar. I'll do it soon.

    Now about CC3000_UNENCRYPTED_SMART_CONFIG. I don't get a HCI_EVNT_WLAN_ASYNC_SIMPLE_CONFIG_DONE event. Nevertheless I receives all other events, like HCI_EVNT_WLAN_UNSOL_CONNECT and HCI_EVNT_WLAN_KEEPALIVE. Unfortunately I forget to write it in my first post. As I see from host driver source code, CC3000_UNENCRYPTED_SMART_CONFIG used in wlan_smart_config_process function. But in my case I stuck at the waiting for HCI_EVNT_WLAN_ASYNC_SIMPLE_CONFIG_DONE event. I tried to disable keep alive event and looked at IRQ line in the hope of I just loose the interrupt, but IRQ line was high.

    Anyway I hope for your help. Thank you.
  • Hi Raghavendra,

    Unfortunately I don't have AP which I can upgrade to Open AP like firmwares.
    I tried smartconfig on two different AP's with many different configurations(except WEP security) and have no result. I tried to define CC3000_UNENCRYPTED_SMART_CONFIG too.
    I downgraded firmware and host driver to version 1.9 and "first time config" didn't worked too.

    How it's possible? I spent a lot of time for this. in the search result I see that many people have unanswered questions about smart config.

    Is anybody have any ideas where actually problem is?
  • Hi Igor,

    By Open AP I meant AP without security. Have you tried with a different phone?
    Also, can you please confirm the SDK version and the Service Pack version that you are using?

    Regards,
    Raghavendra

  • Yes, I tried different phone with Android 2.3 (I thought that problem might be here). But it's same result.
    I sniffed wifi network for activity and saw that packets from my phone sends properly (anyhow it looks like).

    Now nvmem_read_sp_version() returns 1.32 and DRIVER_VERSION_NUMBER is 16.

    Regards,
    Igor.
  • Hi Igor,

    Are you running the Basic Wifi Application from the SDK release 1.14? Where did you download the smartConfig .apk from?

    Regards,
    Raghavendra
  • No, I use CC3000MOD placed on custom board.
    By this link:
    downloads.ti.com/.../CC3000_Android_App_Setup_v1_1.exe
  • Hi Igor,

    Can you please use the Basic Wifi Application as it is?

    When the application starts, input "01" and start the smartConfig from your phone.
    The application by default uses un-encrypted setup. Try this with an AP with no security.

    I am using the same setup and I could connect it to different APs.

    Regards,
    Raghavendra

  • Sorry, this direct link is not available now. It was downloaded from this page www.ti.com/.../smartconfig
  • Unfortunately it's impossible to use Basic Wifi Application as it is. I use Atmel ARM M3 MCU without traced UART on on my board. And it's need to do a port to my platform. And If I'll do a port than it will be not a Basic Wifi Application as it is.
  • Hi Igor,

    Can you only port the SmartConfig functionality from the Baic Wifi Application as it is? Instead of user input, make that run from the beginning.
    First confirm that you receive the event 'HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_START' indicating that smartConfig process has started.

    As an alternative, if you have MSP430FR5739(or any other platforms supported in CC3000 SDK), can you please try with that? In this way you will know if this is an issue with the setup or the CC3000.

    Regards,
    Raghavendra
  • Hi Raghavendra,

    There is a source code http://pastebin.com/m4EFzaPW

    I confirm that I receive 'HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_START' event. At the line 181 function wlan_smart_config_start(0) returns 0. Additionaly I debug it deeply and got to the evnt_handler, where got in case HCI_CMND_WLAN_IOCTL_SIMPLE_CONFIG_START.

    I don't have MSP430FR5739 or any similar.

    Is eeprom NVMEM_RM_FILEID content affects a smart config process? I have warnings about parenthesis at lines:
    *file_address++ = (*(fatTablePtr + 1) << 8) | (*fatTablePtr) & (0xf0);
    *file_length++ = (*(fatTablePtr + 3) << 8) | (*(fatTablePtr + 2)) & (0xf0);
  • Problem solved. Total solution with explanation here e2e.ti.com/.../1440911