+ All Categories
Home > Documents > CAN FD: from theory to practice · CAN FD: from theory to practice The international...

CAN FD: from theory to practice · CAN FD: from theory to practice The international...

Date post: 22-Aug-2020
Category:
Upload: others
View: 7 times
Download: 0 times
Share this document with a friend
4
34 CAN Newsletter 3/2015 T he CAN FD data link layer submitted to ISO, the inter- national organization for standardization, has passed the DIS (Draft International Standard) balloting without negative votes. This means, after implementing the ob- served comments, the ISO 11898-1 standard will be pub- lished. More than 100 comments, mainly of editorial na- ture, are already observed and implemented. Now, it is just a matter of time, when the ISO 11898-1 document will be published as International Standard. This standard also specifies a part of the physical layer, the physical coding sub-layer, according to the OSI (open system interconnec- tion) reference model. The CAN FD physical media attach- ment (PMA) sub-layer describing the transceiver charac- teristics is internationally standardized in ISO 11898-2. This document has been submitted for DIS balloting. It comprises also the optional low-power mode (formerly in ISO 11898-5) and the optional selective wake-up function- ality (formerly in ISO 11898-6). System-related specifica- tions have been deleted. The new ISO 11898-2 standard specifies just the transceiver characteristics. The physi- cal media dependent sub-layer is not in the scope of ISO 11898 series. It is highly application-specific, and might be specified by other ISO standards or other associations (e.g. CiA, IEC, or SAE). ISO standardizes also the conformance test plans for ISO 11898-1 and ISO 11898-2 implementations. The relat- ed standards, ISO 16845-1 respectively ISO 16845-2 are under development. ISO 16845-1 has been submitted for DIS balloting and ISO 16845-2 is in CD (committee draft) voting. The test houses C & S Group and IHR are already developing conformance test prototypes. Most of the au- tomotive chipmakers are in the process to integrate CAN FD cores into their micro-controllers. Many of them have licensed the IP module from Bosch. There are also sev- eral vendors providing a self-implemented CAN FD ASIC/ FPGA. Engineering samples of CAN high-speed transceiv- ers qualified for 2 Mbit/s and 5 Mbit/s are already available by several companies. Next step: using the longer data frames The standardization of the CAN FD data link layer and physical layer is settled. Even the first higher-layer proto- cols (e.g. transport layer and application layer) make use of the longer CAN FD data frames. This includes the so- called ISO transport layer as standardized in ISO 15765-2. First implementations by Vector and Volkswagen have been tested last October during a CAN FD plugfest orga- nized by CAN in Automation (CiA). Also the XCP calibra- CAN FD: from theory to practice The international standardization of CAN FD is settled. The next step is the development of recommendations and specifications, how to design CAN FD networks. tion protocol version 1.2 specified by the nonprofit ASAM association makes use of the 64-byte data fields. Autosar version 4.2.1 supports also CAN FD. The CiA CANopen SIG (special interest group) ap- plication layer develops currently the CiA 301 version 5.0, which will be based on the CAN FD data link layer. Most of the CANopen protocols will remain as they are since more than 20 years. However, the PDOs will be prolonged to 64 byte. The number of mapping entries will be still 64. This means, it is not possible to map more than 8 byte bit- wise. Byte-wise mapping is preferred. The bigger change regards the SDO protocol. It will be completely changed: The Universal SDO protocol will be structured better and will be easier to implement. It is still under development. The SAE is discussing in its J1939 CAN FD task force, how to make use of the longer frames. In parallel, the CiA IG (interest group) commercial vehicles prepares the CiA 602-2 application layer proposing a mapping of J1939-71 Figure 1: The proposed protocol structure for commercial vehicles complies with Autosar (Source CiA 602-2) Figure 2: Sampling of a recessive bit at the transmitting node with and without TDC (Source: CiA 601-1) System design
Transcript
Page 1: CAN FD: from theory to practice · CAN FD: from theory to practice The international standardization of CAN FD is settled. The next step is the development of recommendations and

34 CAN Newsletter 3/2015

The CAN FD data link layer submitted to ISO, the inter-national organization for standardization, has passed

the DIS (Draft International Standard) balloting without negative votes. This means, after implementing the ob-served comments, the ISO 11898-1 standard will be pub-lished. More than 100 comments, mainly of editorial na-ture, are already observed and implemented. Now, it is just a matter of time, when the ISO 11898-1 document will be published as International Standard. This standard also specifies a part of the physical layer, the physical coding sub-layer, according to the OSI (open system interconnec-tion) reference model. The CAN FD physical media attach-ment (PMA) sub-layer describing the transceiver charac-teristics is internationally standardized in ISO 11898-2. This document has been submitted for DIS balloting. It comprises also the optional low-power mode (formerly in ISO 11898-5) and the optional selective wake-up function-ality (formerly in ISO 11898-6). System-related specifica-tions have been deleted. The new ISO 11898-2 standard specifies just the transceiver characteristics. The physi-cal media dependent sub-layer is not in the scope of ISO 11898 series. It is highly application-specific, and might be specified by other ISO standards or other associations (e.g. CiA, IEC, or SAE).

ISO standardizes also the conformance test plans for ISO 11898-1 and ISO 11898-2 implementations. The relat-ed standards, ISO 16845-1 respectively ISO 16845-2 are under development. ISO 16845-1 has been submitted for DIS balloting and ISO 16845-2 is in CD (committee draft) voting. The test houses C & S Group and IHR are already developing conformance test prototypes. Most of the au-tomotive chipmakers are in the process to integrate CAN FD cores into their micro-controllers. Many of them have licensed the IP module from Bosch. There are also sev-eral vendors providing a self-implemented CAN FD ASIC/FPGA. Engineering samples of CAN high-speed transceiv-ers qualified for 2 Mbit/s and 5 Mbit/s are already available by several companies.

Next step: using the longer data frames

The standardization of the CAN FD data link layer and physical layer is settled. Even the first higher-layer proto-cols (e.g. transport layer and application layer) make use of the longer CAN FD data frames. This includes the so-called ISO transport layer as standardized in ISO 15765-2. First implementations by Vector and Volkswagen have been tested last October during a CAN FD plugfest orga-nized by CAN in Automation (CiA). Also the XCP calibra-

CAN FD: from theory to practice

The international standardization of CAN FD is settled. The next step is the development of recommendations and specifications, how to design CAN FD networks.

tion protocol version 1.2 specified by the nonprofit ASAM association makes use of the 64-byte data fields. Autosar version 4.2.1 supports also CAN FD.

The CiA CANopen SIG (special interest group) ap-plication layer develops currently the CiA 301 version 5.0, which will be based on the CAN FD data link layer. Most of the CANopen protocols will remain as they are since more than 20 years. However, the PDOs will be prolonged to 64 byte. The number of mapping entries will be still 64. This means, it is not possible to map more than 8 byte bit-wise. Byte-wise mapping is preferred. The bigger change regards the SDO protocol. It will be completely changed: The Universal SDO protocol will be structured better and will be easier to implement. It is still under development.

The SAE is discussing in its J1939 CAN FD task force, how to make use of the longer frames. In parallel, the CiA IG (interest group) commercial vehicles prepares the CiA 602-2 application layer proposing a mapping of J1939-71

Figure 1: The proposed protocol structure for commercial vehicles complies with Autosar (Source CiA 602-2)

Figure 2: Sampling of a recessive bit at the transmitting node with and without TDC (Source: CiA 601-1)

Syste

m d

esign

Page 2: CAN FD: from theory to practice · CAN FD: from theory to practice The international standardization of CAN FD is settled. The next step is the development of recommendations and

parameter groups into CAN FD data frames. It provides an optional safety/security field. The CAN identifier con-tains the source address as specified in SAE J1939-21. It is intended to reuse the 8-byte parameter groups as speci-fied in J1939-71. In the future, longer or shorter parame-ter groups could be specified and mapped into frames as specified in CiA 602-2.

The challenge: designing a physical &$1�)'�QHWZRUN

Specifying higher-layer protocols using the longer CAN FD frames is simple compared to the design of physical net-works with transmission speeds higher than 1 Mbit/s. Do not underestimate the challenges in designing multi-drop networks running at higher bit-rates. Already 1 Mbit/s is a challenge. The automotive industry has not used Classi-cal CAN networks with the maximum bit-rate in cars and trucks. Some truck makers use 667 Mbit/s or even 800 kbit/s.

If just two nodes communicate and all physical layer elements (I/O ports, connectors, cable, etc.) provide an im-pedance matching to the termination at both ends, there are no disturbances on the bus-lines.Of course, you need dedicated connectors and cables. The limitation is just the speed of light, or more precise the maximum speed of electrical pulses in the cable. Theoreti-cally, you can reach 10 Mbit/s at about 100 m.

If there are more nodes communicating, things be-come more complex. In theory, bus-line topologies termi-nated at both ends with very short not terminated stubs are the optimum. Star and hybrid topologies are more chal-lenging, increasingly with higher bit-rates. From first ex-periences, star topologies with just a view branches are possible running with 2 Mbit/s. In this cases, the star cen-WHU�VKRXOG�EH�WHUPLQDWHG�ZLWK�WZR����ї�UHVLVWRUV�Topology is just one topic, when designing a physical CAN FD network. It starts all with the tolerance of the CAN con-WUROOHU·V�RVFLOODWRU��7KH�,62���������VWDQGDUG�SURYLGHV�ILYH�requirements, which you have to meet when calculating the allowed tolerance of the oscillator. To make it simple: Up to transmission speeds of 4 Mbit/s, the same tolerance as in Classical CAN guarantees a robust communication. For higher speeds more precise and more expensive oscil-lators are needed. In any case, it is specified in ISO 11898-1 that the frequency of the oscillator shall be 80 MHz, 40 MHz, or 20 MHz. When the oscillator is implemented by means of configurable cascaded PLL (phase locked loop) circuitries, the user should take care to configure them in a way, that the tolerance requirements are met.

X Automated validation of CAN FD networks X CAN FD and the CRC issue X CAN FD: Improved residual error-rate X CAN FD simulation in real-time systems X Secure communication for CAN FD X Stand-by transceiver with fail-safe features X Up to six CAN FD cores on one micro-controller

Related articles

Page 3: CAN FD: from theory to practice · CAN FD: from theory to practice The international standardization of CAN FD is settled. The next step is the development of recommendations and

36 CAN Newsletter 3/2015

Configuring the bit-timing is the next topic. Of course, the configuration of the arbitration bit-time is the very same as in Classical CAN. You have to set the bit-rate prescaler, the propagation segment (always one time quantum), the propagation and phase segment 1 (often just one setting), the propagation segment 2, and the synchronization jump-width. In order to minimize the quantization error, when switching to the higher bit-rate, the number of time quanta SHU�ELW�VKRXOG�EH�ODUJH�HQRXJK��%RVFK·V�0�&$1�PRGXOH�DO-lows 385 time quanta per bit.The detailed parameter setting for dedicated bit-rates is not in the scope of ISO 11898-1. CANopen FD (CiA 301 version 5.0) and CiA 602-1 (CAN FD physical layer for commercial vehicles) will provide such specifications for different bit-rates. Also SAE 2284-4 will specify the CAN FD bit-timing for passenger cars as well as some other de-tails of the CAN FD physical layer design. The document is still under development.The data-phase bit-timing, which is independent of the arbitration bit-timing, use the same parameters as men-tioned above plus the transmitter delay compensations (TDC) and the TDC offset. The CiA 601-1 CAN FD physi-cal layer design specification recommends the enabling of the TDC function.The CiA 601-1 document provides some physical layer de-sign rules for CAN FD nodes. The access is limited to CiA members. However, interested parties willing to review and comment the specification may request a personalized copy from CiA office. The confirmation of sample points for both bit-rates should be the very same in all nodes. This increases the robustness of the communication. It is also recommended to configure the bit-timings with a resolu-tion meaning the maximum possible number of time-quan-ta, in order to reduce the quantization error. This leads to an increased phase margin. CiA also recommends using transceiver chips qualified for higher bit-rates. They feature less asymmetry, which remains more phase margin for the ringing caused by the chosen topology and other physical layer effects.The transceivers feature different loop delays for the re-cessive-to-dominant and the dominant-to-recessive tran-sitions. The symmetry of these two loop delays depends on the symmetry of the internal transceiver delays and on the resistive and capacitive busload. The asymmetry of the transceiver loop delay shortens or expands the bit in the arbitration phase and the data phase. Towards higher bit-

rates the symmetry becomes more and more important. The ISO 11898-2 specifies min/max symmetry values for 2 Mbit/s (-65 ns/+40 ns) and for 5 Mbit/s (-45 ns/+15 ns).

The symmetry of the RxD signal on the receiving node is defined by the symmetry performance of the transmitting and receiving node. To guarantee a robust communication between two or more nodes in a network, the transceiver Tx delay symmetry of the transmitting node and the trans-ceiver Rx delay symmetry of the receiving node shall be very accurate. The loop delay symmetry cannot cover this in total. It is possible that one device in the network has a transceiver with a very symmetric transmitter part and an asymmetric receiver part. The behavior of a transceiv-er from another supplier may behave vice versa. There-fore, in the CiA 601-1 specification additional parameters were defined for the transmitter and receiver symmetry (e.g. tREC(RxD)min = 110 ns and tREC(RxD)max = 225 ns for 5 Mbit/s). The document also describes how to calcu-late the jitter bit length seen by the receiving node. These values consider only the influence of the transceiver. Ad-ditional effects such as clock tolerance and the phase shift of the network are discussed in /CiA601-3/, which is still under development.

The phase margin depends also on the oscillator fre-quency and some non bit-rate depend reasons. This in-cludes the bit asymmetry caused by the transceiver and other physical layer elements und the unstable RxD signal caused by the ringing. The ringing on the bus lines comes from the used bus topology.

Network designers should also consider tempera-ture-depend effects. For example, the isolation material of cables can change the impedance depending on the tem-perature. In the CiA 602-1 CAN FD physical layer spec-ification for commercial vehicles, it is recommended to not PVC cables. Asymmetric PCB (printed circuit board) layouts or connectors can also cause ringing. Therefore, the CiA 602-1 specification for CAN FD physical inter-face for commercial vehicles proposes that the untwisted length of the wire in the area should be as short as pos-sible (in maximum 50 mm). There are some more recom- mendations given regarding electrical connector parame- ters.

Even the pin-ning of angular con-nectors is an issue at higher bit-rates. The CAN_H and CAN_L pins should have the same length.

In order to sup-press ringing in star and hybrid topolo-gies, special circuit-ries could be used. 'HQVR·V� KDV� VXE-mitted its ringing suppression tech-nology to CiA for

Figure 3: The ringing suppression circuitry specified in CiA 601-4 can be integrated into ISO 11898-2 compliant transceivers or can be used as stand-alone chip (Source: CiA 601-4)

Figure 4: Typical interface of ECUs for commercial trucks as proposed in CiA 602-1 (C1 = 100 nF)

Syste

m d

esign

Page 4: CAN FD: from theory to practice · CAN FD: from theory to practice The international standardization of CAN FD is settled. The next step is the development of recommendations and

CAN FDRecommended practiceCiA has released part 1 of the CiA 601-1 CAN FD node and system design

UHFRPPHQGHG�SUDFWLFH��7KH�VHULHV�ÀOOV�WKH�JDS�EHWZHHQ�the ISO standards for CAN FD and the system design VSHFLÀFDWLRQV�����������������������������������������������������������������Read on

The CAN Newsletter Online sister publication provides brief product-related information. For more details please visitwww.can-newsletter.org.

IP solutionNon-ISO CAN FD solution for automobiles$UDVDQ·V�7RWDO�,3�6ROXOWLRQ�LPSOHPHQWV�the Classical CAN protocol, as well as the non-ISO CAN FD protocol compliant

to Bosch. The company plans the developement of CAN FD transceivers, too. Read on

OscilloscopeCAN FD analysis on the symbolic layerTeledyne LeCroy has announced the

addition of symbolic (application) layer analysis capabilities to their CAN and CAN FD serial trigger, decode, measurement, and graphing solutions. Read on

CAN snifferFree tool with interface purchaseAs a distributor of Kvaser interfaces in

the UK, Warwick Control is introducing a new policy for its customers: Any Kvaser interface purchased from Warwick Control comes with a free ECO version of the X-Analyser 3.

Read on

standardization and submission to ISO. It is described in CiA 601-4, which is under development. The basic idea is to change the impedance of some nodes dynamically. It is switched on for a short part of the bit-time and then switched-off again. In CiA 601-4, the maximum start time is specified with 50 ns and the end-time between 200 ns and 410 ns.

General Motors prefers another solution: A bus-line topology with all nodes terminated locally. In March 2015, the intended GM wiring harness was tested successfully during the CAN FD plugfest in Detroit organized by CiA. GM likes to use 24-m bus-line networks with 20 nodes and not terminated stub-lines. The maximum stub-line is 1,7 m.

More experiences are necessary

CiA will organize next CAN FD plugfest, when new prod-ucts are launched or additional network approaches are submitted for testing. Additionally, CiA will collect expe-riences and organize the exchange of knowledge within the IG CAN FD respectively the IG commercial vehicles. Additional participants are welcome. The upcoming CAN FD Tech Days will update newcomers with Classical CAN background in CAN FD technology. At the 15th internation-al CAN Conference in Vienna in October (27 and 28) sev-eral papers are related to CAN FD topics.

Holger Zeltwanger

CAN Newsletter Online


Recommended