-->
Page 1 of 1

Handling "busy s/p..." problem

PostPosted: Sat Nov 22, 2014 8:10 am
by p10p10
my esp8266 seems to have a bug : when coming out "busy s..." or "busy p...",no more AT commands will response.
even more, a network connection is broken when opratinga tcp connection, "busy s/p.." will 100% appear!

i've seen some one commited a hard reset f/w with AT+XRST, and i believe there's another way for it: reset by ESP8266 itself.

just modify SDK's code in esp_iot_sdk_v0.9.2\at\user\at_port.c
make & burn it.

Code: Select allstatic int busy_count = 0;
static void ICACHE_FLASH_ATTR
at_busyTask(os_event_t *events)
{
  switch(events->par)
  {
  char buffer[20];
  case 1:
     os_sprintf(buffer, "\r\nbusy p...[%d]\r\n", busy_count);
   busy_count++;
    uart0_sendStr(buffer);
    if (busy_count > 20)
      system_restart();
    break;

  case 2:
     os_sprintf(buffer, "\r\nbusy s...[%d]\r\n", busy_count);
   busy_count++;
    uart0_sendStr(buffer);
       if (busy_count > 20)
      system_restart();
    break;
  }
}