I am working on this problem:
Create 3 “producer” tasks and 1 “monitoring” task. Each producer has its own private counter variable that it periodically increments. These 3 tasks shall periodically send their values using a single message queue to the monitoring task. The latter shall output these values, and additionally which producer has generated which value, to a remote terminal. Use UART2 as the communication interface. The monitoring task shall also receive commands from the terminal, e.g., in the form of “T2 1000ms” that allows to set the update interval of the 3 tasks – in the example for task #2. The monitoring task that receives these commands from the remote terminal shall communicate this information to the other 3 tasks.
I am stuck on this part:
“The monitoring task shall also receive commands from the terminal, e.g., in the form of “T2 1000ms” that allows to set the update interval of the 3 tasks – in the example for task #2. The monitoring task that receives these commands from the remote terminal shall communicate this information to the other 3 tasks”.
I am developing my program in STM32 (STM32L432KC MCU Board).
I successfully managed to create three Producer Tasks and a Monitor.
Unfortunately, I cannot code / solve the issue I am facing.
Moreover, the user is supposed to be able to input a command into Tera Term, which stops the output of the producer tasks and changes the Task Delay of whichever Producer the user picks (T2 1000ms). In the meantime, the counters should keep increasing their values. Once the command is executed, the producers output their values again.