OG02B10 2MP Color Global Shutter external trigger with Raspberry

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

  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="11 (bullseye)"
[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

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border

# uncomment to force a console size. By default it will be display's size minus
# overscan.

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

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

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes

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

# uncomment for composite PAL

#uncomment to overclock the arm. 700 MHz is the default.

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

# Uncomment this to enable infrared communication.

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

# Enable audio (loads snd_bcm2835)

# Automatically load overlays for detected cameras

# Automatically load overlays for detected DSI displays

# Enable DRM VC4 V3D driver

# Disable compensation for displays with overscan

# 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.


# Run as fast as firmware / board allows

# disable bluetooth

[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: