Choosing the Interface Before You Choose the Camera

Engineering Note · Selection

Most integration failures we are asked to diagnose are not sensor failures. They are interface decisions taken before the sensor was chosen — and by the time the enclosure is machined, they are expensive to reverse.

There are four interfaces you will be offered: UVC over USB, vendor-specific USB 3.0, MIPI CSI-2, and GigE. They are not ranked. Each one fails in a different place, and the place where it fails is the thing you should decide first.

The order to decide in

Decide in this order, and stop at the first constraint that binds:

  1. Cable run. If the camera sits more than a few metres from the host, most of the options are already gone.
  2. How many cameras on one host. Bandwidth is per controller, not per port count.
  3. Who controls the OS image. If you cannot install a driver, you need a class-compliant device.
  4. How tight the timing has to be. Software trigger versus hardware trigger is a different class of system.
  5. Only then resolution, frame rate and sensor.

Most teams do this in reverse — they pick a sensor, then discover the cable run or the driver policy is wrong.

The four interfaces, by where they fail

Constraint UVC over USB Vendor USB 3.0 MIPI CSI-2 GigE
Driver freedom Class driver, no install on Windows, Linux, macOS Vendor SDK per OS; kernel constraints You own the SoC integration Standard stack, but switch configuration matters
Practical cable run 3 m passive; 5 m with good cable; beyond that active or optical Same as UVC — it is the same physical layer Tens of centimetres; this is a board-level connection 100 m on standard cabling
Bandwidth per link Shared across all devices on the controller Shared across the controller Per lane, set by sensor and SoC 1 Gbps per link, dedicated
Multi-camera on one host Constrained by controller bandwidth, not port count Same Constrained by SoC lane count One link per camera; scales with switch ports
Exposure and trigger control Limited to what the firmware exposes Full register access Full, at the sensor level Depends on the camera’s own firmware
Host cost per camera Lowest Low Highest — you are building the host Switch and cabling cost

UVC: what “driver-free” actually buys you

UVC is a USB device class. The operating system already contains the driver, so the camera enumerates as a standard video device. That is a real advantage: your customer can plug it into a locked-down Windows image or a Linux box without an administrator, and it works.

What you give up is control. Exposure, gain, white balance and frame timing are limited to what the module’s firmware chooses to expose as UVC controls. Many modules implement only the mandatory subset. Hardware trigger is usually absent, and when present, latency is not characterised.

UVC is the right answer when the host is somebody else’s computer. It is the wrong answer when you need a deterministic frame timing for a closed-loop system.

Vendor USB 3.0: control at the cost of a driver

Vendor-specific USB gives you register-level access: real hardware trigger, strobe output, precise exposure, and often a larger frame buffer. The price is a driver per operating system, a kernel module that has to match, and an upgrade path you no longer control.

This is the right answer for a machine you build and ship yourself, where you own the OS image and can pin the driver version. It is a poor answer for a product where the end user supplies the PC.

MIPI: cheapest per unit, most expensive to integrate

MIPI CSI-2 is the sensor’s native interface. You skip the USB controller entirely, which is why the module itself can be smaller and cheaper than a UVC equivalent. What you take on instead is everything the USB controller used to do for you: the receiver, the ISP, the format conversion, and the driver.

The cable length is the constraint that surprises people. MIPI is a board-level differential interface measured in centimetres, not metres. If your probe has to reach two metres, MIPI alone will not get there without a serialiser.

This is why our MIPI modules ship without a decoder board and we say so in the first line of the product page. A buyer who expects a USB camera and receives a bare MIPI module has bought a problem, not a component.

GigE: the only option that survives a long cable

GigE Vision runs on standard Cat5e/Cat6 with a 100 m limit, and Power over Ethernet removes a separate supply. For a production line where the camera mounts on a gantry 30 m from the cabinet, this is the only one of the four that works without repeaters.

The cost is bandwidth per link: 1 Gbps is roughly 125 MB/s before protocol overhead, and in practice around 110 MB/s reaches your application. A 5 MP camera at 30 fps will not fit on one link.

The arithmetic you should do before anything else

Frames per second is the last thing to check, not the first. Start from bytes per second:

bytes per second = width × height × bytes per pixel × frames per second

Worked example, using our own stereo module: 3840 × 1080 at 60 fps, 8-bit mono.

  • 3840 × 1080 = 4,147,200 pixels per frame
  • × 1 byte = 4.15 MB per frame
  • × 60 fps = 248.8 MB/s

USB 3.0 Gen 1 signals at 5 Gbps. With 8b/10b encoding the ceiling is 500 MB/s, and a controller in practice delivers roughly 350–420 MB/s to the application once protocol overhead and other devices on the same controller are accounted for.

So one 3840 × 1080 stream at 60 fps consumes most of a USB 3.0 controller on its own. Two of them need two controllers — not two ports. This is the single most common mistake we see in multi-camera designs.

Where this arithmetic stops being valid. It assumes uncompressed 8-bit mono. Colour doubles or triples the byte count before compression. If your pipeline compresses on the module, quote the compressed rate and the CPU cost of decoding separately — they are different budgets.

Cable length is a specification, not a suggestion

USB 3.0 passive cables are specified to about 3 m for full signal integrity. Good 5 m cables usually work. Beyond that you need an active cable or an optical link, and both add cost and a failure mode. We have seen 8 m passive runs “work” on a bench and drop frames on a line after the cable was routed next to a servo drive.

If your cable run is 8 m and you have chosen USB, you have chosen the wrong bus — no amount of module quality fixes it.

When this note does not apply

  • You are replacing a camera in an existing machine. The interface is already fixed. Work backwards from it and ignore this note.
  • You need sub-frame latency for a closed loop. Only MIPI or a hardware-triggered setup qualifies; the bus choice is secondary to the trigger design.
  • Six cameras in one enclosure. Plan controllers, not ports. GigE is usually the simpler answer.
  • The end user supplies the PC. Assume you cannot install anything. UVC.

Before you commit to an interface, answer these five:

  • Longest cable run, in metres, as routed — not as drawn.
  • How many cameras, and how many controllers will they share?
  • Can you install a driver on the production PC? Who signs off on OS changes?
  • Is the trigger hardware or software, and what latency does the loop tolerate?
  • What is the byte budget per second, calculated rather than assumed?

What we build, and what we do not

We build UVC modules and MIPI modules. We do not build GigE cameras. If your binding constraint is a 100 m cable run, we are the wrong supplier and it is cheaper for both of us if that is established in the first email rather than the third month.

Figures for USB 3.0 and GigE throughput in this note are typical values for Gen 1 hardware and standard Ethernet, stated so you can do the arithmetic. They are not guarantees for a specific controller; measure your own host before you fix a frame rate in a specification.

Send us the constraint that binds