I have two EXACT same uvc unity cameras that have no serial number so I have abandoned mounting them via some unique attribute. Instead I specifically looking to mount it via the usb port I have plugged them into
- Camera 1 PLUGS ONLY INTO USB Port 1
- Camera 2 PLUGS ONLY INTO USB Port 2
I wrote the udev rule like so
SUBSYSTEM=="usb", KERNELS=="2-2.2", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", NAME="video0", MODE="0666", SYMLINK+="video0"
SUBSYSTEM=="usb", KERNELS=="2-2.3", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", NAME="video1", MODE="0666", SYMLINK+="video1"
However, this still does not work they get crossed it only depends on which device gets recognized first