Tool/software: TI-RTOS
HI All,
We use CC3220sf MOD for our IOT project, Which connects to the azure cloud. Below are some version numbers
We use "simplelink_cc32xx_sdk_2_20_00_10" sdk.
service pack is "sp_3.8.0.3_2.0.0.0_2.2.0.6.bin"
Below is the code snippet which we use for wlan connect.
retVal = sl_WlanConnect((signed char*)wlanProfileToAdd.ssid,
wlanProfileToAdd.ssidLengthInBytes,
NULL,
&secParams,
NULL);
Below is the event handler we use for different cases
void SimpleLinkWlanEventHandler(SlWlanEvent_t *pWlanEvent)
{
switch (pWlanEvent->Id)
{
case SL_WLAN_EVENT_CONNECT:
{
/* set the string terminate */
pWlanEvent->Data.Connect.SsidName[pWlanEvent->Data.Connect.SsidLen] = '\0';
strcpy(connectedToSsidName, (const char *)pWlanEvent->Data.Connect.SsidName);
OUR code logic
}
break;
case SL_WLAN_EVENT_DISCONNECT:
{
OUR code logic
}}}
So what we have observed is that when ever there is a lost of connection to wifi(I mean we manually switch off the wifi router). We see that the SL_WLAN_EVENT_DISCONNECT case will be executed. And when the router is plugged back in then the case SL_WLAN_EVENT_CONNECT is executed. We never handled any of the reconnection strategies at all. It used to connect back.
Now our problem is :
We have removed power to the router for 1 hr and connected back the power CC3220sf got automatically reconnected.
We have removed power to the router for 8 hrs and connected back the power CC3220sf got automatically reconnected.
We have removed power to the router for 2 days and connected back the power CC3220sf failed to reconnect. We are not seeing that event is executed.
Please can someone throw us some light on this and help us how to fix this scenario.
Thanks,
krishna