how to test csi parallel image sensor on imx6q, gstreamer or other tools?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how to test csi parallel image sensor on imx6q, gstreamer or other tools?

跳至解决方案
1,767 次查看
lampo
Contributor I

I am testing csi parallel CMOS sensor , 8 bit gray raw image, monochrome on imx6q, kernel version 3.14.52.
I have modified some source code to use CSI-MEM path according to this thread:
https://community.nxp.com/thread/306822
and when i modprobe my camera( mt9v034.ko), it seems ok(show below),

but we don't know how to use gstreamer ,or any other test tools to capture & display images/video?

if I type: gst-launch-1.0 imxv4l2src device=/dev/video0 , then it shows,
......
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
Can't get caps from capture device, use the default setting.
Perhaps haven't capture device.

if I type: gst-launch-1.0 v4l2src device=/dev/video0 ,then it shows,
......
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Addition[ 225.983933] MVC: In mxc_free_frame_buf
al debug info:
/build/linuxdev/o[ 225.990515] In MVC:mxc_free_frames
e-core_V2.6b2/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/libs/gst/base/gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.295034666
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

I find someone advise mxc_v4l2_capture.out  to test, but  where is this file and how to use it? 

root@apalis-imx6:~# modprobe mt9v034_camera
[ 62.510235] In mt9v034_init
[ 62.514332] in mt9v034_probe
[ 62.517581] mt9v034 3-0048: set io voltage ok
[ 62.522202] mt9v034 3-0048: set core voltage ok
[ 62.527182] mt9v034 3-0048: set analog voltage ok
[ 62.531981] In mt9v034_power_on
[ 62.535198] mt9v034 3-0048: mt9v034_write: writing 0x0001 to 0x0c of chip 0x48
[ 62.555767] In MVC: mxc_v4l2_master_attach
[ 62.559878] slave.name = mt9v034
[ 62.563402] master.name = mxc_v4l2_cap0
[ 62.567505] In ioctl_dev_exit
[ 62.570477] In ioctl_s_power
[ 62.573383] In mt9v034_power_off
[ 62.576617] In ioctl_g_fmt_cap
[ 62.579678] End of mxc_v4l2_master_attach: v2f pix widthxheight 288 x 352
[ 62.586491] End of mxc_v4l2_master_attach: crop_bounds widthxheight 640 x 480
[ 62.593666] End of mxc_v4l2_master_attach: crop_defrect widthxheight 640 x 480
[ 62.600895] End of mxc_v4l2_master_attach: crop_current widthxheight 640 x 480
[ 62.608150] mxc_v4l2_master_attach: ipu0:/csi0 parallel attached mt9v034:mxc_v4l2_cap0

0 项奖励
回复
1 解答
1,051 次查看
igorpadykov
NXP Employee
NXP Employee

please refer to Chapter 6 Image Processing Unit (IPU) Drivers

attached Linux Manual.

For gstreamer gray format please post question on gstreamer forums.

Best regards
igor

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,051 次查看
igorpadykov
NXP Employee
NXP Employee

Hi glb

gray camera is not supported in BSPs by default and code

modifications are needed. Please check

https://community.freescale.com/message/331888

IPU - bayer pattern conversion | NXP Community 

Monochrome camera support in i.MX6 

IPU has not special processing for raw data, so nxp gstreamer plugins

do not support this format also. One can use common gstreamer gray format

support.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,051 次查看
lampo
Contributor I

Appreciate  for your advice.  I have working on debugging the image senor for nearly a  month, felt great pressure. Could u tell  me 

where is the buffer or memory address  that  stores the  grey  image captured  by csi on imx6q?

 and how to type the command  as " gstreamer gray format"?  

thanks a lot!

0 项奖励
回复
1,052 次查看
igorpadykov
NXP Employee
NXP Employee

please refer to Chapter 6 Image Processing Unit (IPU) Drivers

attached Linux Manual.

For gstreamer gray format please post question on gstreamer forums.

Best regards
igor

0 项奖励
回复