xQueueReceive() won't get correct payload from xQueueSendToBack()
Posted: Thu Nov 09, 2017 8:23 pm
Hi ESP-IDF,
The titel of the question is not precise. The geniue one is:
Why the initialization order / nested relationship of tasks can cause the same task definitions have / don't have correct intertask communications implementated with Queue?
I have a bunch of Tasks that need intertask communications between them. Since I'd prefer to start them in a sequncial way. I may wanna nest some of them into others, or change the order of their initialization. But I did figured out, that I won
t got compiling time issue (Compiler get compiled correctely), but when I log some problematical queues' content, I can not find correct payload in there.
Perhaps the xQueueReceive() would get called before xQueueSendToBack(), or the queue is filled up before the task that consum the payload in the queue get inited. Should these issues be seen as problem? Or should be something else?
Thanks!
Gfast2
The titel of the question is not precise. The geniue one is:
Why the initialization order / nested relationship of tasks can cause the same task definitions have / don't have correct intertask communications implementated with Queue?
I have a bunch of Tasks that need intertask communications between them. Since I'd prefer to start them in a sequncial way. I may wanna nest some of them into others, or change the order of their initialization. But I did figured out, that I won
t got compiling time issue (Compiler get compiled correctely), but when I log some problematical queues' content, I can not find correct payload in there.
Perhaps the xQueueReceive() would get called before xQueueSendToBack(), or the queue is filled up before the task that consum the payload in the queue get inited. Should these issues be seen as problem? Or should be something else?
Thanks!
Gfast2