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.

TDA2PXEVM: Read file from SD card and send those data via Ethernet

Part Number: TDA2PXEVM

Dear support team,

I am trying to learn vision sdk with a 2pxevm hardware board for a new project.

For one test demo, we need to read file/image from sd card then send those via ethernet , I found function 'Utils_fileReadFile()' in 'file_api.c' and tried to call it in function 'NetworkCtrl_tskMain()'  , but this operation always return open file failed. I am not sure what happened with this....

For easy start , is there any reference use case or documents for my requirement?

thank you very much.

  • version :PROCESSOR_SDK_VISION_03_07_00_00

    build to bios.

  • Hi,

    You just have create a use-case as follows.

    NullSource (IPU1_0) -> NetworkTx (IPU1_1).

     


    If you are new to vision SDK I'm recommending you go through some document.

    open vision_sdk/docs/Index.htm file navigate required documents.

    Thanks

    Gaviraju

  • Hi Gaviraju,

    Thanks for your reply.

    I generated this use case via generate tool according to this doc<FeatureSpecificUserGuides\VisionSDK_Overview_UsecaseGen.pdf> .

    in this document  part "Manually Written Code" , as per my understanding ,I did test code as shown as below :

    #include "chains_sdcardfile_Ethernet_priv.h"
    #include <src/include/chains_common.h>
    static void chain_sdcardfile_Ethernet_SetApp_NullSrcLink(chains_sdcardfile_EthernetObj *pObj)
    {
    NullSrcLink_CreateParams *pNullSrcPrm = &pObj->NullSourcePrm;
    pNullSrcPrm->networkServerPort = 8888;
    pNullSrcPrm->dataRxMode = (NullSrcLink_DataRxMode)0;//NETWORK_RX_LINK_DATA_RX_MODE_TCPIP;
    pNullSrcPrm->timerPeriodMilliSecs = 1000;
    }

    static void chain_sdcardfile_Ethernet_SetApp_NetworkTxLink(chains_sdcardfile_EthernetObj *pObj)
    {
    NetworkTxLink_CreateParams *pNetworkTxPrm = &pObj->NetworkTxPrm;
    pNetworkTxPrm->networkServerPort = 9999;
    pNetworkTxPrm->transmitDataType = NETWORK_TX_LINK_TRANSMIT_TYPE_TCPIP;
    }

    void chains_sdcardfile_Ethernet_SetAppPrms(chains_sdcardfile_EthernetObj *pObj, Void *appObj)
    {
    Vps_printf("AAAAAAAAAAAAAAAAAAAAAAAAAAAA");
    chain_sdcardfile_Ethernet_SetApp_NullSrcLink(pObj);
    Vps_printf("BBBBBBBBBBBBBBBBBBBBBBBBBBBB");
    chain_sdcardfile_Ethernet_SetApp_NetworkTxLink(pObj);
    Vps_printf("CCCCCCCCCCCCCCCCCCCCCCCCCCCC");
    }

    Void chains_sdcardfile_Ethernet(Chains_Ctrl *chainsCfg)
    {
    chains_sdcardfile_EthernetObj ucObj;
    Vps_printf("DDDDDDDDDDDDDDDDDDDDDDDDDDDD");
    chains_sdcardfile_Ethernet_Create(&ucObj,&chainsCfg);
    Vps_printf("EEEEEEEEEEEEEEEEEEEEEEEEEEEE");
    chains_sdcardfile_Ethernet_Start(&ucObj);
    while(1)
    {
    Vps_printf("here here here here here");
    }

    }

    After compiling , it did not work. I think i didn't get the exact way to generate link and chain . 

    print messages as bellow('h' is the trigger key) :

    [IPU1-0] Vision SDK Usecases,
    [IPU1-0] --------------------
    [IPU1-0] 1: Single Camera Usecases
    [IPU1-0] 2: Multi-Camera LVDS Usecases
    [IPU1-0] 3: AVB RX Usecases, (TDA2x & TDA2Ex ONLY)
    [IPU1-0] 4: Dual Display Usecases, (TDA2x EVM ONLY)
    [IPU1-0] 5: ISS Usecases, (TDA3x ONLY)
    [IPU1-0] 6: TDA2x Stereo Usecases
    [IPU1-0] 7: Network RX/TX Usecases
    [IPU1-0] 9: RADAR Usecases
    [IPU1-0] a: Miscellaneous test's
    [IPU1-0] f: TIDL Usecase
    [IPU1-0] g: Camera Radar Combo Usecases
    [IPU1-0]
    [IPU1-0]
    [IPU1-0] h: Read file from sd card test case
    [IPU1-0]
    [IPU1-0] s: System Settings
    [IPU1-0]
    [IPU1-0] x: Exit
    [IPU1-0]
    [IPU1-0] Enter Choice:
    [IPU1-0]
    [HOST ] 21.643445 s: Local_LinkStatus : LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
    [HOST ] 21.643475 s: NDK: Link Status: 1000Mb/s Full Duplex on PHY 2
    [HOST ] 22.246934 s: NETWORK_CTRL: Starting Server (port=5000) !!!
    [HOST ] 22.246934 s: NETWORK_CTRL: Starting Server ... DONE (port=5000) !!!
    [IPU1-0] 70.830140 s:
    [IPU1-0] 70.830201 s: DDDDDDDDDDDDDDDDDDDDDDDDDDDD
    [IPU1-0] 70.830354 s: AAAAAAAAAAAAAAAAAAAAAAAAAAAA

    Could you help me to understand Link&Chain or show me some support documents exactly?

    Thank you very much.

    Lan.

  • Hi,

    It seems you have not done proper parameter settings in the manual written code file.

    So please refer existing use-case & try to configure.

    Thanks

    Gaviraju