Vehicle function data processing method, electronic equipment and storage medium

By acquiring and compiling vehicle function data and generating optimized execution files, the problems of uneven resource allocation and low operating efficiency in vehicle function data processing methods are solved, and efficient resource utilization and optimized data processing effects are achieved.

CN120029628APending Publication Date: 2025-05-23GUANGZHOU XIAOPENG MOTORS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510107649.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the prior art, the vehicle functional data processing method has problems of uneven resource allocation and low operating efficiency.

Method used

By obtaining the initial function data of multiple functions to be implemented by the target vehicle and the compilation option allocation strategy, using this strategy to compile and process the initial function data, obtain the multiple function compilation results, and merge them to generate the optimized target execution file, and finally execute the file to obtain the optimized target execution result.

Benefits of technology

It realizes flexible adjustment of optimization levels according to different scenarios, adjusting compilation options in real time, improving vehicle function data processing efficiency, optimizing resource allocation, and solving the problems of uneven resource allocation and low operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029628A_ABST
    Figure CN120029628A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle function data processing method, electronic equipment and a storage medium. The method comprises the following steps: acquiring initial function data corresponding to a plurality of to-be-realized functions of a target vehicle and a compilation option distribution strategy; compiling the initial function data by utilizing a compiling option distribution strategy to obtain a plurality of function compiling results; merging the plurality of function compiling results to obtain a target execution file; and performing execution processing on the target execution file to obtain a target execution result. According to the invention, the technical problems of non-uniform resource allocation and low operation efficiency of a vehicle function data processing method provided in the related technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of automotive electronics, and in particular to a vehicle function data processing method, electronic equipment, and storage medium. Background Art

[0002] With the rapid development of smart cars and automotive electronic domain controller technology, domain control design based on microcontroller units (MCUs) has gradually become the mainstream trend of automotive electronic architecture (EEA). Under the EEA design framework, regional controllers carry heavier application functions than independent electronic control units (ECUs) in traditional distributed architectures, and their load is about 2 to 3 times that of traditional ECUs. In related technologies, multi-core strategies are usually used to improve MCU performance, that is, by distributing program execution on different cores, the computing pressure of a single MCU is reduced, thereby improving the overall processing power of the system. However, since the cost of multi-core MCUs is generally higher than that of single-core MCUs, and their inherent complexity may induce additional software development difficulties and system integration problems, higher requirements are placed on resource optimization and cost control.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present disclosure provide a vehicle function data processing method, an electronic device, and a storage medium to at least solve the technical problems of uneven resource allocation and low operating efficiency existing in the vehicle function data processing method provided in the related art.

[0005] According to one aspect of an embodiment of the present disclosure, a vehicle function data processing method is provided, including: obtaining initial function data and a compilation option allocation strategy corresponding to multiple to-be-implemented functions of a target vehicle, wherein the initial function data is used to represent source code data of the multiple to-be-implemented functions, and the compilation option allocation strategy is used to allocate target compilation options corresponding to the multiple to-be-implemented functions, and the target compilation options are used to adjust the program running time and storage resource occupancy corresponding to the to-be-implemented functions; compiling the initial function data using the compilation option allocation strategy to obtain multiple function compilation results; merging the multiple function compilation results to obtain a target execution file; and executing the target execution file to obtain a target execution result, wherein the target execution result is used to represent the function execution results corresponding to the multiple to-be-implemented functions.

[0006] Optionally, obtaining the compilation option allocation strategy includes: obtaining function requirement information and function priority information corresponding to multiple functions to be implemented, wherein the function requirement information is used to determine the running speed requirements and storage resource requirements corresponding to the functions to be implemented; determining target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on the function requirement information and / or function priority information, wherein the multiple candidate compilation options include: general optimization options, speed optimization options, size optimization options; and generating a compilation option allocation strategy according to the target compilation options corresponding to the multiple functions to be implemented.

[0007] Optionally, determining target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on function requirement information and function priority information includes: in response to determining that an initial running time of the function to be implemented satisfies a preset running time condition based on the function requirement information, and determining that the real-time priority of the function to be implemented is higher than a preset level based on the function priority information, determining a speed optimization option as the target compilation option for the function to be implemented, wherein the preset running time condition is used to determine that the initial running time is greater than the preset running time.

[0008] Optionally, determining target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on function requirement information includes: in response to determining based on the function requirement information that an initial program size of the function to be implemented satisfies a preset size condition, determining a size optimization option as the target compilation option for the function to be implemented, wherein the preset size condition is used to determine that the initial program size is larger than the preset program size.

[0009] Optionally, determining target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on function requirement information and function priority information includes: in response to determining based on the function requirement information that an initial running time of the function to be implemented does not meet a preset time condition, determining based on the function priority information that the real-time priority of the function to be implemented is lower than a preset level, and determining based on the function requirement information that an initial program size of the function to be implemented does not meet a preset size condition, determining a general optimization option as the target compilation option for the function to be implemented.

[0010] Optionally, compiling the initial function data using the compilation option allocation strategy to obtain multiple function compilation results includes: determining target compilation options corresponding to multiple functions to be implemented using the compilation option allocation strategy; compiling the initial function data corresponding to the multiple functions to be implemented based on the target compilation options to obtain multiple function compilation results.

[0011] Optionally, the vehicle function data processing method also includes: determining the total program running time and the total storage resource occupancy corresponding to multiple functions to be implemented based on the compilation option allocation strategy; evaluating the total program running time and the total storage resource occupancy to obtain an evaluation result; and updating the compilation option allocation strategy according to the evaluation result.

[0012] According to another aspect of the embodiment of the present disclosure, a vehicle function data processing device is also provided, including: an acquisition module, used to acquire initial function data and compilation option allocation strategy corresponding to multiple to-be-implemented functions of a target vehicle, wherein the initial function data is used to represent source code data of multiple to-be-implemented functions, and the compilation option allocation strategy is used to allocate target compilation options corresponding to multiple to-be-implemented functions, and the target compilation options are used to adjust the program running time and storage resource occupancy corresponding to the to-be-implemented functions; a compilation module, used to compile and process the initial function data using the compilation option allocation strategy to obtain multiple function compilation results; a merging module, used to merge and process multiple function compilation results to obtain a target execution file; and an execution module, used to execute and process the target execution file to obtain a target execution result, wherein the target execution result is used to represent the function execution results corresponding to multiple to-be-implemented functions.

[0013] Optionally, the acquisition module is also used to: obtain function requirement information and function priority information corresponding to multiple functions to be implemented, wherein the function requirement information is used to determine the running speed requirements and storage resource requirements corresponding to the functions to be implemented; determine target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on the function requirement information and / or function priority information, wherein the multiple candidate compilation options include: general optimization options, speed optimization options, size optimization options; generate a compilation option allocation strategy according to the target compilation options corresponding to the multiple functions to be implemented.

[0014] Optionally, the acquisition module is also used to: in response to determining based on the function requirement information that the initial running time of the function to be implemented meets a preset running time condition, and determining based on the function priority information that the real-time priority of the function to be implemented is higher than a preset level, determine the speed optimization option as the target compilation option for the function to be implemented, wherein the preset running time condition is used to determine that the initial running time is greater than the preset running time.

[0015] Optionally, the acquisition module is also used to: in response to determining based on the functional requirement information that the initial program size of the function to be implemented meets a preset size condition, determine the size optimization option as the target compilation option for the function to be implemented, wherein the preset size condition is used to determine that the initial program size is larger than the preset program size.

[0016] Optionally, the acquisition module is also used to: in response to determining based on the function requirement information that the initial running time of the function to be implemented does not meet the preset time condition, determining based on the function priority information that the real-time priority of the function to be implemented is lower than a preset level, and determining based on the function requirement information that the initial program size of the function to be implemented does not meet the preset size condition, determine the general optimization option as the target compilation option for the function to be implemented.

[0017] Optionally, the compilation module is further used to: determine target compilation options corresponding to multiple functions to be implemented using a compilation option allocation strategy; and compile and process initial function data corresponding to the multiple functions to be implemented based on the target compilation options to obtain multiple function compilation results.

[0018] Optionally, the vehicle function data processing device also includes: a determination module, which is used to determine the total program running time and the total storage resource occupancy corresponding to multiple functions to be implemented based on the compilation option allocation strategy; an evaluation module, which is used to evaluate the total program running time and the total storage resource occupancy to obtain an evaluation result; and an update module, which is used to update the compilation option allocation strategy according to the evaluation result.

[0019] According to another aspect of an embodiment of the present disclosure, an electronic device is also provided, including: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the vehicle function data processing method in the embodiment of the present disclosure.

[0020] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is also provided, which includes a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute the vehicle function data processing method in the embodiment of the present disclosure.

[0021] According to another aspect of the embodiment of the present disclosure, a computer program product is also provided. The computer program product includes computer instructions. When the computer instructions are executed by a processor, the vehicle function data processing method in the embodiment of the present disclosure is implemented.

[0022] In the disclosed embodiment, by obtaining initial function data and compilation option allocation strategy corresponding to multiple functions to be implemented in the target vehicle, the strategy is used to perform targeted compilation processing on the initial function data, thereby obtaining multiple optimized function compilation results, and the function compilation results are efficiently merged to generate an optimized target execution file. Finally, the target execution file is executed to obtain the optimized target execution result, thereby achieving the purpose of flexibly adjusting the optimization level according to different scenarios and adjusting the compilation options in real time, thereby achieving the technical effect of improving the vehicle function data processing efficiency and optimizing resource allocation without increasing hardware costs, thereby solving the technical problems of uneven resource allocation and low operating efficiency in the vehicle function data processing method provided in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:

[0024] Figure 1 is a flow chart of a vehicle function data processing method according to one embodiment of the present disclosure;

[0025] Figure 2 is a schematic diagram of a function to be realized by a target vehicle according to one embodiment of the present disclosure;

[0026] Figure 3 is a schematic diagram of another vehicle function data processing method according to one embodiment of the present disclosure;

[0027] Figure 4 It is a structural block diagram of a vehicle function data processing device according to one embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present disclosure, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present disclosure.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0030] In related technologies, multi-core strategies are usually used to improve MCU performance, that is, by distributing program execution on different cores, reducing the computing pressure of a single MCU, thereby improving the overall processing power of the system. However, since the cost of multi-core MCUs is generally higher than that of single-core MCUs, and their inherent complexity may induce additional software development difficulties and system integration problems, higher requirements are placed on resource optimization and cost control.

[0031] Specifically, when multi-core MCUs are used to improve performance in related technologies, although they can effectively disperse computing tasks and use parallel processing capabilities to improve system response speed and processing efficiency, there are also the following problems: First, the high cost of multi-core MCUs limits their popularity in cost-sensitive application scenarios, especially in the automotive manufacturing industry. Cost control is one of the most important considerations for manufacturers, and the price threshold of multi-core MCUs has undoubtedly become a major obstacle to promotion; secondly, the complexity of software development and system integration of multi-core MCUs has increased significantly, and it is necessary to solve problems such as task scheduling, data synchronization, and communication management, thereby reducing the efficiency of vehicle functional data processing; thirdly, due to the introduction of multi-core architecture, software engineers must have higher-level parallel programming skills, which increases labor costs and training needs.

[0032] According to an embodiment of the present disclosure, a method embodiment of a vehicle function data processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0033] The method embodiment can be executed in an electronic device or a similar computing device including a memory and a processor. Taking running on a computer terminal as an example, the computer terminal may include one or more processors (processors may include but are not limited to central processing units (CPU), graphics processing units (GPU), digital signal processing (DSP) chips, microprocessors (MCU), programmable logic devices (Field Programmable Gate Array, FPGA), neural network processors (Neural-network Processor Unit, NPU), tensor processors (TensorProcessing Unit, TPU), artificial intelligence (Artificial Intelligence, AI) type processors and other processing devices) and a memory for storing data. Optionally, the above-mentioned computer terminal may also include a transmission device, an input and output device, and a display device for communication functions. It can be understood by those of ordinary skill in the art that the above-mentioned structural description is only for illustration, and it does not limit the structure of the above-mentioned computer terminal. For example, the computer terminal may also include more or fewer components than the above-mentioned structural description, or have a configuration different from the above-mentioned structural description.

[0034] The memory can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the vehicle function data processing method in the embodiment of the present disclosure. The processor executes various functional applications and data processing by running the computer program stored in the memory, that is, the above-mentioned vehicle function data processing method is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0035] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0036] The display device may be, for example, a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of a mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contacts and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above human-computer interaction functions are configured / stored in a computer program product or readable storage medium executable by one or more processors.

[0037] Figure 1 is a flow chart of a vehicle function data processing method according to one embodiment of the present disclosure, such as Figure 1 As shown, the method comprises the following steps:

[0038] Step S11, obtaining initial function data and compile option allocation strategies corresponding to multiple functions to be implemented of the target vehicle, wherein the initial function data is used to represent source code data of the multiple functions to be implemented, and the compile option allocation strategy is used to allocate target compile options corresponding to the multiple functions to be implemented, and the target compile options are used to adjust the program running time and storage resource occupation corresponding to the functions to be implemented;

[0039] Step S12, compiling the initial function data using the compiling option allocation strategy to obtain a plurality of function compilation results;

[0040] Step S13, merging multiple function compilation results to obtain a target execution file;

[0041] Step S14, executing the target execution file to obtain a target execution result, wherein the target execution result is used to represent the function execution results corresponding to the multiple functions to be implemented.

[0042] The above-mentioned multiple functions to be implemented in the target vehicle refer to the various functions planned to be integrated or optimized in the vehicle electronic architecture. The above functions are controlled by software programs and can be run on the vehicle MCU to achieve specific vehicle operations or management. Specifically, the multiple functions to be implemented in the target vehicle include but are not limited to gateway communication, ambient light control, light language display, parking assistance, body control, driving assistance systems (such as automatic emergency braking, adaptive cruise control), infotainment systems, electric door and window control, safety systems (such as airbag management, anti-lock braking system) and other functional modules related to vehicle performance, comfort, safety and intelligence.

[0043] Figure 2 is a schematic diagram of a function to be realized by a target vehicle according to one embodiment of the present disclosure, such as Figure 2 As shown, the domain controller of the target vehicle can realize complex functions such as gateway communication, ambient light control, light language display, parking assistance, and body control.

[0044] The above-mentioned initial function data refers to the original source code data and related configuration information that have not been optimized when developing vehicle function software. The source code data may include instructions written in various programming languages, such as C, C++, Python, etc., as well as algorithms and data processing logic designed by developers to achieve certain functions; configuration information may include hardware interface definitions, system parameters, operating environment settings, etc.

[0045] The above-mentioned compilation option allocation strategy refers to a set of rules or schemes set during the software development and compilation process to optimize program performance and resource usage. The strategy determines which compilation optimization options should be used when compiling the source code of each module.

[0046] For example, in the process of processing vehicle function data, first, based on market research, user demand analysis and vehicle design specifications, the various functions that the vehicle needs to implement are clarified, such as gateway communication, ambient light control, light language display, parking assistance and body control. After clarifying the functional requirements, the software engineer is notified to design the software architecture, including module division, inter-module communication protocol, data structure, algorithm selection and interface design with hardware. Furthermore, the software development team uses a programming language to write source code to implement specific functions based on the defined architecture design. During the source code writing process, a series of configuration information is set, including but not limited to hardware interface definition, system parameters, operating environment settings, etc., and the above parameters are combined with the source code to form the initial function data.

[0047] Figure 3 is a schematic diagram of another vehicle function data processing method according to one embodiment of the present disclosure, such as Figure 3 As shown in FIG. 1 , the entire compilation process from logic code to optimized execution file is described.

[0048] Exemplarily, after obtaining the initial function data, the program running time and storage resource usage of each function module are comprehensively considered, the most appropriate compilation optimization option is intelligently selected for each function module, and the initial function data is compiled and processed according to the compilation option allocation strategy to obtain multiple function compilation results. Further, all the function compilation results are linked through a linker to form a complete target execution file. Finally, the domain controller is used to execute the above target execution file, and the program running time and storage resource usage after compilation and optimization of all function modules are output.

[0049] Based on the above steps S11 to S14, by obtaining the initial function data and compilation option allocation strategy corresponding to multiple functions to be implemented in the target vehicle, the strategy is used to perform targeted compilation processing on the initial function data, thereby obtaining multiple optimized function compilation results, and the function compilation results are efficiently merged to generate an optimized target execution file. Finally, the target execution file is executed to obtain the optimized target execution result, thereby achieving the purpose of flexibly adjusting the optimization level according to different scenarios and adjusting the compilation options in real time, thereby achieving the technical effect of improving the vehicle function data processing efficiency and optimizing resource allocation without increasing hardware costs, thereby solving the technical problems of uneven resource allocation and low operating efficiency in the vehicle function data processing method provided in the relevant technology.

[0050] The vehicle function data processing method in the embodiment of the present disclosure is further introduced below.

[0051] Optionally, in step S11, obtaining the compilation option allocation strategy includes:

[0052] Step S111, obtaining function requirement information and function priority information corresponding to a plurality of functions to be implemented, wherein the function requirement information is used to determine the running speed requirement and storage resource requirement corresponding to the functions to be implemented;

[0053] Step S112, determining target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on the function requirement information and / or the function priority information, wherein the multiple candidate compilation options include: a general optimization option, a speed optimization option, and a size optimization option;

[0054] Step S113: generating a compilation option allocation strategy according to target compilation options corresponding to a plurality of functions to be implemented.

[0055] The above functional requirements information refers to the specific performance indicators and resource usage requirements set for each functional module to be implemented during the software development process, including but not limited to:

[0056] 1) Operation speed requirement: refers to the minimum response time or maximum execution speed that a functional module must achieve when executing. For example, for safety-related systems such as brake control or emergency obstacle avoidance systems, the operation speed requirement is usually set very high to ensure rapid response at critical moments.

[0057] 2) Storage resource requirements: refers to the minimum or maximum capacity of memory, flash memory or other storage devices that a functional module may need during operation. Storage resource requirements are directly related to the deployability of software and the feasibility of vehicle hardware design.

[0058] 3) CPU load target: This is the upper limit of the processor resource consumption of the functional module during execution. On a domain controller with multiple tasks executed in parallel, reasonable CPU load distribution can avoid conflicts between tasks and ensure the smooth operation of all functions.

[0059] 4) Energy consumption requirements: In terms of vehicle energy management, some functional modules may need to operate in low-energy mode to extend battery life or improve energy efficiency.

[0060] 5) Network communication requirements: For functional modules that need to communicate with other vehicle systems or external devices, their communication protocols, bandwidth requirements, latency requirements, etc. are all part of the functional requirement information.

[0061] 6) External interface requirements: refers to the specific hardware interface definitions and communication standards required by functional modules when interacting with vehicle hardware (such as sensors and actuators).

[0062] 7) Safety and reliability indicators: Safety-critical functional modules, such as driver assistance systems, need to set strict safety and reliability requirements to ensure that the functions can operate stably and safely under various conditions.

[0063] The above-mentioned function priority information refers to the execution priority order pre-set by each function module in the vehicle electronic system according to its impact on vehicle safety, operating efficiency, user experience and resource management.

[0064] Table 1 shows the functional requirement information and functional priority information of the disclosed vehicle:

[0065] Table 1 Vehicle function requirement information and function priority information

[0066]

[0067] The above-mentioned general optimization options (Ogeneral optimization options) refer to the default optimization measures adopted by the compiler during the software compilation process, which are used to improve the execution efficiency of the program while maintaining the readability and maintainability of the code, and at the same time maintaining a balance between program size and running speed.

[0068] The above speed optimization option (Ospeed optimization option) refers to the optimization measures taken by the compiler to improve the program execution speed during the software compilation process. The Ospeed optimization option usually reduces the number of CPU cycles when the program is running, thereby improving the program's response speed and execution efficiency at the expense of program size and code readability.

[0069] The size optimization option (Osize optimization option) mentioned above refers to the optimization measures taken by the compiler to solve the storage space problem in a resource-constrained environment during the software compilation process. The Osize optimization option reduces memory usage and flash memory space by increasing program running time or sacrificing some performance.

[0070] Table 2 shows the detailed description of the three candidate compilation options:

[0071] Table 2 Candidate compilation options

[0072]

[0073] In Table 2, although both Ogeneral and Osize increase running time and reduce program size, Osize reduces code volume at the expense of greater running efficiency, which is suitable for environments with extremely limited storage; while Ogeneral only slightly reduces code size and increases running time while maintaining code quality and efficiency, which is suitable for most situations without special resource or performance requirements.

[0074] Furthermore, based on the vehicle function requirement information and function priority information, the best compilation option, i.e., the target compilation option, can be determined among the candidate compilation options for multiple functions to be implemented of the target vehicle, and then a compilation option allocation strategy can be generated according to the determined target compilation option.

[0075] Based on the above optional embodiments, the target compilation options are determined based on the functional requirement information and the functional priority information, and the compilation option allocation strategy is generated, which can effectively improve the execution efficiency and resource utilization efficiency of each functional module in the vehicle electronic system, while ensuring that the entire system maintains good performance and user experience while meeting the functional requirements.

[0076] Optionally, in step S112, determining target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on function requirement information and function priority information includes: in response to determining that the initial running time of the function to be implemented satisfies a preset running time condition based on the function requirement information, and determining that the real-time priority of the function to be implemented is higher than a preset level based on the function priority information, determining the speed optimization option as the target compilation option for the function to be implemented, wherein the preset running time condition is used to determine that the initial running time is greater than the preset running time.

[0077] The above initial runtime refers to the time required for each functional module program to execute a complete function under the default Ogeneral optimization option. Specifically, the initial runtime reflects the original execution efficiency and response time of the functional module when the compiler applies the Ogeneral optimization option while balancing program size and execution speed.

[0078] The above-mentioned preset runtime refers to the performance goal or constraint set for the functional module during the software design and optimization process, that is, the expected execution time that the functional module should reach or be lower than during actual operation.

[0079] For example, the Ogerenal optimization option is used to compile the functions to be implemented in the target vehicle, and the initial running time results are shown in Table 3:

[0080] Table 3 Initial running time results

[0081]

[0082] For example, assuming that the preset running time is 300us, it can be seen from Table 3 that the initial running time of the gateway communication is 500us, and the initial running time of the parking function is 800us. The initial running time of the above two functional modules is greater than the preset running time, and the priority of the above two functional modules is higher. Therefore, for the gateway communication and parking functions, the Ospeed optimization option is selected as the target compilation option.

[0083] Based on the above optional embodiment, when the initial running time of the function to be implemented is greater than the preset running time and its real-time priority is higher, the speed optimization option is selected as the target compilation option, thereby shortening the program execution time and improving the system response speed.

[0084] Optionally, in step S112, determining target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on the function requirement information includes: in response to determining based on the function requirement information that an initial program size of the function to be implemented satisfies a preset size condition, determining a size optimization option as a target compilation option for the function to be implemented, wherein the preset size condition is used to determine that the initial program size is larger than the preset program size.

[0085] The above initial program size refers to the size of the space occupied by the program in the memory after each functional module is compiled under the default Ogeneral optimization option. Specifically, when the compiler applies the Ogeneral optimization option, it will find a balance between the execution speed of the program and the size of the program, and the initial program size reflects the original size of the memory space occupied by the program of the functional module under the above balance strategy.

[0086] The above-mentioned preset program size refers to the storage resource usage target or restriction condition set for the functional module during the software design and optimization process, that is, the expected value that the program size of the functional module after compilation should reach or be lower than.

[0087] For example, the Ogerenal optimization option is used to compile the functions to be implemented for the target vehicle, and the initial program size results are shown in Table 4:

[0088] Table 4 Initial program size results

[0089]

[0090] For example, assuming that the preset program size is 180kB, it can be seen from Table 4 that the initial program size of the ambient light control is 200kB, and the initial program size of the light language display is 700kB, both of which are larger than the preset program size. Therefore, for the ambient light control and light language display, the Osize optimization option is selected as the target compilation option.

[0091] Based on the above optional embodiments, when the initial program size of the function to be implemented is larger than the preset program size, selecting the size optimization option as the target compilation option can ensure that the program can run normally under limited hardware resources while providing sufficient space for other modules, thereby achieving the optimal balance between system performance and resource management.

[0092] Optionally, in step S112, determining target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on function requirement information and function priority information includes: in response to determining based on the function requirement information that an initial running time of the function to be implemented does not meet a preset time condition, determining based on the function priority information that the real-time priority of the function to be implemented is lower than a preset level, and determining based on the function requirement information that an initial program size of the function to be implemented does not meet a preset size condition, determining a general optimization option as the target compilation option for the function to be implemented.

[0093] For example, it can be seen from Table 3 that the initial running time of body control is 30us, which is less than the preset running time, and its initial program size is 100kB, which is also less than the preset program size, and the priority of this function is medium-low among the functions to be implemented. Therefore, for body control, the Ogerenal optimization option is selected as its target compilation option.

[0094] Based on the above optional embodiments, when the initial running time of the function to be implemented is less than the preset running time, the initial program size is smaller than the preset program size, and its real-time priority is low, selecting the general optimization option as the target compilation option can maintain a balance between system performance and resource consumption, while simplifying the development process, maintaining the readability and maintainability of the code, and ensuring the compatibility, stability and resource management efficiency of the overall system.

[0095] Optionally, in step S12, the initial function data is compiled using the compilation option allocation strategy to obtain multiple function compilation results including:

[0096] Step S121, determining target compile options corresponding to multiple functions to be implemented by using a compile option allocation strategy;

[0097] Step S122 , compiling the initial function data corresponding to the multiple functions to be implemented based on the target compilation options to obtain multiple function compilation results.

[0098] The function compilation results based on the above compilation option allocation strategy are shown in Table 5:

[0099] Table 5 Function compilation results

[0100]

[0101] As shown in Table 5, after using the Ospeed optimization option, the program running time of the gateway communication is reduced from 500us to 400us, and the program size is increased from 100kB to 120kB, sacrificing some program space to obtain a significant improvement in running time. After using the Osize optimization option, the program size of the light language display is reduced from 700kB to 600kB, and the program running time is increased from 10us to 12us, sacrificing a small amount of running time in exchange for a large amount of program space.

[0102] Based on the above optional embodiments, by selecting the compilation option that best suits the characteristics of each function to be implemented, the performance of each module can be customized and optimized, thereby improving the overall system performance.

[0103] Optionally, the vehicle function data processing method further includes:

[0104] Step S21, determining the total program running time and the total amount of storage resources occupied by the multiple functions to be implemented based on the compilation option allocation strategy;

[0105] Step S22, evaluating the total program running time and the total amount of storage resources occupied to obtain an evaluation result;

[0106] Step S23: updating the compilation option allocation strategy according to the evaluation result.

[0107] Table 6 shows the compilation results based on the above compilation allocation strategy:

[0108] Table 6 Compilation results

[0109] Compile allocation strategy Total program running time / us Total storage resource usage / kB Ogengral 1360 1250 Ospeed+Osize 1134 1040

[0110] As shown in Table 6, when all functional modules only use the Ogeneral optimization option, the total program running time is 1360us and the total storage resource usage is 1250kB. When the hybrid optimization strategy of Ospeed+Osize is adopted, the total program running time is optimized to 1134us, which is reduced by 226us. In this way, various vehicle functions can be processed faster in application environments with high real-time requirements, improving user experience and system efficiency. At the same time, the total storage resource usage is optimized to 1040kB, which is reduced by 210kB, indicating that the memory space occupied by the program is reduced without sacrificing the execution speed of too many functions. For resource-constrained MCUs, especially in domain controllers that integrate multiple functions, it can effectively avoid storage overflow and ensure the stable operation of the system.

[0111] Based on the above optional embodiments, by implementing a dynamic optimization strategy based on specific compilation options, the performance of the entire system in terms of total program running time and total storage resource usage can be significantly improved compared to using only the Ogeneral optimization option.

[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0113] In the embodiments of the present disclosure, a vehicle function data processing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0114] Figure 4 is a structural block diagram of a vehicle function data processing device according to one embodiment of the present disclosure, such as Figure 4 As shown, the device comprises:

[0115] The acquisition module 401 is used to acquire initial function data and a compilation option allocation strategy corresponding to a plurality of functions to be implemented of a target vehicle, wherein the initial function data is used to represent source code data of the plurality of functions to be implemented, and the compilation option allocation strategy is used to allocate target compilation options corresponding to the plurality of functions to be implemented, and the target compilation options are used to adjust the program running time and storage resource occupation corresponding to the functions to be implemented;

[0116] A compiling module 402 is used to compile the initial function data using a compiling option allocation strategy to obtain a plurality of function compilation results;

[0117] A merging module 403 is used to merge multiple function compilation results to obtain a target execution file;

[0118] The execution module 404 is used to execute the target execution file to obtain a target execution result, wherein the target execution result is used to represent the function execution results corresponding to multiple functions to be implemented.

[0119] Optionally, the acquisition module 401 is also used to: obtain function requirement information and function priority information corresponding to multiple functions to be implemented, wherein the function requirement information is used to determine the running speed requirements and storage resource requirements corresponding to the functions to be implemented; determine target compilation options corresponding to multiple functions to be implemented from multiple candidate compilation options based on the function requirement information and / or function priority information, wherein the multiple candidate compilation options include: general optimization options, speed optimization options, size optimization options; generate a compilation option allocation strategy according to the target compilation options corresponding to the multiple functions to be implemented.

[0120] Optionally, the acquisition module 401 is also used to: in response to determining based on the function requirement information that the initial running time of the function to be implemented meets the preset running time condition, and determining based on the function priority information that the real-time priority of the function to be implemented is higher than the preset level, determine the speed optimization option as the target compilation option of the function to be implemented, wherein the preset running time condition is used to determine that the initial running time is greater than the preset running time.

[0121] Optionally, the acquisition module 401 is also used to: in response to determining based on the function requirement information that the initial program size of the function to be implemented meets a preset size condition, determine the size optimization option as the target compilation option of the function to be implemented, wherein the preset size condition is used to determine that the initial program size is larger than the preset program size.

[0122] Optionally, the acquisition module 401 is also used to: in response to determining based on the function requirement information that the initial running time of the function to be implemented does not meet the preset time condition, determining based on the function priority information that the real-time priority of the function to be implemented is lower than a preset level, and determining based on the function requirement information that the initial program size of the function to be implemented does not meet the preset size condition, determine the general optimization option as the target compilation option for the function to be implemented.

[0123] Optionally, the compiling module 402 is further used to: determine target compiling options corresponding to multiple functions to be implemented using a compiling option allocation strategy; and compile initial function data corresponding to the multiple functions to be implemented based on the target compiling options to obtain multiple function compilation results.

[0124] Optionally, the vehicle function data processing device further includes:

[0125] A determination module 405 is used to determine the total program running time and the total amount of storage resources occupied corresponding to the multiple functions to be implemented based on the compilation option allocation strategy;

[0126] Evaluation module 406, used to evaluate the total program running time and the total amount of storage resources occupied to obtain an evaluation result;

[0127] The updating module 407 is used to update the compilation option allocation strategy according to the evaluation result.

[0128] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0129] According to another aspect of an embodiment of the present disclosure, an electronic device is also provided, including: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the vehicle function data processing method in the embodiment of the present disclosure.

[0130] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0131] S1, obtaining initial function data and compilation option allocation strategy corresponding to multiple functions to be implemented of a target vehicle, wherein the initial function data is used to represent source code data of multiple functions to be implemented, and the compilation option allocation strategy is used to allocate target compilation options corresponding to multiple functions to be implemented, and the target compilation options are used to adjust the program running time and storage resource occupation corresponding to the functions to be implemented;

[0132] S2, compiling the initial function data using the compilation option allocation strategy to obtain multiple function compilation results;

[0133] S3, merging the compilation results of multiple functions to obtain a target execution file;

[0134] S4, executing the target execution file to obtain a target execution result, wherein the target execution result is used to represent the function execution results corresponding to the multiple functions to be implemented.

[0135] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is also provided, which includes a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute the vehicle function data processing method in the embodiment of the present disclosure.

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

[0137] S1, obtaining initial function data and compilation option allocation strategy corresponding to multiple functions to be implemented of a target vehicle, wherein the initial function data is used to represent source code data of multiple functions to be implemented, and the compilation option allocation strategy is used to allocate target compilation options corresponding to multiple functions to be implemented, and the target compilation options are used to adjust the program running time and storage resource occupation corresponding to the functions to be implemented;

[0138] S2, compiling the initial function data using the compilation option allocation strategy to obtain multiple function compilation results;

[0139] S3, merging the compilation results of multiple functions to obtain a target execution file;

[0140] S4, executing the target execution file to obtain a target execution result, wherein the target execution result is used to represent the function execution results corresponding to the multiple functions to be implemented.

[0141] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0142] According to another aspect of the embodiment of the present disclosure, a computer program product is also provided. The computer program product includes computer instructions. When the computer instructions are executed by a processor, the vehicle function data processing method in the embodiment of the present disclosure is implemented.

[0143] Optionally, in this embodiment, the computer program product may be configured as a computer program for executing the following steps:

[0144] S1, obtaining initial function data and compilation option allocation strategy corresponding to multiple functions to be implemented of a target vehicle, wherein the initial function data is used to represent source code data of multiple functions to be implemented, and the compilation option allocation strategy is used to allocate target compilation options corresponding to multiple functions to be implemented, and the target compilation options are used to adjust the program running time and storage resource occupation corresponding to the functions to be implemented;

[0145] S2, compiling the initial function data using the compilation option allocation strategy to obtain multiple function compilation results;

[0146] S3, merging the compilation results of multiple functions to obtain a target execution file;

[0147] S4, executing the target execution file to obtain a target execution result, wherein the target execution result is used to represent the function execution results corresponding to the multiple functions to be implemented.

[0148] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.

[0149] In the above embodiments of the present disclosure, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0150] In the several embodiments provided in the present disclosure, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0152] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0154] The above is only a preferred embodiment of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present disclosure. These improvements and modifications should also be regarded as the scope of protection of the present disclosure.

Claims

1. A vehicle function data processing method, characterized in that: include: Acquire initial function data and compilation option allocation strategies corresponding to a plurality of functions to be implemented of a target vehicle, wherein the initial function data is used to represent source code data of the plurality of functions to be implemented, the compilation option allocation strategies are used to allocate target compilation options corresponding to the plurality of functions to be implemented, and the target compilation options are used to adjust program running time and storage resource occupancy corresponding to the functions to be implemented; Compiling the initial function data using the compilation option allocation strategy to obtain a plurality of function compilation results; Merge multiple function compilation results to obtain the target execution file; The target execution file is executed to obtain a target execution result, wherein the target execution result is used to represent the function execution results corresponding to the multiple functions to be implemented.

2. The vehicle function data processing method according to claim 1, characterized in that: Obtaining the compilation option allocation strategy includes: Acquire function requirement information and function priority information corresponding to the multiple functions to be implemented, wherein the function requirement information is used to determine the running speed requirement and storage resource requirement corresponding to the functions to be implemented; Determining the target compilation options corresponding to the multiple functions to be implemented from multiple candidate compilation options based on the function requirement information and / or the function priority information, wherein the multiple candidate compilation options include: a general optimization option, a speed optimization option, and a size optimization option; The compilation option allocation strategy is generated according to the target compilation options corresponding to the multiple functions to be implemented.

3. The vehicle function data processing method according to claim 2, characterized in that: Determining the target compilation options corresponding to the multiple functions to be implemented from the multiple candidate compilation options based on the function requirement information and the function priority information includes: In response to determining, based on the function requirement information, that the initial running time of the function to be implemented meets a preset running time condition, and determining, based on the function priority information, that the real-time priority of the function to be implemented is higher than a preset level, the speed optimization option is determined as the target compilation option of the function to be implemented, wherein the preset running time condition is used to determine that the initial running time is greater than the preset running time.

4. The vehicle function data processing method according to claim 2, characterized in that: Determining the target compilation options corresponding to the multiple functions to be implemented from the multiple candidate compilation options based on the function requirement information includes: In response to determining, based on the function requirement information, that the initial program size of the function to be implemented meets a preset size condition, the size optimization option is determined as the target compilation option of the function to be implemented, wherein the preset size condition is used to determine that the initial program size is larger than a preset program size.

5. The vehicle function data processing method according to claim 3 or 4, characterized in that: Determining the target compilation options corresponding to the multiple functions to be implemented from the multiple candidate compilation options based on the function requirement information and the function priority information includes: In response to determining, based on the function requirement information, that the initial running time of the function to be implemented does not meet a preset time condition, determining, based on the function priority information, that the real-time priority of the function to be implemented is lower than a preset level, and determining, based on the function requirement information, that the initial program size of the function to be implemented does not meet a preset size condition, the general optimization option is determined as the target compilation option of the function to be implemented.

6. The vehicle function data processing method according to claim 1, characterized in that: Compiling the initial function data using the compilation option allocation strategy to obtain the multiple function compilation results includes: Determining the target compile options corresponding to the multiple functions to be implemented by using the compile option allocation strategy; The initial function data corresponding to the multiple functions to be implemented are compiled based on the target compilation options to obtain the multiple function compilation results.

7. The vehicle function data processing method according to claim 1, characterized in that: The method further comprises: Determine the total program running time and the total amount of storage resources occupied corresponding to the multiple functions to be implemented based on the compilation option allocation strategy; Evaluate the total running time of the program and the total amount of storage resources occupied to obtain an evaluation result; The compile option allocation strategy is updated according to the evaluation result.

8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the vehicle function data processing method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the storage medium is located is controlled to execute the vehicle function data processing method according to any one of claims 1 to 7.

10. A computer program product, characterized in that The computer program product comprises computer instructions, which, when executed by a processor, implement the vehicle function data processing method as claimed in any one of claims 1 to 7.