Power consumption control method and device of vehicle-mounted controller, equipment, medium and product
By comprehensively considering the low-power mode of power management chips and MCU chips in the on-board controller, and dynamically selecting the target low-power mode, it solves the power consumption problem of traditional on-board controllers when they do not require full power operation, achieving more efficient energy management and battery life extension.
Patent Information
- Application Number
- CN202510146597.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-06-03
AI Technical Summary
Traditional on-board controllers remain in normal operation mode when they do not require full power operation, resulting in significant power consumption. The prior art still cannot effectively reduce the overall energy consumption of on-board controllers by allowing the power management chip to enter standby mode.
By comprehensively considering the low-power modes of the power management chip and MCU chip in the on-board controller, the current status data of the MCU chip is monitored in real time, the current power consumption needs are analyzed, the target low-power mode is dynamically selected, and the target chipset is controlled to run in the target low-power mode.
Without affecting the performance of the vehicle control system, energy savings will be maximized, unnecessary power waste will be reduced, energy consumption of vehicle controllers will be effectively reduced, overall energy efficiency will be improved, and battery life will be extended.
Smart Images

Figure CN120080800A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of vehicle power management, and in particular, to a power consumption control method, device, equipment, medium and product for an in-vehicle controller. Background Art
[0002] With the popularization and development of in-vehicle electronic devices, in-vehicle controllers play an increasingly important role in vehicles, mainly responsible for controlling and supervising various subsystems of the vehicle, such as the vehicle networking system, engine control system, communication control system, and autonomous driving system, etc. However, in the case of not requiring full-power operation, traditional in-vehicle controllers still maintain the normal operation mode, resulting in significant power consumption. Especially when there is no communication requirement or other actual tasks, it usually causes unnecessary energy consumption.
[0003] In the prior art, usually by making the power management chip in the in-vehicle controller enter the standby mode, the power supply of the corresponding microcontroller (MCU) chip in the in-vehicle controller by the power management system is cut off, so as to reduce the energy consumption of the in-vehicle controller.
[0004] However, relying solely on the power management system to cut off the power of the in-vehicle controller cannot effectively reduce the overall energy consumption of the in-vehicle controller when the in-vehicle control system is still in operation. Summary of the Invention
[0005] This application provides a power consumption control method, device, equipment, medium and product for an in-vehicle controller, which is used to effectively reduce the energy consumption of the in-vehicle controller, improve the overall energy efficiency of the in-vehicle control system, and further extend the service life of the battery by comprehensively considering the low-power modes of the power management chip and the MCU chip in the in-vehicle controller and selecting the corresponding target low-power mode according to the current power consumption requirement of the MCU chip.
[0006] In a first aspect, this application provides a power consumption control method for an in-vehicle controller, and the method includes:
[0007] Obtain the current status data of one or more MCU chips used by the in-vehicle controller;
[0008] For each MCU chip, determine the corresponding current power consumption requirement according to the current status data;
[0009] Determine a target low-power mode from preset mode information according to the current power consumption requirement. The preset mode information includes at least one low-power mode of the target chip group where the MCU chip is located and the power consumption requirement corresponding to each low-power mode. The low-power modes of the target chip group include: the MCU chip mode and the power management chip mode. The MCU chip modes and / or power management chip modes included in different low-power modes are different;
[0010] Control the target chip group to operate in the target low-power mode.
[0011] In a possible design, at least one low-power mode includes: the first low-power mode to the fifth low-power mode with decreasing power consumption requirements;
[0012] The first low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the frequency reduction and clock frequency disabling mode. The power management chip supplies power to the MCU chip in the sleep mode, and the MCU chip reduces the communication clock frequency in the frequency reduction and clock frequency disabling mode;
[0013] The second low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the idle mode. The target CPU of the MCU chip stops running in the idle mode, and the peripherals of the target CPU are in the active state. The target CPU is a CPU other than the main CPU of the MCU chip;
[0014] The third low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the sleep mode. All CPUs other than the main CPU of the MCU chip stop running in the sleep mode, and all peripherals of all CPUs other than the main CPU are in the active state;
[0015] The fourth low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the standby mode. All CPUs of the MCU chip stop running in the standby mode, and the target basic peripherals of all CPUs are in the active state;
[0016] The fifth low-power mode includes: the power management chip mode is the standby mode, and the MCU chip mode is the standby mode. The power management chip stops supplying power to the MCU chip in the standby mode.
[0017] In a possible design, the power consumption requirement of the first low-power mode includes: the communication data volume is less than or equal to the preset data volume;
[0018] The power consumption requirement of the second low-power mode includes: the task volume of the target CPU is less than or equal to the preset task volume;
[0019] The power consumption requirements of the third low-power mode include: the workloads of all CPUs other than the main CPU are less than or equal to a preset workload;
[0020] The power consumption requirements of both the fourth low-power mode and the fifth low-power mode include: the workload of the MCU chip is less than or equal to a preset workload.
[0021] In a possible design, the target low-power mode includes the first target mode of the power management chip and the second target mode of the MCU chip. Controlling the target chip group to operate in the target low-power mode includes:
[0022] Sending a Serial Peripheral Interface (SPI) command carrying the first target mode to the power management chip, so that the power management chip executes the SPI command to enter the first target mode;
[0023] Writing the second target mode into the register corresponding to the MCU chip, so that the MCU chip enters the second target mode.
[0024] In a possible design, before controlling the target chip group to operate in the target low-power mode, it further includes:
[0025] Encapsulating the status information of the MCU chip and the target interface information of the MCU chip into the SCR controller, so that the main CPU of the MCU chip calls the target interface information in the SCR controller to operate based on the status information after the target chip group enters the target low-power mode.
[0026] In a possible design, determining the corresponding current power consumption requirements according to the current status data includes:
[0027] Determining the target function information that affects power consumption from all the function information provided by the MCU chip;
[0028] Matching the target function information with the current status data to obtain the target function information with successful matching;
[0029] Generating the current power consumption requirements according to the target function information with successful matching.
[0030] In a second aspect, the present application provides a power consumption control device for a vehicle-mounted controller. The device includes:
[0031] An acquisition module, configured to acquire the current status data of one or more MCU chips used by the vehicle-mounted controller;
[0032] A determination requirement module, configured to determine the corresponding current power consumption requirements for each MCU chip according to the current status data;
[0033] A determination mode module is used to determine a target low-power mode from preset mode information according to the current power consumption requirement. The preset mode information includes at least one low-power mode of the target chip group where the MCU chip is located and the power consumption requirement corresponding to each low-power mode. The low-power modes of the target chip group include: an MCU chip mode and a power management chip mode, and the MCU chip mode and / or the power management chip mode included in different low-power modes are different;
[0034] A control module is used to control the target chip group to operate in the target low-power mode.
[0035] In a possible design, in the determination mode module, at least one low-power mode includes: a first low-power mode to a fifth low-power mode with power consumption requirements from high to low;
[0036] The first low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the reduced frequency and disabled clock frequency mode. The power management chip supplies power to the MCU chip in the sleep mode, and the MCU chip reduces the communication clock frequency in the reduced frequency and disabled clock frequency mode;
[0037] The second low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the idle mode. The target CPU of the MCU chip stops running in the idle mode, and the peripherals of the target CPU are in the active state. The target CPU is a CPU other than the main CPU of the MCU chip;
[0038] The third low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the sleep mode. All CPUs other than the main CPU of the MCU chip stop running in the sleep mode, and all peripherals of all CPUs other than the main CPU are in the active state;
[0039] The fourth low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the standby mode. All CPUs of the MCU chip stop running in the standby mode, and the target basic peripherals of all CPUs are in the active state;
[0040] The fifth low-power mode includes: the power management chip mode is the standby mode, and the MCU chip mode is the standby mode. The power management chip stops supplying power to the MCU chip in the standby mode.
[0041] In a possible design, in the determination mode module, the power consumption requirement of the first low-power mode includes: the communication data volume is less than or equal to the preset data volume;
[0042] The power consumption requirement of the second low-power mode includes: the task volume of the target CPU is less than or equal to the preset task volume;
[0043] The power consumption requirements for the third low-power mode include: the workload of all CPUs other than the main CPU is less than or equal to a preset workload;
[0044] The power consumption requirements for both the fourth and fifth low-power modes include: the workload of the MCU chip is less than or equal to a preset workload.
[0045] In a possible design, the target low-power mode includes a first target mode of the power management chip and a second target mode of the MCU chip. The control module includes: a sending module and a writing module;
[0046] The sending module is configured to send a Serial Peripheral Interface (SPI) command carrying the first target mode to the power management chip, so that the power management chip executes the SPI command to enter the first target mode;
[0047] The writing module is configured to write the second target mode into the register corresponding to the MCU chip, so that the MCU chip enters the second target mode.
[0048] In a possible design, the device further includes: a packaging module;
[0049] The packaging module is configured to package the status information of the MCU chip and the target interface information of the MCU chip into the SCR controller, so that after the main CPU of the MCU chip enters the target low-power mode in the target chip group, it calls the target interface information in the SCR controller to operate based on the status information.
[0050] In a possible design, the demand determination module includes: a determination information module, a matching module, and a generation module;
[0051] The determination information module is configured to determine the target function information affecting power consumption from all the function information provided by the MCU chip;
[0052] The matching module is configured to match the target function information with the current status data to obtain the target function information with successful matching;
[0053] The generation module is configured to generate the current power consumption requirements according to the target function information with successful matching.
[0054] In a third aspect, the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0055] The memory stores computer-executable instructions;
[0056] The processor executes the computer-executable instructions stored in the memory to implement a power consumption control method for an in-vehicle controller according to the invention content of the first aspect.
[0057] Fourthly, the present application provides a computer-readable storage medium storing computer-executable instructions, which are used to implement a power consumption control method for an in-vehicle controller according to the invention content of the first aspect when executed by a processor.
[0058] Fifthly, the present application provides a computer program product including a computer program, which is used to implement a power consumption control method for an in-vehicle controller according to the invention content of the first aspect when executed by a processor.
[0059] A power consumption control method, device, equipment, medium and product for an in-vehicle controller provided by the present application, the method includes: First, obtain the current state data of one or more MCU chips used by the in-vehicle controller; Then, for each MCU chip, determine the corresponding current power consumption requirement according to the current state data; Then, determine the target low-power mode from the preset mode information according to the current power consumption requirement, and the preset mode information includes at least one low-power mode of the target chip group where the MCU chip is located and the power consumption requirement corresponding to each low-power mode, and the low-power modes of the target chip group include: MCU chip mode and power management chip mode, and the MCU chip mode and / or power management chip mode included in different low-power modes are different; Finally, control the target chip group to operate in the target low-power mode. The following technical effects are achieved: By real-time monitoring the current state data of each MCU chip in the in-vehicle controller and analyzing the current power consumption requirement of each MCU chip, the target low-power mode is determined from the preset mode information according to the current power consumption requirement of each MCU chip, and then the target chip group is controlled to operate in the target low-power mode, ensuring that energy is saved to the greatest extent without affecting the performance of the in-vehicle control system, reducing unnecessary power waste, effectively reducing the energy consumption of the in-vehicle controller, improving the overall energy efficiency of the in-vehicle control system, and extending the service life of the battery. Description of the Drawings
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to these drawings without creative efforts.
[0061] The drawings here are incorporated into the specification and form a part of this specification, showing the embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0062] Figure 1 It is a schematic structural diagram of an in-vehicle controller provided by an embodiment of the present application;
[0063] Figure 2 Flow schematic of a power consumption control method for an in-vehicle controller provided by an embodiment of the present application Figure 1 ;
[0064] Figure 3 Flow schematic of a power consumption control method for an in-vehicle controller provided by an embodiment of the present application Figure 2 ;
[0065] Figure 4 Structural schematic diagram of a power consumption control device for an in-vehicle controller provided by an embodiment of the present application;
[0066] Figure 5 Structural schematic diagram of an electronic device provided by an embodiment of the present application.
[0067] Reference numerals:
[0068] 410 - Acquisition module; 420 - Requirement determination module; 430 - Mode determination module; 440 - Control module; 510 - Processor; 520 - Memory; 530 - Communication component; 540 - Bus. Detailed implementation manners
[0069] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0070] In the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the terms "first" and "second" do not limit the quantity and execution order, and the terms "first" and "second" do not necessarily mean different. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly, using words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner. In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more.
[0071] It should be noted that in the embodiments of the present application, "when...", can be at the instant when a certain situation occurs, or within a period of time after a certain situation occurs. The embodiments of the present application do not make specific limitations in this regard. In addition, a power consumption control method for an in-vehicle controller provided by the embodiments of the present application is only an example, and a power consumption control method for an in-vehicle controller may also include more or less content.
[0072] To facilitate a clear description of the technical solutions of the embodiments of the present application, the following briefly introduces some terms and technologies involved in the embodiments of the present application:
[0073] Microcontroller Unit (MCU) chip: It is a single-chip integrated circuit integrating a processor, a memory, and various peripheral functions. In the embodiments of the present application, each in-vehicle controller usually can include one or more MCU chips, and may include one or more power management chips corresponding to the MCU chips.
[0074] Central Processing Unit (CPU): It is responsible for executing various computing tasks and control operations, that is, processing and running program codes to implement various computing tasks. The CPU can complete various tasks by performing arithmetic and logical operations, controlling data streams, and processing input and output operations. In the embodiments of the present application, each MCU chip usually can include one or more CPUs.
[0075] Serial Peripheral Interface (SPI): It refers to a synchronous serial communication interface used for short-distance communication between an MCU chip and various peripheral devices (such as sensors, memories, and displays).
[0076] Self Check and Recovery (SCR) controller: It is a component with self-check and recovery functions, which can perform self-detection during the operation of the in-vehicle controller and attempt to perform recovery operations when abnormalities or faults are detected. In the embodiments of the present application, when the in-vehicle controller enters the low-power mode, enabling the SCR controller can ensure that the in-vehicle control system can maintain the operation of key functions while saving energy. Thus, power can be saved when the vehicle does not require full-power operation, and it is also convenient for the in-vehicle controller to quickly resume work when it is re-awakened.
[0077] Extended Retention Random Access Memory (XRAM): It is used to retain data for a longer time in the event of a power outage and can be used in application scenarios where data needs to be quickly restored after a power failure. XRAM can maintain data in a very low power consumption state or use non-volatile technology to ensure the secure storage of data.
[0078] Controller Area Network (CAN): It is a standard protocol used for communication between microcontrollers in vehicles and industrial equipment. In the embodiments of this application, CAN is used to provide stable data communication between different electronic control units inside the vehicle.
[0079] With the increasing popularity and rapid development of in-vehicle electronic devices, in-vehicle controllers have become an indispensable component in vehicles. It can be responsible for a wide range of complex tasks, including the supervision and control of various subsystems such as the vehicle networking system, engine control system, communication control system, and autonomous driving system. However, in the non-full-power operation state, the in-vehicle controller still maintains the normal operation mode, resulting in unnecessary power consumption, especially when there is no actual communication requirement and other tasks, the energy waste is particularly significant.
[0080] The prior art usually sets the power management chip in the in-vehicle controller to the standby mode to cut off the power supply to the corresponding MCU chip in the in-vehicle controller, thereby reducing the energy consumption of the in-vehicle controller. However, this simple power-off strategy cannot significantly reduce the overall power consumption of the in-vehicle controller when the in-vehicle control system still needs to maintain a certain degree of activity. That is to say, in the face of the continuous operation of the in-vehicle control system, its energy-saving effect is not ideal.
[0081] Based on this, the embodiments of this application propose a power consumption control method, device, equipment, medium, and product for an in-vehicle controller, which can be used in the technical field of vehicle power management, aiming to solve the above technical problems of the prior art. By integrating the low-power consumption characteristics of the power management chip and the MCU chip in the in-vehicle controller, comprehensively considering the low-power consumption modes of the power management chip and the MCU chip, and by real-time monitoring the current state data of each MCU chip in the in-vehicle controller, analyzing the current power consumption requirements of each MCU chip, and then dynamically selecting the corresponding target low-power consumption mode according to the current power consumption requirements of each MCU chip, to ensure that the energy is saved to the greatest extent without affecting the performance of the in-vehicle control system, reduce unnecessary power waste, effectively reduce the energy consumption of the in-vehicle controller, and further improve the overall energy efficiency of the in-vehicle control system and extend the service life of the battery.
[0082] The following uses specific embodiments to elaborate in detail on the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0083] Figure 1 It is a schematic structural diagram of a vehicle-mounted controller provided by an embodiment of the present application. As Figure 1 shown, each vehicle-mounted controller in a vehicle usually includes one or more MCU chips and includes one or more power management chips. Among them, each MCU chip is respectively connected to a power management chip. Each power management chip can be responsible for providing a stable and reliable power supply to its corresponding MCU chip. Specifically, the power management chip can adjust the input voltage and provide the output voltage and output current required by the MCU chip to meet the working requirements of the MCU chip. Each MCU chip usually includes one or more CPUs, and each CPU is responsible for controlling and processing data sent by various external devices (such as motors and sensors, etc.) to achieve automatic control of various external devices.
[0084] Furthermore, the power management chip and the MCU chip can interact through a dedicated communication interface (such as SPI). The MCU chip can send commands to the power management chip to adjust power parameters according to the current operating state, or receive the status report sent by the power management chip to optimize energy consumption.
[0085] It should be noted that in the vehicle-mounted controller of an actual vehicle, there may also be a situation where multiple MCU chips share the same power management chip to provide power. In the embodiment of the present application, a power consumption control method for a vehicle-mounted controller is only applicable to the scenario where the power management chip and the MCU chip are in one-to-one correspondence as Figure 1 shown.
[0086] Figure 2 It is a schematic flowchart of a power consumption control method for a vehicle-mounted controller provided by an embodiment of the present application. Figure 1 In the embodiment of the present application, a vehicle usually includes multiple vehicle-mounted controllers. However, since the power consumption control methods for each vehicle-mounted controller are the same, this embodiment only elaborates in detail on how to control the power consumption of one of the vehicle-mounted controllers. As Figure 2 shown, the method includes:
[0087] S201. Obtain the current status data of one or more MCU chips used by the vehicle-mounted controller.
[0088] In an embodiment of the present application, the execution subject of a power consumption control method for an in-vehicle controller may be the in-vehicle controller corresponding to the MCU chip and the battery management chip, or other electronic control units (ECUs) in the vehicle, etc. There is no specific limitation here. For the convenience of subsequent description, the execution subject of the power consumption control method for the in-vehicle controller is uniformly described as the controller here.
[0089] Specifically, in order to optimize the power consumption level of the in-vehicle controller, the controller may obtain the current state data of each MCU chip used by the in-vehicle controller, so as to control the corresponding power consumption according to the current operating state of the MCU chip. Among them, the current state data can reflect the current operating state of the corresponding MCU chip.
[0090] S202. For each MCU chip, determine the corresponding current power consumption requirement according to the current state data.
[0091] Specifically, after the controller obtains the current state data of each MCU chip, for each MCU chip, it can further determine the current power consumption requirement corresponding to the MCU chip according to the current state data, so as to further determine the corresponding low-power mode according to the current power consumption requirement.
[0092] S203. Determine the target low-power mode from the preset mode information according to the current power consumption requirement.
[0093] In an embodiment of the present application, the preset mode information includes at least one low-power mode of the target chip group where the MCU chip is located and the power consumption requirement corresponding to each low-power mode. The low-power modes of the target chip group include: MCU chip mode and power management chip mode, and the MCU chip modes and / or power management chip modes included in different low-power modes are different.
[0094] Specifically, for each MCU chip in an in-vehicle controller, each MCU chip corresponds to a chip group respectively. Each chip group includes an MCU chip and a power management chip corresponding to the MCU chip.
[0095] The controller prestores the preset mode information of these two chips (MCU chip and corresponding power management chip) included in each chip group. For each chip group, the preset mode information specifically includes the various low-power modes of the chip group and the power consumption requirements corresponding to the various low-power modes.
[0096] For each MCU chip, the controller can determine the target low-power mode corresponding to the current power consumption requirement from the various low-power modes included in the preset mode information.
[0097] S204. Control the target chipset to operate in the target low-power mode.
[0098] Specifically, after determining the target low-power mode, the controller can control the MCU chip and the corresponding power management chip in the target chipset to operate in the target low-power mode, thereby effectively reducing the energy consumption of the vehicle-mounted controller and improving the overall energy efficiency of the vehicle-mounted control system.
[0099] A power consumption control method for a vehicle-mounted controller provided in this embodiment includes: First, obtain the current state data of one or more MCU chips used by the vehicle-mounted controller; then, for each MCU chip, determine the corresponding current power consumption requirement according to the current state data; then, determine the target low-power mode from the preset mode information according to the current power consumption requirement. The preset mode information includes at least one low-power mode of the target chipset where the MCU chip is located and the power consumption requirement corresponding to each low-power mode. The low-power modes of the target chipset include: MCU chip mode and power management chip mode, and the MCU chip mode and / or power management chip mode included in different low-power modes are different; finally, control the target chipset to operate in the target low-power mode.
[0100] The following technical effects are achieved: By real-time monitoring the current state data of each MCU chip in the vehicle-mounted controller and analyzing the current power consumption requirement of each MCU chip, the target low-power mode is determined from the preset mode information according to the current power consumption requirement of each MCU chip, and then the target chipset is controlled to operate in the target low-power mode, ensuring that energy is saved to the greatest extent without affecting the performance of the vehicle-mounted control system, reducing unnecessary power waste, effectively reducing the energy consumption of the vehicle-mounted controller, improving the overall energy efficiency of the vehicle-mounted control system, and prolonging the service life of the battery.
[0101] In a possible implementation manner, at least one low-power mode may include: a first low-power mode to a fifth low-power mode with decreasing power consumption requirements;
[0102] Specifically, the controller can real-time monitor the working state of each MCU chip in the vehicle-mounted controller by real-time obtaining the current state data of each MCU chip used by the vehicle-mounted controller, and then the working state of each chipset in the vehicle-mounted controller can be divided into six types, namely the normal operation mode and five low-power modes.
[0103] Among them, the first low-power mode includes: the power management chip is in the sleep mode, and the MCU chip is in the mode of reducing frequency and disabling the clock frequency. The power management chip supplies power to the MCU chip in the sleep mode, and the MCU chip reduces the communication clock frequency in the mode of reducing frequency and disabling the clock frequency. That is, according to the actual requirements of the vehicle control system, while ensuring the performance of the vehicle control system and the stable operation of the vehicle controller, the clock frequency of Ethernet is reduced, the clock frequency of CAN is reduced, and the clock frequencies of some external devices are reduced, etc. Even when there is no Ethernet communication requirement, the clock of Ethernet can be disabled, and the clock of CAN can be disabled, etc.
[0104] The second low-power mode includes: the power management chip is in the sleep mode, and the MCU chip is in the idle mode. The target CPU of the MCU chip stops running in the idle mode, and the peripherals of the target CPU are in the active state. The target CPU is a CPU other than the main CPU of the MCU chip. That is, according to the actual requirements of the vehicle controller, a target CPU other than the main CPU in the MCU chip is in the idle mode. For example, if the MCU chip only needs several CPUs to process tasks and one CPU has no tasks to execute, then at this time, the controller can put this CPU in the idle mode, stop the execution of the CPU code, and disable the clock of the CPU, etc. However, it should be noted that the external devices of this CPU can still remain in the active state at this time.
[0105] The third low-power mode includes: the power management chip is in the sleep mode, and the MCU chip is in the sleep mode. All CPUs other than the main CPU of the MCU chip stop running in the sleep mode, and all peripherals of all CPUs other than the main CPU are in the active state. That is, when the target chipset is in the third low-power mode, all CPUs other than the main CPU in the MCU chip can be in the idle mode. For example, according to the actual requirements of the vehicle control system, if the MCU chip only needs the main CPU to process relevant tasks, then at this time, the controller can set all CPUs other than the main CPU in the MCU chip to the idle mode, thereby further reducing the power consumption of the vehicle control system.
[0106] The fourth low-power mode includes: the power management chip is in the sleep mode, and the MCU chip is in the standby mode. All CPUs of the MCU chip stop running in the standby mode, and all the target basic peripherals of all CPUs are in the active state. Among them, the target basic peripherals refer to some necessary external devices. For example, devices such as a low-speed clock and a watchdog timer for maintaining basic functions. That is to say, when the target chipset is in the fourth low-power mode, most of the external devices of the MCU chip can remain in the inactive state, and only some necessary external devices can remain in the active state, so that the vehicle control system can be awakened when necessary.
[0107] The fifth low-power mode includes: the power management chip is in the standby mode, and the MCU chip is in the standby mode. The power management chip stops supplying power to the MCU chip in the standby mode.
[0108] Furthermore, the power consumption requirement of the first low-power mode includes: the communication data volume is lower than or equal to a preset data volume. That is, when the controller detects that the working state of the MCU chip in the vehicle controller has relatively low communication requirements, the communication data volume is lower than or equal to the preset data volume, and there is even no Ethernet communication requirement or CAN communication requirement, the controller can determine the target low-power mode of the target chipset as this first low-power mode.
[0109] The power consumption requirement of the second low-power mode includes: the task volume of the target CPU is less than or equal to a preset task volume. That is, the controller detects that the working state of the MCU chip in the vehicle controller is such that a certain target CPU other than the main CPU is completely not required to do any work. At this time, in order to reduce the power consumption of the vehicle control system and save power, the controller can determine the target low-power mode of the target chipset as this second low-power mode. At this time, the power management chip in the target chipset still supplies power to the MCU chip, but the target CPU included in the MCU chip will be in the idle mode, that is, the code of the target CPU will stop executing, and the corresponding clock will also be disabled, but the external devices of the target CPU can still remain in the active state.
[0110] The power consumption requirements of the third low-power mode include: the workloads of all CPUs other than the main CPU are less than or equal to a preset workload. That is, the controller monitors the working state of the MCU chip in the vehicle-mounted controller as: only the main CPU needs to process relevant tasks. At this time, in order to further reduce the power consumption of the vehicle-mounted control system and improve the overall energy efficiency of the vehicle-mounted controller, the controller can determine the target low-power mode of the target chip group as this third low-power mode. At this time, the power management chip can still supply power to the MCU chip, but except for the main CPU, other CPUs can all be in the idle mode, that is, the codes of all CPUs other than the main CPU will stop executing, and the corresponding clocks will all be disabled, but the external devices of all these CPUs other than the main CPU can still remain active.
[0111] The power consumption requirements of both the fourth low-power mode and the fifth low-power mode include: the workload of the MCU chip is less than or equal to a preset workload. That is, the controller monitors the working state of the MCU chip in the vehicle-mounted controller as: the vehicle is parked and no functional tasks need to be executed. At this time, in order to further reduce the power consumption of the vehicle-mounted control system and improve the overall energy efficiency of the vehicle-mounted controller, the controller can determine the target low-power mode of the target chip group as this fourth low-power mode or this fifth low-power mode. Specifically, when it is necessary for the battery management chip to continue to supply power to the MCU chip, the fourth low-power mode can be selected; when it is not necessary for the battery management chip to continue to supply power to the MCU chip, in order to minimize the power consumption of the vehicle-mounted control system, the fifth low-power mode can be selected.
[0112] Figure 3 Flow schematic of a power consumption control method for a vehicle-mounted controller provided by an embodiment of the present application Figure 2 。In a possible example, as Figure 3 shown, based on the Figure 2 embodiment, this embodiment details how to determine the current power consumption requirements and how to control the target chip group to operate in the target low-power mode. As Figure 3 shown, the method includes:
[0113] S301. Obtain the current status data of one or more MCU chips used by the vehicle-mounted controller.
[0114] S301 is similar to S201, and details are not repeated in this embodiment.
[0115] S302. For each MCU chip, determine the target function information that affects power consumption from all the function information provided by the MCU chip.
[0116] In the embodiment of the present application, the function information may include a function subject and a specific function description.
[0117] Specifically, for each MCU chip, determine the corresponding current power consumption requirement according to the current status data. Specifically, first, extract the target function information that can affect the power consumption from all the function information provided by the MCU chip.
[0118] S303. Match the target function information with the current status data to obtain the successfully matched target function information.
[0119] Specifically, the controller can compare and match the extracted target function information with the obtained current status data to determine the target function information that affects the power consumption at the current moment.
[0120] S304. Generate the current power consumption requirement according to the successfully matched target function information.
[0121] Specifically, the controller can generate the current power consumption requirement of the MCU chip according to the target function information that affects the power consumption at the current moment.
[0122] S305. Determine the target low-power mode from the preset mode information according to the current power consumption requirement.
[0123] S305 is similar to S203, and will not be elaborated in this embodiment.
[0124] S306. Package the status information of the MCU chip and the target interface information of the MCU chip into the SCR controller.
[0125] Specifically, when the controller confirms that the MCU chip in the vehicle-mounted controller is in the low-power mode, the SCR controller can be enabled to package various standby functions, monitoring tasks, and status information of the MCU chip into the SCR controller, and store the specific operation code in the XRAM. So that after the main CPU of the MCU chip enters the target low-power mode in the target chip group, it can call the target interface information in the SCR controller and run based on the status information. Among them, the monitoring tasks can include tasks such as battery voltage monitoring, temperature monitoring, and safety-related inspections, and the status information can include sensor readings, control parameters, error flags, etc. By enabling the SCR controller, it is convenient to quickly resume work when the vehicle-mounted controller is re-awakened.
[0126] S307. Send a Serial Peripheral Interface (SPI) command carrying the first target mode to the power management chip, so that the power management chip executes the SPI command to enter the first target mode.
[0127] S308. Write the second target mode into the register corresponding to the MCU chip, so that the MCU chip enters the second target mode.
[0128] Specifically, the target low-power mode includes the first target mode of the power management chip and the second target mode of the MCU chip. Controlling the target chipset to operate in the target low-power mode includes: controlling the power management chip to operate in the first target mode and controlling the MCU chip to operate in the second target mode. Specifically, if the target low-power mode is the first low-power mode, the first target mode is the sleep mode and the second target mode is the frequency reduction and clock frequency disabling mode; if the target low-power mode is the second low-power mode, the first target mode is the sleep mode and the second target mode is the idle mode; if the target low-power mode is the third low-power mode, both the first target mode and the second target mode are the sleep mode; if the target low-power mode is the fourth low-power mode, the first target mode is the sleep mode and the second target mode is the standby mode; if the target low-power mode is the fifth low-power mode, both the first target mode and the second target mode are the standby mode.
[0129] A power consumption control method for a vehicle-mounted controller provided by an embodiment of the present application encapsulates the status information of the MCU chip and the target interface information of the MCU chip into the SCR controller, and stores the specific operation code in the XRAM. Even when the main CPU is in the sleep state, the SCR controller can quickly respond and handle emergencies.
[0130] Embodiments of the present invention can divide functional modules for an electronic device or a main control device according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present invention is illustrative, only a logical function division, and there may be other division methods in actual implementation.
[0131] Figure 4 It is a schematic structural diagram of a power consumption control device for a vehicle-mounted controller provided by an embodiment of the present application. As Figure 4 shown, the device includes: an acquisition module 410; a demand determination module 420; a mode determination module 430 and a control module 440.
[0132] The acquisition module 410 is used to acquire the current status data of one or more MCU chips used by the vehicle-mounted controller;
[0133] The demand determination module 420 is used to determine the corresponding current power consumption demand for each MCU chip according to the current status data;
[0134] A determination mode module 430 is configured to determine a target low-power mode from preset mode information according to the current power consumption requirement. The preset mode information includes at least one low-power mode of the target chip group where the MCU chip is located and the power consumption requirement corresponding to each low-power mode. The low-power modes of the target chip group include: an MCU chip mode and a power management chip mode. The MCU chip mode and / or the power management chip mode included in different low-power modes are different;
[0135] A control module 440 is configured to control the target chip group to operate in the target low-power mode.
[0136] In a possible design, in the determination mode module 430, the at least one low-power mode includes: a first low-power mode to a fifth low-power mode with decreasing power consumption requirements from high to low;
[0137] The first low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the frequency reduction and clock frequency disabling mode. The power management chip supplies power to the MCU chip in the sleep mode, and the MCU chip reduces the communication clock frequency in the frequency reduction and clock frequency disabling mode;
[0138] The second low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the idle mode. The target CPU of the MCU chip stops running in the idle mode, and the peripherals of the target CPU are in the active state. The target CPU is a CPU other than the main CPU of the MCU chip;
[0139] The third low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the sleep mode. All CPUs other than the main CPU of the MCU chip stop running in the sleep mode, and all peripherals of all CPUs other than the main CPU are in the active state;
[0140] The fourth low-power mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the standby mode. All CPUs of the MCU chip stop running in the standby mode, and the target basic peripherals of all CPUs are in the active state;
[0141] The fifth low-power mode includes: the power management chip mode is the standby mode, and the MCU chip mode is the standby mode. The power management chip stops supplying power to the MCU chip in the standby mode.
[0142] In a possible design, in the determination mode module 430, the power consumption requirement of the first low-power mode includes: the communication data volume is less than or equal to a preset data volume;
[0143] The power consumption requirement of the second low-power mode includes: the task volume of the target CPU is less than or equal to a preset task volume;
[0144] The power consumption requirements of the third low-power mode include: the workloads of all CPUs other than the main CPU are less than or equal to a preset workload;
[0145] The power consumption requirements of both the fourth low-power mode and the fifth low-power mode include: the workload of the MCU chip is less than or equal to a preset workload.
[0146] In a possible design, the target low-power mode includes a first target mode of the power management chip and a second target mode of the MCU chip. The control module 440 includes: a sending module and a writing module;
[0147] The sending module is configured to send a Serial Peripheral Interface (SPI) command carrying the first target mode to the power management chip, so that the power management chip executes the SPI command to enter the first target mode;
[0148] The writing module is configured to write the second target mode into the register corresponding to the MCU chip, so that the MCU chip enters the second target mode.
[0149] In a possible design, the device further includes: a packaging module;
[0150] The packaging module is configured to package the status information of the MCU chip and the target interface information of the MCU chip into the SCR controller, so that after the main CPU of the MCU chip enters the target low-power mode in the target chipset, it calls the target interface information in the SCR controller to operate based on the status information.
[0151] In a possible design, the determination requirement module 420 includes: a determination information module, a matching module, and a generation module;
[0152] The determination information module is configured to determine the target function information affecting power consumption from all function information provided by the MCU chip;
[0153] The matching module is configured to match the target function information with the current status data to obtain the target function information with successful matching;
[0154] The generation module is configured to generate the current power consumption requirements according to the target function information with successful matching.
[0155] A power consumption control device for a vehicle-mounted controller provided in this embodiment can execute the power consumption control method for a vehicle-mounted controller in the above embodiment. Its implementation principle and technical effects are similar, and will not be elaborated here in this embodiment.
[0156] In the specific implementation of the foregoing power consumption control device for a vehicle-mounted controller, each module may be implemented as a processor, and the processor may execute computer-executable instructions stored in the memory, so that the processor executes the foregoing power consumption control method for a vehicle-mounted controller.
[0157] Figure 5 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 5 shown, the electronic device includes: at least one processor 510 and a memory 520. The electronic device further includes a communication component 530. Among them, the processor 510, the memory 520, and the communication component 530 are connected through a bus 540.
[0158] In the specific implementation process, at least one processor 510 executes computer-executable instructions stored in the memory 520, so that at least one processor 510 executes a power consumption control method for a vehicle-mounted controller performed on the electronic device side as described above.
[0159] For the specific implementation process of the processor 510, reference may be made to the foregoing method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated herein.
[0160] In the foregoing embodiment, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), or may also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated as: DSP), application specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0161] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory.
[0162] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0163] The functions implemented for the electronic device and the main control device are introduced for the solution provided by the embodiments of the present invention. It can be understood that, in order to implement the above functions, the electronic device or the main control device includes the corresponding hardware structures and / or software modules for executing each function. Combining the units and algorithm steps of each example described in the embodiments disclosed in the embodiments of the present invention, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described function, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present invention.
[0164] This application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, it is used to implement a power consumption control method for a vehicle-mounted controller as described above.
[0165] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or an optical disc. The readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.
[0166] An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.
[0167] This application also provides a computer program product, which includes a computer program. The computer program is stored in a readable storage medium. At least one processor of the electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program to enable the electronic device to execute the solution provided by the above embodiments.
[0168] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including those of the above method embodiments; and the aforementioned storage medium includes various media such as ROM, RAM, magnetic disks, or optical disks that can store program codes.
[0169] So far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the various embodiments of the present application.
Claims
1. A method for controlling power consumption of a vehicle-mounted controller, characterized in that: include: Get the current status data of one or more MCU chips used by the vehicle controller; For each of the MCU chips, determining a corresponding current power consumption requirement according to the current state data; Determine a target low power consumption mode from preset mode information according to the current power consumption requirement, wherein the preset mode information includes at least one low power consumption mode of the target chipset where the MCU chip is located and the power consumption requirement corresponding to each low power consumption mode, and the low power consumption mode of the target chipset includes: an MCU chip mode and a power management chip mode, and the MCU chip mode and / or the power management chip mode included in different low power consumption modes are different; The target chipset is controlled to operate in the target low power consumption mode.
2. The method according to claim 1, characterized in that The at least one low power consumption mode comprises: a first low power consumption mode to a fifth low power consumption mode wherein the power consumption requirement is from high to low; The first low power consumption mode includes: the power management chip mode is a sleep mode, and the MCU chip mode is a frequency reduction and clock frequency disable mode, the power management chip supplies power to the MCU chip in the sleep mode, and the MCU chip reduces the communication clock frequency in the frequency reduction and clock frequency disable mode; The second low power consumption mode includes: the power management chip mode is a sleep mode, and the MCU chip mode is an idle mode, the target CPU of the MCU chip stops running in the idle mode, the peripherals of the target CPU are in an active state, and the target CPU is a CPU other than the main CPU of the MCU chip; The third low power consumption mode includes: the power management chip mode is the sleep mode, and the MCU chip mode is the sleep mode, all CPUs except the main CPU of the MCU chip stop running in the sleep mode, and all peripherals of all CPUs except the main CPU are in active state; The fourth low power consumption mode includes: the power management chip mode is a sleep mode, and the MCU chip mode is a standby mode, all CPUs of the MCU chip stop running in the standby mode, and the target basic peripherals of all CPUs are in an active state; The fifth low power consumption mode includes: the power management chip mode is a standby mode, and the MCU chip mode is a standby mode, and the power management chip stops supplying power to the MCU chip in the standby mode.
3. The method according to claim 2, characterized in that The power consumption requirement of the first low power consumption mode includes: the communication data volume is lower than or equal to the preset data volume; The power consumption requirement of the second low power consumption mode includes: the task amount of the target CPU is less than or equal to the preset task amount; The power consumption requirement of the third low power consumption mode includes: the task load of all CPUs except the main CPU is less than or equal to the preset workload; The power consumption requirements of the fourth low power consumption mode and the fifth low power consumption mode both include: the task amount of the MCU chip is less than or equal to a preset task amount.
4. The method according to any one of claims 1 to 3, characterized in that The target low power consumption mode includes a first target mode of the power management chip and a second target mode of the MCU chip, and controlling the target chipset to operate in the target low power consumption mode includes: Sending a serial peripheral interface (SPI) command carrying the first target mode to the power management chip, so that the power management chip executes the SPI command to enter the first target mode; The second target mode is written into a register corresponding to the MCU chip, so that the MCU chip enters the second target mode.
5. The method according to claim 4, characterized in that Before controlling the target chipset to operate in the target low power consumption mode, the method further includes: The status information of the MCU chip and the target interface information of the MCU chip are encapsulated into the SCR controller, so that after the target chipset enters the target low power consumption mode, the main CPU of the MCU chip calls the target interface information in the SCR controller to run based on the status information.
6. The method according to any one of claims 1 to 3, characterized in that The determining the corresponding current power consumption requirement according to the current state data includes: Determine target function information affecting power consumption from all function information provided by the MCU chip; Matching the target function information with the current state data to obtain successfully matched target function information; The current power consumption requirement is generated according to the successfully matched target function information.
7. A power consumption control device for a vehicle-mounted controller, characterized in that: The device comprises: An acquisition module, used to acquire current status data of one or more MCU chips used by the vehicle controller; A demand determination module, configured to determine, for each of the MCU chips, a corresponding current power consumption demand according to the current state data; A mode determination module, configured to determine a target low power consumption mode from preset mode information according to the current power consumption requirement, wherein the preset mode information includes at least one low power consumption mode of the target chipset where the MCU chip is located and the power consumption requirement corresponding to each of the low power consumption modes, and the low power consumption modes of the target chipset include: an MCU chip mode and a power management chip mode, and the MCU chip mode and / or the power management chip mode included in different low power consumption modes are different; A control module is used to control the target chipset to operate in the target low power consumption mode.
8. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the power consumption control method of the vehicle-mounted controller as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the power consumption control method of the vehicle-mounted controller as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the power consumption control method of the vehicle-mounted controller as claimed in any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Chip, power supply state control method and equipment
CN120803236A