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.

disconnect on user request task_exit

I have run the provisioning_smartconfig sample. the using the smartconfig on my android I have configured my launchpad.

now I am trying to run the wlan_station sample. I have removed the call to function ConfigureSimpleLinkToDefaultState() from the sample and I compile and run.

I can see the ap connection event received but immediately after I get also the disconnect event which I don't understand the origin. I can see in call stack its originated by task_exit function of the rtos. probably I am missing something please direct me.

see below a screenshot of debugger and uart console prints.

Thanks,

Roy 

  • I have run the provisioning_smartconfig sample. the using the smartconfig on my android I have configured my launchpad.

    now I am trying to run the wlan_station sample. I have removed the call to function ConfigureSimpleLinkToDefaultState() from the sample and I compile and run.

    I can see the ap connection event received but immediately after I get also the disconnect event which I don't understand the origin. I can see in call stack its originated by task_exit function of the rtos. probably I am missing something please direct me.

    see below a screenshot of debugger and uart console prints.

    Thanks,

    Roy 

  • the problem was I did not modified common.h like mentioned in the getting started guide. I was sure the profile is taken from the flash somehow after I run the smart config. Even the  the terminal displayed the SSID configured by smart config but uses credentials originated in common.h. its not clear to me how I am supposed to reconfigure these values in the releases version in run-time.

  • Hi Roy,

    The disconnect is not originating from the task_exit function.It is an asynchronous event from the device indicating that the device has disconnected from the AP.

    The call flow shows a task_exit call to indicate task switching. 

    Initiating a smart config saves the smart config profile in the SFLASH. Since you have removed  the call to ConfigureSimplelinkToDefaultState, the profile is intact in the sflash( the ConfigureSimplelinkToDefaultState deletes all profiles sorted in the sflash), the device automatically connects to this previously saved profile.

    The disconnect could be initiated because of the a new connection initiation (sl_WlanConnect call) from the wlan_station example.

    Can you please also mention the reason for disconnect event that you can see in the async event?

    Regards,

    Prathyusha Teja.I