# 硬件同步

> 用一根线同步相机和 IMU：硬件触发与频闪输出、相机传感器上的主从帧同步、genlock、曝光中点对齐、USB（UVC）相机能给你什么和不能给你什么、相机–IMU 硬件同步、GigE 相机上的 PTP，以及 GPS 秒脉冲。

Page: https://egocam.ai/zh-cn/sync/hardware-sync/

硬件同步指的是由电信号来传递时序。线上的一个脉冲告诉每台相机何时开始一帧，或者由一个共享时钟在每个采样产生的那一刻给它打上时间戳。这是最精确的一类同步，也是唯一能让曝光真正同时发生的一类。它的代价是接线，以及要求相机引出了合适的引脚。

本页默认读者已掌握[为什么同步很重要](https://egocam.ai/zh-cn/sync/why-sync-matters/)中的词汇：偏移、漂移、曝光中点、延迟和抖动。

## 硬件触发：主相机与副相机

硬件触发（hardware trigger）是加在相机触发输入上的一个数字脉冲。在触发模式下，相机不再自由运行（free-run）；它等待脉冲，然后采集一帧。把同一个脉冲送给多台相机，它们就一起采集。

Teledyne FLIR 的应用说明 [TAN2016008, Configuring Synchronized Capture](https://www.teledynevisionsolutions.com/globalassets/support/iis/application-notes/tan2016008-configuring-synchronized-capture.pdf) 定义了目标："Synchronized capture is when two or more cameras are capturing images at the same time (within microseconds of each other)."（意为：同步采集是指两台或更多相机在同一时刻采集图像（彼此相差在几微秒以内）。）它描述了两种产生脉冲的方式：

- **由其中一台相机产生**。"One method of doing this is when one "primary" camera is used to trigger one or more "secondary" cameras, using the primary camera's strobe."（意为：一种做法是用一台“主”相机，通过它的频闪输出，去触发一台或多台“副”相机。）频闪输出（strobe，或 strobe output）是相机的一条输出线，相机曝光时它的状态会改变。主相机（primary）自由运行；副相机（secondary）跟随它。
- **由外部信号源产生**。"Any hardware trigger that provides a 3.3 V or 5 V square wave TTL signal can trigger the cameras."（意为：任何能提供 3.3 V 或 5 V 方波 TTL 信号的硬件触发源都可以触发这些相机。）微控制器、函数发生器或专用的同步板都能做到。

这两个角色的旧称是主（master）和从（slave）。容易让人出错的细节在电气和工作模式这两方面：

- **输出类型**。在输出为光耦隔离（opto-isolated）或开漏（open-drain）的相机上，频闪输出需要一个上拉电阻才能驱动另一台相机的输入。这样的输出像一个接地的开关：它能把线拉低，却不能把线驱动到高电平，所以如果没有接到电源电压的电阻，开关断开时这条线就处于悬空状态，副相机看不到干净的边沿。FLIR 的说明给出了具体型号的阻值，并提醒它的接线方式 "been tested with only one secondary camera"（意为：只用一台副相机测试过）。
- **触发重叠**。如果副相机在还在读出上一帧时不能接受新的触发，它就会每隔一个脉冲跳过一个。FLIR 的说明列出了这种故障："Secondary camera captures images at half the frame rate of the primary camera"（意为：副相机采集图像的帧率只有主相机的一半），原因是 "The secondary camera isn't using overlapping triggering"（意为：副相机没有使用重叠触发）。
- **逻辑电平**。各种输入并不相同。Raspberry Pi Global Shutter Camera 的触发输入是 "a 1.8 V input, so you might need a level shifter or potential divider"（意为：1.8 V 输入，所以你可能需要电平转换器或分压器）（[Raspberry Pi camera documentation](https://www.raspberrypi.com/documentation/accessories/camera.html#external-trigger)）。Arducam 针对 Jetson 上的全局快门模组的指南使用 "a 3.3V trigger signal"（意为：3.3V 的触发信号），并说 "The trigger signal pulse duration will be fine from 1us ~ 1ms"（意为：触发信号的脉冲宽度在 1us ~ 1ms 之间都可以）（[Arducam external trigger application](https://docs.arducam.com/Nvidia-Jetson-Camera/Global-Shutter-Camera/external-trigger/)）。一定要核对你手上的那块板。

## 传感器级帧同步：XVS、XHS 和 FSIN

在相机模组之下，许多图像传感器自己就有帧时序引脚。名称各不相同：Raspberry Pi 为其采用 Sony 传感器的相机写的文档使用 XVS（垂直同步）和 XHS（水平同步），而 Arducam 在一份指南里把它的 OmniVision OV9281 模组的触发输入叫作 FSIN，在另一份里叫作 XVS。每个引脚做什么、模组有没有把它引出来，都取决于具体的传感器和电路板，所以唯一可靠的依据是厂商的文档。下面是三家厂商文档中的说法。

| 相机 | 引脚 | 同步方式 | 来源 |
|---|---|---|---|
| Raspberry Pi High Quality Camera（Sony IMX477） | XVS | 一台相机作为 "source"（意为：源），"can be configured to generate a pulse on its XVS (vertical sync) pin when a frame capture is initiated."（意为：可以配置为在开始采集一帧时，在它的 XVS（垂直同步）引脚上产生一个脉冲。）其余相机作为 "sinks"（意为：接收端），"can listen for this pulse, and capture a frame at the same time as the source camera."（意为：可以监听这个脉冲，并与源相机同时采集一帧。） | [Raspberry Pi: synchronous captures](https://www.raspberrypi.com/documentation/accessories/camera.html#synchronous-captures) |
| Raspberry Pi Global Shutter Camera（Sony IMX296） | XTR（外部触发），或 XVS 和 XHS | 推荐做法：给每台相机的 XTR 送脉冲。替代做法：把 XVS 和 XHS 连在一起，但有一点要注意："The source records one extra frame before the sink starts recording."（意为：在接收端开始录制之前，源会多录一帧。） | [Raspberry Pi: synchronous mode (XVS)](https://www.raspberrypi.com/documentation/accessories/camera.html#synchronous-mode-xvs) |
| Arducam OV9281 模组 | 在它的 USB3 相机扩展板教程中是 FSIN；在它的 Jetson 指南中是 XVS | "The FSIN pin of the OV9281 camera is used to trigger the signal input."（意为：OV9281 相机的 FSIN 引脚用于触发信号输入。）该教程用一块 Arduino 以 100 µs、3.3 V 的脉冲驱动它。 | [Arducam: hardware trigger with external signal](https://docs.arducam.com/USB-Industrial-Camera/Connect-and-Sync-Multi-Stereo-Cameras/Hardware-Trigger-with-External-Signal/) |

Raspberry Pi 文档中有两条实用的提示适用范围很广。第一，被触发的相机的曝光由脉冲决定，所以必须让自动曝光不来干扰："always specify a fixed shutter duration, to ensure the AGC doesn't try to adjust the camera's shutter speed."（意为：一定要指定固定的快门时长，以确保 AGC 不会试图调整相机的快门速度。）第二，接收端相机等待的脉冲可能还没有来，所以需要把软件的超时调大："If the cameras don't all start within 1 second, the `rpicam` applications can time out"（意为：如果相机没有在 1 秒内全部启动，`rpicam` 应用可能会超时）（[Raspberry Pi: wired synchronisation](https://www.raspberrypi.com/documentation/computers/camera_software.html#wired-synchronisation)）。

Raspberry Pi 还指出，对 HQ Camera 来说，有线同步 "is largely superseded by software camera synchronisation"（意为：已基本被软件相机同步取代），后者见[软件同步页面](https://egocam.ai/zh-cn/sync/software-and-visual-sync/)。

## Genlock

据我们所知，genlock 这个词来自广播电视，在那里每台摄像机都把自己的时序锁定到一个共享的参考信号上。在机器视觉和深度相机的文档中，这个词用来指直接启动传感器曝光的触发。

FRAMOS 为其 D400e 深度相机（基于 Intel RealSense D400 模组）写的指南通过比较两种模式，把这个区别讲得很具体（[FRAMOS: external event camera synchronization](https://docs.framos.com/en/latest/D400e/ApplicationGuides/ExternalEventCameraSynchronization.html)）：

| 模式 | 触发信号做什么 | 时序误差 |
|---|---|---|
| External Event（外部事件） | 相机保持 "in continuous mode at the requested frame rate"（意为：以设定的帧率处于连续模式）运行；收到脉冲时，它 "sends the next frame generated to the host"（意为：把产生的下一帧发送给主机）。 | "This variable delay (frame jitter) will never exceed the 1 frame readout time."（意为：这个可变延迟（帧抖动）绝不会超过 1 帧的读出时间。）在 30 Hz 下最多 33.33 ms。 |
| Genlock | "the input trigger signal starts the exposure window on the image sensor"（意为：输入的触发信号启动图像传感器上的曝光窗口）。仅限全局快门型号。 | 从脉冲到曝光有一个固定延迟，约 790–880 µs，取决于分辨率；深度帧和彩色帧的起点相差约 170–260 µs。 |

这个教训可以推广。一个只是选取下一个自由运行帧的*触发*并不是曝光同步；它留下最多一帧的抖动。要在相机的文档中寻找 "starts the exposure"（意为：启动曝光）这样的措辞。FRAMOS 还就是否相信相机自己给出的数字提出了一条告诫："Looking at the hardware timestamp values may not give correct information about this time difference, as they depend on the exposure value and some other factors."（意为：查看硬件时间戳的数值未必能得到关于这个时间差的正确信息，因为它们取决于曝光值和其他一些因素。）

## 曝光时间与快门同步

快门同步的意思是各次曝光一起发生。共用一个触发信号保证的是各次曝光一起开始。只有当每台相机使用相同的曝光时间时，这才等同于“一起发生”。

> **Diagram:** Two cameras triggered at the same instant but exposing for 1 ms and 10 ms. Their exposure midpoints, the instants the frames best represent, are 4.5 ms apart (top). Starting the longer exposure half its length earlier, as exposure-compensated triggering does, puts both midpoints at the same instant (bottom).

曝光时间不同时，各帧的中点相差曝光时间之差的一半（见[算例](https://egocam.ai/zh-cn/sync/why-sync-matters/)）。有三种处理办法：

1. **固定曝光**。每台相机使用相同的手动曝光。简单，但放弃了自动曝光。
2. **给中点打时间戳**。记录每一帧实际的曝光起点和时长，并把中点作为它的时间。TUM-VIE 的微控制器 "triggers the visual cameras, measures exposure start and stop timestamps and reads the IMU values"（意为：触发视觉相机，测量曝光开始和结束的时间戳，并读取 IMU 的数值），该数据集把 "the timestamp of an image as mid-exposure point"（意为：图像的时间戳定义为曝光中点）（[Klenk et al., 2021](https://arxiv.org/abs/2108.07329)）。这修正的是时间戳，不是曝光。
3. **平移每个触发，使中点对齐**。这就是 VersaVIS 的曝光补偿（[Tschopp et al., 2020](https://arxiv.org/abs/1912.02469)）："The idea is to trigger the camera for a periodic mid-exposure timestamp by starting exposure half the exposure time earlier to its mid-exposure timestamp"（意为：思路是让相机的曝光中点时间戳呈周期性，办法是比它的曝光中点时间戳提前半个曝光时间开始曝光）。触发板回读每台相机的曝光信号："The exposure time return signal is used to time the current exposure time and calculate the offset to the mid-exposure timestamp of the next image."（意为：曝光时间返回信号用来测量当前的曝光时间，并计算相对下一幅图像曝光中点时间戳的偏移。）对照一块 1 kHz 的 LED 计时板，作者的结论是 "the time synchronization of two cameras has an accuracy better than"（意为：两台相机的时间同步精度优于）0.5 ms。

VersaVIS 还支持一种主从（master-slave）双目模式，由一台相机的曝光信号触发另一台，所以一个双目对的曝光时序完全相同。

## USB 相机与 UVC

大多数 USB 网络摄像头和许多小型采集模组都遵循 USB Video Class（UVC）标准。UVC 有时序字段，但它们很容易被误解。

### UVC 时间戳提供什么

[UVC 1.5 规范](https://www.usb.org/document-library/video-class-v15-document-set)在每个有效载荷头（payload header）中定义了两个可选字段：

| 字段 | UVC 1.5 中的定义 |
|---|---|
| PTS，Presentation Time Stamp（显示时间戳） | "the source clock time in native device clock units when the raw frame capture begins"（意为：原始帧开始采集时的源时钟时间，以设备自身时钟的单位表示） |
| SCR，Source Clock Reference（源时钟参考） | 一个由两部分组成的值：一次设备时钟采样，加上 "a 1 KHz SOF counter, representing the frame number at the time the STC was sampled"（意为：一个 1 KHz 的 SOF 计数器，表示对 STC 采样时的帧号）。"STC must be captured when the first video data of a video frame is put on the USB bus."（意为：STC 必须在一个视频帧的第一段视频数据被放到 USB 总线上时采集。） |

SCR 的存在是为了让主机能把相机的时钟与 USB 总线时钟联系起来，并通过后者与计算机的时钟联系起来。规范说，这些字段 "allow the host software to reconstruct the source clock to support high-quality synchronization between separate data pipes (audio, video, etc.)"（意为：使主机软件能够重建源时钟，以支持各条独立数据管道（音频、视频等）之间的高质量同步）。它们在每个头中都有标志位（"D2: Presentation Time – This bit is set if the dwPresentationTime field is being sent as part of the header"（意为：D2：显示时间。如果 dwPresentationTime 字段作为头的一部分被发送，这一位就被置位）），所以相机可能根本不发送它们。

即使 PTS 完美无缺，它也是相机自己的时钟。两台 UVC 相机各自用自己的时钟给帧打时间戳；UVC 不会让它们一起曝光。

### Linux 上的主机端时间戳

在 Linux 上，`uvcvideo` 驱动用主机时钟给缓冲区打时间戳。`V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC` 标志的含义是 "The buffer timestamp has been taken from the CLOCK_MONOTONIC clock"（意为：缓冲区时间戳取自 CLOCK_MONOTONIC 时钟）（[V4L2 buffers](https://docs.kernel.org/userspace-api/media/v4l/buffer.html)）。驱动也可以改为通过 SCR 时钟恢复来换算相机的 PTS；这就是模块参数 `hwtimestamps`，驱动源码中对它的描述是 "Use hardware timestamps"（意为：使用硬件时间戳），不设置就是关闭的（[uvc_driver.c](https://github.com/torvalds/linux/blob/master/drivers/media/usb/uvc/uvc_driver.c)）。对于原始的头，内核提供了一种元数据格式 `V4L2_META_FMT_UVC`，它交付每个有效载荷头，并附带一个 "system timestamp in host byte order, measured by the driver upon reception of the payload"（意为：主机字节序的系统时间戳，由驱动在收到有效载荷时测得）和 USB 帧号（[V4L2 UVC metadata](https://docs.kernel.org/userspace-api/media/v4l/metafmt-uvc.html)）。

主机时间戳带有 USB 和操作系统的抖动。VersaVIS 测量了它自己的 USB 转串口链路：时钟残差 "keeps oscillating at ±5 ms due to usb jitter"（意为：由于 usb 抖动，一直在 ±5 ms 之间振荡），它的板载滤波器把这平滑到了 ±0.2 ms（[Tschopp et al., 2020](https://arxiv.org/abs/1912.02469)）。V4L2 文档对帧结束时的时间戳也很坦率："In practice, software generated timestamps will typically be read from the clock a small amount of time after the last pixel has been received"（意为：在实践中，软件生成的时间戳通常是在收到最后一个像素之后过一小段时间才从时钟读取的）。

### 带触发引脚的 USB 相机

UVC 本身定义了“硬件触发”，但它用于静态图像采集，不是帧同步："One of the defined usages of the Status Interrupt Endpoint is for hardware triggers to notify host software to initiate still image capture. When the hardware detects a button press, for example, the Status Interrupt Endpoint will issue an interrupt"（意为：状态中断端点已定义的用途之一，是让硬件触发通知主机软件发起静态图像采集。例如，当硬件检测到按键被按下时，状态中断端点会发出一个中断）。换句话说，就是相机上的一个按键。

USB 相机上的帧级同步来自厂商的硬件，它把传感器的触发信号引出到一个引脚，例如上文带 OV9281 模组的 Arducam USB3 扩展板，或 FRAMOS D400e 上的光耦隔离输入。如果一台 USB 相机的规格书没有写明触发或同步输入，就当它没有。

### 带宽与丢帧

USB 带宽由一个控制器上的所有设备共享。算一下：一路未压缩的 8 位 1280 × 800、100 fps 数据流是 1280 × 800 × 8 × 100 = 819 Mbit/s，超过了 USB 2.0 高速模式 480 Mbit/s 的信令速率。在 640 × 400 下是 205 Mbit/s。总线跟不上时，帧到达时不完整，或者根本不到。

丢帧会破坏任何靠数帧来同步的方案。Linux 的 `uvcvideo` 有一个针对不完整帧的参数，"Don't drop incomplete frames"（意为：不丢弃不完整的帧）（`nodrop`），V4L2 缓冲区带有一个 `sequence` 序号，"counting the frames (not fields!) in sequence"（意为：按顺序对帧（不是场！）计数），软件可以用它检测空缺。Raspberry Pi 的软件同步说明写道 "at higher framerates or depending on system load, it is possible for frames, either on the clients or server, to be dropped"（意为：在较高帧率下，或视系统负载而定，客户端或服务器上的帧都有可能被丢弃），并建议降低帧率、增加缓冲区或减轻负载。在 RocSync 的现场录制中，73 次录制里唯一的一次失败并不是同步方法造成的，"but rather to frame drops in the recordings from the Aria glasses"（意为：而是由于 Aria 眼镜的录制中出现了丢帧）（[Meyer et al., 2025](https://arxiv.org/abs/2511.14948)）。每次录制都要检查帧计数器和时间戳的空缺。

## IMU–相机硬件同步

IMU 需要和第二台相机一样的处理。Kalibr 的[相机–IMU 指南](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration)要求 "low jitter timestamps in same clock"（意为：同一时钟下的低抖动时间戳）。常见的硬件方式有三种。

| 方式 | 工作原理 | 有文档记载的例子 |
|---|---|---|
| 一个控制器同时触发两者 | 一个微控制器触发相机，并用它自己的时钟对 IMU 采样。 | VersaVIS 触发多台相机，并通过 SPI、I2C 或 UART 读取一个 IMU（[Tschopp et al., 2020](https://arxiv.org/abs/1912.02469)）。 |
| 控制器触发相机，并给 IMU 中断打时间戳 | IMU 的数据就绪中断引脚由控制器的时钟打时间戳。 | Faizullin et al.："This tool provides an electrical pulse right after every new IMU data sample is ready"（意为：这个工具在每个新的 IMU 数据采样就绪后立刻给出一个电脉冲）（[Faizullin et al., 2021](https://arxiv.org/abs/2107.02625)）。 |
| 控制器给相机的频闪输出打时间戳 | 相机自由运行；它的曝光输出在 IMU 的时钟上被打上时间戳。 | VersaVIS 读取每台相机的曝光返回信号；TUM-VIE 通过触发信号测量曝光的开始和结束（[Klenk et al., 2021](https://arxiv.org/abs/2108.07329)）。 |

硬件同步去除了抖动，但传感器内部的恒定延迟仍然存在，必须标定。TUM-VIE 发现，即使一切都在同一个时钟上，IMU 仍有 4.77 ms 的恒定读出偏移。VersaVIS 发现，IMU 自身的滤波器会让估计出的相机–IMU 偏移随其设置从约 1.55 ms 变到 19.95 ms："time offset is highly dependent on the imu filter configuration."（意为：时间偏移高度依赖于 imu 滤波器的配置。）用 Kalibr 估计这个偏移的方法见 [IMU 标定指南](https://egocam.ai/zh-cn/calibration/imu-calibration/)。

## GigE 相机上的 PTP（IEEE 1588）

精确时间协议（Precision Time Protocol，PTP），即 IEEE 1588，通过以太网同步时钟。支持 PTP 的网卡和交换机在硬件中给数据包打时间戳，这去除了大部分网络抖动。Red Hat 的文档写道："When used in conjunction with hardware support, PTP is capable of sub-microsecond accuracy, which is far better than is normally obtainable with NTP"（意为：与硬件支持配合使用时，PTP 能达到亚微秒级精度，远好于 NTP 通常能达到的水平）（[RHEL 7: Configuring PTP using ptp4l](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-configuring_ptp_using_ptp4l)）。

GigE Vision 相机以两种方式使用 PTP：

- **公共时间戳**。每台相机的时间戳计数器都被校准（discipline）到一个主时钟上。Basler 的相机支持 "IEEE 1588-2008, also known as PTP Version 2"（意为：IEEE 1588-2008，也称为 PTP 第 2 版），并按 "Priority 1"（意为：优先级 1）选出主时钟（[Basler: Precision Time Protocol](https://docs.baslerweb.com/precision-time-protocol)）。采集之前，要检查相机已经锁定：在较新的 Basler 型号上，"If the parameter value is Locked , the respective device should be sufficiently synchronized"（意为：如果参数值为 Locked，相应的设备应该已经充分同步）；在其他型号上，观察相对主时钟的偏移，直到它一直低于你的阈值。
- **定时触发**。GigE Vision 2.0 增加了定时动作命令（scheduled action command）：每台相机被告知在未来的某个 PTP 时间执行动作，所以网络延迟不再有影响。
- **与 PTP 时间对齐的自由运行曝光**。Sony 的工程师描述了自由运行的相机在与最高级主时钟（grandmaster clock）对齐的时刻开始每次曝光："Although this is affected by the network environment, it is ideally possible for exposure synchronous control to be performed within 1μs"（意为：虽然这会受网络环境影响，但理想情况下曝光同步控制可以做到 1μs 以内）（[Vision Systems Design, 2017](https://www.vision-systems.com/articles/print/volume-22/issue-4/features/integration-insights-ieee1588-simplifies-camera-synchronization.html)）。

PTP 时间并不是现实世界的时间（wall-clock time），除非主时钟跟随一个时间源。Basler："If no device in the network is synchronized to a coordinated world time (e.g., TAI or UTC), the network will operate in the arbitrary timescale mode (ARB)."（意为：如果网络中没有任何设备同步到某个协调的世界时间（例如 TAI 或 UTC），网络将运行在任意时间尺度模式（ARB）下。）

PTP 更适合布置在采集空间四周的固定相机，而不是佩戴在身上的相机，因为它需要以太网。软件方面，即 Linux 上的 `ptp4l`，见[软件同步页面](https://egocam.ai/zh-cn/sync/software-and-visual-sync/)。

## GPS 与秒脉冲（PPS）

GPS 或其他卫星导航接收机给出两种时间信号：带有当天时间的串口报文，以及一路秒脉冲（pulse-per-second，PPS）输出，它的边沿标记每一秒的开始。chrony 文档解释了两者的区别：基于报文的时间源 "Typically, it is accurate to milliseconds. The other source is much more accurate. It is timestamping a pulse-per-second (PPS) signal"（意为：通常精确到毫秒。另一个时间源准确得多。它是给秒脉冲（PPS）信号打时间戳）（[chrony FAQ](https://chrony-project.org/faq.html)）。

即使没有卫星，PPS 也能用作硬件同步信号。Faizullin et al. 做了一块开源电路板，板上的微控制器模仿 GPS 接收机，每秒发出一个 PPS 边沿和一条对应的时间报文来锁定 LiDAR 的时钟，同时在同一个定时器上给 IMU 中断打时间戳。他们称 "time synchronization accuracy is kept as best as 10 µs"（意为：时间同步精度最好可保持在 10 µs）（[Faizullin et al., 2021](https://arxiv.org/abs/2107.02625)）。重复发送脉冲很重要：只同步一次会让 "time drift"（意为：时间漂移）加上 "an offset that grows over time"（意为：一个随时间增长的偏移）。

卫星时间需要能看到天空，所以适合户外采集。把 GPS 时间写进文件的相机，例如 GoPro 的 GPS 时间码，见[软件同步页面](https://egocam.ai/zh-cn/sync/software-and-visual-sync/)。

## 它对硬件的要求

如果一台采集设备是从头设计而不是拼装出来的，这些选择大多在一开始就定下了：

- **把触发引出来**。选择触发或同步引脚有文档说明的传感器和模组，并把这些引脚布线到一个连接器上。
- **相机和 IMU 共用一个时钟**。用同一个计数器给曝光和 IMU 采样打时间戳，并尽可能靠近传感器。
- **给曝光打时间戳，而不是给到达打时间戳**。记录曝光起点和时长，以便计算中点。
- **数帧**。保留一个逐帧计数器，这样丢帧可以被检测到。
- **让同步持续运行**。在录制期间重复发送同步信号，这样漂移无法累积。

## 参考来源

- Teledyne FLIR (2017). [TAN2016008: Configuring synchronized capture](https://www.teledynevisionsolutions.com/globalassets/support/iis/application-notes/tan2016008-configuring-synchronized-capture.pdf). 应用说明。
- Raspberry Pi. [Camera hardware documentation](https://www.raspberrypi.com/documentation/accessories/camera.html)（[synchronous captures](https://www.raspberrypi.com/documentation/accessories/camera.html#synchronous-captures)、[Global Shutter external trigger](https://www.raspberrypi.com/documentation/accessories/camera.html#external-trigger)、[synchronous mode (XVS)](https://www.raspberrypi.com/documentation/accessories/camera.html#synchronous-mode-xvs)）和 [camera software: wired synchronisation](https://www.raspberrypi.com/documentation/computers/camera_software.html#wired-synchronisation)。
- Arducam. [External trigger application (Jetson global shutter cameras)](https://docs.arducam.com/Nvidia-Jetson-Camera/Global-Shutter-Camera/external-trigger/) 和 [hardware trigger with external signal (USB camera shield)](https://docs.arducam.com/USB-Industrial-Camera/Connect-and-Sync-Multi-Stereo-Cameras/Hardware-Trigger-with-External-Signal/)。
- FRAMOS. [External event camera synchronization (D400e)](https://docs.framos.com/en/latest/D400e/ApplicationGuides/ExternalEventCameraSynchronization.html).
- Klenk, S., Chui, J., Demmel, N. and Cremers, D. (2021). [TUM-VIE: The TUM stereo visual-inertial event dataset](https://arxiv.org/abs/2108.07329). *IEEE/RSJ IROS*.
- Tschopp, F. et al. (2020). [VersaVIS: An open versatile multi-camera visual-inertial sensor suite](https://arxiv.org/abs/1912.02469). *Sensors*.
- USB Implementers Forum. [USB Video Class 1.5 document set](https://www.usb.org/document-library/video-class-v15-document-set).
- Linux 内核文档。[V4L2 buffers](https://docs.kernel.org/userspace-api/media/v4l/buffer.html) 和 [V4L2_META_FMT_UVC](https://docs.kernel.org/userspace-api/media/v4l/metafmt-uvc.html)。
- Linux 内核源码。[drivers/media/usb/uvc/uvc_driver.c](https://github.com/torvalds/linux/blob/master/drivers/media/usb/uvc/uvc_driver.c)。
- Raspberry Pi. [Software camera synchronisation](https://www.raspberrypi.com/documentation/computers/camera_software.html#software-camera-synchronisation).
- Meyer, J. et al. (2025). [RocSync: Millisecond-accurate temporal synchronization for heterogeneous camera systems](https://arxiv.org/abs/2511.14948). arXiv.
- Kalibr：[camera–IMU calibration](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration)，ETH Zurich ASL。
- Faizullin, M., Kornilova, A. and Ferrer, G. (2021). [Open-source LiDAR time synchronization system by mimicking GNSS-clock](https://arxiv.org/abs/2107.02625). arXiv.
- Red Hat. [RHEL 7 System Administrator's Guide: Configuring PTP using ptp4l](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-configuring_ptp_using_ptp4l).
- Basler. [Precision Time Protocol](https://docs.baslerweb.com/precision-time-protocol).
- Eikawa, S. (2017). [Integration insights: IEEE1588 simplifies camera synchronization](https://www.vision-systems.com/articles/print/volume-22/issue-4/features/integration-insights-ieee1588-simplifies-camera-synchronization.html). Vision Systems Design.
- chrony. [Frequently asked questions](https://chrony-project.org/faq.html).
