Page 1 of 1

os_timer_arm does not work for timer value more 6871 sec (6871000 ms) and above

Posted: Thu Mar 05, 2020 1:42 am
by gailu
Hi Experts,

We are using non_os_sdk 2.0 with and facing following problem with os_timer_arm() api.

os_timer_arm() api takes timer value in milliseconds and it is a unsigned 32 bit integer parameter. But timer is not triggered if we set timer value 6871000 (6871 seconds and above) though it works fine if the timer value is 6870000 msec (6870 sec or less). As a result we can not run a timer even for two hours duration (7200 sec) whereas application needs timer up to 8 hours.

I would like to know where is this limitation in the SDK and is there any patch to fix the problem?

We are home automation company and have thousands of live devices facing this issue. We can update them through FOTA once the solution is found.

Help from esp team will be very helpful.

Re: os_timer_arm does not work for timer value more 6871 sec (6871000 ms) and above

Posted: Sun Mar 08, 2020 1:02 am
by gailu
Hi,

Anyone from espressif team can please look in to the bug? It is easily reproducible.

Re: os_timer_arm does not work for timer value more 6871 sec (6871000 ms) and above

Posted: Wed Mar 18, 2020 8:22 am
by gailu
I am surprised that no one even from ESP team can answer the queries for bugs present in the SDK

Re: os_timer_arm does not work for timer value more 6871 sec (6871000 ms) and above

Posted: Fri Mar 27, 2020 5:55 pm
by Her Mary
Could the doc https://www.espressif.com/sites/default ... nce_en.pdf Section 3.1.1 help?
If the problem is still unsolved with the doc, maybe you can submit a issue on GitHub, the project seems just updated 3 days ago. https://github.com/espressif/ESP8266_NONOS_SDK/issues