Using a USB camera with Rugged SOM

Rugged SOM’s USB connection was designed primarily for device mode, rather than as a plug-and-play host port. The processor supports host mode, but we haven’t yet validated a USB camera on Rugged SOM. There are three things to check:

1. USB host mode

Our OpenWrt source enables both host and device support. You can check over SSH whether the USB role control is available:

ls /sys/bus/platform/devices/ci_hdrc.*/role

If it is present, identify the controller connected to J6 before attempting to switch it to host as root. Don’t change every matching controller.

This approach is based on the source code and has not yet been tested on the board. After switching roles, check the system log to see whether the camera is detected on the USB bus.

2. Camera driver and software

A USB Video Class (UVC) camera uses Linux’s standard UVC driver. On OpenWrt, the relevant package is kmod-video-uvc. We haven’t confirmed that it’s included in every Rugged SOM image, and any kernel module must match the exact running firmware build.

Once the powered camera is connected, check the system log for USB enumeration and uvcvideo detection. Then check that the corresponding /dev/video* device belongs to the camera. Capturing or streaming video also requires suitable application software.

3. Camera power

J6 does not supply 5 V to a USB peripheral. Switching to host mode does not change this, so the camera needs an external 5 V supply. Check the cabling, ground reference and VBUS arrangement before connecting it.

In short, USB-camera support may be possible, but it requires host-mode verification, matching software and external power. It isn’t currently a validated plug-and-play configuration.