Automatic reading and writing method for automobile calibration signal and automobile calibration method
By creating mapping system variables and associating them with asynchronous functions, the method addresses inefficiencies in vehicle calibration signal operations, enabling efficient and intuitive manipulation of calibration signals.
Patent Information
- Application Number
- JP2024197587
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-08-16
- Filing Date
- 2024-11-12
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-11-30
AI Technical Summary
Existing methods for reading and writing vehicle calibration signals are inefficient and lack interoperability, making it difficult to perform mathematical operations or incorporate custom variable values into calibration signal operations.
A method is introduced that creates mapping system variables for each calibration signal, associates them with asynchronous functions, and uses these variables for real-time reading and writing, allowing calibration signals to be treated as local variables, simplifying operations and improving efficiency.
This approach enhances the interoperability of calibration signals, enabling intuitive program creation and efficient rewriting of calibration variables and observables by converting operations into local variable manipulations.
Smart Images

Figure 0007811803000001 
Figure 0007811803000002 
Figure 0007811803000003
Abstract
Description
[Technical Field]
[0001] The present invention relates to the technical field of vehicle software development, and more particularly to a method for automatically reading and writing vehicle calibration signals and a vehicle calibration method. [Background technology]
[0002] In the process of signal calibration in a vehicle, the method of reading the monitor signal includes: Open the calibration database; Select the signal that needs to be monitored from the calibration database; Drag or associate this signal to a monitor window, for example, a graphic window; Observe the change of the signal from the monitor window.
[0003] The method for writing a calibration signal includes: Opening the calibration database Selecting the signal that needs to be written from the calibration database Drag or associate this signal into the text window In this window, enter the value that needs to be corrected and confirm the correction with the enter key Confirm the successful correction of the signal value. Summary of the Invention
[0004] The present invention relates to an automatic reading and writing method for vehicle calibration signals and a vehicle calibration method, the automatic reading and writing method for vehicle calibration signals comprising the steps of: creating mapping system variables corresponding to each calibration signal in a calibration module based on a calibration database that stores calibration signal data that defines whether each calibration signal is an observation quantity, which is a quantity based on measurement related to a vehicle, a calibration variable, which is a parameter for setting an operating state of the vehicle, or a writable observation variable, which is a writable quantity among the quantities based on measurement related to the vehicle; and assigning initial values to the mapping system variables; (a) when the calibration signal is a signal representing a calibration variable, a calibration module connected to an automobile ECU (electronic control unit) associates an assignment function, which is a function for writing a to-be-written target value of the calibration variable to a mapping system variable, with an asynchronous function, the calibration module calls the asynchronous function, inputs the to-be-written target value of the calibration variable to the asynchronous function, and the asynchronous function asynchronously outputs a write command and a read command for the mapping system variable in this order to the calibration module, and then immediately returns, completing the call of the asynchronous function; and / or (b) When the calibration signal is a signal representing a writable observable, the calibration module connected to the automobile ECU further includes a step of associating an assignment function, which is a function for writing the target value of the writable observable to be waited for writing, with an asynchronous function, the calibration module calling the asynchronous function, inputting the target value of the writable observable to be waited for writing into the asynchronous function, and outputting a write command and a read command for the mapping system variable in this order to the calibration module in an asynchronous manner, and then immediately returning to complete the call of the asynchronous function.
[0005] The present invention also provides an automobile calibration method, which includes the steps of: a bus adapter reading a calibration signal from an automobile ECU; a computer device communicatively connecting with the bus adapter and executing the method for automatically reading and writing the automobile calibration signal; and transmitting a write value generated after executing the method for automatically reading and writing the automobile calibration signal to the automobile ECU via the bus adapter.
[0006] In a third aspect, the present invention further provides an electronic device including a processor, a computer-readable storage medium, a communication bus, and a communication interface, the processor, the computer-readable storage medium, and the communication interface communicating with each other via the communication bus, the computer-readable storage medium configured to store a program for executing the method for automatically reading and writing a vehicle calibration signal, and the processor executing the program for the method for automatically reading and writing a vehicle calibration signal.
[0007] In a fourth aspect, the present invention further provides a development and debugging system for a vehicle, the development and debugging system for a vehicle including a computer device and a bus adapter, the computer device including a processor, a computer-readable storage medium, a communication bus, and a communication interface, the computer-readable storage medium configured to store a program for executing the method for automatically reading and writing a vehicle calibration signal, the processor configured to execute the program for the method for automatically reading and writing a vehicle calibration signal, the processor and the computer-readable storage medium realizing communication with the bus adapter via the communication interface and the communication bus, the bus adapter configured to read a calibration signal from a vehicle ECU, and further configured to transmit a write value generated after the processor executes the method for automatically reading and writing a vehicle calibration signal to the vehicle ECU.
[0008] In a fifth aspect, the present invention further provides a computer-readable storage medium having stored thereon computer-readable instructions that, when executed by at least one processor, cause the method for automatically reading and writing a vehicle calibration signal as described above to be performed.
[0009]
[0010]
[0011] In an eighth aspect, the present invention further provides a computer program product, the product including a computer readable storage medium having computer readable program code stored thereon, the computer readable program code including commands that cause at least one processor or at least one computing device to perform the method for automatically reading and writing a vehicle calibration signal as described above.
[0012] The present invention is intended to provide a brief summary of some of the subject matter described herein. Accordingly, it should be understood that the above features are merely examples and should not be construed as narrowing in any way the scope or nature of the subject matter described herein.
[0013] Other features, aspects, and advantages of the subject matter described herein will become apparent from the following specific embodiments, the accompanying drawings, and the claims. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and obtained by the structure particularly pointed out in the description and drawings. In order to make the above objects, features and advantages of the present invention more comprehensible, the following preferred embodiments will be described in detail in conjunction with the accompanying drawings. In order to more clearly describe the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly describe the drawings that need to be used to describe the specific embodiments or the prior art. The drawings described in the following description are some embodiments of the present invention, and it is obvious that those skilled in the art can obtain other drawings from these drawings without any creative efforts. [Brief explanation of the drawings]
[0014] [Figure 1] FIG. 1 is a flowchart of a method for automatically reading and writing a vehicle calibration signal according to some embodiments. [Figure 2]FIG. 2 is a flowchart of a method for automatically reading and writing a vehicle calibration signal according to some embodiments. [Figure 3] FIG. 3 is a principle block diagram of an automobile calibration system according to some embodiments. [Figure 4] FIG. 4 is a principle block diagram of an automobile calibration system according to some embodiments. [Figure 5] FIG. 5 is a block diagram illustrating the principle of an electronic device according to some embodiments. [Figure 6] FIG. 6 is a principle block diagram of a development and debugging system for a vehicle according to some embodiments. DETAILED DESCRIPTION OF THE INVENTION
[0015] In order to clarify the objectives, technical solutions and advantages of the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings, but it is obvious that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without performing creative work fall within the scope of protection of the present invention.
[0016] In the process of calibrating automobile signals, the reading and writing of calibration signals must be controlled using API functions or specific monitor programs, such as drawing signal monitor curves in a graphic window and modifying signal values in a text window. Therefore, the calibration signal cannot be used as a single variable, which leads to the following problem: if a user wants to draw a curve of values after multiple calibration signals undergo mathematical operations or incorporate custom variable values into the operation to modify the target calibration signal, there is no feasible way to do so.
[0017] Therefore, at least one embodiment provides a method for automatically reading and writing automobile calibration signals, the method comprising the steps of: creating a corresponding mapping system variable for each calibration signal in a calibration module; assigning an initial value to the last stored value mapping system variable; for calibration signals defined as observables, the calibration module reads the calibration signal value in real time and stores it as the corresponding mapping system variable; and reading the mapping system variable by reading the last stored value of the mapping system variable.
[0018] In some embodiments, the method for automatically reading and writing automobile calibration signals can map any calibration signal to a mapping system variable inside the calibration module, thereby realizing the reading and writing of calibration signals using the mapping system variable, thereby solving the problem of interoperability of calibration signals.
[0019] Various non-limiting embodiments of exemplary embodiments of the present disclosure are described in detail below in connection with the accompanying drawings. As shown in Figure 1, some embodiments provide a method for automatically reading and writing an automobile calibration signal. The method includes: In S101, a corresponding mapping system variable is created for each calibration signal in the calibration module. In S102, initial values are given to the mapping system variables. In S103, for a calibration signal defined as an observable, the calibration module reads the calibration signal value in real time and stores it as a corresponding mapping system variable. In S104, when the mapping system variable is read, the last stored value of the mapping system variable is read.
[0020] The steps in FIG. 1 are a flowchart showing only the method for automatically reading and writing the vehicle calibration signal, and do not limit the specific order of the steps.
[0021] In some embodiments, there are two naming conventions for automatically created mapping system variables, and the software system provides the user with an option to choose. (1) Use the calibration signal name directly. For example, if the calibration signal name is "abc", the mapping system variable name is also "abc". (2) The ECU name is used as a prefix, and the calibration signal name and the ECU name are separated by an underscore. For example, if the calibration signal name is “abc” and the ECU name is “ABS”, the mapping system variable name is called “ABS_abc”.
[0022] 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 ECU is successfully connected), and assigns each current value to the corresponding mapping system variable, thereby completing the assignment of the initial value to each mapping system variable.
[0023] The calibration module reads the calibration signal value in real time and stores it as the corresponding mapping system variable, which ensures that the value in the mapping system variable is always the latest value. To read the latest value of the calibration signal, the user only needs to read the latest value of the mapping system variable, which is the last stored value. The last stored time node is the timestamp of the time when the calibration module last reads the calibration signal value.
[0024] In some embodiments, the method for automatically reading and writing vehicle calibration signals maps any calibration signal to a mapping system variable inside the calibration module, thereby converting the read and write operations on the calibration signal into read and write operations on a local variable, which has the following effects: (1) In all cases where a software system can associate variables, a mapping system variable can be associated. For example, in a panel, after associating a mapping system variable with a drag frame, the value of the calibration signal can be directly modified by mouse dragging, without the need to write a dedicated program to respond to the event information of the drag frame. Furthermore, for example, in a graphics program, reading and writing to a mapping system variable can be converted into reading and writing to the corresponding calibration signal, eliminating the need to call the API function of the calibration module, making the program creation process simple and intuitive.
[0025] (2) Mapping system variables can be incorporated into formula construction, i.e., a new observable signal formula can be constructed, for example, constructing a new observable signal c, which is equal to the sum of the mapping system variable a and the CAN signal b, and can be written as c = a + b. That is, the observable signal c can be observed through a graphic window. Furthermore, new variables can be constructed, i.e., constructing a test result formula, for example, total test result y = x1&x2&x3, where x1, x2, and x3 are three test criteria, and only when all three criteria are successful will the total test result be successful. Traditional calibration signal control methods cannot meet this need.
[0026] The method for reading the calibration signal defined as the observable will be described in detail below using an example. Suppose that in a functional test of an automobile ECU, it is necessary to determine using a graphics program whether the power supply voltage signal KL30 is greater than 9V. First, the calibration module loads the calibration database and automatically creates a mapping system variable for the loaded power supply voltage signal, named “KL30”. The user creates a graphics program that determines the power supply voltage signal, and the corresponding execution unit expression for this determination is "KL30>9". Then, the user starts the test, and the calibration module first connects to the ECU, reads the current value of the KL30 signal from the ECU, and assigns the value to the mapping system variable “KL30”, i.e., assigns the initial value to the mapping system variable “KL30”. Subsequently, the calibration module periodically reads the KL30 signal value by query or DAQ method and stores it as a mapping system variable "KL30". Finally, when the execution unit "KL30>9" of the user's graphics program is executed, the value of the mapping system variable "KL30" is directly read and compared with 9.
[0027] In the prior art, the rewriting operation of the calibration signal of the calibration variable or the calibration signal of the writable observable is a dedicated operation, which involves the output of complex calibration commands within the calibration module and the matching of communication protocols between the host and the subordinate devices. It is necessary to write the values that need to be rewritten into the specific calibration variable list provided by the calibration module, which results in extremely low rewriting efficiency.
[0028] In some embodiments, in various cases, such as a C program, a graphics program, a user-customized panel, or a formula (all of the following cases are taken as examples of a graphics program), the calibration signal of a calibration variable or the calibration signal of a writable observable can be easily modified by simply assigning a value to the corresponding mapping system variable, thereby effectively improving the rewriting of the calibration variable to the calibration signal or the calibration signal of the writable observable.
[0029] Specifically, the method for automatically reading and writing an automobile calibration signal in some embodiments further includes: For a calibration signal defined as a calibration variable, an allocation function is associated with one asynchronous function. The allocation function is a function for writing a write-wait target value to a mapping system variable. Once the calibration variable is written, the asynchronous function outputs the write and read commands to the calibration module and then immediately returns, completing the invocation of the asynchronous function.
[0030] The method for writing calibration signals defined as calibration variables will be described in detail below using examples. Here, it is assumed that in a functional test of an automobile ECU, it is necessary to control the current of the corresponding solenoid valve EV to 2.1 amperes by writing a value of 2.1 to the calibration signal EV_Current by a graphics program. First, the calibration module loads the calibration database and automatically creates a mapping system variable for the current signal of the loaded solenoid valve, whose name is "EV_Current". A user creates a graphics program that writes a value of 2.1 to the calibration signal EV_Current. The execution unit expression corresponding to this write operation is "EV_Current=2.1". Next, the user starts the test. The calibration module first connects to the ECU and associates the mapping system variable "EV_Current" with an asynchronous function "set_sys_var_async". The function of this asynchronous function is to call the calibration module's API function to perform write and read operations on the solenoid valve current signal.
[0031] When the execution unit "EV_Current=2.1" of the user's graphics program is executed, the calibration module calls the asynchronous function "set_sys_var_async" and inputs the target value of 2.1 as a parameter. The asynchronous function asynchronously sends the following requests to the calibration module in order: (1) A request to write the calibration signal "EV_Current" and a request that the portable parameter be a write value of 2.1. (2) A request to read the calibration signal “EV_Current”. After the execution unit initiates the request, it does not need to wait for the request result and can immediately return from the asynchronous function "set_sys_var_async". The calibration module writes and reads the calibration signal "EV_Current" in the background.
[0032] Specifically, the method for automatically reading and writing an automobile calibration signal in some embodiments further includes: For a calibration signal defined as a writable observable, an allocation function is associated with one asynchronous function, where the allocation function is a function for writing the write-wait target value to the mapping system variable. Once the writable observable is written, the asynchronous function outputs the write and read commands to the calibration module and then immediately returns, completing the invocation of the asynchronous function.
[0033] The method for writing a calibration signal defined as a writable observable will be described in detail below using an example. Assume that in a functional test of an automobile ECU, the maximum sampling current of the corresponding solenoid valve EV needs to be set to 1.0 amperes by writing a value of 1.0 to the calibration signal EV_MAX_Current by a graphics program. First, the calibration module loads the calibration database and automatically creates a mapping system variable for the maximum sampled current signal of the loaded solenoid valve, whose name is "EV_MAX_Current". A user creates a graphics program that writes a maximum sampled current signal to a solenoid valve with a value of 1.0. The execution unit expression corresponding to this operation is "EV_MAX_Current=1.0". The user then initiates the test. The calibration module first connects to the ECU, and the current value of the EV_MAX_Current signal is read from the ECU and assigned to the mapping system variable “EV_MAX_Current”. The calibration module then periodically reads the EV_MAX_Current signal value via query or DAQ method and stores it in (as) the mapping system variable "EV_MAX_Current".
[0034] Assuming that the maximum sampled current of the solenoid valve EV detected by the ECU during the test is 3.0 amps, the value of the mapping system variable “EV_MAX_Current” is rewritten to 3.0. At the same time, the calibration module associates the assignment function of the mapping system variable “EV_MAX_Current” with an asynchronous function “set_sys_var_async”, which calls the API function of the calibration module to perform write and read operations on the maximum sampling current signal of the solenoid valve EV.
[0035] When the execution unit of the user's graphics program executes "EV_MAX_Current=1.0", the calibration module calls the asynchronous function "set_sys_var_async" and inputs the target value of 1.0 as a parameter. The asynchronous function asynchronously sends the following requests to the calibration module in order: (1) A request to write the calibration signal "EV_MAX_Current" and the portable parameter is requested to write a value of 1.0. (2) A request to read the calibration signal “EV_MAX_Current”. After the execution unit initiates the request, it does not need to wait for the request result and can immediately return from the asynchronous function “set_sys_var_async”. The calibration module writes the calibration signal “EV_MAX_Current” in sequence in the background and reads the calibration signal “EV_MAX_Current”.
[0036] During subsequent tests, the value of the ECU internal signal EV_MAX_Current is reset to 1.0, and when the ECU monitors that the maximum EV valve current exceeds this value, the values of the calibration signal EV_MAX_Current and the mapping system variable "EV_MAX_Current" are overwritten.
[0037] The calibration signal EV_MAX_Current is the maximum sampled current value of the solenoid valve EV, calculated by sampling within the ECU. For example, if the initial value of "EV_MAX_Current" is 1.0 and the current sampled current remains at 0.5 amperes, the value of "EV_MAX_Current" remains 1.0. However, if the current sampled current exceeds 1.0 amperes, e.g., if the current current value becomes 1.2, the value of "EV_MAX_Current" immediately changes to 1.2. Even if the current current drops to 0.2 amperes, "EV_MAX_Current," which represents the maximum value of the historical sampled current, remains at 1.2 and does not decrease. Therefore, this calibration signal is a bidirectional read / write signal. The ECU can increase it based on the actual current value obtained by sampling, and the user can reset this calibration signal to a relatively low value. The advantage of this is that the user can read the maximum value of this calibration signal at different times, and when this calibration signal starts, it rises to 3.0, and because there is no reset procedure, subsequent observations of this calibration signal will enter the dead band and will not encounter the problem of only reading up to 3.0. Therefore, in this case, the value of the ECU internal signal EV_MAX_Current is reset to 1.0, and the values of the calibration signal EV_MAX_Current and the mapping system variable "EV_MAX_Current" are rewritten when the ECU monitors that the maximum current of the EV valve exceeds this value.
[0038] In some embodiments, after the calibration module successfully executes a write command and a read command simultaneously, it refreshes the last stored value of the mapping system variable with the write-pending target value.
[0039] In some embodiments, the calibration signal of an observable refers to a calibration signal that is purely observational, such as a signal of engine RPM, vehicle speed, etc., all of which are determined based on measurements of information related to the physical world, reflect objective facts, and do not require correction.
[0040] In some embodiments, the calibration signal of a calibration variable refers to a parameter that is set, for example, the P, I, and D parameters of a PID algorithm, that determines the operating state of the algorithm after modification.
[0041] In some embodiments, the calibration signal of a writable observable is a signal that may be used for observation and that may be intervened in the observed value. For example, a signal such as the maximum current of a solenoid valve may continuously increase to a maximum value as the observation proceeds. For example, if one wishes to observe the maximum value within two hours from the present time, one must reset the observed value and read it within two hours.
[0042] In some embodiments, if the calibration module is not activated and the calibration signal is invalid, the calibration module reports an error upon any further write attempt to the mapping system variable that corresponds to the invalid calibration signal.
[0043] The following provides an example to explain in detail the situation of writing a calibration signal when the calibration module is not activated. Here, it is assumed that in a functional test of an automobile ECU, the current of the corresponding solenoid valve EV needs to be controlled to 2.1 amperes by writing a value of 2.1 to the calibration signal EV_Current by a graphics program. First, the calibration module loads the calibration database and automatically creates a mapping system variable for the current signal of the loaded solenoid valve, whose name is "EV_Current". A user creates a graphics program that writes a value of 2.1 to the calibration signal EV_Current. The execution unit expression corresponding to this write operation is "EV_Current=2.1". The user then launches the test. 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. When executing the execution unit "EV_Current=2.1" of the user's graphics program, the calibration module detects that the flag of the mapping system variable is invalid, abandons the execution of the assignment operation, and prints the error notification message "Invalid mapping system variable. EV_Current" in the message of the calibration module.
[0044] As shown in Figure 2, some embodiments further provide a method for automatically reading and writing an automobile calibration signal, the method including: In S101', a corresponding mapping system variable is created for each calibration signal in the calibration module. In S102', initial values are assigned to the mapping system variables. In step S103', for the calibration signal defined as the calibration variable, an allocation function is associated with one asynchronous function. The allocation function is a function for writing a write wait target value to the mapping system variable. When the calibration variable is written, the asynchronous function outputs a write command and a read command to the calibration module, and then immediately returns, completing the call of the asynchronous function. And / or For a calibration signal defined as a writable observable, an assignment function is associated with an asynchronous function. The assignment function is a function for writing a target value to be written to a mapping system variable. When the writable observable is written, the asynchronous function outputs a write command and a read command to the calibration module, and then immediately returns, completing the call of the asynchronous function.
[0045] The steps in FIG. 2 are a flowchart showing only the method for automatically reading and writing the vehicle calibration signal, and do not limit the specific order of the steps. Specifically, for the method of reading and writing the calibration signal defined as the calibration variable, please refer to the specific description of the method of reading and writing the calibration signal defined as the calibration variable above, and the description will be omitted here. Specifically, for the method of reading and writing the calibration signal defined as a writable observable, the specific description of the method of reading and writing the calibration signal defined as the writable observable can be referred to, and the description will be omitted here.
[0046] Some embodiments further provide a vehicle calibration method, including reading a calibration signal from an ECU, performing the automatic vehicle calibration signal reading and writing method, and transmitting a write value generated after performing the automatic vehicle calibration signal reading and writing method to the ECU, specifically reading the calibration signal from the ECU via a bus adapter, communicating with the bus adapter via a computer device and performing the automatic vehicle calibration signal reading and writing method, and transmitting a write value generated after performing the automatic vehicle calibration signal reading and writing method to the ECU via the bus adapter. The method for automatically reading and writing the vehicle calibration signal can be specifically implemented by referring to the specific explanations of the methods for reading and writing the two types of calibration signals mentioned above, and the explanation will be omitted here.
[0047] Some embodiments further provide a vehicle calibration system, as shown in Figure 3, which includes a computer device, configured to include: One is a mapping system variable creation module that creates a corresponding mapping system variable for each calibration signal. The other is an assignment module, which assigns initial values to the mapping system variables. Yet another is a calibration database that stores calibration signal data and defines calibration signals as observables or calibration variables or writable observables. Yet another is an execution module configured to write and / or read corresponding calibration signals to and / or from mapping system variables.
[0048] Some embodiments further provide a vehicle calibration system, as shown in Figure 4, which includes a computer device, the computer device being configured to include: One is a mapping system variable creation module that creates corresponding mapping system variables for each calibration signal. The other is an assignment module, which assigns initial values to mapping system variables. Yet another is an allocation module, which associates an allocation function with one asynchronous function for a calibration signal defined as a calibration variable. The allocation function is a function for writing a target value to be written to a mapping system variable. When the calibration variable is written, the asynchronous function outputs a write command and a read command to the calibration module, and then immediately returns, completing the call of the asynchronous function. And / or, for a calibration signal defined as a writable observable, the allocation function is associated with one asynchronous function. The allocation function is a function for writing a target value to be written to a mapping system variable. When the writable observable is written, the asynchronous function outputs a write command and a read command to the calibration module, and then immediately returns, completing the call of the asynchronous function.
[0049] In some embodiments, the functions performed by the mapping system variable creation module, the assignment module, the calibration database, and the execution module may be implemented in a computer device and implemented by a processor module.
[0050] It should be noted that the type of calibration signal is determined by the ECU. Inside the ECU, there are calibration signals for observable quantities for observation, calibration signals for standard quantities that can be written, and calibration signals for writable observable quantities. These calibration signals are automatically generated in a database file called A2L before the ECU program is written, and by loading this A2L database file, the software system can know what type of calibration signal is in the ECU.
[0051] In one application embodiment, for a calibration signal defined as an observable, the execution module reads the calibration signal value in real time and stores it as a corresponding mapping system variable. When reading the mapping system variable, the last stored value of the mapping system variable is read.
[0052] Specifically, for the method of reading the calibration signal defined as the observable, the specific description of the method of reading the calibration signal defined as the observable can be referred to, and the description will be omitted here.
[0053] In another application embodiment, for a calibration signal defined as a calibration variable, an allocation function is associated with one asynchronous function, where the allocation function is a function for writing the write pending target value to the mapping system variable. Once the calibration variable is written, the asynchronous function outputs the write command and the read command to the execution module, and then returns immediately, completing the call of the asynchronous function.
[0054] Specifically, for the method of reading and writing the calibration signal defined as the calibration variable, please refer to the specific description of the method of reading and writing the calibration signal defined as the calibration variable above, and the description will be omitted here.
[0055] In a third application embodiment, for a calibration signal defined as a writable observable, an allocation function is associated with one asynchronous function, which is a function for writing a target value to be written to a mapping system variable. When the writable observable is written, the asynchronous function outputs the write command and the read command to the execution module, and then returns immediately, completing the invocation of the asynchronous function.
[0056] Specifically, for the method of reading and writing the calibration signal defined as a writable observable, the specific description of the method of reading and writing the calibration signal defined as the writable observable can be referred to, and the description will be omitted here.
[0057] The following describes electronic devices in some embodiments from the perspective of hardware processing, but does not limit the specific implementation of the electronic devices.
[0058] 5, the electronic device includes a processor, a readable storage medium, a communication bus, and a communication interface. The processor, the readable storage medium, and the communication interface communicate with each other via the communication bus. The readable storage medium is configured to store a program for executing the method for automatically reading and writing the vehicle calibration signal, and the processor is configured to execute the program for the method for automatically reading and writing the vehicle calibration signal.
[0059] In other embodiments, computer devices and industrial computers may also be considered types of electronic equipment. The configuration shown in FIG. 5 is not intended to limit the electronic device, which may include fewer or more components than shown, some components may be combined, or different component arrangements may be used.
[0060] In some embodiments, the communication interface may be a communication interface connectable to an external bus adapter, such as RS232, RS485, a USB port, a TYPE port, etc. A wired or wireless network interface may also be included, and the network interface may optionally include a wired and / or wireless interface typically used to establish a communication connection between the computing device and other electronic devices (e.g., a WI-FI interface, a Bluetooth interface, etc.).
[0061] A computer-readable or readable storage medium includes at least one type of memory. Memory may include flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, it may be an internal storage unit of a computer device, such as a hard disk of the computer device. In other embodiments, memory may be an external storage device of a computer device, such as a plug-in hard disk installed in the computer device, a SmartMedia Card (SMC), a Secure Digital Card (SD), a Flash Card, etc. Furthermore, memory may include both an internal storage unit of a computer device and an external storage device. Memory is used to store various data, such as application software and computer program code installed in the computer device, as well as to temporarily store output data or data to be output.
[0062] In some embodiments, the processor may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip that executes program code stored in memory or processes data, for example, to execute a computer program.
[0063] In some embodiments, the communication bus may be an input / output bus, which may be a Peripheral Component Interconnect (PCI) bus or an Enhanced Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
[0064] Optionally, the computer device may further include a user interface. The user interface may include input units such as a display and a keyboard, and optionally, the user interface may also include a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. In this case, the display is also called a display screen or a display unit, since it displays information processed in the computer device and a visualized user interface.
[0065] When the processor executes the program, it realizes the steps in the embodiment of the method for automatically reading and writing automobile calibration signals shown in Figure 1, for example, steps S101 to S104 shown in Figure 1. Alternatively, when the processor executes the computer program, it realizes the functions of each module or unit in each of the embodiments of the device.
[0066] In some embodiments, the processor is specifically used to implement the following steps: For each calibration signal in the calibration module, a corresponding mapping system variable is created. Assigns an initial value to a mapping system variable. For a calibration signal defined as an observable, the calibration module reads the calibration signal value in real time and stores it as a corresponding mapping system variable. When reading the mapping system variable, the last stored value of the mapping system variable is read.
[0067] Optionally, in a possible embodiment, the processor can be used to further implement the following steps: For a calibration signal defined as a calibration variable, an allocation function is associated with one asynchronous function. The allocation function is a function for writing a write-wait target value to a mapping system variable. Once the calibration variable is written, the asynchronous function outputs the write and read commands to the calibration module and then returns immediately, completing the invocation of the asynchronous function.
[0068] Optionally, in a possible embodiment, the processor can be used to further implement the following steps: For a calibration signal defined as a writable observable, an assignment function is associated with one asynchronous function. The assignment function is a function for writing a target value to be written to a mapping system variable. Once the writable observable is written, the asynchronous function outputs the write and read commands to the calibration module and then immediately returns, completing the invocation of the asynchronous function.
[0069] Optionally, in a possible embodiment, the processor can be used to further implement the following steps: After the calibration module successfully executes the write command and the read command simultaneously, it refreshes the last stored value of the mapping system variable with the write-pending target value.
[0070] Optionally, in a possible embodiment, the processor can be used to further implement the following steps: If the calibration module is not activated and the calibration signal is invalid, the calibration module will report an error when an attempt is made to write the invalid calibration signal to the corresponding mapping system variable.
[0071] Some embodiments further provide a computer-readable storage medium, which stores a program for a method for automatically reading and writing a vehicle calibration signal, and when the program is executed by a processor, it can realize specific steps of the method for automatically reading and writing a vehicle calibration signal. However, the specific description of the method for automatically reading and writing a vehicle calibration signal is referred to and will not be repeated here.
[0072] As shown in FIG. 6 , some embodiments further provide a development and debugging system for a vehicle. The system includes a computer device and a bus adapter. The computer device includes a processor, a readable storage medium, a communication bus, and a communication interface. The readable storage medium is configured to store a program for executing the method for automatically reading and writing the vehicle calibration signal, and the processor is configured to execute the program for the method for automatically reading and writing the vehicle calibration signal. The processor, the readable storage medium, and the communication interface realize communication with the bus adapter via the communication bus. The bus adapter is configured to read the calibration signal from an ECU, and is further configured to transmit a write value generated after the processor executes the method for automatically reading and writing the vehicle calibration signal to the ECU.
[0073] In some embodiments, a method for automatically reading and writing vehicle calibration signals includes: creating a corresponding mapping system variable for each calibration signal in a calibration module; assigning an initial value to the mapping system variable; for a calibration signal defined as an observable, the calibration module reads the calibration signal value in real time and stores it as the corresponding mapping system variable; and when reading the mapping system variable, reading the last stored value of the mapping system variable.
[0074] In some embodiments, the method for automatically reading and writing vehicle calibration signals includes: creating a corresponding mapping system variable for each calibration signal in the calibration module; assigning an initial value to the mapping system variable; associating an assignment function with an asynchronous function for a calibration signal defined as a calibration variable, the assignment function being a function for writing a target value to be written to the mapping system variable; and when the calibration variable is written, the asynchronous function outputs a write command and a read command to the calibration module, and then immediately returns, completing the call to the asynchronous function; and / or associating an assignment function with an asynchronous function for a calibration signal defined as a writable observable, the assignment function being a function for writing a target value to be written to the mapping system variable; and when the writable observable is written, the asynchronous function output a write command and a read command to the calibration module, and then immediately returns, completing the call to the asynchronous function.
[0075] In some embodiments, the computing device corresponds to the electronic device described above and will not be described here.
[0076] In some embodiments, for a calibration signal defined as a calibration variable, an assignment function is associated with an asynchronous function. The assignment function is a function for writing a write-wait target value to a mapping system variable. When the calibration variable is written, the asynchronous function outputs a write command and a read command to the calibration module, and then immediately returns, completing the call of the asynchronous function.
[0077] In some embodiments, for a calibration signal defined as a writable observable, an allocation function is associated with an asynchronous function. The allocation function is a function for writing a target value to be written to a mapping system variable. When the writable observable is written, the asynchronous function outputs a write command and a read command to the calibration module, and then immediately returns, completing the call of the asynchronous function.
[0078] In some embodiments, the bus adapter may be a CAN bus adapter, a CAN FD bus adapter, a FastLIN bus adapter, a LIN bus adapter, an Ethernet bus adapter, or a FlexRay bus adapter. It may be a one-to-multiple bus adapter or a multiple-to-multiple bus adapter, and some embodiments do not limit the specific implementation of the bus adapter. In some embodiments, the bus adapter communicates with the ECU via the XCP or CCP protocol to send write values.
[0079] In some embodiments, the ECU includes an electric power steering system, an anti-lock braking system, an electronic stability control system, an automotive engine management system, and a battery management system.
[0080] In some embodiments of the vehicle development and debugging system, computer-readable storage medium, processor, and electronic device, the specific method for automatically reading and writing automobile calibration signals is the same as the two methods for automatically reading and writing automobile calibration signals mentioned above, and both can be realized, so the description will be omitted here.
[0081] Some embodiments further provide a computer program product, the product including a computer-readable storage medium having computer-readable program code stored thereon, the computer-readable program code including commands that cause at least one processor or at least one computing device to perform any of the possible methods for automatically reading and writing a vehicle calibration signal described above.
[0082] Some embodiments provide a computer-readable storage medium having computer-readable instructions stored thereon that, when executed by at least one processor, cause the method for automatically reading and writing a vehicle calibration signal of any of the above-described embodiments to be performed.
[0083] It should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely examples. For example, the flowcharts and block diagrams in the drawings illustrate possible architectures, functions, and operations of apparatuses, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, a program segment, or a portion of code. The module, program segment, or portion of code includes executable commands for implementing one or more predetermined logical functions. Note that in some alternative implementations, the functions depicted in the blocks may occur in a different order than depicted in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or may sometimes be executed in the reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented in a dedicated hardware-based system that performs a predetermined function or operation, or in a combination of dedicated hardware and computer commands.
[0084] Furthermore, each functional module in each embodiment of the present invention may be integrated together to form a single independent part, each module may exist independently, or two or more modules may be integrated to form a single independent part.
[0085] The above functions can be realized in the form of software functional modules and stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention essentially or a part that contributes to the prior art or a part of the technical solution can be expressed in the form of a software product. The computer software product is stored in a storage medium and includes multiple commands to cause a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention.
[0086] The above-described preferred embodiments of the present invention have been enlightened, and those skilled in the art can make various changes and modifications based on the above description without departing from the technical spirit of the present invention. The technical scope of the present invention is not limited to the content of the specification, but should be determined based on the claims.
Claims
1. A method for automatically reading and writing an automobile calibration signal, comprising: creating mapping system variables corresponding to each calibration signal within the calibration module based on a calibration database that stores calibration signal data defining whether each calibration signal is an observable quantity, which is a quantity based on measurements related to the vehicle, a calibration variable, which is a parameter for setting the operating state of the vehicle, or a writable observable quantity, which is a writable quantity among the quantities based on measurements related to the vehicle; assigning initial values to the mapping system variables; (a) when the calibration signal is a signal representing a calibration variable, a calibration module connected to an automobile ECU associates an assignment function, which is a function for writing a write-wait target value of the calibration variable to a mapping system variable, with one asynchronous function; the calibration module calls an asynchronous function, inputs the write wait target value of the calibration variable to the asynchronous function, and the asynchronous function outputs a write command and a read command for the mapping system variable to the calibration module in this order in an asynchronous manner, and then immediately returns to complete the call of the asynchronous function; and / or (b) when the calibration signal is a signal representing a writable observable, a calibration module connected to the automobile ECU associates an assignment function, which is a function for writing a target value of the writable observable to be written into a mapping system variable, with one asynchronous function; The method for automatically reading and writing a vehicle calibration signal further comprises the steps of: a calibration module calling an asynchronous function; inputting a write wait target value of a writable observable into the asynchronous function; and asynchronously outputting a write command and a read command for the mapping system variable to the calibration module in this order, and then immediately returning to complete the call of the asynchronous function.
2. 2. The method for automatically reading and writing automobile calibration signals as claimed in claim 1, wherein after the calibration module successfully executes the write command and the read command simultaneously, the last stored value of the mapping system variable is refreshed with the target value to be written.
3. 2. The method for automatically reading and writing automotive calibration signals according to claim 1, wherein when the calibration module is not activated and the calibration signal is invalid, the calibration module reports an error when an invalid calibration signal is attempted to be written to the corresponding mapping system variable.
4. 2. The method for automatically reading and writing calibration signals for automobiles according to claim 1, wherein the mapping system variables are involved in formula construction to construct an observable signal formula or a test result formula.
5. 1. A method for vehicle calibration, comprising: the bus adapter reading a calibration signal from the vehicle ECU; A vehicle calibration method comprising the steps of: a computer device communicatively connecting to a bus adapter and executing the method for automatically reading and writing vehicle calibration signals according to any one of claims 1 to 4; and transmitting a written value generated after executing the method for automatically reading and writing vehicle calibration signals to the vehicle ECU via the bus adapter.
6. A computer-readable storage medium having stored thereon computer-readable instructions that, when executed by at least one processor, cause the method for automatically reading and writing an automotive calibration signal according to any one of claims 1 to 4 to be performed.
7. An electronic device, a processor, a computer-readable storage medium, a communication bus, and a communication interface; the processor, the computer-readable storage medium, and the communication interface communicate with each other via the communication bus; The computer-readable storage medium is configured to store a program for executing the method for automatically reading and writing a vehicle calibration signal described in any one of claims 1 to 4, and the processor is configured to execute the program for the method for automatically reading and writing a vehicle calibration signal.
8. A development and debugging system for a vehicle, comprising: a computer device and a bus adapter; the computer device includes a processor, a computer-readable storage medium, a communication bus, and a communication interface; The computer-readable storage medium is configured to store a program for executing the method for automatically reading and writing a vehicle calibration signal according to any one of claims 1 to 4, and the processor is configured to execute the program for the method for automatically reading and writing a vehicle calibration signal; the processor and the computer-readable storage medium realize communication with a bus adapter via the communication interface and the communication bus; The bus adapter is configured to read a calibration signal from an automobile ECU, and is further configured to transmit a write value generated after a processor executes the method for automatically reading and writing the automobile calibration signal to the automobile ECU.
9. the bus adapter is a CAN bus adapter, a CAN FD bus adapter, a FastLIN bus adapter, a LIN bus adapter, an Ethernet bus adapter, or a FlexRay bus adapter; Communicating with the automobile ECU via XCP or CCP protocol to output the write value; 9. The vehicle development and debugging system according to claim 8, wherein the vehicle ECU includes an electric power steering system, an anti-lock braking system, an electronic stability control system, an automobile engine management system, and a battery management system.
10. 1. A computer program product comprising a computer-readable storage medium having computer-readable program code stored thereon, The program code includes commands that are used to cause at least one processor or at least one computer device to perform the method for automatically reading and writing automotive calibration signals according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method of detecting in-vehicle object to be identified
JP2012096668A
JPP7296025B