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.
Tool/software: TI C/C++ Compiler
Hello All,
I'm working on TDA2PX EVM and visionsdk 3.7. I have usecase in hlos side which uses alg_plugin from rtos. It is working file but I need runtime input via UART that alters behaviour sightly. So for this I have taken input from user using Chains_readChar() and I'm trying to send this input to Alg_plugin using System_linkControl().
But what I have observed is system_linkControl() is not sending information to Control function of Alg_plugin.
Is it issue that hlos usecase is using rtos or what?
Please suggest how I can resolve this issue.
Regards,
Megha.
Megha,
How are sending control command to alg plugin link?
Please note that actual control command is part of the control params structure, whereas the control command ALGORITHM_LINK_CMD_CONFIG is set to the algo link.
Please find below an example. GET_DCC_BUF_PARAMS is an control command to be sent to algo plugin link.. but in the link control API, ALGORITHM_LINK_CMD_CONFIG command is used..
dccCtrlPrms.baseClassControl.controlCmd =
ALGORITHM_AEWB_LINK_CMD_GET_DCC_BUF_PARAMS;
dccCtrlPrms.baseClassControl.size = sizeof(dccCtrlPrms);
dccCtrlPrms.dccBuf = NULL;
status = System_linkControl(
pIssObj->issAewbLinkId,
ALGORITHM_LINK_CMD_CONFIG,
&dccCtrlPrms,
sizeof(dccCtrlPrms),
TRUE);
UTILS_assert(0 == status);
Regards,
Brijesh
Thanks for the reply.
I have done the same way you have suggested Brijesh. Is there anything that I need to do as the usecase is in hlos side. Because I have done this successfully when usecase and alg_plugin both are in rtos side.
Regards,
Megha.
Megha,
Nop, this should be good enough.
Can you put breakpoint on your control function and see if it gets hit?
I am assuming, create runs fine.. If not, please check it first.
Rgds,
Brijesh
Hi,
I tried by commenting out the process function of alg_plugin, I just kept copying input to output . In this case system_linkControl() is working fine .
what can be the issue with process functionality of alg_plugin?
Regards,
Megha
Hi Megha,
That clearly tells that your process function is corrupting something. Could you please check your process function?
Rgds,
Brijesh