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.

TMDSCSK388: Function CameraLink_tskMain(); Call

Part Number: TMDSCSK388

hi,

I'm using IPNC_RDK 3.9.0, In this I'm trying to understand the function call of Void CameraLink_tskMain(struct Utils_TskHndl * pTsk, Utils_MsgHndl * pMsg);

in ipnc_rdk-3.9.0/Source/ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_m3vpss/camera/cameraLink_tsk.c

If my undestnding is correct it is called by

.............................

status = Utils_tskCreate(&pObj->tsk,
                             CameraLink_tskMain,
                             CAMERA_LINK_TSK_PRI,
                             gCameraLink_tskStack,
                             CAMERA_LINK_TSK_STACK_SIZE, pObj, "CAMERA ");

.................................

in Int32 CameraLink_init()

if that is the right way, I'm trying to call CaptureLink_tskMain(); in ipnc_rdk-3.9.0/Source/ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_m3vpss/capture/captureLink_tsk.c

But the function is not called.

I notice

/** Create link task, task remains in IDLE state
        CameraLink_tskMain is called when a message command is received
    */

How I can make a message command available for capture.

All Helps and advices are appreciated

Thank you

Regards

  • You need to understand link and chains framework. Capture link is based on the link-chain framework.

    tskMain is a thread entry function, which gets called when the thread is started. Then it just waits for the command. You could send the command using link id and API System_LinkSendCommand.

    Regards,

    Brijesh

  • Hi Nithin,

    Please go through the IPNC_RDK_3.9.0/Source/ipnc_rdk/collateralsIPNC_RDK_McFW_UserGuide.pdf to understand the Link and Chain framework.

    Capture and camera both are links which has their init functions which will be called by System_initLinks().

    Init function will spawn a thread as ******_tskMain() which will be waiting for commands.(The first command should be create otherwise it will throw an error).

    If you do not send any command to the link it will be create and start the link.

  • Thank you Brijesh Jadav and Anuj,

    For using CaptureLink_tskMain, I'm trying to give a create command.

    Here full feature is used in my application. So the link creation are done in 'multich_tristream_fullfeature.c'

    ipnc_rdk-3.9.0/Source/ipnc_rdk/ipnc_mcfw/mcfw/src_linux/mcfw_api/usecases/multich_tristream_fullfeature.c

    Is the link creation done in this file?

    If so, In the available code the camera links being created, I must modify here with capture create links?
    Please confirm this

    Thank you,
    Regards
  • Hi Nithin,

    In the above file, camera link has been created not the capture link.

    If you want to create a capture then please send the create command to capture link.

    For this you have to set create params and other params for capture link and necessary thing in HDVPSS to use the capture link.

  • Thank you Anuj,


    I send create command to capture link.

    Regards