Vehicle ECU calibration method, device and equipment and storage medium
By analyzing the A2L file and using the CAN card to obtain real-time measured values, and calibrating ECU parameters based on the standard values, the problem of low calibration efficiency of vehicle ECUs in the prior art is solved, and a more efficient and accurate calibration process is achieved.
Patent Information
- Application Number
- CN202411834944.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-03-21
AI Technical Summary
The existing vehicle ECU calibration methods are inefficient and cumbersome, which cannot meet the needs of the modern automobile industry for high-efficiency calibration technology.
By analyzing the A2L file of the target vehicle, the parameters to be calibrated, their standard values and physical addresses are obtained, the real-time measured values are obtained using the CAN card, and the calibration is calibrated based on the standard values and the real-time measured values, and finally the calibration value is written into the corresponding physical address.
Improves the efficiency of vehicle ECU calibration, reduces manual operation, and achieves a faster and more accurate calibration process.
Smart Images

Figure CN119668238A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle control technology, and in particular, relates to a vehicle ECU calibration method, device, equipment and storage medium. Background Art
[0002] The vehicle's electronic control unit (ECU) is the "on-board computer" of the vehicle. Its function is to control the vehicle's driving state and realize various operating functions of the vehicle. Calibration is the process of accurately adjusting and setting the parameters in the ECU according to the actual operating environment and performance requirements of the vehicle.
[0003] At present, vehicle ECU calibration mostly relies on manual or semi-automatic calibration methods. These methods are not only cumbersome in operation, but also time-consuming, resulting in low efficiency of the entire calibration process, wasting a lot of human resources, and failing to meet the urgent needs of the modern automotive industry for high-efficiency calibration technology.
[0004] Therefore, how to improve the efficiency of vehicle ECU calibration has become an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present application provide a vehicle ECU calibration method, apparatus, device and storage medium, aiming to improve the efficiency of vehicle ECU calibration.
[0006] In a first aspect, an embodiment of the present application provides a vehicle ECU calibration method, which is applied to a calibration device, and the method includes: importing an A2L file of a target vehicle; obtaining the parameters to be calibrated of the ECU in the target vehicle based on the A2L file, as well as the standard values and physical addresses corresponding to the parameters to be calibrated; based on the physical address, obtaining the real-time measurement value of the parameter to be calibrated through a CAN card; based on the standard value and the real-time measurement value, calibrating the parameter to be calibrated to obtain the calibration value of the parameter to be calibrated; and writing the calibration value into the physical address corresponding to the parameter to be calibrated through the CAN card.
[0007] In a possible implementation, the parameter to be calibrated is calibrated based on the standard value and the real-time measurement value to obtain the calibration value of the parameter to be calibrated, including: calculating a target deviation value based on the standard value and the real-time measurement value; when the target deviation value is greater than a preset deviation threshold of the parameter to be calibrated, calibrating the parameter to be calibrated based on the standard value to obtain the calibration value of the parameter to be calibrated.
[0008] In a possible implementation, the parameter to be calibrated is calibrated based on the standard value and the real-time measurement value to obtain the calibrated value of the parameter to be calibrated, including: calibrating the parameter to be calibrated multiple times based on the standard value, and recording the test value of the parameter to be calibrated during each calibration; determining the calibrated value of the parameter to be calibrated based on the standard value and the test value.
[0009] In a possible implementation, after obtaining the real-time measurement value of the parameter to be calibrated through the CAN card based on the physical address, the method further includes: storing the real-time measurement value and calibration value of the parameter to be calibrated in a target database; determining the bad driving habits of a target user based on the real-time measurement value of the parameter to be calibrated, the target user being a user driving the target vehicle; and outputting prompt information based on the bad driving habits.
[0010] In a possible implementation, the determining the bad driving habits of the target user based on the real-time measurement value of the parameter to be calibrated includes: defining driving habit data characteristics and judgment criteria corresponding to the driving habit data characteristics, the judgment criteria being used to judge whether the driving habits corresponding to the driving habit data characteristics are bad driving habits; and determining the bad driving habits of the target user based on the real-time measurement value, the driving habit data characteristics and the judgment criteria.
[0011] In a possible implementation, before determining the bad driving habits of the target user based on the real-time measurement values, the driving habit data characteristics and the judgment criteria, the method further includes: using pandas to perform data cleaning on the real-time measurement values to obtain target measurement values; correspondingly, determining the bad driving habits of the target user based on the real-time measurement values, the driving habit data characteristics and the judgment criteria includes: determining the bad driving habits of the target user based on the target measurement values, the driving habit data characteristics and the judgment criteria.
[0012] In a possible implementation, the driving habit data features include one or more of driving speed related features, driving behavior related features, engine and fuel economy related features, and sensor data features.
[0013] In a second aspect, an embodiment of the present application provides a vehicle ECU calibration device, which is applied to a calibration device, and the device includes: a file import module, which is used to import an A2L file of a target vehicle; a file parsing module, which is used to obtain the parameters to be calibrated of the ECU in the target vehicle based on the A2L file, as well as the standard values and physical addresses corresponding to the parameters to be calibrated; a data acquisition module, which is used to obtain the real-time measurement values of the parameters to be calibrated through a CAN card based on the physical address; a parameter calibration module, which is used to calibrate the parameters to be calibrated based on the standard values and the real-time measurement values to obtain the calibration values of the parameters to be calibrated; and a parameter writing module, which is used to write the calibration values into the physical addresses corresponding to the parameters to be calibrated through the CAN card.
[0014] In a third aspect, an embodiment of the present application provides a calibration device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect or any one of the implementation methods thereof is implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect or any one of the implementation methods thereof is implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in the first aspect or any one of the implementation methods thereof.
[0017] Compared with the prior art, the embodiments of the present application have the following beneficial effects: directly obtaining the parameters to be calibrated of the ECU in the target vehicle by parsing the A2L file of the target vehicle, as well as the standard values and physical addresses corresponding to the parameters to be calibrated; obtaining the real-time measurement value according to the physical address of the parameter to be calibrated through the CAN card; calibrating the parameter to be calibrated based on the standard value and the real-time measurement value to obtain the calibration value of the parameter to be calibrated; and then writing the calibration value into the physical address corresponding to the parameter to be calibrated through the CAN card. Compared with the manual or semi-automatic calibration method, the standard value and physical address of the parameter to be calibrated are directly obtained through the A2L file, and then the real-time measurement value is read by addressing the physical address of the parameter to be calibrated through the CAN card, and the calibration value is written into the physical address corresponding to the parameter to be calibrated. No manual operation is required during the calibration process, which improves the efficiency of vehicle ECU calibration.
[0018] It can be understood that the vehicle ECU calibration device, calibration equipment, computer-readable storage medium and computer program product provided in the embodiments of the present application have the same beneficial effects as the above-mentioned vehicle ECU calibration method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of the architecture of a vehicle ECU calibration system provided in one embodiment of the present application;
[0021] Figure 2 A schematic diagram of a vehicle ECU calibration method provided in one embodiment of the present application;
[0022] Figure 3 A structural block diagram of a vehicle ECU calibration device provided in one embodiment of the present application;
[0023] Figure 4 A schematic diagram of the structure of a calibration device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0027] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0028] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0029] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0030] As the "on-board computer" of a car, the ECU is responsible for controlling the driving status of the car and realizing various operating functions of the vehicle. Specifically, it mainly uses data collection and exchange of various sensors and buses to determine the vehicle status and the driver's intention and control the car through actuators. Calibration is the process of accurately adjusting and setting the parameters in the ECU according to the actual operating environment and performance requirements of the vehicle.
[0031] The disadvantages of the existing technologies currently used are mainly manifested in the following aspects:
[0032] First, about the efficiency issue. Most of the current technical means rely on manual or semi-automatic calibration methods. These methods are not only cumbersome in operation, but also time-consuming, resulting in extremely low efficiency of the entire calibration process. This not only wastes a lot of human resources, but also fails to meet the urgent needs of the modern automotive industry for high-efficiency calibration technology.
[0033] Secondly, the accuracy issue cannot be ignored. Due to the lack of accurate data analysis and feedback mechanism, the calibration results of existing technologies often have large errors. Such errors may cause the vehicle performance to not reach the optimal state and may even cause safety hazards.
[0034] In addition, the compatibility of existing technologies is also an issue that needs to be addressed. There are differences between different vehicle models and ECU systems, and existing technologies often have difficulty adapting to these differences. This results in the calibration process being unable to be flexibly applied between different vehicle models and different systems, limiting its breadth and versatility in practical applications.
[0035] In addition, the existing technology lacks real-time monitoring and remote management functions. In actual use, we cannot obtain the vehicle's operating data and fault information in real time, which brings great difficulties to the maintenance and management of the vehicle. At the same time, it is also impossible to realize operations such as remote control and software upgrades, which cannot meet the needs of modern automobile intelligence and networking.
[0036] Finally, existing technologies are insufficient in supporting vehicle operation data. Lacking the ability to collect, analyze and optimize a large amount of vehicle operation data, they are unable to provide strong data support for the continuous optimization of vehicle performance, limiting further optimization and improvement of vehicle performance.
[0037] In summary, the shortcomings of existing technologies are mainly manifested in low efficiency, insufficient precision, poor compatibility, lack of real-time monitoring and remote management functions, and insufficient data support. The existence of these problems seriously limits its effect and performance in practical applications, so it is necessary to improve and innovate these technologies to meet the needs of the modern automotive industry.
[0038] In order to solve the above technical problems, the present application provides a vehicle ECU calibration method, which is applied to a calibration device to import an A2L file of a target vehicle; based on the A2L file, the ECU parameters to be calibrated in the target vehicle, as well as the standard values and physical addresses corresponding to the parameters to be calibrated, are obtained; based on the physical address, the real-time measurement values of the parameters to be calibrated are obtained through a CAN card; based on the standard values and the real-time measurement values, the parameters to be calibrated are calibrated to obtain the calibration values of the parameters to be calibrated; the calibration values are written into the physical addresses corresponding to the parameters to be calibrated through the CAN card, thereby improving the efficiency of vehicle ECU calibration.
[0039] For ease of understanding, the technical solution of the present application will be described in detail below with reference to the accompanying drawings.
[0040] Figure 1 This is a schematic diagram of the architecture of a vehicle ECU calibration system provided in one embodiment of the present application. Figure 1 As shown, the vehicle ECU calibration system 100 includes a calibration device 110 , a CAN card 120 , a vehicle ECU 130 , and a database 140 .
[0041] Specifically, the calibration device 110 is used to calibrate and measure the vehicle ECU 130 using the Universal Measurement and Calibration Protocol (XCP); the CAN card 120 is used to realize real-time data communication, for example, obtaining the real-time measurement value of the parameter to be calibrated in the vehicle ECU 130 through the CAN card 120 or writing the calibration value of the parameter to be calibrated into the designated memory of the vehicle ECU 130; the database 140 is used to store data such as the real-time measurement value and calibration value of the parameter to be calibrated in the vehicle ECU 130.
[0042] In a specific implementation, after loading the A2L file and the HEX file, the calibration device 110 obtains the internal information of the vehicle ECU 130, for example, the parameters to be calibrated in the vehicle ECU 130, and the standard values and physical addresses corresponding to the parameters to be calibrated, and sends a measurement instruction to the CAN card 120, the measurement instruction carries the parameters to be calibrated and the physical addresses corresponding thereto, the CAN card 120 reads the real-time measurement value of the parameter to be calibrated from the vehicle ECU 130 through the physical addresses of the parameters to be calibrated based on the measurement instruction, and feeds back the real-time measurement value to the calibration device 110, the calibration device 110 calibrates the parameters to be calibrated in the vehicle ECU 130 based on the real-time measurement value and the standard value of the parameters to be calibrated, and obtains the calibration value; the calibration device 110 sends a calibration instruction to the CAN card 120, the calibration instruction carries the calibration value and the physical address of the parameters to be calibrated, the CAN card 120 writes the calibration value of the parameter to be calibrated into the corresponding physical address in the vehicle ECU 130; the calibration device 110 also transmits the calibration instruction to the CAN card 120 through the transmission control protocol (Transmission Control The real-time measurement value and calibration value of the parameter to be calibrated are transmitted to the database 140 for storage using the TCP (TCP) protocol.
[0043] Among them, the A2L file is a text file used to describe the communication-related parameters of the vehicle ECU130 and the name identifiers, data types and sizes of the calibration and observation variables. It defines the names, types, units and storage locations of these elements; the HEX file is a binary file format, mainly used to store and transmit programs and data of microcontrollers or other embedded systems, and is written directly into flash memory.
[0044] As an example, the database 140 refers to a data management system with high efficiency and stability. It can store data such as real-time measurement values and calibration values of parameters to be calibrated in the vehicle ECU 130 sent by the calibration device 110 in real time, and support rapid retrieval and query of data. Through the establishment of the database 140, long-term tracking, monitoring and analysis of the performance of the vehicle ECU 130 can be achieved, and the results can be automatically fed back, providing a basis for subsequent data analysis and optimization. In addition, the database 140 can transmit the saved data to the remote database server (not shown) for further analysis and processing by connecting to the remote database server (not shown in the figure). The remote database server has powerful data processing and analysis capabilities, and can conduct in-depth analysis and mining of the received data, providing strong data support for the optimization and improvement of the vehicle ECU 130.
[0045] As an example, the calibration device 110 provides a simple and intuitive user interface (UI) to enable the user to easily perform calibration and measurement operations on the vehicle ECU 130. The UI provides real-time data feedback and operation guidance, which improves the convenience and accuracy of user operations, thereby improving the user experience.
[0046] As an example, wireless communication technologies, such as Wi-Fi, Bluetooth or ZigBee, can also be used to transmit calibration values and real-time measurement values of the vehicle ECU 130. Wireless communication technology can eliminate the limitations of wired transmission and provide a more flexible and convenient data transmission method.
[0047] As an example, a dedicated mobile application (App) can also be developed for the calibration device 110, combined with wireless communication technology, to achieve remote control and data management of the calibration and measurement of the vehicle ECU 130. The user can perform calibration and measurement operations of the vehicle ECU 130 through a mobile device, and view data in real time and receive operation instructions.
[0048] As an example, the calibration and measurement data of the vehicle ECU 130 can also be uploaded to the cloud platform for storage through wireless communication technology. The cloud platform has powerful data processing and analysis capabilities, and can monitor, store, analyze and process data in real time. Combined with data analysis and processing technology, it can conduct in-depth analysis and processing of the saved real-time measurement values of the vehicle ECU 130. The cloud background continuously learns and improves accuracy and automatic analysis, providing users with accurate vehicle problem feedback and driving habit reminders, while providing strong data support for the maintenance, optimization and fault diagnosis of the vehicle ECU 130.
[0049] Understandably, Figure 1The schematic diagram of the architecture shown is only an example of the vehicle ECU calibration system provided by the present application. In other embodiments of the present application, the vehicle ECU calibration system 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware, which is not limited in the present application.
[0050] Figure 2 This is a flow chart of a vehicle ECU calibration method provided in an embodiment of the present application. For the sake of convenience, only the part related to the present embodiment is shown. The method provided in the present embodiment is applied to the calibration device and specifically includes the following steps:
[0051] S210, importing the A2L file of the target vehicle.
[0052] Specifically, the A2L file of the target vehicle describes in detail the measurement variables, characteristic diagrams, calibration parameters and their access methods inside the ECU in the target vehicle. It is a key file used to define which parameters need to be monitored and how to read them.
[0053] In a specific implementation, the A2L file includes at least the parameters to be calibrated of the ECU in the target vehicle, as well as the standard values and physical addresses corresponding to the parameters to be calibrated. The parameters to be calibrated include but are not limited to engine speed, coolant temperature, atmospheric pressure, fuel injection amount, ignition timing, and exhaust system parameters.
[0054] As an example, the A2L file and HEX file of the target vehicle are imported. The HEX file is usually used to load the firmware or initialization parameters of the vehicle ECU as reference values.
[0055] S220, obtaining the parameters to be calibrated of the ECU in the target vehicle based on the A2L file, as well as the standard values and physical addresses corresponding to the parameters to be calibrated.
[0056] In a specific implementation, the A2L file of the target vehicle is parsed to obtain the parameters to be calibrated of the ECU in the target vehicle, as well as the standard values and physical addresses corresponding to the parameters to be calibrated.
[0057] As an example, the A2L file and HEX file in the XCP protocol are parsed by C++ language to obtain the parameters to be calibrated of the ECU in the target vehicle, as well as the standard values and physical addresses corresponding to the parameters to be calibrated, where the physical addresses of the parameters to be calibrated are the Flash addresses of the parameters to be calibrated in the ECU of the target vehicle.
[0058] S230, based on the physical address, obtaining the real-time measurement value of the parameter to be calibrated through the CAN card.
[0059] In a specific implementation, a measurement instruction is sent to the CAN card, which carries the parameter to be calibrated and its corresponding physical address. Based on the measurement instruction, the CAN card reads the real-time measurement value of the parameter to be calibrated from the ECU in the target vehicle through the physical address of the parameter to be calibrated.
[0060] As an example, use professional software that supports A2L files (such as INCA, CANape, etc.) to connect to the ECU of the target vehicle. According to the physical address of the parameter to be calibrated configured in the A2L file, read the memory value corresponding to the physical address through the CAN card, which is the real-time measurement value of the parameter to be calibrated.
[0061] S240, calibrating the parameter to be calibrated based on the standard value and the real-time measurement value to obtain a calibration value of the parameter to be calibrated.
[0062] In a specific implementation, the standard value and the real-time measurement value of the parameter to be calibrated are compared. When the real-time measurement value of the parameter to be calibrated is different from the standard value, the standard value is used as a reference to adjust the parameter to be calibrated to obtain the calibration value of the parameter to be calibrated.
[0063] As an example, when the real-time measurement value of the parameter to be calibrated is different from the standard value, the standard value of the parameter to be calibrated is used as its calibration value.
[0064] S250, writing the calibration value into the physical address corresponding to the parameter to be calibrated through the CAN card.
[0065] In a specific implementation, a calibration instruction is sent to the CAN card, the calibration instruction carries the calibration value and physical address of the parameter to be calibrated, and the calibration value of the parameter to be calibrated is written into the corresponding physical address in the ECU of the target vehicle through the CAN card.
[0066] As an example, the Flash address of the parameter to be calibrated in the ECU of the target vehicle is queried through the CAN card, and the calibration value of the parameter to be calibrated is written into the Flash address.
[0067] The technical solution provided by the present application directly obtains the ECU parameters to be calibrated in the target vehicle, as well as the standard values and physical addresses corresponding to the parameters to be calibrated, by parsing the A2L file of the target vehicle; obtains the real-time measurement value according to the physical address of the parameter to be calibrated through the CAN card; calibrates the parameter to be calibrated based on the standard value and the real-time measurement value to obtain the calibration value of the parameter to be calibrated; and then writes the calibration value into the physical address corresponding to the parameter to be calibrated through the CAN card. Compared with the manual or semi-automatic calibration method, the standard value and physical address of the parameter to be calibrated are directly obtained through the A2L file, and then the data is read by addressing according to the physical address of the parameter to be calibrated through the CAN card, and the calibration value is written into the physical address corresponding to the parameter to be calibrated. No manual operation is required during the calibration process, which improves the efficiency of vehicle ECU calibration.
[0068] On the basis of the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, based on the standard value and the real-time measurement value, the parameter to be calibrated is calibrated to obtain the calibration value of the parameter to be calibrated, including:
[0069] Calculate the target deviation value based on the standard value and the real-time measurement value;
[0070] When the target deviation value is greater than a preset deviation threshold of the parameter to be calibrated, the parameter to be calibrated is calibrated based on the standard value to obtain a calibrated value of the parameter to be calibrated.
[0071] In a specific implementation, the difference between the standard value of the parameter to be calibrated and the real-time measurement value is calculated, and the absolute value of the difference is used as the target deviation value. When the target deviation value is greater than the preset deviation threshold, the parameter to be calibrated is calibrated based on the standard value to obtain the calibration value of the parameter to be calibrated.
[0072] As an example, the parameter to be calibrated is the coolant temperature. The standard value corresponding to the coolant temperature is 90 degrees Celsius (℃), the real-time measurement value of the coolant temperature is 115℃, and the preset deviation threshold of the coolant temperature is 20. At this time, the target deviation value corresponding to the standard value of the coolant temperature and the real-time measurement value is 25. Since the target deviation value is greater than the preset deviation threshold of the coolant temperature, the standard value of 90℃ corresponding to the coolant temperature is used as the calibration value of the coolant temperature.
[0073] It should be noted that different preset deviation thresholds correspond to different parameters to be calibrated; different preset deviation thresholds can be set for the same parameter to be calibrated according to different actual conditions, and this application does not limit this.
[0074] In addition, when the target deviation value is greater than the preset deviation threshold of the parameter to be calibrated, the impact of the target deviation value on the system performance can be further evaluated. If a significant impact is found, the parameter to be calibrated is calibrated based on the standard value; if the impact on the system performance is not significant, the calibration operation can be temporarily not performed and the parameter to be calibrated can continue to be monitored.
[0075] The technical solution provided in this embodiment further determines whether the target deviation value between the standard value and the real-time measurement value corresponding to the parameter to be calibrated is greater than a preset deviation threshold when the standard value and the real-time measurement value of the parameter to be calibrated are different. When the target deviation value between the standard value and the real-time measurement value corresponding to the parameter to be calibrated is greater than the preset deviation threshold, the parameter to be calibrated is calibrated based on the standard value, thereby improving the efficiency of vehicle ECU calibration and saving resources at the same time.
[0076] On the basis of the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, based on the standard value and the real-time measurement value, the parameter to be calibrated is calibrated to obtain the calibration value of the parameter to be calibrated, including:
[0077] Calibrate the parameters to be calibrated multiple times based on the standard values, and record the test values of the parameters to be calibrated during each calibration;
[0078] Based on the standard value and the test value, the calibration value of the parameter to be calibrated is determined.
[0079] In the specific implementation, when calibrating based on the standard value of the parameter to be calibrated, the principle of gradualism is adopted to avoid making too large changes at one time; with the standard value as a reference, the parameter to be calibrated is adjusted repeatedly, and only the parameter is fine-tuned each time, and the test value after each adjustment is recorded. When the test value is equal to the standard value or when the difference between the test value and the standard value is less than the preset threshold, the test value is used as the calibration value of the parameter to be calibrated.
[0080] In addition, after determining the calibration value of the parameter to be calibrated, conduct an actual driving test of the target vehicle to check the performance of the parameter to be calibrated and verify the parameter calibration effect. The parameter to be calibrated can also be adjusted again according to the test results to ensure that the performance and efficiency are in the best state.
[0081] The technical solution provided in this embodiment adopts the principle of gradualness to calibrate the parameters to be calibrated, thereby improving the accuracy of vehicle ECU calibration and ensuring the performance of the vehicle ECU.
[0082] On the basis of the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, after obtaining the real-time measurement value of the parameter to be calibrated through the CAN card based on the physical address, it also includes:
[0083] The real-time measured values and the calibrated values of the parameters to be calibrated are stored in the target database;
[0084] Determine the bad driving habits of a target user based on the real-time measurement value of the parameter to be calibrated, where the target user is a user driving a target vehicle;
[0085] Output prompt information based on bad driving habits.
[0086] In the specific implementation, the real-time measurement values and calibration values of the parameters to be calibrated are transmitted to the target database for storage through the TCP protocol, and the stored real-time measurement values of the parameters to be calibrated are further analyzed and processed in depth in combination with data analysis and processing technology. The driving habits of the target user are analyzed through the real-time measurement values of the parameters to be calibrated, and the bad driving habits of the target user are determined therefrom, and prompt information is output when the target user starts the target vehicle or during driving.
[0087] As an example, bad driving habits include, but are not limited to, high-speed driving, frequent sharp turns or lane changes, excessive speed at night, improper use of lights during night driving, unreasonable use of gears, and excessive fuel consumption.
[0088] Exemplarily, after analyzing the real-time measurement values of the parameters to be calibrated of the target vehicle, it is determined that the target user's bad driving habits include high-speed driving. Then, when the target user starts the target vehicle, text to avoid high-speed driving is displayed on the in-vehicle display screen or a voice to avoid high-speed driving is played.
[0089] Exemplarily, after analyzing the real-time measurement values of the parameters to be calibrated of the target vehicle, it is determined that the target user's bad driving habits include improper use of lights when driving at night. Then, when the target user drives the target vehicle at night, the target user is prompted by voice to use the lights correctly.
[0090] The technical solution provided in this embodiment conducts in-depth analysis and processing of the real-time measurement values of the parameters to be calibrated, determines the bad driving habits of the target user, and outputs prompt information based on the bad driving habits, thereby improving the utilization rate of the real-time measurement values of the parameters to be calibrated, providing strong data support for the continuous optimization of vehicle performance, and improving the user's driving experience and safety.
[0091] On the basis of the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, based on the real-time measurement value of the parameter to be calibrated, the bad driving habits of the target user are determined, including:
[0092] defining driving habit data features and judgment criteria corresponding to the driving habit data features, the judgment criteria being used to judge whether the driving habits corresponding to the driving habit data features are bad driving habits;
[0093] Based on real-time measurements, driving habit data features, and judgment criteria, the bad driving habits of the target user are determined.
[0094] Specifically, the driving habit data features include, but are not limited to, driving speed related features, driving behavior related features, engine and fuel economy related features, and sensor data features.
[0095] As an example, driving speed-related features include average speed and speed fluctuation. Average speed is the average speed of the vehicle during driving. A high average speed indicates that the target user has bad driving habits such as liking to drive at high speeds or speeding. Speed fluctuation is to judge the stability of driving behavior by analyzing the speed changes of the target vehicle, such as frequent acceleration and sudden braking. Frequent acceleration and sudden braking may be regarded as bad driving habits. Corresponding judgment criteria are set for average speed and speed fluctuation.
[0096] Exemplarily, the judgment standard of the average vehicle speed can be to first set a preset threshold value for the average vehicle speed, and then count the average vehicle speed of the target user each time he drives the target vehicle. When the average vehicle speed exceeds the preset threshold value for more than a preset number of times, it is determined that the target user has a bad driving habit of driving at high speed.
[0097] Exemplarily, the judgment standard of speed fluctuation can first set a preset threshold value of speed fluctuation, and count the number of accelerations and sudden brakes in each complete trip of the target user driving the target vehicle. When the number of complete trips in which the target user accelerates and brakes more than the preset threshold value of speed fluctuation when driving the target vehicle exceeds a preset number, it is determined that the user has a bad driving habit of frequent acceleration and sudden braking.
[0098] As an example, driving behavior-related features include sharp turns and lane changes, as well as night driving and visibility. The number and angle of sharp turns and lane changes made by the target user when driving the target vehicle are recorded. Excessive sharp turns and lane changes may increase the risk of accidents, so frequent sharp turns and lane changes are considered bad driving habits. By comparing nighttime and daytime driving data, the safety of the target user when driving at night is judged. For example, driving too fast at night or using lights improperly is considered a bad driving habit. Corresponding judgment criteria are set for sharp turns and lane changes, as well as night driving and visibility.
[0099] As an example, engine and fuel economy related features include abnormal engine speed and fuel consumption rate. By monitoring whether the engine speed is too high or too low, it is judged whether there is abnormal driving behavior, such as long-term high-speed operation or unreasonable use of gears, etc.; analyzing the fuel consumption per unit distance, high fuel consumption may indicate low driving efficiency, for example, too intense acceleration and braking may lead to excessive fuel consumption. Set corresponding judgment criteria for abnormal engine speed and fuel consumption rate.
[0100] As an example, the sensor data features include vehicle temperature and engine temperature, etc., to analyze whether the vehicle has dangerous driving behavior. Corresponding judgment criteria are set for the vehicle temperature and the engine temperature respectively.
[0101] In the specific implementation, the data structure corresponding to the real-time measurement values of the ECU in the target vehicle is first defined, and then the driving habit data characteristics and the judgment criteria corresponding to the driving habit data characteristics are defined according to the actual situation. Finally, the bad driving habits of the target user are determined based on the real-time measurement values, driving habit data characteristics and judgment criteria.
[0102] It should be noted that the above-mentioned driving habit data features and the judgment criteria corresponding to the driving habit data features are only examples and can be customized according to actual conditions. This application does not limit this.
[0103] The technical solution adopted in this embodiment defines driving habit data features and judgment criteria corresponding to the driving habit data features, determines the user's bad driving habits based on the real-time measurement values of the vehicle ECU, improves the utilization rate of the real-time measurement values of the vehicle ECU, and enhances the user's driving experience and safety.
[0104] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, before determining the bad driving habits of the target user based on the real-time measurement value, the driving habit data characteristics and the judgment standard, it also includes using pandas to clean the real-time measurement value to obtain the target measurement value; accordingly, based on the real-time measurement value, the driving habit data characteristics and the judgment standard, determining the bad driving habits of the target user includes:
[0105] Based on the target measurement value, driving habit data characteristics and judgment criteria, the bad driving habits of the target user are determined.
[0106] In a specific implementation, after the collected real-time measurement values of the vehicle ECU are stored in the target database, these real-time measurement values need to be cleaned and preprocessed to improve the accuracy and reliability of the real-time measurement values of the vehicle ECU.
[0107] As an example, the method provided by pandas is used to remove missing values and outliers from the real-time measurement values of the vehicle ECU to obtain the target measurement value. Then, the defined driving habit data features and judgment criteria are combined to determine the bad driving habits of the target user, and the target user is reminded to make corrections and receive prompts before driving.
[0108] The technical solution provided in this embodiment improves the accuracy and reliability of the real-time measurement values of the vehicle ECU, while improving the accuracy of determining the bad driving habits of the target user and improving the user experience.
[0109] In summary, the beneficial effects brought about by this application are reflected in the following aspects:
[0110] First, the use of the XCP protocol for vehicle ECU calibration and measurement has brought significant technological progress. The efficiency and accuracy of the XCP protocol ensure the precise calibration and measurement of the ECU, so that the performance of the ECU can be optimized. Through data analysis, the problems of low efficiency and cumbersome manual operation in the existing technology have been solved, greatly improving the work efficiency of calibration and measurement.
[0111] Secondly, combined with TCP transmission technology, the data transmission of this application is fast and stable. The calibration and measurement data are uploaded to the server through the TCP protocol and saved in the database, which effectively solves the risk of delay and loss in data transmission and processing, ensures reliable transmission and long-term preservation of data, and provides a solid foundation for subsequent data analysis and processing.
[0112] Furthermore, the user-friendly interface design greatly improves the user experience. The concise and intuitive interface enables users to easily perform ECU calibration and measurement operations. Through the UI providing real-time data feedback and operation guidance, users can complete operations more conveniently and accurately, thereby improving work efficiency and accuracy, solving the problem of the existing system lacking a friendly user interface, and providing a more excellent user experience.
[0113] In addition, combined with data analysis and processing technology, this application uploads the saved vehicle ECU data to the background, and the background performs data analysis. The data analysis provides strong data support for ECU maintenance, optimization and fault diagnosis, making further development in related fields possible, and providing new solutions and technical support for the development and progress of related fields.
[0114] The technical solution provided by this application has a wide range of application fields, mainly including:
[0115] 1. Automobile manufacturing industry: During the automobile manufacturing process, the vehicle's ECU needs to be accurately calibrated and adjusted to ensure that the vehicle's performance meets the expected requirements. The technical solution provided in this application can be used to assist this process and improve the accuracy and efficiency of calibration.
[0116] 2. Automobile repair and modification industry: For the automobile repair and modification industry, ECU calibration and adjustment is also an important task. The technical solution provided by this application can provide a convenient and efficient tool to help perform accurate calibration and data analysis.
[0117] 3. Automobile R&D and testing: In the process of automobile R&D and testing, a lot of ECU calibration and data analysis work is required. The technical solution provided by this application can provide a strong support to help R&D personnel complete these tasks quickly and accurately.
[0118] 4. Software development and engineering technology fields: The technical solutions provided in this application can also be used by software developers and engineering technicians in other fields to develop similar functions or to be applied to the calibration and data analysis of other equipment.
[0119] Figure 3 This is a structural block diagram of a vehicle ECU calibration device provided in one embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown. Figure 3 The vehicle ECU calibration device 300 may include a file import module 301 , a file parsing module 302 , a data acquisition module 303 , a parameter calibration module 304 and a parameter writing module 305 .
[0120] The file import module 301 is used to import the A2L file of the target vehicle.
[0121] The file parsing module 302 is used to obtain the parameters to be calibrated of the ECU in the target vehicle based on the A2L file, as well as the standard values and physical addresses corresponding to the parameters to be calibrated.
[0122] The data acquisition module 303 is used to acquire the real-time measurement value of the parameter to be calibrated through the CAN card based on the physical address.
[0123] The parameter calibration module 304 is used to calibrate the parameter to be calibrated based on the standard value and the real-time measurement value to obtain the calibration value of the parameter to be calibrated.
[0124] The parameter writing module 305 is used to write the calibration value into the physical address corresponding to the parameter to be calibrated through the CAN card.
[0125] A vehicle ECU calibration device provided in an embodiment of the present application has the same beneficial effects as the above-mentioned vehicle ECU calibration method.
[0126] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0127] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0128] Figure 4 This is a schematic diagram of the structure of a calibration device provided in one embodiment of the present application. Figure 4 As shown, the calibration device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure), a memory 41, and a computer program 42 stored in the memory 41 and executable on at least one processor 40, the processor 40 executes the computer program 42 to implement the above Figure 2 The steps in the method embodiment, or the implementation of the above Figure 3 Functions of each module / unit in the device embodiment.
[0129] The calibration device 4 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The calibration device 4 may include but is not limited to a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the calibration device 4 and does not constitute a limitation on the calibration device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0130] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0131] In some embodiments, the memory 41 may be an internal storage unit of the calibration device 4, such as a hard disk or memory of the calibration device 4. In other embodiments, the memory 41 may also be an external storage device of the calibration device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the calibration device 4. Furthermore, the memory 41 may also include both an internal storage unit and an external storage device of the calibration device 4. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0132] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0133] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the calibration device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0134] A computer-readable storage medium provided in an embodiment of the present application has the same beneficial effects as the above-mentioned vehicle ECU calibration method.
[0135] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0136] A computer program product provided in an embodiment of the present application has the same beneficial effects as the above-mentioned vehicle ECU calibration method.
[0137] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0138] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0139] In the embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A vehicle ECU calibration method, characterized in that: Applied to calibration equipment, the method comprises: Import the A2L file of the target vehicle; Acquire the parameters to be calibrated of the ECU in the target vehicle based on the A2L file, as well as the standard values and physical addresses corresponding to the parameters to be calibrated; Based on the physical address, obtaining the real-time measurement value of the parameter to be calibrated through the CAN card; Based on the standard value and the real-time measurement value, calibrate the parameter to be calibrated to obtain a calibrated value of the parameter to be calibrated; The calibration value is written into the physical address corresponding to the parameter to be calibrated through the CAN card.
2. The method according to claim 1, characterized in that The step of calibrating the parameter to be calibrated based on the standard value and the real-time measurement value to obtain a calibrated value of the parameter to be calibrated includes: Calculating a target deviation value based on the standard value and the real-time measurement value; When the target deviation value is greater than the preset deviation threshold of the parameter to be calibrated, the parameter to be calibrated is calibrated based on the standard value to obtain a calibrated value of the parameter to be calibrated.
3. The method according to claim 1 or 2, characterized in that: The step of calibrating the parameter to be calibrated based on the standard value and the real-time measurement value to obtain a calibrated value of the parameter to be calibrated includes: Calibrate the parameter to be calibrated multiple times based on the standard value, and record the test value of the parameter to be calibrated during each calibration; Based on the standard value and the test value, a calibration value of the parameter to be calibrated is determined.
4. The method according to claim 1, characterized in that: After acquiring the real-time measurement value of the parameter to be calibrated through the CAN card based on the physical address, the method further includes: The real-time measured value and the calibrated value of the parameter to be calibrated are stored in a target database; Determining the bad driving habits of a target user based on the real-time measurement value of the parameter to be calibrated, wherein the target user is a user driving the target vehicle; Outputting prompt information based on the bad driving habits.
5. The method according to claim 4, characterized in that The determining the bad driving habits of the target user based on the real-time measurement value of the parameter to be calibrated includes: defining driving habit data features and a judgment standard corresponding to the driving habit data features, wherein the judgment standard is used to judge whether the driving habit corresponding to the driving habit data features is a bad driving habit; The bad driving habits of the target user are determined based on the real-time measurement value, the driving habit data characteristics and the judgment criterion.
6. The method according to claim 5, characterized in that Before determining the bad driving habits of the target user based on the real-time measurement value, the driving habit data characteristics and the judgment criteria, the method further includes: Use pandas to clean the real-time measurement values to obtain target measurement values; Accordingly, based on the real-time measurement value, the driving habit data feature and the judgment standard, determining the bad driving habits of the target user includes: Based on the target measurement value, the driving habit data feature and the judgment criterion, the bad driving habits of the target user are determined.
7. The method according to claim 5 or 6, characterized in that: The driving habit data features include one or more of driving speed related features, driving behavior related features, engine and fuel economy related features, and sensor data features.
8. A vehicle ECU calibration device, characterized in that: Applied to calibration equipment, the device comprises: File import module, used to import the A2L file of the target vehicle; A file parsing module, used for acquiring the parameters to be calibrated of the ECU in the target vehicle based on the A2L file, as well as the standard values and physical addresses corresponding to the parameters to be calibrated; A data acquisition module, used for acquiring the real-time measurement value of the parameter to be calibrated through the CAN card based on the physical address; A parameter calibration module, used for calibrating the parameter to be calibrated based on the standard value and the real-time measurement value to obtain a calibration value of the parameter to be calibrated; The parameter writing module is used to write the calibration value into the physical address corresponding to the parameter to be calibrated through the CAN card.
9. A calibration device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.