CanaLyzer

The CANalyzer is a development tool from Vector GmbH for CAN bus-based systems that allows the user to observe, analyze, and provide data traffic on the bus line. Specifically, the functions included range from listing bus data traffic (tracing), displaying data segments of specific messages, transmitting predefined messages, and replaying recorded messages, to statistically evaluating messages, bus loading, and disturbances. The picture below illustrates the main window after opening CANalyzer.

To start using CANalyzer the bus was the first setup. In this case, the hardware interface CANcaseXL USB 2.0 was provided for using it as the gateway that, when connected to the bus, made possible the transmission and reception of data frames to and from the target platform QR5567.

The main features of CANcaseXL include the USB 2.0 interface for connecting to a laptop or PC, a 32-bit microcontroller with 64 MHz, 2 communication channels, CAN 2.0B and LIN controllers, and the bus transceivers which compose the hardware that handles the signals in the bus at the physical level. The associated driver for CANcaseXL was also installed in the computer running CANalyzer. 

This device can be fully operated from CANalyzer. The figure below shows CANcaseXL and the associated cable to connect between it and the work computer.

To finish the bus physical setup, a D-sub-9 connector was wired to the CANHigh, CAN-Low, and Ground pins of the CAN port on the QR5567 platform to be able to connect the interface cable to it since such connector type was missing. Back into CANalyzer, the configuration of the bus properties was done by setting the communication Baud Rate to 500 kBaud (about half the maximum); other parameters like the Bus timing registers 0 and 1 and the number of samples was left with default values. The picture in Figure 23 shows the appearance of this configuration window. Alternatively, pressing Scan gives current bus parameters.

canalyzer hardware setup
Canalyzer Hardware Setup Diagram

The next preparing step consisted of creating the data flow. This is achieved by opening the Measurement Setup menu. The diagram presented includes a data source, symbolized by the PC card to the left (corresponding to CANcaseXL in this case), and some evaluation blocks to the right. In this sense, the flow of data goes from left to right. Connection lines and branches are visible between both sides to ease the understanding of the possible courses of data flow.

canalyzer configuration window

The small rectangles in the diagram are identified as “hotspots” and they are used to insert additional blocks for manipulating the data flow. One type of these, the program blocks (identified with the letter “P”), can be inserted at any point in the data flow diagram. They are edited with a C-like language named “CAPL” by using an IDE called CAPL Browser that is contained in CANalyzer. This project benefited from using the CAPL programming language (and its already available functions) in the development of code in charge of carrying the sequence of transmission of UDS requests and blocks of program data within the binary file, to the target. The image in the below Figure shows the main window in the CAPL Browser.

capl browse
CAPL Browser
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
Scroll to Top