
The M1126-EV-Board introduces 1 channel of 4-channel MIPI-CSI digital camera, using a 0.5mm 32Pin FFC connector for digital signal communication, as shown in Figure 1, with signal definitions as shown in Table 1.

Figure 1 MIPI-CSI Camera Interface

This article will use the MIPI camera-demo-6188 camera as an accessory for the M1126-EV-Board evaluation board. This camera supports 1 to 4 channels of serial camera input and 1 channel of MIPI CSI output, as shown in Figure 2.

Figure 2 MIPI camera-demo-6188 Camera Accessory
The nvp6188 supports two resolutions: 1920×1080 and 1280×720, with a default of 1920×1080. You can set the resolution using the following commands:
$ media-ctl -vvv -d /dev/media0 --set-v4l2 '"m01_b_nvp6188 3-0030":0[fmt:YUYV8_2X8/1280x720]'$ media-ctl -vvv -d /dev/media0 --set-v4l2 '"m01_b_nvp6188 3-0030":0[fmt:YUYV8_2X8/1920x1080]'
$ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=1280,height=720,framerate=25/1 ! queue ! videoconvert ! waylandsink
The preview image is shown in Figure 3:

The preview image requires a screen. When the AHD analog camera is not connected, the output will show the test color bar from the nvp6188. If the AHD analog camera is connected, the camera image should be seen under normal conditions. The corresponding 4 video device nodes for the nvp6188 are: /dev/video0, /dev/video1, /dev/video2, /dev/video3.
If no screen is connected, you can also record video data and then copy it to a PC for playback:
$ v4l2-ctl -d /dev/video1 --set-fmt-video=width=1920,height=1080,pixelformat=NV12 --stream-mmap=5 --stream-skip=3 --stream-to=/userdata/myvideo.nv12 --stream-count=250 --stream-poll # dffplay -i myvideo.nv12 -f rawvideo -pixel_format nv12 -s 1920x1080 /* Execute in Ubuntu terminal */
Technical Exchange Group






