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

Graphics, sound and multimedia • Trouble with using tc358743 on Raspberry Pi 5

$
0
0
Hello. I'm trying to implement software for rendering an image captured using TC358743 (X630 ver 1.5 made by Geekworm) to HDMI on Raspberry Pi 5.

I have referred to the following content.

viewtopic.php?p=2156480#p2156480
viewtopic.php?p=2165888#p2165888

X630 connected to CAM/DISP1 on RPi5.

I checked the device init and device node.

Code:

admin@raspberrypi:~/gstreamer_test $ dmesg | grep tc35*[    5.667490] rp1-cfe 1f00128000.csi: found subdevice /axi/pcie@120000/rp1/i2c@80000/tc358743@f[    5.985892] rp1-cfe 1f00128000.csi: Using sensor tc358743 4-000f for capture[    6.057918] tc358743 4-000f: tc358743 found @ 0x1e (Synopsys DesignWare I2C adapter)admin@raspberrypi:~/gstreamer_test $

Code:

admin@raspberrypi:~/gstreamer_test $ v4l2-ctl --list-devicespispbe (platform:1000880000.pisp_be):        /dev/video20        /dev/video21        /dev/video22        /dev/video23        /dev/video24        /dev/video25        /dev/video26        /dev/video27        /dev/video28        /dev/video29        /dev/video30        /dev/video31        /dev/video32        /dev/video33        /dev/video34        /dev/video35        /dev/video36        /dev/video37        /dev/media1        /dev/media2rp1-cfe (platform:1f00128000.csi):        /dev/video0        /dev/video1        /dev/video2        /dev/video3        /dev/video4        /dev/video5        /dev/video6        /dev/video7        /dev/media0rpivid (platform:rpivid):        /dev/video19        /dev/media3
I set v4l2-ctl, media-ctl.

Code:

v4l2-ctl -d /dev/v4l-subdev2 --set-edid=file=1080P30EDID.txtv4l2-ctl -d /dev/v4l-subdev2 --set-dv-bt-timings query# reset linksmedia-ctl -d /dev/media0 -r# set formatsmedia-ctl -d /dev/media0 -l ''\''csi2'\'':4 -> '\''rp1-cfe-csi2_ch0'\'':0 [1]'media-ctl -d /dev/media0 -V ''\''csi2'\'':0 [fmt:RGB888_1X24/1280x720 field:none colorspace:srgb]'media-ctl -d /dev/media0 -V ''\''csi2'\'':4 [fmt:RGB888_1X24/1280x720 field:none colorspace:srgb]'v4l2-ctl -v width=1280,height=720,pixelformat=RGB3
I checked the media node.

Code:

admin@raspberrypi:~/gstreamer_test $ media-ctl -d /dev/media0 -pMedia controller API version 6.1.63Media device information------------------------driver          rp1-cfemodel           rp1-cfeserialbus info        platform:1f00128000.csihw revision     0x114666driver version  6.1.63Device topology- entity 1: csi2 (8 pads, 8 links)            type V4L2 subdev subtype Unknown flags 0            device node name /dev/v4l-subdev0        pad0: Sink                [fmt:RGB888_1X24/1280x720 field:none colorspace:smpte170m]                <- "tc358743 4-000f":0 [ENABLED,IMMUTABLE]        pad1: Sink                [fmt:unknown/8192x1 field:none]        pad2: Sink                [fmt:SRGGB10_1X10/640x480 field:none colorspace:raw xfer:none ycbcr:601 quantization:full-range]        pad3: Sink                [fmt:SRGGB10_1X10/640x480 field:none colorspace:raw xfer:none ycbcr:601 quantization:full-range]        pad4: Source                [fmt:RGB888_1X24/1280x720 field:none colorspace:smpte170m]                -> "rp1-cfe-csi2_ch0":0 [ENABLED]                -> "pisp-fe":0 []        pad5: Source                [fmt:unknown/8192x1 field:none]                -> "rp1-cfe-embedded":0 []        pad6: Source                [fmt:SRGGB10_1X10/640x480 field:none colorspace:raw xfer:none ycbcr:601 quantization:full-range]                -> "rp1-cfe-csi2_ch2":0 []                -> "pisp-fe":0 []        pad7: Source                [fmt:SRGGB10_1X10/640x480 field:none colorspace:raw xfer:none ycbcr:601 quantization:full-range]                -> "rp1-cfe-csi2_ch3":0 []                -> "pisp-fe":0 []- entity 10: pisp-fe (5 pads, 7 links)             type V4L2 subdev subtype Unknown flags 0             device node name /dev/v4l-subdev1        pad0: Sink                [fmt:SRGGB16_1X16/640x480 field:none colorspace:raw xfer:none ycbcr:601 quantization:full-range]                <- "csi2":4 []                <- "csi2":6 []                <- "csi2":7 []        pad1: Sink                [fmt:FIXED/8192x1 field:none]                <- "rp1-cfe-fe_config":0 []        pad2: Source                [fmt:SRGGB16_1X16/640x480 field:none colorspace:raw xfer:none ycbcr:601 quantization:full-range]                -> "rp1-cfe-fe_image0":0 []        pad3: Source                [fmt:SRGGB16_1X16/640x480 field:none colorspace:raw xfer:none ycbcr:601 quantization:full-range]                -> "rp1-cfe-fe_image1":0 []        pad4: Source                [fmt:FIXED/8192x1 field:none]                -> "rp1-cfe-fe_stats":0 []- entity 16: tc358743 4-000f (1 pad, 1 link)             type V4L2 subdev subtype Unknown flags 0             device node name /dev/v4l-subdev2        pad0: Source                [fmt:RGB888_1X24/1280x720 field:none colorspace:srgb]                [dv.caps:BT.656/1120 min:640x350@13000000 max:1920x1200@165000000 stds:CEA-861,DMT,CVT,GTF caps:progressive,reduced-blanking,custom]                [dv.detect:BT.656/1120 1280x720p60 (1650x750) stds: flags:]                [dv.current:BT.656/1120 1280x720p60 (1650x750) stds: flags:]                -> "csi2":0 [ENABLED,IMMUTABLE]- entity 18: rp1-cfe-csi2_ch0 (1 pad, 1 link)             type Node subtype V4L flags 0             device node name /dev/video0        pad0: Sink                <- "csi2":4 [ENABLED]

After verifying everything, I proceeded to execute the following:
# Get some images
v4l2-ctl --stream-mmap=3 --stream-count=1000 --stream-to=/dev/null

However, I couldn't observe any results, and upon checking the debug messages, I found the following content:

[ 1668.540796] rp1-cfe 1f00128000.csi: Unable to determine sensor link rate, using 999 Mbps

To resolve such an issue, what should be done? Is the configuration incorrect?

Statistics: Posted by redbus73 — Fri Feb 02, 2024 4:52 pm — Replies 0 — Views 27



Viewing all articles
Browse latest Browse all 4876

Trending Articles