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.

SIMPLELINK-CC3220-SDK: Establishing frequency of autoconnect attempts

Part Number: SIMPLELINK-CC3220-SDK

Is there some way that one can specify how often the CC3220 should attempt to connect to its provisioned access point?  I'd like to make sure that it only attempts every, say, 15 minutes or so.  Maybe longer.

I currently have both auto connect and fast connect enabled.  Scanning is disabled.

  • Dear V Velasco -
    please see page 11 here for the description of the modes in which the CC3220 can be operated in: www.ti.com/.../swra502a.pdf
    due to the amount of time you call out, it would appear you are wanting to use an intermittantly connected scenario in which the device is in hibernate in between connections - if you then look in the SDK, where the power measurement example resides - there is a README file you can use to then operate the example and see which of the modes are going to give you the performance you are looking for.
    for example, where the SDK is installed in the default location:
    file:///C:/ti/simplelink_cc32xx_sdk_1_60_00_04/examples/rtos/CC3220SF_LAUNCHXL/demos/power_measurement/README.html
  • Thanks, Josh. What I really want is a way to *attempt* to reconnect, then -- if this attempt fails -- go to sleep and then try again after some specified period of time. The autoconnect feature would be really useful in this regard. I could try to implement something based on the power measurement code that you cited, being able to do this automatically would be tremendously convenient.

    Is there any way to specified how often the autoconnect feature attempts to establish a connection?
  • Hi Velasco,

    The only thing to do for something similar is to set a timer of some seconds and wait for a connection. If it fails, then call sl_Stop and go to sleep for 15 minutes. Then wake up and repeat.

    -Aaron