Process management method and device, computer equipment and readable storage medium

By obtaining status switching instructions in the ECU of the automotive system and controlling the business process, the problem of excessive ECU operation pressure is solved, and the refined control of process management is realized, and the response speed and energy efficiency of the vehicle system are improved.

CN118897738AInactive Publication Date: 2024-11-05CHENGDU CELIS TECH CO LTD

Patent Information

Application Number
CN202411392587.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2024-11-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In automotive systems, when the number of processes running by the electronic control unit (ECU) reaches the limit of computing power, the response time becomes longer, affecting the real-time control function of the vehicle.

Method used

By obtaining status switching instructions for target services, determining the target service status, and running or stopping the corresponding business processes in the ECU, the process is refined, the number of invalid processes is reduced, and the operation pressure and energy consumption of the ECU are reduced.

Benefits of technology

It effectively reduces the operating pressure and energy consumption of the ECU, avoids response delays and functional failures, and ensures the real-time and communication accuracy of the vehicle system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897738A_ABST
    Figure CN118897738A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, in particular to a process management method and device, computer equipment and a readable storage medium. The process management method comprises the steps of obtaining a state switching instruction for a target service; wherein the target service corresponds to a function group, and the function group comprises service processes of the target service in different service states; determining a target service state of the target service according to the state switching instruction; and running the business process corresponding to the target business state in the function group, and stopping running the business process corresponding to the non-target business state in the function group.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a process management method, apparatus, computer device and readable storage medium. Background Art

[0002] In automotive systems, the Electronic Control Unit (ECU) plays a vital role, coordinating and managing various functions and performance parameters of the vehicle.

[0003] A process is a program with independent functions that runs on a certain data set. It can apply for and own system resources and is the basic unit for resource allocation and scheduling. A process is a dynamic concept and an active entity. In the ECU, a process also represents a software entity that performs a specific function and is responsible for processing tasks and data related to vehicle control.

[0004] When the number of processes running on the ECU reaches the limit of computing power, the response time of the ECU may be prolonged, affecting the real-time control of the vehicle and other functions. Therefore, improvement is urgently needed. Summary of the invention

[0005] Based on this, it is necessary to provide a process management method, apparatus, computer device and readable storage medium that can improve the accuracy of process management in response to the above technical problems.

[0006] In a first aspect, the present application provides a process management method, comprising:

[0007] Obtaining a state switching instruction for a target business; wherein the target business corresponds to a function group, and the function group includes business processes of the target business in different business states;

[0008] Determine the target business state of the target business according to the state switching instruction;

[0009] The business process corresponding to the target business state in the running function group is stopped, and the business process corresponding to the non-target business state in the running function group is stopped.

[0010] In one embodiment, determining the target service state of the target service according to the state switching instruction includes:

[0011] Based on the state switching mapping relationship corresponding to the target business, the target business state of the target business is determined according to the current business state of the target business and the target state switching parameter carried in the state switching instruction;

[0012] The state switching mapping relationship includes a mapping relationship between candidate state switching parameters and candidate state switching pairs; each candidate state switching pair includes a pre-switching service state and a post-switching service state.

[0013] In one embodiment, the business processes included in the functional group run on the first ECU and / or the second ECU; wherein the second ECU includes an ECU in the vehicle other than the first ECU.

[0014] In one embodiment, running a service process corresponding to a target service state in a functional group, and stopping running a service process corresponding to a non-target service state in a functional group, includes:

[0015] In the case where the first ECU does not have a state switching service, sending a multicast message to each second ECU;

[0016] In case of receiving a response message from any second ECU based on the multicast message feedback, the second ECU is used as the target ECU;

[0017] Control the target ECU to run the business process corresponding to the target business state in the function group, and stop the business process corresponding to the non-target business state in the function group.

[0018] In one embodiment, running a service process corresponding to a target service state in a functional group, and stopping running a service process corresponding to a non-target service state in a functional group, includes:

[0019] In the case where the first ECU has a state switching service, the state switching service corresponding to the first ECU is called to run the business process corresponding to the target business state in the function group, and stop running the business process corresponding to the non-target business state in the function group.

[0020] In one embodiment, the method further comprises:

[0021] Determine the service identifier, instance identifier, and communication channel corresponding to the state switching service according to the target state switching parameters;

[0022] According to the service identifier, the instance identifier and the communication channel, query the service address corresponding to the state switching service in the first ECU;

[0023] If the service address is found, it is determined that the first ECU has the state switching service.

[0024] In one embodiment, obtaining a state switching instruction for a target service includes:

[0025] A state switching instruction for a target service initiated by a vehicle application deployed on the first ECU is obtained.

[0026] In a second aspect, the present application also provides a process management device, including:

[0027] An acquisition module is used to acquire a state switching instruction for a target business; wherein the target business corresponds to a function group, and the function group includes business processes of the target business in different business states;

[0028] A state determination module, used to determine a target business state of a target business according to a state switching instruction;

[0029] The process control module is used to run the business process corresponding to the target business state in the function group, and stop the business process corresponding to the non-target business state in the function group.

[0030] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0031] Obtaining a state switching instruction for a target business; wherein the target business corresponds to a function group, and the function group includes business processes of the target business in different business states;

[0032] Determine the target business state of the target business according to the state switching instruction;

[0033] The business process corresponding to the target business state in the running function group is stopped, and the business process corresponding to the non-target business state in the running function group is stopped.

[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0035] Obtaining a state switching instruction for a target business; wherein the target business corresponds to a function group, and the function group includes business processes of the target business in different business states;

[0036] Determine the target business state of the target business according to the state switching instruction;

[0037] The business process corresponding to the target business state in the running function group is stopped, and the business process corresponding to the non-target business state in the running function group is stopped.

[0038] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0039] Obtaining a state switching instruction for a target business; wherein the target business corresponds to a function group, and the function group includes business processes of the target business in different business states;

[0040] Determine the target business state of the target business according to the state switching instruction;

[0041] The business process corresponding to the target business state in the running function group is stopped, and the business process corresponding to the non-target business state in the running function group is stopped.

[0042] The above-mentioned process management method, device, computer equipment and readable storage medium, when the business logic is executed, determine the target business state according to the state switching instruction, and control the operation of the first process required by the business logic in the target business state without controlling the operation of the processes in the entire functional group, thereby realizing refined control of the process, reducing the number of invalidly running processes on the first ECU, and reducing the operating pressure and energy consumption of the first ECU. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] FIG1 is an application environment diagram of a process management method in one embodiment;

[0045] FIG2 is a schematic diagram of a process management method in one embodiment;

[0046] FIG3 is a flow chart of a step of determining whether a first ECU has a state switching service in one embodiment;

[0047] FIG4 is a schematic diagram of a service creation process in one embodiment;

[0048] FIG5 is a schematic diagram of a service discovery process in one embodiment;

[0049] FIG6 is a schematic flow diagram of the steps of executing a business process corresponding to a target business state in a function group in one embodiment;

[0050] FIG7 is a schematic diagram of a process management method in another embodiment;

[0051] FIG8 is a block diagram of a process management device in one embodiment;

[0052] FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

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

[0054] The process management method provided in the embodiment of the present application can be applied to the application environment shown in FIG. 1 , which includes a first electronic control unit ECU (first ECU) 104 and a second electronic control unit ECU (second ECU) 102 .

[0055] In an exemplary embodiment, as shown in FIG2 , a process management method is provided, which is described by taking the method applied to the first ECU 104 in FIG1 as an example, and includes the following S201 to S203 . Among them:

[0056] S201: Obtain a state switching instruction for a target service.

[0057] Among them, the target business corresponds to a functional group.

[0058] It can be understood that a function group is a set of components in a vehicle system used to implement specific business logic or functions; each function group corresponds to a specific business, such as navigation, entertainment, safety monitoring, etc. Among them, the function group includes the business processes of the target business in different business states.

[0059] It can be understood that a process is an execution process of a program and is the basic unit for resource allocation and scheduling in the system. In the vehicle system, processes are used to perform specific tasks, such as data processing, sensor reading, user input processing, etc. A business can correspond to multiple processes, which may be responsible for different subtasks or functions and work together to implement the entire business logic. Business execution can be divided into multiple stages, such as initialization stage, data processing stage, result output stage, etc. Each stage has its specific tasks and goals, and requires different processing logic and resources.

[0060] S202: Determine a target service state of a target service according to a state switching instruction.

[0061] The management between different states can be achieved through mechanisms such as state machines, event-driven or conditional variables.

[0062] In this embodiment, the state switching instruction refers to a command used to trigger the business object to switch from one state to another state in its life cycle. The state switching instruction may be triggered by an external event or signal.

[0063] The target business state indicated by the state switching instruction refers to the next state that the business object is expected to reach or change to through the instruction during the business execution process. This state is pre-defined and is used to describe the behavior characteristics or execution stage of the business object under specific conditions.

[0064] Exemplary, start the navigation system: when the user chooses to start navigation, the system executes the state switching instruction of starting the navigation system, and switches the state of the navigation system from "not started" to "running", and "running" is the target business state. Specifically, the state switching instruction may contain some parameters, which directly or indirectly indicate the target business state. For example, the instruction may directly specify the name or code of the target business state, or provide sufficient information for the system to infer the target state.

[0065] S203: running the service process corresponding to the target service state in the function group, and stopping the service process corresponding to the non-target service state in the function group.

[0066] Optionally, an adaptive platform (AP) is deployed on the first ECU, and an execution management module (EM) is configured in the adaptive platform AP. The EM module is responsible for controlling the execution or stopping of the process.

[0067] In this embodiment, from the function group corresponding to the target business, a process corresponding to the target business state is selected, recorded as the "first process", and a process corresponding to the non-target business state is selected, recorded as the "second process". The EM module is used to control the first process to run and the second process to stop.

[0068] In the above-mentioned process management method, when the business logic is executed, the target business state is determined according to the state switching instruction, and the business logic is controlled to run the first process required for the target business state, without controlling the process running within the entire functional group, thereby realizing refined control of the process, reducing the number of invalidly running processes on the first ECU, and reducing the operating pressure and energy consumption of the first ECU.

[0069] It is understandable that when the number of processes executed in an ECU (for example, the first ECU or the second ECU in this embodiment) exceeds its processing upper limit, the ECU will experience resource shortage. In this case, the following impacts will occur:

[0070] The first aspect is the processing speed. Since a large amount of data and control signals need to be processed simultaneously, the processor of the ECU may reach the limit of its computing power. In this case, the response time of the ECU will be longer, resulting in delays in some functions with high real-time requirements such as brake assist and power output control. In this embodiment, through the above-mentioned process management method, by reasonably allocating the processing tasks of the ECU, the operating pressure of the first ECU is reduced and the response delay is avoided.

[0071] Secondly, when the processor of the ECU reaches the limit of its computing power, the shortage of memory resources is also an issue that cannot be ignored. The ECU needs to store a large amount of data, including vehicle status, fault codes, driver settings, etc. When the memory space is insufficient, the ECU may not be able to save new information or effectively retrieve old data, which may cause certain functions to fail or produce misjudgments. In this embodiment, through the above-mentioned process management method, by reasonably allocating the processing tasks of the ECU, the operating pressure of the first ECU is reduced and functional failure is avoided.

[0072] Third, in terms of communication, the ECU needs to communicate with other parts of the vehicle through a complex bus system. When ECU resources are tight, the communication bandwidth may be fully occupied, resulting in obstruction of information transmission or conflicts. This may cause coordination problems between vehicle systems, such as poor coordination between the engine and the transmission, and inaccurate transmission of sensor data. In this embodiment, through the above-mentioned process management method, by reasonably allocating the processing tasks of the ECU, the operating pressure of the first ECU is reduced, and the transmission accuracy of the communication is ensured.

[0073] Fourthly, the shortage of ECU resources may also affect the energy consumption of the vehicle. Since more energy is needed to process data and run functions, the energy consumption of the ECU may increase. This will not only lead to an increase in the overall fuel consumption of the vehicle, but may also affect the battery life (for electric vehicles). In this embodiment, through the above-mentioned process management method, by reasonably allocating the processing tasks of the ECU, the operating pressure of the first ECU is reduced, and the energy consumption of the vehicle is reduced.

[0074] In an exemplary embodiment, the target business state of the target business is determined according to the state switching instruction, including: based on the state switching mapping relationship corresponding to the target business, the target business state of the target business is determined according to the current business state of the target business and the target state switching parameters carried in the state switching instruction.

[0075] The state switching mapping relationship includes a mapping relationship between candidate state switching parameters and candidate state switching pairs; each candidate state switching pair includes a pre-switching service state and a post-switching service state.

[0076] In this embodiment, the state switching of the target service is the event-driven mode described above. Accordingly, the target state switching parameter carried in the state switching instruction is the event number (event id), as shown in Table 1 below. Each event id corresponds to a candidate switching pair, and the candidate switching pair includes a service state before switching and a service state after switching:

[0077] Table 1

[0078]

[0079] Specifically, after the event id is obtained, the post-switching service state corresponding to the event id is searched in Table 1 as the target service state.

[0080] As can be seen from Table 1 above, the business states corresponding to the ADC Function Group may include Off (off function mode), Running Mode (user mode), Factory Mode (factory mode), Update Statement (upgrade mode) and Calibration Mode (calibration mode); the business states corresponding to the MPC Function Group may include Off (off function mode) and Running Mode (user mode).

[0081] Correspondingly, obtaining a state switching instruction for the target service includes: obtaining a state switching instruction for the target service initiated by a vehicle application deployed on the first ECU.

[0082] Optionally, the vehicle application can be an Advanced Driver Assistance System (ADAS) application. As the vehicle's advanced driver assistance system, the AA application can initiate switching instructions for the vehicle's system states based on the vehicle's current driving environment, the driver's operating intention, and the system's own operating status. These instructions are intended to optimize vehicle performance, improve driving safety and comfort, and meet the needs of different driving scenarios.

[0083] In this embodiment, specific modifications can be made according to the scenario through event numbers, business status before switching, and business status after switching, which has many advantages such as improving system responsiveness, achieving high decoupling, enhancing scalability, and improving maintainability.

[0084] In an exemplary embodiment, the service processes included in the functional group are run on the first ECU and / or the second ECU, wherein the second ECU includes an ECU in the vehicle other than the first ECU.

[0085] It is understandable that the AutoSar AP platform can be deployed across ECUs. Through this AP platform, the processes on each ECU platform can be managed to achieve cross-ECU process management. The reason for cross-ECU management is that some business logic or functions of the vehicle are distributed on different ECUs for execution, that is, the processes distributed on different ECUs can belong to the same functional group. Therefore, when managing any functional group through the AP platform, it supports managing the processes of the functional group on different ECUs.

[0086] In an implementable manner, running a service process corresponding to a target service state in a function group, and stopping running a service process corresponding to a non-target service state in a function group, includes:

[0087] In the case where the first ECU has a state switching service, the state switching service corresponding to the first ECU is called to run the business process corresponding to the target business state in the function group, and stop running the business process corresponding to the non-target business state in the function group.

[0088] It can be understood that the state switching service is a service provided by the state management (SM) module in the AP platform. When the first ECU has the state switching service, the state switching service corresponding to the first ECU is called to run the business process corresponding to the target business state in the function group, and stop running the business process corresponding to the non-target business state in the function group.

[0089] Specifically, the state switching service refers to the SM module evaluating the current state of the functional group based on the received events or requests, and deciding whether it is necessary to switch to a new state. The evaluation process may involve comprehensive consideration of multiple factors, such as system resource utilization, task execution progress, etc. Based on the evaluation results, the SM module decides whether a state switch is required. If the state needs to be switched, the SM will generate a corresponding state switching request. The state switching request is executed by executing the above-mentioned EM module, which is responsible for the actual state transition process, including stopping the currently executing task, starting a new task, etc.

[0090] Optionally, as shown in FIG3 , determining whether the first ECU has a state switching service includes:

[0091] S301, determining a service identifier, an instance identifier, and a communication channel corresponding to a state switching service according to a target state switching parameter.

[0092] Specifically, the service ID, instance ID, and communication channel required for a specific service are identified based on the target state switching parameters. The service ID is used to uniquely identify a service, the instance ID is used to distinguish different instances of the same service, and the communication channel defines how to communicate.

[0093] It is understandable that in order to adapt to the change of the location of the service provider and add an event manager on the existing basis, the functions of the event manager include: 1. Event monitoring: The event manager monitors the business function group switching events from the ECU. 2. Event classification: Classify events according to the nature, priority or other criteria of the event. 3. Event allocation: According to the classification results, the event is assigned to a specific ECU or ECU group. 4 Instance ID / channel allocation: Assign a unique instance ID or communication channel to the state switching service running on each ECU. 5. Event notification: Notify the target ECU of the event and its related information (including instance ID / channel). 6. Status monitoring: Monitor the processing status of the event and make necessary adjustments or interventions.

[0094] It will be responsible for dividing the business function group switching events on the ECU into different ECUs according to the predetermined range. The state switching service running on each ECU will be assigned a different instance ID or communication channel, as shown in Table 2 below:

[0095] Table 2

[0096]

[0097] S302: query the service address corresponding to the state switching service in the first ECU according to the service identifier, the instance identifier and the communication channel.

[0098] It is understood that ECUs usually contain a service registry (or service directory) that stores detailed information of all available services, including service addresses, interface types, etc. The service registry is accessed using appropriate interfaces or APIs, which may be predefined function calls or message passing mechanisms. The service ID, instance ID, and communication channel are submitted to the service registry as query parameters. The service registry retrieves the corresponding service information based on these parameters.

[0099] Optionally, the service registration center is used to manage services on each ECU. The service creation process involves a series of sub-steps of defining, implementing, registering and enabling new services on the AP platform, which may include:

[0100] 1. Service definition: Based on business requirements, determine the type of service required (method, event, field). Specify the service's input parameters, output parameters, and any necessary business logic. Write a detailed description of the service, including its functions, purpose, and expected behavior.

[0101] 2. Service implementation: Based on the service definition, write the actual code implementation of the service. Make sure the service code correctly implements the defined service interface. Before deploying the service to the AP platform, perform local testing to ensure it works as expected.

[0102] 3. Service registration: Collect service metadata, such as service name, type, interface description, etc. Submit the service registration information to the em execution management module of the AP platform. The em execution management module will verify the registration information and confirm that the service has been successfully registered.

[0103] 4. Service activation: Configure the service's operating parameters according to business needs. Start the service on the AP platform so that it starts listening and processing requests. Perform integration tests with other services or clients to ensure that the service works properly in the actual environment.

[0104] Furthermore, as shown in Figure 4, service creation in the AP platform is a detailed process involving multiple steps:

[0105] Step 1: Set the communication channel and parameters: Select the communication channel required by the service (for example: someip, dds, ipc), and configure the relevant parameters according to the selected channel. The ipc communication protocol is mainly used for communication within the ECU. The someip and dds communication protocols are used for communication across ECUs, among which dds is particularly suitable for high-load data transmission.

[0106] Configure service interface: List all mounted interfaces under the service. Identify the input and output parameters of each interface. Define the type of each interface (such as method, event, field) and implementation method. Define the data type of interface parameters: Describe the data type of interface input and output parameters in detail. Define the communication behavior of the service: Clearly describe the interaction relationship and communication behavior of the service between ECUs, and obtain the AP service matrix.

[0107] Step 2: Use the Mainfest configuration tool to import information. Import the service information in the AP service matrix into the Mainfest configuration tool. In the configuration tool, further set the process resource allocation, process lifecycle management, and access rights running on the AP platform. After completing the configuration, the system will generate an Armxml file that contains all the necessary configuration information.

[0108] Step 3: Generate code through the code generation tool The code generation tool reads the configuration information in the Armxml file and generates platform-related configuration information, service skeleton code, and proxy code based on the configuration information.

[0109] Step 4: Business process integration and service call Business process integrates the generated code according to the requirements. Service consumers access services by calling the service proxy code. Service providers implement specific service logic by calling the service skeleton code.

[0110] Furthermore, in the process of service registration, it includes: as shown in Figure 5, the service provider registers (as shown in Figure 5, ①): the service provider registers the service ID, instance ID (including the IP address and port information of the ECU) and the adopted communication channel (i.e., the communication protocol) provided by it to the service registration center of the first ECU where it is located. In this way, the service registration center has all the necessary information of the service provider for the subsequent service discovery process; the service registration center of the first ECU and the service registration center of the second ECU can communicate with each other (as shown in Figure 5, ② and ③), so that the service consumer can obtain the registration information from the second ECU (as shown in Figure 5, ④), and the service consumer can communicate with the service provider (as shown in Figure 5, ⑤).

[0111] S303: If the service address is found, it is determined that the first ECU has a state switching service.

[0112] Specifically, if the query is successful, the service registration center will return the service address corresponding to the state switching service. This address may be a memory address, network interface address, or other form of identifier, depending on the ECU architecture and communication protocol. If the query fails (for example, the service does not exist or the parameters do not match), the service registration center will return a corresponding error message.

[0113] In another possible implementation, as shown in FIG6 , running the service process corresponding to the target service state in the function group, and stopping the service process corresponding to the non-target service state in the function group, include:

[0114] S601 : When the first ECU does not have a state switching service, a multicast message is sent to each second ECU.

[0115] Specifically, when the first ECU determines that it cannot provide the state switching service, it will send a multicast message to each second ECU in the network. The purpose of this message is to ask whether there are other ECUs that can provide the required state switching service.

[0116] S602: When receiving a response message from any second ECU based on the multicast message feedback, use the second ECU as the target ECU.

[0117] Specifically, when any second ECU receives the multicast message and it can indeed provide the state switching service, it will send a response message to the first ECU. After receiving the response message, the first ECU will determine the second ECU that sends the response as the target ECU, that is, the ECU that can provide the service.

[0118] S603, controlling the target ECU to run the service process corresponding to the target service state in the function group, and stopping the service process corresponding to the non-target service state in the function group.

[0119] Specifically, once the target ECU is determined, the first ECU will send a command to it, requiring it to run the service process corresponding to the target service state in the functional group. At the same time, the first ECU will also require the target ECU to stop running the service process corresponding to the non-target service state in the functional group.

[0120] In this way, even if the first ECU does not have a state switching service, it can ensure that the business processes in the functional group can be started and stopped correctly according to the target business state through cooperation with other ECUs. This mechanism improves the flexibility and reliability of the system because it allows the system to dynamically distribute service responsibilities among different ECUs.

[0121] Exemplarily, the process of service discovery includes: The service consumer initiates a search request: The service consumer sends a message containing the service ID, instance ID and communication channel to the service registration center of the first ECU where it is located, indicating that it needs to find and connect to a specific service. This step is initiated by the service consumer, who hopes to find a service provider that can provide the required service.

[0122] The first ECU service registration center makes a judgment: The first ECU service registration center checks whether the requested service is provided by this ECU. If this ECU does not provide the service, the first ECU service registration center will send a multicast message to the network to ask whether there are other ECUs that provide the service. The second ECU service registration center responds to the multicast message: After receiving the multicast message sent by the first ECU, the second ECU service registration center checks whether there is an instance that provides the service inside it.

[0123] If there is an instance of the service provided in the second ECU, the service registration center of the second ECU will reply a unicast message to the service registration center of the first ECU, which contains the IP address and port information of the ECU providing the service. The service registration center of the first ECU forwards the unicast message: After receiving the unicast message replied by the second ECU, the service registration center of the first ECU forwards the information in the message to the service consumer in the first ECU. In this way, the service consumer obtains the IP address and port information of the ECU providing the service.

[0124] Establishing a connection: The service consumer of the first ECU uses the received IP address and port information to directly establish a connection with the service provider of the second ECU. Once the connection is established, the service consumer can call the service provided by the service provider. Through this interactive process of service registration and discovery, the service consumer in the distributed system can dynamically find and connect to the service provider, realizing flexible service calling and efficient operation of the system.

[0125] In an exemplary embodiment, as shown in FIG7 , the process management method includes:

[0126] Event initiation and query phase: The AA application deployed on the first ECU queries the event manager according to the event number, dynamically obtains the instance ID and communication channel of the state switching service on the target ECU, and avoids hard coding.

[0127] Communication path establishment and service query phase: The event manager calls the AA application to try to establish a communication path with the service registration center of the first ECU based on the service ID, instance ID and communication channel. The event manager calls the service registration center to check whether the first ECU provides the target state switching service: if provided, the service location information is returned to the AA application. The event manager calls the AA application to establish communication with the state switching service and sends the event number. If not provided, a multicast message is sent to ask other ECUs in the domain control whether they provide the service.

[0128] Cross-ECU service response and execution phase: After receiving the multicast message, the second ECU checks whether it provides the target state switching service and provides the service location information to the service registration center of the first ECU. The service registration center of the first ECU forwards the service location information to the AA application. The event manager calls the AA application to establish communication with the state switching service of the second ECU and sends the event number. The event manager calls the state switching service, and the state switching service internally arbitrates the switching conditions. When they are met, the business function group and the target function group status information are sent to the execution management (EM module) of the AP platform. The EM module starts and stops the corresponding process according to the status information to complete the process management across ECUs.

[0129] This process achieves efficient state switching and process management across ECUs through dynamic service discovery and flexible communication mechanisms.

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

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

[0132] In an exemplary embodiment, as shown in FIG8 , a process management device is provided, including: an acquisition module 11, a state determination module 12 and a process control module 13, wherein:

[0133] An acquisition module 11 is used to acquire a state switching instruction for a target service; wherein the target service corresponds to a function group, and the function group includes service processes of the target service in different service states;

[0134] A state determination module 12, used to determine a target service state of a target service according to a state switching instruction;

[0135] The process control module 13 is used to run the service process corresponding to the target service state in the function group, and stop running the service process corresponding to the non-target service state in the function group.

[0136] In one embodiment, the state determination module 12 is further used to determine the target business state of the target business based on the state switching mapping relationship corresponding to the target business and according to the current business state of the target business and the target state switching parameter carried in the state switching instruction;

[0137] The state switching mapping relationship includes a mapping relationship between candidate state switching parameters and candidate state switching pairs; each candidate state switching pair includes a pre-switching service state and a post-switching service state.

[0138] In one embodiment, the business processes included in the functional group run on the first ECU and / or the second ECU; wherein the second ECU includes an ECU in the vehicle other than the first ECU.

[0139] In one of the embodiments, the process control module 13 is further configured to send a multicast message to each second ECU when the first ECU does not have a state switching service;

[0140] In case of receiving a response message from any second ECU based on the multicast message feedback, the second ECU is used as the target ECU;

[0141] Control the target ECU to run the business process corresponding to the target business state in the function group, and stop the business process corresponding to the non-target business state in the function group.

[0142] In one of the embodiments, the process control module 13 is also used to call the state switching service corresponding to the first ECU when the first ECU has a state switching service, run the business process corresponding to the target business state in the function group, and stop running the business process corresponding to the non-target business state in the function group.

[0143] In one of the embodiments, the process control module 13 is further used to determine the service identifier, instance identifier and communication channel corresponding to the state switching service according to the target state switching parameters;

[0144] According to the service identifier, the instance identifier and the communication channel, query the service address corresponding to the state switching service in the first ECU;

[0145] If the service address is found, it is determined that the first ECU has the state switching service.

[0146] In one of the embodiments, the process control module 13 is further configured to obtain a state switching instruction for a target service initiated by a vehicle application deployed on the first ECU.

[0147] Each module in the above process management device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0148] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data of a process management method. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a process management method is implemented.

[0149] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0150] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0151] Obtaining a state switching instruction for a target business; wherein the target business corresponds to a function group, and the function group includes business processes of the target business in different business states;

[0152] Determine the target business state of the target business according to the state switching instruction;

[0153] The business process corresponding to the target business state in the running function group is stopped, and the business process corresponding to the non-target business state in the running function group is stopped.

[0154] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0155] Obtaining a state switching instruction for a target business; wherein the target business corresponds to a function group, and the function group includes business processes of the target business in different business states;

[0156] Determine the target business state of the target business according to the state switching instruction;

[0157] The business process corresponding to the target business state in the running function group is stopped, and the business process corresponding to the non-target business state in the running function group is stopped.

[0158] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0159] Obtaining a state switching instruction for a target business; wherein the target business corresponds to a function group, and the function group includes business processes of the target business in different business states;

[0160] Determine the target business state of the target business according to the state switching instruction;

[0161] The business process corresponding to the target business state in the running function group is stopped, and the business process corresponding to the non-target business state in the running function group is stopped.

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

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

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

Claims

1. A process management method, characterized in that: The method comprises: Acquire a state switching instruction for a target service; wherein the target service corresponds to a function group, and the function group includes service processes of the target service in different service states; Determining a target service state of the target service according to the state switching instruction; The service process corresponding to the target service state in the function group is run, and the service process corresponding to the non-target service state in the function group is stopped.

2. The method according to claim 1, characterized in that The determining the target service state of the target service according to the state switching instruction includes: Based on the state switching mapping relationship corresponding to the target service, and according to the current service state of the target service and the target state switching parameter carried in the state switching instruction, determining the target service state of the target service; The state switching mapping relationship includes a mapping relationship between candidate state switching parameters and candidate state switching pairs; each candidate state switching pair includes a pre-switching service state and a post-switching service state.

3. The method according to claim 2, characterized in that The business processes included in the functional group run on the first ECU and / or the second ECU; wherein the second ECU includes ECUs in the vehicle except the first ECU.

4. The method according to claim 3, characterized in that The method further comprises: Determine the service identifier, instance identifier and communication channel corresponding to the state switching service according to the target state switching parameters; According to the service identifier, the instance identifier and the communication channel, querying the service address corresponding to the state switching service in the first ECU; If the service address is found, it is determined that the first ECU has a state switching service; If the service address is not found, it is determined that the first ECU does not have a state switching service.

5. The method according to claim 4, characterized in that The running of the service process corresponding to the target service state in the functional group, and stopping the running of the service process corresponding to the non-target service state in the functional group, includes: In the case where the first ECU does not have a state switching service, sending a multicast message to each second ECU; In case of receiving a response message fed back by any second ECU based on the multicast message, taking the second ECU as the target ECU; The target ECU is controlled to run the service process corresponding to the target service state in the function group, and to stop running the service process corresponding to the non-target service state in the function group.

6. The method according to claim 4, characterized in that The running of the service process corresponding to the target service state in the functional group, and stopping the running of the service process corresponding to the non-target service state in the functional group, includes: In the case where the first ECU has a state switching service, the state switching service corresponding to the first ECU is called to run the business process corresponding to the target business state in the functional group, and stop running the business process corresponding to the non-target business state in the functional group.

7. The method according to claim 1, characterized in that The obtaining of the state switching instruction for the target service includes: A state switching instruction for a target service initiated by a vehicle application deployed on the first ECU is obtained.

8. A process management device, characterized in that: Configured in a first electronic control unit ECU, the device comprises: An acquisition module, used to acquire a state switching instruction for a target service; wherein the target service corresponds to a function group, and the function group includes service processes of the target service in different service states; A state determination module, used to determine a target service state of the target service according to the state switching instruction; The process control module is used to run the service process corresponding to the target service state in the function group, and stop running the service process corresponding to the non-target service state in the function group.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

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

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Business processing method and device, computer equipment and storage medium

    CN114756293A

  • State management method, configuration file generation method and equipment

    CN117827301A

  • Service display method and device, electronic equipment and storage medium

    CN118484365A

  • State management method and device and intelligent driving equipment

    CN118647975A

Cited By

  • State management method and apparatus, and device

    WO2026207822A1