OG02B10 2MP Color Global Shutter external trigger with Raspberry

  1. Where did you get the camera module(s)?
    Uctronics.com

  2. Model number of the product(s)?
    OG02B10 2MP Color Global Shutter

  3. What hardware/platform were you working on?
    Raspberry PI 4b/ Raspbian GNU/Linux 11 (bullseye)

  4. Instructions you have followed. (link/manual/etc.)
    Installed with:

$ wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
$ chmod +x install_pivariety_pkgs.sh
$ ./install_pivariety_pkgs.sh -p libcamera_dev
$ ./install_pivariety_pkgs.sh -p libcamera_apps
$ ./install_pivariety_pkgs.sh -p kernel_driver

  1. Problems you were having?
    Cannot operate the trigger:
    [email protected]:~$ v4l2-ctl -c trigger_mode=1
    unknown control ‘trigger_mode’

  2. The dmesg log from your hardware?
    [email protected]:~ $ dmesg | grep arducam
    [ 9.167122] arducam: loading out-of-tree module taints kernel.
    [ 9.190199] arducam-pivariety 10-000c: firmware version: 0x10002
    [ 9.919818] arducam-pivariety 10-000c: Consider updating driver arducam-pivariety to match on endpoints

  3. Troubleshooting attempts you’ve made?
    Looked for a solution through google but could not find something helpful.

  4. What help do you need?
    Instructions on how to make the trigger work.

It looks like something is missing:

[email protected]:~/Downloads $ libcamera-still --list-cameras
[0:51:23.295550058] [5578]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:51:23.315855966] [5579]  WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 'arducam-pivariety'
[0:51:23.315905577] [5579]  WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[0:51:23.315936484] [5579] ERROR CameraSensor camera_sensor.cpp:551 'arducam-pivariety 10-000c': Camera sensor does not support test pattern modes.
[0:51:23.325727071] [5579] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
[0:51:23.705722204] [5579]  WARN RPI raspberrypi.cpp:1233 Mismatch between Unicam and CamHelper for embedded data usage!
[0:51:23.706153590] [5579] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:51:23.706304292] [5579]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media3 and ISP device /dev/media0
Available cameras
-----------------
0 : arducam-pivariety [1600x1300] (/base/soc/i2c0mux/[email protected]/[email protected])
    Modes: 'SBGGR10_CSI2P' : 1280x720 1600x1080 1600x1300 
'SBGGR8' : 1280x720 1600x1080 1600x1300 

Additional info:

[email protected]:~ $ uname -a
Linux raspberrypi 5.10.103-v7l+ #1530 SMP Tue Mar 8 13:05:01 GMT 2022 armv7l GNU/Linux
[email protected]:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
[email protected]:~ $ cat /proc/meminfo
MemTotal:         943788 kB
MemFree:          149796 kB
MemAvailable:     595272 kB
Buffers:           34844 kB
Cached:           506228 kB
SwapCached:            0 kB
Active:           101400 kB
Inactive:         572936 kB
Active(anon):        832 kB
Inactive(anon):   189288 kB
Active(file):     100568 kB
Inactive(file):   383648 kB
Unevictable:       45156 kB
Mlocked:              16 kB
HighTotal:        184320 kB
HighFree:           1140 kB
LowTotal:         759468 kB
LowFree:          148656 kB
SwapTotal:        102396 kB
SwapFree:         102396 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        178452 kB
Mapped:           179344 kB
Shmem:             62388 kB
KReclaimable:      21000 kB
Slab:              39680 kB
SReclaimable:      21000 kB
SUnreclaim:        18680 kB
KernelStack:        1984 kB
PageTables:         5728 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      574288 kB
Committed_AS:    1213764 kB
VmallocTotal:     245760 kB
VmallocUsed:        5136 kB
VmallocChunk:          0 kB
Percpu:              528 kB
CmaTotal:         262144 kB
CmaFree:           73116 kB
[email protected]:~ $ cat /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# 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 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
frambuffer_width=1600
framebuffer_height=1024

# 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

# 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

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
enable_uart=1
# disable bluetooth
dtoverlay=disable-bt
dtoverlay=arducam

[email protected]:~ $ v4l2-ctl -c trigger_mode=1
unknown control 'trigger_mode'
[email protected]:~ $ dmesg | grep arducam
[    9.029464] arducam: loading out-of-tree module taints kernel.
[    9.041030] arducam-pivariety 10-000c: firmware version: 0x10002
[    9.661950] arducam-pivariety 10-000c: Consider updating driver arducam-pivariety to match on endpoints

Thank you very much for your information,
please try:

v4l2-ctl -l -d /dev/v4l-subdev0
v4l2-ctl -d /dev/v4l-subdev0 -c trigger_mode=1

For more information please refer to: