广告广告位招商联系 ads@irunion.comA5 · 728×90(移动端 320×100) · 参考价 ¥300/月了解详情 →

A degraded camera link never says link error: the symptom-to-layer map for dropped frames, torn images and pose jitter

Started by marcuslin · 2026-11-18 06:32 UTC · 30 views · 2 replies
M Member
A degraded camera link almost never reports itself as a link error. It reports as "the robot misses a part occasionally", "the image tears at the bottom", or "grip pose is a bit off on this line". By the time someone checks the cable, three weeks of yield data have already been lost.

The mapping from symptom to layer is the useful part. Here is the one we work to.

Bandwidth first, because it looks like an error
Reference numbers: Camera Link Base at 85 MHz with 24-bit pixels is ~255 MB/s; CoaXPress CXP-6 is 6.25 Gbps per lane, up to four lanes; GigE Vision is ~120 MB/s; 10GigE is ~1.1 GB/s.
- If the symptom is "frames drop at the end of a long sequence, fine at the start", it is a bandwidth or flow-control problem, not a link error. A 5 MP camera at 60 fps in 8-bit is 300 MB/s - above Camera Link Base and near GigE's limit once overhead is counted. Dropping the last frames of a burst is the queue draining, not the cable failing.
- If the symptom is a horizontal black band or a torn half-frame, that is a CRC or packet loss event. On Camera Link it usually means connector seating, bend radius, or PoCL voltage drop at the far end; on GigE it means jitter buffers and lost packets.

PoCL and cable length, with a number
At 10 m of Camera Link cable carrying 1 A of PoCL current, the voltage drop from the conductor resistance is roughly 1 V. If the camera needs 12 V ±5% and sees 11 V, it may boot but drop frames under load. Measure at the camera end, not at the frame grabber. The same class of problem appears on longer runs with thin conductors: everything passes at bench temperature, then fails inside a 40 °C enclosure where the camera draws more current.

Trigger timing is a different layer, and it is where "pose jitter" comes from
If the image is clean but the pick pose wanders, stop looking at the link. Measure the trigger path: encoder edge to exposure start. A 1 ms motion cycle with a 200 μs trigger jitter at 500 mm/s gives 0.1 mm of position uncertainty before any vision error - enough to move a grip outside tolerance. Put a scope on the trigger line at the camera, not at the PLC output; the difference between the two is the optocoupler and cable delay, and it is usually the larger term.

What the frame grabber counters should tell you, in order
1. CRC / link error count per second. Growing at all is a physical-layer problem: connector, bend, PoCL, or a cable that got pinched by a cable carrier.
2. Missed trigger count. Non-zero with clean CRC means the trigger hardware, not the link.
3. Overrun / dropped buffer count. Points at host-side bandwidth: PCIe lane allocation, RAID contention, or an antivirus scan on the frame buffer path.
4. Timestamp drift between cameras. Multi-camera sync depends on a shared trigger or PTP; drift shows up as a slowly changing inter-camera offset, never as an error.

Three misreads we see repeatedly
- Replacing the camera when the cable is the problem. The new camera works for two weeks because the connector was re-seated during the swap, then the symptom returns.
- Turning up exposure or gain to "stabilize" the image when the real issue is dropped frames. Longer exposure makes motion blur worse and hides nothing.
- Treating occasional half-frames as a software bug. Half-frames are almost always a physical-layer event; software does not produce a clean horizontal cut line.

Open question: for a multi-camera cell on a moving gantry, do you put the trigger distribution in the frame grabber, or in a separate encoder-splitter with equal-length cables? We have seen the second approach buy 100 μs of skew consistency, and I would like to know what others measure.

Disclosure: we build fiber extenders and optical links for industrial vision, at F-tone Networks (fiberuni.com); the numbers above are from our own integration work.
R Member
这张症状到层次的映射表很实用,尤其是把“长序列末尾丢帧”和“半帧撕裂”分开:前者我们遇到基本是队列和带宽问题,曾经把采集卡换槽位、给到满速通道就好了;后者确实多半是物理层,有一次就是龙门拖链里线缆弯曲半径不够,特定行程才出黑带,换线时顺带把接头重新压接才彻底解决。关于文末的开放问题,移动龙门上我们倾向把触发分配放在龙门电控柜里就近分发,控制器只发一路同步源,这样触发抖动不随拖链长度漂;代价是柜内要多一块分配板,维护时要多查一个节点。你们多相机同步是用共享触发还是 PTP?
G Member
结论:症状只能用来生成假设,不能直接定层;半帧撕裂既可能是物理层,也可能是驱动或应用缓冲复用、传输中止,必须用同一时间窗内的帧序号、行计数、校验和链路计数器以及龙门位置做关联,再决定换线还是改队列。建议先固定“源端真相”:相机侧逐帧记录 sequence ID、有效行数、帧起止时间、触发计数、CRC 或传感器错误标志;主机侧记录同一帧的到达时间、缓冲索引、DMA ring full、内核丢帧和驱动不完整帧标志。整帧缺失且序号跳变、源端无行错误或 CRC 错误,优先查带宽突发、采集队列深度、IRQ 合并和热降频,长序列末尾丢帧不能只归因带宽;出现短帧、行计数不足或链路 CRC、对齐、符号错误,才把物理层和 SerDes 列为首要嫌疑;整帧完整但像素异常,再查压缩、ECC、屏蔽与接地。

排查按三步走:第一步,同窗口对齐相机、主机和交换机或 PHY 计数器,用一秒滑窗看主机丢帧时源端是否干净,源端干净说明问题在主机取帧或队列,源端已有错误则继续往下查;第二步,做不改变帧率的突发控制测试,例如增大包间隔、限速或减少 burst,若丢帧消失而链路错误不变,偏向队列或带宽问题,若错误随运动位置和拖链周期出现,则记录位置并检查弯曲半径、接头应力和屏蔽连续性;第三步,单独隔离位姿抖动,静态靶标且无丢帧时若图像稳定而位姿散,先查触发时间戳与主机到达抖动、标定和编码器口径,若位姿跳变与序号缺口相关,则是融合用了过期帧。移动龙门场景尤其要把链路事件和位置一起记录,否则主机侧只看到丢帧,看不到换线前的重训练或 CRC 事件。局限是不少相机不暴露链路纠错计数,且降帧率、降分辨率会掩盖物理层问题,只能作为定位手段,不能当作修复。
广告广告位招商联系 ads@irunion.comA6 · 728×90(移动端 320×100) · 参考价 ¥200/月了解详情 →
Log in or register to reply.