Please Help... Multi Camera Adapter Module V2.2 with 2 ov5647 doesnt works

i have been handle this for week, i cant handle this anymore… i dont know what to do plz help
i wanna handle opencv but i cant do that because of this

camera modules : 2 of Arducam ov5647
raspberry pi ver : 4B 4GB
OS: rasbian legacy(buster)

i followed

multi camera adapter v2.2 manual

But at ‘sudo apt install -y python3-kms++ python3-libcamera’
it saids, unable to locate package python3-kms+

im new on arducam forum, so i cant upload 2 links

lots of rpi update and upgrade etc

config.txt---------------------------------------------------------------------------------------------

For more options and information see

Raspberry Pi Documentation - Configuration

Some settings may impact device functionality. See link above for details

uncomment if you get no picture on HDMI for a default “safe” mode

#hdmi_safe=1

uncomment this if your display has a black border of unused pixels visible

and your display can output without overscan

#disable_overscan=1

uncomment the following to adjust overscan. Use positive numbers if console

goes off screen, and negative if there is too much border

#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

uncomment to force a console size. By default it will be display’s size minus

overscan.

#framebuffer_width=1280
#framebuffer_height=720

uncomment if hdmi display is not detected and composite is being output

#hdmi_force_hotplug=1

uncomment to force a specific HDMI mode (this will force VGA)

#hdmi_group=1
#hdmi_mode=1

uncomment to force a HDMI mode rather than DVI. This can make audio work in

DMT (computer monitor) modes

#hdmi_drive=2

uncomment to increase signal to HDMI, if you have interference, blanking, or

no display

#config_hdmi_boost=4

uncomment for composite PAL

#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

Uncomment some or all of these to enable the optional hardware interfaces

dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
dtparam=i2c_vc=on

Uncomment this to enable infrared communication.

#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

Additional overlays and parameters are documented /boot/overlays/README

Enable audio (loads snd_bcm2835)

dtparam=audio=on

[pi4]

Enable DRM VC4 V3D driver on top of the dispmanx display stack

dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
gpu_mem=256
enable_uart=1
dtoverlay=w1-gpio

start_x=1
#dtoverlay=ov5647
dtoverlay=camera-mux-4port,cam0-ov5647,cam3-ov5647

i connected on A and D port, then ‘libcamera-hello list’ shows two cameras connected.


pi@raspberrypi:~ $ cd libcamera-install/libcamera-apps/build
pi@raspberrypi:~/libcamera-install/libcamera-apps/build $ ./libcamera-hello --list
Available cameras

0 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36)
Modes: ‘SGBRG10_CSI2P’ : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]
1 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36)
Modes: ‘SGBRG10_CSI2P’ : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]

pi@raspberrypi:~ $ sudo dmesg | grep ov5647
[ 7.771320] platform video-mux: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36
[ 7.952379] platform video-mux: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36
[ 8.330975] ov5647 23-0036: Consider updating driver ov5647 to match on endpoints
[ 8.350186] ov5647 26-0036: Consider updating driver ov5647 to match on endpoints

pi@raspberrypi:~/libcamera-install/libcamera-apps/build $ vcgencmd get_camera
supported=1 detected=0, libcamera interfaces=1

pi@raspberrypi:~/RaspberryPi/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2_python $ sudo chmod +x init_camera.sh
pi@raspberrypi:~/RaspberryPi/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2_python $ sudo ./init_camera.sh
----Test i2c1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – 0c – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – 36 – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: 70 – – – – – – –
----Detecting the /dev/video0 device
video0 detected!
—Start testing each camera
if all of them are normal, after it finished,you will see four image in the current path.
Start testing the camera A
sh: 1: libcamera-still: not found
Start testing the camera B
sh: 1: libcamera-still: not found
Start testing the camera C
sh: 1: libcamera-still: not found
Start testing the camera D

pi@raspberrypi:~ $ cd libcamera-install/libcamera-apps/build
pi@raspberrypi:~/libcamera-install/libcamera-apps/build $ ./libcamera-still
Made X/EGL preview window
[0:00:45.534355972] [1046] INFO Camera camera_manager.cpp:298 libcamera v0.0.5+22-76e1cb9f
[0:00:45.887121305] [1047] INFO RPI vc4.cpp:390 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media2
[0:00:46.032385342] [1047] INFO RPI vc4.cpp:390 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36 to Unicam device /dev/media4 and ISP device /dev/media2
[0:00:46.036319472] [1046] INFO Camera camera.cpp:1028 configuring streams: (0) 1296x972-YUV420
[0:00:46.038132027] [1047] INFO RPI vc4.cpp:512 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:00:47.142002989] [1047] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[16:cap]: Dequeue timer of 1000000.00us has expired!
[0:00:47.142138860] [1047] ERROR RPI pipeline_base.cpp:1321 Camera frontend has timed out!
[0:00:47.142192804] [1047] ERROR RPI pipeline_base.cpp:1322 Please check that your camera sensor connector is attached securely.
[0:00:47.142246101] [1047] ERROR RPI pipeline_base.cpp:1323 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!

i did everything i found to do this… but i think that there’s no other way plz help me

i think that i properly connected cameras and adapter but i uploaded pics just in case

@Drdrg

This multiplexer already has a new method of use and related tutorials
https://docs.arducam.com/Raspberry-Pi-Camera/Multi-Camera-CamArray/Quick-Start-Guide-for-Multi-Adapter-Board/

i already tried this but didnt work.
black screen and show error
@Edward

@Drdrg

Can you send me the log you use?(Please use the latest method, the old method has been abandoned)

@Edward
aight im gonna try

@Edward

i connected camera on ‘camera A’ and ‘camera D’ ports on the multicamera uladapter
i reset sd card then re-install bullseye 64bit, and i followed that
i do add this line on config.txt
dtoverlay=camera-mux-4port,cam0-ov5647,cam3-ov5647

then

asdf@raspberrypi:~ $ vcgencmd get_camera
supported=1 detected=0, libcamera interfaces=1
asdf@raspberrypi:~ $ libcamera-hello --list
Available cameras

0 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36)
Modes: ‘SGBRG10_CSI2P’ : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]
1 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36)
Modes: ‘SGBRG10_CSI2P’ : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]
asdf@raspberrypi:~ $ libcamera-hello --list
Available cameras

0 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36)
Modes: ‘SGBRG10_CSI2P’ : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]
1 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36)
Modes: ‘SGBRG10_CSI2P’ : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]
asdf@raspberrypi:~ $ libcamera-still -t 0 --camera 0
Made X/EGL preview window
[0:01:01.566906425] [1144] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:01:01.606396869] [1145] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 to Unicam device /dev/media0 and ISP device /dev/media2
[0:01:01.617572665] [1145] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36 to Unicam device /dev/media0 and ISP device /dev/media2
[0:01:01.618531832] [1144] INFO Camera camera.cpp:1028 configuring streams: (0) 1296x972-YUV420
[0:01:01.618843776] [1145] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:01:03.233770979] [1145] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[17:cap]: Dequeue timer of 1520000.00us has expired!
[0:01:03.233867461] [1145] ERROR RPI raspberrypi.cpp:1984 Unicam has timed out!
[0:01:03.233889349] [1145] ERROR RPI raspberrypi.cpp:1985 Please check that your camera sensor connector is attached securely.
[0:01:03.233910461] [1145] ERROR RPI raspberrypi.cpp:1986 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
[0:01:04.837759052] [1145] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[17:cap]: Dequeue timer of 1520000.00us has expired!
[0:01:04.837853608] [1145] ERROR RPI raspberrypi.cpp:1984 Unicam has timed out!
[0:01:04.837875089] [1145] ERROR RPI raspberrypi.cpp:1985 Please check that your camera sensor connector is attached securely.
[0:01:04.837895626] [1145] ERROR RPI raspberrypi.cpp:1986 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!

what the…

May 27 09:04:24 raspberrypi mtp-probe: checking bus 1, device 7: “/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1”
May 27 09:04:24 raspberrypi mtp-probe: bus: 1, device: 7 was not an MTP device
May 27 09:04:24 raspberrypi mtp-probe: checking bus 1, device 7: “/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1”
May 27 09:04:24 raspberrypi mtp-probe: bus: 1, device: 7 was not an MTP device
May 27 09:04:25 raspberrypi kernel: [ 505.152301] scsi 0:0:0:0: Direct-Access Generic STORAGE DEVICE 1404 PQ: 0 ANSI: 6
May 27 09:04:25 raspberrypi kernel: [ 505.154264] sd 0:0:0:0: Attached scsi generic

@Edward

here’s the log

@Drdrg
Camera 3 also not work?
libcamera-still -t 0 --camera 2

From the information, it can be seen that the driver and device tree have been successful, and there may be problems with the hardware part, the camera or the flexible cable.

A good way to verify is to not use the multi-camera multiplexer first. Use a camera alone, configure dtoverlay=ov5647
This will rule out camera, flex cable or multiplexer issues first

@Edward

cam 3 also not work

dtoverlay=ov5647 with single cam connect directly to rpi works…(even with another single aliexpress ov5647 cam) but with multicam adapter, it doesnt work. it shows nothing

so you think that mutiflexer is defective

@Drdrg
This is indeed not a normal phenomenon, the ov5647 device tree is officially provided. I can try it for you. Is your ov5647 ours or the official Raspberry Pi? If you bought it from us, Could you provide a sku number?

@Drdrg

I tested it and everything is fine

Could you please modify the configuration file

sudo vi /boot/config.txt

image