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

gailu
Posts: 49
Joined: Fri May 29, 2015 2:03 pm

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

Postby gailu » Thu Mar 05, 2020 1:42 am

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.

gailu
Posts: 49
Joined: Fri May 29, 2015 2:03 pm

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

Postby gailu » Sun Mar 08, 2020 1:02 am

Hi,

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

gailu
Posts: 49
Joined: Fri May 29, 2015 2:03 pm

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

Postby gailu » Wed Mar 18, 2020 8:22 am

I am surprised that no one even from ESP team can answer the queries for bugs present in the SDK

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

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

Postby Her Mary » Fri Mar 27, 2020 5:55 pm

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

Who is online

Users browsing this forum: No registered users and 180 guests