Vehicle-mounted algorithm management analysis method, system and equipment

By embedding code in the on-board controller and using linked list structure to manage on-board algorithms, the problem of in-board algorithms in the prior art is solved, and real-time management and optimization of on-board algorithms is realized.

CN119472588APending Publication Date: 2025-02-18SINO TRUK JINAN POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411485435.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

Existing on-board controllers cannot observe and adjust the running time of the algorithm in real time, resulting in the inability to effectively manage complex on-board algorithms.

Method used

By embedding code in the on-board controller, the on-board algorithm is managed using the linked list structure, the running time of the algorithm is obtained and adjusted in real time, and the interaction is displayed graphically.

Benefits of technology

Real-time observation and adjustment of vehicle-mounted controller algorithms is realized, and the management and optimization capabilities of vehicle-mounted algorithms are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119472588A_ABST
    Figure CN119472588A_ABST
Patent Text Reader

Abstract

The invention provides a management analysis method, system and equipment for a vehicle-mounted algorithm, and the method runs in a vehicle-mounted controller, and comprises the steps: obtaining a control instruction for the operation of a target vehicle, and inserting a linked list into a corresponding vehicle-mounted algorithm according to the control instruction; the corresponding vehicle-mounted algorithms are managed through the linked list to obtain management data, specifically, the corresponding vehicle-mounted algorithms are operated, the running time of the vehicle-mounted algorithms is counted, and the running time of the vehicle-mounted algorithms is adjusted; and carrying out graphical display on the management data so as to facilitate interaction with the management data. The operation on the vehicle-mounted algorithm specifically comprises the steps of adding elements in the vehicle-mounted algorithm, deleting the elements in the vehicle-mounted algorithm, searching the elements in the vehicle-mounted algorithm and traversing the vehicle-mounted algorithm. Based on the method, the invention also provides a management analysis system and equipment of the vehicle-mounted algorithm. According to the invention, the operation time of the vehicle-mounted controller algorithm can be observed in real time, the operation cycle of the vehicle-mounted algorithm can be adjusted in real time, and the vehicle-mounted algorithm can be operated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle-mounted algorithm management, and in particular relates to a management and analysis method, system and device for a vehicle-mounted algorithm. Background Art

[0002] The vehicle controller is an electronic device used to manage and control various systems and components of a car. It receives signals from sensors and other input devices, and then processes and analyzes these signals according to predetermined programs and algorithms, thereby achieving precise control of the acceleration, braking, steering and other operations of the car. As a type of vehicle controller, the vehicle controller is the core of the vehicle, responsible for processing the data collected by the sensors and making decisions based on the preset algorithms. The actuator performs corresponding operations according to the instructions of the control unit, including adjusting the acceleration, braking, steering and other functions of the vehicle. The vehicle communication system enables efficient information sharing between various modules, which plays an important role in realizing the intelligent coordination of vehicles. The vehicle controller is a key component of the electronic architecture of modern vehicles. It involves multiple technologies and applications, including powertrain, body electronics, infotainment, intelligent driving, etc. With the development of electric vehicles and autonomous driving technology, the functions and complexity of vehicle control systems are also constantly improving.

[0003] Existing vehicle controllers use real-time operating systems in large quantities. The controller algorithm is mounted on the controller thread using the default configuration, and cannot be adjusted as needed during the vehicle test process. As the vehicle algorithm becomes more and more complex, the controller algorithm may take a long time to run. Traditional real-time operating systems and measurement tools can only test the running time of tasks, but not the running time of controller algorithms. The controller algorithm running cycle uses the default configuration and cannot be changed, so the running time of the controller algorithm cannot be tested. Summary of the invention

[0004] In order to solve the above technical problems, the present invention proposes a management and analysis method, system and device for an on-board algorithm, which can observe the running time of the on-board controller algorithm in real time and adjust the running cycle of the on-board algorithm in real time.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] A method for managing and analyzing an on-board algorithm, running in an on-board controller, comprises the following steps:

[0007] Obtaining control instructions for the operation of the target vehicle, and inserting the linked list into the corresponding vehicle-mounted algorithm according to the control instructions;

[0008] The corresponding vehicle-mounted algorithm is managed through the linked list to obtain management data, specifically including operating the corresponding vehicle-mounted algorithm, counting the running time of the vehicle-mounted algorithm and adjusting the running time of the vehicle-mounted algorithm;

[0009] The management data is graphically displayed to facilitate interaction with users.

[0010] Furthermore, the method further comprises:

[0011] Monitor and display the type, frequency and memory usage of each sub-control module in the vehicle controller;

[0012] Furthermore, the method also includes: recording the stack size consumed when the on-board algorithm is running.

[0013] Furthermore, the operation on the on-board algorithm specifically includes: adding elements in the on-board algorithm, deleting elements in the on-board algorithm, searching for elements in the on-board algorithm and traversing the on-board algorithm.

[0014] Furthermore, the process of adding elements to the vehicle-mounted algorithm includes:

[0015] Initialize the linked list header;

[0016] Create the node to be added;

[0017] Traverse the linked list to the end and add the node to be added.

[0018] Furthermore, the process of deleting elements in the vehicle-mounted algorithm includes:

[0019] Initialize the linked list header;

[0020] Determine the nodes that need to be deleted;

[0021] Traverse the linked list to the end and delete the nodes that need to be deleted.

[0022] Furthermore, the process of searching for an element in the vehicle-mounted algorithm includes:

[0023] Initialize the linked list header;

[0024] Determine the node to be searched;

[0025] Traverse the linked list to the end and find the node.

[0026] Furthermore, the running time of the statistical vehicle-mounted algorithm specifically includes:

[0027] Calculate the current running time, average running time and maximum running time of the target vehicle algorithm;

[0028] And according to the needs, the node pointer in the linked list is used to adjust the operation cycle of the target vehicle-mounted algorithm.

[0029] The present invention also proposes a vehicle-mounted algorithm management and analysis system, including a preprocessing module, a management module and a display module;

[0030] The preprocessing module is used to obtain control instructions for the operation of the target vehicle, and insert the linked list into the corresponding vehicle-mounted algorithm according to the control instructions;

[0031] The management module is used to manage the corresponding vehicle-mounted algorithm through the linked list to obtain management data, specifically including operating the corresponding vehicle-mounted algorithm, counting the running time of the vehicle-mounted algorithm and adjusting the running time of the vehicle-mounted algorithm;

[0032] The display module is used to display the management data in a graphical manner to facilitate interaction with users.

[0033] The present invention also proposes a vehicle-mounted algorithm management and analysis device, comprising:

[0034] Memory for storing computer programs;

[0035] A processor is used to implement the method steps described when executing the computer program.

[0036] The effects provided in the content of the invention are only the effects of the embodiments, not all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

[0037] The present invention proposes a method, system and device for managing and analyzing vehicle-mounted algorithms. The method runs in a vehicle-mounted controller and includes the following steps: obtaining control instructions for operating a target vehicle, inserting a linked list into a corresponding vehicle-mounted algorithm according to the control instructions; managing the corresponding vehicle-mounted algorithm through the linked list to obtain management data, specifically including operating the corresponding vehicle-mounted algorithm, counting the running time of the vehicle-mounted algorithm and adjusting the running time of the vehicle-mounted algorithm; and graphically displaying the management data for easy interaction with the user. The operation of the vehicle-mounted algorithm specifically includes: adding elements to the vehicle-mounted algorithm, deleting elements from the vehicle-mounted algorithm, searching for elements in the vehicle-mounted algorithm and traversing the vehicle-mounted algorithm. Based on a method for managing and analyzing vehicle-mounted algorithms, a system and device for managing and analyzing vehicle-mounted algorithms are also proposed. The present invention can realize real-time observation of the running time of the vehicle-mounted controller algorithm, real-time adjustment of the running cycle of the vehicle-mounted algorithm, and operation of the vehicle-mounted algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A flow chart of a method for managing and analyzing an on-vehicle algorithm proposed in Embodiment 1 of the present invention;

[0039] Figure 2 This is a schematic diagram showing the running time of the vehicle-mounted algorithm proposed in Embodiment 1 of the present invention;

[0040] Figure 3 A schematic diagram showing the type, frequency and memory usage status of each sub-control module proposed in Embodiment 1 of the present invention;

[0041] Figure 4 A schematic diagram showing management tasks of an on-board algorithm proposed in Embodiment 1 of the present invention;

[0042] Figure 5 A schematic diagram of a vehicle-mounted algorithm management and analysis system proposed in Embodiment 2 of the present invention;

[0043] Figure 6 This is a schematic diagram of a management and analysis device for an in-vehicle algorithm proposed in Example 3 of the present invention. DETAILED DESCRIPTION

[0044] In order to clearly illustrate the technical features of the present solution, the present invention is described in detail below through specific implementation methods and in conjunction with the accompanying drawings. The disclosure below provides many different embodiments or examples for realizing different structures of the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described below. In addition, the present invention may repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. It should be noted that the components illustrated in the accompanying drawings are not necessarily drawn to scale. The present invention omits the description of known components and processing techniques and processes to avoid unnecessary limitations on the present invention.

[0045] Example 1

[0046] Embodiment 1 of the present invention proposes a method for managing and analyzing vehicle-mounted algorithms, which is used to solve the technical problem that the running time of the controller algorithm cannot be tested in the prior art. In this application, by embedding code inside the vehicle-mounted controller, different vehicle-mounted algorithms are flexibly assigned to different periodic tasks according to the control instructions for the target vehicle operation, and the running time is recorded.

[0047] Figure 1 A flow chart of a method for managing and analyzing an on-vehicle algorithm proposed in Embodiment 1 of the present invention;

[0048] In step S100, a control instruction for operating the target vehicle is obtained, and a linked list is inserted into a corresponding vehicle-mounted algorithm according to the control instruction;

[0049] In the present application, codes are embedded inside the vehicle controller, that is, control instructions from the user or the host computer are received and parsed by the lower computer software, and the control instructions are converted into operations that can be understood by the system.

[0050] The lower computer software in this application is located in the vehicle-mounted controller. CAN and vehicle-mounted Ethernet can be used between the upper computer and the lower computer software. This application uses CAN communication as an example for illustration. The scope of protection of the present invention is not limited to the CAN communication operation mode listed in Example 1.

[0051] The upper computer sends commands: The upper computer sends operation commands to the lower computer, such as adding algorithms, deleting algorithms, assigning tasks, etc.

[0052] Lower computer reply response: The lower computer sends an operation response to the upper computer to confirm whether the command is executed successfully.

[0053] Lower computer reply status: The lower computer periodically sends status information to the upper computer, such as the currently running algorithm, system resource usage, etc.

[0054] When using CAN communication, both the upper and lower computers need to add a CAN message processing module.

[0055] The configurable description file is used for configuration identification of the upper computer. The upper computer can communicate with the lower computer only after identifying the configuration, including communication mode, algorithm properties, CPU properties, and task properties.

[0056] Communication method: define communication protocol, baud rate and other information.

[0057] Algorithm properties: define algorithm ID, algorithm code, execution priority, etc.

[0058] CPU properties: define CPU type, frequency, memory and other information.

[0059] Task attributes: define the task ID, period, associated algorithm, etc.

[0060]

[0061]

[0062] In step S200, the corresponding vehicle-mounted algorithm is managed through the linked list to obtain management data, specifically including operating the corresponding vehicle-mounted algorithm, counting the running time of the vehicle-mounted algorithm and adjusting the running time of the vehicle-mounted algorithm;

[0063] The operations performed on the corresponding on-board algorithm specifically include: adding elements in the on-board algorithm, deleting elements in the on-board algorithm, searching for elements in the on-board algorithm, and traversing the on-board algorithm.

[0064] Use linked lists to operate the corresponding on-board algorithms, that is, use linked lists to effectively manage the addition, deletion, and search operations of the algorithms. Linked lists are dynamic data structures that can easily insert and delete elements in the middle. Each node of the linked list contains an on-board algorithm information and a pointer to the next node.

[0065] The process of adding elements in the on-board algorithm includes: initializing the linked list head; creating the node to be added; traversing the linked list to the end and adding the node to be added.

[0066] The specific commands implemented are:

[0067] / / Define the linked list node structure

[0068] typedef struct ListNode

[0069] {

[0070] char algorithm_id

[50] ;

[0071] char algorithm_code

[200] ;

[0072] struct ListNode* next;

[0073] }ListNode;

[0074] The sample code is as follows:

[0075]

[0076]

[0077] The process of deleting elements in the on-board algorithm includes: initializing the linked list head; determining the node to be deleted; traversing the linked list to the end and deleting the node to be deleted.

[0078] The specific commands implemented are:

[0079]

[0080]

[0081] The process of searching for elements in the on-board algorithm includes: initializing the linked list head; determining the node to be searched; traversing the linked list to the end to find the node.

[0082] The specific commands implemented are:

[0083]

[0084]

[0085] In the present application, the specific process of counting the running time of the on-board algorithm and adjusting the running time of the on-board algorithm includes: counting the current running time, average running time and maximum running time of the target on-board algorithm through a linked list; and adjusting the running cycle of the target on-board algorithm according to needs using the node pointer in the linked list.

[0086] In this application, the stack size consumed by the operation of each algorithm is recorded and statistical data is provided.

[0087] In step S300, the management data is graphically displayed to facilitate interaction with a user. Figure 2 This is a schematic diagram showing the running time of the vehicle-mounted algorithm proposed in Embodiment 1 of the present invention; Figure 2 The stack size consumed by the onboard algorithm when running is also recorded.

[0088] This application can also monitor and display the type, frequency and memory usage of each sub-control module in the vehicle controller. Figure 3 A schematic diagram showing the type, frequency and memory usage status of each sub-control module proposed in Embodiment 1 of the present invention;

[0089] And display the tasks in the current system and their related properties, such as cycle, associated algorithms, etc. Figure 4 A schematic diagram showing management tasks of an on-board algorithm proposed in Embodiment 1 of the present invention;

[0090] The management and analysis method of an on-board algorithm proposed in Example 1 of the present invention can realize real-time observation of the running time of the on-board controller algorithm, real-time adjustment of the running cycle of the on-board algorithm, and operation of the on-board algorithm.

[0091] Example 2

[0092] Based on the vehicle-mounted algorithm management and analysis method proposed in Embodiment 1 of the present invention, Embodiment 2 of the present invention further proposes a vehicle-mounted algorithm management and analysis system. Figure 5 A schematic diagram of a vehicle-mounted algorithm management and analysis system proposed in Embodiment 2 of the present invention; the system has a preprocessing module, a management module and a display module;

[0093] The preprocessing module is used to obtain control instructions for the operation of the target vehicle, and insert the linked list into the corresponding vehicle-mounted algorithm according to the control instructions;

[0094] The management module is used to manage the corresponding vehicle-mounted algorithm through the linked list to obtain management data, specifically including operating the corresponding vehicle-mounted algorithm, counting the running time of the vehicle-mounted algorithm and adjusting the running time of the vehicle-mounted algorithm;

[0095] The display module is used to display the management data graphically to facilitate interaction with users.

[0096] In the preprocessing module, by embedding code inside the vehicle controller, that is, receiving and parsing control instructions from the user or the host computer through the lower computer software, the control instructions are converted into operations that the system can understand.

[0097] In the management module, add elements to the vehicle algorithm, delete elements in the vehicle algorithm, find elements in the vehicle algorithm, and traverse the vehicle algorithm

[0098] The process of adding elements in the on-board algorithm includes: initializing the linked list head; creating the node to be added; traversing the linked list to the end and adding the node to be added.

[0099] The process of deleting elements in the on-board algorithm includes: initializing the linked list head; determining the node to be deleted; traversing the linked list to the end and deleting the node to be deleted.

[0100] The process of searching for an element in the on-board algorithm includes: initializing the linked list head; determining the node to be searched; traversing the linked list to the end to find the node

[0101] Counting the running time of the on-board algorithm specifically includes: counting the current running time, average running time and maximum running time of the target on-board algorithm; and adjusting the running cycle of the target on-board algorithm according to demand using the node pointer in the linked list.

[0102] In the display module: the running time of the vehicle algorithm is displayed; the type, frequency and memory usage of each sub-control module in the vehicle controller are displayed; the tasks in the current system and their related properties, such as cycle, associated algorithms, etc. are displayed.

[0103] A vehicle-mounted algorithm management and analysis system proposed in Example 2 of the present invention can realize real-time observation of the running time of the vehicle-mounted controller algorithm, real-time adjustment of the running cycle of the vehicle-mounted algorithm, and operation of the vehicle-mounted algorithm.

[0104] For the description of the relevant parts of the management and analysis system of a vehicle-mounted algorithm provided in Example 2 of the present application, please refer to the detailed description of the corresponding parts of the management and analysis method of a vehicle-mounted algorithm provided in Example 1 of the present application, and will not be repeated here.

[0105] Example 3

[0106] The present invention also proposes a device, Figure 6 This is a schematic diagram of a vehicle-mounted algorithm management and analysis device proposed in Embodiment 3 of the present invention, the device comprising:

[0107] Memory for storing computer programs;

[0108] The processor is used to implement the following method steps when executing the computer program:

[0109] In step S100, a control instruction for operating the target vehicle is obtained, and a linked list is inserted into a corresponding vehicle-mounted algorithm according to the control instruction;

[0110] In step S200, the corresponding vehicle-mounted algorithm is managed through the linked list to obtain management data, specifically including operating the corresponding vehicle-mounted algorithm, counting the running time of the vehicle-mounted algorithm and adjusting the running time of the vehicle-mounted algorithm;

[0111] The operations performed on the corresponding on-board algorithm specifically include: adding elements in the on-board algorithm, deleting elements in the on-board algorithm, searching for elements in the on-board algorithm, and traversing the on-board algorithm.

[0112] In step S300, the management data is graphically displayed to facilitate interaction with a user.

[0113] The management and analysis device for an on-board algorithm proposed in Embodiment 3 of the present invention can realize real-time observation of the running time of the on-board controller algorithm, real-time adjustment of the running cycle of the on-board algorithm, and operation of the on-board algorithm.

[0114] It should be noted that the technical solution of the present invention also provides an electronic device, including: a communication interface, capable of exchanging information with other devices such as network devices; a processor, connected to the communication interface to realize information interaction with other devices, and used to execute a management and analysis method of a vehicle-mounted algorithm provided by one or more of the above-mentioned technical solutions when running a computer program, and the computer program is stored in a memory.

[0115] For the description of the relevant parts of the method for managing and analyzing a vehicle-mounted algorithm provided in Example 3 of the present application, please refer to the detailed description of the corresponding parts of the device for managing and analyzing a vehicle-mounted algorithm provided in Example 1 of the present application, and will not be repeated here.

[0116] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment that includes a series of elements are inherent to the elements. In the absence of more restrictions, the elements limited by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or equipment that includes the elements. In addition, the above-mentioned technical solution provided in the embodiment of the present application is consistent with the corresponding technical solution in the prior art in principle, and the part is not described in detail, so as not to repeat too much.

[0117] Although the above describes the specific implementation of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. For those skilled in the art, other different forms of modifications or deformations can be made on the basis of the above description. It is not necessary and impossible to list all the implementation methods here. On the basis of the technical solution of the present invention, various modifications or deformations that can be made by those skilled in the art without creative work are still within the scope of protection of the present invention.

Claims

1. A method for managing and analyzing vehicle-mounted algorithms, characterized in that: Running in the vehicle controller, including the following steps: Obtaining control instructions for the operation of the target vehicle, and inserting the linked list into the corresponding vehicle-mounted algorithm according to the control instructions; The corresponding vehicle-mounted algorithm is managed through the linked list to obtain management data, specifically including operating the corresponding vehicle-mounted algorithm, counting the running time of the vehicle-mounted algorithm and adjusting the running time of the vehicle-mounted algorithm; The management data is graphically displayed to facilitate interaction with users.

2. The method for managing and analyzing an in-vehicle algorithm according to claim 1, characterized in that: The method further comprises: Monitor and display the type, frequency and memory usage of each sub-control module in the vehicle controller.

3. The method for managing and analyzing an in-vehicle algorithm according to claim 1, characterized in that: The method also includes: recording the stack size consumed when the on-board algorithm is running.

4. The method for managing and analyzing an in-vehicle algorithm according to claim 1, characterized in that: The operations on the on-board algorithm specifically include: adding elements in the on-board algorithm, deleting elements in the on-board algorithm, searching for elements in the on-board algorithm, and traversing the on-board algorithm.

5. The method for managing and analyzing vehicle-mounted algorithms according to claim 4, characterized in that: The process of adding elements to the on-board algorithm includes: Initialize the linked list header; Create the node to be added; Traverse the linked list to the end and add the node to be added.

6. The method for managing and analyzing vehicle-mounted algorithms according to claim 4, characterized in that: The process of deleting elements in the on-board algorithm includes: Initialize the linked list header; Determine the nodes that need to be deleted; Traverse the linked list to the end and delete the nodes that need to be deleted.

7. The method for managing and analyzing vehicle-mounted algorithms according to claim 4, characterized in that: The process of finding an element in the on-board algorithm includes: Initialize the linked list header; Determine the node to be searched; Traverse the linked list to the end and find the node.

8. The method for managing and analyzing vehicle-mounted algorithms according to claim 1, characterized in that: The running time of the statistical vehicle-mounted algorithm specifically includes: Calculate the current running time, average running time and maximum running time of the target vehicle algorithm; And according to the needs, the node pointer in the linked list is used to adjust the operation cycle of the target vehicle-mounted algorithm.

9. A management and analysis system for vehicle-mounted algorithms, characterized in that: It includes pre-processing module, management module and display module; The preprocessing module is used to obtain control instructions for the operation of the target vehicle, and insert the linked list into the corresponding vehicle-mounted algorithm according to the control instructions; The management module is used to manage the corresponding vehicle-mounted algorithm through the linked list to obtain management data, specifically including operating the corresponding vehicle-mounted algorithm, counting the running time of the vehicle-mounted algorithm and adjusting the running time of the vehicle-mounted algorithm; The display module is used to display the management data in a graphical manner to facilitate interaction with users.

10. A vehicle-mounted algorithm management and analysis device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the method steps according to any one of claims 1 to 8 when executing the computer program.