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.

TDA4VM: Single camera demo block at vxGraphParameterDequeueDoneRef

Part Number: TDA4VM

Use IMX390 + ub953 camera driver, with SDK7.0 version, run the single camera demo, using 7.0 edition, point code doesn't change, and the situation now is blocked vxGraphParameterDequeueDoneRef this program.

VxGraphParameterDequeueDoneRef above three vxGraphParameterEnqueueReadyRef were successful, but to have a problem, the queue when I in front of the vxGraphParameterDequeueDoneRef added

VxGraphParameterCheckDoneRef function, after the log found num_refs_capture returns 0, no content can be out of the queue.

How to solve this problem?

  • Hi,

    This means essentially, there is no capture happening. Please check sensor and deserializer if output is enabled in it.

    Rgds,

    Brijesh

  • Hello, I opened the save function of Single Camera Demo and got the following log

    s

    RAW file name /opt/vision_apps/test_data/img_0000.raw
    in width = 1936
    in height = 1096
    in format = 1052672
    4243712 bytes written to /opt/vision_apps/test_data/img_0000.raw
    YUV file name /opt/vision_apps/test_data/img_viss_0000.yuv
    Written 3182784 bytes
    3182784 bytes written to /opt/vision_apps/test_data/img_viss_0000.yuv
    YUV file name /opt/vision_apps/test_data/img_ldc_0000.yuv
    Written 3110400 bytes
    3110400 bytes written to /opt/vision_apps/test_data/img_ldc_0000.yuv
    H3A file name /opt/vision_apps/test_data/h3a_0000.bin
    24576 bytes saved from H3A output buffer

    Does this log indicate that the camera has capture data?

  • Here is my sensor configuration:

    static IssSensor_CreateParams imx390CreatePrms = {
    SENSOR_SONY_IMX390_UB953_D3, /*sensor name*/
    0x6, /*i2cInstId*/
    {
    SENSOR_0_I2C_ALIAS, SENSOR_1_I2C_ALIAS, SENSOR_2_I2C_ALIAS, SENSOR_3_I2C_ALIAS,
    SENSOR_4_I2C_ALIAS, SENSOR_5_I2C_ALIAS, SENSOR_6_I2C_ALIAS, SENSOR_7_I2C_ALIAS
    },/*i2cAddrSensor*/
    {
    SER_0_I2C_ALIAS, SER_1_I2C_ALIAS, SER_2_I2C_ALIAS, SER_3_I2C_ALIAS,
    SER_4_I2C_ALIAS, SER_5_I2C_ALIAS, SER_6_I2C_ALIAS, SER_7_I2C_ALIAS
    },/*i2cAddrSer*/
    /*IssSensor_Info*/
    {
    {
    IMX390_OUT_WIDTH, /*width*/
    IMX390_OUT_HEIGHT-IMX390_META_HEIGHT_AFTER, /*height*/
    1, /*num_exposures*/
    vx_false_e, /*line_interleaved*/
    {
    {TIVX_RAW_IMAGE_16_BIT, 11}, /*dataFormat and MSB [0]*/
    },
    0, /*meta_height_before*/
    IMX390_META_HEIGHT_AFTER, /*meta_height_after*/
    },
    ISS_SENSOR_IMX390_FEATURES, /*features*/
    ALGORITHMS_ISS_AEWB_MODE_AEWB, /*aewbMode*/
    60, /*fps*/
    4, /*numDataLanes*/
    {1, 2, 3, 4}, /*dataLanesMap*/
    {0, 0, 0, 0}, /*dataLanesPolarity*/
    800, /*CSI Clock*/
    },
    1, /*numChan*/
    390, /*dccId*/
    };

    Since the camera has 1920*1080 pixels, IMX390_OUT_WIDTH is set to 1920 and IMX390_OUT_HEIGHT is set to 1084. The camera's frame rate is 60, so FPS is set to 60. Run single camera Demo.So numChan was set to 1, and I didn't change anything else.Could you please help me see what's wrong with my configuration?

    thank you!

  • Hi,

    Can you please check which sensor revision are you using? 

    Also 7.0 release very, is it possible for you to move to latest release, 8.0?

    Regards,

    Brijesh 

  • I checked and found that version 7.0 was used. Just now I used the same camera to run the single camera demo in version 8.0, and there was an error when configuring the sensor.

    root@j7-evm:/opt/vision_apps# ./run_app_single_cam.sh
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    38.667163 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    38.669406 s: VX_ZONE_INIT:Enabled
    38.669441 s: VX_ZONE_ERROR:Enabled
    38.669448 s: VX_ZONE_WARNING:Enabled
    38.673359 s: VX_ZONE_INIT:[tivxInit:71] Initialization Done !!!
    38.673554 s: VX_ZONE_INIT:[tivxHostInit:48] Initialization Done for HOST !!!
    sensor_selection = [0]
    ldc_enable = [0]
    num_frames_to_run = [1000000000]
    is_interactive = [1]
    IttCtrl_registerHandler: command echo registered at location 0
    IttCtrl_registerHandler: command iss_read_2a_params registered at location 1
    IttCtrl_registerHandler: command iss_write_2a_params registered at location 2
    IttCtrl_registerHandler: command iss_raw_save registered at location 3
    IttCtrl_registerHandler: command iss_yuv_save registered at location 4
    IttCtrl_registerHandler: command iss_read_sensor_reg registered at location 5
    IttCtrl_registerHandler: command iss_write_sensor_reg registered at location 6
    IttCtrl_registerHandler: command dev_ctrl registered at location 7
    IttCtrl_registerHandler: command iss_send_dcc_file registered at location 8
    38.675094 s: ISS: Enumerating sensors ... !!!
    NETWORK: Opened at IP Addr = 0.0.0.0, socket port=5000!!!
    39.075516 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3
    39.075557 s: ISS: Enumerating sensors ... found 1 : AR0233-UB953_MARS
    39.075563 s: ISS: Enumerating sensors ... found 2 : AR0820-UB953_LI
    39.075568 s: ISS: Enumerating sensors ... found 3 : UB9xxx_RAW12_TESTPATTERN
    39.075573 s: ISS: Enumerating sensors ... found 4 : UB96x_UYVY_TESTPATTERN
    39.075578 s: ISS: Enumerating sensors ... found 5 : GW_AR0233_UYVY
    Select camera port index 0-7 : 0
    0x6 registered sensor drivers
    a : IMX390-UB953_D3
    b : AR0233-UB953_MARS
    c : AR0820-UB953_LI
    d : UB9xxx_RAW12_TESTPATTERN
    e : UB96x_UYVY_TESTPATTERN
    f : GW_AR0233_UYVY
    Select a sensor above or press '0' to autodetect the sensor : Invalid selection
    . Try again
    0x6 registered sensor drivers
    a : IMX390-UB953_D3
    b : AR0233-UB953_MARS
    c : AR0820-UB953_LI
    d : UB9xxx_RAW12_TESTPATTERN
    e : UB96x_UYVY_TESTPATTERN
    f : GW_AR0233_UYVY
    Select a sensor above or press '0' to autodetect the sensor : a
    Sensor selected : IMX390-UB953_D3
    LDC Selection Yes(1)/No(0) : LDC Selection Yes(1)/No(0) : 1
    Querying IMX390-UB953_D3
    61.835916 s: ISS: Querying sensor [IMX390-UB953_D3] ... !!!
    61.836048 s: ISS: Querying sensor [IMX390-UB953_D3] ... Done !!!
    61.836056 s: ISS: Initializing sensor [IMX390-UB953_D3], doing IM_SENSOR_CMD_PWRON ... !!!
    61.836263 s: ISS: Initializing sensor [IMX390-UB953_D3], doing IM_SENSOR_CMD_CONFIG ... !!!
    [MCU2_0] 61.836140 s: IMX390_PowerOn : chMask = 0x0
    [MCU2_0] 62.542315 s: Configuring IMX390 imager 0x40.. Please wait till it finishes
    [MCU2_0] 62.542536 s: Error : I2C Timeout while writing 0x7f to IMX390 register 0xc
    [MCU2_0] 62.542574 s:
    [MCU2_0] 62.542590 s:
    [MCU2_0] 62.542618 s: IMX390: Sensor Reg Write Failed for regAddr 0xc

  • Are you sure you are using RCM version of the imx390 sensor? Can you please check it? This version is by default supported in SDK.

  • Hi,

    My camera sensor is IMX390CQV-W

  • hi li,

    is the camera modules from D3?

    Regards,

    Brijesh

  • Hi,

    I am so sorry, I don't know what is camera module.

  • Does it look same as shown in below link?

    www.d3engineering.com/.../

  • hello

    We did not buy the camera from this D3 company, and the configuration of the camera is similar.


    optical format: 1/2.7 inch              It's the same as our camera

    Device Comms Addresses:Serializer (DS90UB953): 0x18 (7b)Sensor (IMX390): 0x1A (7b)    It's the same as our camera

  • Hello Li,

    There is a same question on the below thread, lets continue our discussion on that thread, so closing this thread.

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1049536/tda4vm-single-camera-demo-for-imx390-ub953-question/3893469#3893469

    Regards,

    Brijesh