Automobile calibration method and device, vehicle-mounted gateway, vehicle-mounted communication box and storage medium

By implementing the XCP protocol stack and MQTT protocol transmission configuration information in automobiles, automated measurement and calibration of automobile ECUs are realized, solving the problem of low calibration flexibility in the prior art, and improving calibration flexibility and efficiency.

CN119676299AActive Publication Date: 2025-03-21CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD

Patent Information

Application Number
CN202411423935.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-03-21
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

The existing automotive calibration methods are less flexible and require one-to-one measurement and calibration by external calibration tools, which limits the flexibility and efficiency of the calibration process.

Method used

By implementing the XCP protocol stack in the on-board gateway and on-board communication box, the configuration information is transmitted using the MQTT protocol, automatic measurement and calibration of the automotive ECU is realized, and the dependence on external tools is reduced.

Benefits of technology

It improves the flexibility and efficiency of automobile calibration, and enables accurate measurement and calibration of automobile parts without the need for external calibration tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676299A_ABST
    Figure CN119676299A_ABST
Patent Text Reader

Abstract

The invention relates to an automobile calibration method and device, a vehicle-mounted gateway, a vehicle-mounted communication box and a computer readable storage medium. The method comprises the following steps: acquiring configuration information of an XCP (Extensible Configuration Protocol) under the condition that a vehicle-mounted gateway is powered on and started; the configuration information is sent to the vehicle-mounted communication box by the TSP platform through an MQTT protocol, is converted into an Ethernet communication format by the vehicle-mounted communication box and is sent to the vehicle-mounted gateway; starting an XCP protocol stack according to the configuration information, acquiring a CAN message from the first target ECU based on the configuration information under the condition that the configuration information represents that an automobile test function is started, and analyzing the CAN message through a protocol contained in the XCP protocol stack to obtain measurement data of the first target ECU; under the condition that the configuration information represents that the automobile calibration function is started, a second target ECU is obtained from the first target ECU based on the configuration information and the measurement data of the first target ECU, and calibration processing is conducted on the second target ECU. By adopting the method, the flexibility of automobile calibration can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automobile calibration, and in particular to an automobile calibration method, device, vehicle-mounted gateway, vehicle-mounted communication box, computer-readable storage medium, and computer program product. Background Art

[0002] With the development of automobile intelligence, the number of automobile electronic control units (ECUs) has gradually increased. In order to ensure the performance status of various components of the vehicle, a technology for measuring and calibrating vehicle ECUs has emerged. Automobile measurement and calibration refers to the process of accurately measuring and adjusting various measurement parameters of the vehicle to ensure the performance design requirements of the vehicle.

[0003] At present, the measurement and calibration of automobiles can be achieved through the XCP protocol technology, which can measure and calibrate the vehicle ECU through wired or wireless methods. The wired method is that the calibration engineer connects the calibration tool through a computer wire to conduct one-to-one car calibration. The wireless method is that the calibration box is connected to the ECU through CAN or Ethernet to measure and calibrate the ECU, and the real-time data needs to be transmitted to the remote end through wireless transmission for real-time analysis by the calibration engineer.

[0004] However, the above-mentioned automobile calibration method usually requires the use of external calibration tools to measure and calibrate automobile parts, and each tool has a one-to-one relationship with the vehicle, so the current automobile calibration method has low flexibility. Summary of the invention

[0005] Based on this, it is necessary to provide a vehicle calibration method, device, vehicle gateway, vehicle communication box, computer-readable storage medium and computer program product that can improve the flexibility of the vehicle calibration method in response to the above technical problems.

[0006] In a first aspect, the present application provides a vehicle calibration method, which is applied to a vehicle gateway, comprising:

[0007] When the vehicle-mounted gateway is powered on, the configuration information of the XCP protocol is obtained; the configuration information is sent to the vehicle-mounted communication box by the TSP platform through the MQTT protocol, and is converted into an Ethernet communication format by the vehicle-mounted communication box and sent to the vehicle-mounted gateway;

[0008] Starting the XCP protocol stack according to the configuration information, and when the configuration information indicates starting a vehicle test function, acquiring a CAN message from a first target ECU based on the configuration information, and parsing the CAN message through a protocol included in the XCP protocol stack to obtain measurement data of the first target ECU;

[0009] In the case where the configuration information indicates that a vehicle calibration function is started, based on the configuration information and the measurement data of the first target ECU, a second target ECU is acquired from the first target ECU, and a calibration process is performed on the second target ECU.

[0010] In one of the embodiments, the configuration information carries XCP startup mode information; starting the XCP protocol stack according to the configuration information includes: when the XCP startup mode information represents an online startup mode, directly starting the XCP protocol stack according to the configuration information; when the XCP startup mode information represents an offline startup mode, storing the configuration information in a Flash memory carried by the vehicle gateway; the Flash memory is used to obtain the configuration information stored in the Flash memory from the Flash memory and start the XCP protocol stack according to the stored configuration information when the vehicle gateway is powered on again.

[0011] In one of the embodiments, when the vehicle gateway is powered on, obtaining the configuration information of the XCP protocol includes: when the vehicle gateway is powered on, detecting whether the configuration information is stored in the Flash memory; when the configuration information is not stored in the Flash memory, receiving the configuration information sent by the vehicle communication box.

[0012] In one of the embodiments, before starting the XCP protocol stack according to the configuration information, it also includes: sending the XCP startup mode information to the vehicle-mounted communication box; sending the XCP startup mode information to the vehicle-mounted communication box; after parsing the CAN message through the protocol included in the XCP protocol stack to obtain the measurement data of the first target ECU, it also includes: sending the measurement data of the first target ECU to the vehicle-mounted communication box; the vehicle-mounted communication box is used to upload the measurement data of the first target ECU to the TSP platform in accordance with the measurement data upload method matching the XCP startup mode information when receiving the measurement data of the first target ECU.

[0013] In one of the embodiments, after the calibration processing of the second target ECU, it also includes: sending the calibration processing result of the second target ECU to the vehicle-mounted communication box; the vehicle-mounted communication box is used to upload the calibration processing result of the second target ECU to the TSP platform in accordance with the calibration processing result uploading method that matches the XCP startup mode information when receiving the calibration processing result of the second target ECU.

[0014] In one of the embodiments, the configuration information carries calibration mode information; based on the configuration information and the measurement data of the first target ECU, the second target ECU is obtained from the first target ECU, and the second target ECU is calibrated, including: when the calibration mode information represents a dynamic calibration mode, a trigger calibration variable list is obtained from the configuration information; when the measurement data of the first target ECU matches the calibration variable list information contained in the trigger calibration variable list, the first target ECU is used as the second target ECU, and the second target ECU is calibrated.

[0015] In one of the embodiments, based on the configuration information and the measurement data of the first target ECU, the second target ECU is obtained from the first target ECU, and the second target ECU is calibrated, and further includes: when the calibration mode information represents a static calibration mode, the measurement data of the first target ECU is returned to the TSP platform through the vehicle-mounted communication box; the TSP platform is used to generate a calibration variable list according to the measurement data of the first target ECU, and send the calibration variable list to the vehicle-mounted gateway through the vehicle-mounted communication box; the second target ECU is determined according to the calibration variable list information contained in the received calibration variable list, and the second target ECU is calibrated.

[0016] In one of the embodiments, the configuration information carries the receiving CANID information and the sending CANID information of each of the first target ECUs; the obtaining of the CAN message from the first target ECU based on the configuration information includes: generating a test message for each of the first target ECUs based on the receiving CANID information of each of the first target ECUs, and sending each of the test messages to each of the first target ECUs; each of the test messages is used to instruct each of the first target ECUs to return a CAN message corresponding to the test message; receiving the returned CAN message, and obtaining the CAN message from each of the first target ECUs from the received CAN message according to the sending CANID information of each of the first target ECUs.

[0017] In a second aspect, the present application also provides a vehicle calibration method, which is applied to a vehicle-mounted communication box, comprising:

[0018] When receiving the configuration information of the XCP protocol sent by the TSP platform through the MQTT protocol, converting the configuration information into an Ethernet communication format;

[0019] When the vehicle gateway is powered on and started, the vehicle gateway is connected, and the configuration information converted into the Ethernet communication format is sent to the vehicle gateway; the configuration information is used to instruct the vehicle gateway to start the XCP protocol stack, and when the configuration information represents the start of the vehicle test function, a CAN message from the first target ECU is obtained based on the configuration information, and the CAN message is parsed through the protocol included in the XCP protocol stack to obtain the measurement data of the first target ECU, and when the configuration information represents the start of the vehicle calibration function, a second target ECU is obtained from the first target ECU based on the configuration information and the measurement data of the first target ECU, and the second target ECU is calibrated.

[0020] In one of the embodiments, after sending the configuration information converted into the Ethernet communication format to the vehicle gateway, it also includes: upon receiving the XCP startup mode information returned by the vehicle gateway, obtaining a measurement data upload method and a calibration processing result upload method that match the XCP startup mode information; the XCP startup mode information is obtained by the vehicle gateway from the configuration information; upon receiving the measurement data of the first target ECU returned by the vehicle gateway, uploading the measurement data of the first target ECU to the TSP platform according to the measurement data upload method; upon receiving the calibration processing result of the second target ECU returned by the vehicle gateway, uploading the calibration processing result of the second target ECU to the TSP platform according to the calibration processing result upload method.

[0021] In one of the embodiments, uploading the measurement data of the first target ECU to the TSP platform according to the measurement data uploading method includes: when the XCP startup mode information represents an online startup mode, directly uploading the measurement data of the first target ECU to the TSP platform; when the XCP startup mode information represents an offline startup mode, saving the measurement data of the first target ECU to a file management system carried by the vehicle-mounted communication box, and when a measurement data acquisition request initiated by the TSP platform is detected, uploading the measurement data of the first target ECU stored in the file management system to the TSP platform.

[0022] In one of the embodiments, the calibration processing result of the second target ECU is uploaded to the TSP platform according to the calibration processing result uploading method, including: when the XCP startup mode information represents an online startup mode, directly uploading the calibration processing result of the second target ECU to the TSP platform; when the XCP startup mode information represents an offline startup mode, saving the calibration processing result of the second target ECU to the file management system carried by the vehicle-mounted communication box, and when a calibration result acquisition request initiated by the TSP platform is detected, uploading the calibration processing result of the second target ECU stored in the file management system to the TSP platform.

[0023] In a third aspect, the present application also provides a vehicle calibration device, which is applied to a vehicle gateway, including:

[0024] The protocol configuration acquisition module is used to obtain the configuration information of the XCP protocol when the vehicle-mounted gateway is powered on and started; the configuration information is sent to the vehicle-mounted communication box by the TSP platform through the MQTT protocol, and is converted into an Ethernet communication format by the vehicle-mounted communication box and sent to the vehicle-mounted gateway;

[0025] a measurement data acquisition module, configured to start the XCP protocol stack according to the configuration information, and when the configuration information indicates that the vehicle test function is started, acquire a CAN message from a first target ECU based on the configuration information, and parse the CAN message through a protocol included in the XCP protocol stack to obtain measurement data of the first target ECU;

[0026] The vehicle calibration processing module is used to obtain a second target ECU from the first target ECU based on the configuration information and the measurement data of the first target ECU, and perform calibration processing on the second target ECU when the configuration information indicates that the vehicle calibration function is started.

[0027] In a fourth aspect, the present application also provides a vehicle calibration device, which is applied to a vehicle communication box, comprising:

[0028] A configuration information conversion module, configured to convert the configuration information into an Ethernet communication format when receiving the configuration information of the XCP protocol sent by the TSP platform through the MQTT protocol;

[0029] a configuration information sending module, used to connect to the vehicle gateway when the vehicle gateway is powered on and start, and send the configuration information converted into Ethernet communication format to the vehicle gateway; the configuration information is used to instruct the vehicle gateway to start the XCP protocol stack, and when the configuration information represents the start of the vehicle test function, obtain a CAN message from the first target ECU based on the configuration information, and parse the CAN message through the protocol included in the XCP protocol stack to obtain the measurement data of the first target ECU, and when the configuration information represents the start of the vehicle calibration function, obtain a second target ECU from the first target ECU based on the configuration information and the measurement data of the first target ECU, and perform calibration processing on the second target ECU.

[0030] In a fifth aspect, the present application also provides a vehicle-mounted gateway, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in any one of the embodiments of the first aspect are implemented.

[0031] In a sixth aspect, the present application further provides a vehicle-mounted communication box, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in any one of the embodiments of the second aspect when executing the computer program.

[0032] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in any one of the embodiments of the first aspect or the second aspect are implemented.

[0033] The above-mentioned vehicle calibration method, device, vehicle gateway, vehicle communication box, computer-readable storage medium and computer program product obtain the configuration information of the XCP protocol through the vehicle gateway when the vehicle gateway is powered on; the configuration information is sent to the vehicle communication box by the TSP platform through the MQTT protocol, and is converted into an Ethernet communication format by the vehicle communication box and sent to the vehicle gateway; the XCP protocol stack is started according to the configuration information, and when the configuration information represents the start of the vehicle test function, the CAN message from the first target ECU is obtained based on the configuration information, and the measurement data of the first target ECU is obtained by parsing the CAN message through the protocol included in the XCP protocol stack; when the configuration information represents the start of the vehicle calibration function, the second target ECU is obtained from the first target ECU based on the configuration information and the measurement data of the first target ECU, and the second target ECU is calibrated. In the present application, the TSP platform can send the configuration information of the XCP protocol to the vehicle communication box through the MQTT protocol, which is then converted by the vehicle communication box into the Ethernet communication format and sent to the vehicle gateway when the vehicle gateway is powered on. After that, if the configuration information indicates the start of the vehicle test function, the vehicle gateway can start the XCP protocol stack according to the configuration information, thereby obtaining the CAN message from the first target ECU, and using the protocol analysis contained in the protocol stack to obtain the measurement data of the first target ECU. If the configuration information also indicates the start of the vehicle calibration function, the second target ECU can be determined based on the configuration information and the measurement data to complete the calibration. In this way, only the vehicle gateway and the vehicle communication box contained in the car need to be used to complete the vehicle calibration, without the need to introduce external calibration tools to measure and calibrate the car, thereby improving the flexibility of vehicle calibration. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A diagram showing an application environment of a vehicle calibration method in one embodiment;

[0036] Figure 2 is a schematic flow chart of a vehicle calibration method in one embodiment;

[0037] Figure 3 A schematic diagram of a process of starting an XCP protocol stack according to configuration information in one embodiment;

[0038] Figure 4A schematic diagram of a flow chart of a calibration process for a second target ECU in one embodiment;

[0039] Figure 5 It is a schematic diagram of a flow chart of performing calibration processing on a second target ECU in another embodiment;

[0040] Figure 6 is a schematic flow chart of a vehicle calibration method in another embodiment;

[0041] Figure 7 A schematic diagram of a process of uploading data to a TSP platform in one embodiment;

[0042] Figure 8 A schematic diagram of a link connection mode of a vehicle calibration method in an embodiment;

[0043] Fig. 9 A schematic diagram of a link connection mode of a vehicle calibration method in another embodiment;

[0044] Fig.10 A schematic diagram of configuration parameter settings in an embodiment;

[0045] Fig.11 A schematic diagram of the format of a communication message in one embodiment;

[0046] Fig.12 A schematic diagram of setting a periodic measurement data list in one embodiment;

[0047] Fig.13 A schematic diagram of setting a data list of XCP calibration results in one embodiment;

[0048] Fig.14 A schematic diagram of a process for deploying a vehicle calibration method based on a vehicle gateway in an embodiment;

[0049] Fig.15 is a structural block diagram of a vehicle calibration device in one embodiment;

[0050] Fig.16 is a structural block diagram of a vehicle calibration device in another embodiment;

[0051] Fig.17 This is a diagram of the internal structure of a vehicle gateway in one embodiment;

[0052] Fig.18 The figure is a diagram showing the internal structure of a vehicle-mounted communication box in one embodiment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] The vehicle calibration method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, multiple ECUs, vehicle gateways and vehicle communication boxes are set at the vehicle end of the vehicle, and the TSP platform can be a cloud server platform. Multiple ECUs can communicate with the vehicle gateway through the CAN bus, the vehicle gateway can communicate with the vehicle communication box through the vehicle Ethernet, and the vehicle communication box can communicate with the TSP platform through the Internet. Specifically, the TSP platform can send the configuration information of the XCP protocol to the vehicle communication box through the MQTT protocol, and the vehicle communication box converts the configuration information into the Ethernet communication format and sends it to the vehicle gateway when the vehicle gateway is powered on. After receiving the configuration information, the vehicle gateway can start the XCP protocol stack according to the configuration information, and if the configuration information represents the start of the car test function, the CAN message from the first target ECU can be determined from the CAN messages sent by multiple ECUs according to the configuration information, and then the protocol contained in the XCP protocol stack is used to parse the above CAN message to obtain the measurement data of the first target ECU. If the configuration information also represents the start of the car calibration function, the second target ECU can be obtained from the first target ECU based on the configuration information and the above measurement data, and the second target ECU can be calibrated. Among them, multiple ECUs can correspond to different electronic control units in the car, the on-board gateway can be an MCU-type communication device without a file system, the on-board communication box can be an MPU-type intelligent device with a file system, and the TSP platform can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0055] In one embodiment, Figure 2 As shown, a vehicle calibration method is provided, which is applied to Figure 1 The vehicle gateway in the example is used to illustrate, including the following steps:

[0056] Step S201, when the vehicle gateway is powered on, obtain the configuration information of the XCP protocol; the configuration information is sent to the vehicle communication box by the TSP platform through the MQTT protocol, and is converted by the vehicle communication box into an Ethernet communication format and sent to the vehicle gateway.

[0057] Configuration information refers to configuration information used to configure the XCP protocol, which may include information such as measurement mode, XCP protocol measurement parameters, XCP protocol calibration variable list, trigger calibration variable list, measurement and calibration targets, start measurement / calibration, etc., which can be generated by the TSP platform. The TSP platform can then package the configuration information into MQTT information and send it to the vehicle communication box through the MQTT protocol. After the vehicle communication box obtains the configuration information packaged as MQTT information, it can convert its format into the vehicle Ethernet communication format. Later, when the vehicle gateway is powered on, the vehicle communication box can send the configuration information converted into the Ethernet communication format to the vehicle gateway, so that the vehicle gateway can obtain the above-mentioned XCP protocol configuration information.

[0058] Step S202, starting the XCP protocol stack according to the configuration information, when the configuration information indicates starting the vehicle test function, obtaining a CAN message from the first target ECU based on the configuration information, and parsing the CAN message through the protocol included in the XCP protocol stack to obtain measurement data of the first target ECU.

[0059] The XCP protocol stack refers to a set of protocols composed of the XCP protocol. The first target ECU refers to the ECU that needs to obtain measurement data. The first target ECU can be set in the configuration information, and the measurement data is the measurement data fed back by the first target ECU. The measurement data can be transmitted to the vehicle gateway in the form of CAN messages.

[0060] Specifically, after the vehicle gateway obtains the configuration information, it can start the XCP protocol stack according to the configuration information. For example, the XCP protocol stack can be initialized first, and then the protocol parameters can be configured according to the configuration information to start the XCP protocol stack. If the configuration information represents the start of the vehicle test function, for example, the configuration information carries information for starting the measurement, the vehicle gateway needs to identify the CAN message from the first target ECU according to the configuration information, and parse the CAN message through the protocol contained in the XCP protocol stack to obtain the measurement data of each first target ECU. This process can be that the vehicle gateway strips the data packet header of the CAN message based on the XCP protocol standard specification, and obtains the specific content of each measurement data based on the protocol.

[0061] Step S203: when the configuration information indicates that the vehicle calibration function is started, based on the configuration information and the measurement data of the first target ECU, the second target ECU is obtained from the first target ECU, and the second target ECU is calibrated.

[0062] The second target ECU refers to the ECU that needs to be calibrated. After the vehicle gateway obtains the measurement data of each first target ECU, it can determine whether the vehicle calibration function needs to be started according to the configuration information. For example, if the configuration information carries information to start the calibration, it indicates that the vehicle calibration function needs to be started. At this time, the vehicle gateway can determine the second target ECU that needs to be calibrated from the first target ECU based on the measurement data of the first target ECU and the configuration information of the XCP protocol. For example, the configuration information can carry the calibration conditions. If the measurement data of the first target ECU meets the calibration conditions, the first target ECU is used as the second target ECU, thereby completing the calibration process for the second target ECU.

[0063] In the above-mentioned vehicle calibration method, when the vehicle gateway is powered on, the configuration information of the XCP protocol is obtained through the vehicle gateway; the configuration information is sent to the vehicle communication box by the TSP platform through the MQTT protocol, and is converted into an Ethernet communication format by the vehicle communication box and sent to the vehicle gateway; the XCP protocol stack is started according to the configuration information, and when the configuration information represents the start of the vehicle test function, the CAN message from the first target ECU is obtained based on the configuration information, and the CAN message is parsed through the protocol included in the XCP protocol stack to obtain the measurement data of the first target ECU; when the configuration information represents the start of the vehicle calibration function, the second target ECU is obtained from the first target ECU based on the configuration information and the measurement data of the first target ECU, and the second target ECU is calibrated. In the present application, the TSP platform can send the configuration information of the XCP protocol to the vehicle communication box through the MQTT protocol, which is then converted by the vehicle communication box into the Ethernet communication format and sent to the vehicle gateway when the vehicle gateway is powered on. After that, if the configuration information indicates the start of the vehicle test function, the vehicle gateway can start the XCP protocol stack according to the configuration information, thereby obtaining the CAN message from the first target ECU, and using the protocol analysis contained in the protocol stack to obtain the measurement data of the first target ECU. If the configuration information also indicates the start of the vehicle calibration function, the second target ECU can be determined based on the configuration information and the measurement data to complete the calibration. In this way, only the vehicle gateway and the vehicle communication box contained in the car need to be used to complete the vehicle calibration, without the need to introduce external calibration tools to measure and calibrate the car, thereby improving the flexibility of vehicle calibration.

[0064] In one embodiment, the configuration information carries XCP startup mode information; Figure 3 As shown, step S202 may further include:

[0065] Step S301 : when the XCP startup mode information indicates an online startup mode, directly start the XCP protocol stack according to the configuration information.

[0066] In this embodiment, the TSP platform can also configure the startup mode of the XCP protocol, that is, the measurement mode, so the configuration information can also carry the XCP startup mode information, and the XCP startup mode information can include two types: online startup mode and offline startup mode. In the online startup mode, after receiving the configuration information of the XCP protocol, the vehicle gateway needs to start the XCP protocol stack immediately, so the XCP protocol stack can be started directly according to the configuration information.

[0067] Step S302, when the XCP startup mode information represents an offline startup mode, the configuration information is stored in the Flash memory carried by the vehicle gateway; the Flash memory is used to obtain the configuration information stored in the Flash memory from the Flash memory when the vehicle gateway is powered on again, if the configuration information is stored in the Flash memory, and start the XCP protocol stack according to the stored configuration information.

[0068] If the XCP startup mode information indicates an offline startup mode, after the vehicle gateway obtains the configuration information, it needs to first store the obtained configuration information in the Flash memory carried by the vehicle gateway, and then wait for the vehicle gateway to be powered on again. At this time, since the configuration information is already stored in the Flash memory, the vehicle gateway can directly obtain its pre-stored configuration information from the Flash memory, and then start the XCP protocol stack according to the stored configuration information.

[0069] In this embodiment, two XCP protocol startup modes are also provided, thereby providing two measurement modes. For the online startup mode, the XCP protocol stack can be directly started, and for the offline startup mode, the configuration information is stored in the Flash memory carried by the vehicle gateway. When the vehicle gateway is powered on again, if the configuration information is stored in the Flash memory, the configuration information can be obtained and the XCP protocol stack can be started. In this way, multiple XCP protocol startup modes can be provided, which improves the diversity of measurement modes.

[0070] Furthermore, step S201 may further include: when the vehicle-mounted gateway is powered on, detecting whether configuration information is stored in the Flash memory; if the configuration information is not stored in the Flash memory, receiving the configuration information sent by the vehicle-mounted communication box.

[0071] In this embodiment, when the vehicle gateway is powered on, there are two ways to obtain the configuration information of the XCP protocol. One is to obtain it directly from the Flash memory, and the other is to obtain it directly from the vehicle communication box. The configuration information stored in the Flash memory can be the configuration information previously sent by the vehicle communication box. When the XCP startup mode information is characterized as an offline startup mode, it is stored by the vehicle gateway.

[0072] Specifically, when the vehicle gateway is powered on, it first needs to check whether the configuration information is stored in the Flash memory it carries. If not, it can wait to receive the configuration information sent by the vehicle communication box. If so, it can directly obtain the above configuration information from the Flash memory.

[0073] For example, when the vehicle gateway is powered on for the first time, the Flash memory does not store the configuration information of the XCP protocol. At this time, the vehicle gateway can parse the XCP startup mode information carried in the configuration information to indicate whether it is in online startup mode or offline startup mode. If it is in online startup mode, the XCP protocol stack is started directly according to the configuration information. If it is in offline startup mode, the configuration information can be stored in the Flash memory carried by the vehicle gateway first. Later, when the vehicle gateway is powered on again, since the Flash memory has stored the configuration information, the vehicle gateway can directly obtain the above configuration information from the Flash memory and use the stored configuration information to start the XCP protocol stack.

[0074] In this embodiment, if no configuration information is stored in the Flash memory after the vehicle gateway is powered on, the configuration information sent by the vehicle communication box can be received to obtain the configuration information. If the configuration information is stored in the Flash memory, the configuration information can be obtained from the Flash memory. In this way, the accuracy of obtaining the configuration information can be improved.

[0075] In addition, before step S202, the method may further include: sending the XCP startup mode information to the vehicle communication box; after step S202, the method may further include: sending the measurement data of the first target ECU to the vehicle communication box; the vehicle communication box is used to upload the measurement data of the first target ECU to the TSP platform in accordance with the measurement data uploading method matching the XCP startup mode information when receiving the measurement data of the first target ECU.

[0076] In this embodiment, after the vehicle-mounted gateway determines the XCP startup mode information, it can also send the XCP startup mode information to the vehicle-mounted communication box. After that, after the vehicle-mounted gateway obtains the measurement data of the first target ECU, it can send the measurement data of the first target ECU to the vehicle-mounted communication box. At this time, the vehicle-mounted communication box can determine the corresponding measurement data upload method based on the received XCP startup mode information, thereby uploading the measurement data of the first target ECU to the TSP platform according to the measurement data upload method.

[0077] In this embodiment, the XCP startup mode information can also be used to determine the measurement data uploading method for the vehicle communication box to upload the measurement data of the first target ECU to the TSP platform, which can further increase the diversity of the TSP platform's measurement data receiving methods.

[0078] In addition, after step S203, it may also include: sending the calibration processing result of the second target ECU to the vehicle-mounted communication box; the vehicle-mounted communication box is used to upload the calibration processing result of the second target ECU to the TSP platform in accordance with the calibration processing result uploading method that matches the XCP startup mode information when receiving the calibration processing result of the second target ECU.

[0079] Similarly, after the on-board gateway obtains the calibration processing result of the second target ECU, it can also send the calibration processing result of the second target ECU to the on-board communication box. Similar to the measurement data, the on-board communication box can determine the corresponding calibration processing result upload method based on the received XCP startup mode information, and then upload the calibration processing result of the second target ECU to the TSP platform according to the calibration processing result upload method.

[0080] In this embodiment, the XCP startup mode information can also be used to determine the calibration processing result upload method of the vehicle communication box to upload the calibration processing result of the second target ECU to the TSP platform, which can further increase the diversity of the TSP platform receiving calibration processing results.

[0081] In one embodiment, the configuration information carries calibration mode information; Figure 4 As shown, step S203 may further include:

[0082] Step S401: when the calibration mode information indicates a dynamic calibration mode, a trigger calibration variable list is obtained from the configuration information.

[0083] Among them, the calibration mode information is information used to characterize the calibration method. Similar to the XCP startup mode, the TSP platform can also configure the calibration method. Therefore, the configuration information can also carry calibration mode information, and the calibration mode information can include two types of characterization: dynamic calibration mode and static calibration mode. The dynamic calibration mode refers to the calibration of the second target ECU dynamically enabled by the vehicle gateway according to the measurement data, and the trigger calibration variable list refers to the variable list that triggers the dynamic calibration. The list can also be configured by the TSP platform and carried in the configuration information, which can include the element address and element content of the variable.

[0084] Specifically, if the calibration mode information indicates that the mode is dynamic calibration mode, the vehicle gateway may first parse the configuration information to obtain a corresponding trigger calibration variable list.

[0085] Step S402: When the measurement data of the first target ECU matches the calibration variable list information included in the trigger calibration variable list, the first target ECU is used as the second target ECU and a calibration process is performed on the second target ECU.

[0086] Afterwards, the vehicle gateway can match the measurement data of the first target ECU with the calibration variable list information contained in the trigger calibration variable list. If the match is successful, the first target ECU can be used as the second target ECU and the second target ECU can be calibrated.

[0087] For example, when performing dynamic calibration, the calibration function can be actively triggered by the XCP protocol stack of the vehicle gateway by matching the content of the periodic measurement element, that is, the measurement data of the first target ECU with the content of the trigger calibration list. If they match each other, the dynamic calibration process stage is entered to complete the dynamic calibration of the matching first target ECU, that is, the second target ECU.

[0088] In this embodiment, the TSP platform can also configure the calibration mode, thereby providing a variety of calibration methods. In the dynamic calibration mode, the second target ECU can be screened out according to the trigger calibration variable list contained in the configuration information and the measurement data of the first target ECU, so as to perform calibration processing. In this way, the calibration function is actively triggered by the vehicle gateway, thereby improving the efficiency of calibration.

[0089] In addition, if Figure 5 As shown, step S203 may further include:

[0090] Step S501, when the calibration mode information represents a static calibration mode, the measurement data of the first target ECU is returned to the TSP platform through the vehicle communication box; the TSP platform is used to generate a calibration variable list according to the measurement data of the first target ECU, and send the calibration variable list to the vehicle gateway through the vehicle communication box.

[0091] The static calibration mode refers to the calibration mode in which the TSP platform directly initiates the calibration function after analyzing the measurement data, while the calibration variable list is a list of variables that the TSP platform generates based on the measurement data and that need to be calibrated. This list can be generated by the calibration user by operating the TSP platform based on the measurement data of the first target ECU.

[0092] Specifically, if the calibration mode information represents a static calibration mode, after the vehicle gateway obtains the measurement data of the first target ECU, it needs to send the measurement data of the first target ECU to the TSP platform through the vehicle communication box. The TSP platform can display the received measurement data, and the calibration user operates the TSP platform to generate a calibration variable list based on the displayed measurement data. After that, the TSP platform can send the generated calibration variable list to the vehicle gateway again through the vehicle communication box.

[0093] Step S502: Determine a second target ECU according to the calibration variable list information included in the received calibration variable list, and perform calibration processing on the second target ECU.

[0094] After the vehicle gateway receives the calibration variable list, the second target ECU can be determined based on the calibration variable list information contained in the calibration variable list. For example, the calibration variable list information may include the calibration variable address, so that the second target ECU can be determined based on the calibration variable address and the second target ECU can be calibrated.

[0095] For example, during static calibration, after obtaining the periodic measurement elements, the on-board gateway can directly use the internal Ethernet communication to forward the XCP periodic measurement data type message to TBOX, and report the measurement data to the TSP platform. After the TSP receives the measurement data, the calibration user analyzes the data, sends the calibration variable list to the on-board gateway of the vehicle, and starts the static calibration function. At this time, the on-board gateway can directly enter the process of calibrating the second target ECU according to the calibration variable list information.

[0096] In this embodiment, in the static calibration mode, the measurement data can be sent to the TSP platform, so that the calibration process is triggered by the TSP platform, and the accuracy of the calibration can be improved in this way.

[0097] In one embodiment, the configuration information carries the receiving CANID information and the sending CANID information of each first target ECU; step S202 may further include: based on the receiving CANID information of each first target ECU, generating a test message for each first target ECU, and sending each test message to each first target ECU; each test message is used to instruct each first target ECU to return a CAN message corresponding to the test message; receiving the returned CAN message, and according to the sending CANID information of each first target ECU, obtaining the CAN messages from each first target ECU from the received CAN message.

[0098] In this embodiment, the configuration information carries the receiving CANID information and sending CANID information of each first target ECU, wherein the receiving CANID information refers to the CANID information of the message that the first target ECU can receive, that is, the CANID information of the message that the first target ECU can receive. For example, the receiving CANID information can be CANID1, so when the vehicle gateway initiates a message carrying CANID1, the message can be received by the first target ECU. The sending CANID information refers to the CANID information carried in the message sent by the first target ECU, and the CANID information can represent the source of the message. For example, the sending CANID information of the first target ECU is CANID2, so when the vehicle gateway receives a message carrying CANID2, it can represent that the message comes from the first target ECU.

[0099] Specifically, the configuration information carries the receiving CANID information and sending CANID information of each first target ECU, so the vehicle gateway can generate corresponding test messages according to the receiving CANID information of each first target ECU, so that when the test message is sent to each first target ECU, the first target ECU can receive the above corresponding test message, and the test message can instruct each first target ECU to return the corresponding CAN message carrying the test data. Afterwards, the vehicle terminal can identify the source of each CAN message according to the sending CANID information carried in the returned CAN message, thereby identifying the CAN messages from each first target ECU.

[0100] In this embodiment, the configuration information carries the receiving CANID information and the sending CANID information of each first target ECU. The on-board gateway can obtain the CAN message carrying the test data of each first target ECU based on the receiving CANID information and the sending CANID information. In this way, the accuracy of the test data acquisition of the first target ECU can be improved.

[0101] In one embodiment, Figure 6As shown, a vehicle calibration method is also provided, which is applied to Figure 1 The vehicle-mounted communication box in the example is used to illustrate, including the following steps:

[0102] Step S601: upon receiving the configuration information of the XCP protocol sent by the TSP platform through the MQTT protocol, convert the configuration information into an Ethernet communication format.

[0103] Specifically, after the TSP platform completes the generation of the configuration information of the XCP protocol, the configuration information can be further packaged as MQTT information and sent to the vehicle communication box through the MQTT protocol. After the vehicle communication box obtains the configuration information packaged as MQTT information, it can convert its format into the vehicle Ethernet communication format.

[0104] Step S602: When the vehicle gateway is powered on and started, the vehicle gateway is connected, and the configuration information converted into the Ethernet communication format is sent to the vehicle gateway; the configuration information is used to instruct the vehicle gateway to start the XCP protocol stack, and when the configuration information indicates that the vehicle test function is started, the CAN message from the first target ECU is obtained based on the configuration information, and the measurement data of the first target ECU is obtained by parsing the CAN message through the protocol included in the XCP protocol stack, and when the configuration information indicates that the vehicle calibration function is started, the second target ECU is obtained from the first target ECU based on the configuration information and the measurement data of the first target ECU, and the second target ECU is calibrated.

[0105] After the vehicle communication box completes the format conversion of the configuration information, it can detect whether the vehicle gateway is powered on and started. If so, the vehicle communication box can actively connect to the vehicle gateway, thereby sending the configuration information converted into the Ethernet communication format to the vehicle gateway, so that the vehicle gateway can obtain the configuration information of the above-mentioned XCP protocol.

[0106] After that, the vehicle gateway can start the XCP protocol stack according to the configuration information, and if the configuration information indicates starting the vehicle test function, the vehicle gateway needs to identify the CAN message from the first target ECU according to the configuration information, and parse the CAN message through the protocol contained in the XCP protocol stack to obtain the measurement data of each first target ECU. At the same time, if the configuration information carries the information to start calibration, the vehicle gateway can determine the second target ECU that needs to be calibrated from the first target ECU according to the measurement data of the first target ECU and the configuration information of the XCP protocol, and then complete the calibration of the second target ECU.

[0107] In the above-mentioned vehicle calibration method, when the vehicle communication box receives the configuration information of the XCP protocol sent by the TSP platform through the MQTT protocol, the configuration information is converted into the Ethernet communication format; when the vehicle gateway is powered on, the vehicle gateway is connected, and the configuration information converted into the Ethernet communication format is sent to the vehicle gateway; the configuration information is used to instruct the vehicle gateway to start the XCP protocol stack, and when the configuration information represents the start of the vehicle test function, the CAN message from the first target ECU is obtained based on the configuration information, and the measurement data of the first target ECU is obtained by parsing the CAN message through the protocol included in the XCP protocol stack, and when the configuration information represents the start of the vehicle calibration function, the second target ECU is obtained from the first target ECU based on the configuration information and the measurement data of the first target ECU, and the second target ECU is calibrated. In the present application, the TSP platform can send the configuration information of the XCP protocol to the vehicle communication box through the MQTT protocol, which is then converted by the vehicle communication box into the Ethernet communication format and sent to the vehicle gateway when the vehicle gateway is powered on. After that, if the configuration information indicates the start of the vehicle test function, the vehicle gateway can start the XCP protocol stack according to the configuration information, thereby obtaining the CAN message from the first target ECU, and using the protocol analysis contained in the protocol stack to obtain the measurement data of the first target ECU. If the configuration information also indicates the start of the vehicle calibration function, the second target ECU can be determined based on the configuration information and the measurement data to complete the calibration. In this way, only the vehicle gateway and the vehicle communication box contained in the car need to be used to complete the vehicle calibration, without the need to introduce external calibration tools to measure and calibrate the car, thereby improving the flexibility of vehicle calibration.

[0108] In one embodiment, Figure 7 As shown, after step S602, the following may also be included:

[0109] Step S701, upon receiving the XCP startup mode information returned by the vehicle gateway, obtaining the measurement data upload method and the calibration processing result upload method matching the XCP startup mode information; the XCP startup mode information is obtained by the vehicle gateway from the configuration information.

[0110] In this embodiment, the XCP startup mode information can be carried in the configuration information and recognized by the vehicle gateway. The measurement data upload method and the calibration processing result respectively represent the method of uploading the measurement data of the first target ECU and the calibration processing result of the second target ECU to the TSP platform. Specifically, the TSP platform can also configure the startup mode of the XCP protocol, that is, the measurement mode, so the configuration information can also carry the XCP startup mode information. When the vehicle gateway parses the configuration information, it can obtain the above XCP startup mode information and send the XCP startup mode information to the vehicle communication box. After that, the vehicle communication box can determine the corresponding measurement data upload method and calibration processing result upload method based on the received XCP startup mode information.

[0111] Step S702: upon receiving the measurement data of the first target ECU returned by the vehicle gateway, uploading the measurement data of the first target ECU to the TSP platform according to the measurement data uploading method;

[0112] Step S703: upon receiving the calibration processing result of the second target ECU returned by the vehicle gateway, the calibration processing result of the second target ECU is uploaded to the TSP platform according to the calibration processing result uploading method.

[0113] After the on-board gateway obtains the measurement data of the first target ECU and the calibration processing results of the second target ECU, the on-board gateway can also upload the above measurement data and calibration processing results to the on-board communication box, and the on-board communication box can upload the measurement data of the first target ECU and the calibration processing results of the second target ECU to the TSP platform according to the measurement data uploading method and the calibration processing result uploading method obtained in step S701 respectively.

[0114] In this embodiment, the vehicle gateway can also obtain the XCP startup mode information from the configuration information and upload it to the vehicle communication box. The vehicle communication box can obtain the corresponding measurement data upload method and calibration processing result upload method based on the XCP startup mode information, thereby uploading the measurement data and calibration processing results to the TSP platform in the above manner. This method can provide multiple ways of uploading data, further improving the diversity of ways of uploading data to the TSP platform.

[0115] Furthermore, step S702 may further include: when the XCP startup mode information represents an online startup mode, directly uploading the measurement data of the first target ECU to the TSP platform; when the XCP startup mode information represents an offline startup mode, saving the measurement data of the first target ECU to a file management system carried by the vehicle-mounted communication box, and when a measurement data acquisition request initiated by the TSP platform is detected, uploading the measurement data of the first target ECU stored in the file management system to the TSP platform.

[0116] In this embodiment, the XCP startup mode information may include information characterizing an online startup mode and information characterizing an offline startup mode. If it is an online startup, after receiving the measurement data of the first target ECU, the vehicle-mounted communication box can directly upload the measurement data of the first target ECU to the TSP platform. If it is an offline startup mode, the measurement data of the first target ECU can be saved in the file management system carried by the vehicle-mounted communication box. Then, when waiting for the active request of the TSP, the measurement data acquisition request initiated by the TSP platform is detected, and then the measurement data stored in the file management system is reported.

[0117] In this embodiment, two measurement data uploading methods are provided for different XCP startup mode information. If it is online startup, it is directly uploaded, and if it is offline startup, it is first stored and uploaded when the TSP platform actively requests it, thereby improving the diversity of measurement data uploading methods.

[0118] In addition, step S703 may further include: when the XCP startup mode information represents an online startup mode, directly uploading the calibration processing result of the second target ECU to the TSP platform; when the XCP startup mode information represents an offline startup mode, saving the calibration processing result of the second target ECU to a file management system carried by the vehicle-mounted communication box, and when a calibration result acquisition request initiated by the TSP platform is detected, uploading the calibration processing result of the second target ECU stored in the file management system to the TSP platform.

[0119] Similarly, there can be multiple ways to upload the calibration processing results. If it is started online, after receiving the calibration processing results of the second target ECU, the on-board communication box can directly upload the calibration processing results of the second target ECU to the TSP platform. If it is an offline startup mode, the calibration processing results of the second target ECU can be saved to the file management system carried by the on-board communication box. Then, when waiting for the active request of TSP, the calibration result acquisition request initiated by the TSP platform is detected, and then the calibration processing results stored in the file management system are reported.

[0120] In this embodiment, two calibration processing result uploading methods are also provided for different XCP startup mode information. If it is an online startup, it is directly uploaded, and if it is an offline startup, it is first stored and waited for the TSP platform to actively request to upload, thereby improving the diversity of the calibration processing result uploading methods.

[0121] In one embodiment, a vehicle calibration method based on a vehicle gateway is also provided. Compared with the prior art of measuring and calibrating the vehicle ECU by wired or wireless methods, the link connection method between the wireless calibration method and the wired calibration method can be as follows: Figure 8 As shown, it can be seen that whether it is wired calibration or wireless calibration, an external calibration tool is required to realize the calibration of the car. The calibration method provided in this embodiment does not need to use external calibration tools to measure and calibrate the automobile parts. It mainly uses the vehicle gateway as the hardware support, and the XCP (Universal Measurement and Calibration Protocol) protocol calibration technology implemented based on the vehicle gateway effectively calibrates and measures each control unit of the car to achieve the optimal state before leaving the factory. This embodiment uses the vehicle manufacturer's TSP (Test System Platform) platform to send the measurement and calibration configuration information of the XCP protocol through the MQTT protocol, which is converted into Ethernet in-vehicle communication messages through TBOX (vehicle communication box). Finally, the vehicle gateway software processing module parses the configuration and implements the startup of the XCP protocol to measure and calibrate the various components of the vehicle. Its link connection method can be as follows: Fig. 9 shown.

[0122] At the same time, in order to ensure the practicality of the vehicle in different scenarios during road tests or experimental tests, this embodiment supports both online and offline measurement methods. In the online mode, the TSP platform monitors the ECU measurement data in real time and performs data analysis and online calibration, and the vehicle-mounted gateway reports the ECU measurement data in real time. Offline mode is to start the offline mode when TSP is configured or switch to offline mode when the vehicle-mounted gateway automatically detects that the vehicle is offline. In offline mode, the measurement data is handed over to TBOX in real time for offline caching of the measurement data and reported to the TSP end for measurement data analysis after networking. At the same time, it supports two calibration methods, namely dynamic calibration and static calibration. Static calibration means that the TSP platform directly initiates the calibration function based on the measurement data analysis, and dynamic calibration means that the gateway dynamically matches its measurement data to dynamically start ECU calibration.

[0123] The system architecture and component functions provided in this embodiment are as follows:

[0124] Car factory TSP platform: mainly serves as a configuration center to define and generate configuration parameters for measurement and calibration services. Configuration includes calibration targets, measurement parameters, etc. It must also support message publishing and subscription of the MQTT protocol.

[0125] TBOX (vehicle communication box): MPU type intelligent device (with file system), mainly responsible for receiving MQTT messages from the TSP platform, converting them into in-vehicle Ethernet communication messages, and forwarding them to the vehicle gateway. It also has file system storage function, MQTT client function and Ethernet communication interface.

[0126] In-vehicle gateway: MCU type communication device (without file system), receives Ethernet messages, parses configurations, starts XCP protocol measurement or calibration functions, and forwards messages to each ECU (electronic control unit) via CAN bus. Supports Ethernet interface, CAN bus interface, XCP protocol parsing and processing capabilities.

[0127] CAN bus: used for communication between various control units of the vehicle to achieve calibration operations. It is necessary to support the CAN protocol and related data transmission specifications.

[0128] The entire measurement and calibration process is implemented in the following six stages:

[0129] 1) Protocol configuration creation and release phase;

[0130] 2) Vehicle gateway configuration parsing stage;

[0131] 3) XCP protocol starts the measurement and calibration phase;

[0132] 4) Periodic measurement ECU stage;

[0133] 5) ECU calibration stage (TSP data analysis and calibration);

[0134] 6) Measurement and calibration result processing and display stage (results feedback and display in the cloud).

[0135] The specific implementation process is as follows:

[0136] 1. Protocol configuration creation and release phase:

[0137] 1.1. Configuration definition: Create measurement configuration on the car manufacturer's TSP platform, including measurement mode (online / offline), XCP protocol measurement parameters (DAQ related attributes and periodic measurement element list), XCP protocol calibration variable list, trigger calibration variable list, measurement and calibration target (measured ECU related information), start measurement / calibration (dynamic or static), etc., specific configuration parameters Fig.10 shown.

[0138] 1.2. MQTT message publishing: Package the configuration parameters into MQTT messages. The message format needs to follow the MQTT protocol specifications, including message header, message body and topic. Publish the configuration message to the MQTT proxy server, and the TSP platform subscribes to the corresponding topic to ensure that the configuration can be published and received correctly.

[0139] 1.3. TBOX has a built-in MQTT client, which subscribes to the same topic as the car manufacturer's TSP platform. After receiving the MQTT message, TBOX parses the configuration parameters. At the same time, the MQTT message content is converted into the internal Ethernet communication format as follows: communication message type (XCP measurement and calibration configuration and carrying configuration parameters). At the same time, it waits to receive the internal message of the gateway. The specific message content is as follows. In order to ensure the reliability of the protocol data between TBOX and the gateway, this method uses the TCP protocol as the communication channel (the default port is 8989) and TBOX actively establishes a connection with the gateway as a client when it starts. The format of the communication message is as follows: Fig.11 As shown, specifically including the following:

[0140] Message type: Contains XCP measurement and calibration configuration / XCP periodic measurement data / XCP calibration result feedback data / XCP startup mode (online / offline).

[0141] Message length: the total length of the message content.

[0142] Message content: including configuration parameters / XCP cycle measurement data, XCP calibration result data / XCP startup mode, such as Fig.10 The configuration parameters shown, such as Fig.12 XCP cycle measurement data shown, such as Fig.13 The XCP calibration result data shown, as well as the XCP startup mode, may include online / offline mode.

[0143] 2. Vehicle gateway configuration message parsing stage:

[0144] 2.1. When the vehicle gateway is powered on, it will actively open the TCP server and start listening on port 8989, waiting for the TBOX to be powered on and connected.

[0145] 2.2. Ethernet message reception: The vehicle gateway receives the Ethernet data packet from TBOX, parses the data packet header and data body and extracts the configuration data as shown in step 1.3, and verifies the integrity and correctness of the configuration parameters to ensure that the configuration meets the requirements.

[0146] 2.3. Protocol startup processing: After parsing the message, start the online mode or offline mode to TBOX through Ethernet internal communication (message type XCP startup mode). At the same time, check the configuration parameters. If it is to start the online mode, directly start the XCP protocol stack; if it is configured to be offline mode, first start the built-in flash saving function of the gateway to save the configuration data (when the vehicle is powered on again, the gateway will first check whether there is XCP protocol configuration in the flash after loading and starting, and if it exists, start the XCP protocol stack), and then start the XCP protocol stack.

[0147] 3. XCP protocol starts the measurement and calibration phase:

[0148] 3.1. Based on the analysis results, the vehicle gateway starts the XCP protocol measurement and calibration function. The startup process includes:

[0149] XCP protocol initialization: initialize the XCP protocol stack, measure and configure protocol parameters, and start the protocol stack task;

[0150] Measurement function: Check whether the measurement function is enabled in the configuration parameters. If the measurement is enabled, the measurement CTO process is entered according to the element information in the measurement list, and the measurement message is generated according to the XCP protocol requirements and the target ECU receiving CANID in the configuration parameters;

[0151] Calibration function: Check whether the calibration function is enabled in the configuration parameters. If it is a dynamic calibration, the calibration variable list matching process will be triggered by the measurement data filtering. If it is a static calibration, i.e. online calibration, the calibration CTO process will be directly entered according to the calibration variable list information, and the measurement message will be generated according to the XCP protocol requirements and the target ECU receiving CANID in the configuration parameters.

[0152] CAN message forwarding: The unique characteristics of the vehicle gateway are used to query the internal routing table, determine the target ECU of the calibration request and forward it to the destination. The routing table contains the address and communication path of each control unit in the CAN bus. At the same time, the vehicle gateway needs to ensure the accurate transmission of the message and the normal operation of the CAN bus.

[0153] 4. Periodic measurement ECU stage:

[0154] 4.1. After the measurement function is started in step 3.1, the XCP protocol enters the periodic measurement ECU stage. After entering this stage, the XCP measurement task uses the characteristics of the vehicle gateway to match the CAN message from the target ECU based on the CANID sent by the ECU from the CAN routing forwarding table, and parses and forwards the message according to the XCP protocol measurement rules.

[0155] 4.2. Parsing and forwarding of measurement data: stripping the measurement data packet header based on the XCP protocol standard specification, and obtaining the specific content of each periodic measurement element based on the protocol. If the dynamic calibration function is enabled, the periodic measurement element content is matched with the trigger calibration list content. If they match each other, the dynamic calibration process stage needs to be entered. If the static calibration function is enabled, the XCP periodic measurement data type message is directly forwarded to TBOX using internal Ethernet communication.

[0156] 4.3. After receiving the data, TBOX checks whether the XCP protocol configured in the current gateway is in online or offline mode. If it is in offline mode, it saves the XCP measurement data to the file management system and reports the measurement data when TSP actively requests it. If it is in online mode, it directly reports the measurement data to TSP, which processes the measurement data results.

[0157] 5. ECU calibration stage:

[0158] 5.1. When it is a dynamic calibration, the calibration function is actively triggered by the gateway XCP protocol stack. According to the trigger conditions described in 4.2, this stage is entered, and the calibration variable list is issued according to the calibration variable list information to enter the calibration CTO process. According to the XCP protocol requirements and the target ECU in the configuration parameters, the CANID receives the measurement message, and the target ECU is dynamically calibrated according to the CAN message forwarding in step 3.1, and the measurement function of the ECU continues.

[0159] 5.2. When it is static calibration, that is, online calibration by TSP, the target ECU is calibrated online as described in step 3.1 calibration function.

[0160] 5.3. When a calibration action is completed, the gateway actively uses the internal Ethernet communication to transmit the calibration result back to TBOX via Ethernet in the form of XCP calibration result feedback data type message.

[0161] 5.4. When TBOX receives the calibration completion message, it checks whether the XCP protocol of the current gateway configuration is in online or offline mode. If it is in offline mode, it saves the calibration completion message to the file management system and reports the calibration completion data when TSP actively requests it; if it is in online mode, TBOX further forwards the result to the vehicle manufacturer's TSP platform.

[0162] 6. Measurement and calibration result processing and display stage:

[0163] 6.1. When the calibration is online, after the TSP receives the measurement data, the calibration engineer analyzes the data, sends the calibration variable list to the vehicle gateway, and starts the static calibration function, allowing the static calibration function as in step 3.1.

[0164] 6.2. After the entire calibration is completed, the car manufacturer's TSP platform receives the calibration results, analyzes and displays the data. Based on the calibration results, the car manufacturer can make necessary adjustments and optimizations. The feedback mechanism allows users to modify and optimize the calibration process and results. The results display includes:

[0165] Calibration data analysis: Analyze calibration results and generate reports.

[0166] Result Visualization: Provides charts and data views to help users understand the calibration results.

[0167] The complete process can be shown as Fig.14 As shown, through the above steps, it is possible to deploy vehicle calibration based on the vehicle gateway, measure and calibrate various ECUs of the vehicle, ensure the reliability and integrity of the measurement and calibration data, and realize remote management and data synchronization.

[0168] In this embodiment, a set of calibration methods based on vehicle gateway deployment is provided. Through the collaborative work of the vehicle gateway and the TSP platform, the vehicle ECU measurement and calibration based on the XCP protocol is realized. It has high portability and can be deployed on any vehicle. It can also realize the measurement and calibration of key automotive components without relying on any external tools, which greatly saves costs and can be quickly applied to multiple models. The TSP platform sends configurations through the MQTT protocol, TBOX forwards and is parsed and executed by the vehicle gateway, uses the CAN bus to accurately transmit data, supports online and offline measurement modes, and supports static and dynamic calibration functions to ensure flexibility and accuracy in various test scenarios.

[0169] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0170] Based on the same inventive concept, the embodiment of the present application also provides a vehicle calibration device for implementing the vehicle calibration method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more vehicle calibration device embodiments provided below can refer to the limitations of the vehicle calibration method above, and will not be repeated here.

[0171] In one embodiment, Fig.15 As shown, a vehicle calibration device is provided, which is applied to a vehicle gateway, including: a protocol configuration acquisition module 1501, a measurement data acquisition module 1502 and a vehicle calibration processing module 1503, wherein:

[0172] The protocol configuration acquisition module 1501 is used to obtain the configuration information of the XCP protocol when the vehicle-mounted gateway is powered on and started; the configuration information is sent to the vehicle-mounted communication box by the TSP platform through the MQTT protocol, and is converted into an Ethernet communication format by the vehicle-mounted communication box and sent to the vehicle-mounted gateway;

[0173] The measurement data acquisition module 1502 is used to start the XCP protocol stack according to the configuration information, and when the configuration information indicates that the vehicle test function is started, obtain a CAN message from the first target ECU based on the configuration information, and parse the CAN message through the protocol included in the XCP protocol stack to obtain the measurement data of the first target ECU;

[0174] The vehicle calibration processing module 1503 is used to obtain a second target ECU from the first target ECU based on the configuration information and the measurement data of the first target ECU, and perform calibration processing on the second target ECU when the configuration information indicates that the vehicle calibration function is started.

[0175] In one embodiment, the configuration information carries XCP startup mode information; the measurement data acquisition module 1502 is further used to start the XCP protocol stack directly according to the configuration information when the XCP startup mode information represents an online startup mode; when the XCP startup mode information represents an offline startup mode, the configuration information is stored in a Flash memory carried by the vehicle gateway; the Flash memory is used to obtain the configuration information stored in the Flash memory from the Flash memory and start the XCP protocol stack according to the stored configuration information when the vehicle gateway is powered on again.

[0176] In one embodiment, the protocol configuration acquisition module 1501 is further used to detect whether configuration information is stored in the Flash memory when the vehicle gateway is powered on; if the configuration information is not stored in the Flash memory, receive the configuration information sent by the vehicle communication box.

[0177] In one embodiment, the measurement data acquisition module 1502 is further used to send the XCP startup mode information to the vehicle-mounted communication box; send the measurement data of the first target ECU to the vehicle-mounted communication box; the vehicle-mounted communication box is used to upload the measurement data of the first target ECU to the TSP platform in accordance with the measurement data uploading method matching the XCP startup mode information when receiving the measurement data of the first target ECU.

[0178] In one embodiment, the vehicle calibration processing module 1503 is also used to send the calibration processing result of the second target ECU to the vehicle-mounted communication box; the vehicle-mounted communication box is used to upload the calibration processing result of the second target ECU to the TSP platform in accordance with the calibration processing result uploading method that matches the XCP startup mode information when receiving the calibration processing result of the second target ECU.

[0179] In one embodiment, the configuration information carries calibration mode information; the vehicle calibration processing module 1503 is further used to obtain a trigger calibration variable list from the configuration information when the calibration mode information represents a dynamic calibration mode; when the measurement data of the first target ECU matches the calibration variable list information contained in the trigger calibration variable list, the first target ECU is used as the second target ECU, and the second target ECU is calibrated.

[0180] In one embodiment, the automobile calibration processing module 1503 is also used to return the measurement data of the first target ECU to the TSP platform through the vehicle-mounted communication box when the calibration mode information represents a static calibration mode; the TSP platform is used to generate a calibration variable list according to the measurement data of the first target ECU, and send the calibration variable list to the vehicle-mounted gateway through the vehicle-mounted communication box; determine the second target ECU according to the calibration variable list information contained in the received calibration variable list, and perform calibration processing on the second target ECU.

[0181] In one embodiment, the configuration information carries the receiving CANID information and the sending CANID information of each of the first target ECUs; the measurement data acquisition module 1502 is further used to generate a test message for each of the first target ECUs based on the receiving CANID information of each of the first target ECUs, and send each of the test messages to each of the first target ECUs; each of the test messages is used to instruct each of the first target ECUs to return a CAN message corresponding to the test message; the returned CAN message is received, and according to the sending CANID information of each of the first target ECUs, the CAN messages from each of the first target ECUs are respectively obtained from the received CAN messages.

[0182] In one embodiment, Fig.16 As shown, a vehicle calibration device is provided, which is applied to a vehicle-mounted communication box, including: a configuration information conversion module 1601 and a configuration information sending module 1602, wherein:

[0183] The configuration information conversion module 1601 is used to convert the configuration information into an Ethernet communication format when receiving the configuration information of the XCP protocol sent by the TSP platform through the MQTT protocol;

[0184] The configuration information sending module 1602 is used to connect to the vehicle gateway when the vehicle gateway is powered on and start, and send the configuration information converted into the Ethernet communication format to the vehicle gateway; the configuration information is used to instruct the vehicle gateway to start the XCP protocol stack, and when the configuration information represents the start of the vehicle test function, the CAN message from the first target ECU is obtained based on the configuration information, and the CAN message is parsed through the protocol included in the XCP protocol stack to obtain the measurement data of the first target ECU, and when the configuration information represents the start of the vehicle calibration function, the second target ECU is obtained from the first target ECU based on the configuration information and the measurement data of the first target ECU, and the second target ECU is calibrated.

[0185] In one embodiment, the automobile calibration device further includes: a data uploading module, which is used to obtain a measurement data uploading method and a calibration processing result uploading method that match the XCP startup mode information when the XCP startup mode information returned by the vehicle gateway is received; the XCP startup mode information is obtained by the vehicle gateway from the configuration information; when the measurement data of the first target ECU returned by the vehicle gateway is received, the measurement data of the first target ECU is uploaded to the TSP platform according to the measurement data uploading method; when the calibration processing result of the second target ECU returned by the vehicle gateway is received, the calibration processing result of the second target ECU is uploaded to the TSP platform according to the calibration processing result uploading method.

[0186] In one embodiment, the data uploading module is further used to directly upload the measurement data of the first target ECU to the TSP platform when the XCP startup mode information represents an online startup mode; when the XCP startup mode information represents an offline startup mode, save the measurement data of the first target ECU to the file management system carried by the vehicle-mounted communication box, and upload the measurement data of the first target ECU stored in the file management system to the TSP platform when a measurement data acquisition request initiated by the TSP platform is detected.

[0187] In one embodiment, the data upload module is further used to directly upload the calibration processing result of the second target ECU to the TSP platform when the XCP startup mode information represents an online startup mode; save the calibration processing result of the second target ECU to the file management system carried by the vehicle-mounted communication box when the XCP startup mode information represents an offline startup mode, and upload the calibration processing result of the second target ECU stored in the file management system to the TSP platform when a calibration result acquisition request initiated by the TSP platform is detected.

[0188] Each module in the above-mentioned vehicle calibration device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the vehicle gateway or vehicle communication box in the form of hardware, or can be stored in the memory in the vehicle gateway or vehicle communication box in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0189] In one embodiment, a vehicle-mounted gateway is provided, and its internal structure diagram can be as follows: Fig.17As shown. The vehicle-mounted gateway includes a processor, a memory, an input / output interface and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the vehicle-mounted gateway is used to provide computing and control capabilities. The memory of the vehicle-mounted gateway includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the vehicle-mounted gateway is used to exchange information between the processor and the external device. The communication interface of the vehicle-mounted gateway is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, a near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a vehicle calibration method is implemented.

[0190] In one embodiment, a vehicle-mounted communication box is provided, and its internal structure diagram can be as follows: Fig.18 As shown. The vehicle-mounted communication box includes a processor, a memory, an input / output interface and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the vehicle-mounted communication box is used to provide computing and control capabilities. The memory of the vehicle-mounted communication box includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the vehicle-mounted communication box is used to exchange information between the processor and an external device. The communication interface of the vehicle-mounted communication box is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, a near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a vehicle calibration method is implemented.

[0191] Those skilled in the art will understand that Fig.17 and 18 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the vehicle gateway or vehicle communication box to which the solution of the present application is applied. The specific vehicle gateway or vehicle communication box may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0192] In one embodiment, a vehicle-mounted gateway or a vehicle-mounted communication box is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0193] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0194] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0195] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0196] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0197] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0198] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A vehicle calibration method, characterized in that: Applied to a vehicle gateway, the method includes: When the vehicle-mounted gateway is powered on, the configuration information of the XCP protocol is obtained; the configuration information is sent to the vehicle-mounted communication box by the TSP platform through the MQTT protocol, and is converted into an Ethernet communication format by the vehicle-mounted communication box and sent to the vehicle-mounted gateway; Starting the XCP protocol stack according to the configuration information, and when the configuration information indicates starting a vehicle test function, acquiring a CAN message from a first target ECU based on the configuration information, and parsing the CAN message through a protocol included in the XCP protocol stack to obtain measurement data of the first target ECU; In the case where the configuration information indicates that a vehicle calibration function is started, based on the configuration information and the measurement data of the first target ECU, a second target ECU is acquired from the first target ECU, and a calibration process is performed on the second target ECU.

2. The method according to claim 1, characterized in that The configuration information carries XCP startup mode information; and starting the XCP protocol stack according to the configuration information includes: In a case where the XCP startup mode information represents an online startup mode, directly starting the XCP protocol stack according to the configuration information; When the XCP startup mode information represents an offline startup mode, the configuration information is stored in the Flash memory carried by the vehicle gateway; the Flash memory is used to obtain the configuration information stored in the Flash memory from the Flash memory when the vehicle gateway is powered on again, if the configuration information is stored in the Flash memory, and start the XCP protocol stack according to the stored configuration information.

3. The method according to claim 2, characterized in that Before starting the XCP protocol stack according to the configuration information, the method further includes: Sending the XCP startup mode information to the vehicle-mounted communication box; After obtaining the measurement data of the first target ECU through parsing the CAN message through the protocol included in the XCP protocol stack, the method further includes: The measurement data of the first target ECU is sent to the vehicle-mounted communication box; the vehicle-mounted communication box is used to upload the measurement data of the first target ECU to the TSP platform in accordance with the measurement data uploading method matching the XCP startup mode information when receiving the measurement data of the first target ECU.

4. The method according to claim 3, characterized in that After the calibration process is performed on the second target ECU, the method further includes: The calibration processing result of the second target ECU is sent to the vehicle-mounted communication box; the vehicle-mounted communication box is used to upload the calibration processing result of the second target ECU to the TSP platform in accordance with the calibration processing result uploading method matching the XCP startup mode information when receiving the calibration processing result of the second target ECU.

5. The method according to claim 1, characterized in that: The configuration information carries calibration mode information; the obtaining a second target ECU from the first target ECU based on the configuration information and the measurement data of the first target ECU, and performing calibration processing on the second target ECU, including: In a case where the calibration mode information represents a dynamic calibration mode, obtaining a trigger calibration variable list from the configuration information; When the measurement data of the first target ECU matches the calibration variable list information included in the trigger calibration variable list, the first target ECU is used as the second target ECU, and the calibration process is performed on the second target ECU.

6. The method according to claim 5, characterized in that The method of acquiring a second target ECU from the first target ECU based on the configuration information and the measurement data of the first target ECU, and performing calibration processing on the second target ECU, further includes: In the case where the calibration mode information represents a static calibration mode, the measurement data of the first target ECU is returned to the TSP platform through the vehicle communication box; the TSP platform is used to generate a calibration variable list according to the measurement data of the first target ECU, and send the calibration variable list to the vehicle gateway through the vehicle communication box; The second target ECU is determined according to the calibration variable list information contained in the received calibration variable list, and a calibration process is performed on the second target ECU.

7. A vehicle calibration method, characterized in that: Applied to a vehicle-mounted communication box, the method comprises: When receiving the configuration information of the XCP protocol sent by the TSP platform through the MQTT protocol, converting the configuration information into an Ethernet communication format; When the vehicle gateway is powered on and started, the vehicle gateway is connected, and the configuration information converted into the Ethernet communication format is sent to the vehicle gateway; the configuration information is used to instruct the vehicle gateway to start the XCP protocol stack, and when the configuration information represents the start of the vehicle test function, a CAN message from the first target ECU is obtained based on the configuration information, and the CAN message is parsed through the protocol included in the XCP protocol stack to obtain the measurement data of the first target ECU, and when the configuration information represents the start of the vehicle calibration function, a second target ECU is obtained from the first target ECU based on the configuration information and the measurement data of the first target ECU, and the second target ECU is calibrated.

8. The method according to claim 7, characterized in that After sending the configuration information converted into the Ethernet communication format to the vehicle gateway, the method further includes: Upon receiving the XCP startup mode information returned by the vehicle gateway, obtaining a measurement data upload method and a calibration processing result upload method that match the XCP startup mode information; the XCP startup mode information is obtained by the vehicle gateway from the configuration information; Upon receiving the measurement data of the first target ECU returned by the vehicle gateway, uploading the measurement data of the first target ECU to the TSP platform according to the measurement data uploading method; When receiving the calibration processing result of the second target ECU returned by the vehicle gateway, the calibration processing result of the second target ECU is uploaded to the TSP platform according to the calibration processing result uploading method.

9. An automobile calibration device, characterized in that: Applied to a vehicle gateway, the device comprises: The protocol configuration acquisition module is used to obtain the configuration information of the XCP protocol when the vehicle-mounted gateway is powered on and started; the configuration information is sent to the vehicle-mounted communication box by the TSP platform through the MQTT protocol, and is converted into an Ethernet communication format by the vehicle-mounted communication box and sent to the vehicle-mounted gateway; a measurement data acquisition module, configured to start the XCP protocol stack according to the configuration information, and when the configuration information indicates that the vehicle test function is started, acquire a CAN message from a first target ECU based on the configuration information, and parse the CAN message through a protocol included in the XCP protocol stack to obtain measurement data of the first target ECU; The vehicle calibration processing module is used to obtain a second target ECU from the first target ECU based on the configuration information and the measurement data of the first target ECU, and perform calibration processing on the second target ECU when the configuration information indicates that the vehicle calibration function is started.

10. An automobile calibration device, characterized in that: Applied to a vehicle-mounted communication box, the device comprises: A configuration information conversion module, configured to convert the configuration information into an Ethernet communication format when receiving the configuration information of the XCP protocol sent by the TSP platform through the MQTT protocol; a configuration information sending module, used to connect to the vehicle gateway when the vehicle gateway is powered on and start, and send the configuration information converted into Ethernet communication format to the vehicle gateway; the configuration information is used to instruct the vehicle gateway to start the XCP protocol stack, and when the configuration information represents the start of the vehicle test function, obtain a CAN message from the first target ECU based on the configuration information, and parse the CAN message through the protocol included in the XCP protocol stack to obtain the measurement data of the first target ECU, and when the configuration information represents the start of the vehicle calibration function, obtain a second target ECU from the first target ECU based on the configuration information and the measurement data of the first target ECU, and perform calibration processing on the second target ECU.

11. A vehicle-mounted gateway, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

12. A vehicle-mounted communication box, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 7 to 8 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Remote vehicle-mounted control system and method based on MQTT framework

    CN111031147A

  • Vehicle electric control unit calibration system and method

    CN111930403A

  • Vehicle calibration method and system and storage medium

    CN118632215A

Cited By

  • Calibration platform applied to automatic driving domain control system

    CN121115717A