# FlexRay

**FlexRay** 是一种确定性、容错的高速车载网络通信协议，由汽车行业联盟开发，用于服务线控驱动、线控转向和线控制动等安全关键应用，这些应用是控制器局域网（CAN）无法满足的。它每通道运行速率为 10 Mbit/s，是 CAN 1 Mbit/s 的十倍；其首次量产应用是 2007 年宝马X5（BMW X5）的底盘域。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup><sup> • </sup><sup>[2](https://www.tek.com/en/documents/application-note/debugging-can-lin-and-flexray-automotive-buses-oscilloscope)</sup><sup> • </sup><sup>[3](https://www.electronicdesign.com/markets/automotive/article/21796623/under-the-hood-of-the-bmw-x5)</sup>

| 关键事实 | 详情 |
|---|---|
| 数据速率 | 每通道 10 Mbit/s；两个通道可承载同一数据的冗余副本，或承载独立数据，总速率最高 20 Mbit/s<sup>[2](https://www.tek.com/en/documents/application-note/debugging-can-lin-and-flexray-automotive-buses-oscilloscope)</sup> |
| 访问方式 | 时分多址（TDMA）；每个节点同步到一个公共时钟，并且只在其分配的时隙中发送，从而保证确定性传输<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup> |
| 通信周期 | 时长固定，通常为 1 至 5 毫秒，分为静态段、动态段、符号窗和网络空闲时间<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup> |
| 有效载荷 | 每帧最多 254 字节，是 CAN 帧容量的 30 倍以上<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup> |
| 拓扑 | 多点无源总线、主动星形或混合组合；单通道或双通道布线<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup> |
| 首次量产应用 | 2007 年宝马X5，2006 年 9 月开始生产，用于底盘域的电子减震控制<sup>[3](https://www.electronicdesign.com/markets/automotive/article/21796623/under-the-hood-of-the-bmw-x5)</sup><sup> • </sup><sup>[4](https://saemobilus.sae.org/papers/flexray-exploitation-a-standard-future-prospects-2006-21-0039)</sup> |
| 标准化 | ISO 17458 系列；第 5 部分（2013）规定了电气物理层的一致性测试，于 2025 年最后一次复审并确认<sup>[5](https://www.iso.org/cms/live/live/en/sites/isoorg/contents/data/standard/05/98/59809.html?browse=tc)</sup> |

## 起源与联盟

FlexRay 源于现有车载网络中的一处特定空白。随着制造商研究动力总成、底盘和线控控制系统，宝马和戴姆勒克莱斯勒（DaimlerChrysler）得出结论：CAN 和 MOST 等现有协议缺乏线控制动和线控转向等应用所需的数据速率和功能，而这些应用要求一种快速、确定性、容错的协议。<sup>[6](https://www.eetimes.com/flexray-speeds-automotive-safety-applications/)</sup>

**联盟成立。** 宝马的培训材料将 FlexRay 联盟的成立定在 1999 年，当时宝马股份公司（BMW AG）与戴姆勒克莱斯勒股份公司（DaimlerChrysler AG）以及半导体制造商飞思卡尔（Freescale，原摩托罗拉）和飞利浦（Philips）合作，着手开发 CAN 的替代方案，因为 CAN 的网络能力在车辆动力学和驾驶辅助系统方面已达到极限。<sup>[7](https://bmwtechinfo.bmwgroup.com/tech_training_manual/ST401%20Body%20Electronics%20II.pdf)</sup> [飞思卡尔半导体](https://www.edgepedia.org/zh/freescale-semiconductor)的马蒂亚斯·劳施（Mathias Rausch）在《EE Times》上的一篇记述将开发起点定在 2000 年，当时宝马、戴姆勒克莱斯勒、飞利浦和摩托罗拉共同成立联盟，摩托罗拉分拆出的飞思卡尔半导体于 2004 年加入；其表述目标是“一种用于车辆高速控制应用的先进通信技术，以提高安全性、可靠性和舒适性。”<sup>[6](https://www.eetimes.com/flexray-speeds-automotive-safety-applications/)</sup> 博世和[通用汽车](https://www.edgepedia.org/zh/general-motors)不久后加入，随后是福特、马自达、艾尔默斯（Elmos）和西门子威迪欧（Siemens VDO），最终几乎所有重要的汽车制造商和供应商都加入进来。<sup>[7](https://bmwtechinfo.bmwgroup.com/tech_training_manual/ST401%20Body%20Electronics%20II.pdf)</sup> 联盟终结时的核心成员列有飞思卡尔半导体、罗伯特·博世有限公司（Robert Bosch GmbH）、恩智浦半导体（NXP Semiconductors）、宝马、大众、戴姆勒和通用汽车。<sup>[8](https://arxiv.org/abs/1801.04979)</sup>

## 协议如何工作

FlexRay 是一种时间触发协议：所有节点共享一个全局时间概念，用于调度通信和计算。<sup>[9](https://info-gap.technion.ac.il/files/2016/11/arko05date-final-version.pdf)</sup> 计时基本单位是宏节拍（macrotick），通常长 1 微秒，控制器主动同步它，使其在每个节点上同一瞬间发生。全局时间由时钟同步过程利用分布式计时算法从各节点自身的时钟合成；该过程周期性测量时钟并施加校正，因此不需要外部同步时钟信号。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup><sup> • </sup><sup>[10](https://www.sciencedirect.com/topics/computer-science/flexray)</sup>

**通信周期。** 介质访问组织在固定通信周期中，通常为 1 至 5 毫秒，分为四个部分：<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup>

1. **静态段。** 预定义长度的时隙保留给特定节点，提供时间触发的确定性帧。如果节点离线，其时隙保持开放且不被使用。由于发送时刻已知，程序能够确切知道数据有多旧，这对需要数据间隔保持一致的控制回路很重要。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup>
2. **动态段。** 类似 CAN 仲裁的事件驱动传输。微时隙（minislot）通常长一个宏节拍，按优先级预先分配；节点在其微时隙到来时若不发送，就失去本轮机会，未能容纳的较低优先级消息等待下一个周期。每个帧 ID 在每个动态段中只能发送一条消息。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup><sup> • </sup><sup>[10](https://www.sciencedirect.com/topics/computer-science/flexray)</sup>
3. **符号窗。** 用于网络维护和识别特殊周期，如冷启动周期。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup>
4. **网络空闲时间。** 一段已知的静默间隔，节点在此期间校正上一周期累积的时钟漂移。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup>

**帧与启动。** FlexRay 帧由 5 字节帧头（状态位、帧 ID、有效载荷长度、帧头 CRC 和周期计数）、最多 127 字（254 字节）的有效载荷，以及含三个 8 位 CRC 的帧尾组成，用于错误检测。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup> 启动网络称为冷启动，要求至少两个节点发送启动帧；网络首先执行唤醒过程，在一个通道上发送唤醒模式，其设计使同时唤醒的节点之间的冲突易于检测。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup><sup> • </sup><sup>[10](https://www.sciencedirect.com/topics/computer-science/flexray)</sup>

**容错与总线守护者。** 双通道架构有两个用途：在安全关键应用中，通道可承载复制消息，使消息在通道故障后仍能存活；或者承载独立数据，使吞吐量翻倍至 20 Mbit/s。<sup>[2](https://www.tek.com/en/documents/application-note/debugging-can-lin-and-flexray-automotive-buses-oscilloscope)</sup> 总线守护者保护通道免受不符合簇通信调度表的传输的干扰：它向所守护的每个节点发送使能信号，如果发现消息在错误时间到达，就撤回该信号，并使用自己的时钟监视总线。FlexRay 不要求配备总线守护者，但任何安全关键系统都应包含它。<sup>[10](https://www.sciencedirect.com/topics/computer-science/flexray)</sup> 研究工作已将守护者概念扩展到星形和混合拓扑中的中心级与星形级故障隔离。<sup>[11](https://saemobilus.sae.org/papers/central-bus-guardian-application-fault-isolation-system-based-flexray-protocol-2011-36-0306)</sup>

**物理层与拓扑。** FlexRay 使用带差分信号的非屏蔽双绞线，典型线缆阻抗在 80 至 110 欧姆之间，并在多点总线的两端设置终端电阻；终端电阻配置不当是网络故障的常见原因。支持的拓扑包括 CAN 中常见的多点总线、允许更长距离且网段故障时不会失去网络其余部分的主动星形配置，以及两者的混合形式。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup>

**配置。** 与仅需正确波特率的 CAN 节点不同，每个 FlexRay 节点在能够参与通信之前都必须配置完整的网络参数。这些参数包括调度表、帧和信号定义、拓扑及时序，通过 FIBEX（现场总线交换格式）交换，这是 ASAM 定义的一种基于 XML 的标准。<sup>[1](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)</sup>

## 采用情况及与其他协议的比较

宝马集团是第一家在量产项目中引入 FlexRay 的汽车制造商，2006 年 9 月在新宝马X5的底盘域投产，FlexRay 在其中作为电子减震控制的通信基础。<sup>[4](https://saemobilus.sae.org/papers/flexray-exploitation-a-standard-future-prospects-2006-21-0039)</sup><sup> • </sup><sup>[12](https://citeseerx.ist.psu.edu/document?doi=2656fc1c4b07dd4d081c13a803f1e75b3ecc6c8b&repid=rep1&type=pdf)</sup> 宝马后来在一辆车中最多实现 17 个 FlexRay 节点，该技术也出现在宝马和奥迪的量产车中。<sup>[13](https://publications.uni.lu/bitstream/10993/5540/1/trends2013.pdf)</sup>

与替代方案相比，FlexRay 占据一个明确的细分领域。一项典型比较将其列为 10 Mbit/s，而 CAN 为 1 Mbit/s、LIN 约为 20 kbit/s；其每节点成本高、时间触发复杂度高，适合底盘和 ADAS 应用，而非低成本车身电子。<sup>[14](https://flex-product.com/knowledge/lin-bus/lin-can-flexray-comparative-guide)</sup> 其带宽是 CAN 的十倍，但研究指出，在高档车型中会达到吞吐量极限，这推动了对其两个独立通道的调度研究。<sup>[15](https://arxiv.org/abs/1802.05079)</sup> [CAN FD](https://www.edgepedia.org/zh/can-fd) 以现有收发器实现平均 2 Mbit/s 为目标，可承载与低速 FlexRay 网络相同的有效载荷，同时保持 CAN 的成本结构。<sup>[16](https://www.can-cia.org/fileadmin/cia/documents/publications/cnlm/previous_issues/16-3_cnlm.pdf)</sup> 在比较评估中，CAN 在基于优先级的实时通信方面具有优势，而当所有事件具有同等优先级时，FlexRay 表现良好。<sup>[17](https://saemobilus.sae.org/papers/state-art-survey-comparison-can-flexray-lin-protocol-simulation-lin-protocol-2020-01-1293)</sup>

**在新设计中的衰落。** FlexRay 的复杂性和成本导致大多数原始设备制造商跳过它，转而等待汽车以太网，后者以相当的成本提供更高带宽。<sup>[18](https://www.aertrixlabs.com/courses/can-protocol-masterclass/lessons/can-vs-alternatives)</sup> 大众集团软件部门 CARIAD 已发布从 FlexRay 迁移到 CAN XL 的指南，而 2024 年一项关于节点数量限制的比较发现，CAN FD 的拓扑灵活性优于 FlexRay。<sup>[19](https://www.can-cia.org/fileadmin/cia/documents/publications/cnlm/june_2024/cnlm_24-1_p20_migrating_from_flexray_to_can_xl_marko_moch_cariad_se.pdf)</sup><sup> • </sup><sup>[20](https://www.can-cia.org/fileadmin/cia/documents/publications/cnlm/june_2024/24-2_cnlm.pdf)</sup> 不过，ISO 17458-5 物理层一致性标准于 2025 年复审并确认仍为现行标准，反映出该协议在已经使用它的车辆中继续存在。<sup>[5](https://www.iso.org/cms/live/live/en/sites/isoorg/contents/data/standard/05/98/59809.html?browse=tc)</sup>

## References

1. [FlexRay Automotive Communication Bus Overview, National Instruments](https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/flexray-automotive-communication-bus-overview.html)
2. [Debugging CAN, LIN, and FlexRay Automotive Buses with an Oscilloscope, Tektronix](https://www.tek.com/en/documents/application-note/debugging-can-lin-and-flexray-automotive-buses-oscilloscope)
3. [Under the Hood of The BMW X5, Electronic Design](https://www.electronicdesign.com/markets/automotive/article/21796623/under-the-hood-of-the-bmw-x5)
4. [FlexRay - Exploitation of a Standard and Future Prospects, SAE Technical Paper 2006-21-0039](https://saemobilus.sae.org/papers/flexray-exploitation-a-standard-future-prospects-2006-21-0039)
5. [ISO 17458-5:2013, Road vehicles — FlexRay communications system — Part 5, ISO](https://www.iso.org/cms/live/live/en/sites/isoorg/contents/data/standard/05/98/59809.html?browse=tc)
6. [FlexRay speeds automotive safety applications, EE Times (Mathias Rausch, Freescale Semiconductor, 2006)](https://www.eetimes.com/flexray-speeds-automotive-safety-applications/)
7. [ST401 Body Electronics II training manual, BMW Group Tech Training](https://bmwtechinfo.bmwgroup.com/tech_training_manual/ST401%20Body%20Electronics%20II.pdf)
8. [Formal specification of the FlexRay protocol using FocusST, arXiv](https://arxiv.org/abs/1801.04979)
9. [FlexRay Standard and Models, Technion](https://info-gap.technion.ac.il/files/2016/11/arko05date-final-version.pdf)
10. [FlexRay - an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/computer-science/flexray)
11. [Central Bus Guardian Application for Fault Isolation in System based on FlexRay Protocol, SAE Technical Paper 2011-36-0306](https://saemobilus.sae.org/papers/central-bus-guardian-application-fault-isolation-system-based-flexray-protocol-2011-36-0306)
12. [Journal of KONES Powertrain and Transport, Vol. 17, No. 3, 2010](https://citeseerx.ist.psu.edu/document?doi=2656fc1c4b07dd4d081c13a803f1e75b3ecc6c8b&repid=rep1&type=pdf)
13. [In-vehicle communication networks - a historical perspective, University of Luxembourg](https://publications.uni.lu/bitstream/10993/5540/1/trends2013.pdf)
14. [LIN, CAN and FlexRay: Which Protocol to Choose?, Flex Product](https://flex-product.com/knowledge/lin-bus/lin-can-flexray-comparative-guide)
15. [Using Two Independent Channels with Gateway for FlexRay Static Segment Scheduling, arXiv](https://arxiv.org/abs/1802.05079)
16. [Improved CAN, CAN in Automation newsletter](https://www.can-cia.org/fileadmin/cia/documents/publications/cnlm/previous_issues/16-3_cnlm.pdf)
17. [State of the Art Survey on Comparison of CAN, FlexRay, LIN Protocol, SAE Technical Paper 2020-01-1293](https://saemobilus.sae.org/papers/state-art-survey-comparison-can-flexray-lin-protocol-simulation-lin-protocol-2020-01-1293)
18. [CAN vs LIN vs FlexRay vs Ethernet, Aertrixlabs](https://www.aertrixlabs.com/courses/can-protocol-masterclass/lessons/can-vs-alternatives)
19. [Migrating from FlexRay to CAN XL, CAN in Automation newsletter (CARIAD SE)](https://www.can-cia.org/fileadmin/cia/documents/publications/cnlm/june_2024/cnlm_24-1_p20_migrating_from_flexray_to_can_xl_marko_moch_cariad_se.pdf)
20. [The CAN FD option, CAN in Automation newsletter (CARIAD SE)](https://www.can-cia.org/fileadmin/cia/documents/publications/cnlm/june_2024/24-2_cnlm.pdf)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Embedded & soft processors › Embedded systems › Industrial, automotive, and IoT embedded systems

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/flexray

English original: https://www.edgepedia.org/flexray
