How do I change the timeout on the softAP example?

zhangyanjiao
Posts: 34
Joined: Mon Aug 28, 2017 3:27 am

Re: How do I change the timeout on the softAP example?

Postby zhangyanjiao » Mon Jan 07, 2019 3:19 am

hi Ritesh,
I think detlier's description is pretty clear. What we said is the timer that the SoftAP found the STA has been out of range or power off.
You can reproduce this issue by the following steps easily:
(1) Use two ESP32 devices, one is as SoftAP, the other is as STA
(2) STA connects to the SoftAP
(3) Power off the STA. But The SoftAP doesn't know this , so it will wait for 5 min, if during this time ,the SoftAP doesn't receive any messages from the STA, it will kicks out the STA, and print the log for inactive timer:
W (552929) wifi: inactive timer: now=20f010f1 last_rx_time=ef8bad1 diff=4996e, aid[1]84:3a:4b:9e:64:c0 leave
I (552929) wifi: station: 84:3a:4b:9e:64:c0 leave, AID = 1
I (552939) wifi: n:4 0, o:4 0, ap:4 1, sta:255 255, prof:4
I (552939) esp-streamer: station:84:3a:4b:9e:64:c0leave, AID=1

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: How do I change the timeout on the softAP example?

Postby Ritesh » Mon Jan 07, 2019 9:01 am

zhangyanjiao wrote:
Mon Jan 07, 2019 3:19 am
hi Ritesh,
I think detlier's description is pretty clear. What we said is the timer that the SoftAP found the STA has been out of range or power off.
You can reproduce this issue by the following steps easily:
(1) Use two ESP32 devices, one is as SoftAP, the other is as STA
(2) STA connects to the SoftAP
(3) Power off the STA. But The SoftAP doesn't know this , so it will wait for 5 min, if during this time ,the SoftAP doesn't receive any messages from the STA, it will kicks out the STA, and print the log for inactive timer:
W (552929) wifi: inactive timer: now=20f010f1 last_rx_time=ef8bad1 diff=4996e, aid[1]84:3a:4b:9e:64:c0 leave
I (552929) wifi: station: 84:3a:4b:9e:64:c0 leave, AID = 1
I (552939) wifi: n:4 0, o:4 0, ap:4 1, sta:255 255, prof:4
I (552939) esp-streamer: station:84:3a:4b:9e:64:c0leave, AID=1
Ok. Sorry for misunderstanding regarding that.

We have also tested same thing earlier and found that after 5 minutes we are getting update for STA disconnected device. So, That is default settings which is not configurable i think. But, Espressif Team will provide that support into make menuconfig into ESP32 IDF 4.0

Hope we will get that type of support as quickly as possible
Regards,
Ritesh Prajapati

bhakti
Posts: 12
Joined: Fri Oct 05, 2018 6:52 am

Re: How do I change the timeout on the softAP example?

Postby bhakti » Tue May 14, 2019 9:42 am

Hello Guys,

I am using ESP32 in AP+STA mode for a web server application, I scan available AP's using STA mode, Create network using Soft AP, and run a webpage on IP provided by Soft AP. I am getting same message as Ritesh. I tried to reconnect but failed. I can see station connected, soft AP assigns IP address also but if I ping the device it fails. It connects only after resetting device. Need to know reason why soft AP losses connection?? How to reconnect it??

Thank you in advance.
Attachments
error.png
error.png (123.32 KiB) Viewed 12260 times
------------------------------

Thanks and Best regards,
Bhakti Deshpande.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: How do I change the timeout on the softAP example?

Postby Ritesh » Wed May 15, 2019 5:00 am

bhakti wrote:
Tue May 14, 2019 9:42 am
Hello Guys,

I am using ESP32 in AP+STA mode for a web server application, I scan available AP's using STA mode, Create network using Soft AP, and run a webpage on IP provided by Soft AP. I am getting same message as Ritesh. I tried to reconnect but failed. I can see station connected, soft AP assigns IP address also but if I ping the device it fails. It connects only after resetting device. Need to know reason why soft AP losses connection?? How to reconnect it??

Thank you in advance.
That is because STA is going to scan all channels for configured router at that time AP is also going to switch with that channel accordingly. So that you will get AP of ESP32 Device to be restarted with that duration.

Might be ESP32 SDK Developer can also provide few details for this.
Regards,
Ritesh Prajapati

bhakti
Posts: 12
Joined: Fri Oct 05, 2018 6:52 am

Re: How do I change the timeout on the softAP example?

Postby bhakti » Fri May 31, 2019 6:20 am

Ritesh wrote:
Wed May 15, 2019 5:00 am
bhakti wrote:
Tue May 14, 2019 9:42 am
Hello Guys,

I am using ESP32 in AP+STA mode for a web server application, I scan available AP's using STA mode, Create network using Soft AP, and run a webpage on IP provided by Soft AP. I am getting same message as Ritesh. I tried to reconnect but failed. I can see station connected, soft AP assigns IP address also but if I ping the device it fails. It connects only after resetting device. Need to know reason why soft AP losses connection?? How to reconnect it??

Thank you in advance.
That is because STA is going to scan all channels for configured router at that time AP is also going to switch with that channel accordingly. So that you will get AP of ESP32 Device to be restarted with that duration.

Might be ESP32 SDK Developer can also provide few details for this.
Hi,
Thank you for reply. That's very help full hint.
------------------------------

Thanks and Best regards,
Bhakti Deshpande.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: How do I change the timeout on the softAP example?

Postby Ritesh » Fri May 31, 2019 12:07 pm

bhakti wrote:
Fri May 31, 2019 6:20 am
Ritesh wrote:
Wed May 15, 2019 5:00 am
bhakti wrote:
Tue May 14, 2019 9:42 am
Hello Guys,

I am using ESP32 in AP+STA mode for a web server application, I scan available AP's using STA mode, Create network using Soft AP, and run a webpage on IP provided by Soft AP. I am getting same message as Ritesh. I tried to reconnect but failed. I can see station connected, soft AP assigns IP address also but if I ping the device it fails. It connects only after resetting device. Need to know reason why soft AP losses connection?? How to reconnect it??

Thank you in advance.
That is because STA is going to scan all channels for configured router at that time AP is also going to switch with that channel accordingly. So that you will get AP of ESP32 Device to be restarted with that duration.

Might be ESP32 SDK Developer can also provide few details for this.
Hi,
Thank you for reply. That's very help full hint.
Most Welcome.

Add here if any query into future related to that issue.
Regards,
Ritesh Prajapati

mapagfishball102
Posts: 1
Joined: Sun Jan 05, 2020 4:13 am

Re: How do I change the timeout on the softAP example?

Postby mapagfishball102 » Sun Jan 05, 2020 4:15 am

Hello is this issue been fixed now? We are having the same application and same problem

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: How do I change the timeout on the softAP example?

Postby Ritesh » Thu Jan 16, 2020 8:37 am

mapagfishball102 wrote:
Sun Jan 05, 2020 4:15 am
Hello is this issue been fixed now? We are having the same application and same problem
Means, what issue you are facing?

can you please elaborate it into more details?
Regards,
Ritesh Prajapati

filipESP
Posts: 74
Joined: Tue Nov 06, 2018 12:42 pm

Re: How do I change the timeout on the softAP example?

Postby filipESP » Mon May 04, 2020 10:19 pm

Is the problem solved?
Is the inactiv timer available in idf 4.1 beta?

ganeshgreyson
Posts: 2
Joined: Thu Jan 10, 2019 11:11 pm

Re: How do I change the timeout on the softAP example?

Postby ganeshgreyson » Thu Dec 09, 2021 11:14 pm

I am using esp idf verion release/4.2. Is there any API that we can the timeout in softAP when client leave without notifying. Has this issue been solved?

Who is online

Users browsing this forum: cdollar, Majestic-12 [Bot] and 82 guests