Method for reducing static power consumption of automobile, hardware wake-up circuit and storage medium

By designing a hardware wake-up circuit in the microcontroller unit, detecting the battery voltage and allowing the microcontroller unit to enter a deep sleep state, the problem of high static power consumption in traditional car machines is solved and the battery life is extended.

CN119472362APending Publication Date: 2025-02-18CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411221639.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In traditional car machines, the microcontroller unit cannot fully sleep when detecting the battery voltage, resulting in high static power consumption, which in turn shortens the battery life.

Method used

A hardware wake-up circuit is designed, including a battery detection circuit and a wake-up circuit. By detecting the battery voltage and sending an interrupt signal, the microcontroller unit enters a deep sleep state and reduces static power consumption.

Benefits of technology

By turning off the power supply power provided by the processor core, it prevents power loss from being too fast, reduces the static power consumption of the microcontroller unit, and extends the service life of the vehicle battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119472362A_ABST
    Figure CN119472362A_ABST
Patent Text Reader

Abstract

The application of the invention is a divisional application with the application number of 202211183051.3. The invention discloses a method for reducing static power consumption of an automobile, a hardware wake-up circuit and a storage medium, and the method comprises the steps: detecting the voltage of an automobile battery through a battery detection circuit; judging whether the voltage is lower than a set threshold value or not, and outputting a first judgment result; if the first judgment result is yes, sending a first interrupt signal to an external wake-up interrupt pin through the battery detection circuit; a first interrupt signal is transmitted to the interior of the micro-control unit through an external wake-up interrupt pin; judging whether the voltage acquired by the AD acquisition function of the micro-control unit is lower than a set threshold value or not, and outputting a second judgment result; if the second judgment result is yes, the power supply of the processor core is turned off by using the first interrupt signal, and the data of the micro-control unit is stored, so that the static power consumption of the automobile is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application with application number 202211183051.3, application date September 27, 2022, and invention name "Hard wake-up circuit and method for reducing automobile static power consumption, computer storage medium". Technical Field

[0002] The present application relates to a method for reducing static power consumption of an automobile, a hardware wake-up circuit and a storage medium, and belongs to the field of automobile electronic circuits. Background Art

[0003] With the continuous development of automobiles, the requirements for batteries are getting higher and higher. After the owner does not use the car for a long time, the battery will easily run out of power, causing the car to fail to start, causing great travel anxiety to the owner and shortening the battery life.

[0004] In the design of traditional car computers, the rated DC voltage of the battery is 14V, and the normal operating voltage is allowed to be 9V~16V. When the power supply voltage is 6V~18.5V, it is required to support ACC hard line and Power Key to wake up the host. At present, the AD acquisition function of the microcontroller unit (MCU) is generally used to detect the battery voltage to realize battery monitoring and management, and the battery status is judged based on the collected AD value to design power management.

[0005] In traditional car computers, the general state machine switching strategy of power management is as follows: when the power supply voltage is less than 6V, the system automatically shuts down; when 6V≤power supply voltage<8.5V, the system executes the pre-start process; when 9V<power supply voltage<16.5V, it starts normally; when the power supply voltage is greater than 18.5V, the system automatically shuts down. When the AD acquisition function of the MCU detects that the battery voltage is less than 6V, the system needs to enter the sleep state. At this time, because the MCU is always detecting the battery voltage, it cannot be completely dormant, which will cause the static power consumption of the MCU to be high, and it cannot enter the deep sleep state or even directly power off. At this time, the high static power consumption of the MCU will cause the battery to be consumed too quickly, which is easy to cause power loss, thereby shortening the battery life, and it is difficult to meet the static power consumption index requirements. Summary of the invention

[0006] In view of this, the present application provides a method for reducing static power consumption of an automobile, a hardware wake-up circuit and a storage medium, which can improve the problem of high static power consumption of an automobile.

[0007] The first objective of the present application is to provide a hardware wake-up circuit.

[0008] The second object of the present application is to provide a method for reducing static power consumption of an automobile.

[0009] The third object of the present application is to provide a method for reducing static power consumption of an automobile.

[0010] A fourth object of the present application is to provide a computer-readable storage medium.

[0011] The first object of this application can be achieved by adopting the following technical solutions:

[0012] A hardware wake-up circuit is applied to a microcontroller unit, the microcontroller unit includes an external wake-up interrupt pin and a power supply provided by a processor core, the hardware wake-up circuit includes a battery detection circuit and a wake-up circuit, the battery detection circuit is connected to the wake-up circuit, the wake-up circuit is connected to the external wake-up interrupt pin, and the power supply is connected to the battery detection circuit and the wake-up circuit;

[0013] The battery detection circuit is used to detect the voltage of the vehicle battery, and when the voltage is lower than a set threshold, send an interrupt signal to the external wake-up interrupt pin and send a low-level signal to the wake-up circuit;

[0014] The wake-up circuit is used to receive a low-level signal and use the low-level signal to invalidate the wake-up signal generated by itself.

[0015] Further, the wake-up circuit includes an input circuit, an isolation circuit and an output circuit connected in sequence;

[0016] The output circuit is connected to an external wake-up interrupt pin and a battery detection circuit, and the power supply is connected to an input circuit and an isolation circuit.

[0017] Furthermore, the input circuit is an AND gate circuit.

[0018] Furthermore, the isolation circuit is a PNP transistor.

[0019] Furthermore, the output circuit includes a bipolar transistor and a current limiting circuit, and the bipolar transistor includes a PNP transistor and an NPN transistor;

[0020] The collector of the PNP transistor is connected to the emitter of the PNP tube, the collector of the PNP tube is connected to the current limiting circuit, the base of the NPN tube is connected to the battery detection circuit, and the current limiting circuit is connected to the external wake-up interrupt pin.

[0021] The second object of the present application can be achieved by adopting the following technical solutions:

[0022] A method for reducing static power consumption of an automobile, the method comprising:

[0023] Detect the voltage of the vehicle battery through the battery detection circuit;

[0024] Determine whether the voltage is lower than a set threshold, and output a first determination result;

[0025] If the first judgment result is yes, an interrupt signal is sent to an external wake-up interrupt pin and a low-level signal is sent to a wake-up circuit through a battery detection circuit;

[0026] receiving a low-level signal through a wake-up circuit and using the low-level signal to disable the wake-up circuit generated by the wake-up circuit;

[0027] The interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin;

[0028] According to the voltage and interrupt signal collected by the AD collection function of the microcontroller unit, the microcontroller unit is put into a deep sleep state.

[0029] Furthermore, the voltage and interrupt signal collected by the AD collection function of the microcontroller unit are used to make the microcontroller unit enter a deep sleep state, which specifically includes:

[0030] Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result;

[0031] If the second determination result is yes, the interrupt signal is used to make the micro control unit enter a deep sleep state.

[0032] The third object of this application can be achieved by adopting the following technical solutions:

[0033] A method for reducing static power consumption of an automobile, the method comprising:

[0034] Detect the voltage of the vehicle battery through the battery detection circuit;

[0035] Determine whether the voltage is lower than a set threshold, and output a first determination result;

[0036] If the first judgment result is yes, a first interrupt signal is sent to an external wake-up interrupt pin through a battery detection circuit;

[0037] Transmitting the first interrupt signal to the micro control unit via the external wake-up interrupt pin;

[0038] Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result;

[0039] If the second judgment result is yes, the first interrupt signal is used to shut down the power supply of the processor core and save the data of the micro control unit.

[0040] Furthermore, after outputting the first judgment result, the method further includes:

[0041] If the first judgment result is no, a second interrupt signal is sent to an external wake-up interrupt pin through a battery detection circuit;

[0042] The second interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin, thereby turning on the power supply of the processor core;

[0043] When the voltage collected by the AD collection function of the microcontroller unit is greater than a set threshold, the microcontroller unit jumps to a corresponding working state according to the state machine switching strategy of the power management and the collected voltage.

[0044] The fourth object of this application can be achieved by adopting the following technical solutions:

[0045] A computer-readable storage medium stores a program, and when the program is executed by a processor, the method for reducing the static power consumption of an automobile is realized.

[0046] Compared with the prior art, the present application has the following beneficial effects:

[0047] The vehicle microcontroller supports external interrupt wake-up and the microcontroller processor core's own power supply. This application detects the voltage of the vehicle battery through a battery detection circuit; if the voltage is lower than the set threshold, the first interrupt signal is sent to the microcontroller through the battery detection circuit; if the voltage collected by the AD acquisition function of the microcontroller is lower than the set threshold, the first interrupt signal is used to turn off the processor core's own power supply and save the data of the microcontroller. In this way, after meeting the corresponding conditions mentioned above, by turning off the processor's own power supply, the processor core's own power supply can be prevented from running out of power too quickly, the processor's static power consumption can be reduced, thereby reducing the static power consumption of the vehicle, which is beneficial to extending the service life of the power supply. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0049] Figure 1 This is a circuit structure diagram of the wake-up circuit of Example 1 of the present application.

[0050] Figure 2 This is a circuit structure diagram of the battery detection circuit of Example 1 of the present application.

[0051] Figure 3This is a flow chart of a method for reducing static power consumption of an automobile according to Example 1 of the present application.

[0052] Figure 4 This is a flow chart of a method for reducing static power consumption of an automobile according to Example 1 of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0054] Embodiment 1:

[0055] In traditional car computer design, the rated voltage of the car computer battery (hereinafter referred to as the battery) is DC14V, and the normal operating voltage is allowed to be 9V~16V. When the power supply voltage is 6V~18.5V, it is required to support ACC hard line and Power Key to wake up the host. At present, the most direct monitoring and management of the battery is generally to use the AD acquisition function of the microcontroller unit to collect the battery voltage, and judge the battery status based on the collected AD value to design power management.

[0056] like Figure 1 and Figure 2 As shown, this embodiment provides a hardware wake-up circuit, which is applied to a microcontroller unit. The microcontroller unit includes an external wake-up interrupt pin and a power supply provided by a processor core. The hardware wake-up circuit includes a battery detection circuit and a wake-up circuit; wherein: the battery detection circuit is connected to the wake-up circuit, the wake-up circuit is connected to the external wake-up interrupt pin, and the power supply provided by the processor core is connected to the battery detection circuit and the wake-up circuit.

[0057] Specifically, the battery detection circuit is used to detect the voltage of the vehicle battery, and when the voltage is lower than the set threshold, it sends an interrupt signal to the external wake-up interrupt pin and sends a low-level signal to the wake-up circuit; the wake-up circuit is used to receive the low-level signal and use the low-level signal to invalidate the wake-up signal generated by itself.

[0058] Furthermore, the wake-up circuit includes an input circuit, an isolation circuit and an output circuit connected in sequence; wherein: the output circuit is connected to an external wake-up interrupt pin and a battery detection circuit, and the power supply of the processor core is connected to the input circuit and the isolation circuit.

[0059] Furthermore, the input circuit is an AND gate circuit.

[0060] In this embodiment, the external wake-up source is converted into a low-level effective input circuit, and the input circuit is designed through four diodes and designed as an AND gate circuit. The advantage of this design method is low cost and can be flexibly configured according to the number of external wake-up sources.

[0061] Furthermore, the isolation circuit is a PNP transistor.

[0062] In this embodiment, the input circuit is then isolated from the external wake-up source through a PNP transistor, thereby preventing the microcontroller from being damaged by interference from the external environment.

[0063] Furthermore, the output circuit includes a bipolar transistor and a current limiting circuit, and the bipolar transistor includes a PNP tube and an NPN tube; wherein: the collector of the PNP transistor is connected to the emitter of the PNP tube, the collector of the PNP tube is connected to the current limiting circuit, the base of the NPN tube is connected to the battery detection circuit, and the current limiting circuit is connected to the external wake-up interrupt pin.

[0064] In this embodiment, the power supply provided by the processor core is used, which can save costs.

[0065] In another embodiment, an independent power supply is used as the power supply.

[0066] like Figure 3 As shown, this embodiment also provides a method for reducing static power consumption of an automobile, the method specifically comprising:

[0067] Detect the voltage of the vehicle battery through the battery detection circuit;

[0068] Determine whether the voltage is lower than a set threshold, and output a first determination result;

[0069] If the first judgment result is yes, an interrupt signal is sent to an external wake-up interrupt pin and a low-level signal is sent to a wake-up circuit through a battery detection circuit;

[0070] receiving a low-level signal through a wake-up circuit and using the low-level signal to disable the wake-up circuit generated by the wake-up circuit;

[0071] The interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin;

[0072] According to the voltage and interrupt signal collected by the AD collection function of the microcontroller unit, the microcontroller unit is put into a deep sleep state.

[0073] Further, according to the voltage and interrupt signal collected by the AD collection function of the microcontroller unit, the microcontroller unit is put into a deep sleep state, specifically including:

[0074] Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result;

[0075] If the second determination result is yes, the interrupt signal is used to make the micro control unit enter a deep sleep state.

[0076] like Figure 4 As shown, this embodiment also provides another method for reducing the static power consumption of an automobile, which specifically includes:

[0077] Detect the voltage of the vehicle battery through the battery detection circuit;

[0078] Determine whether the voltage is lower than a set threshold, and output a first determination result;

[0079] If the first judgment result is yes, a first interrupt signal is sent to an external wake-up interrupt pin through a battery detection circuit;

[0080] Transmitting the first interrupt signal to the micro control unit via the external wake-up interrupt pin;

[0081] Determine whether the voltage collected by the AD collection function of the microcontroller unit is lower than a set threshold, and output a second judgment result;

[0082] If the second judgment result is yes, the first interrupt signal is used to shut down the power supply of the processor core and save the data of the micro control unit.

[0083] Furthermore, after outputting the first judgment result, the method further includes:

[0084] If the first judgment result is no, a second interrupt signal is sent to an external wake-up interrupt pin through a battery detection circuit;

[0085] The second interrupt signal is transmitted to the microcontroller unit through the external wake-up interrupt pin, thereby turning on the power supply of the processor core;

[0086] When the voltage collected by the AD collection function of the microcontroller unit is greater than a set threshold, the microcontroller unit jumps to a corresponding working state according to the state machine switching strategy of the power management and the collected voltage.

[0087] In this embodiment, according to the state machine switching strategy of the power management and the collected voltage, it jumps to the corresponding working state, specifically: when the power supply voltage is less than 6V, it automatically shuts down; 6V≤power supply voltage<8.5V, executes the pre-start process; 9V<power supply voltage<16.5V, starts normally; the power supply voltage is greater than 18.5V, it automatically shuts down; among which 6V is the set threshold in this embodiment.

[0088] Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium.

[0089] It should be noted that although the method operations of the above embodiments are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0090] Embodiment 2:

[0091] This embodiment provides a computer-readable storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the two methods for reducing static power consumption of a vehicle in the above-mentioned embodiment 1 are implemented.

[0092] It should be noted that the computer-readable storage medium of the present embodiment may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0093] In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device, or device. In this embodiment, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, device, or device. The computer program contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0094] The computer readable storage medium can be written in one or more programming languages ​​or a combination thereof to execute the computer program of the present embodiment, and the programming language includes an object-oriented programming language, such as Java, Python, C++, and also includes a conventional procedural programming language, such as C language or a similar programming language. The program can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0095] In summary, the present application can prevent the vehicle battery that supplies power to the micro control unit from depleting too quickly by designing a hardware wake-up circuit, thereby reducing the static power consumption of the micro control unit and achieving the purpose of extending the life of the vehicle battery.

[0096] The above is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and inventive concept of the present invention within the scope disclosed by the present invention, which shall fall within the protection scope of the present invention.

Claims

1. A method for reducing static power consumption of an automobile, characterized in that: The method comprises: Detect the voltage of the vehicle battery through the battery detection circuit; Determine whether the voltage is lower than a set threshold, and output a first determination result; If the first judgment result is yes, sending a first interrupt signal to an external wake-up interrupt pin through the battery detection circuit; Transmitting the first interrupt signal to the inside of the micro control unit through the external wake-up interrupt pin; Determine whether the voltage collected by the AD collection function of the micro control unit is lower than a set threshold, and output a second judgment result; If the second judgment result is yes, the first interrupt signal is used to shut down the power supply of the processor core and save the data of the micro control unit.

2. The method according to claim 1, characterized in that After outputting the first judgment result, the method further includes: If the first judgment result is no, sending a second interrupt signal to the external wake-up interrupt pin through the battery detection circuit; The second interrupt signal is transmitted to the micro control unit through the external wake-up interrupt pin, thereby turning on the power supply of the processor core; When the voltage collected by the AD collection function of the microcontroller unit is greater than a set threshold, the microcontroller unit jumps to a corresponding working state according to the state machine switching strategy of power management and the collected voltage.

3. A hardware wake-up circuit, applied to a microcontroller unit, the microcontroller unit comprising an external wake-up interrupt pin and a power supply provided by a processor core, characterized in that: The hardware wake-up circuit includes a battery detection circuit and a wake-up circuit, the battery detection circuit is connected to the wake-up circuit, the wake-up circuit is connected to an external wake-up interrupt pin, and the power supply is connected to the battery detection circuit and the wake-up circuit; The battery detection circuit is used to detect the voltage of the vehicle battery, and when the voltage is lower than a set threshold, send an interrupt signal to the external wake-up interrupt pin and send a low-level signal to the wake-up circuit; The wake-up circuit is used to receive a low-level signal and use the low-level signal to invalidate the wake-up signal generated by itself; When the hardware wake-up circuit is running, it is used to implement the method according to claim 1 or 2.

4. The hardware wake-up circuit according to claim 3, characterized in that: The wake-up circuit includes an input circuit, an isolation circuit and an output circuit connected in sequence; Wherein, the output circuit is connected to the external wake-up interrupt pin and the battery detection circuit, and the power supply is connected to the input circuit and the isolation circuit.

5. The hardware wake-up circuit according to claim 4, characterized in that: The input circuit is an AND gate circuit.

6. The hardware wake-up circuit according to claim 4, characterized in that: The isolation circuit is a PNP transistor.

7. The hardware wake-up circuit according to claim 6, characterized in that: The output circuit includes a bipolar transistor and a current limiting circuit, and the bipolar transistor includes a PNP transistor and an NPN transistor; Among them, the collector of the PNP transistor is connected to the emitter of the PNP tube, the collector of the PNP tube is connected to the current limiting circuit, the base of the NPN tube is connected to the battery detection circuit, and the current limiting circuit is connected to the external wake-up interrupt pin.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is caused to execute the method according to claim 1 or 2.