Automatic reading and writing method of vehicular calibration signal and vehicle calibration system
Patent Information
- Application Number
- JP2024197587
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-16
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2043-11-30
Smart Images

Figure 2025022916000001_ABST
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 calibrating signals in an automobile, 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, e.g., a graphic window; Observe the change of the signal from the monitor window.
[0003] The method of writing a calibration signal includes: Open the calibration database. Select 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. Check 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 includes 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 a 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 the measurement related to the vehicle, and assigning an initial value to the mapping system variable; (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 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, the calibration module connected to the automobile ECU further includes a step of associating an assignment function, which is a function for writing a target value of the writable observable to a mapping system variable, with an asynchronous function, the calibration module calling the asynchronous function, inputting the target value of the writable observable to be written 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 further 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, the 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 realizing communication between each other via the communication bus, the computer-readable storage medium being configured to store a program for executing the method for automatically reading and writing an automobile calibration signal, and the processor executing the program for the method for automatically reading and writing an automobile 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 includes 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, the processor is configured to execute the program of the method for automatically reading and writing a vehicle calibration signal, the processor and the computer readable storage medium realize communication with the 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 the processor executes the method for automatically reading and writing a vehicle calibration signal to the automobile ECU.
[0008] In a fifth aspect, the present invention further provides a computer readable storage medium having stored thereon computer readable instructions which, 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 comprising a computer readable storage medium having computer readable program code stored thereon, the computer readable program code comprising 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. It should therefore be understood that the above features are merely examples and should not be construed as in any way narrowing 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, preferred embodiments of the present invention will be described in detail below 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 briefly describes 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 creative efforts. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a flow chart of a method for automatically reading and writing an automobile calibration signal according to some embodiments. [Diagram 2]FIG. 2 is a flow chart of a method for automatically reading and writing an automobile calibration signal according to some embodiments. [Diagram 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. [Diagram 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 PREFERRED EMBODIMENTS
[0015] In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention are described clearly and completely 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 labor, belong to the scope of protection of the present invention.
[0016] In the process of calibrating automobile signals, the reading and writing control of the calibration signal needs to use API functions or a specific monitor program, such as drawing the signal monitor curve through the graphic window and modifying the signal value through the text window. Therefore, the calibration signal cannot be used as a variable, which leads to the following problem: if a user wants to draw the curve of the values of multiple calibration signals after mathematical operations or incorporate the value of a custom variable into the operation to modify the target calibration signal, there is no feasible method.
[0017] Accordingly, at least one embodiment provides a method for automatically reading and writing vehicle calibration signals, the method including the steps of: creating a corresponding mapping system variable for each calibration signal in the calibration module; providing an initial value for the last stored value mapping system variable; for the 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 reading the mapping system variable, reading the last stored value of the mapping system variable.
[0018] The automatic reading and writing method for automobile calibration signals in some embodiments can map any calibration signal to a mapping system variable inside the calibration module, thereby realizing the reading and writing of the calibration signal using the mapping system variable, thereby solving the interoperability problem of the calibration signal.
[0019] Various non-limiting embodiments of illustrative aspects of the present disclosure are described in detail below with reference to 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 steps.
[0021] In some embodiments, there are two naming conventions for automatically created mapping system variables, and the software system provides an option for the user 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 initial values 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 an automobile calibration signal 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 relate variables, the mapping system can relate variables. 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. In addition, for example, in a graphics program, reading and writing to a mapping system variable can be converted to 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) The mapping system variables can be incorporated into the 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, can be written as c=a+b, i.e., the observable signal c can be observed through the graphic window. Furthermore, a new variable can be constructed, i.e., constructing a test result formula, for example, the total test result y=x1&x2&x3, where x1, x2 and x3 are three test criteria, and only when all three criteria are successful, the total test result is successful. The traditional calibration signal control method cannot meet this need.
[0026] A method for reading a calibration signal defined as an observable will be described in detail below with reference to 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, whose name is “KL30”. A user creates a graphics program to judge the power supply voltage signal, and the formula of the execution unit corresponding to the judgment is "KL30>9". Then, the user launches a 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 an initial value to the mapping system variable “KL30”. Then, 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 inside the calibration module and the matching of communication protocols between the upper and lower machines. It is necessary to write the values that need to be rewritten into the specific calibration variable list provided by the calibration module, and the rewriting efficiency is extremely low.
[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 the calibration variable or the calibration signal of the 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 being a function for writing a write pending target value to a mapping system variable. When a calibration variable is written, the asynchronous function outputs write and read commands to the calibration module and then immediately returns, completing the invocation of the asynchronous function.
[0030] A method for writing calibration signals defined as calibration variables will be described in detail below with reference to an example. 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 equation in the execution unit that corresponds to the write operation is "EV_Current=2.1". Then, the user launches the test. The calibration module first connects to the ECU and associates the assignment function of the mapping system variable “EV_Current” with an asynchronous function “set_sys_var_async”. The function of the asynchronous function is to call the API function of the calibration module to perform the 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. In the asynchronous function, the following requests are sent to the calibration module in an asynchronous manner in order: (1) A request to write the calibration signal "EV_Current" and request that the portable parameter is a write value of 2.1. (2) A request to read the calibration signal “EV_Current.” After the execution unit initiates a 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_Current” in sequence in the background and reads the calibration signal “EV_Current.”
[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 pending target value to the mapping system variable. Once the writable observable has been written, the asynchronous function outputs write and read commands to the calibration module and then immediately returns, completing the invocation of the asynchronous function.
[0033] A method for writing a calibration signal defined as a writable observable will be described in detail below with reference to 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 equation corresponding to this operation is "EV_MAX_Current=1.0". Then the user 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 solenoid valve EV detected by the ECU during testing is 3.0 amps, the value of 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”, whose function is to call the API function of the calibration module to perform the 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 "EV_MAX_Current=1.0" is executed, the calibration module calls the asynchronous function "set_sys_var_async" and inputs the target value of 1.0 as a parameter. In the asynchronous function, the following requests are sent to the calibration module in an asynchronous manner in order: (1) A request to write the calibration signal "EV_MAX_Current", where the portable parameter is a write value of 1.0. (2) A request to read the calibration signal “EV_MAX_Current.” After the execution unit initiates a 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 EV valve maximum 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 sampling current value of the solenoid valve EV calculated by sampling inside the ECU. For example, if the initial value of "EV_MAX_Current" is 1.0 and the current sampling current remains at 0.5 amperes, the value of "EV_MAX_Current" remains at 1.0, and when the current sampling current becomes larger than 1.0 amperes, for example, when the acquired current current value becomes 1.2, the value of "EV_MAX_Current" immediately becomes 1.2. In this case, even if the current current drops to 0.2 amperes, "EV_MAX_Current", which represents the maximum value of the historical sampling current, is maintained at 1.2 and does not follow the drop. Therefore, this calibration signal becomes a bidirectional read / write signal, and the ECU can increase it based on the actual current value obtained by sampling, and the user can also reset this calibration signal to a relatively low value on the usage side. The advantage of this is that the user can read the maximum value of this calibration signal at different times, and since there is no reset measure after this calibration signal starts and rises to 3.0, subsequent observations of this calibration signal will not encounter the problem of entering the dead zone and 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 by the ECU when it 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 need to be modified.
[0040] In some embodiments, a 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 the observation and that may be intervened in the observed value. For example, a signal such as the maximum current of a solenoid valve continuously increases to a maximum value as the observation proceeds. For example, if one wishes to observe the maximum value within two hours from the current time, one must reset the observation 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 further attempts to write 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 the 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 equation in the execution unit that corresponds to the write operation is "EV_Current=2.1". Then the user launches a 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 proofreading 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 proofreading module's message.
[0044] As shown in Figure 2, some embodiments further 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 assigned to the mapping system variables. In S103', for the calibration signal defined as the calibration variable, an allocation function is associated with an asynchronous function. The allocation function is a function for writing a write pending 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 returns immediately to complete the invocation of the asynchronous function. And / or For a calibration signal defined as a writable observable, an allocation function is associated with an asynchronous function, where the allocation function is a function for writing a target value to be written into a mapping system variable, and 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 invocation 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 steps. Specifically, for the method of reading and writing the calibration signal defined as the calibration variable, reference may be made to the specific description of the method of reading and writing the calibration signal defined as the calibration variable described above, and the description will be omitted here. Specifically, regarding the method of reading and writing the calibration signal defined as a writable observable, reference may be made to the specific explanation of the method of reading and writing the calibration signal defined as the writable observable above, and the explanation will be omitted here.
[0046] Some embodiments further provide an automobile calibration method, including reading a calibration signal from an ECU, performing the method for automatically reading and writing the automobile calibration signal, and sending a write value generated after performing the method for automatically reading and writing the automobile calibration signal to the ECU, specifically including reading the calibration signal from the ECU through a bus adapter, communicatively connecting with the bus adapter through a computer device and performing the method for automatically reading and writing the automobile calibration signal, and sending a write value generated after performing the method for automatically reading and writing the automobile calibration signal to the ECU through the bus adapter. The method for automatically reading and writing the automobile calibration signal can be specifically realized by referring to the specific explanation of the method for reading and writing the two types of calibration signals mentioned above, and the explanation will be omitted here.
[0047] As shown in Figure 3, some embodiments further provide a vehicle calibration system, which includes a computer device, the computer device being configured to include: One is a mapping system variable creation module, which 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, which stores calibration signal data and defines the 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 from the mapping system variables.
[0048] As shown in Figure 4, some embodiments further provide a vehicle calibration system, the system including a computer device, the computer device being configured to include: One is a mapping system variable creation module, which creates corresponding mapping system variables for each calibration signal. The other is an assignment module, which assigns initial values to the mapping system variables. Still 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 invocation 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 invocation 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 computing device and performed by a processor module.
[0050] As a matter of explanation, the type of calibration signal is determined by the ECU. Inside the ECU, there are calibration signals of observables for observation, calibration signals of standard quantities that can be written, and calibration signals of writable observables. These calibration signals are automatically generated in a database file called A2L before the ECU program is written, and the software system can know what type of calibration signal is in the ECU by loading this A2L database file.
[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 the mapping system variable is read, the last stored value of the mapping system variable is read.
[0052] Specifically, for the method of reading the calibration signal defined as an observable, reference can be made to the specific explanation of the method of reading the calibration signal defined as an observable described above, and the explanation 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, the allocation function being 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 invocation of the asynchronous function.
[0054] Specifically, for the method of reading and writing the calibration signal defined as the calibration variable, reference may be made to the specific description of the method of reading and writing the calibration signal defined as the calibration variable described 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, where the allocation function is a function for writing a target value to be written to a mapping system variable. Once a writable observable is written, the asynchronous function outputs a write command and a read command to the execution module, and then returns immediately, completing the invocation of the asynchronous function.
[0056] Specifically, regarding the method of reading and writing the calibration signal defined as a writable observable, reference may be made to the specific explanation of the method of reading and writing the calibration signal defined as the writable observable above, and the explanation 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, where 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 automobile calibration signal, and the processor is configured to execute the program for the method for automatically reading and writing the automobile calibration signal.
[0059] In other embodiments, computer equipment, such as industrial computers, may also be considered as a type of electronic equipment. The configuration shown in FIG. 5 is not intended to be limiting of the electronic device, which may include fewer or more components than shown, some components may be combined, or different arrangements of components 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, USB port, TYPE port, etc. A wired or wireless network interface may also be included, which may optionally include wired and / or wireless interfaces 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] The readable storage medium or computer-readable storage medium includes at least one type of memory. The memory includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, it may be an internal storage unit of the computer device, such as a hard disk of the computer device. In other embodiments, the memory may be an external storage device of the computer device, such as a plug-in hard disk mounted on the computer device, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash Card, etc. Furthermore, the memory may include both an internal storage unit of the computer device and an external storage device. The memory is used to store various data such as application software and computer program codes 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 for executing program code stored in memory or processing data, e.g., executing a computer program.
[0063] In some embodiments, the communication bus may be an I / O 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 an input unit such as a display, a keyboard, and the like, and optionally, the user interface may also include a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-type liquid crystal display, an OLED (Organic Light-Emitting Diode) toucher, and the like. In this case, the display is also called a display screen or a display unit, for displaying information processed in the computer device and for displaying 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 an automobile calibration signal shown in Fig. 1, for example steps S101 to S104 shown in Fig. 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, a calibration module reads the calibration signal value in real time and stores it as a corresponding mapping system variable. When the mapping system variable is read, the last stored value of the mapping system variable is read.
[0067] Optionally, as a possible embodiment, the processor can be further used to 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 being a function for writing a write pending 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, as a possible embodiment, the processor can be further used to implement the following steps: For a calibration signal defined as a writable observable, an allocation function is associated with one asynchronous function, which is a function for writing the target value to be written 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 returns immediately, completing the invocation of the asynchronous function.
[0069] Optionally, as a possible embodiment, the processor can be further used to implement the following steps: After the calibration module successfully executes the write command and the read command simultaneously, it refreshes the last stored values of the above mapping system variables with the write pending target values.
[0070] Optionally, as a possible embodiment, the processor can be further used to implement the following steps: If the calibration module is not activated and a calibration signal is invalid, the calibration module will report an error if 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 of the method for automatically reading and writing an automobile calibration signal, and when the program is executed by a processor, the specific steps of the method for automatically reading and writing an automobile calibration signal can be realized. However, the specific description of the method for automatically reading and writing an automobile calibration signal is referred to, and the description is omitted 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 performing the method for automatically reading and writing the vehicle calibration signal, and the processor is configured to execute the program of 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 a calibration signal from an ECU, and is further configured to send a write value generated after the processor performs 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 corresponding mapping system variables for each calibration signal in a calibration module; assigning initial values to the mapping system variables; for calibration signals defined as observables, the calibration module reads the calibration signal values in real time and stores them as corresponding mapping system variables; and when reading the mapping system variables, reading the last stored values of the mapping system variables.
[0074] In some embodiments, the method for automatically reading and writing the vehicle calibration signal 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 the calibration signal defined as the calibration variable; the assignment function is 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 to complete the invocation of the asynchronous function; and / or associating an assignment function with an asynchronous function for the calibration signal defined as a writable observable; the assignment function is 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 outputs a write command and a read command to the calibration module, and then immediately returns to complete the invocation of the asynchronous function.
[0075] In some embodiments, the computing device corresponds to the electronic device described above, and the description is omitted here.
[0076] In some embodiments, for a calibration signal defined as a calibration variable, an allocation function is associated with an asynchronous function, where the allocation function is a function for writing a write pending 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 returns immediately, completing the invocation 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, where the allocation function is a function for writing a target value to be written to the 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 returns immediately, completing the invocation 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 one-to-multiple or multiple-to-multiple, and some embodiments do not limit the specific implementation of the bus adapter. In some embodiments, the write value is sent by communicating with the ECU through the XCP or CCP protocol.
[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 the automobile calibration signal is the same as the two methods for automatically reading and writing the automobile calibration signal mentioned above and either 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 instructions 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 embodiments described above to be performed.
[0083] In the above-mentioned embodiment, it is to be understood that the disclosed apparatus and method may be realized in other manners. The above-described apparatus embodiment is merely illustrative, and for example, the flowcharts and block diagrams in the drawings show possible architectures, functions and operations of the apparatus, method and computer program products according to the embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code. The module, the program segment, or the part of code includes executable commands for implementing one or more predetermined logical functions. It is to be noted that in some alternative implementations, the functions depicted in the blocks may occur in a different order than that depicted in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and may sometimes be executed in a reverse order depending on the functions involved. It is also to be noted that each block of the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart may be implemented in a dedicated hardware-based system that executes a predetermined function or operation, or may be implemented in a combination of dedicated hardware and computer commands.
[0084] In addition, 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 together 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 the part that contributes to the prior art or the 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 a plurality of commands to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method according to each embodiment of the present invention.
[0086] The above-mentioned 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 contents 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: A step of 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-waiting 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 outputs the write command and the read command for the mapping system variable to the calibration module in this order in an asynchronous manner through the asynchronous function, and then returns immediately 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 an automobile calibration signal further includes 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 outputting a write command and a read command for a mapping system variable to the calibration module in this order in an asynchronous manner by the asynchronous function, and then immediately returning to complete the call of the asynchronous function.
2. The method for automatically reading and writing an automobile calibration signal as claimed in claim 1, characterized in that 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 waiting-to-write target value.
3. 2. The method for automatically reading and writing an automobile calibration signal as claimed in 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 a corresponding mapping system variable.
4. The method for automatically reading and writing calibration signals for automobiles as claimed in claim 1, wherein the mapping system variables are involved in formula construction, and construct an observation 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: a computer device communicatively connected to a bus adapter and executing the method for automatically reading and writing a vehicle calibration signal according to any one of claims 1 to 4; and a step of transmitting a write value generated after executing the method for automatically reading and writing a vehicle calibration signal to an vehicle ECU via the bus adapter.
6. A computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by at least one processor, causes 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 an automobile calibration signal described in any one of claims 1 to 4, and the processor is configured to execute the program of the method for automatically reading and writing an automobile calibration signal.
8. A development and debugging system for a vehicle, comprising: a computer device and a bus adapter; The computing 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 an automobile 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 an automobile 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 automatic reading and writing method of the automobile calibration signal to the automobile ECU.
9. the bus adapter is a CAN bus adapter, a CAN FD bus adapter, a Fast LIN bus adapter, a LIN bus adapter, an Ethernet bus adapter, or a FlexRay bus adapter; Communicate 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. A computer program product comprising a computer readable storage medium having computer readable program code stored thereon, A computer program product, characterized in that the program code includes commands that are used to cause at least one processor or at least one computing 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
Sensor device and variable damping force suspension system
JP7296025B1