Automobile calibration signal automatic read-write method and automobile calibration system
By creating mapping system variables and using asynchronous functions in the automotive calibration system, the problem of operation complexity of calibration signals in the existing technology is solved, flexible reading, writing and interoperability of calibration signals is realized, and the convenience and efficiency of user operations are improved. .
Patent Information
- Application Number
- CN202411273293.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-25
- Publication Date
- 2024-12-27
AI Technical Summary
The automated control method of existing automotive calibration systems cannot realize that multiple signals of calibration signals are drawn after mathematical operations or customized variables participate in calculations to modify the target calibration signal, resulting in users being unable to achieve complex signal operations.
By creating mapping system variables in the calibration module, mapping calibration signals to internal variables, real-time reading and writing are realized, and asynchronous functions are supported to issue commands to improve operational efficiency.
The interoperability of arbitrary calibration signals is realized, and users can read and write calibration signals like using local variables, simplifying program writing and improving operational flexibility and efficiency.
Smart Images

Figure CN119200469A_ABST
Abstract
Description
[0001] This case is a divisional application of the automobile calibration signal automatic reading and writing method and automobile calibration system of 2023107551095. Technical Field
[0002] The invention belongs to the technical field of vehicle software development, and in particular relates to an automatic reading and writing method for vehicle calibration signals and a vehicle calibration system. Background Art
[0003] Similar software products on the market use traditional control methods for the automated control of vehicle calibration systems.
[0004] For example, the traditional method of monitoring signal reading requires the following steps to be performed in sequence: (1) open the calibration database; (2) select the signal to be monitored from the calibration database; (3) drag the signal into or associate it with a monitoring window, such as a graphic window; (4) observe the signal changes from the monitoring window. The traditional method of writing calibration signals requires the following steps to be performed in sequence: (1) open the calibration database; (2) select the signal to be written from the calibration database; (3) drag the signal into or associate it with a text window; (4) in this window, fill in the value to be modified and press Enter to confirm the modification; (5) confirm that the signal value modification is successful.
[0005] Traditionally, reading and writing calibration signals requires the use of specific API functions or specific monitoring programs, drawing signal monitoring curves through graphic windows, and modifying signal values through text windows. In other words, the calibration signal cannot be used as a variable, which brings a problem: if the user wants to draw curves of the values of multiple signals after mathematical operations, or to include the values of custom variables in operations to modify the target calibration variables, there is no way to achieve this. Summary of the invention
[0006] The purpose of the present invention is to provide an automatic reading and writing method of automobile calibration signals and an automobile calibration system.
[0007] In order to solve the above technical problems, the present invention provides a method for automatically reading and writing automobile calibration signals, comprising:
[0008] Creating corresponding mapping system variables for each calibration signal in the calibration module;
[0009] Assign initial values to mapping system variables;
[0010] For the calibration signal defined as the observed quantity, the calibration module reads the calibration signal value in real time and stores it in the corresponding mapping system variable;
[0011] When reading the mapped system variable, the last stored value of the mapped system variable is read out.
[0012] In another aspect, the present invention further provides a method for automatically reading and writing automobile calibration signals, comprising:
[0013] Creating corresponding mapping system variables for each calibration signal in the calibration module;
[0014] Assign initial values to mapping system variables;
[0015] For a calibration signal defined as a calibration quantity, an assignment function is associated with an asynchronous function, wherein the assignment function is a mapping system variable writing function for a target value to be written; and when writing the calibration quantity, the asynchronous function immediately returns after sending a write command and a read command to the calibration module, and the asynchronous function call is completed; or
[0016] For the calibration signal defined as a writable observable, the assignment function is associated with an asynchronous function, where the assignment function is a mapping system variable write function for the target value to be written; and when writing the writable observable, the asynchronous function immediately returns after sending the write command and the read command to the calibration module, and the asynchronous function call is completed.
[0017] In a third aspect, the present invention further provides a vehicle calibration system, comprising:
[0018] A mapping system variable creation module is used to create corresponding mapping system variables for each calibration signal;
[0019] The assignment module assigns initial values to the mapping system variables;
[0020] A calibration database, storing calibration signal data and defining the calibration signal as an observed quantity or a calibrated quantity or a writable observed quantity;
[0021] The execution module writes and / or reads the mapping system variables for the corresponding calibration signals.
[0022] The beneficial effect of the present invention is that the automatic reading and writing method of the automobile calibration signal of the present invention can map any calibration signal to the mapping system variable inside the calibration module, so as to realize reading and writing the calibration signal like using the mapping system variable, thereby solving the interoperability problem of the calibration signal.
[0023] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0024] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 is a step diagram of a method for automatically reading and writing automobile calibration signals according to an embodiment of the present invention;
[0027] Figure 2 is a step diagram of a method for automatically reading and writing automobile calibration signals according to a second embodiment of the present invention;
[0028] Figure 3 It is a principle block diagram of the automobile calibration system involved in the embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] Traditional calibration signal control requires the use of API functions or specific monitoring programs, such as drawing signal monitoring curves through a graphic window and modifying signal values through a text window.
[0031] This brings about a problem: if the user wants to draw curves of the values of multiple calibration signals after mathematical operations, or to include the values of custom variables in the operation to modify the target calibration signal, there is no way to achieve this.
[0032] Therefore, this embodiment provides an automatic reading and writing method for automobile calibration signals, including: creating corresponding mapping system variables for each calibration signal in the calibration module; assigning initial values to the mapping system variables; for the calibration signal defined as an observation quantity, the calibration module reads the calibration signal value in real time and stores it in the corresponding mapping system variable; when reading the mapping system variable, the last stored value of the mapping system variable is read out.
[0033] The automatic reading and writing method of automobile calibration signals of this embodiment can map any calibration signal to the mapping system variables inside the calibration module, so as to realize reading and writing the calibration signal as if using the mapping system variables, thereby solving the interoperability problem of the calibration signal.
[0034] Various non-limiting implementation methods of this embodiment are described in detail below in conjunction with the accompanying drawings.
[0035] like Figure 1 As shown, this embodiment provides a method for automatically reading and writing automobile calibration signals, including:
[0036] Step S101, creating corresponding mapping system variables for each calibration signal in the calibration module;
[0037] Step S102, assigning initial values to mapping system variables;
[0038] Step S103, for the calibration signal defined as the observed quantity, the calibration module reads the calibration signal value in real time and stores it in the corresponding mapping system variable;
[0039] Step S104, when reading the mapping system variable, the last stored value of the mapping system variable is read out.
[0040] Figure 1 The steps are only used to show the process of the automatic reading and writing method of the automobile calibration signal, and do not limit the specific order of the steps.
[0041] In some embodiments, there are two naming rules for automatically created mapping system variables, and the software system provides options for the user to choose:
[0042] (1) Directly use the calibration signal name. For example, if the calibration signal name is "abc", the mapping system variable name is also "abc";
[0043] (2) Use the ECU name as the prefix, and separate the calibration signal name and the ECU name with an underscore. For example, if the calibration signal name is "abc" and the ECU name is "ABS", then the mapping system variable name is "ABS_abc".
[0044] After the creation of each mapping system variable is completed, the calibration module first connects to the ECU, reads the current value of each calibration signal from the ECU (the value when the connection to the ECU is successful), and assigns each current value to the corresponding mapping system variable, thereby completing the initialization of each mapping system variable.
[0045] Since the calibration module reads the calibration signal value in real time and stores it in the corresponding mapping system variable, this ensures that the value in the mapping system variable is always the latest value. If the user wants to read the latest value of the calibration signal, he only needs to read the latest value of the mapping system variable. This latest value is the last stored value. The last stored time node is the timestamp of the moment when the calibration module last reads the calibration signal value.
[0046] The automatic reading and writing method of the automobile calibration signal of this embodiment maps any calibration signal to the mapping system variable inside the calibration module, so that the reading and writing operation of the calibration signal is converted into the reading and writing operation of the local variable, producing the following effects:
[0047] (1) System variables can be associated and mapped in all situations where variables can be associated in the software system.
[0048] For example, in the panel, after using the drag box to associate and map the system variables, the value of the calibration signal can be directly modified by dragging the mouse, without writing a special program to respond to the event information of the drag box;
[0049] For example, in a graphics program, reading and writing mapping system variables can be converted into reading and writing corresponding calibration signals without calling the API function of the calibration module, making the program writing process concise and intuitive.
[0050] (2) The mapping system variables can participate in the construction of expressions, that is, construct new observation signal expressions. For example, constructing a new observation signal c equal to the sum of the mapping system variable a and the CAN signal b can be written as c = a + b, and the observation signal c can be observed through the graphic window; new variables can also be constructed, that is, constructing test result expressions, such as the total test result y = x1&x2&x3, where x1, x2 and x3 are three test criteria. Only when these three criteria are successful, the total test result is successful. However, the traditional calibration signal control method cannot meet this requirement.
[0051] The following describes in detail the method of reading the calibration signal defined as the observed quantity with examples:
[0052] Assume that you need to use a graphical program to determine whether the power supply voltage signal KL30 is greater than 9V during a car ECU function test.
[0053] First, the calibration module loads the calibration database and automatically creates a mapping system variable named "KL30" for the loaded supply voltage signal.
[0054] The user writes a graphic program to judge the power supply voltage signal, and the execution unit expression corresponding to the judgment is "KL30>9".
[0055] Then, the user starts the test, the calibration module first connects to the ECU, reads the current value of the KL30 signal from the ECU, and assigns it to the mapping system variable "KL30", that is, assigns an initial value to the mapping system variable "KL30".
[0056] The calibration module then periodically reads the KL30 signal value through query or DAQ mode and stores it in the mapping system variable "KL30".
[0057] Finally, when executing the execution unit "KL30>9" of the user's graphics program, the value of the mapping system variable "KL30" is directly read and compared with 9.
[0058] In the prior art, the rewriting operation of the calibration signal of the calibration quantity or the writable observation quantity calibration signal is a special operation, which involves the complicated calibration command sending inside the calibration module and the matching of the communication protocol between the upper and lower computers. It is necessary to fill in the value to be rewritten in the specific calibration quantity list provided by the calibration module, so the rewriting efficiency is extremely low.
[0059] In this embodiment, in various occasions such as C programs, graphic programs, user-defined panels or expressions (the following cases all take graphic programs as examples), the calibration quantity calibration signal or the writable observable quantity calibration signal can be easily modified by simply assigning values to the corresponding mapping system variables, thereby effectively improving the rewriting of the calibration quantity calibration signal or the writable observable quantity calibration signal.
[0060] Specifically, the method for automatically reading and writing automobile calibration signals of this embodiment further includes:
[0061] For a calibration signal defined as a calibration quantity, an assignment function is associated with an asynchronous function, wherein the assignment function is a mapping system variable writing function for a target value to be written;
[0062] When writing the calibration amount, the asynchronous function sends a write command and a read command to the calibration module and then returns immediately, and the asynchronous function call is completed.
[0063] The following describes in detail the method of writing the calibration signal defined as the calibration amount with examples:
[0064] Assume that in a vehicle ECU function test, it is necessary to write the value of the calibration signal EV_Current as 2.1 through a graphic program to control the current of the corresponding solenoid valve EV to be 2.1 amperes.
[0065] First, the calibration module loads the calibration database and automatically creates a mapping system variable named "EV_Current" for the loaded solenoid valve current signal.
[0066] The user writes a graphic program to write the value of the calibration signal EV_Current to 2.1, and the execution unit expression corresponding to the write action is "EV_Current = 2.1".
[0067] Then, the user starts the test, the calibration module first connects to the ECU, and associates the assignment function of the mapping system variable "EV_Current" to an asynchronous function "set_sys_var_async", the function of which is to call the API function of the calibration module to perform write and read operations on the solenoid valve current signal.
[0068] When the execution unit "EV_Current = 2.1" of the user's graphics program is executed, the calibration module will call this asynchronous function "set_sys_var_async" and pass the target value "2.1" as a parameter. In this asynchronous function, the following requests are initiated to the calibration module in an asynchronous manner:
[0069] (1) A request to write the calibration signal "EV_Current", with the parameter carried in the request being the write value 2.1;
[0070] (2) Request to read the calibration signal “EV_Current”;
[0071] After the execution unit initiates a request, it can immediately return from the asynchronous function "set_sys_var_async" without waiting for the request result. The calibration module will write and read the calibration signal "EV_Current" in sequence in the background.
[0072] Specifically, the method for automatically reading and writing automobile calibration signals of this embodiment further includes:
[0073] For the calibration signal defined as a writable observable, an assignment function is associated with an asynchronous function, where the assignment function is a mapping system variable writing function for the target value to be written;
[0074] When writing a writable observable, the asynchronous function sends a write command and a read command to the calibration module and then returns immediately, and the asynchronous function call is completed.
[0075] The following describes in detail the method of writing the calibration signal defined as a writable observable quantity with examples:
[0076] Assume that in a functional test of an automobile ECU, it is necessary to write the value of the calibration signal EV_MAX_Current to 1.0 through a graphic program to set the maximum sampling current of the corresponding solenoid valve EV to 1.0 ampere.
[0077] First, the calibration module loads the calibration database and automatically creates a mapping system variable named "EV_MAX_Current" for the loaded maximum sampling current signal of the solenoid valve.
[0078] The user writes a graphic program to write the value of the maximum sampling current signal of the solenoid valve as 1.0, and the execution unit expression corresponding to this action is "EV_MAX_Current = 1.0".
[0079] Then, the user starts the test, the calibration module first connects to the ECU, reads the current value of the EV_MAX_Current signal from the ECU, and assigns it to the mapping system variable "EV_MAX_Current".
[0080] The calibration module then periodically reads the EV_MAX_Current signal value through query or DAQ mode and stores it in the mapping system variable "EV_MAX_Current".
[0081] Assuming that during the test, the ECU detects that the maximum sampling current of the solenoid valve EV is 3.0 amperes, the value of the mapping system variable "EV_MAX_Current" will be rewritten to 3.0.
[0082] The calibration module also associates the assignment function of the mapping system variable "EV_MAX_Current" with an asynchronous function "set_sys_var_async", the function of which is to call the API function of the calibration module to perform write and read operations on the maximum sampling current signal of the solenoid valve EV.
[0083] When the execution unit "EV_MAX_Current = 1.0" of the user's graphics program is executed, the calibration module will call this asynchronous function "set_sys_var_async" and pass the target value "1.0" as a parameter. In this asynchronous function, the following requests are initiated to the calibration module asynchronously:
[0084] (1) A request to write the calibration signal "EV_MAX_Current", with the request carrying a parameter of the write value 1.0;
[0085] (2) Request to read the calibration signal “EV_MAX_Current”;
[0086] After the execution unit initiates the request, it can immediately return from the asynchronous function "set_sys_var_async" without waiting for the request result. The calibration module will write the calibration signal "EV_MAX_Current" and read the calibration signal "EV_MAX_Current" in sequence in the background.
[0087] In the subsequent test process, the value of the ECU internal signal EV_MAX_Current is reset to 1.0 until the ECU monitors that the maximum current of the EV valve exceeds this value, and then the value of the calibration signal EV_MAX_Current and the mapping system variable "EV_MAX_Current" will be rewritten.
[0088] It should be noted that the calibration signal EV_MAX_Current refers to the maximum sampling current value of the solenoid valve EV obtained by sampling and calculating inside the ECU. For example, the initial value of "EV_MAX_Current" is 1.0. If the current sampling current is always 0.5 amperes, then the value of "EV_MAX_Current" remains unchanged at 1.0. Once the current sampling current is greater than 1.0 amperes, for example, the current current value collected is 1.2, then the value of "EV_MAX_Current" will immediately become 1.2. At this time, even if the current current drops to 0.2 amperes, the "EV_MAX_Current" representing the maximum value of the historical sampling current will still remain at 1.2 and will not follow the decline. Therefore, this calibration signal becomes a bidirectional read-write signal. The ECU can increase it according to the actual current value obtained by sampling, and the user can also reset this calibration signal to a relatively low value at the user end. The advantage of this is that the user can read the maximum value of this calibration signal in different time periods, and will not encounter this calibration signal rising to 3.0 at the beginning. Due to the lack of reset measures, the subsequent observation of this calibration signal enters a blind spot and can only read 3.0 forever. Therefore, in this case, the value of the ECU internal signal EV_MAX_Current is reset to 1.0 until the ECU monitors that the maximum current of the EV valve exceeds this value, and then the value of the calibration signal EV_MAX_Current and the mapping system variable "EV_MAX_Current" will be rewritten.
[0089] In this embodiment, when the calibration module successfully executes the write command and the read command at the same time, the last stored value of the mapping system variable is refreshed to the target value to be written.
[0090] In this embodiment, the calibration signal of the observed quantity refers to: a calibration signal used purely for observation, such as engine speed, vehicle speed and other signals. These signals are determined based on the measurement of relevant information in the physical world, reflect objective facts, and do not need to be modified.
[0091] In this embodiment, the calibration signal of the calibration quantity refers to: a parameter used to set, such as P, I and D parameters of the PID algorithm, which determine the running state of the algorithm after being changed.
[0092] In this embodiment, the calibration signal of the writable observation value refers to a signal that can be used for observation or intervention of the observation value, such as the maximum current value of the solenoid valve, which will increase continuously as the observation progresses until it reaches the maximum value. For example, if you want to observe the maximum value within 2 hours from the current moment, you need to reset the observation value and read it within the 2-hour range.
[0093] In some embodiments, when the calibration module is not started and the calibration signal is invalid, if the mapping system variable corresponding to the invalid calibration signal is still written, the calibration module will report an error.
[0094] The following example describes in detail the situation of writing calibration signals when the calibration module is not started:
[0095] Assume that in a vehicle ECU function test, it is necessary to write the value of the calibration signal EV_Current as 2.1 through a graphic program to control the current of the corresponding solenoid valve EV to be 2.1 amperes.
[0096] First, the calibration module loads the calibration database and automatically creates a mapping system variable named "EV_Current" for the loaded solenoid valve current signal.
[0097] The user writes a graphic program to write the value of the calibration signal EV_Current to 2.1, and the execution unit expression corresponding to the write action is "EV_Current = 2.1".
[0098] Then the user starts the test, and the calibration module first connects to the ECU, but if the connection fails, the calibration module marks the mapping system variable "EV_Current" as invalid.
[0099] When executing the execution unit "EV_Current=2.1" of the user's graphics program, the calibration module detects that the mapping system variable is marked as invalid, abandons the assignment operation, and prints the error message "Invalid mapping system variable: EV_Current" in the calibration module message.
[0100] like Figure 2 As shown, this embodiment also provides a method for automatically reading and writing automobile calibration signals, including:
[0101] Step S101', creating corresponding mapping system variables for each calibration signal in the calibration module;
[0102] Step S102', assigning initial values to mapping system variables;
[0103] Step S103', for the calibration signal defined as the calibration amount, the assignment function is associated with an asynchronous function, wherein the assignment function is a mapping system variable writing function for the target value to be written; and when writing the calibration amount, the asynchronous function immediately returns after sending a write command and a read command to the calibration module, and the asynchronous function call is completed; or
[0104] For the calibration signal defined as a writable observable, the assignment function is associated with an asynchronous function, where the assignment function is a mapping system variable write function for the target value to be written; and when writing the writable observable, the asynchronous function sends a write command and a read command to the calibration module and returns immediately, and the asynchronous function call is completed.
[0105] Figure 2 The steps are only used to show the process of the automatic reading and writing method of the automobile calibration signal, and do not limit the specific order of the steps.
[0106] Specifically, for the method of reading and writing the calibration signal defined as the calibration amount, reference may be made to the specific description of the method of reading and writing the calibration signal defined as the calibration amount, which will not be repeated here.
[0107] Specifically, for the method of reading and writing the calibration signal defined as a writable observable quantity, reference may be made to the specific description of the method of reading and writing the calibration signal defined as a writable observable quantity mentioned above, which will not be repeated here.
[0108] like Figure 2 As shown, this embodiment also provides a vehicle calibration system, including:
[0109] A mapping system variable creation module is used to create corresponding mapping system variables for each calibration signal;
[0110] The assignment module assigns initial values to the mapping system variables;
[0111] A calibration database, storing calibration signal data and defining the calibration signal as an observed quantity or a calibrated quantity or a writable observed quantity;
[0112] The execution module writes and / or reads the mapping system variables for the corresponding calibration signals.
[0113] It should be noted that the calibration signal type is determined by the ECU. There are observable calibration signals, writable calibration signals and writable observation calibration signals inside the ECU. These calibration signals are automatically generated into a database file called A2L before the ECU program is flashed. The software system loads this A2L database file to know what types of calibration signals are inside the ECU.
[0114] In one of the application implementations, for a calibration signal defined as an observed quantity, the execution module reads the calibration signal value in real time and stores it in a corresponding mapping system variable;
[0115] When reading the mapped system variable, the last stored value of the mapped system variable is read out.
[0116] Specifically, for the method of reading the calibration signal defined as the observation quantity, reference may be made to the specific description of the method of reading the calibration signal defined as the observation quantity mentioned above, which will not be repeated here.
[0117] In another application implementation, for a calibration signal defined as a calibration amount, an assignment function is associated with an asynchronous function, wherein the assignment function is a mapping system variable writing function for a target value to be written;
[0118] When writing the calibration amount, the asynchronous function sends a write command and a read command to the execution module and then returns immediately, and the asynchronous function call is completed.
[0119] Specifically, for the method of reading and writing the calibration signal defined as the calibration amount, reference may be made to the specific description of the method of reading and writing the calibration signal defined as the calibration amount, which will not be repeated here.
[0120] In a third application implementation, for a calibration signal defined as a writable observable, an assignment function is associated with an asynchronous function, wherein the assignment function is a mapping system variable writing function for a target value to be written;
[0121] When writing a writable observable, the asynchronous function sends a write command and a read command to the execution module and then returns immediately, and the asynchronous function call is completed.
[0122] Specifically, for the method of reading and writing the calibration signal defined as a writable observable quantity, reference may be made to the specific description of the method of reading and writing the calibration signal defined as a writable observable quantity mentioned above, which will not be repeated here.
[0123] In the aforementioned embodiments, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0124] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0125] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A method for automatically reading and writing calibration signals, characterized in that: include: Creating corresponding mapping system variables for each calibration signal in the calibration module; Assign initial values to mapping system variables; The type of each calibration signal is determined by the automobile ECU. The automobile ECU has an observable calibration signal for observation, and / or a writable calibration signal, and / or a writable observable calibration signal; wherein At least one calibration signal is automatically generated into an A2L database file before the automobile ECU program is flashed, and the type of the calibration signal inside the automobile ECU can be known by loading the A2L database file; Construct a graphical program to judge the calibration signal defined as the observation quantity; The calibration module reads the calibration signal value from the vehicle ECU in real time and assigns it to the corresponding mapping system variable; When executing a graphic program for making judgments, the last stored value of the corresponding mapping system variable is directly read.
2. The method for automatically reading and writing calibration signals according to claim 1, characterized in that: Also includes: Construct a graphical program that writes the values of the calibration signals defined as calibration quantities; The calibration module is connected to the automobile ECU, and associates the assignment function of the corresponding mapping system variable to an asynchronous function, wherein the assignment function is a mapping system variable writing function to be written with the target value; When executing the graphic program for writing the calibration signal value defined as the calibration quantity, the asynchronous function immediately returns after sending the write command and the read command to the calibration module, and the asynchronous function call is completed; When the calibration module executes the write command and the read command successfully at the same time, the last stored value of the corresponding mapping system variable is refreshed to the target value to be written, that is, the corresponding calibration signal value in the vehicle ECU is modified to the target value.
3. The method for automatically reading and writing calibration signals according to claim 1, characterized in that: Also includes: Construct a graphics program that writes the values of calibration signals defined as writable observables; The calibration module is connected to the automobile ECU, and associates the assignment function of the corresponding mapping system variable to an asynchronous function, wherein the assignment function is a mapping system variable writing function to be written with the target value; When executing a graphic program that writes a calibration signal value defined as a writable observable, the asynchronous function immediately returns after sending a write command and a read command to the calibration module, and the asynchronous function call is completed; When the calibration module executes the write command and the read command successfully at the same time, the last stored value of the corresponding mapping system variable is refreshed to the target value to be written, that is, the corresponding calibration signal value in the vehicle ECU is modified to the target value.
4. The method for automatically reading and writing automobile calibration signals according to claim 1, characterized in that: In the case where the calibration module is not started and the calibration signal is invalid, the calibration module will report an error when writing the mapping system variable corresponding to the invalid calibration signal.
5. The method for automatically reading and writing automobile calibration signals according to claim 1, characterized in that: The mapping system variables are suitable for participating in expression construction, that is, constructing an observation signal expression or a test result expression.
6. The method for automatically reading and writing automobile calibration signals according to claim 2 or 3, characterized in that: The mapping system variables are also suitable for participating in the construction of C programs or graphics programs or user-defined panels; and Assign values to corresponding mapping system variables in a C program, a graphic program or a user-defined panel, that is, modify the calibration signal of the calibration quantity or the writable observation quantity calibration signal corresponding to the corresponding mapping system variable.
7. A method for automatically reading and writing calibration signals, characterized in that: include: Creating corresponding mapping system variables for each calibration signal in the calibration module; Assign initial values to mapping system variables; The type of each calibration signal is determined by the automobile ECU. The automobile ECU has an observable calibration signal for observation, and / or a writable calibration signal, and / or a writable observable calibration signal; wherein At least one calibration signal is automatically generated into an A2L database file before the automobile ECU program is flashed, and the type of the calibration signal inside the automobile ECU can be known by loading the A2L database file; Construct a graphical program that writes the values of the calibration signals defined as calibration quantities; The calibration module is connected to the automobile ECU, and associates the assignment function of the corresponding mapping system variable to an asynchronous function, wherein the assignment function is a mapping system variable writing function to be written with the target value; When executing the graphic program for writing the calibration signal value defined as the calibration quantity, the asynchronous function immediately returns after sending the write command and the read command to the calibration module, and the asynchronous function call is completed; When the calibration module executes the write command and the read command successfully at the same time, the last stored value of the corresponding mapping system variable is refreshed to the target value to be written, and the corresponding calibration signal value in the vehicle ECU is modified to the target value.
8. An automobile calibration system, characterized in that: include: A mapping system variable creation module is configured to create corresponding mapping system variables for each calibration signal; An assignment module is configured to assign initial values to mapping system variables; The calibration database is configured to store calibration signal data and define the calibration signal as an observed quantity or a calibrated quantity or a writable observed quantity; wherein the type of each calibration signal is determined by the automobile ECU, and the automobile ECU has an observed quantity calibration signal for observation, and / or a writable calibrated quantity calibration signal, and / or a writable observed quantity calibration signal; wherein at least one calibration signal is automatically generated into an A2L database file before the automobile ECU program is flashed, and the type of the calibration signal inside the automobile ECU can be known by loading the A2L database file; as well as The execution module is configured to construct a graphic program for writing a calibration signal value defined as a calibration quantity or a calibration signal value of a writable observable quantity; after connecting to the automobile ECU, the assignment function of the corresponding mapping system variable is associated with an asynchronous function, wherein the assignment function is a mapping system variable writing function for a target value to be written; and when executing the graphic program for writing a calibration signal value defined as a calibration quantity or a calibration signal value of a writable observable quantity, the write command and the read command issued by the asynchronous function are executed, and after the write command and the read command are simultaneously successful, the last stored value of the corresponding mapping system variable is refreshed to the target value to be written, that is, the corresponding calibration signal value in the automobile ECU is modified to the target value.
9. The vehicle calibration system according to claim 8, characterized in that: The execution module is further configured to construct a graphical program for judging the calibration signal defined as an observation quantity; read the calibration signal value from the automobile ECU in real time and assign it to the corresponding mapping system variable; and When executing a graphic program for making judgments, the last stored value of the corresponding mapping system variable is directly read.
10. A computer-readable storage medium storing computer-readable instructions, which, when executed by at least one processor, enables the method for automatically reading and writing calibration signals as claimed in any one of claims 1 to 7 to be executed.
11. A computer program product, comprising a computer program or instructions, wherein when the computer program or instructions are executed on a computer, the computer is enabled to execute the method for automatically reading and writing calibration signals as claimed in any one of claims 1 to 7.
12. A device, characterized in that: The device is configured to execute a computer program or instruction so that the device executes the method for automatically reading and writing calibration signals as described in any one of claims 1-7.