This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RDK 01.06.00.11 Link Question


Hi,
I have some questions about the command  SYSTEM_CMD_NEW_DATA and ack.

1.
In xxxLink_tsk.c, below the switch command SYSTEM_CMD_NEW_DATA, why Utils_tskAckOrFreeMsg is before the data process ?
Is there any special consideraton?
Will this introduce system unstability ?
Could I change the order ?

2.
What is the purpose of Utils_tskFlushMsg?
In what situation will need this function ?

Hope someone could help me clarify this, thanks a lot!

  • Hi Yuanchi,

    1) We acknowledge the SYSTEM_CMD_NEW_DATA command with Utils_tskAckOrFreeMsg immediately so that previous link is not held waiting for acknowledgement. If any link requires any message to be passed back to the previous link then the  Utils_tskAckOrFreeMsg must be called after data process function

     

    2) Sometimes the SYSTEM_CMD_NEW_DATA calls may be made at a higher frequency than required. For example in SWMS link SYSTEM_CMD_NEW_DATA is received every 16 ms while the SW_MS_LINK_CMD_DO_SCALING is called every 33 ms. That means there are a lot of additional SYSTEM_CMD_NEW_DATA calls. So we flush duplicate messages using Utils_tskFlushMsg

     

    Hope this clears your queries.

     

    Regards,
    Arun