[error]Esp8266 bcn_timeout and reset

Heiz
Posts: 2
Joined: Mon Jul 24, 2017 11:31 am

[error]Esp8266 bcn_timeout and reset

Postby Heiz » Mon Jul 24, 2017 11:48 am

hello anyone,

I run with esp8266 base on RTOS_SDK_1.5.0,I try to work with Station mode,and send udp single packet every 2S.
Then something erro happened! the error log show in my UART0:"bcn_timeout,ap_probe_send_start" .,and my esp_board reset without any fault.

Is any one has solution to fix the problem?

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: [error]Esp8266 bcn_timeout and reset

Postby pratik » Mon Jul 24, 2017 5:47 pm

Can you share the log after the reboot? It might be a watchdog reset.
By the way, if you send data out every few seconds, please use the RTOS delay function, do not use a loop delay or occupy CPU for too long to create delay. That will cause random resets.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Heiz
Posts: 2
Joined: Mon Jul 24, 2017 11:31 am

Re: [error]Esp8266 bcn_timeout and reset

Postby Heiz » Tue Jul 25, 2017 5:00 pm

Hi pratik,
the error log shows below.
I use os_timer_setfn()API to make the timer every 2S,i think it will not block the cpu too long,doesn't it?



Code: Select all

[14:01:15]  [D:133:test_send_hello@0.0] remain heap: 43120
[14:01:16]  bcn_timout,ap_probe_send_start
[14:01:16]  [D:133:test_send_hello@0.0] remain heap: 43120
[14:01:16] 
[14:01:23]  @P@Q
[14:01:23]  V'T    )dPY
[14:01:23]  %1@
5Y
[14:01:23]          %1@
5Y
[14:01:23]  AEa        1g-p@H)a@H
1eN-I
[14:01:23]  )IqHVANV!SDK ver: 1.5.0-dev(1aafc07) compiled @ May 17 2017 10:13:23
[14:01:23]  phy ver: 1055_1, pp ver: 10.7
[14:01:23] 
[14:01:23]  rf cal sector: 507
[14:01:23]  tcpip_task_hdl : 3fff0c88, prio:10,stack:512
[14:01:23]  idle_task_hdl : 3fff0d28,prio:0, stack:384
[14:01:23]  tim_task_hdl : 3fff34e0, prio:2,stack:512
[14:01:23]  empty
[14:01:23]  mode : sta(5c:cf:7f:d3:fb:48)
[14:01:23]  add if0
[14:01:23]  SDK Version: 1.5.0-dev(1aafc07)
[14:01:23]  Build Data: Jul 24 2017, 13:38:51
[14:01:23]  Current Debug Level: 3
[14:01:23]  reset reason: 0
[14:01:23]  ,---.          ,---.,---.
[14:01:23]  |---',---.,---.|   |`---.
[14:01:23]  |  \ |---'`---.|   |    |
[14:01:23]  `   ``---'`---'`---'`---'
[14:01:23]  ------------------------------
[14:01:23]  Built on Jul 23 2017, v1.1.svn_version
[14:01:23]  ------------------------------
[14:01:23]  scandone
[14:01:24]  state: 0 -> 2 (b0)

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: [error]Esp8266 bcn_timeout and reset

Postby pratik » Tue Aug 08, 2017 3:53 pm

You can use the os_timer functions for any amount of time, even thousands of seconds. But note that FreeRTOS API has specific programming techniques for creating tasks that execute in intervals. You should use that, do consult the FreeRTOS API guide for reference.
It is important that you do not starve the idle task of time.
The os_timer APIs are great for use in nonOS SDK, but not required in FreeRTOS really.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Jamartox
Posts: 11
Joined: Tue Sep 12, 2017 2:09 am

errorEsp8266 bcn_timeout and reset

Postby Jamartox » Fri Sep 15, 2017 4:02 pm

If you are trying form Adminstrator window, try to chagne the defalut Timeout settings available.

Who is online

Users browsing this forum: No registered users and 1 guest