2026-10-30

12.8 ns of clock and 16.5 us of frame alignment: a four-layer sync budget for robot data capture

RV1126BRK3576PTPTime SynchronizationData CaptureRobot LearningForlinx
12.8 ns of clock and 16.5 us of frame alignment: a four-layer sync budget for robot data capture

Imitation learning and teleoperation both stop improving at the same place, and it is not the model. It is the data. A robot arm that was taught by demonstration is only as good as the correspondence between what the cameras saw, what the wrist was doing and what the chassis was doing at that instant, and the correspondence is the part that distributed hardware keeps losing.

A capture rig usually puts cameras on the head, the chest and each wrist, adds an inertial unit or two, and spreads the electronics across several boards because no single board has enough camera connectors. Each board keeps its own clock. Each board decides on its own when to start. The result is a dataset where the images are individually fine and collectively useless, because the same moment in the world landed in four files at four different timestamps.

Forlinx has published a reference build for this problem, and what makes it worth reading is not the hardware list. It is that the vendor measured the error one layer at a time instead of quoting a single number, which turns an architecture claim into four figures a reader can check against their own requirement.

Three ways a rig loses time

The article opens with three failure modes, and the first two are arithmetic rather than opinion.

The first is independent oscillators. Two boards that agree on the time at power-on will not agree tomorrow, and the gap is set by the crystal. At 50 parts per million, one day is 86,400 seconds and the drift is 4.32 seconds. Nothing in software notices, because each board's clock is self-consistent.

The second is stamping where the data arrives instead of where it was made. A timestamp written when the application receives a frame includes the ISP pipeline, the buffer queue and the scheduler wait that preceded it, which the article puts in the tens of milliseconds and varying per frame. That error cannot be corrected later, because the information about when the exposure actually started has already been discarded.

The third is free-running cameras. At 30 frames per second a frame period is 33.3 milliseconds, and two cameras that started independently have a phase offset somewhere under that, drifting as their crystals diverge. Averaging over a session does not help; the offset is not noise.

The rig

Role Part Notes
Master and recorder Forlinx OK3576-C Five MIPI CSI inputs, multi-ISP, hardware H.265 encode at 4K60
Terminal, two of them Forlinx OK1126B-S One camera plus the inertial sensor per wrist
Cameras 4 x MIPI modules Two on the master, one per terminal, decoded into a 2 x 2 mosaic
Transport Gigabit switch and cabling PTP on the wired path, NTP or Wi-Fi TSF on the wireless one
Operating system Linux 6.1 with the PREEMPT_RT patch Rockit for the media pipeline

The dataflow is the conventional one, done properly. Each terminal waits for a start packet from the master, raises a trigger at the agreed instant so the sensor begins exposing, timestamps the frame at the start of readout rather than on arrival, encodes to H.265, and writes the timestamp into a per-frame SEI message that travels with the bitstream. The master reorders the fragments, requests retransmission of what it lost, parses the SEI back out, and groups frames whose timestamps are closest. The mosaic is decoded in hardware and composited by the 2D engine.

Two details in that list carry most of the value. The timestamp is taken at the frame start, in the driver, which is the only place where the value still refers to the physical world. And it is transported inside the video stream rather than in a side channel, so a dropped or reordered packet cannot separate a frame from its own time.

Four layers, four different quantities

The measurement is where the article earns its space. Sync is split into four layers, each one measured on its own.

Layer What was measured Reported figure
1. Clock alignment PTP with hardware timestamping, offset between processor clocks 12.807 ns mean absolute deviation
2. Trigger distribution PWM driving the sensor FSYNC pin, two cameras on one board 0.5 us mean deviation
3. Cross-board start One start instant broadcast over UDP, local triggers enabled at that time 10.77 us mean latency
4. Frame matching Residual after grouping the four streams by start-of-frame timestamp 13.9 to 16.5 us mean absolute difference

Four rows, four numbers spanning three orders of magnitude, and they are not four estimates of the same thing. Reading them as if they were is the mistake this table invites.

Reading the numbers honestly

The 12.807 nanoseconds is a clock offset. It says the boards agree on what the current time is, to about the time light takes to travel four metres. It says nothing about when any camera exposed anything, and it is a property of layer one alone.

The 0.5 microseconds is exposure start on a single board, where two sensors are driven from the same local PWM. That is the number that matters for a stereo pair sharing one terminal, and it is the tightest of the four for a reason: no network is involved.

The 10.77 microseconds is a mean latency, not a skew. A constant delay in delivering the start instant is harmless as long as every board receives it with the same constant delay, because the local trigger timing absorbs it. What would break the scheme is the spread of that latency, and the article publishes the mean without the spread. The fourth row is the evidence that the spread is small — if the start instant had jittered by a hundred microseconds, the frame matching could not land in a 16 microsecond band. But evidence is not a figure, and the worst case is the figure a safety case needs.

The 13.9 to 16.5 microseconds is the only number that describes the dataset. Everything above it is an intermediate quantity that either cancels or does not.

Against a 33.3 millisecond frame period, 16.5 microseconds is 0.05 percent. That sounds like the problem is solved, and for the cameras it is. The inertial sensor is the harder constraint, because it samples faster than the cameras do. At 200 Hz its sample interval is 5 milliseconds and 16.5 microseconds is 0.33 percent of it. At 1 kHz the interval is 1 millisecond and the same error is 1.65 percent. A rig that records the inertial unit at a kilohertz is being asked for a tighter budget than the frame alignment figure suggests, which is why the IMU timestamp usually deserves its own layer in the budget rather than being folded into the camera one.

Where the scheme can still break

What transfers

The design principle is one sentence long: timestamp at the source, in hardware, and carry the timestamp with the sample. Everything else in the build is an implementation of it. Stamping at the sink is not a cheaper version of the same thing, it is a different and unfixable measurement.

The second principle is about the trigger. Asking each node to start when it receives a message puts the network in the timing path. Broadcasting one agreed instant and letting each node fire its own local timer takes the network out of it, leaving only the clock domain as the thing that has to be right.

The third is the layer table itself. A single sync figure quoted on a data sheet is unverifiable. Four figures, each attached to a named mechanism and a named measurement, can be checked against a requirement, and the one that does not fit is easy to identify. That format is worth copying even when the numbers come from your own bench.

IOTTourChina covers China-made IoT and edge hardware as part of its developer resource. This is editorial coverage, not an endorsement or an advertisement; specifications, availability and pricing should be confirmed with the vendor or a distributor before you buy.

← All news