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.

Problems when adding profiles

I'm attempting to set profiles on my device (4 of them)

I successfully delete the profiles

My connection policy is (false, false, true)

After adding the third one of them, I'm getting an unsolicited disconnect message.  I'm getting this almost concurrently with my request to receive the response to the previous add profile command.

The behaviour I'm seeing is that I never actually manage to get a response to the command I sent.

I've now restructured my code so that CS is not pulled low to indicate a transmit at a higher priority than the receive interrupt.  As a result this can't be the cause of what's going on.

I'm sending an Add Profile message, and in response I'm getting an 0x8002 event, instead of the correct response of 0x0005.  In addition, my code is happy to receive responses out of order, but the 0x0005 never arrives.  This looks like a firmware bug.

If I turn off one of the Wifi AP's that I'm adding, I don't get this problem.

Also, should it really take 7 seconds to add a profile?

  • Hi Anthony,

    Are you calling the device reset between adding profiles? When you do this, the the device will try to make a connection to the previously added profile. And this process would be even faster when the AP is set with no security. And you may end up receiving ASYNC events from the CC3000.

    Also, can you please try by clearing all the policies before you add the profiles?

    1. Clear all the profiles wlan_ioctl_set_connection_policy(DISABLE, DISABLE, DISABLE);

    2. Delete all the profiles wlan_ioctl_del_profile(255);

    3. Reset the device.

    4. Add profiles one by one by making calls to wlan_add_profile.

    5. Set connection policy to connect using profile wlan_ioctl_set_connection_policy(DISABLE, DISABLE, ENABLE);

    6. Reset the device to connect to any of the above profiles based on priority.

    And it does not really take 7 seconds to add a profile.

    Thanks & Regards,
    Raghavendra

  • I was hoping to avoid having to reset the device twice when changing profiles.

    Is there any documentation that says it should be done the way you state above?

    Also, why doesn't the device acknowledge the command?  Is that expected?

    Currently, I've set the policy(DISABLE, DISABLE, ENABLE)

    And it is taking 7 seconds between issuing the command and getting the response for adding a profile.  Maybe it's quicker when everything is off.  I'll test it tomorrow, and let you know the results.

  • Hi Anthony,

    There is no documentation explaining the above scenario. This is just to avoid any unforeseen situations.

    Ideally, CC3000 should acknowledge these commands. After you send the add profile command, the CC3000 should send a command complete event with a return status showing the position where the profile is added.

    Thanks & Regards,
    Raghavendra

  • Ideally?  Sounds like a bug to me...

    I've arranged to see another chip supplier on Friday, as these don't look like they're ready for prime time.

  • I've now updated my code to disable connection while adding profiles, and I no longer see the faulty behaviour.

    However, it is still taking 7 seconds for each add profile command to be processed.