State management method and device and intelligent driving equipment
Patent Information
- Application Number
- CN202380011256.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-13
- Publication Date
- 2024-09-13
AI Technical Summary
In the intelligent driving system, the state management method is difficult to effectively manage the system state and business state without directly obtaining the state information of all business nodes, resulting in incomplete state management.
By receiving the state switching request of the business node, determining the extended task information associated with the target state, and controlling the state switching or maintenance of the business node according to the extended task result, the state management of the business node is realized without directly obtaining the state of all business nodes. information.
It realizes the decoupling of the state management framework and the business layer, supports the independent evolution and mutual compatibility of the intelligent driving computing platform and business, and improves the user experience and system reliability.
Smart Images

Figure CN118647975A
Abstract
Description
State management method, device and intelligent driving equipment Technical Field
[0001] The present application relates to the field of intelligent driving, and in particular, to a state management method, apparatus, and intelligent driving device. Background Art
[0002] The specific business functions of the intelligent driving system are generally carried out by processes responsible for different basic functions. These processes do not exist in isolation in the system, and the processes responsible for different basic functions need to work together to complete specific business functions.
[0003] State management (SM) is an application responsible for managing system and business status within intelligent driving systems. Based on the demands of actual business scenarios, SM integrates the state information of each business in the intelligent driving system and decides whether to enable or disable the corresponding basic functions. If the corresponding basic functions are enabled, SM executes them according to the business process, ultimately achieving the target state and enabling the target business functions. However, with the rapid development of intelligent driving computing platforms, intelligent driving systems may integrate businesses from multiple sources. SM may not be able to directly obtain the state information of all businesses from different sources, or the required states of businesses from different sources are undefined, making it impossible for SM to effectively manage the system state or the states of all businesses in the system.
[0004] In view of this, it is urgent to develop a state management solution that does not require direct acquisition and perception of the specific state information of all services.
[0005] Summary of the Invention
[0006] The present application provides a state management method, apparatus, and intelligent driving device, which can realize state management of the services in the system when the status information of all services cannot be directly obtained, help to achieve decoupling between the state management framework platform and the business layer, and help the independent evolution and mutual compatibility of the intelligent driving computing platform and the intelligent driving service.
[0007] In a first aspect, a state management method is provided, which can be executed by an intelligent driving device; or, it can also be executed by a computing platform of the intelligent driving device; or, it can also be executed by a chip or circuit used for the intelligent driving device, and this application does not make specific limitations on this.
[0008] The intelligent driving devices involved in this application may include road vehicles, water vehicles, air vehicles, industrial equipment, agricultural equipment, or entertainment equipment, etc. For example, the intelligent driving device can be a vehicle, which is a vehicle in a broad sense, and can be a vehicle (such as a commercial vehicle, a passenger car, a motorcycle, a flying car, a train, etc.), an industrial vehicle (such as a forklift, a trailer, a tractor, etc.), an engineering vehicle (such as an excavator, a bulldozer, a crane, etc.), agricultural equipment (such as a mower, a harvester, etc.), amusement equipment, a toy vehicle, etc. The embodiments of this application do not specifically limit the type of vehicle. For another example, the intelligent driving device can be a vehicle such as an airplane or a ship.
[0009] The method includes: receiving a state switching request sent by a first service node, the state switching request including a target state of the first service node; determining information of an extended task based on the state switching request, the extended task being associated with at least one other service node, and the at least one other service node having a dependency relationship with the target state; and controlling an action of the first service node based on the information of the extended task, the action including switching to the target state or maintaining the current state.
[0010] In the above technical solution, when performing state management, it is possible to implement state management for service nodes without directly obtaining the state information of all service nodes (such as the process information corresponding to the service nodes). This allows for state management of service nodes even when the state information of other services cannot be obtained. In addition, the above technical solution allows users to define different extension tasks based on different business needs, which can meet different usage scenarios and requirements and help improve the user experience.
[0011] Exemplarily, the extended task includes at least one of an arbitration processing task, a pre-processing task, and a post-processing task.
[0012] Exemplarily, the extension task is associated with at least one other service node, which may include: at least one other service node needs to execute the extension task.
[0013] Exemplarily, the first service node may have multiple states, and the target state is one of the multiple states. The at least one other service node may have a dependency relationship with the target state, which may include: the at least one other service node needs to execute the extension task before and / or after the first service node switches to the target state.
[0014] In some possible implementations, the extended task only includes a post-processing task, and the first service node is controlled to switch to a target state according to information of the extended task; further, after the first service node switches to the target state, the extended task is controlled to be executed.
[0015] In combination with the first aspect, in certain implementations of the first aspect, controlling the action of the first business node based on the information of the extended task includes: controlling the execution of the extended task based on the information of the extended task; and controlling the action of the first business node based on the execution result of the extended task.
[0016] Exemplarily, the extended task includes an arbitration processing task and / or a pre-processing task.
[0017] Exemplarily, controlling the execution of the extended task includes: sending a notification to at least one other service node to notify the at least one other service node to execute the extended task.
[0018] In the above technical solution, the SM does not need to obtain the status information of other service nodes, but manages the status of the first service node according to the execution results of the extended tasks executed by other service nodes, thereby achieving the purpose of decoupling status management from business.
[0019] In combination with the first aspect, in certain implementations of the first aspect, the at least one other business node includes a second business node, and controlling the execution of the extended task includes: sending first indication information to the second business node based on information of the extended task, the first indication information instructing the second business node to arbitrate whether to allow the first business node to switch to the target state; receiving an arbitration result sent by the second business node; the execution result is the arbitration result, and controlling the action of the first business node based on the execution result of the extended task includes: when the arbitration result is that the first business node is allowed to switch to the target state, controlling the first business node to switch to the target state; or, when the arbitration result is that the first business node is not allowed to switch to the target state, controlling the first business node to maintain the current state.
[0020] In the above technical solution, the state of the first service node is controlled according to the arbitration result of the arbitration processing task, which can prevent the state switching of the first service node from affecting the normal operation of other service nodes and meet different user usage scenarios and requirements.
[0021] In combination with the first aspect, in certain implementations of the first aspect, the at least one other business node includes a third business node, and the controlling the execution of the extended task includes: sending second indication information to the third business node based on the information of the extended task, the second indication information indicating that the first business node is about to switch to the target state, so that the third business node executes the first preset processing task; receiving the execution result of the first preset processing task sent by the third business node; the execution result is the execution result of the first preset processing task, and the controlling the action of the first business node based on the execution result of the extended task includes: when the execution result of the first preset processing task is successful, controlling the first business node to switch to the target state; or, when the execution result of the first preset processing task is failure, controlling the first business node to maintain the current state.
[0022] Exemplarily, the first preset processing task may include a task that the third business node needs to process before the first business node is about to switch to the target state. For example, when the target state is the dormant state of the intelligent driving system, the first preset processing task may be tasks such as data persistence and message broadcasting.
[0023] In some possible implementations, the third service node and the second service node may be the same service node.
[0024] In some possible implementations, if the user sets the execution result of the first preset processing task not to affect the action of the first service node, then when the execution result of the first preset processing task is failure, the first service node is controlled to switch to the target state.
[0025] In the above technical solution, the state of the first service node can be controlled according to the execution result of the pre-processing task, which can meet different usage scenarios and usage demands of users.
[0026] In combination with the first aspect, in some implementations of the first aspect, the method further includes: when the execution result is not received within a preset time period, controlling the extended task to be re-executed.
[0027] Exemplarily, the preset duration may be 3 seconds, or may be other durations.
[0028] In the above technical solution, during the execution of the extended task, by setting up timeout monitoring, the extended task can be controlled to be re-executed, so as to improve the success rate of the extended task execution, ensure the reliability and certainty of the extended task execution, and reduce the probability of the intelligent driving system being blocked due to the inability to obtain the extended task execution results, thereby improving the development efficiency of the integrator's developers and the reliability of the intelligent driving system.
[0029] In combination with the first aspect, in some implementations of the first aspect, the method further includes: when the number of times the extended task is executed is greater than or equal to a preset number, determining that the extended task has failed to be executed.
[0030] Exemplarily, the preset number of executions may be 3 times, or other times.
[0031] In the above technical solution, during the execution of the extended task, by setting up over-time monitoring, when the number of executions of the extended task exceeds the preset number, it can be determined that the extended task has failed to execute, and then the state switching or state maintenance can be controlled according to the result of the execution failure, avoiding infinite re-execution and causing the fault to spread.
[0032] In combination with the first aspect, in some implementations of the first aspect, the extended task includes a first extended task and a second extended task, and controlling the execution of the extended task includes: controlling the first extended task and the second extended task to be executed in a preset execution order.
[0033] In the above technical solution, users are allowed to define or arrange the execution order of extended tasks according to actual business needs, which can meet the usage scenarios and requirements of different integrators.
[0034] In combination with the first aspect, in some implementations of the first aspect, the extended task includes a third extended task and a fourth extended task, and controlling the execution of the extended task includes: controlling the third extended task and the fourth extended task to execute according to a preset execution logic.
[0035] Illustratively, the preset execution logic may include: executing the fourth extended task after the third extended task is successfully executed; or, the execution result of the third extended task does not affect the execution of the fourth extended task.
[0036] In the above technical solution, users are allowed to define or orchestrate the execution logic of extended tasks according to actual business needs, which can meet the usage scenarios and demands of different integrators.
[0037] In combination with the first aspect, in certain implementations of the first aspect, the at least one other business node includes a fourth business node. After controlling the first business node to switch to the target state, the method further includes: sending third indication information to the fourth business node based on the information of the extended task, and the third indication information indicates that the first business node has switched to the target state, so that the fourth business node performs the second preset processing task.
[0038] Exemplarily, the second preset processing may include a task that the fourth business node needs to process after the first business node switches to the target state. For example, when the target state is the awakening state of the intelligent driving system, the second preset processing task may be a task such as loading an updated data file from a persistent file.
[0039] Illustratively, the fourth service node and the second service node and the third service node may be the same service node, or may be different service nodes, which is not specifically limited in the embodiment of the present application.
[0040] In combination with the first aspect, in certain implementations of the first aspect, before receiving the state switching request sent by the first business node, the method also includes: receiving registration information of each business node in the at least one other business node, the registration information indicating the association relationship between each business node and the first business node; and generating information about the extended task based on the registration information.
[0041] Exemplarily, the first business node may have multiple states, and the association relationship between each business node and the first business node may include: an association relationship between each business node and at least one of the multiple states of the first business node, for example, a business node in each business node needs to perform one or several extension tasks before and / or after the first business node switches to one of the multiple states.
[0042] In this technical solution, based on the execution process characteristics of intelligent driving business state management, users are allowed to pre-define one or more extended tasks, along with the execution conditions for these extended tasks, for one or more business nodes based on business needs, thereby abstracting the execution of these tasks in stages. This not only meets diverse user scenarios and requirements, improving the user experience, but also standardizes and generalizes business node state management, decoupling business function development from business node state management, and facilitating the independent evolution of the intelligent driving computing platform and intelligent driving business.
[0043] In combination with the first aspect, in certain implementations of the first aspect, before receiving the state switching request sent by the first service node, the method further includes: loading the information of the extended task through a configuration file.
[0044] In a second aspect, a state management device is provided, which includes a transceiver unit, a first determination unit, and a processing unit, wherein the transceiver unit is used to receive a state switching request sent by a first business node, the state switching request including a target state of the first business node; the first determination unit is used to determine information of an extended task based on the state switching request, the extended task is associated with at least one other business node, and there is a dependency relationship between the at least one other business node and the target state; the processing unit is used to control an action of the first business node based on the information of the extended task, the action including switching to the target state or maintaining the current state.
[0045] In combination with the second aspect, in some implementations of the second aspect, the processing unit is configured to: control execution of the extended task according to information of the extended task; and control an action of the first service node according to an execution result of the extended task.
[0046] In combination with the second aspect, in certain implementations of the second aspect, the at least one other business node includes a second business node, and the transceiver unit is used to: send first indication information to the second business node based on the information of the extended task, and the first indication information indicates that the second business node arbitrates whether to allow the first business node to switch to the target state; receive the arbitration result sent by the second business node; the execution result is the arbitration result, and the processing unit is used to: when the arbitration result is to allow the first business node to switch to the target state, control the first business node to switch to the target state; or, when the arbitration result is not to allow the first business node to switch to the target state, control the first business node to maintain the current state.
[0047] In combination with the second aspect, in certain implementations of the second aspect, the at least one other business node includes a third business node, and the transceiver unit is used to: send a second indication message to the third business node based on the information of the extended task, and the second indication message indicates that the first business node is about to switch to the target state, so that the third business node executes the first preset processing task; receive the execution result of the first preset processing task sent by the third business node; the execution result is the execution result of the first preset processing task, and the processing unit is used to: when the execution result of the first preset processing task is successful, control the first business node to switch to the target state; or, when the execution result of the first preset processing task is failure, control the first business node to maintain the current state.
[0048] In combination with the second aspect, in some implementations of the second aspect, the processing unit is further configured to: when the execution result is not received within a preset time period, control the extended task to be re-executed.
[0049] In combination with the second aspect, in some implementations of the second aspect, the device further includes a second determining unit, which is configured to determine that the extended task has failed to be executed when the number of times the extended task is executed is greater than or equal to a preset number.
[0050] In combination with the second aspect, in some implementations of the second aspect, the extended task includes a first extended task and a second extended task, and the processing unit is used to control the first extended task and the second extended task to be executed in a preset execution order.
[0051] In combination with the second aspect, in some implementations of the second aspect, the extended task includes a third extended task and a fourth extended task, and the processing unit is used to control the third extended task and the fourth extended task to be executed according to a preset execution logic.
[0052] In combination with the second aspect, in certain implementations of the second aspect, the at least one other business node includes a fourth business node. After the processing unit controls the first business node to switch to the target state, the transceiver unit is also used to: send third indication information to the fourth business node based on the information of the extended task, and the third indication information indicates that the first business node has switched to the target state, so that the fourth business node performs the second preset processing task.
[0053] In combination with the second aspect, in certain implementations of the second aspect, the device also includes a generation unit, and the transceiver unit is also used to: before receiving the state switching request sent by the first business node, receive registration information of each business node in the at least one other business node, and the registration information indicates the association relationship between each business node and the first business node; the generation unit is used to: generate information of the extended task based on the registration information.
[0054] In combination with the second aspect, in some implementations of the second aspect, the processing unit is further configured to: before receiving the state switching request sent by the first service node, load the information of the extended task through a configuration file.
[0055] In a third aspect, a state management device is provided, which includes: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, so that the device performs the method in any possible implementation of the first aspect.
[0056] In a fourth aspect, an in-vehicle computing platform is provided, which includes a device as in any possible implementation of the second aspect or the third aspect.
[0057] Exemplarily, the vehicle computing platform involved in this application may include at least one of an advanced driving domain controller (ADC), also known as a mobile data center (MDC); a vehicle domain controller (VDC); and a chassis domain controller (CDC). Alternatively, the vehicle computing platform may also include other computing platforms, such as an in-car application-server (ICAS) controller, a body domain controller (BDC), a special equipment system (SAS), a media graphics unit (MGU), a body super core (BSC), an ADAS super core, etc., which is not limited in this application. Among them, the ICAS may include at least one of the following: a vehicle control server ICAS1, an intelligent driving server ICAS2, an intelligent cockpit server ICAS3, and an infotainment server ICAS4.
[0058] In a fifth aspect, an intelligent driving device is provided, which includes an apparatus as in any possible implementation of the second aspect or the third aspect, or an on-board computing platform as in any possible implementation of the fourth aspect.
[0059] In combination with the fifth aspect, in some implementations of the fifth aspect, the intelligent driving device is a vehicle.
[0060] In a sixth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in any one of the possible implementations of the first aspect.
[0061] It should be noted that the above-mentioned computer program code may be stored in whole or in part on a first storage medium, wherein the first storage medium may be packaged together with the processor or separately from the processor.
[0062] In a seventh aspect, a computer-readable medium is provided, wherein the computer-readable medium stores instructions. When the instructions are executed by a processor, the processor implements the method in any possible implementation of the first aspect.
[0063] In an eighth aspect, a chip is provided, which includes a circuit for executing the method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] FIG1 is a schematic diagram of a mapping relationship between a functional group state and a process;
[0065] FIG2 is a functional block diagram of an intelligent driving device provided in an embodiment of the present application;
[0066] FIG3 is a schematic diagram of a system framework provided in an embodiment of the present application;
[0067] FIG4 is a schematic flow chart of a state management method provided in an embodiment of the present application;
[0068] FIG5 is another schematic flow chart of the state management method provided in an embodiment of the present application;
[0069] FIG6 is a schematic diagram of the execution logic of the state management method provided in an embodiment of the present application;
[0070] FIG7 is a schematic block diagram of a state management device provided in an embodiment of the present application;
[0071] FIG8 is another schematic block diagram of the state management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is a kind of association relationship that describes associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In this application, "at least one" refers to one or more, and "more than one" refers to two or more. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0073] In the embodiments of this application, prefixes such as "first" and "second" are used only to distinguish different description objects and have no limiting effect on the position, order, priority, quantity, or content of the described objects. The use of prefixes such as ordinal numbers in the embodiments of this application to distinguish description objects does not constitute a limitation on the described objects. For a statement of the described objects, please refer to the description in the context of the claims or embodiments, and the use of such prefixes should not constitute an unnecessary limitation.
[0074] To facilitate understanding of the solutions of the embodiments of the present application, the following concepts are first introduced:
[0075] 1. Intelligent Driving Business (hereinafter referred to as the Business)
[0076] In an intelligent driving operating system, services are typically a collection of processes and threads with specific intelligent driving functions, encapsulated by communication middleware. This communication middleware can be, for example, the Robot Operating System (ROS) or the Automotive Open System Architecture Communication Management (AUTOSAR CM). Intelligent driving functions can include vehicle environmental perception, sensor fusion, and path planning.
[0077] 2. Business Node
[0078] A service node is an abstract concept representing a single service. Two or more service nodes implement the transfer of messages or services between processes or components by invoking the communication middleware's application programming interface (API), such as message sending and receiving. A service node can execute one or more tasks, implementing specific intelligent driving functions. In some possible implementations, a service node can be an application.
[0079] 3. Mission
[0080] A task is an activity performed by software, or a series of operations performed to achieve a certain purpose.
[0081] 4. Process
[0082] A process is an instance of a program executing in a computer. It is the basic unit for resource allocation and scheduling in the system and forms the foundation of the operating system architecture. In early process-oriented computer architectures, processes were the basic execution entity of programs; in modern thread-oriented computer architectures, processes are containers for threads.
[0083] 5. Functional Group
[0084] A functional group is a collection of processes that need to work together. The execution of different processes within a functional group creates different business states. Each time a functional group's state changes, the intelligent driving computing platform starts and / or stops one or more businesses. Furthermore, a business can be associated with the state of one or more functional groups.
[0085] 6. Business Functions
[0086] A business function is a specific intelligent driving function implemented by a business. The state switching of the function group can enable or disable the business function.
[0087] Figure 1 shows the mapping relationship between function group states and processes. Function Group X and Machine State represent two function group instances. Function Group X is associated with user-defined business functions, while Machine State is a business function defined by the computing platform itself. "Stop" and "Run" are two states of Function Group X, while "Start" and "Reset" are two states of "Machine State." Machine State can also have other states, represented by "...". Furthermore, when Function Group X is in the "Run" state, "App Process 1" and "App Process 2" are running; when the Machine State is in the "Start" state, "Process 3" and "Process 4" are running; when the Machine State is in the "Reset" state, "Process 5" is running; and when the Machine State is in the "..." state, "Process 4" and "Process 6" are running. The SM controls the coordinated startup and / or shutdown of different processes by switching the states of function groups on the computing domain system, thereby enabling or disabling corresponding business functions. It should be understood that the SM is also a process running on the computing domain system.
[0088] Under the current technological landscape, the design and development of the entire intelligent driving system state management is usually completed by an integrator. Based on the business processing flows in different intelligent driving scenarios, the integrator integrates and integrates the processes of various suppliers and designs the interaction processing logic between the processes. With the rapid development of intelligent driving computing platforms, some integrators choose to design and develop intelligent driving systems on the intelligent driving computing platforms provided by suppliers. However, the intelligent driving computing platforms provided by suppliers may not be aware of the state information of business nodes from sources other than the intelligent driving computing platforms; or for information security reasons, the integrator does not share the state information of business nodes with the supplier. This makes it possible for the SM to be unable to obtain the state information of all business nodes. For example, the SM cannot determine which processes corresponding to a certain business node are in a running state, and thus cannot effectively manage the system state or the state of all business nodes in the system.
[0089] In view of this, the embodiments of the present application provide a state management method, apparatus, and intelligent driving device, which pre-register or load information of extended tasks in the SM, the information of the extended tasks indicating the dependency relationship between the first state of the first business node and other business nodes, and upon receiving a request for the first business node to switch to the first state, send relevant indication information to the other business nodes according to the information of the extended task, so that the other business nodes execute arbitration processing tasks and / or pre-processing tasks; further, the first business node can be controlled to switch or maintain state according to the extended task execution results fed back by other business nodes; after the first business node switches state, it can also send indication information to the business nodes with post-processing requirements to instruct them to execute post-processing tasks, thereby realizing state management of the first business node and other business nodes. It can be seen that when the SM performs state management, it does not need to directly obtain the state information of all business nodes, and can realize the decoupling between the SM or framework platform and the business layer, facilitate the transplantation of the state management framework platform, and contribute to the independent evolution and mutual compatibility of the intelligent driving computing platform and the intelligent driving business.
[0090] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0091] Figure 2 is a functional block diagram of an intelligent driving device provided in an embodiment of the present application. As shown in Figure 2, the intelligent driving device 100 may include a perception system 120 and a computing platform 150, wherein the perception system 120 may include several sensors for sensing information about the environment surrounding the intelligent driving device 100. For example, the perception system 120 may include a positioning system, and the positioning system may be a global positioning system (GPS), a Beidou system, or other positioning systems. For another example, the perception system 120 may also include one or more of an inertial measurement unit (IMU), a radar, a lidar, a millimeter-wave radar, an ultrasonic radar, and a camera device.
[0092] Some or all functions of the intelligent driving device 100 can be controlled by a computing platform 150. The computing platform 150 may include processors 151 to 15n. A processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with the ability to read and execute instructions, such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. The logical relationships of the hardware circuits are fixed or reconfigurable. For example, the processor is an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a field programmable gate array (FPGA). In a reconfigurable hardware circuit, the process of the processor loading a configuration file to implement the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, the processor may also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc. In addition, the computing platform 150 may also include a memory for storing instructions, and some or all of the processors 151 to 15n may call the instructions in the memory to implement corresponding functions.
[0093] The computing platform 150 of the intelligent driving device 100 may include an advanced driving assistant system (ADAS). ADAS uses a variety of sensors on the intelligent driving device (including but not limited to: lidar, millimeter wave radar, camera device, ultrasonic sensor, global positioning system, inertial measurement unit) to obtain information from the surroundings of the intelligent driving device, and analyzes and processes the obtained information to achieve business functions such as obstacle perception, target recognition, intelligent driving device positioning, path planning, driver monitoring / reminder, etc., thereby improving the safety, automation and comfort of driving the intelligent driving device.
[0094] In the specific implementation process, the computing platform 150 may implement the business functions defined by the computing platform itself, and may also be required to implement user-defined business functions. As described above, the business functions can be enabled or disabled by controlling the state switching of the function group.
[0095] FIG3 shows a schematic block diagram of a system architecture provided in an embodiment of the present application. The system architecture 300 may include a service layer 310 , a software system 320 , and a hardware platform 330 .
[0096] The business layer 310 may include one or more business nodes, such as automatic cruise control, reverse parking, system status, etc.
[0097] Software system 320 includes an operating system 321, middleware 322, and a process and function group 323. Middleware 322 is equipped with an SM, which manages the state of one or more service nodes in the service layer 310 by controlling the state switching of one or more function groups in the process and function group 323. Operating system 321 runs on hardware platform 330 and can schedule resources based on the actual running processes in the process and function group 323 or the actual runtime needs of the service layer 310. The service layer 310 obtains the computing power, memory, communication, storage, perception, and other resources required for operation through operating system 321.
[0098] Exemplarily, the process and function group 323 may include one or more function groups, such as a radar function group (Radar access), a lidar function group (Lidar access), an ultrasonic sensor function group (USS access), a camera function group (Camera access), and a machine state (MachineState). The one or more function groups may include user-defined function groups or function groups defined by the platform itself provided by the vendor. Exemplarily, the above function groups may respectively correspond to sensors in the perception system 120 shown in FIG. 2 , for example, the lidar function group corresponds to a lidar and is used to control the state of the lidar, and so on.
[0099] Exemplarily, the association relationship between each functional group in the software system 320 and each business node in the business layer 310 is shown in Figure 3, wherein, when the automatic cruise service performs state switching, it is necessary to control the state switching of the radar function group, the lidar function group, and the ultrasonic sensor function group through SM; when the reversing service performs state switching, it is necessary to control the state switching of the radar function group, the lidar function group, the ultrasonic sensor function group, and the camera device function group through SM; when the system status service performs state switching, it is necessary to control the state switching of the machine status, the radar function group, the lidar function group, the ultrasonic sensor function group, and the camera device function group through SM.
[0100] FIG4 shows a schematic flow chart of a state management method provided in an embodiment of the present application. This method 400 can be executed by a computing platform applied to an intelligent driving device, or by a chip used for the computing platform. For example, this method 400 can be executed by the computing platform 150 shown in FIG2 , or by the middleware 322 shown in FIG3 . The following describes this method 400 using the computing platform as an example. This method 400 can include steps S401 to S403.
[0101] S401: Receive a state switching request sent by a first service node, where the state switching request information includes a target state of the first service node.
[0102] Illustratively, the first service node may be one of automatic cruising, reversing into a garage, and system status in the above embodiments, or the first service node may also be a service node for implementing other functions.
[0103] S402: Determine information of an extended task according to the state switching request information, where the extended task is associated with at least one other service node, and there is a dependency relationship between the at least one other service node and the target state.
[0104] Exemplarily, the extended task may be a task that the at least one other service node needs to execute before and / or after the first service node switches to the target state. For example, it may include at least one of an arbitration processing task, a pre-processing task, and a post-processing task. Specifically, an arbitration processing task is a task that arbitrates whether a service node's state switch is permitted; a pre-processing task is a processing task that the current service node needs to execute before a service node switches its state; and a post-processing task is a processing task that the current service node needs to execute after a service node switches its state.
[0105] Exemplarily, the extended task may be registered for at least one other service node, or may be determined by loading a static configuration file.
[0106] S403: Control the action of the first service node according to the information of the extended task, where the action includes switching to the target state or maintaining the current state.
[0107] Exemplarily, if the extended task includes an arbitration processing task and / or a pre-processing task, the first service node is controlled to switch to the target state, or the first service node is controlled to maintain the current state, according to the execution results of the arbitration processing task and / or the pre-processing task.
[0108] Exemplarily, if the extended task only includes a post-processing task, the first service node is controlled to switch to the target state, and further, at least one other service node is controlled to execute the post-processing task.
[0109] The state management method provided in the embodiments of the present application enables the SM to manage the state of service nodes without directly obtaining the state information of all service nodes. This helps decouple the state management framework platform from the service layer, facilitates the migration of the state management framework platform, and promotes the independent evolution and mutual compatibility of the intelligent driving computing platform and intelligent driving services. In addition, the state management method provided in the embodiments of the present application allows users to define different extension tasks based on different business needs, which can meet different usage scenarios and usage requirements and help improve the user experience.
[0110] Figure 5 shows a schematic flow chart of a state management method provided in an embodiment of the present application. Method 500 is an extension of method 400. For example, method 500 can be executed in parallel with method 400, or it can also be executed after method 400. Exemplarily, method 500 can be executed by a computing platform applied to an intelligent driving device, or it can also be executed by a chip for a computing platform. The following describes method 500 using the computing platform execution as an example. Method 500 can include S501 to S517, or can also include S501' to S504'.
[0111] For example, the service nodes 1 to 3, SM, and execution management (EM) shown in Figure 5 are all services running in the intelligent driving system. After the intelligent driving system is started, service nodes 1 to 3 register different extended tasks with the SM according to functional requirements. Among them, the extended tasks may include the extended tasks in method 400. Furthermore, when the SM receives a state switching request from any service node, it will send a notification to the relevant service node based on the state switching request and the extended tasks registered by the SM, so that the relevant service node executes the corresponding extended tasks.
[0112] For example, as shown in FIG5(a) (hereinafter referred to as FIG5a), the process of a service node registering an extended task in an SM may include S501' to S504':
[0113] S501', service node 2 registers arbitration processing tasks and pre-processing tasks with SM.
[0114] For example, when the intelligent driving service is running, requesting the intelligent driving system to enter the upgrade state should not be allowed. If business node 2 is an intelligent driving business node, and business node 2 registers an arbitration processing task in SM, the arbitration processing task is: before executing the intelligent driving system upgrade, business node 2 needs to arbitrate whether the intelligent driving system upgrade can be executed. Before the SM controls the intelligent driving system state to switch to the upgrade state, it will ask business node 2 whether the state switching action is allowed to be executed. If business node 2 arbitrates that execution is not allowed, SM directly interrupts the processing flow of the state switching request. Until business node 2 arbitrates to allow execution, SM will continue the subsequent process.
[0115] For example, before the intelligent driving system switches from the running state to the sleep state, business node 2 needs to implement data persistence or perform other processing tasks, such as message broadcasting. In this case, business node 2 can register a pre-processing task in SM. The pre-processing task is: before executing the intelligent driving system sleep state, business node 2 needs to perform data persistence processing and message broadcasting.
[0116] S502', SM sends a registration success notification to service node 2.
[0117] S503', service node 3 registers the pre-processing task and the post-processing task with the SM.
[0118] For example, before the intelligent driving system switches from sleep state to wake-up state, business node 3 needs to perform certain processing tasks. Then business node 3 can register pre-processing tasks in SM. The pre-processing tasks are: before executing the intelligent driving system wake-up, business node 3 needs to perform certain processing tasks.
[0119] For example, after the intelligent driving system switches from a sleep state to a wake-up state, business node 3 needs to load an updated data file from a persistent file. Business node 3 can register a post-processing task in SM. The post-processing task is: after executing the intelligent driving system wake-up, business node 3 needs to load an updated data file from a persistent file.
[0120] S504 ′, SM sends a registration success notification to service node 3 .
[0121] It should be understood that the registration process shown in S501' to S504' is only an example. In a specific implementation process, more or fewer service nodes may register extended tasks with the SM, and each service node may register one or more extended tasks.
[0122] When the method shown in Figure 5a is combined with method 400, the method shown in Figure 5a can be summarized as: receiving registration information of each business node in the at least one other business node, the registration information indicating the association relationship between each business node and the first business node; generating information of the extended task based on the registration information.
[0123] In some possible implementations, the extended tasks may also be configured through configuration files. During the SM running phase, the SM reads the static configuration items and loads the relevant extended tasks.
[0124] After the SM loads or registers the extended task, the SM determines the extended task information based on the state switching request received from the first service node, and then controls the actions of the first service node based on the extended task information, as specifically shown in (b) to (d) in Figure 5 (hereinafter referred to as Figures 5b, 5c, and 5d). Service node 1 may be an example of the first service node in method 400, service node 2 may be an example of at least one other service node in method 400, and service node 3 may be another example of at least one other service node in method 400.
[0125] In some possible implementations, controlling the action of the first service node according to the information of the extended task includes: controlling execution of the extended task according to the information of the extended task; and controlling the action of the first service node according to an execution result of the extended task.
[0126] Controlling the execution of the extended task may include sending a notification to at least one other service node to cause the at least one other service node to execute the extended task. Exemplarily, the "notification" may include an arbitration processing notification and / or a pre-processing notification.
[0127] In one example, as shown in FIG5b , the state management method provided by this embodiment includes:
[0128] S501: Service node 1 sends a state switching request to SM.
[0129] Illustratively, the state switching request may be an example of the state switching request in method 400 .
[0130] S502 : SM sends an arbitration processing notification to service node 2 .
[0131] Exemplarily, if the state switching request is used to request the intelligent driving system to enter the upgrade state, the SM sends an arbitration processing notification to the service node 2 so that the service node 2 can arbitrate whether the operation of the intelligent driving system entering the upgrade state can be executed.
[0132] S503: Service node 2 performs the arbitration processing task.
[0133] S504 , service node 2 sends the arbitration result to SM.
[0134] If service node 2 is in the running state, the arbitration result is that the intelligent driving system is not allowed to enter the upgrade state; further, SM controls service node 1 to maintain the current state.
[0135] If service node 2 is not in the running state, the arbitration result is to allow the intelligent driving system to enter the upgrade state; further, SM determines whether it has other arbitration processing tasks or pre-processing tasks registered. If there are no other arbitration processing tasks and pre-processing tasks, S511 to S513 are executed.
[0136] S511, SM sends a state switching notification to EM.
[0137] S512, EM performs state switching.
[0138] Exemplarily, the EM controls the state of the functional group corresponding to the service node 1 to switch, so as to enable the state of the service node 1 to switch to the target state.
[0139] S513, EM sends the execution result to SM.
[0140] Exemplarily, the execution result may be notifying the SM that the state of the service node 1 has been switched to the target state requested by the service node 1 .
[0141] S517 , SM sends the state switching result to service node 1 .
[0142] For example, if the SM determines that it has no other post-processing tasks registered, the SM notifies the service node 1 that the state switching is completed.
[0143] When the method shown in Figure 5b is combined with method 400, the method shown in Figure 5b can be summarized as follows: sending first indication information to the second business node based on the information of the extended task, the first indication information instructing the second business node to arbitrate whether to allow the first business node to switch to the target state; receiving the arbitration result sent by the second business node; the execution result is the arbitration result, and the action of the first business node is controlled based on the execution result of the extended task, including: when the arbitration result is that the first business node is allowed to switch to the target state, controlling the first business node to switch to the target state; or when the arbitration result is that the first business node is not allowed to switch to the target state, controlling the first business node to maintain the current state.
[0144] In another example, as shown in Figure 5c:
[0145] S501: Service node 1 sends a state switching request to SM.
[0146] S505 , SM sends a pre-processing notification to service node 2 .
[0147] For example, if the state switching request is used to request the intelligent driving system to enter the sleep state, since the SM has not registered the arbitration processing task associated with the sleep state of the intelligent driving system, but only registered the pre-processing task, the SM sends a pre-processing notification to the business node 2 so that the business node 2 can complete the pre-processing task before the state switching, such as performing data persistence processing and message broadcasting.
[0148] S506: Service node 2 performs pre-processing tasks.
[0149] S507 , service node 2 sends the pre-processing task execution result to SM.
[0150] If the service node 2 executes the pre-processing task and the pre-processing task is completed, a pre-processing task execution success notification is sent to the SM.
[0151] If the service node 2 executes the pre-processing task and the pre-processing task fails, a pre-processing task execution failure notification is sent to the SM.
[0152] In some possible implementations, if the failure of the pre-processing task does not affect the subsequent processing flow, the SM determines whether it has other pre-processing tasks registered. If there are no other pre-processing tasks, it executes S511 to S513 and S517, that is, continues to execute the state switching, and notifies the business node 1 of the state switching result.
[0153] In some possible implementations, if the failure of the pre-processing task affects the subsequent processing flow, the SM interrupts the execution of the subsequent flow and controls the service node 1 to maintain the current state.
[0154] When the method shown in Figure 5c is combined with method 400, the method shown in Figure 5c can be summarized as: based on the information of the extended task, sending a second indication message to the third business node, the second indication message indicating that the first business node is about to switch to the target state, so that the third business node executes the first preset processing task; receiving the execution result of the first preset processing task sent by the third business node; the execution result is the execution result of the first preset processing task, and according to the execution result of the extended task, controlling the action of the first business node, including: when the execution result of the first preset processing task is successful, controlling the first business node to switch to the target state; or, when the execution result of the first preset processing task is failure, controlling the first business node to maintain the current state.
[0155] It is understandable that the third service node and the second service node may be the same service node, or may be different service nodes.
[0156] In another example, as shown in FIG5d:
[0157] S501: Service node 1 sends a state switching request to SM.
[0158] S508 , SM sends a pre-processing notification to service node 3 .
[0159] For example, if the state switching request is used to request the intelligent driving system to enter the awake state, since the SM has not registered the arbitration processing task associated with the awake state of the intelligent driving system, and only registered the pre-processing task and the post-processing task, the SM first sends a pre-processing notification to the relevant business node (i.e., business node 3).
[0160] S509: Service node 3 performs pre-processing tasks.
[0161] S510, service node 3 sends the pre-processing task execution result to SM.
[0162] If the service node 3 executes the pre-processing task and the pre-processing task is completed, a pre-processing task execution success notification is sent to the SM.
[0163] If the service node 3 executes the pre-processing task and the pre-processing task fails, a pre-processing task execution failure notification is sent to the SM.
[0164] In some possible implementations, if the failure of the pre-processing task does not affect the subsequent processing flow, the SM determines whether it has registered a pre-processing task. If there is no other pre-processing task, S511 to S513 are executed.
[0165] In some possible implementations, if the failure of the pre-processing task affects the subsequent processing flow, the SM interrupts the execution of the subsequent flow and controls the service node 1 to maintain the current state.
[0166] S511, SM sends a state switching notification to EM.
[0167] S512, EM performs state switching.
[0168] Exemplarily, the EM controls the state of the functional group corresponding to the service node 1 to switch, so as to enable the state of the service node 1 to switch to the target state.
[0169] S513, EM sends the execution result to SM.
[0170] Exemplarily, the execution result may be notifying the SM that the state of the service node 1 has been switched to the target state requested by the service node 1 .
[0171] S514 , SM sends a post-processing notification to service node 3 .
[0172] Exemplarily, after the SM determines that the state switching is successful, it notifies the service node 3 to perform a post-processing task, such as loading an updated data file from a persistent file.
[0173] S515: Service node 3 performs post-processing tasks.
[0174] S516 , service node 3 sends the post-processing task execution result to SM.
[0175] If the service node 3 executes the post-processing task and the post-processing task is completed, a post-processing task execution success notification is sent to the SM.
[0176] If the service node 3 executes the post-processing task and the post-processing task fails, a post-processing task execution failure notification is sent to the SM.
[0177] It should be understood that whether the post-processing task is executed successfully or not does not affect the state switching of the service node 1.
[0178] Furthermore, after the SM receives the post-processing task execution result, S517 is executed to notify the service node 1 of the state switching result.
[0179] When the method shown in Figure 5d is combined with method 400, S514-S516 can be summarized as: after controlling the first business node to switch to the target state, according to the information of the extended task, sending a third indication information to the fourth business node, and the third indication information indicates that the first business node has switched to the target state, so that the fourth business node performs the second preset processing task.
[0180] It is understandable that the fourth service node and the third service node and the second service node may be the same service node, or may be different service nodes.
[0181] It should be understood that the state management method shown in Figures 5b, 5c, and 5d is only for illustrative purposes. In the specific implementation process, after the SM receives a state switching request from a service node, the SM can only control the execution of one extended task, or the SM can also control the execution of two or more extended tasks. The number and type of extended tasks controlled by the SM are determined by the registered extended tasks.
[0182] As mentioned above, in SM, for the same state switching, multiple business nodes can register extended tasks, and each business node can register multiple extended tasks; for example, for the intelligent driving system switching to sleep state, business node 4, business node 5, business node 6, etc. can respectively register one or more extended tasks app4_task1, app4_task2, app5_task1,..., app6_task1, etc. in SM.
[0183] As shown in Figure 6, when multiple extended tasks are associated with the same state switch, such as multiple arbitration processing, pre-processing, and post-processing, the SM first controls the execution of the arbitration processing task; after all arbitration processing tasks (such as 11 to 33) are executed, the SM controls the execution of the pre-processing task; after all pre-processing tasks (such as 11' to 33') are executed, the state switch is executed, and after the state switch is completed, the SM controls the execution of the post-processing task (such as 11" to 33").
[0184] In some possible implementations, when multiple extended tasks are associated with the same state switch, the execution order and execution logic of the multiple extended tasks can be orchestrated to improve the flexibility of business processing.
[0185] Exemplarily, for the same type of extended tasks, the parallel or serial execution order can be predefined. For example, as shown in Figure 6, the arbitration processing tasks have been loaded or registered in the SM, and there are 9 extended tasks in total, namely 11, 21, 31, 12, 22, 32, 13, 23, and 33. It can be pre-set that the three extended tasks 11, 21, and 31 (or 12, 22, and 32; or 13, 23, and 33) need to be executed in sequence, and the next extended task will be executed only after the previous extended task is completed. However, the execution order of the three groups of tasks (11, 21, 31), (12, 22, 32), and (13, 23, 33) does not need to be guaranteed, and can be executed in parallel to improve execution efficiency.
[0186] When the above example is combined with method 400 , the above example can be summarized as follows: the extended task includes a first extended task and a second extended task, and controlling the execution of the extended task includes controlling the first extended task and the second extended task to be executed in a preset execution order.
[0187] Exemplarily, logical dependencies between extended tasks can also be predefined, for example, the execution of one extended task depends on the successful execution of the previous extended task. Still taking extended tasks 11, 21, and 31 as an example, in one example, if it is predefined that the execution condition of 21 depends on the successful execution of 11, and the execution condition of 31 depends on the successful execution of 21. Then, when the execution of 11 fails, the subsequent execution tasks are interrupted, and it is determined that the arbitration processing task has partially failed to execute. In another example, if it is predefined that the execution results of 11, 21, and 31 do not affect the execution of subsequent extended tasks, then when 11, 21, and 31 are executed, the subsequent extended tasks will continue to be executed regardless of whether they are executed successfully.
[0188] When the above example is combined with method 400 , the above example can be summarized as follows: the extended task includes a third extended task and a fourth extended task, and controlling the execution of the extended task includes controlling the third extended task and the fourth extended task to execute according to a preset execution logic.
[0189] It is understandable that the third extended task (or fourth extended task) and the first extended task or the second extended task may be the same extended task, or may be different extended tasks.
[0190] In some possible implementations, a preset duration and a preset number of times are set for an extended task. If the extended task execution time exceeds the preset duration and no execution result is returned, the SM re-controls the execution of the extended task. Exemplarily, the extended task execution time may be calculated from the time the SM sends an extended task execution notification (such as an arbitration processing notification, a pre-processing notification, or a post-processing notification) to the service node. Exemplarily, the SM re-controlling the execution of the extended task may include: the SM re-sending the extended task execution notification to the relevant service node. In some possible implementations, if the number of times the extended task is re-executed is greater than or equal to a preset number, and no information related to the execution result is received within the preset duration, the extended task execution is considered to have failed. Exemplarily, the preset duration may be 3 seconds, or other durations; the preset number of times may be 3, or other numbers. It is understood that in an intelligent driving system, task execution must ensure reliability and stability, that is, the task should be completed as much as possible within a given time. If a task execution time is too long and lacks monitoring, it may cause the entire intelligent driving system to become blocked. By setting a preset duration and a preset number of times for the extended task so that the SM starts the extended task and re-executes it, the robustness and reliability of the system operation can be improved as much as possible.
[0191] When the above example is combined with method 400, the above example can be summarized as follows: when the execution result is not received within a preset time period, the extended task is controlled to be re-executed. Further, when the number of times the extended task is executed is greater than or equal to a preset number, the extended task is determined to have failed to execute.
[0192] It should be noted that the state management method provided in the embodiment of the present application supports the registration of extended tasks for any state switching process. In the embodiment of the present application, the state switching of the business node can be understood as the state switching of the function group associated with the business node. For example, if the intelligent driving system includes the function groups MachineState and Access. The function group MachineState is configured with the states Startup and Update, and there is a state switch: MachineState.Startup switches to MachineState.Update; the function group Access is configured with the states Off and Running, and there is a state transition: Access.Off switches to Access.Running. Then, arbitration processing tasks, pre-processing tasks, and post-processing tasks can be registered for MachineState.Startup switching to MachineState.Update, and Access.Off switching to Access.Running. It can be understood that since extended tasks can be registered for any state switching process, users can define a complete state management business execution process based on the state of the function group according to actual business needs.
[0193] The state management method provided in this embodiment of the application generalizes and standardizes the state management process by defining arbitration processing tasks, pre-processing tasks, state switching, and post-processing tasks. This allows users to define or orchestrate the execution order and execution logic of extended tasks based on actual business needs, meeting the needs of different integrators. Furthermore, during the execution of extended tasks, by setting timeout monitoring and timeout retries, the reliability and certainty of extended task execution can be guaranteed, thereby improving the development efficiency of integrators' developers and the reliability of the intelligent driving system.
[0194] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0195] The method provided in the embodiments of the present application is described in detail above with reference to Figures 1 to 6 . The apparatus provided in the embodiments of the present application will be described in detail below with reference to Figures 7 and 8 . It should be understood that the description of the apparatus embodiment corresponds to the description of the method embodiment. Therefore, for matters not described in detail, reference can be made to the method embodiment above, and for the sake of brevity, no further description will be given here.
[0196] FIG7 shows a schematic block diagram of a state management device 700 provided in an embodiment of the present application. The device 700 includes a transceiver unit 710 , a first determination unit 720 , and a processing unit 730 .
[0197] The apparatus 700 may include units for executing the methods in Figures 4 and 5. Furthermore, each unit in the apparatus 700 is for implementing the corresponding process of the method embodiments in Figures 4 and 5.
[0198] When the device 700 is used to execute the method 400 in FIG. 4 , the transceiver unit 710 may be used to execute S401 in the method 400 , the first determination unit 720 may be used to execute S402 in the method 400 , and the processing unit 730 may be used to execute S403 in the method 400 .
[0199] Specifically, the transceiver unit 710 is used to receive a state switching request sent by the first business node, where the state switching request includes the target state of the first business node; the first determination unit 720 is used to determine information of an extended task based on the state switching request, where the extended task is associated with at least one other business node, and there is a dependency relationship between the at least one other business node and the target state; the processing unit 730 is used to control an action of the first business node based on the information of the extended task, where the action includes switching to the target state or maintaining the current state.
[0200] In some possible implementations, the processing unit 730 is configured to: control execution of the extended task according to the information of the extended task; and control an action of the first service node according to an execution result of the extended task.
[0201] In some possible implementations, the at least one other service node includes a second service node, and the transceiver unit 710 is used to: send first indication information to the second service node based on the information of the extended task, where the first indication information instructs the second service node to arbitrate whether to allow the first service node to switch to the target state; receive the arbitration result sent by the second service node; the execution result is the arbitration result, and the processing unit 730 is used to: when the arbitration result is to allow the first service node to switch to the target state, control the first service node to switch to the target state; or, when the arbitration result is not to allow the first service node to switch to the target state, control the first service node to maintain the current state.
[0202] In some possible implementations, the at least one other business node includes a third business node, and the transceiver unit 710 is used to: send a second indication message to the third business node based on the information of the extended task, and the second indication message indicates that the first business node is about to switch to the target state, so that the third business node executes the first preset processing task; receive the execution result of the first preset processing task sent by the third business node; the execution result is the execution result of the first preset processing task, and the processing unit 730 is used to: when the execution result of the first preset processing task is successful, control the first business node to switch to the target state; or, when the execution result of the first preset processing task is failure, control the first business node to maintain the current state.
[0203] In some possible implementations, the processing unit 730 is further configured to: when the execution result is not received within a preset time period, control the extended task to be re-executed.
[0204] In some possible implementations, the device further includes a second determining unit configured to determine that the extended task has failed to be executed when the number of times the extended task is executed is greater than or equal to a preset number of times.
[0205] In some possible implementations, the extended task includes a first extended task and a second extended task, and the processing unit 730 is configured to control the first extended task and the second extended task to be executed in a preset execution order.
[0206] In some possible implementations, the extended task includes a third extended task and a fourth extended task, and the processing unit 730 is configured to control the third extended task and the fourth extended task to be executed according to a preset execution logic.
[0207] In some possible implementations, the at least one other business node includes a fourth business node. After the processing unit controls the first business node to switch to the target state, the transceiver unit 710 is further used to: send third indication information to the fourth business node based on the information of the extended task, and the third indication information indicates that the first business node has switched to the target state, so that the fourth business node performs the second preset processing task.
[0208] In some possible implementations, the device also includes a generation unit, and the transceiver unit 710 is further used to: before receiving the state switching request sent by the first business node, receive registration information of each business node in the at least one other business node, and the registration information indicates the association relationship between each business node and the first business node; the generation unit is used to: generate information of the extended task based on the registration information.
[0209] In some possible implementations, the processing unit 730 is further configured to: before receiving the state switching request sent by the first service node, load the information of the extended task through a configuration file.
[0210] Illustratively, the transceiver unit 710, the first determination unit 720, and the processing unit 730 may be provided in the computing platform 150 shown in FIG2 , or in the middleware 322 shown in FIG3 . Illustratively, the second determination unit and the generation unit may also be provided in the computing platform 150 shown in FIG2 , or in the middleware 322 shown in FIG3 .
[0211] It should be understood that the division of the various units in the above device is merely a division of logical functions. In actual implementation, they may be fully or partially integrated into a single physical entity, or they may be physically separated. Furthermore, the units in the device may be implemented in the form of a processor calling software; for example, the device includes a processor connected to a memory storing instructions, and the processor calls the instructions stored in the memory to implement any of the above methods or the functions of the various units in the device. The processor may be a general-purpose processor, such as a CPU or a microprocessor, and the memory may be a memory within the device or external to the device. Alternatively, the units in the device may be implemented in the form of hardware circuits, and the functions of some or all of the units may be implemented through the design of the hardware circuits. The hardware circuits may be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units may be implemented through the design of the logical relationships between the components within the circuits. In another implementation, the hardware circuit may be implemented using a PLD, such as an FPGA, which may include a large number of logic gate circuits. The connections between the logic gate circuits are configured using a configuration file to implement the functions of some or all of the above units. All units of the above apparatus may be implemented entirely in the form of software called by a processor, or entirely in the form of hardware circuits, or partially in the form of software called by a processor and the rest in the form of hardware circuits.
[0212] Each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0213] In addition, the various units in the above devices can be fully or partially integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a system-on-a-chip (SoC). The SoC may include at least one processor for implementing any of the above methods or implementing the functions of the various units of the device. The type of the at least one processor can be different, for example, including a CPU and FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.
[0214] In a specific implementation, the operations performed by the transceiver unit 710, the first determination unit 720, and the processing unit 730 may be performed by the same processor, or may be performed by different processors, for example, by multiple processors. Furthermore, the second determination unit, the generation unit, and the operations performed by the transceiver unit 710, the first determination unit 720, and the processing unit 730 may be performed by the same processor, or may be performed by different processors. In a specific implementation, the one or more processors may be processors provided in the computing platform 150 shown in FIG. 2 ; or the apparatus 700 may be a chip provided in the intelligent driving device 100.
[0215] Figure 8 is a schematic block diagram of a state management device provided in an embodiment of the present application. The state management device 800 shown in Figure 8 may include: a processor 810, a transceiver 820, and a memory 830. The processor 810, the transceiver 820, and the memory 830 are connected via an internal connection path. The memory 830 is used to store instructions, and the processor 810 is used to execute the instructions stored in the memory 830 to implement the state management method in each of the above embodiments. Optionally, the memory 830 can be coupled to the processor 810 through an interface or integrated with the processor 810.
[0216] It should be noted that the transceiver 820 may include but is not limited to a transceiver device such as an input / output interface to implement communication between the device 800 and other devices or a communication network.
[0217] The memory 830 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
[0218] The transceiver 820 uses a transceiver device such as but not limited to a transceiver to implement communication between the device 800 and other devices or communication networks to receive / send data / information used to implement the state management method in the above embodiments.
[0219] In a specific implementation process, the device 800 may be provided in the computing platform 150 shown in FIG. 2 , or the device 800 may also be provided in the middleware 322 shown in FIG. 3 .
[0220] An embodiment of the present application also provides a vehicle-mounted computing platform, which includes the above-mentioned device 700 or the above-mentioned device 800.
[0221] An embodiment of the present application further provides an intelligent driving device, which includes the above-mentioned device 700, or the above-mentioned device 800, or may also include the above-mentioned vehicle-mounted computing platform.
[0222] In some possible implementations, the intelligent driving device may be a vehicle.
[0223] An embodiment of the present application further provides a computer program product, which includes computer program code. When the computer program code runs on a computer, the computer implements the state management method in the above embodiments of the present application.
[0224] An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer implements the state management method in the above embodiments of the present application.
[0225] An embodiment of the present application also provides a chip, including a circuit, for executing the state management method in the above embodiments of the present application.
[0226] During implementation, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or a power-on erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0227] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0228] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as 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 devices or units, which can be electrical, mechanical or other forms.
[0229] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0230] In addition, each functional unit in each embodiment of the present application 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.
[0231] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A state management method, characterized in that: include: receiving a state switching request sent by a first service node, where the state switching request includes a target state of the first service node; Determining information of an extended task according to the state switching request, wherein the extended task is associated with at least one other service node, and a dependency relationship exists between the at least one other service node and the target state; According to the information of the extended task, the action of the first service node is controlled, where the action includes switching to the target state or maintaining the current state.
2. The method according to claim 1, wherein The controlling the action of the first service node according to the information of the extended task includes: Controlling the execution of the extended task according to the information of the extended task; Controlling the action of the first service node according to the execution result of the extended task.
3. The method according to claim 2, wherein The at least one other service node includes a second service node, and the controlling the execution of the extended task includes: Sending first indication information to the second service node according to the information of the extended task, where the first indication information instructs the second service node to arbitrate whether to allow the first service node to switch to the target state; receiving an arbitration result sent by the second service node; The execution result is the arbitration result, and controlling the action of the first service node according to the execution result of the extended task includes: When the arbitration result is to allow the first service node to switch to the target state, controlling the first service node to switch to the target state; or When the arbitration result is that the first service node is not allowed to switch to the target state, the first service node is controlled to maintain the current state.
4. The method according to claim 2, wherein The at least one other service node includes a third service node, and the controlling the execution of the extended task includes: Sending second indication information to the third service node according to the information of the extended task, where the second indication information indicates that the first service node is about to switch to the target state, so that the third service node performs the first preset processing task; receiving an execution result of the first preset processing task sent by the third service node; The execution result is the execution result of the first preset processing task, and controlling the action of the first service node according to the execution result of the extended task includes: When the execution result of the first preset processing task is successful, controlling the first service node to switch to the target state; or, When the execution result of the first preset processing task is failure, the first service node is controlled to maintain the current state.
5. The method according to any one of claims 2 to 4, characterized in that The method further comprises: When the execution result is not received within a preset time period, the extended task is controlled to be re-executed.
6. The method according to claim 5, wherein The method further comprises: When the number of times the extended task is executed is greater than or equal to a preset number, it is determined that the extended task has failed to be executed.
7. The method according to any one of claims 2 to 6, characterized in that The extended task includes a first extended task and a second extended task, and controlling the execution of the extended task includes: The first extended task and the second extended task are controlled to be executed in a preset execution order.
8. The method according to any one of claims 2 to 7, characterized in that The extended tasks include a third extended task and a fourth extended task, and controlling the execution of the extended tasks includes: The third extended task and the fourth extended task are controlled to be executed according to a preset execution logic.
9. The method according to any one of claims 1 to 8, characterized in that The at least one other service node includes a fourth service node. After controlling the first service node to switch to the target state, the method further includes: According to the information of the extended task, third indication information is sent to the fourth service node, where the third indication information indicates that the first service node has switched to the target state, so that the fourth service node executes the second preset processing task.
10. The method according to any one of claims 1 to 9, characterized in that Before receiving the state switching request sent by the first service node, the method further includes: receiving registration information of each service node in the at least one other service node, the registration information indicating an association relationship between each service node and the first service node; The information of the extended task is generated according to the registration information.
11. The method according to any one of claims 1 to 9, characterized in that Before receiving the state switching request sent by the first service node, the method further includes: The information of the extended task is loaded through the configuration file.
12. A state management device, characterized in that: It includes a transceiver unit, a first determination unit and a processing unit, wherein: The transceiver unit is configured to receive a state switching request sent by a first service node, where the state switching request includes a target state of the first service node; The first determining unit is configured to determine information of an extended task according to the state switching request, wherein the extended task is associated with at least one other service node, and a dependency relationship exists between the at least one other service node and the target state; The processing unit is configured to control an action of the first service node according to the information of the extended task, where the action includes switching to the target state or maintaining the current state.
13. The device according to claim 12, wherein The processing unit is used for: Controlling the execution of the extended task according to the information of the extended task; Controlling the action of the first service node according to the execution result of the extended task.
14. The device according to claim 13, wherein The at least one other service node includes a second service node, and the transceiver unit is configured to: Sending first indication information to the second service node according to the information of the extended task, where the first indication information instructs the second service node to arbitrate whether to allow the first service node to switch to the target state; receiving an arbitration result sent by the second service node; The execution result is the arbitration result, and the processing unit is used to: When the arbitration result is to allow the first service node to switch to the target state, controlling the first service node to switch to the target state; or, When the arbitration result is that the first service node is not allowed to switch to the target state, the first service node is controlled to maintain the current state.
15. The device according to claim 13, wherein The at least one other service node includes a third service node, and the transceiver unit is configured to: Sending second indication information to the third service node according to the information of the extended task, where the second indication information indicates that the first service node is about to switch to the target state, so that the third service node performs the first preset processing task; receiving an execution result of the first preset processing task sent by the third service node; The execution result is the execution result of the first preset processing task, and the processing unit is used to: When the execution result of the first preset processing task is successful, controlling the first service node to switch to the target state; or, When the execution result of the first preset processing task is failure, the first service node is controlled to maintain the current state.
16. The device according to any one of claims 13 to 15, characterized in that The processing unit is further configured to: When the execution result is not received within a preset time period, the extended task is controlled to be re-executed.
17. The device as claimed in claim 16, characterized in that The apparatus further includes a second determining unit, configured to: When the number of times the extended task is executed is greater than or equal to a preset number, it is determined that the extended task has failed to be executed.
18. The device according to any one of claims 13 to 17, characterized in that The extended task includes a first extended task and a second extended task, and the processing unit is configured to: The first extended task and the second extended task are controlled to be executed in a preset execution order.
19. The device according to any one of claims 13 to 18, characterized in that The extended task includes a third extended task and a fourth extended task, and the processing unit is configured to: The third extended task and the fourth extended task are controlled to be executed according to a preset execution logic.
20. The device according to any one of claims 12 to 19, characterized in that The at least one other service node includes a fourth service node. After the processing unit controls the first service node to switch to the target state, the transceiver unit is further configured to: According to the information of the extended task, third indication information is sent to the fourth service node, where the third indication information indicates that the first service node has switched to the target state, so that the fourth service node executes the second preset processing task.
21. The device according to any one of claims 12 to 20, characterized in that The device further includes a generating unit, and the transceiver unit is further configured to: Before receiving the state switching request sent by the first service node, receiving registration information of each service node in the at least one other service node, the registration information indicating an association relationship between each service node and the first service node; The generating unit is configured to generate information of the extended task according to the registration information.
22. The device according to any one of claims 12 to 21, characterized in that The processing unit is further configured to: before receiving the state switching request sent by the first service node, load the information of the extended task through a configuration file.
23. A state management device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program stored in the memory, so that the apparatus performs the method according to any one of claims 1 to 11.
24. A vehicle-mounted computing platform, characterized in that: Comprising the apparatus of any one of claims 12 to 23.
25. An intelligent driving device, characterized in that: Comprising the vehicle-mounted computing platform as described in claim 24.
26. A computer-readable storage medium, characterized in that Instructions are stored thereon, and when the instructions are executed by a processor, the processor is caused to implement the method according to any one of claims 1 to 11.
27. A chip, characterized in that: The chip comprises a circuit for executing the method according to any one of claims 1 to 11.
Citation Information
Cited By
Process management method and device, computer equipment and readable storage medium
CN118897738A
High-reliability full-life-cycle project intelligent management method and system
CN120743884A
State management method and apparatus, and device
WO2026207822A1
