CAN tools – then and now · 4 CAN Newsletter 1/2017 The possibilities of a bus system can only be...

5
4 CAN Newsletter 1/2017 T he possibilities of a bus system can only be fully uti- lized in combination with powerful software tools for development, diagnostics, and support. In parallel with the rise and advancement of the CAN network, therefore a significant infrastructure comprising tools for bus ana- lysis, management of communication data, development, and simulation of bus nodes and much more has become established. This article leads us from the modest begin- nings of the CAN tools and the past challenges to the cur- rently achieved state and the emerging trends for the fu- ture. When the first vehicles with CAN in the drive train went into series production in 1990, even specialists were surprised by the robust and trouble-free operation demon- strated by the new bus system in actual use. Troubleshoot- ing in the modern vehicles, however, proved to cause con- siderable problems for developers and repair shops. This was due, on the one hand, to the lack of know-how in the area of bus technology and networked electronics and, on the other hand, to the lack of suitable tools for bus diag- nostics. In some cases, this helplessness resulted in ve- hicles needing to be sent to the factory for error analysis. There, the development engineers used provisional tools to try and localize errors and document the procedures. CAN tools – then and now This article leads us from the modest beginnings of the CAN tools and the past challenges to the currently achieved state and the emerging trends for the future. Work on bit-level and with hex representations was, at this point in time, both inefficient and without alternative. First technically adequate CAN tool The engineers at Vector soon recognized this problem and began developing a user-friendly CAN tool for the motor vehicle sector in 1991. The application area of this software with the catchy name “CANalyzer” covered both development as well as troubleshooting. With completion of the first prototype in spring of 1992, Vector learned from the press about the founding of CAN in Automation (CiA), whose original roots lie in general automation. After immediately contacting Holger Zeltwanger, CiA co-founder, Vector became a very early member of the CAN user orga- nization in April 1992. On the periphery of iNet in Sindelfin- gen, Germany, in June of 1992, the first CiA meeting with Vector in attendance was held. At the same time, the com- pany presented CANalyzer to the public for the first time at this trade fair, a tool that finally allowed developers to work in a comfortable, technically adequate manner. The author of this article regularly gave lectures at CiA events and held training courses on the topic of CAN in the following years. Figure 1: From the early days of CAN tools on the joint CiA booth at Hanover Fair 1993 (Photo: Vector) 25 th anniversary

Transcript of CAN tools – then and now · 4 CAN Newsletter 1/2017 The possibilities of a bus system can only be...

Page 1: CAN tools – then and now · 4 CAN Newsletter 1/2017 The possibilities of a bus system can only be fully uti- lized in combination with powerful software tools for development, diagnostics,

4 CAN Newsletter 1/2017

The possibilities of a bus system can only be fully uti-lized in combination with powerful software tools for

development, diagnostics, and support. In parallel with the rise and advancement of the CAN network, therefore a significant infrastructure comprising tools for bus ana-lysis, management of communication data, development, and simulation of bus nodes and much more has become established. This article leads us from the modest begin-nings of the CAN tools and the past challenges to the cur-rently achieved state and the emerging trends for the fu-ture. When the first vehicles with CAN in the drive train went into series production in 1990, even specialists were surprised by the robust and trouble-free operation demon-strated by the new bus system in actual use. Troubleshoot-ing in the modern vehicles, however, proved to cause con-siderable problems for developers and repair shops. This was due, on the one hand, to the lack of know-how in the area of bus technology and networked electronics and, on the other hand, to the lack of suitable tools for bus diag-nostics. In some cases, this helplessness resulted in ve-hicles needing to be sent to the factory for error analysis. There, the development engineers used provisional tools to try and localize errors and document the procedures.

CAN tools – then and now

This article leads us from the modest beginnings of the CAN tools and the past challenges to the currently achieved state and the emerging trends for the future.

Work on bit-level and with hex representations was, at this point in time, both inefficient and without alternative.

First technically adequate CAN tool

The engineers at Vector soon recognized this problem and began developing a user-friendly CAN tool for the motor vehicle sector in 1991. The application area of this software with the catchy name “CANalyzer” covered both development as well as troubleshooting. With completion of the first prototype in spring of 1992, Vector learned from the press about the founding of CAN in Automation (CiA), whose original roots lie in general automation. After immediately contacting Holger Zeltwanger, CiA co-founder, Vector became a very early member of the CAN user orga-nization in April 1992. On the periphery of iNet in Sindelfin-gen, Germany, in June of 1992, the first CiA meeting with Vector in attendance was held. At the same time, the com-pany presented CANalyzer to the public for the first time at this trade fair, a tool that finally allowed developers to work in a comfortable, technically adequate manner. The author of this article regularly gave lectures at CiA events and held training courses on the topic of CAN in the following years.

Figure 1: From the early days of CAN tools on the joint CiA booth at Hanover Fair 1993 (Photo: Vector)

25th

ann

iver

sary

Page 2: CAN tools – then and now · 4 CAN Newsletter 1/2017 The possibilities of a bus system can only be fully uti- lized in combination with powerful software tools for development, diagnostics,

HMS Industrial Networks GmbHEmmy-Noether-Str. 17 · 76131 Karlsruhe

+49 721 989777-000 · [email protected] www.anybus.com · www.ixxat.com · www.ewon.biz

Worldwide over

130,000 pieces sold!

PC/CAN Interfaces

With

support

CANblue II - Bluetooth

PC interface, bridge, gateway

1 x CAN (HS)CAN-IB 120/PCIe Mini

1-2 x CAN (HS/LS)

CAN-IB 100/200/PCIe

1-4 x CAN (HS/LS) CAN-IB 130/PCIe 104

2-4 x CAN (HS)

CAN@net II - Ethernet

PC interface, bridge, gateway

1 x CAN (HS)

Easy CAN connection for your application

� Interface for your control or monitoring application as well as for the IXXAT tool suite

� All PC interface standards supported with one uniform driver interface

� Drivers (32/64 bit) for Windows7/8/10, Linux, QNX, INtime, VxWorks and RTX

� APIs for CANopen and SAE J1939

Discover more:

www.all4CAN.com

All you need for

USB-to-CAN V2

1-2 x CAN (H

S/LS)

The computer and software world of that time was sig-nificantly different from that of today. Typical PCs were IBM PC/AT compatible computers equipped with 80386-CPU, clock speeds of 25 MHz and 1 MiB of RAM, while the oper-ating system of choice was called MS-DOS. Portable com-puters also existed at that time, but they were truly heavy “boxes” which looked more like a sewing machine than a computer system (Figure 2). At nearly the same time as the CANalyzer presentation, Microsoft Windows 3.1 was launched on the market in early 1992. The predecessor ver-sions of this operating system were found to be much too slow and unreliable for technical software with real-time requirements.

9HFWRU·V� &$1� WRRO� ZDV� VWLOO� EDVHG� RQ� 06�'26�� EXW�had a self-developed and fast graphical operating system with window management that had already proven itself in calibration tools developed for Bosch. This was a decisive advantage over the text-based MS-DOS tools from other producers, as it offered much better user guidance. Instal-lation was very simple: The user simply copied the approxi-mately 1 MiB of content located on a diskette to a PC direc-tory, selected the correct graphics driver (Hercules, EGA, or VGA) and started an EXE file. Today, a single digital photo is about four times larger than the content of the installa-tion diskette of the first CANalyzer version. For bus coupling, only ISA cards from Bosch and Daimler-Benz were initially available. For this purpose, the specialist secured the sales rights, in order to supply other users of CAN tools with the right hardware as well.

Depending on one's perspective, the first version of the tool can be characterized, on the one hand, as spartan and, on the other hand, as rather progressive. For example, the functionality of the first interface boards with the so-called FullCAN controllers (Intel AN82526) was still noticeably restricted. It only allowed the reception of messages whose identifiers the developer had previously entered in the object list of the controller. For the automotive ECUs of the time, the automatic reception of CAN messages on this basis was a great advantage, as the low-performance micro-controllers were not unnecessarily burdened. Universally usable CAN tools were, however, severely impaired as a result. Progres-sive, on the other hand, was the ability to freely program the tool. The self-developed programming language, CAPL, enabled developers and testers to both generate as well as manipulate CAN traffic. With the help of simple scripts, it was – even at that time – possible to generate correct as well as faulty data traffic for testing and stimulating test samples.

Figure 2: CAN analysis 1993 – Compaq Portable with ISA-CAN interface card (Photo: Vector)

Page 3: CAN tools – then and now · 4 CAN Newsletter 1/2017 The possibilities of a bus system can only be fully uti- lized in combination with powerful software tools for development, diagnostics,

6 CAN Newsletter 1/2017

A great improvement in convenience came just a year later in 1993 with interface cards that were specially developed for CAN tools. They worked with simpler CAN controllers and could receive all messages. This, in turn, then required “high-performance” micro-controllers on the cards. Even if it might be a matter of course today, at this time it was a massive challenge to transfer the data of two high-speed CAN networks to the PC with 1 Mbit/s and 100 % bus loading without loss of messages.

The Vector tools brought a significant improvement in operation and convenience with the implementation of the CANdb data format. It is used to store and manage all parameters, messages, and signals of pre-configured CAN networks. In particular, the system permits the use of symbolic designations for messages and signals and it supports the conversion of raw bus data into physical quantities. Temperatures, for example, can be presented directly in degrees Celsius instead of in cryptic binary val-ues, the enumeration values of codes can be displayed and much more. CANdb now gave users the ability to work with expressive and familiar designators, making coding details and ambiguous data fields in hexadecimal numbers a thing of the past. Other tool producers quickly realized this as well. As a result, CANdb soon became the de facto industry standard for pre-configured CAN networks.

7KH� VLPXODWLRQ� RI� QRW� \HW� LPSOHPHQWHG� (&8V·� EXV�traffic and even complete network topologies with CANoe (CANopen environment) in 1995 marked another mile-stone in the history of CAN tools. For ECU developments, these remaining bus simulations are the prerequisite for realistic tests which provide information on the behav-ior and maturity level of the test sample, even if the final environments do not yet exist. In the meantime, Windows had established itself as the dominant PC operating sys-tem and the significantly faster Pentium-based computers finally allowed it to be used with tools.

From specialized CAN profile to multibus tool

Through the rapid proliferation of the CAN network in both the automotive sector and in areas such as factory automa-tion, medical technology, railway technology, and commer-cial vehicle technology or aviation, numerous CAN-based higher-level protocols and profiles became established.

Vector responded to this development with a series of pro-tocol-specific variants of its CAN tools. Among the most important were the options SDS (Honeywell), Devicenet (Allen Bradley), and CANopen (CiA) for automation tech-nology, J1939 for the commercial vehicle sector as well as CANaero for the aviation industry.

In parallel, the automotive industry developed the specialized network systems LIN, Most, and Flexray, which were no longer based on CAN. It was now a matter of expanding the existing CAN tools accordingly and giving the users the ability to continue to perform their tests and measurements in the multibus environments of the modern vehicles using the tools with which they were familiar. The highly accurate capturing, synchronization and process-ing of the numerous messages and signals from the vari-ous parallel bus systems continues today to be one of the greatest challenges for a tool producer.

With CAN FD (CAN Flexible Data Rate), Bosch pre-sented an interesting successor to Classical CAN in 2012. The main new features are a user data length that was expanded from 8 bytes to 64 bytes as well as the ability to switch to significantly higher data transmission rates. While, in the opinion of specialists, CAN will continue to be a factor for at least ten more years, the series intro-duction of CAN FD is just around the corner and the next generations of vehicles from various manufacturers will be equipped with it. One big advantage of CAN FD is that the existing CAN concepts such as bus arbitration, message detection, event control, etc., are retained and the develop-ers do not need to deal with a completely different behav-ior. The same holds for the integration of CAN FD in the tools.

A switch to automotive Ethernet, on the other hand, involves significant changes in the familiar ways of working and thinking. The high bandwidth of Ethernet is essential for intelligent ADAS applications (Advanced Driver Assis-tance Systems) as well as future autonomous driving. The systems use so-called environmental models, which con-tinuously are to be fed with large quantities of data by on-board cameras, radar sensors, etc. Instead of using a physically connected common bus system, with Ethernet one uses a distributed logical network made up of numer-ous switches and electrical point-to-point connections. This necessitates entirely new approaches both by net-work and ECU developers as well as by vehicle manufac-turers. On top of this comes the handling of the significantly greater volume of data. While the previous automotive net-works are defined largely statically, in future applications – especially in combination with Ethernet – service-oriented communication will play an important role. This results in

Figure 3: Network analysis today – Tablets offer mobility and performance (Photo: Vector)

X Marc Lobmeyer, Roman Marktl (Vector): Tips and tricks for the use of CAPL (part 1)

X Marc Lobmeyer, Roman Marktl (Vector): Tips and tricks for the use of CAPL (part 2)

X Marc Lobmeyer, Roman Marktl (Vector): Tips and tricks for the use of CAPL (part 3)

X Mirko Donatzer (Vector): Eye diagram analysis for CAN FD

Related articles

25th

ann

iver

sary

Page 4: CAN tools – then and now · 4 CAN Newsletter 1/2017 The possibilities of a bus system can only be fully uti- lized in combination with powerful software tools for development, diagnostics,

greater flexibility and reusability of function units; new plat-forms can thereby be quickly assembled using the modular concept. On startup, the ECUs then communicate which network nodes are interested in which information and who can supply the information.

What history teaches us

In spite of modern computers with multi-core CPUs and computing power and memory sizes that are about 1 000 WLPHV� JUHDWHU�� WRGD\·V� FKDOOHQJHV� GLIIHU� YHU\� OLWWOH� IURP�those in the early stages of CAN. The fight for performance UHPDLQV� DQG� WKH� DYDLODEOH� UHVRXUFHV� DUH� DOZD\V� SXVKHG�to the limits. Today's tools (Figure 3) must be able to han-dle extreme real-time requirements with reaction times in the sub-microsecond range. The required data transmis-sion rates are about 100 Mbyte/s, i.e., approx. 1 000 Mbit/s. Here as well, we again encounter the factor of 1 000, if one thinks back to the 1 Mbit/s of the first CAN tools. Com-pared to the single diskette that held the first CANalyzer, a current full-installation of CANoe/CANalyzer with all op-WLRQV�KDV�D�GDWD�YROXPH�LQ�H[FHVV�RI���*L%��ZKLFK�ZRXOG�EH�HTXLYDOHQW�WR�DSSUR[LPDWHO\�� ����RI�WKH�DERYH�PHQWLRQHG�installation diskettes.

9HFWRU� FRQJUDWXODWHV� &L$� RQ� LWV� ��th� DQQLYHUVDU\� and is thankful for the excellent collaboration RYHU� WKH� PDQ\� \HDUV�� :H� FDQ� RQO\� VSHFXODWH� RQ�what communication systems will bring in the next ���\HDUV�DQG�ZKDW�WKH�GDWD�QHWZRUNV�ZLOO�ORRN�OLNH��&$1�DQG��DERYH�DOO��&$1�)'�KDYH�WKH�FKDQFH�WR�FRQWLQXH�WR�SOD\�DQ�important role in the coming decades. W

:LWK�UHVSHFW�WR�WKH�&$1�QHWZRUN��0DUWLQ�/LWVFKHO�FDQ�certainly be considered a pioneer. In the 1980s, he SOD\HG�D�NH\�UROH�DW�5REHUW�%RVFK�LQ�GHILQLQJ�WKH�&$1�SURWRFRO�DQG�ZDV�DOVR�LQYROYHG�LQ�WKH�ILUVW�VHPLFRQGXFWRU�LPSOHPHQWDWLRQ�� KH� WKHQ� OHG� WKH� GHYHORSPHQW� JURXS�EHJLQQLQJ�LQ�������-XVW�RQH�\HDU�ODWHU��KH�OHIW�%RVFK�DQG��together with two friends, founded Vector Informatik. 8QWLO������KH�ZDV�UHVSRQVLEOH�WKHUH�IRU�KDUGZDUH�DQG�QHWZRUN�WRRO�GHYHORSPHQW�DV�H[HFXWLYH�GLUHFWRU��7RGD\�KH�LV�LQYROYHG�ZLWK�9HFWRU�DV�DXWKRUL]HG�RIILFHU�DQG�LV�DFWLYH�RQ�WKH�9HFWRU�IRXQGDWLRQ�DV�IRXQGDWLRQ�WUXVWHH�

About the author

Author

0DUWLQ�/LWVFKHOVector InformatikPDUWLQ�OLWVFKHO#YHFWRU�FRPZZZ�YHFWRU�FRP

HMS Industrial Networks GmbHEmmy-Noether-Str. 17 · 76131 Karlsruhe

+49 721 989777-000 · [email protected] www.anybus.com · www.ixxat.com · www.ewon.biz

CAN Repeater, Bridges and Gateways

CANblue II - Bluetooth

PC interface, bridge, gateway CANbridge

(DIN rail or aluminum

case)

CAN-CR220

CAN repeater (4 kV galv. iso.) CAN-CR 210/FO

FO repeater (F-SMA or ST)

IXXAT CME/PN

3UR¿QHW�&$1

RSHQ�*DWHZD

\�

Interconnect your CAN devices and systems

� Save costs due to simple wiring

� Increase your system reliability and protect devices by galvanic isolation (up to 4 kV)

� Backbone bus to set up multi-channel solutions

� Filter/conversion functionality – no programming!

� Bridging of large distances and easy system access using Bluetooth, Ethernet...

CAN@net NT 200

CAN-to-Ethernet

gateway/bridge with

2 CAN channels

Discover more:

www.all4CAN.com

All you need for

Page 5: CAN tools – then and now · 4 CAN Newsletter 1/2017 The possibilities of a bus system can only be fully uti- lized in combination with powerful software tools for development, diagnostics,

�����������("#�$$��������� %�#������!#�����("#�$$

%/,��������049,7-(*,�!����!����=67,88����08�(�62:.�04�*(7+��!��,�=��-57�9/,�!����=67,88�8259�<09/�+(9(�97(48-,7�7(9,8�:6�95����)09�8���,20;,7>�04*2:+,8�(�3540957�85-9<(7,���!�8��(4+�+70;,78�-57�'04+5<8?�(4+��04:=��

� ��;(02()2,�<09/� �����57���0./�86,,+�����*/(44,28��� �*/(44,2�;,78054�,=6,*9,+�95�),�(;(02()2,�04�"����� �#OMPLIES�WITH�#!.�SPECIÚCATIONS�����!�"�AND�&$� ��������8:66579�-57��$ �(4+��54��$ �89(4+(7+8�8<09*/()2,� �#!.�&$�BIT�RATES�FOR�THE�DATA�ÚELD�UP�TO����-BIT�S� �����)09�7(9,8�-753����1)09�8�:6�95���)09�8� �����):8�*544,*9054�;0(���$:)����604���04�(**57+(4*,�<09/��0�?������ ��(2;(40*�0852(9054�54�9/,�����*544,*9054�:6�95���&��8,6(7(9,�-57�,(*/�����*/(44,2� �����9,7304(9054�(4+���&529�8:662>�(9�9/,�����*544,*9054�*(4�),�(*90;(9,+��8,6(7(9,2>�-57�,(*/�����*/(44,2� �!��,�+(9(�97(48-,7�;0(�):8�3(89,7����������3,357>�(**,88�56,7(90548�<09/�����(4+�� �)09�(++7,88,8� ��=9,4+,+�56,7(904.�9,36,7(9:7,�7(4.,�-753�� �95����@�� ��,(8:7,3,49�5-�):8�25(+�04*2:+04.�,7757�-7(3,8�(4+�5;,725(+�-7(3,8�54�9/,�6/>80*(2�):8� ��4+:*,+�,7757�.,4,7(9054�-57�04*5304.�(4+�5:9.504.�����3,88(.,8

�������("�!#�#���#!��$$�! ��������!��& ���%�! ��!�%'�#�

%/,�!�����=6257,7�08�(�;,78(902,��675-,88054(2�'04+5<8?�85-9<(7,�-57�9/,�5)8,7;(9054��*549752��(4+�803:2(9054�5-�����BUSSES��"ESIDES�#!.�����!�"��THE�0#!. %XPLORER���NOW�ALSO�8:665798�9/,��������89(4+(7+���� ��$03:29(4,5:8�*544,*90548�<09/�3:29062,�����049,7-(*,8�04+,6,4+,49�5-�9/,07�/(7+<(7,�9>6,� �3UPPORT�FOR�THE�#!.�SPECIÚCATIONS�����!�"�AND�&$�� �%7(483088054�5-��������+(9(�<09/�)09�7(9,8�:6�95����)09�8� �#LEAR�DISPLAY�OF�THE�#!.�TRAFÚC�WITH�VARIOUS�INFORMATION� �#ONÚGURABLE�SYMBOLIC�MESSAGE�REPRESENTATION� ��(8>�3(4:(2�(4+�6,705+0*�3,88(.,�97(483088054� ��(9(�25..04.�<09/�97(*,78�(4+�9/,� �*/(44,2��04,�'709,7� �0LAYBACK�OF�TRACE�ÚLES�WITH�OPTIONAL�LOOP�FUNCTION� �-ULTIPLE�ÛEXIBLE�ÚLTERS��ALSO�USABLE�FOR�RECORDED�TRACE�ÚLES� �-ANAGEMENT�OF�SETTINGS��INFORMATION��AND�ÚLES�IN�PROJECTS� �%XPORT�OF�ENTIRE�PROJECTS�INCLUDING�LINKED�ÚLES�TO�HANDY�6(*1,98�-57�(7*/0;04.�57�8/(704.� ��:953(9054�5-�83(22�9(818�57�*5362,=�675*,88,8�<09/�MACROS�OR�6"3CRIPT� ��:4*9054(209>�:6.7(+,8�<09/�(++�048

� � �����"ASIC�TRAINING�FOR�GROUPS�OR�INDIVIDUALS��)F�YOU�ARE��� � 049,7,89,+��62,(8,�*549(*9�97(0404.�6,(1�8>89,3�*53��

'''�"����$)$%����!�

�����)$%������� ������ 995�#5,/3�$97������� �����(7389(+9���,73(4>�!/54,��� ����������������(=��� ��������������3(02��04-5�6,(1�8>89,3�*53

���%�&$�� ����������!!%�����

�#�'�#������!�%'�#���!#�������""����%�! $