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.

DMAI can't detect sensor input in dm365evm?

After connecting the Leopard HD5M-02 board to the dm365evm, the demo from the Leopard Co. can be running normally.

But after insmod the sensor driver and run the dvsdk encoding demo, the demo doesn't work. And the message is as below:

root@192.168.0.41:/opt/dvsdk/dm365# ./encode -v /tmp/tmp.264 -y 3

Encode demo started.
MUX: initialized GPIO40
mt9p031 chip version reg = 1801
mt9p031_set_format_params height = 1919, width = 2559
i2c_adapter i2c-0: TVP2002 - clocks per line detected = 0
Error: Failed to detect video standard, video input connected?

 

I checked both the code from Leopard & dvsdk demos. I found that the Leopard codec using the VPFE V4L2 Capture driver and the dvsdk demo using the DMAI driver.

Can DMAI driver using to capture the Leopard images? Because I have to capture image in Jpeg formats to evaluate the quality of the system. So I have to capture the

video from Leopard board and encode them to jpeg format.  It seems difficult to combine 2 code using different drivers together.

Thanks for any advice!

Best regards!

  • DMAI is a thin application layer library (as opposed to kernel layer driver) that sits on top of the kernel drivers.  The main purpose of DMAI is to make application development easier, by having the DMAI layer take care of talking to the more complex driver APIs.  That said, an application does not have to use DMAI and can bypass it and talk to driver directly (as in the case of Leopard application).  However, since there is only one video capture port, only one application (DMAI driven or not) can have that video port at any one time.

    Therefore, yes you can combine the two, but as you guessed, it will take some work.