[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 

Can't schedule more then aprox. 2min ahead with taskManager RSS feed
Forum Index » IoAbstraction & TaskManagerIO
Author Message
Dan


Joined: Feb 21, 2019
Messages: 4
Offline
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
Dan


Joined: Feb 21, 2019
Messages: 4
Offline
nevermind, i programmed taskManager out of my little project. Have a nice day
davetcc


Joined: Jan 19, 2019
Messages: 362
Offline
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.
davetcc


Joined: Jan 19, 2019
Messages: 362
Offline
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.
Dan


Joined: Feb 21, 2019
Messages: 4
Offline
No worries Dave. I use the other stuff in IoAbstractionWire (23017 and switches) with great pleasure. Impressive work.
davetcc


Joined: Jan 19, 2019
Messages: 362
Offline
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.
Dan


Joined: Feb 21, 2019
Messages: 4
Offline
sounds promising, if it is not too much work, that would be useful.
 
Forum Index » IoAbstraction & TaskManagerIO
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer