History
The first RFC broadly outlining the general ideas that would later form the core design principles of Cyphal (branded UAVCAN at the time) was published in early 2014. It was a response to the perceived lack of adequate technology that could facilitate robust real-time intra-vehicular data exchange between distributed components of modern intelligent vehicles (primarily unmanned aircraft). Since the original RFC, the protocol has been through three major design iterations, which culminated in the release of the first long-term stable revision in 2020 (6 years later) labelled UAVCAN v1.0. In the meantime, the protocol has been deployed in numerous diverse systems including unmanned aerial vehicles, spacecraft, underwater robots, racing cars, general robotic systems, and micromobility vehicles. In 2022, the protocol was rebranded as Cyphal. Cyphal is positioned by its developers as a highly deterministic, safety-oriented alternative to high-level publish-subscribe frameworks such as DDS or the computation graph of ROS, which is sufficiently compact and simple to be usable in deeply embedded high-integrity applications. Cyphal has been shown to be usable with bare metal microcontrollers equipped with as little as 32K ROM and 8K RAM. The protocol is open and can be reused freely without approval or licensing fees. The development of the core standard and its reference implementations is conducted in an open manner, coordinated via the public discussion forum. As of 2020, the project is supported by several major organizations includingHistory of Cyphal in the context of other serial protocols
Design
Cyphal provides zero-cost abstractions that are approachable and familiar to software engineers without compromising on functional safety and determinism. As a new technology, it is unencumbered by legacy and borrows heavily from recent developments in the field of generalCore principles
The protocol is built around the following core design principles that are intended to ensure that the solution is well-suited for modern complex safety-critical vehicular systems. * Democratic network — There is no master node. All nodes in the network have the same communication rights; there should be no single point of failure. * Facilitation of functional safety — Cyphal system designers have the necessary guarantees and tools at their disposal to analyze the system and ensure its correct behavior. * High-level communication abstractions — The protocol supports publish/subscribe and remote procedure call communication semantics with statically defined and statically verified data types (schema). The data types used for communication are defined in a clear and platform-agnostic way, that can be easily understood by both machines and humans. * Facilitation of cross-vendor interoperability — Cyphal provides a common foundation that different vendors can build upon to ensure that their equipment is interoperable. Cyphal provides a generic set of standard application-agnostic communication data types. * Well-defined generic high-level functions — Cyphal defines standard services and messages for common high-level functions, such as: network discovery, node configuration, node software update, node status monitoring, network-wide time synchronization, plug-and-play node support, etc. * Atomic data abstractions — Nodes are able to exchange large data structures that exceed the capacity of a single transport frame. Cyphal performs automatic data decomposition and reassembly at the protocol level, hiding the related complexity from the application. * High throughput, low latency, determinism — Cyphal adds very low overhead to the underlying transport protocol, which ensures high throughput and low latency. This makes Cyphal well-suited for hard real-time applications. * Support for redundant interfaces and redundant nodes — Cyphal is suitable for applications that require modular redundancy. * Simple logic, low computational requirements — Cyphal targets a wide variety of embedded systems, from high-performance on-board computers, to extremely resource-constrained microcontrollers. It is inexpensive to support in terms of computing power and engineering hours, and advanced features can be implemented incrementally as needed. * Rich data type and interface abstractions — An interface description language is a core part of the technology, allowing deeply embedded subsystems to interface with higher-level systems directly (and in a maintainable manner), while enabling simulation and functional testing. * Support for various transport protocols — Cyphal is usable with several different transports, and can be extended to support other transport protocols in the future. * API-agnostic standard — Unlike some other networking standards, Cyphal does not attempt to describe the application program interface (API). Any details that do not affect the behavior of an implementation observable by other participants of the network are outside of the scope of the specification. * Open specification and reference implementations — The Cyphal specification is, and will always be, open and free to use for everyone. The reference implementations are distributed under the terms of the permissive MIT License or released into the public domain.Transport layer
Cyphal/CAN
The CAN transport is built on top of CAN and CAN FD using 29-bit identifiers. The CAN payload includes a fixed-size overhead of one byte per frame for the needs of the transport layer.Cyphal/UDP
The Cyphal/UDP transport has been proposed for real-time Ethernet-based vehicular networks. The design is said to be influenced by AFDX, DDS/RTPS, and SOME/IP.Standard data types
Like other similar technologies, Cyphal provides a library of common data types, managed and curated by the protocol maintainers, that are intended to address certain common issues in popular applications. These data types supplement vendor-specific or application-specific data types defined by adopters, much like a programming language would normally define aReferences
External links
*