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.

TIDEP-01017: Who sends SYSTEM_CMD_NEW_DATA to network_tx ?

Part Number: TIDEP-01017

I try to understand how to work network_tx under Processor SDK radar environment.
Is my comprehension OK?
I guess two ways of the start to send packets of network_tx.

Unawareness way.
C:\PROCESSOR_SDK_RADAR_03_08_00_00\vision_sdk\apps\src\rtos\radar\src\usecases\cascade_radar_capture_only

There isn’t any SYSTEM_CMD_NEW_DATA commands above the usecase.
Point is to create a connection of links (capture->IPC1_0->IPC1_1->network_tx).
As a result, the state of capture can invoke network_tx via links (capture->IPC1_0->IPC1_1->network_tx).

Awareness way.
C:\PROCESSOR_SDK_RADAR_03_08_00_00\vision_sdk\apps\src\rtos\radar\src\usecases\cascade_radar_object_detect

In this usecase, explicitly sends SYSTEM_CMD_NEW_DATA.
C:\PROCESSOR_SDK_RADAR_03_08_00_00\vision_sdk\apps\src\rtos\radar\src\alg_plugins\radarprocess\radarProcessLink_algPlugin.c

L.658
/*
* Informing next link that a new data has peen put for its
* processing
*/
System_sendLinkCmd(pAlgObj->algLinkCreateParams.outQueParams.nextLink,
SYSTEM_CMD_NEW_DATA,
NULL);

  • Hi,

    For the first use case, the data is captured by Capture Link and passed to IPC Links and then to Network Link.

    In CaptureLink_drvProcessData() under ~/vision_sdk/links_fw/src/rtos/links_ipu/vip_capture/captureLink_drv.c, it will notify the IPC Out link via SYSTEM_CMD_NEW_DATA command that data is available.

    Between IPC Out and IPC In, it uses IPC APIs to communicate.

    In IpcInLink_drvProcessBuffers() under ~/vision_sdk/links_fw/src/rtos/links_common/ipcIn/ipcInLink_drv.c, it will notify the Network link that data is available.

    Regards,
    Stanley