Method and device for determining driving variable calibration value, storage medium and electronic device

CN118570898BActive Publication Date: 2026-09-25CHINA AUTOMOTIVE INNOVATION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410618788.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2026-09-25
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

[0004]针对相关技术中,如何确定车辆在行驶过程中的行驶变量标定值以提高车辆操作准确度的技术问题,尚未提出有效的解决方案

Benefits of technology

[0021]在本申请实施例中,通过响应于来自可交互界面的触发操作,为目标车辆在行驶过程中产生的当前车载数据生成测量任务;将所述测量任务被执行时所需的任务指令发送给中央计算平台,以使所述中央计算平台解析所述任务指令,得到所述当前车载数据对应的行驶变量标定值;将所述目标车辆的行驶变量当前值更新为所述行驶变量标定值;采用上述技术方案,解决了如何确定车辆在行驶过程中的行驶变量标定值以提高车辆操作准确度的技术问题,进而提高车辆操作准确度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570898B_ABST
    Figure CN118570898B_ABST
Patent Text Reader

Abstract

The application discloses a driving variable calibration value determination method and device, a storage medium and an electronic device, and relates to the technical field of intelligent vehicles. The driving variable calibration value determination method comprises the following steps: in response to a triggering operation from an interactive interface, generating a measurement task for current vehicle-mounted data generated by a target vehicle during driving; sending task instructions required when the measurement task is executed to a central computing platform, so that the central computing platform analyzes the task instructions and obtains a driving variable calibration value corresponding to the current vehicle-mounted data; and updating a current value of a driving variable of the target vehicle to the driving variable calibration value. By using the technical solution, the technical problem of how to determine a driving variable calibration value of a vehicle during driving to improve the operation accuracy of the vehicle is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent vehicle technology, and more specifically, to a method, apparatus, storage medium, and electronic device for determining driving variable calibration values. Background Technology

[0002] Currently, next-generation vehicle communication networks support POSIX-compliant vehicle operating systems, allowing multiple tasks to run in isolated processes, each with its own independent resources and virtual address space. With the increasing connectivity and intelligence of vehicle operating systems, automakers can remotely operate vehicles. However, the central computing platform system in current vehicle communication networks lacks real-time measurement and calibration capabilities for vehicle calibration, resulting in inconsistent vehicle operation accuracy.

[0003] Therefore, in related technologies, there exists a technical problem of how to determine the calibration values ​​of driving variables during vehicle operation in order to improve the accuracy of vehicle operation.

[0004] There is still no effective solution to the technical problem of how to determine the calibration values ​​of driving variables during vehicle operation in order to improve the accuracy of vehicle operation. Summary of the Invention

[0005] This application provides a method, apparatus, storage medium, and electronic device for determining driving variable calibration values, in order to at least solve the technical problem in the related art of how to determine the driving variable calibration values ​​of a vehicle during driving to improve the accuracy of vehicle operation.

[0006] According to one embodiment of this application, a method for determining the calibration value of a driving variable is provided, comprising: in response to a trigger operation from an interactive interface, generating a measurement task for current on-board data generated by a target vehicle during driving; sending the task instructions required for the execution of the measurement task to a central computing platform, so that the central computing platform parses the task instructions to obtain the calibration value of the driving variable corresponding to the current on-board data; and updating the current value of the driving variable of the target vehicle to the calibration value of the driving variable.

[0007] In one exemplary embodiment, sending the task instructions required for the execution of the measurement task to the central computing platform includes: determining a target transmission interface from the data transmission interfaces provided by the Ethernet network where the target vehicle is located; generating a TCP server based on the XCP protocol based on the target transmission interface and the TCP communication protocol, and generating a UDP server based on the XCP protocol based on the target transmission interface and the UDP communication protocol, wherein the TCP server has a TCP communication channel based on the TCP communication protocol with the external device, and the UDP server has a UDP communication channel based on the UDP communication protocol with the external device; sending the task instructions required for the execution of the measurement task to the central computing platform through the TCP communication channel, and / or sending the task instructions required for the execution of the measurement task to the central computing platform through the UDP communication channel.

[0008] In an exemplary embodiment, before sending the task instructions required for the execution of the measurement task to the central computing platform, the method further includes: determining the task priority of each of the multiple measurement tasks, and determining the execution order of the multiple measurement tasks according to the task priority of each of the multiple measurement tasks, wherein the task priority of each measurement task is determined according to the data storage address corresponding to the task instruction of each measurement task, and the data storage addresses corresponding to the task instructions of any two measurement tasks are different.

[0009] In one exemplary embodiment, sending the task instructions required for the execution of the measurement task to a central computing platform, so that the central computing platform can parse the task instructions to obtain the driving variable calibration value corresponding to the current vehicle data, includes: generating a first task instruction required for the execution of the measurement task when it is determined that the measurement task is used to implement the basic protocol functions of the XCP protocol, wherein the basic protocol functions include at least an initialization protocol function and an asynchronous calibration value acquisition function; sending the first task instruction to the central computing platform, so that the central computing platform can generate an initialization protocol channel between the central computing platform and the external device based on the first task instruction, and parsing the task instruction to obtain the driving variable calibration value corresponding to the current vehicle data; and obtaining the driving variable calibration value from the central computing platform based on the initialization protocol channel.

[0010] In one exemplary embodiment, the method further includes: when it is determined that the measurement task is used to implement the data calibration function of the XCP protocol, generating a second task instruction required when the measurement task is executed, wherein the data calibration function represents writing data to the central computing platform; sending the second task instruction to the central computing platform so that the central computing platform parses the second task instruction, obtains the driving variable calibration value, and writes the driving variable calibration value corresponding to the current vehicle data into the application software connected to the central computing platform.

[0011] In one exemplary embodiment, the method further includes: when it is determined that the measurement task is used to implement the data synchronization function of the XCP protocol, generating a third task instruction required when the measurement task is executed, wherein the data synchronization function is used to synchronize the driving variable calibration value from the central computing platform to the external device; sending the third task instruction to the central computing platform, so that the central computing platform parses the third task instruction, obtains the driving variable calibration value, and sends the driving variable calibration value according to a preset period.

[0012] According to another aspect of the embodiments of this application, a method for determining driving variable calibration values ​​is also provided, applied to a central computing platform based on the XCP protocol, comprising: parsing a task instruction from an external device based on the XCP protocol to obtain a parsing result, wherein the parsing result includes at least the task type of the task instruction; calling a proxy interface corresponding to the task type, and sending the task instruction to an application program of the central computing platform through the proxy interface to control the application program to execute the task instruction and obtain the driving variable calibration values ​​of the target vehicle.

[0013] In an exemplary embodiment, parsing a task instruction from an external device based on the XCP protocol to obtain a parsing result includes: decrypting the task instruction using a pre-agreed decryption format between the external device and the central computing platform to obtain message information; performing format verification on the message information; and determining the message information as the parsing result if it is determined that the message information passes the format verification.

[0014] In one exemplary embodiment, invoking a proxy interface corresponding to the task type and sending the task instruction to the application of the central computing platform through the proxy interface to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle includes: when it is determined that the task instruction is a basic instruction based on the XCP protocol, invoking a first proxy interface corresponding to the task type; sending the task instruction to the application of the central computing platform through the first proxy interface to control the application to establish an initialization protocol channel between the central computing platform and the external device based on the task instruction, and executing the task instruction to obtain the driving variable calibration value.

[0015] In one exemplary embodiment, the method further includes: when it is determined that the task instruction is a calibration instruction based on the XCP protocol, invoking a second proxy interface corresponding to the task type; sending the task instruction to the application of the central computing platform through the second proxy interface to control the application to execute the task instruction, obtain the driving variable calibration value, and writing the driving variable calibration value into the application software connected to the central computing platform.

[0016] In one exemplary embodiment, the method further includes: when it is determined that the task instruction is a synchronization instruction based on the XCP protocol, invoking a third proxy interface corresponding to the task type; sending the task instruction to the application of the central computing platform through the third proxy interface, so as to control the application to send the obtained driving variable calibration values ​​to the external device according to the start instruction of the task instruction at a preset period, and to stop sending the driving variable calibration values ​​according to the end instruction of the task instruction.

[0017] According to another aspect of the embodiments of this application, a device for determining driving variable calibration values ​​is also provided, comprising: a generation module, configured to generate a measurement task for current vehicle data generated by a target vehicle during driving in response to a trigger operation from an interactive interface; a sending module, configured to send task instructions required for the execution of the measurement task to a central computing platform, so that the central computing platform parses the task instructions to obtain driving variable calibration values ​​corresponding to the current vehicle data; and an updating module, configured to update the current value of the driving variable of the target vehicle to the driving variable calibration value.

[0018] According to another aspect of the embodiments of this application, a device for determining driving variable calibration values ​​is also provided, comprising: a parsing module, configured to parse a task instruction from an external device based on the XCP protocol to obtain a parsing result, wherein the parsing result includes at least the task type of the task instruction; and a calling module, configured to call a proxy interface corresponding to the task type, and send the task instruction to an application of a central computing platform based on the XCP protocol through the proxy interface to control the application to execute the task instruction and obtain the driving variable calibration values ​​of the target vehicle.

[0019] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described method for determining the calibration value of the driving variable when it is run.

[0020] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-described method for determining the calibration value of the driving variable through the computer program.

[0021] In this embodiment, a measurement task is generated for the current onboard data generated by the target vehicle during driving, in response to a trigger operation from an interactive interface; the task instructions required for the execution of the measurement task are sent to a central computing platform, so that the central computing platform can parse the task instructions and obtain the driving variable calibration value corresponding to the current onboard data; the current value of the driving variable of the target vehicle is updated to the driving variable calibration value; by adopting the above technical solution, the technical problem of how to determine the driving variable calibration value of the vehicle during driving to improve the accuracy of vehicle operation is solved, thereby improving the accuracy of vehicle operation. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0023] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a schematic diagram of the hardware environment for a method of determining the calibration value of a driving variable according to an embodiment of this application;

[0025] Figure 2This is a schematic diagram of an automotive electronic and electrical architecture and network topology in related technologies;

[0026] Figure 3 This is a flowchart (I) of a method for determining the calibration value of driving variables according to an embodiment of this application;

[0027] Figure 4 This is a flowchart (II) of the method for determining the calibration value of driving variables according to an embodiment of this application;

[0028] Figure 5 This is a schematic diagram of a measurement and calibration system architecture according to an embodiment of this application;

[0029] Figure 6 This is a timing diagram of XCP protocol data according to an embodiment of this application;

[0030] Figure 7 This is a structural block diagram (a) of a device for determining driving variable calibration values ​​according to an embodiment of this application;

[0031] Figure 8 This is a structural block diagram (II) of a device for determining driving variable calibration values ​​according to an embodiment of this application. Detailed Implementation

[0032] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0033] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0034] Next, the relevant technical terms in this application will be explained.

[0035] Taking the Adaptive AUTOSAR system (AUTOSAR Adaptive Platform System) as an example, this application describes the software standard architecture upon which the in-vehicle operating system relies. Adaptive AUTOSAR is a software architecture based on the AUTOSAR standard, supporting autonomous driving functions and internet connectivity, enabling vehicles to possess higher levels of intelligence and connectivity. It aims to provide more flexible, scalable, and adaptive solutions for automotive electronic systems. As a standardized middleware supporting high-performance ECUs of the next-generation electronic and electrical architecture, Adaptive AUTOSAR is designed and developed based on the principles of Service-Oriented Architecture (SOA). By providing a unified software architecture and interface standards, the Adaptive AUTOSAR system allows for the integration of hardware and software in vehicles, simplifying the development, integration, and maintenance of automotive electronic systems.

[0036] The Adaptive AUTOSAR system consists of a central computing platform (AP) and a regional controller. Service-oriented communication is possible between the AP and the regional controller, and communication between the AP and external devices is possible via Ethernet. For example... Figure 2 As shown, four regional computing units are connected via Ethernet with the central computing unit as the center, and the four regional computing units communicate with the external network through the central computing unit.

[0037] In automotive operating systems, vehicle ECU development refers to the process of developing both the software and hardware for the vehicle's Electronic Control Unit (ECU). The vehicle ECU is a core component of the vehicle's electronic system, responsible for managing and controlling various vehicle functions and systems, including engine control, transmission system, body control, and safety systems. The development process for a vehicle ECU includes requirements analysis, software design, programming, hardware design, and testing and verification. The aim is to ensure that the vehicle ECU meets the vehicle's performance, safety, and environmental requirements, while also comprehensively considering software and hardware compatibility, stability, reliability, and support for various communication protocols and standards. It is a crucial step in the development of vehicle electronic control systems.

[0038] Measurement and calibration are crucial steps in the entire process of vehicle ECU development, ranging from the calibration of individual component software parameters on the bench to the calibration of the vehicle under different time and season conditions.

[0039] With the development of intelligent and connected vehicles, on-chip computing software systems have become more complex, and the number of variables inside the ECU is enormous. During vehicle operation, key variables need to be observed and controlled in real time. In order for the system to operate well, the key variables on which the control algorithm depends need to be initially assigned values ​​and dynamically updated or corrected based on the effective actual values ​​or errors during operation in order to seek an optimal state value.

[0040] In automotive systems, the traditional method for parameter measurement and calibration is the CCP protocol based on CAN (Controller Area Network). This protocol is generally applicable to MCUs running CP systems (AUTOSAR classic platform systems). In the CAN network, the transmission of calibration data is achieved through variable access and calibration based on physical addresses. Usually, the calibration data is directly associated with its physical storage address.

[0041] However, in the Adaptive AUTOSAR system of the new generation of computing chips, multi-process and multi-tasking are supported. Different tasks can run in different processes, resources are isolated between processes, and each process has its own independent resources and virtual address space. Variable addresses are virtual addresses within the virtual address space. Therefore, the traditional CCP system is not suitable for the Adaptive AUTOSAR system of the new generation of computing chips.

[0042] In the Adaptive AUTOSAR system of the new generation of computing chips, the official standards and architecture still lack functional modules for measuring and calibrating internal variables of the ECU.

[0043] This application proposes an Ethernet-based method for measuring and calibrating on-board ECUs for the Adaptive AUTOSAR system. It introduces the XCP-ON-Ethernet protocol (XCP) for real-time measurement and calibration of internal ECU variables.

[0044] The basic XCP on IP communication model under the Ethernet-based Measurement and Calibration Protocol (XCP Over Internet Protocol) is a process of request and response, exchanging data and commands. The Master (such as XCP Master) is the requester, and the Slave (such as XCP Slave) is the responder. XCP protocol data uses TCP / UDP as the transport layer protocol, and is treated as TCP / UDP payload data. It has advantages such as independence from the physical transport layer, large communication capacity, strong portability, flexible deployment, and strong scalability.

[0045] According to one aspect of the embodiments of this application, a method for determining the calibration value of a driving variable is provided. This method for determining the calibration value of a driving variable is widely used in intelligent vehicle and other smart IoT application scenarios. Optionally, in this embodiment, the above-described method for determining the calibration value of a driving variable can be applied to, for example... Figure 1 The hardware environment shown consists of vehicle terminal 102 and server 104. Figure 1 As shown, server 104 is connected to vehicle terminal 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0046] The aforementioned networks may include, but are not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth.

[0047] This embodiment provides a method for determining the calibration values ​​of driving variables, applied to the aforementioned vehicle terminal. The vehicle terminal supports the Adaptive AUTOSAR system, and the XCP-ON-Ethernet protocol is introduced into the Adaptive AUTOSAR system. For example... Figure 3 As shown, this process is implemented by an external device with an XCP graphical interface (the aforementioned external device), where the external device corresponds to the XCP Master within the XCP-ON-Ethernet protocol. Figure 3 This is a flowchart (I) of a method for determining the calibration value of driving variables according to an embodiment of this application. The flowchart includes the following steps:

[0048] Step S302: In response to a trigger operation from the interactive interface, a measurement task is generated for the current onboard data generated by the target vehicle during driving.

[0049] It is understandable that the interactive interface provides users with interactive commands, allowing them to interact with the interface through touch, click, tap, voice control, etc., and the interactive interface then generates trigger operations.

[0050] The current vehicle data can include, for example, vehicle speed, vehicle direction, vehicle position, environmental perception data, vehicle driving status, obstacle detection data, traffic signal recognition, and inter-vehicle communication data.

[0051] Step S304: Send the task instructions required when the measurement task is executed to the central computing platform so that the central computing platform can parse the task instructions and obtain the driving variable calibration values ​​corresponding to the current vehicle data;

[0052] Optionally, it should be noted that the above-mentioned driving variable calibration values, such as constant string identifiers, are stored in a predefined and configured editable file. For example, the Per module provided by Adaptive AUTOSAR can be used to read this editable file into the corresponding virtual storage space in memory, and then read and write access to the editable file can be completed in the virtual storage space.

[0053] Among them, the above-mentioned task instructions include, but are not limited to, the XCP protocol standard basic command for measurement tasks that implement the basic protocol functions of the XCP protocol, the XCP protocol Calibration command for measurement tasks that implement the data calibration function of the XCP protocol, and the XCP protocol synchronization data request for measurement tasks that implement the data synchronization function of the XCP protocol.

[0054] Step S306: Update the current value of the driving variable of the target vehicle to the calibration value of the driving variable.

[0055] Through the above steps, an external device based on the XCP protocol responds to a trigger operation from an interactive interface to generate a measurement task for the current onboard data generated by the target vehicle during its operation. The task instructions required for the execution of the measurement task are sent to the central computing platform, which then parses the task instructions to obtain the calibration values ​​of the driving variables corresponding to the current onboard data. The current values ​​of the driving variables of the target vehicle are updated to the calibration values ​​of the driving variables. This solves the technical problem in related technologies of how to determine the calibration values ​​of driving variables during vehicle operation to improve vehicle operation accuracy, thereby improving vehicle operation accuracy.

[0056] In an exemplary embodiment, the implementation process of sending the task instructions required for the execution of the measurement task to the central computing platform in step S304 above specifically includes: step S11, determining the target transmission interface from the data transmission interface provided by the Ethernet network where the target vehicle is located; step S12, generating a TCP server based on the XCP protocol based on the target transmission interface and the TCP communication protocol, and generating a UDP server based on the XCP protocol based on the target transmission interface and the UDP communication protocol, wherein the TCP server and the external device have a TCP communication channel based on the TCP communication protocol, and the UDP server and the external device have a UDP communication channel based on the UDP communication protocol; step S13, sending the task instructions required for the execution of the measurement task to the central computing platform through the TCP communication channel, and / or, sending the task instructions required for the execution of the measurement task to the central computing platform through the UDP communication channel.

[0057] In this embodiment, the target transmission interface is first determined from the data transmission interface provided by the Ethernet network where the target vehicle is located. Then, a TCP server based on the XCP protocol is generated according to the target transmission interface and the TCP communication protocol, and a UDP server based on the XCP protocol is generated according to the target transmission interface and the UDP communication protocol. A TCP communication channel based on the TCP communication protocol can be established between the TCP server and the external device, and a UDP communication channel based on the UDP communication protocol can be established between the UDP server and the external device. In this way, communication between the external device and the central computing platform can be realized through two different communication channels, thereby improving communication efficiency and accuracy.

[0058] In an exemplary embodiment, before sending the task instructions required for the execution of the measurement task to the central computing platform, the method further includes: step S21, determining the task priority of each measurement task for the plurality of measurement tasks, and determining the execution order of the plurality of measurement tasks according to the task priority of each measurement task, wherein the task priority of each measurement task is determined according to the data storage address corresponding to the task instruction of each measurement task.

[0059] Understandably, a smaller data storage address corresponds to a higher priority. By allocating data storage addresses to different task instructions and then determining the task priority of measurement tasks based on these addresses, the execution order can be determined according to task priority. This eliminates the need to analyze and determine the execution order of each measurement task individually, thus improving the execution efficiency of measurement tasks. Furthermore, each measurement task has an independent process and can utilize its own independent process resources, further enhancing the execution speed of measurement tasks.

[0060] In an exemplary embodiment, step S306 further includes the following execution steps: Step S31, when it is determined that the measurement task is used to implement the basic protocol functions of the XCP protocol, a first task instruction required when the measurement task is executed is generated, wherein the basic protocol functions include at least an initialization protocol function and an asynchronous calibration value acquisition function; S32, the first task instruction is sent to the central computing platform, so that the central computing platform generates an initialization protocol channel between the central computing platform and the external device based on the task instruction, and parses the task instruction to obtain the driving variable calibration value corresponding to the current vehicle data; S33, the driving variable calibration value is obtained from the central computing platform based on the initialization protocol channel.

[0061] In this embodiment, a first task instruction can be sent to the central computing platform. Based on the first task instruction, an initialization protocol channel is generated between the central computing platform and the external device, thereby realizing the initialization protocol function. Furthermore, through the initialization protocol channel, a communication channel is established between the external device and the central computing platform, and the driving variable calibration values ​​calculated by the central computing platform can be obtained through this communication channel.

[0062] In an exemplary embodiment, further, after performing the above step S21, the method includes: step S22, where, if it is determined that the measurement task is used to implement the data calibration function of the XCP protocol, a second task instruction required when the measurement task is executed is generated, wherein the data calibration function represents writing data to the central computing platform; step S23, the second task instruction is sent to the central computing platform so that the central computing platform parses the task instruction, obtains the driving variable calibration value, and writes the driving variable calibration value corresponding to the current vehicle data into the central computing platform.

[0063] In this embodiment, a second task instruction can be sent to a central computing platform. After parsing the task instruction based on the second task instruction, the driving variable calibration value is obtained. Then, according to the second task instruction, the driving variable calibration value corresponding to the current vehicle data is written into the central computing platform. In this way, the central computing platform can write the driving variable calibration value into the application connected to it, and update the driving variable calibration value in real time within the application, thereby displaying the latest results to the user and improving the user experience.

[0064] In an exemplary embodiment, further, after performing the above step S21, the method may include: step S41, where, if it is determined that the measurement task is used to implement the data synchronization function of the XCP protocol, a third task instruction required when the measurement task is executed is generated, wherein the data synchronization function is used to synchronize the driving variable calibration value from the central computing platform to the external device; step S42, the third task instruction is sent to the central computing platform so that the central computing platform parses the task instruction, obtains the driving variable calibration value corresponding to the current vehicle data, and sends the driving variable calibration value according to a preset period.

[0065] This embodiment uses a third task instruction to synchronize the driving variable calibration values ​​from the central computing platform to the external device. Furthermore, when the third task instruction is sent to the central computing platform, the central computing platform can parse the task instruction to obtain the driving variable calibration values ​​corresponding to the current vehicle data, and send the driving variable calibration values ​​according to a preset period. On the one hand, data synchronization improves data security, and on the other hand, sending the driving variable calibration values ​​multiple times in a period reduces the probability of data loss.

[0066] To better understand the process of determining the above-mentioned driving variable calibration values, the implementation flow of the above-mentioned driving variable calibration values ​​determination method will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.

[0067] This embodiment provides a method for determining the calibration value of driving variables. Figure 4 This is a flowchart (II) of the method for determining the calibration value of driving variables according to an embodiment of this application, as shown below. Figure 4 As shown, the specific steps are as follows:

[0068] Step S402: Parse the task instructions from the external device based on the XCP protocol to obtain the parsing result, wherein the parsing result includes at least the task type of the task instructions;

[0069] Step S404: Call the proxy interface corresponding to the task type, and send the task instruction to the application of the central computing platform through the proxy interface to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle.

[0070] Through the above steps, a central computing platform based on the XCP protocol parses task instructions from external devices based on the XCP protocol to obtain parsing results. The parsing results include at least the task type of the task instruction. A proxy interface corresponding to the task type is invoked, and the task instruction is sent to the application program of the central computing platform through the proxy interface to control the application program to execute the task instruction and obtain the driving variable calibration value of the target vehicle. This solves the technical problem in related technologies of how to determine the driving variable calibration value of a vehicle during driving to improve the accuracy of vehicle operation, thereby improving the accuracy of vehicle operation.

[0071] It is understandable that the driving variable calibration values ​​of the target vehicle and the driving variable calibration values ​​corresponding to the current on-board data are essentially the same. They are just different descriptions for different subjects. The driving variable calibration values ​​of the target vehicle correspond to the central computing platform based on the XCP protocol, that is, the driving variable calibration values ​​corresponding to the current on-board data correspond to the external devices of the XCP protocol.

[0072] In an exemplary embodiment, the process of parsing the task instruction from the external device based on the XCP protocol in step S402 to obtain the parsing result further includes the following steps: Step S51, decrypting the task instruction using a pre-agreed decryption format between the external device and the central computing platform to obtain message information; Step S52, performing format verification on the message information, and determining the message information as the parsing result if it is determined that the message information passes the format verification.

[0073] In this embodiment, the task instruction can be decrypted using a pre-agreed decryption format between the external device and the central computing platform to obtain message information. Then, the message information that passes the format verification is determined as the parsing result, thereby improving the confidentiality and security of the data.

[0074] In an exemplary embodiment, step S404 further includes: step S61, when it is determined that the task instruction is a basic instruction based on the XCP protocol, calling the first proxy interface corresponding to the task type; step S62, sending the task instruction to the application of the central computing platform through the first proxy interface, so as to control the application to establish an initialization protocol channel between the central computing platform and the external device based on the task instruction, and to execute the task instruction to obtain the driving variable calibration value.

[0075] In this embodiment, the first proxy interface corresponding to the task type can be called through the basic instructions of the XCP protocol to send the task instructions to the application of the central computing platform. Then, the application establishes an initialization protocol channel between the central computing platform and the external device based on the task instructions, and executes the task instructions to obtain the driving variable calibration value. In this way, the central computing platform can realize interaction with the external device through the initialization protocol channel, such as sending the driving variable calibration value to the external device.

[0076] In an exemplary embodiment, step S404, in addition to steps S61-S62, may further include: step S71, in determining that the task instruction is a calibration instruction based on the XCP protocol, calling the second proxy interface corresponding to the task type; step S72, sending the task instruction to the application of the central computing platform through the second proxy interface to control the application to execute the task instruction, obtain the driving variable calibration value, and write the driving variable calibration value into the application software connected to the central computing platform.

[0077] In this embodiment, the calibration command based on the XCP protocol can call the second proxy interface corresponding to the task type and send the task command to the application of the central computing platform. The application then executes the task command to obtain the driving variable calibration value. In this way, the central computing platform can write the driving variable calibration value into the application software connected to the central computing platform and update the driving variable calibration value in real time within the application, thereby improving the accuracy of the data displayed to the user in real time.

[0078] In an exemplary embodiment, in addition to steps S61-S62 and S71-S72, step S404 further includes: step S81, in determining that the task instruction is a synchronization instruction based on the XCP protocol, calling a third proxy interface corresponding to the task type; step S82, sending the task instruction to the application of the central computing platform through the third proxy interface, so as to control the application to send the obtained driving variable calibration values ​​to the external device according to the start instruction of the task instruction at a preset period, and to stop sending the driving variable calibration values ​​according to the end instruction of the task instruction.

[0079] In this embodiment, a synchronization command based on the XCP protocol calls a third proxy interface corresponding to the task type. The task command is then sent to the application program on the central computing platform through the third proxy interface. The application program sends the acquired driving variable calibration values ​​to the external device according to a preset cycle based on the start command of the task command, and stops sending the driving variable calibration values ​​according to the end command of the task command. This not only allows for multiple transmissions of driving variable calibration values, reducing the probability of data loss, but also improves the control efficiency of sending driving variable calibration values ​​by controlling the cessation of transmission of driving variable calibration values ​​after successful transmission according to the end command of the task command.

[0080] In one embodiment, such as Figure 5 As shown, the measurement and calibration software architecture based on the Adaptive AUTOSAR architecture standard includes the XCP protocol stack platform module (platform layer) and the XCP APP application software (application layer). The XCP Stack (slave), as the implementation component of the measurement and calibration protocol, belongs to the application layer protocol of TCP / UDP. It can represent the configured XCP calibration quantification configuration file as a set of calibration quantifications to be read or written during subsequent measurement and calibration, and is used as the basis for determining the validity of a certain calibration quantification. It can call the Per interface to read the memory space corresponding to the XCP calibration quantification configuration file. Under the measurement and calibration software architecture, when using sub-functional services, cross-process calls are required through the "ara::com" interface. In short, this application, based on the POSIX standard interface, uses the XCP Daemon Slave program as the basic XCP functional module of the AP under the XCP Protocol, establishing communication with the XCP Master to provide XCP measurement and calibration functional services. The "ara::com" interface can represent an application programming interface (API) or an interface used for communication and data exchange between different software modules of communication protocols such as the XCP Protocol.

[0081] Among them, the calibration variables (such as constant string identifiers) in the XCP calibration configuration file mentioned above can be predefined and editable files. By using the Per module provided by Adaptive AUTOSAR to read and write this editable file, the read calibration values ​​can also be persistently stored, realizing the dynamic configuration of the calibration quantity and improving the dynamic flexibility of measurement and calibration.

[0082] Among them, the calibration variable can be understood as the calibration value of the driving variable mentioned above.

[0083] It should be noted that the XCP protocol includes several sub-protocols, each with its own business functions. These business functions are completed through independent processes. For example, the CM module provided by Adaptive AUTOSAR can be used to enable cross-process communication between the XCPDeamon process and the XCP App.

[0084] Furthermore, for details on the communication and interaction process, please refer to [link / reference]. Figure 6 A timing diagram. For example... Figure 6 As shown, the basic mode of measurement and calibration is request-response, i.e., Master-Slave. The Master, for example, is an external device with an XCP graphical interface. This external device can be used to observe calibration values ​​and trigger calibration; it is the initiator of the command. The Slave corresponds to the XCP Stack / Damon, serving as the central computing unit and receiving instructions from the external device. Then, the XCP Application, in conjunction with the SlaveDamon, completes the specific tasks of measurement and calibration.

[0085] Specifically, the implementation process is as follows:

[0086] Step 1. Based on the socket interface of the Ethernet protocol stack of POSIX OS, build TCP / UDP communication services and create XCP TCP server and XCP UDP server respectively.

[0087] Step 2. Generate XCP standard basic commands (corresponding to measurement tasks that implement the basic protocol functions of the XCP protocol) according to the Ethernet-based XCP Protocol specification. Send the XCP standard basic commands to XCPDeamon, which parses the Command Transmission Object (CTO). When the CTO task is completed, construct the response command for the CTO. The XCP standard basic commands (i.e., the first task instructions mentioned above) are used to complete basic protocol functions such as connection initialization for measurement and calibration, and their range is 0xF1–0xFF.

[0088] Specific correspondence Figure 6 In:

[0089] In step S601, the Master (i.e., XCP Tool) constructs the FF command CTO (i.e., XCP-CTO / CONNECT(FF)) and sends it to establish a Master-Slave connection (TCP or UDP).

[0090] In step S602, the Slave (i.e., XCP Daemon) receives the FF command, performs initialization, and returns RES FF (i.e., XCP-CTO / RES(FF)) to the Master, indicating that the connection is established.

[0091] In step S603, the Master constructs an asynchronous measurement F4 message CTO (i.e., XCP-CTO / SHORT UPLOAD(F4)) and sends it to the Slave n.

[0092] In step S604, the Slave decapsulates the message and sends the decapsulated data (i.e., read datal()) to the F4 App application, i.e., the XCP Application, and reads the calibrated value in the F4 App application.

[0093] Step S605: Send the return value (i.e., read datal()) to the Slave so that the Slave can forward the return value to the Master.

[0094] In step S606, the Slave returns a RES FF response (i.e., XCP-CTO / RES(FF)) to the Master.

[0095] Step 3. Generate an XCP protocol Calibration command based on the Ethernet-based XCP Protocol specification (corresponding to the measurement task used to implement the data calibration function of the XCP protocol, i.e., the second task instruction), and send the XCP protocol Calibration command to the XCP Daemon. The XCP Daemon parses the Calibration Command Transmission Object (CTO). When the task of writing the calibration value is completed, it constructs a response command for the Calibration Command Transmission Object (CTO).

[0096] The XCP protocol calibration command is used to write data to the XCP Slave, and its range is 0xEC-0xFO.

[0097] It's understandable that the Calibration command in the XCP protocol is used to send calibration data or parameters to the ECU. This command allows for the adjustment, calibration, and optimization of parameters within the ECU. These parameters can include curves, mappings, calibration coefficients, etc., used to adjust functions such as engine control, transmission control, fuel system, and emission control. Through the Calibration command, engineers can adjust the vehicle's performance and characteristics to meet different performance and environmental requirements.

[0098] Specifically, for example, the Master constructs FO command data CTO and sends it. After receiving the FO command data, the Slave parses it and further completes the writing of the calibrated value in the FO App application, and returns RES FF to the Master.

[0099] Step 4. Generate an XCP protocol synchronization data request (corresponding to the measurement task used to implement the data synchronization function of the XCP protocol, i.e., the third task instruction) according to the Ethernet-based XCP Protocol specification. Send the XCP protocol synchronization data request to the XCP Daemon, which parses the Command Transmission Object (CTO). After the command task is completed, construct the Data Transmission Object (DTO) and complete the periodic transmission of DAQ command data of the Data Transmission Object (DTO), that is, periodically return DAQ data from the XCP Slave to the XCP Master.

[0100] The XCP protocol synchronization data request is used to synchronize XCP Slave data to XCP Master, and its range is 0xE3-0xC7.

[0101] Specific correspondence Figure 6 In:

[0102] In step S607, the Master constructs a DD synchronization measurement start command CTO (i.e., XCP-CTO / START STOP SYNC(DD)) and sends the message.

[0103] In step S608, after receiving this DD CTO, the Slave returns a RES FF response (i.e., XCP-CTO / RES(FF)).

[0104] In step S609, while responding, the Slave triggers the periodic sending of DTO / DAQ (i.e., XCP-DTO / DAQ()) messages to the Master according to the instruction.

[0105] Steps S610 to S611 can refer to steps S604-S605 above.

[0106] In step S612, the Master constructs a DD synchronization measurement end command CTO and sends the message.

[0107] In step S613, after receiving this DD CTO, the Slave ends the cycle by sending a DAQ message and returning a RES FF response.

[0108] Step 5. Each sub-function of the XCP protocol requires the cooperation of the application layer XCP App to implement. When it is necessary to read or write data, the corresponding XCP application programming interface (API) should be designed, such as the read or write data interface.

[0109] After designing the client / server communication code framework for CM communication, interface types such as Method / Event / Field can be flexibly designed. Then, the Adaptive AutoSar CM module interface can be used to implement communication between the XCP App process and the XCP StackDeamon process. This means that by providing XCP application programming interface header files and a dynamic library encapsulating the cross-process communication framework, it can be called by external XCP measurement and calibration application scenarios.

[0110] In this embodiment, after receiving and parsing the F4 / FO / DD instruction CTO through the Slave, it calls the corresponding CMProxy interface to send the request to the XCP Application where the corresponding F4 / FO / DD function service CM Skeleton is located, and completes the reading and writing of the calibrated value within the XCP Application.

[0111] Through the above steps, the XCP-ON-Ethernet protocol (XCP) is introduced into the Adaptive AUTOSAR system for real-time measurement and calibration of ECU internal variables, thereby improving the rationality of ECU calibration values.

[0112] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a vehicle terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0113] Optionally, in one embodiment, a system for determining driving variable calibration values ​​is also proposed, including: an external device based on the XCP protocol, and a central computing platform based on the XCP protocol.

[0114] The external device based on the XCP protocol is used to: generate a measurement task for the current vehicle data generated by the target vehicle during driving in response to a trigger operation from an interactive interface; send the task instructions required for the execution of the measurement task to the central computing platform, so that the central computing platform can parse the task instructions and obtain the driving variable calibration value corresponding to the current vehicle data; and update the current value of the driving variable of the target vehicle to the driving variable calibration value.

[0115] A central computing platform based on the XCP protocol is used to: parse task instructions from external devices based on the XCP protocol to obtain parsing results, wherein the parsing results include at least the task type of the task instruction; call a proxy interface corresponding to the task type, and send the task instruction to the application of the central computing platform through the proxy interface to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle.

[0116] Figure 7 This is a structural block diagram (I) of a device for determining driving variable calibration values ​​according to an embodiment of this application, as shown below. Figure 7 As shown, it includes:

[0117] The generation module 702 is used to generate a measurement task for the current on-board data generated by the target vehicle during driving, in response to a trigger operation from an interactive interface.

[0118] The sending module 704 is used to send the task instructions required when the measurement task is executed to the central computing platform, so that the central computing platform can parse the task instructions and obtain the driving variable calibration value corresponding to the current vehicle data.

[0119] The update module 706 is used to update the current value of the driving variable of the target vehicle to the calibration value of the driving variable.

[0120] The aforementioned device generates a measurement task for the current onboard data generated by the target vehicle during its operation, in response to a trigger operation from an interactive interface via an external device based on the XCP protocol. The task instructions required for the execution of the measurement task are sent to a central computing platform, which then parses the task instructions to obtain the calibration values ​​of the driving variables corresponding to the current onboard data. The current values ​​of the driving variables of the target vehicle are updated to the calibration values. This solves the technical problem in related technologies of how to determine the calibration values ​​of driving variables during vehicle operation to improve vehicle operation accuracy, thereby improving vehicle operation accuracy.

[0121] In an exemplary embodiment, the sending module 704 is further configured to implement: step S11, determining a target transmission interface from the data transmission interfaces provided by the Ethernet network where the target vehicle is located; step S12, generating a TCP server based on the XCP protocol based on the target transmission interface and the TCP communication protocol, and generating a UDP server based on the XCP protocol based on the target transmission interface and the UDP communication protocol, wherein the TCP server and the external device have a TCP communication channel based on the TCP communication protocol, and the UDP server and the external device have a UDP communication channel based on the UDP communication protocol; step S13, sending the task instructions required for the measurement task to be executed to the central computing platform through the TCP communication channel, and / or sending the task instructions required for the measurement task to be executed to the central computing platform through the UDP communication channel.

[0122] In an exemplary embodiment, the sending module 704 is further configured to, before sending the task instructions required when the measurement task is executed to the central computing platform, further implement: step S21, for multiple measurement tasks, determine the task priority of each measurement task, and determine the execution order of the multiple measurement tasks according to the task priority of each measurement task, wherein the task priority of each measurement task is determined according to the data storage address corresponding to the task instruction corresponding to each measurement task, and the data storage addresses corresponding to the task instructions of any two measurement tasks are different.

[0123] In an exemplary embodiment, the update module 706 is further configured to perform: step S31, in the case that the measurement task is used to implement the basic protocol functions of the XCP protocol, generating a first task instruction required when the measurement task is executed, wherein the basic protocol functions include at least an initialization protocol function and an asynchronous calibration value acquisition function; S32, sending the first task instruction to the central computing platform, so that the central computing platform generates an initialization protocol channel between the central computing platform and the external device based on the first task instruction, and parses the task instruction to obtain the driving variable calibration value corresponding to the current vehicle data; S33, obtaining the driving variable calibration value from the central computing platform based on the initialization protocol channel.

[0124] In an exemplary embodiment, the update module 706 is further configured to perform: step S22, in the case that the measurement task is used to implement the data calibration function of the XCP protocol, generating a second task instruction required when the measurement task is executed, wherein the data calibration function represents writing data to the central computing platform; step S23, sending the second task instruction to the central computing platform so that the central computing platform parses the second task instruction, obtains the driving variable calibration value, and writes the driving variable calibration value corresponding to the current vehicle data into the application software connected to the central computing platform.

[0125] In an exemplary embodiment, the update module 706 is further configured to perform: step S41, in the case that the measurement task is used to implement the data synchronization function of the XCP protocol, generating a third task instruction required when the measurement task is executed, wherein the data synchronization function is used to synchronize the driving variable calibration value from the central computing platform to the external device; step S42, sending the third task instruction to the central computing platform so that the central computing platform parses the third task instruction, obtains the driving variable calibration value, and sends the driving variable calibration value according to a preset period.

[0126] Figure 8 This is a structural block diagram (II) of a device for determining driving variable calibration values ​​according to an embodiment of this application, as shown below. Figure 8 As shown, it includes:

[0127] The parsing module 802 is used to parse task instructions from an external device based on the XCP protocol to obtain parsing results, wherein the parsing results include at least the task type of the task instruction;

[0128] The calling module 804 is used to call the proxy interface corresponding to the task type, and send the task instruction to the application of the central computing platform through the proxy interface, so as to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle.

[0129] The above device parses task instructions from external devices based on the XCP protocol through a central computing platform, obtaining parsing results. These parsing results include at least the task type of the task instruction. A proxy interface corresponding to the task type is invoked, and the task instruction is sent to the application program on the central computing platform via the proxy interface. This controls the application program to execute the task instruction, thereby obtaining the calibration values ​​of the target vehicle's driving variables. This solves the technical problem in related technologies of how to determine the calibration values ​​of driving variables during vehicle operation to improve vehicle handling accuracy, thus improving vehicle handling accuracy.

[0130] In an exemplary embodiment, the parsing module 802 is further configured to implement the following steps: Step S51, decrypting the task instruction using a pre-agreed decryption format between the external device and the central computing platform to obtain message information; Step S52, performing format verification on the message information, and determining the message information as the parsing result if the message information passes the format verification.

[0131] In an exemplary embodiment, the aforementioned calling module 804 is further configured to perform: step S61, in determining that the task instruction is a basic instruction based on the XCP protocol, calling the first proxy interface corresponding to the task type; step S62, sending the task instruction to the application of the central computing platform through the first proxy interface, so as to control the application to establish an initialization protocol channel between the central computing platform and the external device based on the task instruction, and to execute the task instruction to obtain the driving variable calibration value.

[0132] In an exemplary embodiment, the aforementioned calling module 804 is further configured to perform: step S71, in determining that the task instruction is a calibration instruction based on the XCP protocol, calling the second proxy interface corresponding to the task type; step S72, sending the task instruction to the application of the central computing platform through the second proxy interface to control the application to execute the task instruction, obtain the driving variable calibration value, and write the driving variable calibration value into the application software connected to the central computing platform.

[0133] In an exemplary embodiment, the aforementioned calling module 804 is further configured to perform: step S81, in the case that the task instruction is a synchronization instruction based on the XCP protocol, calling the third proxy interface corresponding to the task type; step S82, sending the task instruction to the application of the central computing platform through the third proxy interface, so as to control the application to send the obtained driving variable calibration values ​​to the external device according to the start instruction of the task instruction according to a preset period, and to stop sending the driving variable calibration values ​​according to the end instruction of the task instruction.

[0134] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.

[0135] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:

[0136] S1, in response to a trigger operation from an interactive interface, generates a measurement task for the current onboard data generated by the target vehicle during its operation;

[0137] S2, the task instructions required when the measurement task is executed are sent to the central computing platform, so that the central computing platform can parse the task instructions and obtain the driving variable calibration value corresponding to the current vehicle data;

[0138] S3, update the current value of the driving variable of the target vehicle to the calibration value of the driving variable.

[0139] Alternatively, in this embodiment, the storage medium may also be configured to store program code for performing the following steps:

[0140] S1, parse the task instructions from the external device based on the XCP protocol to obtain the parsing result, wherein the parsing result includes at least the task type of the task instructions;

[0141] S2, invoke the proxy interface corresponding to the task type, and send the task instruction to the application of the central computing platform based on the XCP protocol through the proxy interface, so as to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle.

[0142] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0143] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0144] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0145] S1, in response to a trigger operation from an interactive interface, generates a measurement task for the current onboard data generated by the target vehicle during its operation;

[0146] S2, the task instructions required when the measurement task is executed are sent to the central computing platform, so that the central computing platform can parse the task instructions and obtain the driving variable calibration value corresponding to the current vehicle data;

[0147] S3, update the current value of the driving variable of the target vehicle to the calibration value of the driving variable.

[0148] Alternatively, in this embodiment, the storage medium may also be configured to store program code for performing the following steps:

[0149] S1, parse the task instructions from the external device based on the XCP protocol to obtain the parsing result, wherein the parsing result includes at least the task type of the task instructions;

[0150] S2, invoke the proxy interface corresponding to the task type, and send the task instruction to the application of the central computing platform based on the XCP protocol through the proxy interface, so as to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle.

[0151] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0152] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0153] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0154] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for determining the calibration value of a driving variable, characterized in that, For use with external devices based on the XCP protocol, including: In response to a trigger action from an interactive interface, a measurement task is generated for the current onboard data generated by the target vehicle during its operation. The task instructions required when the measurement task is executed are sent to the central computing platform, so that the central computing platform can parse the task instructions and obtain the driving variable calibration value corresponding to the current vehicle data. Update the current value of the driving variable of the target vehicle to the calibration value of the driving variable; The method further includes, before sending the task instructions required for the execution of the measurement task to the central computing platform: For multiple measurement tasks, the task priority of each measurement task is determined, and the execution order of the multiple measurement tasks is determined according to the task priority of each measurement task. The task priority of each measurement task is determined according to the data storage address corresponding to the task instruction of each measurement task, and the data storage address corresponding to the task instruction of any two measurement tasks is different.

2. The method for determining the calibration value of driving variables according to claim 1, characterized in that, Sending the task instructions required for the execution of the measurement task to the central computing platform, including: The target transmission interface is determined from the data transmission interface provided by the Ethernet network where the target vehicle is located; A TCP server based on the XCP protocol is generated based on the target transmission interface and the TCP communication protocol, and a UDP server based on the XCP protocol is generated based on the target transmission interface and the UDP communication protocol. The TCP server and the external device have a TCP communication channel based on the TCP communication protocol, and the UDP server and the external device have a UDP communication channel based on the UDP communication protocol. The task instructions required for the execution of the measurement task are sent to the central computing platform via the TCP communication channel, and / or via the UDP communication channel.

3. The method for determining the calibration value of driving variables according to claim 1, characterized in that, The task instructions required for the execution of the measurement task are sent to the central computing platform, so that the central computing platform can parse the task instructions and obtain the driving variable calibration values ​​corresponding to the current vehicle data, including: Given that the measurement task is used to implement the basic protocol functions of the XCP protocol, a first task instruction required when the measurement task is executed is generated, wherein the basic protocol functions include at least an initialization protocol function and an asynchronous calibration value acquisition function. The first task instruction is sent to the central computing platform, so that the central computing platform generates an initialization protocol channel between the central computing platform and the external device based on the first task instruction, and parses the task instruction to obtain the driving variable calibration value corresponding to the current vehicle data; The driving variable calibration value is obtained from the central computing platform based on the initialization protocol channel.

4. The method for determining the calibration value of driving variables according to claim 1, characterized in that, The method further includes: If it is determined that the measurement task is used to implement the data calibration function of the XCP protocol, a second task instruction required when the measurement task is executed is generated, wherein the data calibration function represents writing data to the central computing platform; The second task instruction is sent to the central computing platform so that the central computing platform can parse the second task instruction and obtain the driving variable calibration value; The driving variable calibration values ​​are written into the application software connected to the central computing platform.

5. The method for determining the calibration value of driving variables according to claim 1, characterized in that, The method further includes: If it is determined that the measurement task is used to implement the data synchronization function of the XCP protocol, a third task instruction required when the measurement task is executed is generated, wherein the data synchronization function is used to synchronize the driving variable calibration value from the central computing platform to the external device; The third task instruction is sent to the central computing platform, so that the central computing platform can parse the third task instruction, obtain the driving variable calibration value, and send the driving variable calibration value according to a preset period.

6. A method for determining the calibration value of a driving variable, characterized in that, Applications include central computing platforms based on the XCP protocol, including: The task instructions from an external device based on the XCP protocol are parsed to obtain a parsing result, wherein the parsing result includes at least the task type of the task instruction; The proxy interface corresponding to the task type is invoked, and the task instruction is sent to the application of the central computing platform through the proxy interface to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle. This includes, before parsing task instructions from external devices based on the XCP protocol: Receive the task instructions sent by the external device when the measurement task is executed; For multiple measurement tasks, the external device determines the task priority of each measurement task and determines the execution order of the multiple measurement tasks based on the task priority of each measurement task. The task priority of each measurement task is determined based on the data storage address corresponding to the task instruction of each measurement task, and the data storage addresses corresponding to the task instructions of any two measurement tasks are different.

7. The method for determining the calibration value of driving variables according to claim 6, characterized in that, The task commands from external devices based on the XCP protocol are parsed to obtain the parsing results, including: The task instruction is decrypted using a pre-agreed decryption format between the external device and the central computing platform to obtain message information; The message information is format-validated, and if the message information passes the format validation, the message information is determined as the parsing result.

8. The method for determining the calibration value of driving variables according to claim 7, characterized in that, Invoking the proxy interface corresponding to the task type, and sending the task instruction to the application of the central computing platform through the proxy interface to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle, including: If it is determined that the task instruction is a basic instruction based on the XCP protocol, the first proxy interface corresponding to the task type is invoked. The task instruction is sent to the application of the central computing platform through the first proxy interface, so as to control the application to establish an initialization protocol channel between the central computing platform and the external device based on the task instruction, and to execute the task instruction to obtain the driving variable calibration value.

9. The method for determining the calibration value of driving variables according to claim 8, characterized in that, The method further includes: If it is determined that the task instruction is a calibration instruction based on the XCP protocol, the second proxy interface corresponding to the task type is invoked; The task instruction is sent to the application program of the central computing platform through the second proxy interface to control the application program to execute the task instruction, obtain the driving variable calibration value, and write the driving variable calibration value into the application software connected to the central computing platform.

10. The method for determining the calibration value of driving variables according to claim 8, characterized in that, The method further includes: If it is determined that the task instruction is a synchronous instruction based on the XCP protocol, the third proxy interface corresponding to the task type is invoked; The task instruction is sent to the application of the central computing platform through the third proxy interface, so as to control the application to send the obtained driving variable calibration values ​​to the external device according to the start instruction of the task instruction at a preset period, and to stop sending the driving variable calibration values ​​according to the end instruction of the task instruction.

11. A device for determining the calibration value of a driving variable, characterized in that, include: The generation module is used to generate measurement tasks for the current onboard data generated by the target vehicle during its operation in response to a trigger operation from the interactive interface. The sending module is used to send the task instructions required when the measurement task is executed to the central computing platform, so that the central computing platform can parse the task instructions and obtain the driving variable calibration value corresponding to the current vehicle data. The update module is used to update the current value of the driving variable of the target vehicle to the calibration value of the driving variable; The sending module is further configured to determine the task priority of each of the multiple measurement tasks, and determine the execution order of the multiple measurement tasks based on the task priority of each measurement task. The task priority of each measurement task is determined based on the data storage address corresponding to the task instruction of each measurement task, and the data storage addresses corresponding to the task instructions of any two measurement tasks are different.

12. A device for determining the calibration value of a driving variable, characterized in that, include: A parsing module is used to parse task instructions from an external device based on the XCP protocol to obtain parsing results, wherein the parsing results include at least the task type of the task instruction; The calling module is used to call the proxy interface corresponding to the task type, and send the task instruction to the application of the central computing platform based on the XCP protocol through the proxy interface, so as to control the application to execute the task instruction and obtain the driving variable calibration value of the target vehicle. The parsing module is further configured to receive the task instructions sent by the external device when the measurement task is executed; wherein, for multiple measurement tasks, the external device determines the task priority of each measurement task and determines the execution order of the multiple measurement tasks according to the task priority of each measurement task, wherein the task priority of each measurement task is determined according to the data storage address corresponding to the task instruction of each measurement task, and the data storage addresses corresponding to the task instructions of any two measurement tasks are different.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 10.

14. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 10 through the computer program.

Citation Information

Patent Citations

  • Data table updating method and device

    CN113127489A

  • Data processing upper computer, method and device, electronic equipment and storage medium

    CN116700207A