Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Why a DS90UB960 camera board can lose frames only with both streams enabled

Two industrial cameras feed a DS90UB960-Q1. Either camera works on its own. Starting both leaves the inputs locked but occasionally costs a frame at the host. Calculate what each CSI-2 output must carry. The board's 25 MHz active oscillator references the deserializer. Input lock provides evidence about the corresponding receiver link. Carrying multiple image streams through an output port is a separate capacity test.

Map each camera to its actual output

In TI's forwarding path, video from each input is buffered and routed to a selected CSI-2 transmitter. A given buffer can only be assigned to one transmitter at a time. In best-effort round robin, the virtual channel and data type identify each source. Do not assume the packets alternate in a fixed sequence. Input activity and correct stream identification at the host are two checks. Software port indices may also differ from virtual channel numbers on the wire.

Give each camera a distinct test pattern. Run the first alone and record physical input, output, virtual channel, data type and frame count. Repeat for the second camera. If one disappears when both start, verify that it reaches the expected output and that they are not combined as one stream by the host. Compare throughput only after checking mapping. Note whether the loss is concentrated at stream startup or occurs throughout the run.

Check the active pixel load before considering overhead

Suppose each camera sends 1,280 by 960 active pixels at 60 frames per second in RAW12. One stream carries 1280 × 960 × 60 × 12 = 884.736 Mbit/s of pixels. Two carry 1.769472 Gbit/s. Routing both to one transmitter with two lanes at 800 Mbit/s gives only 1.6 Gbit/s of raw capacity. Active pixels already exceed the link rate before headers, checks and line transitions. A tighter oscillator tolerance or a repeated input-lock check cannot supply that missing capacity.

Four lanes at 800 Mbit/s give 3.2 Gbit/s of raw capacity. That removes the immediate arithmetic impossibility. The difference alone is not a usable bandwidth guarantee. TI accounts for per-line overhead, forwarding mode and continuous versus noncontinuous clocking. Use actual line length, bit width, mode and additional transmitted data. When cameras deliver lines together, short-term buffering can see more demand than a frame average suggests. Exercise the actual line phase conditions as well.

Separate reference continuity, setup and capacity

The example 25 MHz active oscillator has a 40 ns reference period. TI requires continuous reference and specifies the input frequency range and levels. Measure at or near the deserializer while both streams run. The configured 800 Mbit/s describes the output lane rate, a different function. If the reference stops, investigate that condition first. With continuous reference and stable individual streams, compare a supported output-lane change to test the capacity hypothesis.

Two reversible tests are useful. First leave the lane configuration alone and reduce one camera to a supported lower frame rate. Then restore the original frame rates and enable more lanes supported by the board and receiver, or route the inputs to separate outputs as allowed. Save output settings, receiver errors and full-frame counts. If failures persist at lower load, establish whether line packets are missing, frame boundaries are misread or a host buffer drops data first.

Define the count before investigating receiver errors. Save lines, frame boundaries and sequence numbers per source, then use the same capture window. Restarting both camera drivers can erase counters that explain the transition. Keep camera settings fixed, save state before and after enabling both, then initialize again. Record a partial startup frame separately from sustained losses. Read back the lane count after both cameras start so a second initialization cannot silently replace it.

For a failure limited to heat or long cables, first reduce load while keeping both sources active and see whether the environment still changes the result. Then keep load and use a verified short cable for a separate comparison. The two tests help distinguish remote input errors from congestion near the host. If both changes help, retain the raw capture and identify which port reported an error first.

Start one camera before the other and also start both close together. Verify that the host recognizes both sources through its normal startup sequence. Check frame sequence continuity for missing or repeated frames even when average counts look acceptable. Keep the 25 MHz active oscillator specification and reference trace alongside both formats, output assignment and sustained dual-stream results. A replacement sample can then be compared with the same load and counting rules.

References

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.