Vehicle calibration system and vehicular development and debugging system
A vehicle calibration system includes a computer device. The computer device includes: a mapping system variable creating module, configured to create corresponding mapping system variables respectively for calibration signals; an assigning module, configured to assign an initial value to the mapping system variables; a calibration database, configured to store calibration signal data and define the calibration signals as an observation variable or a calibration variable or a writable observation variable; and an execution module, configured to write the corresponding calibration signal and/or read the mapping system variable.
1 . A vehicular development and debugging system, comprising: a computer device and a bus adapter, wherein
the computer device comprises a processor, a readable storage medium, a communication bus, and a communication interface; wherein
the readable storage medium is configured to store programs of performing an automatic reading and writing method of a calibration signal, and the processor is configured to execute the programs of performing the automatic reading and writing method of the calibration signal;
the processor, the readable storage medium, and the communication interface communicate with the bus adapter via the communication bus;
the bus adapter is configured to read the calibration signal from an electronic control unit (ECU), and further to distribute to the ECU a write value generated after the processor performs the automatic reading and writing method of the calibration signal; and
the automatic reading and writing method of the calibration signal comprises:
creating corresponding mapping system variables respectively for calibration signals in a calibration module;
assigning an initial value to the mapping system variables;
for the calibration signal defined as an observation variable, reading, by the calibration module, a value of the calibration signal in real time, and storing the value into a corresponding mapping system variable; and
when reading the mapping system variable, reading a last-stored value of the mapping system variable, wherein the processor is further configured to automatically associate an assignment function of a mapping system variable to an asynchronous function, such that writing to the mapping system variable triggers the asynchronous function to perform a write and read operation for the corresponding calibration signal with the ECU.
2 . The vehicular development and debugging system of claim 1 , wherein
for a calibration signal defined as a calibration variable, an assignment function is associated to an asynchronous function, wherein the assignment function is a mapping system variable write function of a to-be-written target value; and
when the calibration variable is written, the asynchronous function distributes a write command and a read command to the calibration module, and then returns immediately, wherein a call of the asynchronous function is completed.
3 . The vehicular development and debugging system of claim 1 , wherein
for a calibration signal defined as a writable observation variable, an assignment function is associated to an asynchronous function, wherein the assignment function is a mapping system variable write function of a to-be-written target value; and
when the writable observation variable is written, the asynchronous function distributes a write command and a read command to the calibration module, and then returns immediately, wherein a call of the asynchronous function is completed.
4 . The vehicular development and debugging system of claim 1 , wherein
the bus adapter is a Controller Area Network (CAN) bus adapter, or a Controller Area Network Flexible Data Rate (CANFD) bus adapter, or a FastLIN bus adapter or a Local Interconnect Network (LIN) bus adapter or an Ethernet bus adapter or a FlexRay bus adapter; and
the write value is distributed by communicating with the ECU based on Unified Diagnostic Services (UDS), Universal Calibration Protocol (XCP) or CAN Calibration Protocol (CCP).
5 . The vehicular development and debugging system of claim 1 , wherein
the ECU comprises an electronic power steering system, an anti-locking brake system, an electronic stability control system, a vehicle engine management system, and a battery management system.
6 . A vehicular development and debugging system, comprising: a computer device and a bus adapter, wherein
the computer device comprises a processor, a readable storage medium, a communication bus, and a communication interface; wherein
the readable storage medium is configured to store programs of performing an automatic reading and writing method of a calibration signal, and the processor is configured to execute the programs of performing the automatic reading and writing method of the calibration signal;
the processor, the readable storage medium, and the communication interface communicate with the bus adapter via the communication bus;
the bus adapter is configured to read the calibration signal from an ECU, and further to distribute to the ECU a write value generated after the processor performs the automatic reading and writing method of the calibration signal; and
the automatic reading and writing method of the calibration signal comprises:
creating corresponding mapping system variables respectively for calibration signals in a calibration module;
assigning an initial value to the mapping system variables;
for a calibration signal defined as a calibration variable, associating an assignment function to an asynchronous function, wherein the assignment function is a mapping system variable write function of a to-be-written target value; when the calibration variable is written, distributing, by the asynchronous function, a write command and a read command to the calibration module, and then returning immediately, wherein a call of the asynchronous function is completed; and/or
for a calibration signal defined as a writable observation variable, associating the assignment function to the asynchronous function, wherein the assignment function is the mapping system variable write function of the to-be-written target value; when the writable observation variable is written, distributing, by the asynchronous function, the write command and the read command to the calibration module, and then returning immediately, wherein the call of the asynchronous function is completed, wherein the processor is further configured to automatically associate an assignment function of a mapping system variable to an asynchronous function, such that writing to the mapping system variable triggers the asynchronous function to perform a write and read operation for the corresponding calibration signal with the ECU.
7 . The vehicular development and debugging system of claim 6 , wherein
for the calibration signal defined as the calibration variable, the assignment function is associated to the asynchronous function, wherein the assignment function is the mapping system variable write function of the to-be-written target value; and
when the calibration variable is written, the asynchronous function distributes the write command and the read command to the calibration module, and then returns immediately, wherein the call of the asynchronous function is completed.
8 . The vehicular development and debugging system of claim 6 , wherein
for the calibration signal defined as the writable observation variable, the assignment function is associated to the asynchronous function, wherein the assignment function is the mapping system variable write function of the to-be-written target value; and
when the writable observation variable is written, the asynchronous function distributes the write command and the read command to the calibration module, and then returns immediately, wherein the call of the asynchronous function is completed.
9 . The vehicular development and debugging system of claim 6 , wherein
the bus adapter is a CAN bus adapter, or a CANFD bus adapter, or a FastLIN bus adapter or a LIN bus adapter or an Ethernet bus adapter or a FlexRay bus adapter; and
the write value is distributed by communicating with the ECU based on XCP or CCP.
10 . The vehicular development and debugging system of claim 6 , wherein
the ECU comprises an electronic power steering system, an anti-locking brake system, an electronic stability control system, a vehicle engine management system, and a battery management system.