Register / Login  |  Desktop view  |  Jump to bottom of page

IoAbstraction & TaskManagerIO » Can't schedule more then aprox. 2min ahead with taskManager

Author: Dan
21/02/2019 21:18:30
Hello

I have the problem that

taskManager.scheduleOnce(10000, [] {startFilter();}); // schedule in 10sec works


and

taskManager.scheduleOnce(198000, [] {startFilter();}); // schedule in 3min18sec doesn't work, startFilter is executed immediately


The border is between 196607 millis (works) and 196608 millis (doesn't work).
what am I doing wrong here? I'm aware of TIME_SECONDS but I have to time fractions of seconds. Hope I have just some misconceptions.

Dan

Author: Dan
24/02/2019 15:49:22
nevermind, i programmed taskManager out of my little project. Have a nice day

Author: davetcc
25/02/2019 09:25:33
Yes, there is a limit in millisecond based scheduling at that threshold. It’s not for everyone and solves mainly short term scheduling for TcMenu.

Thanks for trying it anyway.
Dave.

Author: davetcc
25/02/2019 09:26:56
Apologies for the delay by the way, there was a mis configuration in the forum and it was not sending me emails. I’ll get that fixed.

Author: Dan
25/02/2019 10:07:39
No worries Dave. I use the other stuff in IoAbstractionWire (23017 and switches) with great pleasure. Impressive work.

Author: davetcc
25/02/2019 10:22:46
Something struck me.

I could make a 32 bit schedule info struct available as a compile option. For example setting something like TASKMGR_32BIT_SCHEDULE as a commented out define in taskManager.h. So a simple change to that file would modify your scheduling at the expense of slightly higher ram use. Albeit only about 20 or 30 bytes for most cases. This would allow more than a day of millisecond scheduling.

Author: Dan
26/02/2019 18:44:34
sounds promising, if it is not too much work, that would be useful.




Register / Login  |  Desktop view  |  Jump to top of page