Power supply control circuit, method, device and computer storage medium
By cooperating with the power supply controller and voltage conversion unit, the initial voltage conversion and power supply status control are realized, and the power supply is discharged when the power supply ends. This solves the problem that the initial power supply status is not considered in traditional power supply control, and improves the safety and effectiveness of power supply control.
Patent Information
- Application Number
- CN202610722079.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-22
- Publication Date
- 2026-08-25
AI Technical Summary
Traditional power supply control methods do not take into account the initial power supply state, which may lead to leakage risks and safety hazards, and the power supply control effect is not good.
By connecting the power supply controller, main power supply and voltage conversion unit, the initial voltage is converted to the target voltage. Combined with the discharge control unit triggering the discharge command at the end of the power supply, the power supply terminals of each module to be powered are discharged.
Without increasing control costs, the effectiveness of power supply control is improved, avoiding leakage risks and safety hazards caused by not considering the initial power supply state.
Smart Images

Figure CN122639632A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power supply control technology, and in particular to a power supply control circuit, method, device and computer storage medium. Background Technology
[0002] With the continuous development of electronic devices, users have also put forward higher requirements for the power supply control methods of electronic devices.
[0003] Traditional power supply control methods utilize multiple input / output ports on a power controller to individually control the power supply to different modules. This approach has limitations. The entire power supply control focuses solely on the modules being powered, neglecting to consider the initial power supply state. (If a weak leakage path exists between adjacent modules, or if a module is re-powered within a very short time, residual voltage may trigger uncertain logic states or inrush currents, posing a risk of leakage and safety hazards.) In short, this method suffers from ineffective power supply control because it doesn't account for the initial power supply state.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this application is to provide a power supply control circuit, method, device, and computer storage medium, aiming to solve the technical problem of poor power supply control performance.
[0006] To achieve the above objectives, this application provides a power supply control circuit, which is connected to the power supply terminals of multiple modules to be powered. The power supply control circuit includes: A power supply controller and a main power supply, wherein the main power supply is used to provide the initial voltage; A voltage conversion unit is provided, wherein a first terminal of the voltage conversion unit is connected to the main power supply, a second terminal of the voltage conversion unit is connected to the power supply terminal of each of the modules to be powered, and a third terminal of the voltage conversion unit is connected to the first terminal of the power supply controller. The voltage conversion unit is used to convert the initial voltage to a target voltage under the control of the power supply control command of the power supply controller, so as to control each of the modules to be powered to be in a power supply state based on the target voltage. A discharge control unit is provided, wherein a first terminal of the discharge control unit is connected to a first terminal of the power supply controller, and a second terminal of the discharge control unit is connected to a power supply terminal of each of the modules to be powered. The discharge control unit is used to discharge the power supply terminal of each of the modules to be powered under the control of the discharge control command of the power supply controller, wherein the discharge control command is triggered when the module to be powered ends the power supply state.
[0007] In one embodiment, the voltage conversion unit includes: Multiple voltage converters are provided, with the first terminal of each voltage converter connected to the main power supply, the second terminal of each voltage converter connected to the power supply terminal of the module to be powered, and the third terminal of each voltage converter connected to the first terminal of the power supply controller.
[0008] In one embodiment, the third terminal of the voltage converter is the enable control terminal of the voltage converter; or, the voltage conversion unit further includes: Multiple power supply switches are provided, with one power supply switch connected between the main power supply and a first terminal of the voltage converter, or a power supply switch connected between the power supply terminal of a module to be powered and a second terminal of the voltage converter, and the control terminal of each power supply switch serving as a third terminal of the voltage converter.
[0009] In one embodiment, the discharge control unit includes: A level inverter, wherein the first terminal of the level inverter is connected to the first terminal of the power supply controller; Multiple discharge units are provided, with the first end of each discharge unit connected to the power supply terminal of the module to be powered, the second end of each discharge unit grounded, and the third end of each discharge unit connected to the second end of the level inverter.
[0010] In one embodiment, each of the electron-discharging units includes: A discharge resistor, the first end of which is connected to the power supply terminal of the module to be powered. A discharge switch transistor is provided, with its first terminal connected to the second terminal of the discharge resistor, the second terminal of the discharge switch transistor being grounded, and its third terminal connected to the second terminal of the level inverter.
[0011] In one embodiment, the power supply control circuit includes: Multiple interconnecting switching transistors are provided, with one interconnecting switching transistor connected between the power supply terminals of each pair of modules to be powered. The control terminal of each interconnecting switching transistor is connected to the second terminal of the power supply controller. The power supply terminals of the pair of modules to be powered can be the power supply terminals of any two modules to be powered.
[0012] Furthermore, to achieve the above objectives, this application also provides a power supply control method, which is applied to the aforementioned power supply control circuit. The steps of the power supply control method include: In response to a power supply control command, the voltage conversion unit is controlled to convert the initial voltage to obtain a target voltage, wherein the target voltage is used to control each module to be powered to be in a power supply state; When the power supply to the module to be powered ends, the discharge control unit is controlled to discharge the module to be powered according to the discharge control command.
[0013] In one embodiment, before the step of controlling the discharge control unit to discharge the module to be powered according to the discharge control command, the power supply control method further includes: In response to a discharge control command, the initial discharge voltage of each of the modules to be powered is acquired, and a complementary discharge command for complementary discharge is determined based on the initial discharge voltage, wherein the complementary discharge command includes a command for complementary discharge of two target modules to be powered. The power supply control circuit controls the connected switching transistor to perform complementary discharge on the target module to be powered according to the complementary discharge command, and after the complementary discharge is completed, the step of controlling the discharge control unit to discharge the module to be powered according to the discharge control command is executed.
[0014] In addition, to achieve the above objectives, this application also provides a power supply control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the power supply control method described above.
[0015] In addition, to achieve the above objectives, this application also provides a computer storage medium storing a power supply control program, wherein when the power supply control program is executed by a processor, it implements the steps of the power supply control method described above.
[0016] This application provides a power supply control circuit, which is connected to the power supply terminals of multiple modules to be powered. The circuit includes a power supply controller and a main power supply, the main power supply providing an initial voltage; a voltage conversion unit, with its first terminal connected to the main power supply, its second terminal connected to the power supply terminals of each module to be powered, and its third terminal connected to the first terminal of the power supply controller. The voltage conversion unit, under the control of the power supply controller's power supply control commands, converts the initial voltage to a target voltage, thereby controlling each module to be powered to be in a powered state based on the target voltage; and a discharge control unit, with its first terminal connected to the first terminal of the power supply controller, and its second terminal connected to the power supply terminals of each module to be powered. The power supply terminals of the modules to be powered are connected. A discharge control unit, under the control of the power supply controller's discharge control command, discharges the power supply terminals of each module. The discharge control command is triggered when the module ends its power supply state. This power supply control method, through the connection between the power supply controller, main power supply, and voltage conversion unit, converts the initial voltage to a target voltage under the control of the power supply controller's power supply control command. Based on the target voltage, each module is then controlled to be in a power supply state. Furthermore, a discharge control unit is connected to the power supply controller and the power supply terminals of the modules to be powered, and discharges the power supply terminals of each module under the control of the power supply controller's discharge control command. The discharge control command is triggered when the module ends its power supply state, thus achieving discharge after power supply, to avoid the entire power supply control focusing solely on the power supply control of the modules to be powered, without considering the initial power supply state. In other words, this power supply control method connects the discharge control unit to the power supply controller and the power supply terminal of the module to be powered. When the module to be powered ends its power supply state, a discharge control command is triggered, and then the power supply terminal of each module to be powered is discharged based on the discharge control command to achieve the purpose of protecting the subsequent power supply control effect. Furthermore, the entire power supply controller only needs to use its first terminal to connect to the voltage conversion unit and the discharge control unit respectively, and realize power supply and discharge control based on a single port, thereby improving the power supply control effect without increasing the control cost. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the first embodiment of the power supply control circuit of this application; Figure 2 This is another schematic diagram of the power supply control circuit of this application; Figure 3 This is a circuit design schematic diagram of the power supply control circuit of this application; Figure 4 This is another circuit design schematic diagram of the power supply control circuit of this application; Figure 5 This is a schematic flowchart of the first embodiment of the power supply control method of this application; Figure 6 This is a schematic diagram of the overall control flow of the power supply control method of this application; Figure 7 This is a schematic diagram of the power supply controller module of this application; Figure 8 This is a schematic diagram of the power supply control equipment in this application.
[0018] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings.
[0019] Explanation of icon numbers: 1001 Processing device; 1002 Read-only memory; 1003 Storage device; 1004 Random access memory; 1005 Bus; 1006 Input / output interface; 1007 Input device; 1008 Output device; 1009 Communication device; 10 Power supply controller; 20 Main power supply; 30 Voltage conversion unit; 40 Discharge control unit; 100 Module to be powered; 110 Module power supply; 41 Logic subunit; 42 Discharge unit; U1 Level inverter; Q Discharge switch transistor; R Discharge resistor; G Connection switch transistor. Detailed Implementation
[0020] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0021] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0022] For power supply control that requires powering multiple modules, such as in-vehicle camera systems that use multiple cameras, each requiring different voltage levels simultaneously, the power supply controller needs multiple GPIOs (General Purpose Input / Output) to control the entire in-vehicle camera function. Furthermore, common power supply control methods only focus on power supply control and do not handle the next power supply or residual energy. This means the entire power supply process cannot guarantee that the camera power will quickly drop to zero after being turned off, posing a risk of leakage.
[0023] Therefore, based on the shortcomings of the above power supply control methods, the power supply control circuit of this application is proposed. The solution of this application embodiment is as follows: through the connection relationship between the power supply controller, the main power supply, and the voltage conversion unit, under the control of the power supply controller's power supply control command, the initial voltage is converted to obtain the target voltage. Then, based on the target voltage, each module to be powered is controlled to be in a power supply state. Furthermore, a discharge control unit is connected to the power supply controller and the power supply terminals of the modules to be powered, thereby realizing the discharge of the power supply terminals of each module to be powered under the control of the power supply controller's discharge control command. The discharge control command is triggered when the module to be powered ends its power supply state, realizing discharge after power supply, thus avoiding the problem that the entire power supply control only focuses on the power supply control of the modules to be powered, without considering the initial power supply state. This power supply control method connects the discharge control unit to the power supply controller and the power supply terminal of the module to be powered. When the module to be powered ends its power supply state, a discharge control command is triggered. Then, based on the discharge control command, the power supply terminal of each module to be powered is discharged to achieve the purpose of protecting the subsequent power supply control effect. Furthermore, the entire power supply controller only needs to use the first terminal of the power supply controller to connect to the voltage conversion unit and the discharge control unit respectively, realizing power supply and discharge control based on a single port, thereby improving the power supply control effect without increasing the control cost.
[0024] It should be noted that the main component in this embodiment can be a computing server with data processing, network communication, and program execution functions, such as the power supply control circuit of a vehicle-mounted camera, the power supply control circuit of a display screen, or the power supply control circuit of a refrigerator or washing machine. The following description uses the power supply control circuit of a vehicle-mounted camera as an example to illustrate this embodiment and the subsequent embodiments.
[0025] Based on this, the embodiments of this application provide a power supply control circuit, referring to... Figure 1 , Figure 1 This is a schematic diagram of the first embodiment of the power supply control circuit of this application.
[0026] Reference Figure 1 This application provides a power supply control circuit, which is connected to the power supply terminals of multiple modules 100 to be powered. The power supply control circuit includes: The power supply controller 10 and the main power supply 20 are used to provide the initial voltage; The voltage conversion unit 30 has a first terminal connected to the main power supply 20, a second terminal connected to the power supply terminal of each module 100 to be powered, and a third terminal connected to the first terminal of the power supply controller 10. The voltage conversion unit 30 is used to convert the initial voltage to the target voltage under the control of the power supply control command of the power supply controller 10, so as to control each module 100 to be powered to be in the power supply state based on the target voltage. The discharge control unit 40 has its first terminal connected to the first terminal of the power supply controller 10 and its second terminal connected to the power supply terminal of each module 100 to be powered. The discharge control unit 40 is used to discharge the power supply terminal of each module 100 to be powered under the control of the discharge control command of the power supply controller 10. The discharge control command is triggered when the module 100 to be powered ends the power supply state.
[0027] In this embodiment, the power supply control circuit includes a power supply controller 10, a main power supply 20, and a voltage conversion unit 30 for power supply conversion for different modules 100 to be powered. Under the control of the power supply control command of the power supply controller 10, the initial voltage is converted to a target voltage, and power is supplied to the module 100 to be powered, so that the module 100 is in a powered operating state. For example, the module 100 to be powered can be the power supply for a processing chip in a camera, the power supply for a control chip, etc. The voltage conversion unit 30 can be a common DC-DC converter, such as an LM series or AH series converter chip. For example, it provides 5V to the processing chip and 3V to the control chip. The power supply control command refers to switching the voltage of the voltage conversion unit 30 to specifically supply power to the module 100 to be powered. The target voltage is the voltage at which the module 100 to be powered operates. Furthermore, after power supply control is completed, if a module needs to be in standby mode, the common control method is to directly cut off the power. However, there are weak leakage paths between adjacent modules, or if a module is powered on again in a very short time, the residual voltage may cause uncertain logic states or inrush currents, posing a risk of leakage and safety hazards. Therefore, the entire power supply control circuit also includes a discharge control unit 40, which is connected to the power supply controller 10 and the power supply terminals of the modules 100 to be powered. If the modules 100 to be powered need to be in standby mode, a discharge control command will be triggered when the power supply ends. Based on the discharge control command, the power supply terminals of each module 100 will be discharged to protect them. The discharge control command is the command to control the discharge control unit 40 to discharge the power supply terminals of each module 100. This allows the discharge control unit 40 to be used for discharge control after each power supply operation to eliminate residual voltage and improve the power supply control effect. Furthermore, the control terminals for both power supply control and discharge control are located at the first end of the power supply controller 10, thereby enabling power supply and discharge control to be implemented based on a single control port, thus ensuring the cost of the entire power supply and discharge control.
[0028] It is worth noting that when there are multiple modules 100 to be powered, the first terminal of a power supply controller 10 can be used for simultaneous power supply and discharge control, which greatly reduces the control cost. Alternatively, a single port can be used to send a series of high and low levels to control multiple modules 100 to be powered. For example, a selector can be set between the power supply terminal of the module 100 to be powered and the main power supply 20, and the power supply can be controlled through the selector. For example, the selector can be a one-to-many or many-to-many selector. The control terminal of the selector is connected to the first terminal of the power supply controller 10, so as to supply power to the module 100 to be powered in a targeted manner. Of course, the discharge control unit 40 can also be set up in the same way to achieve targeted discharge control.
[0029] In one embodiment, reference is made to Figure 2 , Figure 2 This is another schematic diagram of the power supply control circuit of this application. The voltage conversion unit 30 includes: Multiple voltage converters are provided, with the first terminal of each voltage converter connected to the main power supply 20, the second terminal of each voltage converter connected to the power supply terminal of a module 100 to be powered, and the third terminal of each voltage converter connected to the first terminal of the power supply controller 10.
[0030] In this embodiment, the voltage conversion unit 30 can use multiple voltage converters, such as a 12V to 5V converter, or a core power supply such as a digital power supply or an analog power supply. That is, each voltage converter can be adaptively selected according to actual needs. Furthermore, the power supply terminals of multiple modules 100 to be powered can be connected to the same voltage converter according to usage requirements, thereby achieving targeted power supply to the modules 100 to be powered.
[0031] Furthermore, the third terminal of the voltage converter is the enable control terminal of the voltage converter, or the voltage conversion unit 30 also includes: Multiple power supply switches are provided. A power supply switch is connected between the main power supply 20 and the first terminal of a voltage converter, or a power supply switch is connected between the power supply terminal of a module 100 to be powered and the second terminal of a voltage converter. The control terminal of each power supply switch serves as the third terminal of the voltage converter.
[0032] In this embodiment, the power supply control of the voltage converter can be achieved by directly operating the enable control terminal of the voltage converter. When the enable control terminal is high, the voltage converter begins voltage conversion to provide the converted voltage to the power supply terminal of the module 100 to be powered. In another embodiment, in addition to enabling the voltage converter, the entire voltage supply circuit can also be controlled to switch on and off. That is, the voltage converter continues to convert voltage, and power supply control is achieved by switching the path between the main power supply 20 and the module 100 to be powered. Other control principles are also possible, which will not be described in detail here.
[0033] In this embodiment, a power supply control circuit is provided. This circuit is connected to the power supply terminals of multiple modules to be powered, including a power supply controller and a main power supply, the main power supply being used to provide an initial voltage; a voltage conversion unit, the first terminal of which is connected to the main power supply, the second terminal of which is connected to the power supply terminals of each module to be powered, and the third terminal of which is connected to the first terminal of the power supply controller. The voltage conversion unit is used to convert the initial voltage to a target voltage under the control of the power supply controller's power supply control command, so as to control each module to be powered to be in a power supply state based on the target voltage; and a discharge control unit, the first terminal of which is connected to the first terminal of the power supply controller, and the second terminal of which is connected to the power supply terminals of each module to be powered. The discharge control unit is used to discharge the power supply terminals of each module to be powered under the control of the power supply controller's discharge control command, wherein the discharge control command is triggered when the module to be powered ends its power supply state. This power supply control method, through the connection relationship between the power supply controller, the main power supply, and the voltage conversion unit, controls the initial voltage under the control of the power supply controller's power supply control command. The target voltage is obtained through conversion, and then each module to be powered is controlled to be in a powered state based on the target voltage. Furthermore, a discharge control unit is connected to the power supply controller and the power supply terminals of the modules to be powered, so that the power supply terminals of each module to be powered are discharged under the control of the discharge control command of the power supply controller. That is, the discharge control command is triggered when the module to be powered ends its power supply state, so that the power supply control is performed after power supply, thus avoiding the problem that the power supply control only focuses on the power supply control of the modules to be powered and does not consider the initial power supply state. In other words, this power supply control method connects the discharge control unit to the power supply controller and the power supply terminals of the modules to be powered, and triggers the discharge control command when the module to be powered ends its power supply state, so as to control the power supply terminals of each module to be powered to discharge based on the discharge control command, thereby achieving the purpose of protecting the subsequent power supply control effect. Furthermore, the entire power supply controller only needs to connect the first terminal of the power supply controller to the voltage conversion unit and the discharge control unit respectively, and realizes power supply and discharge control based on a single port, thereby improving the power supply control effect without increasing the control cost.
[0034] Furthermore, based on the first embodiment of this application described above, a second embodiment of the power supply control circuit of this application is proposed. In this embodiment, reference is made to... Figure 3 , Figure 3 This is a circuit design schematic diagram of the power supply control circuit of this application. The discharge control unit 40 includes: Level inverter U1, the first terminal of level inverter U1 is connected to the first terminal of power supply controller 10; Multiple discharge units 42, the first end of each discharge unit 42 is connected to the power supply terminal of a module 100 to be powered, the second end of each discharge unit 42 is grounded, and the third end of each discharge unit 42 is connected to the second end of the level inverter U1.
[0035] In this embodiment, the discharge control unit 40 includes a level inverter U1 and a discharge unit 42. The level inverter U1 can be used to invert the control signal, thereby controlling the discharge unit 42 to discharge. Since both discharge control and power supply control are implemented using the control port of the power supply controller 10, the level inverter U1 can be used to invert the output signal, and the discharge unit 42 can be controlled to discharge based on the inverted level. Because all discharge units 42 are connected together, the power supply terminals of the module 100 connected to the entire power supply control circuit discharge synchronously, ensuring the intelligence of the entire discharge control. In other words, the entire discharge process will not fail due to control signal errors, as all discharge units 42 discharge simultaneously, ensuring discharge accuracy and improving the effectiveness of the next power supply control.
[0036] In another embodiment, the level inverter U1 can also be placed between the voltage conversion unit 30 and the first terminal of the power supply controller 10, that is, it is only necessary to ensure that the two signals are different. Furthermore, if targeted discharge control is required, the output signal of the first terminal of the power supply controller 10 can be defined. For example, the first level can be defined as the level of power supply or discharge control, and the rest are signals for controlling the selector. For example, 1000 means that 1 indicates power supply, and 000 means that the selector control signal is 000, so the selector conducts the input (main power supply 20) and the first output port, thereby supplying power to the power terminal of the module 100 to be powered at the first output port; 0000 means that 0 indicates discharge, and 000 means that the selector control signal is 000, so the selector conducts the first discharge unit 42, thereby discharging the power terminal of the module 100 to be powered corresponding to the discharge unit 42, so as to achieve efficient power supply and discharge control.
[0037] Furthermore, each electron-discharging unit 42 includes: The discharge resistor R is connected at its first end to the power supply terminal of the module 100 to be powered. The discharge switch Q is connected to the second terminal of the discharge resistor R, the second terminal of the discharge switch Q is grounded, and the third terminal of the discharge switch Q is connected to the second terminal of the level inverter U1.
[0038] In this embodiment, each discharge unit 42 is composed of at least one low-resistance discharge resistor R and a discharge switch Q connected in series, used to dissipate the power supply terminal of the module 100 to be powered after it is turned off. For example, the discharge switch Q can be an N-type switch, with its first terminal connected to the second terminal of the discharge resistor R, its second terminal grounded, and its third terminal connected to the second terminal of the level inverter U1. When the discharge unit 42 needs to perform discharge control, it controls the discharge switch Q to conduct, thereby forming a discharge circuit from the power supply terminal of the module 100 to the discharge resistor R to the discharge switch Q to ground, thus discharging the module 100. Alternatively, other discharge control methods can be used, such as directly connecting the discharge switch Q to a charging capacitor to charge the remaining power to the capacitor for subsequent use, ensuring efficient power utilization.
[0039] In another embodiment, reference Figure 4 , Figure 4 This is another circuit design schematic diagram of the power supply control circuit of this application. The power supply control circuit includes: Multiple interconnecting switches G are provided, with one interconnecting switch G connected between the power supply terminals of each pair of modules to be powered. The control terminal of the interconnecting switch G is connected to the second terminal of the power supply controller 10. The power supply terminals of the pair of modules to be powered can be the power supply terminals of any two modules 100 to be powered.
[0040] In this embodiment, the power supply control circuit includes multiple connected switching transistors G, that is, one connected switching transistor G is set between every two power supply modules 100, thereby connecting the power supply terminals of two power supply modules 100 to achieve complementary power supply, which greatly improves the efficiency of discharge control. Of course, the power supply terminals of two or more power supply modules 100 can also be connected to achieve residual voltage complementarity among the power supply terminals of multiple power supply modules 100. For example, if the power supply terminals of three power supply modules 110 are 1, 2, and -3 respectively, the power supply terminals of the three power supply modules 110 can be directly connected to achieve rapid complementary discharge based on the power supply characteristics of the power supply modules 110.
[0041] Furthermore, based on the first and / or second embodiments of this application described above, a first embodiment of the power supply control method of this application is proposed. In this embodiment, reference is made to... Figure 5 , Figure 5 This is a flowchart illustrating the first embodiment of the power supply control method of this application. The power supply control method is applied to the aforementioned power supply control circuit, and the steps of the power supply control method include: Step S10: In response to the power supply control command, the voltage conversion unit is controlled to convert the initial voltage to obtain the target voltage, wherein the target voltage is used to control each module to be powered to be in the power supply state; Step S20: When the power supply to the module to be powered ends, the discharge control unit is controlled to discharge the module to be powered according to the discharge control command.
[0042] In this embodiment, when power supply control is required, a power supply control command is generated based on user-issued instructions or predefined trigger conditions. The voltage conversion unit is then controlled to convert the initial voltage to a target voltage according to the power supply control command. The target voltage is used to control each module to be powered to be in a power-on state. The power supply control command refers to switching the voltage of the voltage conversion unit to specifically supply power to the modules to be powered. The target voltage is the voltage used to power the modules to be powered, thus achieving power supply control for the modules to be powered. Furthermore, after power supply control is completed, the modules to be powered end their power-on state, which requires discharge control to ensure the effectiveness of the next power supply. At this time, the discharge control unit is controlled to discharge the modules to be powered according to the discharge control command. The discharge control command is the command to control the discharge control unit to discharge the power supply terminals of each module to be powered. Thus, the discharge control unit 40 can be used for discharge control after each power supply drive to eliminate residual voltage and improve the power supply control effect. For example, refer to... Figure 6 , Figure 6 This is a schematic diagram of the overall control flow of the power supply control method of this application. Taking an in-vehicle camera as an example, when the in-vehicle camera module needs to work normally, the power supply controller outputs a high level through the GPIO port to the enable pin of the voltage conversion unit. The voltage conversion unit starts to work normally, converting the voltage level of the main power supply into different voltage levels required by the camera module (module power supply 110) according to the actual circuit needs. At this time, the camera works normally. When the in-vehicle camera module does not need to work, the power supply controller outputs a low level through the GPIO port to the enable pin of the voltage conversion unit. The voltage conversion unit stops working and no longer provides power to the different voltage levels required by the camera module (module power supply 110). However, there is still residual voltage on each module power supply at this time. Therefore, when the GPIO port outputs a low level, the enable terminal of the module power supply is low, the input terminal of the level inverter (i.e., logic sub-unit 41) is low, and the output terminal is high. That is, the gate of the discharge switch transistor Q in the discharge unit is high. At the same time, since the source of the discharge switch transistor Q is grounded, the gate-source voltage VGS of the discharge switch transistor Q is greater than the turn-on voltage VGS(th). Therefore, when the discharge switch transistor Q is turned on, the module power supply is grounded through the discharge resistor, and its residual voltage is quickly consumed to complete the discharge protection, thereby ensuring the module's safety and control effect during the next power supply or standby.
[0043] In one embodiment, before the step of controlling the discharge control unit to discharge the module to be powered according to the discharge control command, the power supply control method further includes: Step S201: In response to the discharge control command, the initial discharge voltage of each module to be powered is obtained, and a complementary discharge command for complementary discharge is determined based on the initial discharge voltage. The complementary discharge command includes a command to perform complementary discharge on two target modules to be powered. Step S202: Based on the complementary discharge command, control the connected switch in the power supply control circuit to perform complementary discharge on the target module to be powered, and after the complementary discharge is completed, execute the step of controlling the discharge control unit to discharge the module to be powered based on the discharge control command.
[0044] In this embodiment, besides controlling the discharge of the modules to be powered based on resistance, residual energy can also be stored, for example, by directly using a rechargeable battery or capacitor to store energy for use by low-power devices in the next operation or during standby. Alternatively, one approach is to utilize the different voltage requirements of each module to be powered, performing complementary discharge based on real-time data acquisition or a user-defined initial discharge voltage for each module. For example, if module A is powered by 1V and -1V respectively, the two residual charges of module A can be combined to ensure efficient energy utilization and rapid discharge. Furthermore, complementary discharge commands can be determined based on the initial discharge voltage. These commands include instructions to perform complementary discharge on two target modules to be powered, or even more. The initial discharge voltage refers to the voltage value required for discharge, and the target modules to be powered refer to at least two modules capable of complementary discharge. Furthermore, based on the complementary discharge command, the connected switching transistor in the power supply control circuit can be controlled to perform complementary discharge on the target module to be powered. After the complementary discharge is completed, the discharge control unit is controlled to discharge the module to be powered according to the discharge control command to ensure efficient energy utilization. Of course, complete complementarity is not necessary; that is, after the complementary discharge, a discharge resistor can be used for further dissipation to greatly improve the discharge efficiency through complementary discharge.
[0045] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the power supply control method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0046] This application also provides a power supply controller, which is connected to a voltage conversion unit and a discharge control unit, as shown in the reference. Figure 7 The power supply controller includes: The power supply control module is used to control the voltage conversion unit to convert the initial voltage to obtain the target voltage in response to the power supply control command. The target voltage is used to control each module to be powered to be in the power supply state. The discharge control module is used to control the discharge control unit to discharge the module to be powered according to the discharge control command when the module to be powered ends the power supply state.
[0047] The controller provided in this application employs the power supply control method described in the above embodiments, aiming to solve the technical problem of poor power supply control performance. Compared with the prior art, the beneficial effects of the controller provided in this application are the same as those of the power supply control method provided in the above embodiments, and other technical features of the controller are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0048] This application provides a power supply control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the power supply control method in the above embodiment 1.
[0049] like Figure 8 The diagram illustrates a structural schematic of a power supply control device suitable for implementing embodiments of this application. The power supply control device in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 8 The power supply control device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0050] like Figure 8As shown, the power supply control device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the power supply control device. The processing unit 1001, the ROM 1002, and the RAM 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the power supply control equipment to communicate wirelessly or wiredly with other power supply control equipment to exchange data. Although power supply control equipment with various systems is shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0051] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0052] The power supply control device provided in this application employs the power supply control method described in the above embodiments, aiming to solve the technical problem of poor power supply control performance. Compared with the prior art, the beneficial effects of the power supply control device provided in this application are the same as those of the power supply control method provided in the above embodiments, and other technical features of the power supply control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0053] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0054] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0055] This application provides a computer storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the power supply control method in the above embodiments.
[0056] The computer storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, and any combination thereof. More specific examples of computer storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, and any combination thereof. In this embodiment, the computer storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), and any combination thereof.
[0057] The aforementioned computer storage medium may be included in the power supply control equipment; or it may exist independently and not be assembled into the power supply control equipment.
[0058] The aforementioned computer storage medium carries one or more programs, which, when executed by the power supply control device, cause the power supply control device to perform the following: In response to the power supply control command, the voltage conversion unit is controlled to convert the initial voltage to obtain the target voltage, wherein the target voltage is used to control each module to be powered to be in the power supply state; When the module to be powered is in a powered state, the discharge control unit is controlled to discharge the module to be powered according to the discharge control command.
[0059] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via 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., via the Internet using an Internet service provider).
[0060] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation that may be implemented in systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0061] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0062] The computer storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the above-described power supply control method, aiming to solve the technical problem of poor power supply control performance. Compared with the prior art, the beneficial effects of the computer storage medium provided in this application are the same as those of the power supply control method provided in the above embodiments, and will not be repeated here.
[0063] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the power supply control method described above.
[0064] The computer program product provided in this application aims to solve the technical problem of poor power supply control performance. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the power supply control method provided in the above embodiments, and will not be repeated here.
[0065] The above are only some embodiments of this application and do not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A power supply control circuit, characterized in that, The power supply control circuit is connected to the power supply terminals of multiple modules to be powered. The power supply control circuit includes: A power supply controller and a main power supply, wherein the main power supply is used to provide the initial voltage; A voltage conversion unit is provided, wherein a first terminal of the voltage conversion unit is connected to the main power supply, a second terminal of the voltage conversion unit is connected to the power supply terminal of each of the modules to be powered, and a third terminal of the voltage conversion unit is connected to the first terminal of the power supply controller. The voltage conversion unit is used to convert the initial voltage to a target voltage under the control of the power supply control command of the power supply controller, so as to control each of the modules to be powered to be in a power supply state based on the target voltage. A discharge control unit is provided, wherein a first terminal of the discharge control unit is connected to a first terminal of the power supply controller, and a second terminal of the discharge control unit is connected to a power supply terminal of each of the modules to be powered. The discharge control unit is used to discharge the power supply terminal of each of the modules to be powered under the control of the discharge control command of the power supply controller, wherein the discharge control command is triggered when the module to be powered ends the power supply state.
2. The power supply control circuit as described in claim 1, characterized in that, The voltage conversion unit includes: Multiple voltage converters are provided, with the first terminal of each voltage converter connected to the main power supply, the second terminal of each voltage converter connected to the power supply terminal of the module to be powered, and the third terminal of each voltage converter connected to the first terminal of the power supply controller.
3. The power supply control circuit as described in claim 2, characterized in that, The third terminal of the voltage converter is the enable control terminal of the voltage converter, or the voltage conversion unit further includes: Multiple power supply switches are provided, with one power supply switch connected between the main power supply and a first terminal of the voltage converter, or a power supply switch connected between the power supply terminal of a module to be powered and a second terminal of the voltage converter, and the control terminal of each power supply switch serving as a third terminal of the voltage converter.
4. The power supply control circuit as described in claim 1, characterized in that, The discharge control unit includes: A level inverter, wherein the first terminal of the level inverter is connected to the first terminal of the power supply controller; Multiple discharge units are provided, with the first end of each discharge unit connected to the power supply terminal of the module to be powered, the second end of each discharge unit grounded, and the third end of each discharge unit connected to the second end of the level inverter.
5. The power supply control circuit as described in claim 4, characterized in that, Each of the electron-discharging units includes: A discharge resistor, the first end of which is connected to the power supply terminal of the module to be powered. A discharge switch transistor is provided, with its first terminal connected to the second terminal of the discharge resistor, the second terminal of the discharge switch transistor being grounded, and its third terminal connected to the second terminal of the level inverter.
6. The power supply control circuit as described in any one of claims 1 to 5, characterized in that, The power supply control circuit includes: Multiple interconnecting switching transistors are provided, with one interconnecting switching transistor connected between the power supply terminals of each pair of modules to be powered. The control terminal of each interconnecting switching transistor is connected to the second terminal of the power supply controller. The power supply terminals of the pair of modules to be powered can be the power supply terminals of any two modules to be powered.
7. A power supply control method, characterized in that, The power supply control method is applied to the power supply control circuit as described in any one of claims 1 to 6, wherein the steps of the power supply control method include: In response to a power supply control command, the voltage conversion unit is controlled to convert the initial voltage to obtain a target voltage, wherein the target voltage is used to control each module to be powered to be in a power supply state; When the power supply to the module to be powered ends, the discharge control unit is controlled to discharge the module to be powered according to the discharge control command.
8. The power supply control method as described in claim 7, characterized in that, Before the step of controlling the discharge control unit to discharge the module to be powered according to the discharge control command, the power supply control method further includes: In response to a discharge control command, the initial discharge voltage of each of the modules to be powered is acquired, and a complementary discharge command for complementary discharge is determined based on the initial discharge voltage, wherein the complementary discharge command includes a command for complementary discharge of two target modules to be powered. The power supply control circuit controls the connected switching transistor to perform complementary discharge on the target module to be powered according to the complementary discharge command, and after the complementary discharge is completed, the step of controlling the discharge control unit to discharge the module to be powered according to the discharge control command is executed.
9. A power supply control device, characterized in that, The power supply control device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the power supply control method as described in any one of claims 7 to 8.
10. A computer storage medium, characterized in that, The computer storage medium stores a power supply control program, wherein when the power supply control program is executed by a processor, it implements the steps of the power supply control method as described in any one of claims 7 to 8.