Vehicle power management method and apparatus, vehicle, and storage medium
By employing a distributed power management approach, utilizing a microcontroller to translate power signals and controlling software modules through a message publish-subscribe mechanism, the problem of excessive workload on the power management module in the vehicle cockpit system is solved, thus achieving stability and security of the power management system.
Patent Information
- Application Number
- PCT/CN2025/089868
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-17
- Filing Date
- 2025-04-18
- Publication Date
- 2025-12-26
AI Technical Summary
In existing technologies, the power management module of the vehicle cockpit system is overburdened, which can easily lead to management chaos and failures, and the development and maintenance costs are high.
A distributed power management approach is adopted, in which the microcontroller translates the raw voltage signal and the bus power signal, and sends the power status to the software management module using a message publish and subscribe mechanism, thereby controlling the working status of the software module and reducing coupling and workload.
This has improved the stability and security of the vehicle power management system, reduced development and maintenance costs, and enhanced the accuracy of power status management and system reliability.
Smart Images

Figure CN2025089868_26122025_PF_FP_ABST
Abstract
Description
Vehicle power management methods, devices, vehicles and storage media
[0001] This disclosure is based on and claims priority to Chinese Patent Application No. 202410778887.0, filed on June 17, 2024, entitled “Distributed Power Management Method, Apparatus, Vehicle and Storage Medium for Vehicles”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of vehicle technology, and in particular to a vehicle power management method, device, vehicle, and storage medium. Background Technology
[0003] As a crucial component of electronic systems, the reliability of power management is essential for ensuring the stable operation of these systems. In automotive cockpit systems, several software modules are associated with corresponding power management modules. Since the operational status of these software modules can affect driving safety, the hardware and software design of the power management system is of paramount importance in any environment.
[0004] In related technologies, a power management module is designed through software to centrally manage the power status of all software modules involved in the cockpit system.
[0005] However, while centralized management can solve the complex power status management problem of the cockpit system, it also has some drawbacks. For example, the power management module needs to manage the power status of all software modules in the vehicle, which is too heavy a task and prone to problems, thus causing chaos in the power status management of the entire cockpit system. Summary of the Invention
[0006] This application provides a vehicle power management method, device, vehicle, and storage medium. It utilizes different software management modules to perform distributed management of software modules within the vehicle. Each software management module only needs to manage a small number of software modules, minimizing the likelihood of problems and thus ensuring the stability of the vehicle's power management system and the safety of vehicle operation. The technical solution is as follows:
[0007] On one hand, a vehicle power management method is provided, the method comprising:
[0008] Receive the original voltage signal and bus power signal after translation from the vehicle;
[0009] Based on the translated original voltage signal and the bus power signal, determine the power state that matches the original voltage signal and the bus power signal;
[0010] The power status is sent to at least one software management module on the vehicle through a message publish and subscribe mechanism. The at least one software management module is used to manage the working status of the software modules on the vehicle.
[0011] Based on the power state of the vehicle, the at least one software management module controls the corresponding software module to perform operations that match the power state.
[0012] In some embodiments, before receiving the vehicle-translated raw voltage signal and the bus power signal, the method further includes:
[0013] The signal triggering result of the vehicle is obtained, and the signal triggering result is used to indicate whether the vehicle's original voltage signal and bus power signal are triggered;
[0014] When the signal triggering result indicates that the original voltage signal and the bus power signal are triggered, the microcontroller unit translates the original voltage signal and the bus power signal to obtain the translated original voltage signal and the bus power signal.
[0015] In some embodiments, before determining a power state matching the translated original voltage signal and the bus power signal based on the original voltage signal and the bus power signal, the method further includes:
[0016] The software modules running on the vehicle are classified to obtain at least one category;
[0017] For each software module in the at least one category, a software management module is configured, and each software management module is used to manage the working state of the software module in the corresponding category under the power state.
[0018] In some embodiments, the power state matching the original voltage signal and the bus power signal is determined by a power state machine on the vehicle, and the method further includes:
[0019] Create a message publishing module based on the message publishing and subscription mechanism;
[0020] Connect the power state machine to the message publishing module via a signal, and after the signal connection is successful, send the power state determined by the power state machine to the message publishing module.
[0021] In some embodiments, the method further includes:
[0022] Construct a broadcast mechanism for the power state;
[0023] Sending the power status to at least one software management module on the vehicle via a message publish / subscribe mechanism includes:
[0024] Based on the broadcast mechanism and the message publish and subscribe mechanism, the power status is broadcast to at least one software management module on the vehicle.
[0025] In some embodiments, after the at least one software management module controls the corresponding software module to perform operations matching the power state of the vehicle, based on the power state of the vehicle, the method further includes:
[0026] For any software module managed by the at least one software management module, the execution status of the software module is determined based on the execution result and expected result of the software module. The execution status of the software module is used to indicate whether the execution of the software module has achieved the corresponding expected result.
[0027] If the execution status of the software module indicates that the software module has achieved the expected result, then the execution result of the software module is recorded.
[0028] In some embodiments, the method further includes:
[0029] If the execution status of the software module indicates that the execution of the software module has not achieved the expected result, the software module is corrected. After successful correction, the software management module corresponding to the software module continues to control the software module to perform operations that match the power state, and the execution result of the software module is recorded.
[0030] On the other hand, a vehicle power management device is provided, the device comprising:
[0031] The receiving module is used to receive the original voltage signal and bus power signal translated by the vehicle.
[0032] The determination module is used to determine the power state that matches the translated original voltage signal and the bus power signal based on the original voltage signal and the bus power signal.
[0033] The sending module is used to send the power status to at least one software management module on the vehicle through a message publish and subscribe mechanism. The at least one software management module is used to manage the working status of the software modules on the vehicle.
[0034] The control module is used to control the corresponding software modules to perform operations that match the power state of the vehicle, based on the power state of the vehicle, through the at least one software management module.
[0035] In some embodiments, the apparatus further includes:
[0036] The translation module is used to acquire the signal triggering result of the vehicle, which indicates whether the original voltage signal and the bus power signal of the vehicle have been triggered. When the signal triggering result indicates that the original voltage signal and the bus power signal have been triggered, the microcontroller unit translates the original voltage signal and the bus power signal to obtain the translated original voltage signal and the bus power signal.
[0037] In some embodiments, the apparatus further includes:
[0038] The configuration module is used to create a message publishing module based on a message publishing and subscription mechanism; to connect the power state machine to the message publishing module via a signal; and after the signal connection is successful, to send the power state determined by the power state machine to the message publishing module.
[0039] In some embodiments, the apparatus further includes:
[0040] A construction module is used to construct the broadcast mechanism for the power state;
[0041] The sending module is further configured to broadcast the power status to at least one software management module on the vehicle based on the broadcast mechanism and the message publish and subscribe mechanism.
[0042] In some embodiments, the apparatus further includes:
[0043] A processing module is configured to correct the software module if the execution status of the software module indicates that the execution of the software module has not achieved the corresponding expected result.
[0044] The control module is also used to, after successful correction, continue to control the software module to perform operations that match the power state through the software management module corresponding to the software module, and record the execution results of the software module.
[0045] On the other hand, a vehicle is provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the vehicle power management method as described in the above embodiments.
[0046] On the other hand, a computer-readable storage medium is provided that stores a computer program, which is executed by a processor to perform the vehicle power management method as described in the above embodiments.
[0047] The solution provided in this application, upon receiving the translated raw voltage signal and bus power signal from the vehicle, determines the power state matching these signals, ensuring accuracy. Then, through a message publishing and subscription mechanism, the power state is sent to at least one software management module on the vehicle. This allows each software management module to control its corresponding software module to perform operations matching the power state. In other words, this solution uses different software management modules for distributed management of the vehicle's software modules. Each module manages only a small number of modules, ensuring that the operations or services performed by the software modules conform to the vehicle's power state. Furthermore, the workload of each management module is relatively small, reducing the likelihood of problems and thus guaranteeing the stability of the vehicle's power management system and the safety of vehicle operation.
[0048] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0049] Figure 1 is a schematic diagram of centralized cockpit power management in a related technology according to an embodiment of this application;
[0050] Figure 2 is a flowchart of a vehicle power management method according to an embodiment of this application;
[0051] Figure 3 is a schematic diagram of a distributed power management method according to an embodiment of this application;
[0052] Figure 4 is a schematic diagram of a power supply state according to an embodiment of this application;
[0053] Figure 5 is a flowchart of power management according to an embodiment of this application;
[0054] Figure 6 is a schematic diagram of a vehicle power management device according to an embodiment of this application;
[0055] Figure 7 is a structural schematic diagram of a vehicle provided according to an embodiment of this application. Detailed Implementation
[0056] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0057] It should be noted that the original voltage signals and bus power signals involved in the embodiments of this application were obtained with the full knowledge and authorization of the user and all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0058] The following description, with reference to the accompanying drawings, outlines a vehicle power management method, apparatus, vehicle, and storage medium according to embodiments of this application. Addressing the problem mentioned in the background art where an overburdened power management module leads to chaotic power status management across the entire cockpit system, thus increasing the failure rate of power management, this application provides a vehicle power management method. In this method, the translated raw voltage signal and bus power signal from the vehicle are received. Then, a power status matching the raw voltage signal and bus power signal is determined, ensuring the accuracy of the power status. The power status is then sent to at least one software management module on the vehicle via a message publishing and subscription mechanism, allowing each software management module to control its corresponding software module to perform operations matching the power status. In other words, this solution uses different software management modules to perform distributed management of the vehicle's software modules. Each software management module only needs to manage a small number of software modules, ensuring that the operations or services performed by the software modules on the vehicle conform to the vehicle's power status. Furthermore, the workload of each software management module is relatively small, reducing the likelihood of problems and thus ensuring the stability of the vehicle's power management system and the safety of vehicle operation.
[0059] Specifically, before introducing the embodiments of this application, let's first introduce the power management scheme in related technologies. As shown in Figure 1, Figure 1 is a schematic diagram of centralized power management for the cockpit according to an embodiment of this application. To solve the power management problem of the vehicle cockpit system, a power management module has been developed and configured in related technologies to centrally manage the power status required for the operation of the software modules involved in the cockpit. Specifically, the power management module in related technologies determines the working status of each software module in the vehicle cockpit system based on the vehicle's power signal, thereby instructing each software module to perform a certain operation to achieve a working status consistent with the power signal. For example, the power management module determines the working status of multiple software modules such as the audio module, layer module, multimedia module, and disc drive module based on the vehicle's power signal, thereby instructing these multiple software modules to perform corresponding operations to achieve a working status consistent with the power signal.
[0060] While centralized management in related technologies can solve the complex power status management problem of cockpit systems, it also brings some drawbacks. For example, (1) the power management module needs to manage the power status of all software modules in the vehicle, which is too heavy a task and prone to problems, thus causing chaos in the power status management of the entire cockpit system; (2) the power module development process is highly coupled with each software module, which easily leads to the development of the power management module requiring in-depth understanding of the business of each software module, thereby increasing the development and maintenance costs of the power management module. In order to solve the technical problems existing in the above-mentioned related technologies, the embodiments of this application use a distributed power management method to distribute the perception of power status, working status and mode switching, power status publication and subscription, and power status migration response in the cockpit system, while reducing the coupling between the power management module and the business of each software module. The specific implementation method is described in detail in the following embodiments.
[0061] Specifically, Figure 2 is a schematic flowchart of a vehicle power management method according to an embodiment of this application. As shown in Figure 2, the vehicle power management method includes the following steps:
[0062] In step S201, the original voltage signal and bus power signal translated by the vehicle are received.
[0063] In this embodiment, the raw voltage signal refers to the unprocessed voltage signal directly output from the power source (such as a battery or generator) in the vehicle power system. The raw voltage signal reflects the actual voltage state of the vehicle power system. The bus power signal refers to the signal used for power supply in the vehicle bus system. The bus power signal provides power to the software modules on the vehicle to ensure that each software module can function properly.
[0064] In some embodiments, before receiving the translated original voltage signal and bus power signal from the vehicle, the vehicle power management method further includes: acquiring a signal triggering result of the vehicle, the signal triggering result indicating whether the original voltage signal and bus power signal of the vehicle have been triggered; and, if the signal triggering result indicates that the original voltage signal and bus power signal have been triggered, translating the original voltage signal and bus power signal through a microcontroller unit (MCU) to obtain the translated original voltage signal and bus power signal.
[0065] Specifically, in this embodiment, the vehicle's hardware system supports the acquisition of power signals. Thus, when a power event is triggered, the vehicle's raw voltage signal and bus power signal are triggered accordingly. For example, when power events such as ignition or shutdown occur, the vehicle's microcontroller unit first receives the vehicle's raw voltage signal and bus power signal, and translates the received raw voltage signal and bus power signal to obtain the translated raw voltage signal and bus power signal. Then, the microcontroller unit can send the translated raw voltage signal and bus power signal to the SOC (System On Chip) so that the SOC can perform distributed power management on the vehicle's software modules based on the translated raw voltage signal and bus power signal.
[0066] For example, Figure 3 is a schematic diagram of a distributed power management method according to an embodiment of this application. As shown in Figure 3, the microcontroller unit collects the vehicle's raw voltage signal and bus power signal, translates the raw voltage signal and bus power signal, and sends the translated raw voltage signal and bus power signal to the SOC.
[0067] In step S202, a power state matching the translated original voltage signal and bus power signal is determined based on the translated original voltage signal and bus power signal.
[0068] In this embodiment, a matching relationship between the original voltage signal and the bus power signal and the power state is preset. After receiving the translated original voltage signal and the bus power signal, the power state matching the original voltage signal and the bus power signal can be directly determined from the preset matching relationship.
[0069] For example, Figure 4 is a schematic diagram of a power state according to an embodiment of this application. As shown in Figure 4, after receiving the translated original voltage signal and bus power signal sent by the MCU, the SOC determines the power supply that matches the original voltage signal and bus power signal. For example, if the translated original voltage signal and bus power signal indicate that the vehicle voltage is operating normally, then the power state matched to the vehicle is the normal operating state; or, if the translated original voltage signal and bus power signal indicate that the vehicle's main unit has entered a low-power state but has not been powered off, then the power state matched to the vehicle is the sleep state; or, if the translated original voltage signal and bus power signal indicate that the vehicle voltage is below the normal operating range but has not been powered off, then the power state matched to the vehicle is the low-voltage state. That is, the embodiments of this application can abstract and define the above two signals of the vehicle through power states.
[0070] Referring to Figure 3, the power state machine in the SOC receives the translated original voltage signal and the bus power signal, and determines the power state that matches the original voltage signal and the bus power signal based on the translated original voltage signal and the bus power signal.
[0071] In some embodiments, before determining a power state matching the translated original voltage signal and the bus power signal, the vehicle power management method further includes: classifying software modules running on the vehicle to obtain at least one category; and configuring a software management module for each category of software modules. Each software management module is used to manage the operating state of the software module in its corresponding category under the power state.
[0072] For example, software modules such as music players and Bluetooth devices in a vehicle can be categorized as audio, while software modules such as video players and image displays can be categorized as multimedia. Then, this application configures a corresponding software management module for each category. For example, an audio management module is configured for software modules in the audio category, and a multimedia management module is configured for software modules in the multimedia category. The audio management module and the multimedia management module manage the working status of the software modules in their respective categories based on the power status, thereby achieving distributed management of the software modules.
[0073] In step S203, a power status is sent to at least one software management module on the vehicle through a message publish and subscribe mechanism. The at least one software management module is used to manage the working status of the software modules on the vehicle based on the power status.
[0074] In this embodiment, at least one software module on the vehicle requires power from the vehicle to function. At least one software management module, acting as a receiver of power status, can subscribe to the power status so that after the power state machine determines the power status, it can promptly obtain the power status and adjust the working state of the managed software modules accordingly.
[0075] In some embodiments, the power state matching the original voltage signal and the bus power signal is determined by a power state machine on the vehicle. The vehicle power management method further includes: creating a message publishing module based on a message publishing and subscription mechanism; establishing a signal connection between the power state machine and the message publishing module; and, after successful signal connection, sending the power state determined by the power state machine to the message publishing module. That is, the power state machine, as the publisher of the power state, directly sends the power state to the message publishing module after determining it. Then, the message publishing module can send the power state to the software management module that subscribes to that power state.
[0076] Specifically, in this embodiment, after determining the power state that matches the translated original voltage signal and bus power signal, the SOC can construct a loosely coupled power management core distribution mechanism and a message publish / subscribe mechanism to realize dynamic sending and receiving between the power management core and each software module. At the same time, the power state machine is connected to the message publish / subscribe mechanism, and after the signal connection is successful, the power state determined by the power state machine is received using the message publish / subscribe mechanism, and the power state is distributed to each software management module.
[0077] In some embodiments, the vehicle power management method further includes: constructing a power status broadcasting mechanism, and sending the power status to at least one software management module on the vehicle through a message publishing and subscription mechanism, including: broadcasting the power status to at least one software management module on the vehicle based on the broadcasting mechanism and the message publishing and subscription mechanism.
[0078] Furthermore, after receiving the power status of the vehicle, the message publishing and subscription mechanism in this application embodiment broadcasts the power status based on the broadcast mechanism, so that each software management module on the vehicle can receive the power status of the vehicle.
[0079] Referring again to Figure 3, the power state machine is configured with a distribution mechanism, which allows it to send the power state to the message publishing module after it is determined. The message publishing module is configured with a message publishing and subscription mechanism, facilitating the sending of messages to multiple software management modules such as the audio management module, layer management module, multimedia management module, navigation management module, and storage management module. This allows each software management module to control its corresponding software module to perform operations matching the power state.
[0080] In step S204, at least one software management module controls the corresponding software module to perform operations that match the power state of the vehicle.
[0081] In this embodiment of the application, after the power status is broadcast through the message publishing and subscription mechanism, the software management modules that have subscribed to the corresponding power status will receive the relevant power status. Then, each software management module can generate its own target instruction for each software module it manages based on the vehicle's power status, and send the target instruction to the corresponding software module to instruct the corresponding software module to perform an operation that matches the power status.
[0082] For example, embodiments of this application may utilize an audio management module to respond to a target instruction by setting the audio power state to mute, a navigation management module to respond to a target instruction by setting the navigation system to on, and a multimedia management module to respond to a target instruction by setting the multimedia power state to off.
[0083] In some embodiments, after controlling corresponding software modules to perform operations matching the vehicle's power state based on the vehicle's power state via at least one software management module, the vehicle power management method further includes: for any software module managed by the at least one software management module, determining the execution status of the software module based on the software module's execution result and expected result. The software module's execution status is used to indicate whether the software module's execution has achieved the corresponding expected result. If the software module's execution status indicates that the software module's execution has achieved the corresponding expected result, then the software module's execution result is recorded.
[0084] In other embodiments, if the execution status of a software module indicates that the software module has not achieved the expected result, the software module is corrected. After successful correction, the software management module corresponding to the software module continues to control the software module to perform operations that match the power state and records the execution result of the software module.
[0085] The expected result can be the response result set by a person skilled in the art according to the target instruction, and is not specifically limited here.
[0086] Specifically, after obtaining the execution result of the software module based on the power state corresponding to the target instruction response in this embodiment, it is necessary to further determine whether the execution result conforms to the preset. If the execution result conforms to the preset, that is, the execution result is consistent with the preset result, for example, if the audio management module responds to the audio power state as "on", the execution result is also "audio power state is on". At this time, the power state machine in the SOC is notified to directly record the execution result. If the execution result does not conform to the preset, that is, the execution result is inconsistent with the preset result, for example, if the audio management module responds to the audio power state as "on", the execution result is "audio power state is muted", or the execution timeout occurs, the execution is considered to have failed. The software module can be corrected, and after correction, the corresponding power response can be executed according to the target instruction until the response is successful and the execution result is recorded.
[0087] In summary, to facilitate a clearer understanding of the implementation methods of the embodiments of this application by those skilled in the art, the following description is provided in conjunction with FIG5, which is a flowchart of a power management process according to an embodiment of this application. As shown in FIG5:
[0088] S1: The MCU acquires the raw voltage signal and bus power signal, translates them, and inputs them to the SOC;
[0089] S2: The power state machine in the SOC determines the power state based on the original voltage signal and the bus power signal;
[0090] S3: Publishes power status to various software management modules through a message publish and subscribe mechanism;
[0091] S4: Each software management module executes the corresponding power status response according to the business requirements of each software module;
[0092] S5: The execution status of each software module is fed back to the power state machine through a message subscription mechanism.
[0093] Therefore, the embodiments of this application can reduce the business coupling between power management and various software modules and the development difficulty based on the distributed power management scheme, solve the decentralization problem of cockpit power management, reduce systemic failures, and allow for rapid location and resolution of problems.
[0094] The vehicle power management method provided in this application, after receiving the translated raw voltage signal and bus power signal from the vehicle, determines the power state that matches the raw voltage signal and bus power signal, ensuring the accuracy of the power state. Then, through a message publish and subscribe mechanism, the power state is sent to at least one software management module on the vehicle, so that each software management module can control the corresponding software module to perform operations matching the power state. That is, this solution uses different software management modules to perform distributed management of the software modules on the vehicle. Each software management module only needs to manage a small number of software modules, which not only ensures that the operations or services performed by the software modules on the vehicle conform to the vehicle's power state, but also reduces the workload of each software management module, making it less prone to problems, thereby ensuring the stability of the vehicle power management system and the safety of vehicle operation.
[0095] Furthermore, since each software management module only needs to manage a small number of software modules, the complexity of managing software modules through power status is reduced, which reduces the coupling between the management layer and the managed layer. This allows the development of power management to focus on developing corresponding software management modules for the business of a small number of software modules, thus reducing development and dimensional costs.
[0096] Next, the vehicle power management device according to an embodiment of this application is described with reference to the accompanying drawings.
[0097] Figure 6 is a schematic diagram of a vehicle power management device according to an embodiment of this application. The vehicle power management device is used to perform the steps of the above-described vehicle power management method. As shown in Figure 6, the vehicle power management device 10 includes: a receiving module 100, a determining module 200, a sending module 300, and a control module 400.
[0098] Receiver module 100 is used to receive the original voltage signal and bus power signal translated by the vehicle;
[0099] The determination module 200 is used to determine the power state that matches the translated original voltage signal and the bus power signal based on the original voltage signal and the bus power signal.
[0100] The sending module 300 is used to send the power status to at least one software management module on the vehicle through a message publish and subscribe mechanism. The at least one software management module is used to manage the working status of the software modules on the vehicle.
[0101] The control module 400 is used to control the corresponding software modules to perform operations that match the power state of the vehicle, based on the power state of the vehicle, through at least one software management module.
[0102] In some embodiments, the apparatus further includes:
[0103] The translation module is used to acquire the vehicle's signal triggering result, which indicates whether the vehicle's original voltage signal and bus power signal have been triggered. When the signal triggering result indicates that the original voltage signal and bus power signal have been triggered, the microcontroller translates the original voltage signal and bus power signal to obtain the translated original voltage signal and bus power signal.
[0104] In some embodiments, the apparatus further includes:
[0105] The configuration module is used to create a message publishing module based on the message publishing and subscription mechanism; to establish a signal connection between the power state machine and the message publishing module; and to send the power state determined by the power state machine to the message publishing module after the signal connection is successful.
[0106] In some embodiments, the apparatus further includes:
[0107] A building block for constructing a broadcast mechanism for power states;
[0108] The sending module 300 is also used to broadcast the power status to at least one software management module on the vehicle based on a broadcast mechanism and a message publish and subscribe mechanism.
[0109] In some embodiments, the apparatus further includes:
[0110] The processing module is used to correct the software module if the execution status of the software module indicates that the software module has not achieved the expected result.
[0111] The control module 400 is also used to continue controlling the software module to perform operations that match the power state through the software management module corresponding to the software module after the correction is successful, and to record the execution results of the software module.
[0112] The vehicle power management device provided in this application, after receiving the translated raw voltage signal and bus power signal from the vehicle, determines the power state that matches the raw voltage signal and bus power signal, ensuring the accuracy of the power state. Then, through a message publishing and subscription mechanism, it sends the power state to at least one software management module on the vehicle, so that each software management module can control the corresponding software module to perform operations matching the power state. That is, this solution uses different software management modules to perform distributed management of the software modules on the vehicle. Each software management module only needs to manage a small number of software modules, which not only ensures that the operations or services performed by the software modules on the vehicle conform to the vehicle's power state, but also reduces the workload of each software management module, making it less prone to problems, thereby ensuring the stability of the vehicle power management system and the safety of vehicle operation.
[0113] Figure 7 is a structural schematic diagram of a vehicle according to an embodiment of this application. The vehicle may include:
[0114] The memory 701, the processor 702, and the computer program stored on the memory 701 and capable of running on the processor 702.
[0115] When the processor 702 executes a computer program, it implements the vehicle power management method provided in the above embodiments.
[0116] Furthermore, the vehicle also includes:
[0117] Communication interface 703 is used for communication between memory 701 and processor 702.
[0118] The memory 701 is used to store computer programs that can run on the processor 702.
[0119] The memory 701 may include high-speed RAM (Random Access Memory) and may also include non-volatile memory, such as at least one disk storage device.
[0120] If the memory 701, processor 702, and communication interface 703 are implemented independently, they can be interconnected via a bus to communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, only one thick line is used in Figure 7, but this does not indicate that there is only one bus or one type of bus.
[0121] Optionally, in a specific implementation, if the memory 701, processor 702, and communication interface 703 are integrated on a single chip, then the memory 701, processor 702, and communication interface 703 can communicate with each other through an internal interface.
[0122] The processor 702 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0123] This embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle power management method described above.
[0124] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0125] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0126] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0127] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections with one or more wires (electronic devices), portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), fiber optic devices, and compact disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0128] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0129] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.
[0130] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0131] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A vehicle power management method, wherein, The method includes: Receive the original voltage signal and bus power signal after translation from the vehicle; Based on the translated original voltage signal and the bus power signal, determine the power state that matches the original voltage signal and the bus power signal; The power status is sent to at least one software management module on the vehicle through a message publish and subscribe mechanism. The at least one software management module is used to manage the working status of the software modules on the vehicle based on the power status. Based on the power state of the vehicle, the at least one software management module controls the corresponding software module to perform operations that match the power state.
2. The vehicle power management method according to claim 1, wherein, Before receiving the translated raw voltage signal and bus power signal from the vehicle, the method further includes: The signal triggering result of the vehicle is obtained, and the signal triggering result is used to indicate whether the vehicle's original voltage signal and bus power signal are triggered; When the signal triggering result indicates that the original voltage signal and the bus power signal are triggered, the microcontroller unit translates the original voltage signal and the bus power signal to obtain the translated original voltage signal and the bus power signal.
3. The vehicle power management method according to claim 1, wherein, Before determining the power state matching the translated original voltage signal and the bus power signal, the method further includes: The software modules running on the vehicle are classified to obtain at least one category; For each software module in the at least one category, a software management module is configured, and each software management module is used to manage the working state of the software module in the corresponding category under the power state.
4. The vehicle power management method according to claim 1, wherein, The power state matching the original voltage signal and the bus power signal is determined by a power state machine on the vehicle, and the method further includes: Create a message publishing module based on the message publishing and subscription mechanism; Connect the power state machine to the message publishing module via a signal, and after the signal connection is successful, send the power state determined by the power state machine to the message publishing module.
5. The vehicle power management method according to claim 1, wherein, The method further includes: Construct a broadcast mechanism for the power state; Sending the power status to at least one software management module on the vehicle via a message publish / subscribe mechanism includes: Based on the broadcast mechanism and the message publish and subscribe mechanism, the power status is broadcast to at least one software management module on the vehicle.
6. The vehicle power management method according to claim 1, wherein, After the at least one software management module controls the corresponding software module to perform operations matching the power state of the vehicle, based on the power state of the vehicle, the method further includes: For any software module managed by the at least one software management module, the execution status of the software module is determined based on the execution result and expected result of the software module. The execution status of the software module is used to indicate whether the execution of the software module has achieved the corresponding expected result. If the execution status of the software module indicates that the software module has achieved the expected result, then the execution result of the software module is recorded.
7. The vehicle power management method according to claim 6, wherein, The method further includes: If the execution status of the software module indicates that the execution of the software module has not achieved the expected result, the software module is corrected. After successful correction, the software management module corresponding to the software module continues to control the software module to perform operations that match the power state, and the execution result of the software module is recorded.
8. A vehicle power management device, wherein, The device includes: The receiving module is used to receive the original voltage signal and bus power signal translated by the vehicle. The determination module is used to determine the power state that matches the translated original voltage signal and the bus power signal based on the original voltage signal and the bus power signal. The sending module is used to send the power status to at least one software management module on the vehicle through a message publish and subscribe mechanism. The at least one software management module is used to manage the working status of the software modules on the vehicle based on the power status. The control module is used to control the corresponding software modules to perform operations that match the power state of the vehicle, based on the power state of the vehicle, through the at least one software management module.
9. A vehicle, wherein, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to implement the vehicle power management method as described in any one of claims 1-7.
10. A computer-readable storage medium, wherein, The device contains a computer program that is executed by a processor to implement the vehicle power management method as described in any one of claims 1-7.
Citation Information
Patent Citations
Distributed power management method, device, vehicle and storage medium for vehicle
CN118323026B
Power supply management device of electric automobile
CN101548192A
Power supply state management method and device based on distributed communication, equipment and medium
CN116111724A
Servicinized power management method of vehicle, processor, vehicle and storage medium
CN116252728A
Multivariate data exchange system and method for distributed power supply
CN116628057A