Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4670

General discussion • Stream UYVY 8 bit from MIPI CSI-2 Sensor

$
0
0
Hello,
I'm working on interfacing a MIPI CSI-2 sensor with RPI 5.

Details of sensor Interface:
Data lanes : 4
Pixel Format : YUV422 8-bit
THS-Zero : 170ns
THS-PREAPRE : 59ns
Data Rate Mbps/lane : 600Mbps/lane

As of now In RPI 5 we had already interfaced a Sensor which streams with YUV422 16bit, but now with new sensor it is YUV422 8bit. Now I have few questions related to interfacing


1. How to set pixel format for UYVY 8 bit.
For 16 bit UYVY we could able to run below commands

Code:

v4l2-ctl --list-devicesmedia-ctl -d /dev/media2 -rmedia-ctl -d /dev/media2 -V "'Driver_mipi 11-003c':0 [fmt:UYVY/1920x1080]"media-ctl -d /dev/media2 -l ''\''csi2'\'':4 -> '\''rp1-cfe-csi2_ch0'\'':0 [1]'media-ctl -d /dev/media2 -V ''\''csi2'\'':0 [fmt:UYVY/1920x1080 field:none colorspace:srgb]'media-ctl -d /dev/media2 -V ''\''csi2'\'':4 [fmt:UYVY/1920x1080 field:none colorspace:srgb]'v4l2-ctl  -v width=1920,height=1080,pixelformat=UYVYv4l2-ctl --stream-mmap=3 --stream-count=1000 --stream-to=/dev/null
2. For starting MIPI Frame packets THS-Prepare and THS-Zero timing parameters are very important how to configure them in RPI 5?
3. Same for Data rate how to control it?

Statistics: Posted by maverick_24 — Thu Jan 23, 2025 7:28 pm — Replies 0 — Views 26



Viewing all articles
Browse latest Browse all 4670

Trending Articles