I am often asked: "I want to record CAN data for a long time, is there any way to achieve it?" Here is a few ways to record CAN data for a long time.
First, simple and fast - USBCAN cardAny engineer who has used the CAN bus must be very familiar with the USBCAN card. The USBCAN card is a tool for transmitting CAN bus signals to the PC through the USB bus for engineers to interpret and debug the CAN bus. The USBCAN card can continuously record CAN bus messages through the PC. The powerful USBCAN card can even do protocol parsing (need to load DBC files), bus utilization statistics, error message marking and other functions.
Although the USBCAN card is very convenient to carry, it has no storage capacity. It must be connected to the computer and stored and recorded through the memory of the computer. Therefore, it is suitable for debugging and data recording in the laboratory. It is not suitable for long-term data recording on site.
Second, the CAN network black box - CANDTUThe black box generally refers to the aircraft-specific electronic recording equipment, which can record the flight parameters such as the aircraft system working condition and engine working parameters for a period of time before the aircraft stops working or crash, for flight experiments and accident analysis. In fact, CAN network bus also has "black box", we call it CANDTU, CANDTU integrates 2 independent CAN-bus channels conforming to ISO11898 standard, and can be equipped with 32G high-speed SD card as standard storage medium, which can record for a long time and condition record. Various modes such as pre-trigger recording and timing recording, and can convert recorded data into CSV format, or formats of various mainstream analysis software such as CANOE and CANScope for post-processing analysis.
CANDTU can record CAN messages for a long time, so that engineers can find data, but can not locate and analyze for network stability and sporadic failures.
Third, with the help of test instruments - oscilloscope, logic analyzerThe tools mentioned above can only be used for record analysis of CAN messages or protocols, but if you want to see CAN waveforms, then we must use the most oscilloscope. Usually we record and analyze the CAN bus in the laboratory. We can use the oscilloscope with CAN bus decoding function. However, because the oscilloscope has a high sampling rate, it is necessary to select an oscilloscope with sufficient storage depth for long-term acquisition of the CAN bus signal, and the oscilloscope itself must With CAN bus decoding, triggering, search and other functions, you can locate data frames.
In addition to oscilloscopes, logic analyzers are also commonly used decoding tools, and the memory depth can be deeper, but logic analyzers can only record logic values ​​and cannot see actual waveforms, so they are generally used for bus decoding and protocol analysis, due to CAN bus. The rate is not high, so the selection of the logic analyzer is not very demanding, but it is recommended to choose a deeper storage logic analyzer to support longer recording.
Fourth, ultra-long data and waveform record analysis - CANRECCANDTU can record CAN messages for a long time, but can't see the waveform, it can't fully analyze the network stability. The oscilloscope can record waveforms, but the recording time is very limited and cannot be recorded for a long time. So what should I do if I want to analyze the stability and sporadic failure of the CAN network in depth? For example, the wind turbine pitch system has a CAN data transmission interruption in 72 hours; the new energy vehicle appeared “black†in the process of driving 10,000 kilometers, but it could not be reproduced later; the high-speed train was driving 2000. An emergency deceleration due to an abnormal CAN communication occurs one time in the kilometer. These sporadic CAN communication anomalies are like time bombs, which scares designers and users. At this point, you need to use CANREC - 8-channel CAN bus to record the analyzer, can run independently from the PC, store CAN messages and waveforms for a long time, to ensure that users can find errors, and see the waveform before and after the error occurs.
The so-called roads lead to Rome, there are many ways to record and analyze CAN bus. How to choose depends on your own needs and make appropriate choices.
Interface Codecs,Ic Chip Transitor,Integrated Circuit Ic Microcontroller,Ic Chips Integrated Circuits
Shenzhen Kaixuanye Technology Co., Ltd. , https://www.iconlinekxys.com