ArticleslgStudy

computer science

Cyphal

Cyphal is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Cyphal rather than just read about it. In short: Cyphal is a lightweight protocol designed for reliable intra-vehicle communications using various communications transports, originally destined for CAN bus, but targeting various network types in subsequent revisions. OpenCyphal is an open-source project that aims to provide MIT-licensed implementations of the Cyphal protocol.

Cyphal — main illustration
Cyphal — illustration

Key takeaways

  • Cyphal belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Cyphal to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Cyphal from memory before moving on to harder problems.

Reference excerpt

Cyphal is a lightweight protocol designed for reliable intra-vehicle communications using various communications transports, originally destined for CAN bus, but targeting various network types in subsequent revisions. OpenCyphal is an open-source project that aims to provide MIT-licensed implementations of the Cyphal protocol. The project was known as UAVCAN (Uncomplicated Application-level Vehicular Computing and Networking) prior to rebranding in March 2022.

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 including NXP Semiconductors and the Dronecode Project.

History of Cyphal in the context of other serial protocols

a. MODBUS often runs over RS-232. b. DDS Borrows an Interface Definition Language from CORBA. c. MODBUS over TCP port 502. d. Airbus approaches ARINC to request a new CAN standard be developed. Michael Stock provides his experience developing CAN Aerospace. ARINC-825-1 is the result. e. First AVB standard is published by the AVB Task Group of the IEEE 802.1 working group. IEEE1722-2011 is released. f. The AVB Task Group is renamed the TSN Task Group. g. ROS2 Builds on top of DDS. Typical media for distributed ROS2 systems is Ethernet. h. 802.1Qbv and 802.1Qbu are released, enabling fully deterministic Ethernet networks to be defined. i. Pavel Kirienko leads an open-source effort to define UAVCAN v0. Initially, it only supports CAN 2.0B. j. Airbus gives a presentation to the IEEE, “Avionics Full Duplex Ethernet and the Time-Sensitive Networking Standard” which proposes incorporating AFDX into the TSN standards. k. ARINC 825-4 adds support for CAN-FD and defines tunneling over ARINC-664. l. Amazon Prime Air defines a minimal set of changes to v0 adding CAN-FD support. The unofficial variant is dubbed v0.5. At the same time, at the Stockholm Summit, UAVCAN v1 was conceived. m. 10 BASE T1S is added to IEEE 802.3 defining half-duplex, two-wire, multi-drop Ethernet media with PLCA (PHY-Level Collision Avoidance). The specification is targeted at automotive and industrial use cases (e.g. MODBUS replacement). n. Airbus A380 ends production. o. UAVCAN v1 becomes beta. p. DroneCAN takes over maintenance of the UAVCAN v0/v0.5 specification and advancement on top of it. q. UAVCAN v1 is renamed Cyphal.

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 general information technology. The protocol offers a stateless publish-subscribe communication model where a node can begin operation immediately upon connection to the network to accommodate high-integrity applications. The protocol has two clearly separated major components: the transport layer that works on top of reliable vehicular networks such as Ethernet or CAN FD, and the transport-agnostic presentation (serialization) layer based on the so-called Data Structure Description Language (DSDL). The protocol has been shown to be implementable in less than 1000 logical lines of code. DSDL is ideologically similar to the interface description language used in ROS, except that it introduces additional static constraints in order to render the solution suitable for real-time high-integrity embedded systems. The similarity prompted some developers to interface ROS with Cyphal using automated translation layers.

Core 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.

… excerpt ends here. Continue reading the full article.

Illustrations

Cyphal illustration
Cyphal illustration

Worked examples

Example 1 — a first encounter with Cyphal

Start with the simplest possible case. Write down what Cyphal claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Cyphal before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Cyphal ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Cyphal

In research
Cyphal appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Cyphal in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Cyphal is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer buses, Computer network engineering, Network protocols, so understanding it makes those chapters shorter.
In everyday life
Look for Cyphal outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Cyphal” →

How to study Cyphal in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Cyphal means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Cyphal out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Cyphal in simple terms?

Cyphal is a lightweight protocol designed for reliable intra-vehicle communications using various communications transports, originally destined for CAN bus, but targeting various network types in subsequent revisions. OpenCyphal is an open-source project that aims to provide MIT-licensed implement…

Why does Cyphal matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Cyphal?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Cyphal.

Tags

  • Computer buses
  • Computer network engineering
  • Network protocols
  • Serial buses
  • Standards

Keep exploring