Real-time acquisition and analysis system and method for automobile bench test data

Through the CAN bus analyzer and data analysis module based on Python scripts, combined with the MQTT message server, the hardware dependence and cost of automotive bench test data acquisition and analysis solutions in the existing technology is solved, and efficient and flexible Data acquisition and parsing reduces system complexity and cost, and improves data compatibility and scalability.

CN119135725AInactive Publication Date: 2024-12-13CATARC AUTOMOTIVE QUALITY INSPECTION CENT NINGBO +1

Patent Information

Application Number
CN202411599005.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2024-12-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing automotive bench test data acquisition and analysis solutions have problems such as strong hardware dependence, high cost, insufficient flexibility, low data sampling frequency and lack of good compatibility.

Method used

Using a CAN bus analyzer and data analysis module based on Python scripts, real-time data acquisition, parsing and transmission is performed through the MQTT message server, and the name, ID, length, start bit, and value range of CAN messages and signals is defined using the DBC file format. and units, extract and convert raw values, reducing dependence on commercial CAN analyzers and dedicated software.

Benefits of technology

It realizes efficient collection, analysis, transmission and storage of CAN data of automotive detection bench equipment, improves the flexibility and scalability of the system, simplifies the data processing process, reduces cost and complexity, and realizes the CAN data frame Efficient extraction and data application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135725A_ABST
    Figure CN119135725A_ABST
Patent Text Reader

Abstract

The invention relates to a real-time acquisition and analysis system and method for automobile bench test data, and the system comprises an automobile bench detection device which is used for carrying out the performance test of automobile parts or a whole automobile, and outputting the test data in real time through a CAN bus interface; the multifunctional terminal equipment is connected with the CAN bus interface and comprises a Python script-based CAN bus analyzer and a data analysis module, the CAN bus analyzer is used for receiving the test data according to configuration parameters of the Python script, and the data analysis module is used for analyzing the test data; and the MQTT message server is used for receiving the analysis result of the multifunctional terminal equipment and transmitting the analysis result to a database of a user or a client. According to the invention, the flexibility and compatibility of data acquisition can be improved, and a basis is provided for subsequent data analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile parts detection, and in particular to a real-time acquisition and analysis system and method for automobile bench test data. Background Art

[0002] In the field of data processing and communication for automotive parts inspection, CAN (Controller Area Network) bus technology is a serial communication protocol for real-time applications and is widely used in vehicle systems. CAN bus has the characteristics of high speed, reliability and anti-interference, and can meet the requirements of automotive electronic systems for real-time communication. CAN analyzers are devices used to monitor, record and analyze communication data on the CAN bus. They can capture data frames transmitted on the CAN bus, parse them, and provide visual recording functions to help engineers diagnose and debug problems in automotive electronic systems. Current CAN bus data acquisition and analysis solutions usually rely on specific foreign hardware devices and software tools. For example, some commercial CAN analyzers need to be connected to a computer and use dedicated supporting software to parse CAN data frames. These solutions have the problems of strong hardware dependence, high cost and lack of flexibility. For the parsed CAN data frames, they are usually stored in an external database for subsequent analysis and processing, but the current mainstream products usually store them in their own software through custom data formats, with low data sampling frequency and poor compatibility. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a real-time acquisition and analysis system and method for automobile bench test data, which can improve the flexibility and compatibility of data acquisition and provide a basis for subsequent data analysis.

[0004] The technical solution adopted by the present invention to solve the technical problem is: to provide a real-time collection and analysis system for automobile bench test data, comprising: Automobile test bench equipment, used to perform performance tests on automobile parts or complete vehicles, and output test data in real time through the CAN bus interface; A multifunctional terminal device, connected to the CAN bus interface, comprising a CAN bus analyzer and a data analysis module based on a Python script, wherein the CAN bus analyzer is used to receive the test data according to the configuration parameters of the Python script, and the data analysis module is used to parse the test data; The MQTT message server is used to receive the parsing result of the multi-functional terminal device and transmit the parsing result to the database of the user or the client.

[0005] The automobile bench testing equipment performs performance tests on automobile components or the entire vehicle under a controlled environment.

[0006] The test data is transmitted to the CAN bus in the DBC file format.

[0007] The CAN bus analyzer is connected to the CAN bus interface, and the CAN channel ID and CAN channel parameters are configured through the Python script.

[0008] The data analysis module parses the test data according to a pre-provided DBC file, wherein the DBC file defines the name, ID, length, start bit, value range and unit of each CAN message and signal.

[0009] The data analysis module includes: An extraction unit, used to determine the start bit and length of the signal according to the DBC file, and extract corresponding bits from the CAN data frame of the test data according to the start bit and length to obtain an original value; A conversion unit is used to determine a factor and an offset of a signal according to the DBC file, and convert the original value into a physical value of the signal according to the factor and the offset.

[0010] The MQTT message server allows or prohibits specified users or clients from publishing or subscribing to set topics by configuring access control lists.

[0011] The MQTT message server includes: A receiving unit, configured to receive the parsing result of the multifunctional terminal device; A classification unit, used to classify the analysis results according to the type of set topics; The sending unit is used to send the parsing result of each category to the database of the user or client who subscribes to the corresponding topic according to the classification result.

[0012] The technical solution adopted by the present invention to solve the technical problem is: to provide a method for real-time collection and analysis of automobile bench test data, using the above-mentioned real-time collection and analysis system for automobile bench test data, comprising the following steps: The automotive bench testing equipment performs performance tests on automotive parts or complete vehicles and outputs the generated test data in real time through the CAN bus interface; Configuring the configuration parameters of the CAN bus analyzer based on the Python script; The multifunctional terminal device receives the test data through the CAN bus analyzer, analyzes the test data through the data analysis module, and sends the analysis result to the MQTT message server; The MQTT message server receives the parsing result of the multi-function terminal device and transmits the parsing result to the database of the user or the client.

[0013] Due to the adoption of the above-mentioned technical scheme, the present invention has the following advantages and positive effects compared with the prior art: the present invention realizes the efficient collection, analysis, transmission and storage of CAN data of automobile inspection bench equipment, improves the flexibility and scalability of the system, and simplifies the processing flow of CAN data, reduces cost and complexity, and realizes the efficient extraction and digitized application of CAN data frames. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a structural schematic diagram of a real-time acquisition and analysis system for automobile bench test data according to an embodiment of the present invention; Figure 2 It is a data flow diagram of a real-time acquisition and analysis system for automobile bench test data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0015] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.

[0016] The embodiment of the present invention relates to a real-time collection and analysis system for automobile bench test data, such as Figure 1 As shown, it includes: multiple automobile test bench equipment, multiple multi-function terminal devices and MQTT message server. The whole system can access the dedicated communication network with TCP / IP protocol to realize device interconnection and communication. In this embodiment, the automobile test bench equipment corresponds to the multi-function terminal device one by one, and each multi-function terminal device is provided with a CAN bus analyzer and a data analysis module based on Python scripts. In this embodiment, the CAN bus analyzer based on Python scripts can be a ZLG-CAN data analyzer.

[0017] Among them, the automobile bench detection equipment is used to perform performance tests on automobile parts or complete vehicles, and output test data in real time through the CAN bus interface; the multi-function terminal device is connected to the CAN bus interface, the CAN bus analyzer is used to receive the test data according to the configuration parameters of the Python script, and the data analysis module is used to parse the test data; the MQTT message server is used to receive the analysis results of the multi-function terminal device, and transmit the analysis results to the database of the user or client.

[0018] This implementation method connects the CAN bus data interface of the automobile test bench detection equipment with the CAN bus analyzer based on Python script in the multi-function terminal device. The CAN bus analyzer of the multi-function terminal device collects the data frames, and then the data analysis module parses the data frames, and publishes the parsed data frames to the MQTT message server. The parsed results in the MQTT message server are sent to the database of the corresponding user or client through message subscription, and are permanently stored in a universal format.

[0019] The automobile bench test equipment in this embodiment can perform performance tests on automobile parts or complete vehicles under a controlled environment. It can generate test data to evaluate the durability, safety, efficiency and other performance of the automobile by simulating different road conditions and driving situations. It can monitor and record various parameters such as speed, temperature, pressure, vibration, etc. in real time through corresponding sensors and data acquisition systems. The automobile bench test equipment sends the collected data to the CAN channel through the CAN bus interface in DBC file format.

[0020] The ZLG-CAN data analyzer in this embodiment configures the CAN channel ID and CAN channel parameters through the Python script, so that the CAN message sent by the automobile test bench detection equipment can be received through the ZLG-PYTHON secondary development library. Before receiving the data, the ZLG-CAN data analyzer is configured and started through the config_start_zlg function. Among them, the configuration and startup of the ZLG-CAN data analyzer includes the baud rate and channel parameters of the CAN channel started by the device. Common baud rates include 125kbit / s, 250 kbit / s, 500 kbit / s and 1 Mbit / s. Different CAN channel IDs are assigned according to the design of the system, and it is ensured that they will not conflict.

[0021] The data analysis module in this implementation manner parses the test data according to a pre-provided DBC file, wherein the DBC file defines the name, ID, length, start bit, value range and unit of each CAN message and signal.

[0022] The principle of CAN data frame communication parsing involves parsing the data frame in the CAN protocol to obtain the information contained in it. The CAN data frame is the basic unit of communication on the CAN bus. It contains a message identifier (ID) and a data field (Data Field). The data in it is sensor data, control information, etc. CAN data frames are divided into standard frames and extended frames. Their frame formats are slightly different, but both include a message identifier (ID) and a data field. The ID length of the standard frame is 11 bits, and the ID length of the extended frame is 29 bits. They are used to distinguish different messages or data. The length of the data field can range from 0 to 8 bytes and is used to store actual data information. The message identifier (ID) in the CAN data frame is used to distinguish different messages or data. It can indicate the information of the sending node, the priority of the message, etc. The data field is the part of the CAN data frame used to transmit data. It can contain 0 to 8 bytes of data information. The CAN protocol includes an error detection and control mechanism to ensure the reliability and stability of communication. When parsing the CAN data frame, it is necessary to consider information related to error detection and control, such as CRC check, frame counter, etc. In actual applications, CAN data frames usually contain specific application layer protocol data, such as diagnostic information and control commands in automotive electronic systems.

[0023] The DBC file in this implementation defines CAN messages, signals and their attributes, including identifiers, signal start bits, lengths, factors, offsets (i.e., value ranges), etc. The principle of parsing the DBC file is to parse the CAN data frame according to its definition and convert the original CAN data into readable physical quantities or states.

[0024] The following is an example of the meaning of a DBC file. The explanation of the DBC file example is as follows: - NS_: defines namespace-related information, such as description, command, attribute, etc. - BO_: defines a CAN message, followed by the ID and name of the CAN message. For example, "BO_ 100 EcuVariable" defines a CAN message with an ID of 100 and a name of EcuVariable. - SG_: defines a signal in a CAN message. It specifies the name, start bit, length, offset, factor, unit, and range of the signal. For example, "SG_ EngPower : 48|16@1+ (0.01,0) [0|150] 'kW' Vector__XXX" defines a 16-bit signal EngPower starting at bit 48, with a factor of 0.01, a unit of kW, and a range of 0 to 150. - BA_DEF_: defines the type of an attribute. For example, "BA_DEF_ 'BusType' STRING ; " defines an attribute named "BusType" of type STRING. - BA_DEF_DEF_: defines the default value of the attribute.

[0025] The data analysis module in this embodiment includes: an extraction unit, which is used to determine the starting bit and length of the signal according to the DBC file, and extract the corresponding bit from the CAN data frame of the test data according to the starting bit and length to obtain the original value; a conversion unit, which is used to determine the factor and offset of the signal according to the DBC file, and convert the original value into the physical value of the signal according to the factor and offset. For example, if a signal represents the vehicle speed, its original value, that is, the number of pulses representing the vehicle speed, can be extracted according to the extraction unit, and then the original value can be converted into the actual vehicle speed value according to the factor and offset of the vehicle speed signal through the conversion unit.

[0026] It can be seen that this implementation reduces the dependence on commercial CAN analyzers and dedicated software, reduces hardware costs and software licensing fees, and makes the deployment and operation and maintenance costs of the entire system even lower. This implementation is based on Python data processing and uses Python to collect, parse and process CAN data, making full use of Python's powerful functions in the field of data processing and communication, and improving the flexibility and compatibility of data collection.

[0027] The configuration of the MQTT message server in this embodiment involves setting the connection port, authentication method, maximum number of connections, topic permissions, etc. The MQTT message server is started through the command line or the service manager. The multi-function terminal device publishes the parsed data to the MQTT message server through the MQTT protocol, and then subscribes to the parsed data frame from the MQTT message server through the Python program. The MQTT message server can send the parsed data frame to the database of the corresponding user or client according to the subscribed user or client.

[0028] The topic of the MQTT message server can be determined according to the vehicle test bench equipment, and the maximum number of connections it supports can be set, which can help control the server load and resource usage. Topic permissions can set topic access rights for different users or clients, which can be achieved by configuring access control lists (ACLs) to allow or prohibit specific users or clients from publishing or subscribing to specific topics.

[0029] The MQTT message server in this embodiment includes: a receiving unit for receiving the parsing result of the multifunctional terminal device; a classification unit for classifying the parsing result according to the type of the set topic; and a sending unit for sending the parsing result of each category to the database of the user or client who subscribes to the corresponding topic according to the classification result. In this way, the data can be sent to the specified user or client, thereby helping engineers understand and analyze the communication data in the automotive electronic system, and perform fault diagnosis, performance evaluation, etc.

[0030] It can be seen that this implementation adopts the MQTT protocol for data transmission, realizes lightweight and efficient data communication, improves data transmission efficiency, and is particularly suitable for the Internet of Things (IoT) and vehicle network environments. At the same time, the parsed data can be stored in the database of the corresponding user or client, which is convenient for subsequent users to perform complex data analysis and long-term data storage, and enhances the ability of data management.

[0031] When the real-time acquisition and analysis system of the automobile bench test data of this embodiment performs real-time acquisition and analysis, the data flows as follows: Figure 2 As shown, the specific steps include: Step 1: The automobile test bench test equipment performs performance tests on automobile parts or the entire vehicle, and outputs the generated test data in real time through the CAN bus interface.

[0032] In this step, when performing performance testing, the parameters of the vehicle bench test equipment can be set according to the performance indicators to be evaluated, including various environmental conditions such as speed, load, temperature, humidity, etc. These conditions simulate different driving and road conditions that cars may encounter in the real world. Install the car or the component to be tested on the test bench. For whole vehicle testing, the vehicle may need to be fixed on a dynamic platform; while for part testing, such as engine or transmission system testing, the parts are installed on a dedicated test equipment. Start the test program and the test bench will automatically run according to the preset conditions. For example, in durability testing, the bench may simulate long-term driving conditions, including different driving stages such as starting, acceleration, cruising and braking. During the test, various parameters such as speed, temperature, pressure, vibration, etc. are monitored and recorded in real time through sensors and data acquisition systems. These data will eventually be sent to the CAN channel through the CAN bus interface in the DBC file format and used to analyze the performance of the car or component under specific conditions.

[0033] Step 2, configure the configuration parameters of the CAN bus analyzer based on the Python script. This step is mainly to configure the CAN bus analyzer accordingly, that is, to configure the CAN channel started by the CAN bus analyzer and configure the channel parameters. This setting can ensure that there will be no conflict between the data.

[0034] Step 3, the multifunctional terminal device receives the test data through the CAN bus analyzer, parses the test data through the data analysis module, and sends the parsing result to the MQTT message server. In this step, the test data is received by the configured CAN bus analyzer, and then the data analysis module parses the test data through the pre-provided DBC file, which defines the name, ID, length, start bit, value range and unit of each CAN message and signal, so that the original value of the data can be accurately parsed.

[0035] Step 4, the MQTT message server receives the parsing result of the multi-function terminal device, and transmits the parsing result to the database of the user or client. In this step, the MQTT message server is started through the command line or the service manager. The started MQTT message server can receive the parsing result transmitted by the multi-function terminal device, and forward the parsing result to the database of the user or client who subscribes to the parsing result from the MQTT server through the Python program to save it in the form of structured data.

[0036] It is not difficult to find that this implementation method, aimed at imported automobile bench test equipment, breaks the limitation that the current test data collection and processing rely on specific supporting hardware and software, and solves the problems of insufficient test data samples, lack of flexibility and scalability; this implementation method proposes an efficient CAN data frame parsing method, solves the data communication problem of DBC files in a specific format, realizes the collection and parsing of high-frequency real-time test data, and develops data frame subscription and publishing functions based on message services through Python language, realizing the stable transmission of massive data, and finally the parsing results can be permanently structured and stored in the form of text files and database files, providing data sources for data analysis and mining.

Claims

1. A real-time collection and analysis system for automobile bench test data, characterized in that: include: Automobile test bench equipment, used to perform performance tests on automobile parts or complete vehicles, and output test data in real time through the CAN bus interface; A multifunctional terminal device, connected to the CAN bus interface, comprising a CAN bus analyzer and a data analysis module based on a Python script, wherein the CAN bus analyzer is used to receive the test data according to the configuration parameters of the Python script, and the data analysis module is used to parse the test data; The MQTT message server is used to receive the parsing result of the multi-functional terminal device and transmit the parsing result to the database of the user or the client.

2. The real-time acquisition and analysis system for automobile bench test data according to claim 1 is characterized in that: The automobile bench testing equipment performs performance tests on automobile components or the entire vehicle under a controlled environment.

3. The real-time acquisition and analysis system for automobile bench test data according to claim 1 is characterized in that: The test data is transmitted to the CAN bus in the DBC file format.

4. The real-time acquisition and analysis system for automobile bench test data according to claim 1 is characterized in that: The CAN bus analyzer is connected to the CAN bus interface, and the CAN channel ID and CAN channel parameters are configured through the Python script.

5. The real-time acquisition and analysis system for automobile bench test data according to claim 1 is characterized in that: The data analysis module parses the test data according to a pre-provided DBC file, wherein the DBC file defines the name, ID, length, start bit, value range and unit of each CAN message and signal.

6. The real-time acquisition and analysis system for automobile bench test data according to claim 5 is characterized in that: The data analysis module includes: An extraction unit, used to determine the start bit and length of the signal according to the DBC file, and extract corresponding bits from the CAN data frame of the test data according to the start bit and length to obtain an original value; A conversion unit is used to determine a factor and an offset of a signal according to the DBC file, and convert the original value into a physical value of the signal according to the factor and the offset.

7. The real-time acquisition and analysis system for automobile bench test data according to claim 1 is characterized in that: The MQTT message server allows or prohibits specified users or clients from publishing or subscribing to set topics by configuring access control lists.

8. The real-time acquisition and analysis system for automobile bench test data according to claim 7 is characterized in that: The MQTT message server includes: A receiving unit, configured to receive the parsing result of the multifunctional terminal device; A classification unit, used to classify the analysis results according to the type of set topics; The sending unit is used to send the parsing result of each category to the database of the user or client who subscribes to the corresponding topic according to the classification result.

9. A real-time collection and analysis method for automobile bench test data, characterized in that: The real-time acquisition and analysis system for automobile bench test data as claimed in any one of claims 1 to 8 comprises the following steps: The automotive bench testing equipment performs performance tests on automotive parts or complete vehicles and outputs the generated test data in real time through the CAN bus interface; Configuring the configuration parameters of the CAN bus analyzer based on the Python script; The multifunctional terminal device receives the test data through the CAN bus analyzer, analyzes the test data through the data analysis module, and sends the analysis result to the MQTT message server; The MQTT message server receives the parsing result of the multi-function terminal device and transmits the parsing result to the database of the user or the client.

Citation Information

Patent Citations

  • Car networking CAN data acquisition method

    CN107347101A

  • Method and system for automatically analyzing CAN (Controller Area Network) bus data of intelligent networked automobile

    CN114519025A

  • 5G vehicle cloud communication network performance test system and method for intelligent connected vehicle

    CN117998430A

  • CAN equipment test system

    CN218679113U

Cited By

  • Web-based CAN bus remote test system and method

    CN119996239A

  • Electric vehicle operation safety rack detection and evaluation method and system

    CN122108628A