Hi,
I have one question about smartconfig.
Just like cc3000, if we have done smartconfig once, and then it can get connection after reboot.
I'd like to know how to get connection automatically after reboot on cc3100?
thanks
Gavin
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.
Hi,
I have one question about smartconfig.
Just like cc3000, if we have done smartconfig once, and then it can get connection after reboot.
I'd like to know how to get connection automatically after reboot on cc3100?
thanks
Gavin
Gavin, yes, Once the smartconfig is done, the application should store the profile. The application at the next reboot should check for available stored profile and connect to it.
Please see the wlan APIs here: http://software-dl.ti.com/ecs/cc31xx/APIs/public/cc31xx_simplelink/latest/html/index.html
Cheers,
Gagan
Gavin,
Also, look in the API documentation for the function sl_WlanPolicySet();
This will let you control how the device tries to connect to already stored profiles upon boot.
-Aaron
Aaron
Many thanks for your posts. I am struggling to understand how to read the security parameters obtained by SmartConfig in order to set these using sl_WlanPolicySet(); I can see that the slSmartConfigStartAsyncResponse_t returned by SmartConfig contains the SSID and, I think, the key but where can I find the security type (e.g. WEP or WPA).
Any help would be much appreciated
David
Hi David,
Security Params are not available to the application using callback functions.
You need not read these param and set it using sl_ APIs. Once smartconfig is successful, it will automatically connect to that AP. You need even need to call sl_WlanConnect. If it doesn't connect automatically, then probably the default policy is not set. You can set the same by calling. You can as well read it to verify the same.
lRetVal = sl_WlanPolicySet(SL_POLICY_CONNECTION, SL_CONNECTION_POLICY(1, 0, 0, 0, 1), NULL, 0);
Regards,
Kaushal
Gagan,
The CC3100 can store 7 profile about the connect record info, right or wrong?
Kaushal
Many thanks. It is working now. Does smartconfig store a profile once it has established a connection or does it keep the information that allows the device to reconnect after a reboot separately?
Regards
David
Yes, it is stored like as any other profile (out of the 7 profiles budget).
Shlomi
so if the device went to hibernate mode, the connection record is stilled retained? if yes, where is the connection record stored? if the device wake up from hibernate, then can the device be fast connected to the last network without verification?