The OptoLyzer® MOCCA series is the K2L automotive bus interface product line. From the OptoLyzer MOCCA CL unit with six standard CAN and six LIN interfaces to the OptoLyzer MOCCA compact unit with six standard CAN, six LIN, one FlexRay and one MOST interface, the OptoLyzer MOCCA series is available for different applications. The scenario offers a variety of customized solutions. These devices can be used for application testing, simulation and verification, as well as for gateway applications. Together with K2L's OptoLyzer Studio software, the OptoLyzer MOCCA series will definitely help the entire development process. In this article, we focus on the OptoLyzer MOCCA FD, a development tool for CAN FD, CAN, and LIN. In addition to the hardware, we will also discuss software options for OptoLyzer MOCCA FD users: OptoLyzer Studio and K2L.Bus.
Figure 1 OptoLyzer® MOCCA Series Equipment
1 OptoLyzer MOCCA FD interface
The OptoLyzer MOCCA FD is equipped with two CAN-FD interfaces, which can also be configured for CAN high speed, CAN low speed or single line CAN. It is also equipped with six LIN interfaces and four standard CAN interfaces. For CAN-FD, ISO and non-ISOCRC calculations are supported. The accuracy of the CAN FD timestamp is less than one microsecond. In addition, the MOCCA FD comes with a trigger interface and a relay interface. In connection with the PC, the device is equipped with a USB 2.0 interface.
Figure 2 Front and rear interfaces of the OptoLyzer® MOCCA FD
2 OptoLyzer MOCCA FD Use Case
When using the OptoLyzer MOCCA FD, the following are two main use cases that may be involved during development. As shown in Figure 3, the first use case for the OptoLyzer MOCCA FD is to track and analyze activity on the bus. The MOCCA FD interface is directly connected to the CAN FD bus. The other end is connected via USB to a laptop running K2L development software (OptoLyzer Studio or Programmable API K2L.Bus that comes with the OptoLyzer MOCCA FD). The second use case is not just for analysis. In this use case, the CAN FD node is replaced or simulated using the OptoLyzer MOCCA FD and OptoLyzer Studio and the K2L Bus-based custom application. In the system shown in Figure 3, the OptoLyzer MOCCA FD and PC software will combine to form the fourth CAN FD node in the network.
Figure 3 CAN FD analysis and simulation
The screenshot in Figure 4 is an example of the latter use case, showing a small CAN FD demo system. In the foreground, the OptoLyzer MOCCA FD is connected to the Preh IDrive via CAN and connected to Microchip's CAN FD evaluation board via CAN FD. In addition, the OptoLyzer MOCCA FD is connected via USB to a PC running OptoLyzer Studio. This can be seen from the computer screen in the background. The smaller window on the PC comes from the Pico Technology oscilloscope connected to the Microchip evaluation board. This window shows the CAN FD frame transmitted over the CAN FD bus. OptoLyzer Studio displays the baud rate of the CAN FD data phase with the tachometer plug-in window. In this demonstration system, IDrive can be used to change the transmission rate of the data phase in CAN FD communication.
Figure 4 Using the OptoLyzer® MOCCA FD/OptoLyzer Studio as a CAN FD node
3 OptoLyzer MOCCA FD Software Options
—— OptoLyzer Studio and K2L.Bus
The network interface of the OptoLyzer MOCCA FD hardware can be configured using K2L's powerful OptoLyzer Studio software. In addition to the modification of standard settings such as baud rate and bit timing (see Figure 5), the software also provides the following advanced features: Trace View provides a simple display of traffic on the connected bus; it can be used during online measurement and offline mode. Observe the signal behavior in the Graph View. In addition, the Filter Editor can also be used to define filter conditions. With the Activity View function, you can easily and clearly see the simulation of the bus interface.
Figure 5 CAN and CAN FD settings in OptoLyzer® Studio
The K2L.Bus API is available free of charge, allowing customers to programmatically access the OptoLyzer MOCCA FD. K2L.Bus is a .NET dynamic link library developed in C# that can be used during the development of actual .NET testing and simulation applications. A set of examples is also provided to illustrate how to access the OptoLyzer MOCCA hardware interface from within a custom C# program.
Original text from Microchip micro core