Power switching control circuit, power supply control system, method and readable storage medium

By designing a power switch control circuit, the control module notifies the power-using equipment to perform emergency response when the external power supply is powered off, and disconnects the equipment switch module after completion, solving the problem that the battery-powered system in the prior art cannot achieve autonomous shutdown, and achieving delayed shutdown and battery life protection.

CN113555949BActive Publication Date: 2025-03-07SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110790655.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-13
Publication Date
2025-03-07
Estimated Expiration
2041-07-13

AI Technical Summary

Technical Problem

The battery-powered system in the prior art cannot achieve autonomous shutdown in the event of a sudden power outage, resulting in the industrial control machine or other controllers being unable to sense emergency situations, causing the battery to be exhausted and damage the battery life.

Method used

A power switching control circuit is designed, including a first switch module, a second switch module and a device switch module. The control module notifies the power-using equipment to perform the power-off emergency treatment process when the external power supply module is powered off, and controls the equipment switch module to be disconnected after receiving the emergency treatment instructions to ensure that the battery module does not continue to supply power to the power-using equipment that has completed the emergency treatment.

Benefits of technology

It realizes delayed shutdown when external power supply is powered off, provides sufficient time for power consumption equipment for emergency treatment, reduces the adverse effects during power outage, and avoids unnecessary consumption of the battery, improving the life and safety of the battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113555949B_ABST
    Figure CN113555949B_ABST
Patent Text Reader

Abstract

The present application relates to the field of power supply technology, and discloses a power supply switching control circuit, a power supply control system, a method and a readable storage medium. The power supply switching control circuit includes a first switch module, a second switch module and a device switch module, wherein the input end of the first switch module is used to connect to the power supply end of the battery module, the control end is used to connect to the first control end of the control module, the input end of the second switch module is used to connect to the power supply end of the external power supply module, the output end of the first switch module and the output end of the second switch module are connected to the input end of the device switch module, the output end of the device switch module is used to connect to the power-consuming device, and the control module is used to notify the power-consuming device to execute the power-off emergency processing process when the external power supply module is powered off, and control the device switch module to disconnect when receiving the emergency processing completion indication of the power-consuming device, which can effectively improve the life of the battery module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power supply technology, and in particular to a power supply switching control circuit, a power supply control system, a method and a readable storage medium. Background Art

[0002] When facing sudden power outages, control systems such as communication systems and industrial control systems usually require the system's internal controllers (such as industrial computers, processors) to delay shutdown in order to complete the preservation of the current operating node information and related operating data, and send such data to the upper-level control end before shutting down. In this case, the system is required to have a battery power supply system inside. Due to the poor battery life and the need for miniaturization, the usual battery capacity is only sufficient for the critical control system to operate for a few minutes. Therefore, when the system is operating normally, it is required to be powered mainly by an external power supply system, and only when the power is off, it is powered by the battery power supply system.

[0003] Battery powered systems in the prior art are Figure 1 As shown, 12V_BAT represents battery power supply, 12V_POWER represents external power supply (usually converted from mains power), and VCC12V_PC represents the power supply of the same industrial computer or other controller. The inventor found that if the industrial computer or other controller does not have an autonomous shutdown function, the circuit cannot achieve autonomous shutdown, and the industrial computer or other controller cannot sense whether there is an emergency situation. When powered by a battery, the industrial computer or other controller can only shut down after the battery is exhausted, resulting in battery exhaustion. Battery exhaustion is very harmful to the battery and easily reduces the battery life. Summary of the invention

[0004] The purpose of the present application is to provide a power switching control circuit, a power supply control system, a method and a readable storage medium to solve the problem that the power supply system in the prior art may cause battery exhaustion, and battery exhaustion is very harmful to the battery and easily reduces the battery life.

[0005] In a first aspect of the present application, a power switching control circuit is provided, the power switching control circuit comprising a first switch module, a second switch module, and a device switch module, wherein an input end of the first switch module is used to connect to a power supply end of a battery module, a control end of the first switch module is used to connect to a first control end of a control module, an input end of the second switch module is used to connect to a power supply end of an external power supply module, an output end of the first switch module and an output end of the second switch module are connected together and then connected to an input end of the device switch module and connected to a power supply end of the control module, an output end of the device switch module is used to connect to an electrical device, and a control end of the device switch module is used to connect to a second control end of the control module;

[0006] The control module is used to notify the power-consuming equipment to execute the power-off emergency processing process when the external power supply module is powered off, and to control the equipment switch module to disconnect when receiving the emergency processing completion indication of the power-consuming equipment.

[0007] Furthermore, the power switching control circuit includes multiple device switch modules, each device switch module is used to connect to the corresponding electrical equipment, and the control module is also used to notify all electrical equipment to execute the power off emergency processing procedure when the external power supply module is powered off, and when receiving the emergency processing completion indication of the electrical equipment, control the corresponding device switch module of the electrical equipment to disconnect, and when all the device switch modules are disconnected, control the first switch module to disconnect.

[0008] Furthermore, the first switch module includes a first resistor, a second resistor, a third resistor, a first power switch unit, and a first relay; one end of the first resistor is connected in common with the first contact of the first relay and the common end serves as the input end of the first switch module, the second contact of the first relay serves as the output end of the first switch module, the other end of the first resistor is connected to the first end of the first power switch unit, the second end of the first power switch unit is connected to the control end of the first relay, the second resistor and one end of the third resistor are connected in common and connected to the control end of the first power switch unit, the other end of the second resistor serves as the control end of the first switch module, and the other end of the third resistor is connected to the ground.

[0009] Furthermore, a charging control module is connected in series between the input end of the first switch module and the power supply end of the battery module. The charging control module includes a fourth resistor and a first diode. One end of the fourth resistor and the positive end of the first diode are connected together and are used to connect to the power supply end of the battery module. The other end of the fourth resistor and the negative end of the first diode are connected together and are connected to the input end of the second switch module.

[0010] Furthermore, the second switch module includes a fifth resistor and a second relay; one end of the fifth resistor is connected to the first contact of the second relay and serves as the input end of the second switch module, the other end of the fifth resistor is connected to the control end of the second relay, and the second contact of the second relay serves as the output end of the second switch module.

[0011] Furthermore, a second diode is connected between one end of the fifth resistor and the first contact of the second relay, the negative end of the second diode is connected to the first contact of the second relay and the input end of the first switch module, the positive end of the second diode is connected to one end of the fifth resistor, and the connection end between the positive end of the second diode and the fifth resistor serves as the input end of the second switch module.

[0012] In a second aspect of the present application, a power supply control system is provided, comprising a control module, an electrical device, an external power supply module, a battery module and the power switching control circuit of any one of the aforementioned first aspects.

[0013] In a third aspect of the present application, a power supply control method is provided. Based on the power supply control system of the second aspect, the power supply control method includes:

[0014] Real-time detection of the supply voltage of the external power supply module

[0015] According to the power supply voltage of the external power supply module, determine whether the current external power supply module is powered off;

[0016] When the external power supply module loses power, notify the power-consuming equipment to execute the power-off emergency handling process;

[0017] When receiving the emergency handling completion indication of the electrical equipment, the switch module of the control equipment is disconnected.

[0018] Furthermore, the power switching control circuit includes a plurality of device switch modules, each device switch module is used to connect to a corresponding power-consuming device, and the power supply control method further includes:

[0019] When the external power supply module is powered off, notify all power-consuming devices to execute the power-off emergency processing process and control the corresponding device switch modules of the power-consuming devices to disconnect when receiving the emergency processing completion indication of the power-consuming devices;

[0020] When all device switch modules are disconnected, the first switch module is controlled to be disconnected.

[0021] According to a third aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power supply control method according to the third aspect are implemented.

[0022] It can be seen that in the solution provided by the present application, when the external power supply module is powered off, although the external power supply module cannot continue to supply power to the electrical equipment, based on the circuit of the present application, the battery module can continue to supply power to the electrical equipment, thereby delaying the shutdown of the electrical equipment. The control module can promptly notify the electrical equipment that the external power supply module has been powered off, and use the electrical equipment to execute the power off emergency processing procedure, so that the electrical equipment has enough time to perform the power off emergency processing procedure, effectively reducing the adverse effects caused by the power off of the electrical equipment. Secondly, when the control module receives the indication that the emergency processing of the electrical equipment is completed, the control device switch module is disconnected, which also prevents the battery module from continuing to supply power to the electrical equipment that has completed the emergency processing, avoids the battery module from being consumed, and improves the life and safety of the battery module. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 these drawings without paying creative labor.

[0024] Figure 1 It is a structural schematic diagram of a battery power supply system provided by the prior art;

[0025] Figure 2 It is a schematic diagram of the structure of a power supply control system and the relationship between various modules provided by an embodiment of the present application;

[0026] Figure 3 It is a structural schematic diagram of a power switching control circuit provided by an embodiment of the present application;

[0027] Figure 4 is a structural schematic diagram of a control module provided by an embodiment of the present application;

[0028] Figure 5 is a structural schematic diagram of a first switch module and a second switch module provided by an embodiment of the present application;

[0029] Figure 6 It is a structural schematic diagram of a device switch module provided by an embodiment of the present application;

[0030] Figure 7 It is a flow chart of a power supply control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

[0033] Embodiment 1

[0034] See also Figure 2 As shown, Figure 2The schematic diagram of the power supply control system provided for the present application includes the communication relationship and connection relationship between the modules of the power supply control system. The power supply control system includes a control module, an electric device, an external power supply module, and a battery module power switching control circuit, wherein the control module is used to communicate with each user device (such as electric device 1, electric device 2, ..., electric device m), and is used to control the power on and off state of each electric device in combination with the power switching control circuit, thereby controlling the power on and off of each electric device, wherein the control module can be a microprocessor, including but not limited to an ARM processor, a DSP processor or a single-chip microcomputer, etc. The battery module refers to a power module that temporarily supplies power to the electric device; the external power supply module refers to a standing power module of the electric device, that is, a non-temporary emergency power supply, which is usually used to convert the mains power to obtain the power supply of the electric device. For example, if the power supply module of the electric device is 12V, then the external power supply module is a power module that converts the mains 200V to obtain 12VDC, and the battery module is a power module for providing 12VDC.

[0035] It should be noted that the power supply control system provided by the present application can be applied to a variety of system application scenarios, including but not limited to industrial control systems, communication systems, possible intelligent integrated systems in the future, and other possible complex systems. Taking the industrial control system as an example, each electrical device may specifically refer to each industrial control computer and manager unit, controller unit in the industrial control system. It can be understood that the industrial control system is usually a complex system, including multiple industrial control computers, and generally may also include multiple controllers, processors, etc. Similarly, in communication systems, possible intelligent integrated systems in the future, and other possible complex systems, there may be more internal processor units and controller units, and various processor switching opportunities have priority requirements. Moreover, in the above-mentioned systems, for abnormal power outages, such as sudden interruption of external power supply, it is usually required that core processors such as industrial control computers cannot be shut down. They must be shut down only after the emergency process is processed. Therefore, there is a great need for a new power supply system and method to deal with it, so there is the technical solution provided by the present application. Next, combined with Figure 2 system, and describes the technical solution of the present application in detail.

[0036] like Figure 3As shown, first, a power switching control circuit provided by the application is described, and the power switching control circuit includes a first switch module 51, a second switch module 52, and a device switch module 53, wherein the input end of the first switch module 51 is used to connect the power supply end of the battery module 10, and the power supply end of the battery module 10 refers to the positive end of the battery module, and the control end of the first switch module 51 is used to connect to the first control end of the control module 30, and the first control end of the control module 30 is used to control the on-off of the first switch module 51. When the control module 30 uses the first control end to control the first switch module 51 to be turned on, the battery module 10 can be connected to the device switch module 53. When the control module 30 uses the first control end to control the first switch module 51 to be disconnected, the battery module 10 is disconnected from the device switch module 53, that is, the on-off of the first switch module 51 is controlled by the control signal of the first control end of the control module 30.

[0037] The input end of the second switch module 52 is used to connect to the power supply end of the external power supply module 20. The output end of the first switch module 51 and the output end of the second switch module 52 are connected together and then connected to the input end of the device switch module 53 and used to connect to the power supply end of the control module 30. The second switch module 52 is configured to trigger the second switch module 52 to turn on when the external power supply module 20 is powered on, so that the external power supply module 20 supplies power to the control module 30 through the first switch module 51, so that the control module 30 can work normally, that is: the on and off of the second switch module 52, and whether the control module 30 can have a working power supply are controlled by whether the external power supply module 20 is powered off or not.

[0038] The output end of the device switch module 53 is used to connect to the power-consuming device 40 , and the control end of the device switch module 53 is used to connect to the second control end of the control module 30 . That is, the on and off of the device switch module 53 is controlled by the second control end of the control module 30 .

[0039] It can be seen from the above connection relationship that when the external power supply module 20 is powered on, the second switch module 52 is turned on, and the external power supply module 20 supplies power to the control module 30. At this time, the control module 30 is powered on normally. After the control module 30 is powered on normally, the control module 30 can control the first switch module 51 and the device switch module 53 to be turned on. When the first switch module 51 is turned on, there are two paths to supply power to the power-consuming device 40 at the same time. One path is the battery module 10→the first switch module 51→the device switch module 53→the power-consuming device 40; the other path is the external power supply module 20→the second switch module 52→the device switch module 53→the power-consuming device 40, so that the power-consuming device 40 has power and can be turned on normally. When the external power supply module 20 is suddenly powered off, the second switch module 52 is disconnected. At this time, the battery module 10 can continue to supply power to the power-consuming device 40 through its path. It can be seen that in this application, when the external power is off, the function that the power-consuming device 40 can continue to be powered by the battery module 10 can be realized, and the function of keeping the power-consuming device 40 uninterrupted can be maintained.

[0040] In the present application, the control module 30 is used to notify the power-consuming device 40 to execute the power-off emergency processing procedure when the external power supply module 20 is powered off, and to control the device switch module 53 to disconnect when receiving the emergency processing completion indication from the power-consuming device 40. It should be noted that the power-off emergency processing procedure refers to the procedure that is pre-configured for the power-consuming device 40 and needs to be executed by the power-consuming device 40 when the power-consuming device 40 receives the power-off emergency processing execution notification fed back by the control module 30. Exemplarily, the power-off emergency processing procedure includes but is not limited to: the power-consuming device 40 completes the current operation node information, saves the relevant operation data, and sends such data to the upper-level control end so that the upper-level control end and other processes.

[0041] It can be seen that in this embodiment, when the external power supply module 20 is powered off, the external power supply module 20 will not be able to continue to supply power to the power-consuming device 40, but based on the circuit of the embodiment of the present application, the battery module 10 can continue to supply power to the power-consuming device 40, thereby delaying the shutdown of the power-consuming device 40, so that the power-consuming device 40 has enough time to perform emergency processing. The control module 30 can promptly notify the power-consuming device 40 that the external power supply module 20 has been powered off, allowing the power-consuming device 40 to execute the power-off emergency processing process, so that the power-consuming device 40 has enough time to perform the power-off emergency processing process, effectively reducing the adverse effects caused by the power-off of the power-consuming device 40. Secondly, when the control module 30 receives the emergency processing completion indication of the power-consuming device 40, the control device switch module 53 is disconnected, which also prevents the battery module 10 from continuing to supply power to the power-consuming device 40 that has completed the emergency processing, effectively reducing the battery consumption of the battery module 10 and improving the life and safety of the battery module 10.

[0042] It is also worth noting that in the embodiments provided in the present application, if the power-consuming device 40 does not have an autonomous shutdown function, the power switching control circuit provided in the present application can realize the power on / off control of the power-consuming device 40, without the need to wait for the battery to consume all the power as in the prior art, because the power-consuming device has no autonomous shutdown function, and then shut down due to no power supply, which effectively reduces the useless consumption of the battery, improves the battery life and safety, and also provides a novel power on / off control method for the power-consuming device. It can be seen that in the present application, the use of the control module 30 for control is a great innovation, which realizes the effective management of power switching, which is equivalent to having a brain that can detect the power failure of the city power, and after the detection result, tell the power-consuming device 40 for emergency treatment, and after the power-consuming device 40 is shut down, the power-consuming device can be shut down without draining the battery.

[0043] In some embodiments of the present application, the power switching control circuit includes multiple device switch modules 53, each device switch module 53 is used to connect to the corresponding power-consuming device 40, and the control module 30 is also used to notify all power-consuming devices 40 to execute the power-off emergency processing procedure when the external power supply module 20 is powered off, and when receiving the emergency processing completion indication from the power-consuming device 40, control the corresponding device switch module 53 of the power-consuming device 40 to disconnect, and when all the device switch modules 53 are disconnected, control the first switch module 51 to disconnect.

[0044] It can be understood that in communication systems, industrial control systems and more intelligent integrated systems in the future, there will be more internal processor units (electrical equipment), and various processor switch opportunities will have priority requirements. For effective management, when the external power supply module 20 is powered off, the control module 30 notifies all electrical equipment 40 to execute the power off emergency processing process, and when receiving the emergency processing completion indication of the electrical equipment 40, controls the corresponding device switch module of the electrical equipment 40 to disconnect 53, and only when all device switch modules 53 are disconnected, controls the first switch module 51 to disconnect. In this way, each electrical equipment 40 can be shut down in turn, and orderly control of the shutdown of the electrical equipment 40 can be achieved. When all electrical equipment 40 are shut down, the control module 10 disconnects the first switch module 51, cuts off the power supply of the battery module 10 to the control module 10, and the control module 10 realizes self-shutdown and completes the final shutdown action. It can be seen that in communication systems, industrial control systems and more intelligent integrated systems in the future, when there will be more internal processor units (electrical equipment), the embodiments of the present application can more effectively manage the shutdown sequence and the power supply sequence. Even if the electric equipment 40 does not shut down by itself, the present application can also shut down the electric equipment 40 without consuming dry batteries, effectively protecting the life and safety of the battery, and also providing an orderly power on and off control solution to avoid power on and off confusion of the electric equipment 40, thereby ensuring that the original priority processing order of the electric equipment 40 is achieved.

[0045] Please also read Figure 4-6In some embodiments of the present application, a first switch module 51 is provided, which includes a first resistor R1, a second resistor R2, a third resistor R3, a first power switch unit Q1, and a first relay K1; one end of the first resistor R1 is commonly connected with the first contact of the first relay K1 and the commonly connected end serves as the input end of the first switch module 51, the second contact of the first relay K1 serves as the output end of the first switch module 51, the other end of the first resistor R1 is connected to the first end of the first power switch unit Q1, the second end of the first power switch unit Q1 is connected to the control end of the first relay K1, the second resistor R2 is commonly connected with one end of the third resistor R3 and is connected to the control end of the first power switch unit Q1, the other end of the second resistor R2 serves as the control end of the first switch module 51, and the other end of the third resistor R3 is connected to the ground. In some embodiments of the application, Q1 can be an NPN transistor or other power switch tube, such as a MOS tube, etc., which is not limited in the present application. The present application uses the first power switch unit Q1 as an NPN transistor, the B pole of the NPN transistor is the control terminal, the C pole is connected to the first contact of the first relay K1, and the E pole is connected to the control terminal of the first relay K1. In this way, when the control module 30 applies a high level to the other end of the second resistor R2, the first power switch unit Q1 is turned on, so that the power supply of the battery module 10 causes the first relay K1 to be attracted, and therefore, the battery module 10 can supply power to the outside through the first relay K1 as the VCC_PC_POWER terminal.

[0046] It should be noted that the above-mentioned first switch module 51 is only one embodiment here, and there may be other conversion circuits in other embodiments. For example, the first relay K1 may also adopt other switch types, or the driving circuit of the first relay K1 may also adopt other forms, which are not specifically limited in this application.

[0047] In some embodiments of the present application, a charging control module is connected in series between the input end of the first switch module 51 and the power supply end VCC_BAT of the battery module 10, and the charging control module includes a fourth resistor R4 and a first diode D1. One end of the fourth resistor R4 and the positive end of the first diode D1 are connected together and are used to connect to the power supply end VCC_BAT of the battery module 10, and the other end of the fourth resistor R4 and the negative end of the first diode D1 are connected together and are connected to the input end of the second switch module 52. In combination with the above embodiment, that is, the other end of the fourth resistor R4 and the negative end of the first diode D1 are connected together, and are connected to one end of the first resistor R1 and the first contact of the first relay K1.

[0048] In some embodiments of the present application, the second switch module 52 includes a fifth resistor R5 and a second relay K2; one end of the fifth resistor R5 is connected to the first contact of the second relay K2 and serves as the input end of the second switch module 52, the other end of the fifth resistor R5 is connected to the control end of the second relay K2, the second contact of the second relay K2 serves as the output end of the second switch module 52, and the output end of the second switch module 52 and the output end of the first switch module 51 are connected together as the external power supply end, that is, the VCC_PC_POWER end. In this way, when the power supply end VCC_12V of the external power supply module 20 is powered on, the second relay K2 will be driven to close, so that the external power supply module 20 can flow through the second relay K2 to supply power to the outside as the VCC_PC_POWER end.

[0049] It should be noted that the above-mentioned second switch module 52 is only one embodiment here, and there may be other conversion circuits in other embodiments. For example, the second relay K2 may also adopt other switch types, or the driving circuit of the second relay K2 may also adopt other forms, which are not specifically limited in this application.

[0050] In some embodiments of the present application, a second diode D2 is further connected between one end of the fifth resistor R5 and the first contact of the second relay K2, the negative end of the second diode D2 is connected to the first contact of the second relay K2 and the input end of the first switch module 51, the positive end D2 of the second diode is connected to one end of the fifth resistor R5, and the connection end between the positive end of the second diode D2 and the fifth resistor R5 serves as the input end of the second switch module 52. In combination with the above embodiments, that is to say, the positive end D2 of the second diode is connected to one end of the fifth resistor R5 and then connected to the power supply end VCC_12V of the external power supply module 20, and the negative end of the second diode D2 is connected to the first contact of the second relay K2 and then connected to the other end of the fourth resistor R4 and the negative end of the first diode D1.

[0051] Through the above embodiments, the present application can also realize the charge and discharge management function of the battery module, the principle is as follows:

[0052] Battery module charging process:

[0053] When the power supply terminal VCC_12V of the external power supply module 20 is powered on, if the battery module 10 is in a power-deficient state, the power supply terminal VCC_12V of the external power supply module charges the battery module 10 through the second diode D2 and the fourth resistor R4. The fourth resistor R4 is a charging current limiting resistor, which is used to effectively prevent the battery module 10 from being damaged by excessive charging current when the battery module 10 is seriously power-deficient. Based on the above circuit structure relationship, it can also be seen that the power supply voltage VCC_BAT of the battery module 10 can reach a maximum of the power supply voltage VCC_12V of the external power supply module minus the voltage drop of the second diode D2. The second diode D2 also serves to prevent the power supply voltage of the power supply terminal VCC_BAT of the battery module 20 from flowing to the power supply terminal VCC_12V of the external power supply module 20, and has high practicality.

[0054] Battery module discharge process:

[0055] When the power supply terminal VCC_12V of the external power supply module 20 is powered on, the control module 30 controls the second relay K2 to be energized. At this time, the two paths of the first relay K1 and the second relay K2 will simultaneously supply power to the external power supply terminal VCC_PC_POWER. Based on the circuit structure of the present application, the power supply voltage is only the VCC_12V provided by the external power supply module 20, and there is no power supply (VCC_BAT) from the battery module 10, because VCC_BAT≤COM point voltage. If VCC_BAT is to output power, VCC_BAT>(COM+D1 voltage drop) is required. Therefore, when the external power supply module 20 supplies power, only the power supply terminal VCC_12V of the external power supply module 20 supplies power, and the battery module 10 will be in a charging or full state. When the power supply of the external power supply module 20 disappears, the power supply voltage VCC_BAT of the battery module will flow through the first diode D1 and the first relay K1 to supply power, realizing seamless power supply switching, so that subsequent electrical equipment can work normally without power supply confusion.

[0056] It can be seen that the power switching control circuit provided by the present application can solve the confusion problem of whether the power supply is battery-powered or externally powered in the circuit of the prior art, and can also effectively solve the problem of chaotic timing of battery charging or discharging. Through the present application, the battery charging and discharging management can be effectively realized, the battery charging and discharging logic is clear, and the phenomenon of chaotic timing of battery charging and discharging is effectively avoided, which has high practicality.

[0057] In some embodiments of the present application, a device switch module 53 is provided, which includes a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a second power switch unit Q2, and a third relay K3; one end of the sixth resistor R6 is commonly connected with the first contact of the third relay K3 and the commonly connected end serves as the input end of the device switch module 53, the second contact of the third relay K3 serves as the output end of the device switch module 53, the other end of the sixth resistor R6 is connected to the first end of the second power switch unit Q2, the second end of the second power switch unit Q2 is connected to the control end of the third relay K3, the seventh resistor R7 and one end of the eighth resistor R8 are commonly connected and connected to the control end of the second power switch unit Q2, the other end of the seventh resistor R7 serves as the control end of the device switch module 53, and the other end of the eighth resistor R8 is connected to the ground. In combination with the above embodiments, that is to say, one end of the sixth resistor R6 is connected to the first contact of the third relay K3 and the VCC_PC_POWER end, the second contact of the third relay K3 serves as a power supply end VCC_PC1_POWER, which is used to connect to the corresponding power-consuming device PC1 (such as the industrial computer 1), and the other end of the seventh resistor R7 is used to connect to the control end PC1_CTRL of the control module.

[0058] In some embodiments of the present application, when there are multiple power-consuming devices in the power supply control system, there may be multiple device switch modules 53, and each device switch module 53 may adopt the same circuit structure, which is not limited in the present application. In the present application, two device switch modules 53 are taken as an example for description. Figure 6 As shown, the present application also includes another device switch module 53, which includes a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a third power switch unit Q2, and a fourth relay K4; one end of the ninth resistor R9 is commonly connected with the first contact of the fourth relay K4 and the commonly connected end serves as the input end of the other device switch module 53, the second contact of the fourth relay K4 serves as the output end of the other device switch module 53, the other end of the ninth resistor R9 is connected with the first end of the third power switch unit Q3, the second end of the third power switch unit Q3 is connected with the control end of the fourth relay K4, the tenth resistor R10 is commonly connected with one end of the eleventh resistor R11 and is connected to the control end of the third power switch unit Q3, the other end of the tenth resistor R10 serves as the control end of the other device switch module 53, and the other end of the eleventh resistor R1 is connected to the ground.

[0059] In combination with the above embodiments, that is to say, one end of the 9th resistor R9 is connected to the first contact of the fourth relay K4 and the VCC_PC_POWER end, the second contact of the fourth relay K4 serves as a power supply end VCC_PC2_POWER, which is used to connect to the corresponding power-consuming device PC2 (such as the industrial computer 2), and the other end of the 10th resistor R10 is used to connect to the control end PC2_CTRL of the control module.

[0060] It should be noted that in some embodiments of the application, Q2 and Q3 can both use NPN transistors or other power switch tubes, such as MOS tubes, etc., which are not limited in this application. This application uses the second power switch unit Q2 and the third power switch unit Q3 as NPN transistors as an example for illustration. It should also be noted that the above-mentioned device switch module 53 is only one embodiment here, and other conversion circuits can be used in other embodiments. For example, the relay in the device switch module 53 can also use other switch types, or its drive circuit can also use other forms, which are not limited in this application.

[0061] Combined with the above circuit structure, such as Figure 4 As shown, the control module in the present application can be implemented by a microprocessor (MCU), and the microprocessor (MCU) can communicate with external power-consuming devices through its internal general-purpose input / output interface (GPIO), and can also send relevant control signals. For example, it communicates with industrial computer 1 through GPIO_1 and sends PC1_CTRL control signal (such as high or low level) through GPIO_2; communicates with industrial computer 2 through GPIO_5 and sends PC2_CTRL control signal (such as high or low level) through GPIO_6, sends MCU_CTRL control signal (such as high or low level) to the power switching control circuit through GPIO_3, and communicates with other processors through GPIO_N or sends control signals, and there is no specific limitation.

[0062] The embodiment of the present application further provides a power supply control system, which includes a control module 30, an electrical device 40, an external power supply module 20, a battery module 10 and the power supply switching control circuit described in the above embodiment.

[0063] Embodiment 2

[0064] like Figure 7 As shown, based on the power supply control system provided in the above embodiment 1, the present application also provides a power supply control method, including the following steps:

[0065] S10: Real-time detection of the power supply voltage of the external power supply module;

[0066] S20: judging whether the current external power supply module is powered off according to the power supply voltage of the external power supply module;

[0067] S30: When the external power supply module is powered off, notify the power-consuming equipment to execute the power off emergency processing process;

[0068] S40: upon receiving the emergency handling completion indication from the electrical equipment, the device switch module 53 is controlled to be turned off.

[0069] In one embodiment, the power switching control circuit includes a plurality of device switch modules 53, each device switch module 53 is used to connect to a corresponding power-consuming device, and the power supply control method further includes the following steps:

[0070] S50: when the external power supply module is powered off, notifying all power-consuming devices to execute the power-off emergency processing process and upon receiving an indication that the emergency processing is completed from the power-consuming device, controlling the corresponding device switch module of the power-consuming device to be disconnected;

[0071] S60: When all device switch modules are disconnected, control the first switch module to disconnect.

[0072] In addition, in some embodiments of the present application, the control module 30 also monitors the supply voltage of the battery module 10 in real time, that is, reads the supply voltage of the battery module 10 through ADC2. The control module 30 can evaluate the remaining working time based on the supply voltage of the battery module 10 and the number of electrical devices that are still working, and continuously inform each running electrical device to urge the electrical devices to speed up the emergency handling process.

[0073] Combination Figure 4, the control process is described by taking multiple industrial computers as the power-consuming devices; for example, after the external power supply module 20 is powered on, the control module 30 controls the GPIO of the industrial computer power supply to a high level, that is, GPIO_2 / 3 / 6 needs to be set to a high level, and then the power supply voltage VCC_12V of the external power supply module 20 and the power supply voltage VCC_BAT of the battery module 10 are measured in real time through ADC1 and ADC2. When the control module 30 detects through ADC1 that the power supply voltage VCC_12V of the external power supply module 20 is less than or equal to the preset voltage (for example, 10V), it is considered that the external power supply disappears. At this time, the control module 30 notifies the industrial computer through the status communication GPIO connected to the industrial computer, informing the industrial computer that the external power is off and that the emergency power-off process needs to be executed. For example, by notifying IPC 1 and IPC 2 to execute the power-off emergency process through GPIO_1 / 5, the IPC reads ADC2, i.e., the power supply voltage of the battery module 10, during the emergency power-off process. The control module 30 can evaluate the remaining working time according to the voltage of the battery module 10 and the number of IPCs still working, and continuously inform each running IPC to urge the IPC to speed up the emergency power-off process. After receiving the task completion information fed back by the IPC, it is determined whether the IPC has completed the emergency power-off process based on the task completion information. When the emergency power-off process is completed, the GPIO corresponding to the control of the IPC power supply is set to low. For example, GPIO_2 is set to a low level to shut down industrial computer 1, and GPIO_6 is set to a low level to shut down industrial computer 2. After the emergency handling of all industrial computers (industrial computer 1-industrial computer n) is completed, it is determined whether all industrial computers have been shut down. If all industrial computers have been shut down, the control module 30 controls GPIO_3 to a low level, that is, the first relay K1 is disconnected, and the battery module 10 is disconnected to supply power to the control module, and the process ends.

[0074] It should be noted that more functions or execution steps of the control module 30 can refer to the corresponding description of the aforementioned embodiment 1, and will not be described here to avoid repetition. Moreover, the technical effects brought about by the power supply control method can also refer to the corresponding description of the aforementioned embodiment 1, and will not be repeated here.

[0075] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0076] It should be noted that the control module 30 can be implemented in whole or in part by software, hardware or a combination thereof. The modules can be embedded in or independent of the processor in the form of hardware, or stored in the memory of the processor in the form of software, so that the processor can call and execute the operations corresponding to the modules.

[0077] In one embodiment, a control module 30 is provided, wherein the control module 30 may be a microprocessor, an ARM processor or a DSP processor, etc., and the network interface of the control module 30 is used to communicate with an external power-consuming device through a network connection. When the computer program is executed by the control module 30, the steps of the control module 30 in the power supply control method described above are implemented, or the functions of the control module in the power supply control system described above are implemented. For details, please refer to the above embodiments, and the description is not repeated here.

[0078] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control module in the above-mentioned power supply control method are implemented, or the functions of the control module in the above-mentioned power supply control system are implemented. For details, please refer to the above-mentioned embodiments, and the description is not repeated here.

[0079] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods.

[0080] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0081] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A power switching control circuit, characterized in that: The power switching control circuit comprises a first switch module, a second switch module and a device switch module, wherein the input end of the first switch module is used to connect to the power supply end of the battery module, the control end of the first switch module is used to connect to the first control end of the control module, the input end of the second switch module is used to connect to the power supply end of the external power supply module, the output end of the first switch module and the output end of the second switch module are connected together and then connected to the input end of the device switch module and connected to the power supply end of the control module, the output end of the device switch module is used to connect to the power-consuming device, and the control end of the device switch module is used to connect to the second control end of the control module; The control module is used to notify the power-consuming device to execute the power-off emergency processing procedure when the external power supply module is powered off, and control the device switch module to disconnect when receiving the emergency processing completion indication from the power-consuming device; When the power supply end of the external power supply module is powered on, if the battery module is in a power-deficient state, the power supply end of the external power supply module charges the battery module through the second diode and the fourth resistor; When the external power supply module supplies power, the power supply end of the external power supply module supplies power, and the battery module will be in a charging or full state; when the power supply of the external power supply module disappears, the power supply voltage of the battery module will flow through the first switch module to supply power.

2. The power switching control circuit according to claim 1, characterized in that: The power switching control circuit includes a plurality of device switch modules, each of which is used to be connected to a corresponding electrical device. The control module is also used to notify all the electrical devices to execute a power-off emergency processing procedure when the external power supply module is powered off, and to control the corresponding device switch modules of the electrical devices to disconnect when receiving an indication that the emergency processing is completed from the electrical device, and to control the first switch module to disconnect when all the device switch modules are disconnected.

3. The power switching control circuit according to claim 1, characterized in that: The first switch module includes a first resistor, a second resistor, a third resistor, a first power switch unit, and a first relay; one end of the first resistor is commonly connected with the first contact of the first relay and the commonly connected end serves as the input end of the first switch module, the second contact of the first relay serves as the output end of the first switch module, the other end of the first resistor is connected to the first end of the first power switch unit, the second end of the first power switch unit is connected to the control end of the first relay, the second resistor and one end of the third resistor are commonly connected and connected to the control end of the first power switch unit, the other end of the second resistor serves as the control end of the first switch module, and the other end of the third resistor is connected to the ground.

4. The power switching control circuit according to claim 3, characterized in that: A charging control module is connected in series between the input end of the first switch module and the power supply end of the battery module. The charging control module includes a fourth resistor and a first diode. One end of the fourth resistor and the positive end of the first diode are connected together and are used to connect to the power supply end of the battery module. The other end of the fourth resistor and the negative end of the first diode are connected together and are connected to the input end of the second switch module.

5. The power switching control circuit according to any one of claims 1 to 4, characterized in that: The second switch module includes a fifth resistor and a second relay; one end of the fifth resistor is connected to the first contact of the second relay and serves as the input end of the second switch module, the other end of the fifth resistor is connected to the control end of the second relay, and the second contact of the second relay serves as the output end of the second switch module.

6. The power switching control circuit according to claim 5, characterized in that: A second diode is also connected between one end of the fifth resistor and the first contact of the second relay, the negative end of the second diode is connected to the first contact of the second relay and the input end of the first switch module, the positive end of the second diode is connected to one end of the fifth resistor, and the connection end of the positive end of the second diode and the fifth resistor serves as the input end of the second switch module.

7. A power supply control system, characterized in that: It comprises a control module, an electrical device, an external power supply module, a battery module and a power switching control circuit as described in any one of claims 1 to 6.

8. A power supply control method, based on the power supply control system according to claim 7, characterized in that: The power supply control method comprises: Detecting the power supply voltage of the external power supply module in real time; According to the power supply voltage of the external power supply module, determining whether the external power supply module is currently powered off; When the external power supply module is powered off, the power-consuming device is notified to execute a power off emergency processing procedure; When receiving an indication that the emergency handling of the electrical equipment is completed, the equipment switch module is controlled to be disconnected.

9. The power supply control method according to claim 8, characterized in that: The power switching control circuit includes a plurality of device switch modules, each of which is used to connect to a corresponding power-consuming device. The power supply control method further includes: When the external power supply module is powered off, all the power-consuming devices are notified to execute the power-off emergency processing procedure and when receiving the emergency processing completion indication of the power-consuming device, the corresponding device switch modules of the power-consuming device are controlled to be disconnected; When all the device switch modules are disconnected, the first switch module is controlled to be disconnected.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the power supply control method according to claim 8 or 9 are implemented.

Citation Information

Patent Citations

  • Power supply switching control circuit, power supply control system and industrial control system

    CN215681911U