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: Some question about Vision_apps

Part Number: TDA4VM
Other Parts Discussed in Thread: TP120

Hi TI members:

In our project design, there are three deserializers in out board.

1.  DS90UB962W ( will connect to a 360 CAMERA )

2.  DS90UB936  ( will connect to a FRONT CAMERA )

3.  MAX96706 ( will connect to a DMS CAMERA )

Because we still not receive camera sample now, 

We are studying to use deserializer to gerenate test pattern and output to our DP。

So there are few questions can you give us some suggestions?

1. For gerenate test pattern and output to DP, is there any vision_apps demo can let us reference?

2. If we receive the camera sample, which vision_apps demo will suggest us to be reference?

below references app is my plan now, can you help to confirm is it suitable or suggest us another better app?

- DS90UB962W ( will connect to a 360 CAMERA ) : Multi Camera VPAC Application

- DS90UB936  ( will connect to a FRONT CAMERA ) : Single Camera VPAC Application

- MAX96706 ( will connect to a DMS CAMERA ) : Single Camera VPAC Application

BR

Sentinen Chen

  • Hi Chen,

    We don't have exact example for color bar/test pattern configuration in Desserializer and display it on DP. But you could update existing application like single cam example, configure desserializer to output test pattern and can display it over DP..

    Rgds,

    Brijesh 

  • Hi Brijesh:

    Thanks for your reply.

    If I want to test the Deserializer DS90UB926QSQE to generate pattern and out to DP on J721E EVM board ,

    Will you have any patch, files or scripts can provide us to reference? 

    BR

    Sentinen Chen

  • Hi Chen,

    No, i don't have scripts to generate color bar from UB962. 

    What you could do is, update the SERDES settings for one of the existing sensor for the Ub962 color bar output and check with existing demo. 

    Regards,

    Brijesh

  • Hi Brijesh:

    Thanks your reply.

    May I I interpert your suggestion as 

    1. one console control SERDES register through I2C bus

    2. one console run vision_apps test case

    Is my understanding correct? 

    And one more question

    I find there is one test case tivxHwaCaptureDisplay in tiovx test_caputre_display.c, 

    but in h file,

    Do you know which application in vision apps can replace this test case?

    BR

    Sentinen Chen

  • Hi Chen,

    You could conformance test in the openvx to run these test case. You need to enable this test case and run it as vx_app_conformance.exe/bin..

    I am not sure how will use two console. But yes, if you could change the settings somehow and configure ub962 to output color bar, then can run one of the example to view output.. 

    Rgds,

    Brijesh

  • Hi Brijesh:

    Sorry to brother you again.

    I try to enable test case "tivxHwaCaptureDisplay" by modify /tiovx/kernels_j7/hwa/test/test_main.h

    but  after I check vision_apps/out/J7A72/debug/vx_app_conformance.out.map content or run "./vx_app_conformance.out --list_tests" on EVM board,

    I still can't find test case "tivxHwaCaptureDisplay" even I clean-build the vision_apps. 

    Do you have document about how to enable tivxHwaCaptureDisplay in conformance test? 

    BR

    Sentinen Chen

  • Hi Brijesh:

    Please ignore my previous questions, 

    I find I need build tiovx first, and build vision_apps on second steps.

    then I can get what I want. 

    BR

    Sentinen Chen

  • Hi Brijesh:

    Sorry to brother you.

    I try to modify test_capture_display.c for capture form DS90UB926 pattern.

    But I find in Capture Initlization define(tivx_capture_inst_parameters_t)

    It seem "tivx_capture_inst_parameters_t" is used for Deserializer who supported CSI data bus.

    If I want to ceate a capture node for DS90UB926, 

    How can I define this part?

    or I need another structure for DS90UB926?

    BR

    Sentinen Chen

  • Hi Chen,

    Not the capture parameters, you need to update the deserializer parameters. Please follow this example, I think it uses sensor driver in utils folder. you need to update it for color bar output.

    Rgds,

    Brijesh

  • Hi Brijesh:

    Yes, if I didn't study wrong file, 

    I think test_capture_display.c will use appImx390Config function in vision_apps/utils/sensors/src/app_sensors.c 

    and it just do four things through I2C Bus in this function

    Configure UB960 -> Configure UB953 -> Configure IMX390 --> Enable UB960 CSI port

    Because I want to test UB926, I mark origin part code of four things , and re-build vision_apps first.

    and then I follow below steps under linux to test:

    1. Init vision_apps 

    # cd /opt/vision_apps

    # ./vision_apps_init.sh

    2. Pull High pca6408 Pin2 & Enable UB926 default internal timing pattern generate (follow snla132e.pdf)

    # i2cset -f -y 5 0x20 0x3 0xfa

    # i2cset -f -y 5 0x20 0x1 0xff

    # i2cset -f -y 5 0x2c 0x65 0x03

    # i2cset -f -y 5 0x2c 0x64 0x31

    3. Run the re-build testcase

    # ./vx_app_conformance.out --filter=tivxHwaCaptureDisplay.CaptureDisplayLoopback1

    Right now my testcase will wait-lock on vxGraphParameterDequeueDoneRef function. 

    This is why I start to doubt capture parameters.

    Do your have any suggestions? 

    BR

    Sentinen Chen

  • Hi Chen,

    This essentially means capture is not capturing any data. There could be multiple reasons.

    1, can you check if lane position, direction, polarity are all matching?

    2, Can you check ub962 is enabled to output over CSI2interface?

    3, Can you check if lane speed is matching with the configured lane speed?

    Rgds,

    Brijesh

  • Hi Brijesh:

    1, can you check if lane position, direction, polarity are all matching?

    Ans:  I just try the DS90UB926 on TI EVM board(J7X COMMON PROCESSOR BOARD), not our customer board.

    I already to measure MCASP11_ACLKX on TP120 & R599, I can see a output clock successfully on my step2 finished. 

    and I also check MUX_SEL0/1/2 on U44 - SN74CBT16214CDGGR, the mode is "A port = B1 port" after linux boot finished.

    2, Can you check ub962 is enabled to output over CSI2interface?

    3, Can you check if lane speed is matching with the configured lane speed?

    Ans: Same as answer1, I try DS90UB926 on  TI EVM board, not ub962. (page 41 on "J7X COMMON PROCESSOR BOARD" schemtics)

    There is no CSI2 interface in DS90UB926  datasheet description,

    and this is why I ask how to set captureNode for UB926.

    BR

    Sentinen Chen

  • Hi Chen,

    I did not get it. 

    Capture node supports only CSI interface, for video data capture... If you are connecting a non CSI interface, then capture node will not be useful. 

    Rgds,

    Brijesh

  • Hi Brijesh:

    Thanks for yout reply. 

    I still have a few questions

    1. if captureNode can't be used for non CSI interface, then what origin purpose is for DS90UB926 on J7X COMMON PROCESSOR BOARD. 

    2. Follow question1, is there any demo will use DS90UB926? I need to study how to capture frame form DS90UB926. 

    BR

    Sentinen Chen

  • Hi Chen,

    I am not sure what you are trying to do. 

    Did you check the schematic and confirmed that the UB926 is connected to CSI input? If it is not, how can it capture over CSI?

    I would suggest to check schematic and use the module accordingly. 

    Regards,

    Brijesh

  • Hi Brijesh:

    Did you check the schematic and confirmed that the UB926 is connected to CSI input? If it is not, how can it capture over CSI?

    ==> Yes, we sure that UB926 is not connected to CSI input on J7X COMMON PROCESSOR BOARD.

    As this thread's first content, we will have there deserializer on our customer board in the furture,

    there are two deserializers(UB962, UB936) work on CSI interface, and one deserializer(MAX96706) work on VPFE interface.

    So my task now just do some research that

    1. how the vision_apps work between camera & DP

    2. how can we modify it when frame come from the deserializer's internal generated pattern.

    And because we didn't have the Fusion1 board and 1x IMX390 camera,

    we only can test on UB926 which this is only one on-board Deserializer on J7X COMMON PROCESSOR BOARD now.

     

    So back to my last questions,

    I can't understand if tiovx API "captureNode" only support CSI interface Deserializer,

    then what is the UB926 purpose on board? and what demo will use the UB926?

    Maybe I can study it first and reference it for our deserializer(MAX96706). 

    If my description is unclear, 

    please let me know,

    Thanks a lot.

    BR

    Sentinen Chen

  • Hi Brijesh:

    I think I am into a misunderstanding.

    After check TRM again,

    I find MsASP is a audio interface, not video interface.

    so there is no capture frame form UB926 when I enable UB926 gerenated pattern is a normal situation.

    Please ignore my last questions, 

    Thanks a lot!!!

    BR

    Sentinen Chen