ArticleslgStudy

computer science

CAN FD

CAN FD 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 CAN FD rather than just read about it. In short: CAN FD (Controller Area Network Flexible Data-Rate) is a data-communication protocol used for broadcasting sensor data and control information on 2 wire interconnections between different parts of electronic instrumentation and control system. This protocol is used in modern high performance vehicles.

Key takeaways

  • CAN FD 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 CAN FD to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CAN FD from memory before moving on to harder problems.

Reference excerpt

CAN FD (Controller Area Network Flexible Data-Rate) is a data-communication protocol used for broadcasting sensor data and control information on 2 wire interconnections between different parts of electronic instrumentation and control system. This protocol is used in modern high performance vehicles. CAN FD is an extension to the original CAN bus protocol that was specified in ISO 11898-1. CAN FD is the second generation of CAN protocol developed by Bosch. The basic idea to overclock part of the frame and to oversize the payload dates back to 1999. Developed in 2011 and released in 2012 by Bosch, CAN FD was developed to meet the need to increase the data transfer rate up to 5 times faster and with larger frame/message sizes for use in modern automotive Electronic Control Units. As in the classical CAN, CAN FD protocol is designed to reliably transmit and receive sensor data, control commands and to detect data errors between electronic sensor devices, controllers and microcontrollers. Although CAN FD was primarily designed for use in high performance vehicle ECUs, the pervasiveness of classical CAN in the different industries will lead into inclusion of this improved data-communication protocol in a variety of other applications as well, such as in electronic systems used in robotics, defense, industrial automation, underwater vehicles, medical equipment, avionics, down-hole drilling sensors, etc.

CAN FD versus classical CAN The primary difference between the classical CAN (Controller Area Network) and CAN FD is the Flexible Data rate (FD). Using CAN FD, Electronic Control Units (ECUs) are enabled to use a higher rate for the payload. Arbitration data rates are still limited to 1 Mbit/s to maintain compatibility with classical CAN devices. With CAN FD, several larger payload lengths up to 64 bytes are supported in addition to the 0-8 bytes of the classical CAN. As longer payloads are more susceptible to bit errors, CAN FD uses 21 instead of 17 CRC bits for payloads of 20 or more bytes. For both classic CAN and CAN FD, a frame consists of either an 11-bit or 29-bit identifier. FD frames with 11-bit identifiers are said to be in FD Base Frame Format (FDBF) and frames with 29-bit identifiers are referred to as FD Extended Frame Format (FEFF). While payload data rates of 5-8 Mbit/s are possible in CAN FD, overall data transfer rates depend on the total length of the bus network and the transceivers used to generate and detect bus signals. The CAN bus consists of a shared pair of wires onto which electronic sensors, controller units, and ECUs are connected and is used to exchange information between units operating periodically or on demand. The total number of units connected, the length of the CAN bus wires, and additional electromagnetic factors determine the fastest data transfer rate possible for a given CAN bus. A modern vehicle can have more than 70 ECUs that use CAN FD to exchange information. All versions of the CAN protocol are designed with robust collision resolution that depends on signal propagation time, network topology, and the number of units on the bus. To minimize message collision and reduce costly error correction, many CAN bus configurations may limit their data transfer rate well below the bus's theoretical maximum speed. CAN-FD bus load that was developed by "De Andrade's" equation based on Tindel's equation. β = τ/ω (β = Busload), (τ = time of slow bits plus faster bits), ω (time in seconds of measurement). τ = Ts + Tf CAN-FD protocol defines five different error detection mechanisms: Two of them work at the bit level, and the other three at the message level. They are:

- (1) Bit Monitoring, - (2) Bit Stuffing, - (3) Frame Check, - (4) Acknowledgement Check and - (5) Cyclic Redundancy Check. There are two options of CRC which should be denoted as for CRC length of 17 (Data Length 0-16 bytes) or CRC length of 21 bits (Data Length 17–64) bytes.

Where the transmission time of the (fixed-size) header is given by: Ts=((SOF+ID+r1+IDE+EDL+r0+BRS2+CRCdel2)⋅1.2tx)+ACK+DEL+EOF+IFStx The fields are explained in the table below. Here 1.2 is taken to be the factor of the worst case bit stuffing, which means the computation shall be increased by 25%. It is considered BRS and CRCdel divided by 2, because they are exactly in the shift of bit rate transition. The transmission time of the payload is calculated as: Tf=((Df+ESI+DLC+BRS2+CRCdel2)⋅1.2)+CRC+SBtY Here SB signifies the stuffing bits (5 bits for packets smaller than 6 bytes and 6 bits for packets bigger than 6 bytes). CRC is also size-dependent, set to 17 bits for packets up to 16 bytes and to 21 for larger packets. Df represents the CAN-FD payload size which may be 0 to 8, 12, 16, 20, 24, 32, 48, 64 Bytes. t_X is the transmission bandwidth for the message header (up to 1 Mbit/s).

CAN FD also has decreased the number of undetected errors through increases in the performance of the CRC-algorithm. In addition, CAN FD is compatible with existing CAN 2.0 networks, allowing the new protocol to function on the same network as classical CAN. CAN FD bit rate can be up to 8 Mbit/s with the right CAN SIC (Signal Improvement Capability) Transceiver and so up to 8 times faster than classical CAN with 1 Mbit/s data phase. Due to higher communication speed, CAN FD constraints are tougher in terms of line parasitic capacitance. Therefore, all components on the line have seen their "capacitance" budget reduced compared to regular CAN bus. That is the reason why semiconductor suppliers have released new components approved by car makers. This approval reflects the need for interoperability between all CAN FD systems. Indeed, selected ESD protection components are compatible with all transceivers (CAN or CAN FD) and withstand ISO7637-3. Despite a higher stand-off voltage≤ (37 V), devices for truck applications must also comply with the low capacitance requirement (3.5 pF).

Data frame The data frame used for actual data transmission have two message formats:

Base frame format: with 11 identifier bits Extended frame format: with 29 identifier bits The frame format is as follows: The bit values are described for CAN-LO signal.

CAN & CAN FD TP Headers

The above table explains the transfer protocol defined for CAN + CANFD, based on ISO 15765-2 (ISO-TP), used for sending packets of data longer than what fits in a CAN frame.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with CAN FD

Start with the simplest possible case. Write down what CAN FD 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 CAN FD 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 CAN FD 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 CAN FD

In research
CAN FD 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 CAN FD 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
CAN FD is common in secondary-school and first-year university syllabi. It links to neighbouring topics Automation software, Bosch (company), CAN bus, so understanding it makes those chapters shorter.
In everyday life
Look for CAN FD 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 “CAN FD” →

How to study CAN FD in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CAN FD 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 CAN FD out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CAN FD in simple terms?

CAN FD (Controller Area Network Flexible Data-Rate) is a data-communication protocol used for broadcasting sensor data and control information on 2 wire interconnections between different parts of electronic instrumentation and control system. This protocol is used in modern high performance vehicl…

Why does CAN FD 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 CAN FD?

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 CAN FD.

Tags

  • Automation software
  • Bosch (company)
  • CAN bus
  • Serial buses

Keep exploring