Other Parts Discussed in Thread: Z-STACK
Hello,
I am a beginner in TI-RTOS and I don't understand how to make 2 tasks communicate together (Task A to send a message to Task B). Lets take the example of the "Light and Switch example applications on the CC13x2 and CC26x2" (https://dev.ti.com/tirex/explore/node?node=ANbR0LtTwkMnDCiEhygF7A__pTTHBmu__LATEST). In this document, the communication between the Thread and RTOS is described using OSALPort.This communication work by registering the Thread in OSALPort using TaskID, SemaphoreHandle and EventHandler. Fine.
Now, let's imagine that I have another task aside to the first one. Let say that one of the task is the one from a simple example (i.e. Zigbee Switch example) and the other tack is managing some computation and want to transmit the result of this computation through Zigbee task to something else. My first assumption was that it will be possible, using OSALPort, to send a message (Event + Semaphore) to Zigbee task. BUT. But I have a problem: to do so, I need the TaskID of Zigbee task. And it is only available as a private variable in the task, so I don't see any way to get it in my "computation" task.
So, here are my questions:
1. Am I wrong on the way to communicate between one task and another? I didn't find the architecture of communication between to independent tasks in TI-RTOS anywhere, so if someone have a diagram, please share it
2. If I am right, how can I make the TaskID of the Zigbee task available for the Computation task? I didn't find any clear example of this situation. The best approaching example in my opinion is "zr_ota_server_CC26X2R1_LAUNCHXL_tirtos_ccs" but I didn't found in it the answer to my questions. I will appreciate an architecture diagram describing the structure of communication and a full flow diagram to confirm or not the communication template.
3. If I am wrong, I will appreciate any help, link to documentation or anything else that make me not only able to do it but also to understand it, which is the most important for me.
Thanks.
Best regards,