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.

CC3220MODA: Behavior of CC3220MODA

Guru 16770 points
Part Number: CC3220MODA

Hi

 

Our customer has question of APP_EVENT DISCONNECT.

 

I attach logs.

log.xlsx

 

The both logs offer "Device disconnected from the AP on an ERROR".
 

In left logs, it succeeds to reset and reboot the system using platform reset.

In right logs, it repeats "Device disconnected from the AP on an ERROR" with 204 and 208 alternately after using platform reset.

 

I don't know why there are differences between upper two cases.

 

Could it be possible that there are differences in behavior after platform reset depending on the connecting router?

 

If yes, could you tell me the router function that will cause to above differences in behavior?

 

BestRegards

  • Hi

    It is supplemental information.

    APP_EVENT_DISSCONNECT is used in could_ota.c.

    ---

       case SL_WLAN_EVENT_DISCONNECT:

       {

           SlWlanEventDisconnect_t *pDiscntEvtData = NULL;

           pDiscntEvtData = &pWlanEventData->Disconnect;

     

           /** If the user has initiated 'Disconnect' request, 'ReasonCode'

             * is SL_USER_INITIATED_DISCONNECTION

             */

           if(SL_WLAN_DISCONNECT_USER_INITIATED == pDiscntEvtData->ReasonCode)

           {

               UART_PRINT("Device disconnected from the AP on request\r\n");

           }

           else

           {

               UART_PRINT("Device disconnected from the AP on an ERROR %d\r\n"

                        ,pDiscntEvtData->ReasonCode);

           }

           SignalEvent(APP_EVENT_DISCONNECT);

       }

       break;

    ---

    BestRegards

     

  • Hi na na78,

    Looking at wlan.h, the 204 and 208 return codes are SL_WLAN_DISCONNECT_SECURITY_FAILURE and SL_WLAN_DISCONNECT_WHILE_CONNNECTING.

    What is happening in your application when this occurs? How are you trying to connect to the AP?

    If you fail to connect to the AP, a platform reset is probably overkill. You can address the error, or if you would like to reset, just reset the NWP with sl_Stop(200) and sl_Start.

    Best regards,

    Sarah

  • Hi Sarah

    Thank you for your reply.


    >What is happening in your application when this occurs? How are you trying to connect to the AP?

    If it happens,  not to move to provisioning mode and platform_reset() is executed (A log in the right side).

    Although we expected that the system moved to provisioning mode after failing connection, it did not.

    BestRegards

  • Hi,

    Can you capture NWP logs? http://processors.wiki.ti.com/index.php/CC3120_%26_CC3220_Capture_NWP_Logs

    If you are receiving a security error, you should not reset the platform. That may be causing your host application to lose state with the NWP since you are not allowing the NWP time to shut down properly. Please address only the error, or try using sl_Stop(200) and sl_Start to restart only the NWP.

    Best regards,

    Sarah

  • Hi na na78,

    Were you able to gather more information?

    Best regards,

    Sarah

  • Hi Sarah

    Sorry I could not update.

    Since last reply to the customer, a response has been lost.

    Let me finish this thread once.

    Thank you for your cooperation.

    BestRegards

  • Thanks na na78!

    If this thread locks automatically due to inactivity, please use the "Ask a related question" button at the top of this thread so we can follow up with all your information.

    Best regards,

    Sarah