ArmSoM
← All stories

When Two Identical USB Cameras Swap Places After Reboot

A dual-camera Sige7 application may assign the left view to the right window after a reboot. Linux video device numbering can change as devices appear. A camera may also expose more than one video node. Resolve the identity of each capture stream before opening it.

ArmSoM Sige7 single-board computer product photo

ArmSoM Sige7 single-board computer · ArmSoM

Choose a physical or device identity

Inspect the persistent paths the image provides and the device capabilities. If the cameras offer unique serial numbers, associate each serial with its role. If their identifiers are identical, a fixed USB topology can distinguish the left and right sockets. Verify the capability and pixel formats of the chosen node instead of assuming every node delivers the same stream.

Swap the two physical cameras once. A mapping that follows the device serial serves a calibration record. A mapping that stays with the jack serves a fixed viewing position. Pick the behavior the application requires.

Cover one lens and restart with both cameras attached. Repeat after disconnecting only that device. Save the physical port labels with the mapping and make the application report a missing camera instead of silently promoting the other view.

Reference material

ArmSoM Sige7 hardware documentation

udev device properties and persistent symlinks

Linux Video4Linux capture interface

Related ArmSoM guide

MIPI CSI vs USB cameras for an arm SBC project

Explore ArmSoM Sige7