【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4

irvinvp
Posts: 2
Joined: Fri Jun 24, 2016 2:49 am

【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4

Postby irvinvp » Fri Jun 24, 2016 2:57 am

I'm trying light sleep, but the second time always shows a "fpm 737" Error, my code:

void sleeping(void);

void wake_up_func(void)
{
wifi_fpm_close();
wifi_set_opmode_current(STATION_MODE);
os_printf("ON\n");
sleeping();
}
void sleeping(void)
{
wifi_station_disconnect();
if(wifi_set_opmode(NULL_MODE)){os_printf("Null OK\n");}
wifi_fpm_set_sleep_type(LIGHT_SLEEP_T);
wifi_fpm_open();
wifi_fpm_set_wakeup_cb(wake_up_func);
os_printf("SUP: %d \n",wifi_fpm_do_sleep(60000000));
}
void user_init(void)
{
uart_init(BIT_RATE_115200,BIT_RATE_115200);
sleeping();
}

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

Re: LIGHT SLEEP ERROR SDK 1.5.4

Postby ESP_Rubin » Wed Jun 29, 2016 5:30 pm

please use "wifi_set_opmode(STATION_MODE);" instead of "wifi_set_opmode_current(STATION_MODE);" in function "wake_up_func(void)"

irvinvp
Posts: 2
Joined: Fri Jun 24, 2016 2:49 am

Re: 【Feedback】LIGHT SLEEP ERROR SDK 1.5.4

Postby irvinvp » Wed Jun 29, 2016 10:54 pm

Ok thank you very much, it is solved

dnc40085
Posts: 5
Joined: Tue Jul 19, 2016 9:55 am

Re: 【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4

Postby dnc40085 » Tue Jul 19, 2016 10:00 am

I'm having the same issue, Is this issue going to be fixed with the next SDK version?
It would be nice to use "wifi_set_opmode_current()" since it doesn't write to flash.

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

Re: 【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4

Postby ESP_Rubin » Tue Jul 19, 2016 11:13 am

yes,we have fixed the issue in next SDK.
and for old SDK, we suggest use"wifi_set_opmode" as workround

dnc40085
Posts: 5
Joined: Tue Jul 19, 2016 9:55 am

Re: 【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4

Postby dnc40085 » Mon Jul 25, 2016 6:39 pm

I tried light sleep with SDK 1.5.4.1 and SDK 2.0.0 with both "wifi_set_opmode" and "wifi_set_opmode_current" and I get the error "fpm 758".

New bug maybe?

EDIT: Just out of curiosity what are the relevance of the numbers in "fpm 758"?

Who is online

Users browsing this forum: No registered users and 5 guests