AC / DC power supply equipment, power supply method, device and storage medium

By designing AC and DC detection and fault detection modules in the monitoring equipment to control the power supply equipment to match the voltage type and working status, the problem of equipment damage during AC and DC power supply is solved, and the safety and stability of the power supply are improved.

CN113644655BActive Publication Date: 2024-10-08ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110955956.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-19
Publication Date
2024-10-08
Estimated Expiration
2041-08-19

AI Technical Summary

Technical Problem

When existing monitoring equipment uses alternating current and direct current for power supply, it is easy to cause damage to the equipment due to voltage type mismatch. How to improve the safety and compatibility of power supply equipment is an urgent problem that needs to be solved.

Method used

An AC and DC power supply equipment is designed, including an AC and DC detection module, a rectifier module, a switch module, an AC energy storage module, a fault detection module and a processor module. By detecting the voltage type and working status, the switch module is controlled to match the voltage type and working status to ensure stable power supply to the load.

Benefits of technology

It improves the safety and stability of power supply equipment, avoids equipment damage caused by mismatched voltage types, and ensures that the load can work normally under different power supply modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113644655B_ABST
    Figure CN113644655B_ABST
Patent Text Reader

Abstract

The present application provides an AC / DC power supply device and a power supply method, device and storage medium, which relate to the field of security monitoring technology and are used to improve the safety of power supply. The power supply device includes an AC / DC detection module, a rectifier module, a first switch module, a second switch module, an AC energy storage module, a fault detection module and a processor module; wherein the input end of the rectifier module is connected to one end of the AC / DC detection module, the output end of the rectifier module is respectively connected to one end of the first switch module and the second switch module, the other end of the AC / DC detection module is connected to the processor module, the processor module is respectively connected to the control end of the first switch module and the second switch module, the other end of the first switch module is connected to the input end of the AC energy storage module, the other end of the second switch module is connected to the load, the detection end of the fault detection module is connected to the AC energy storage module, and the output end is connected to the processor module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of security monitoring technology and provides an AC / DC power supply device and a power supply method, device and storage medium. Background Art

[0002] With the development of intelligent security technology, monitoring equipment has been widely used. At present, monitoring equipment can generally use three power supply methods: alternating current (AC), direct current (DC) and power over Ethernet (POE). Among them, the most commonly used power supply methods are AC power supply and DC power supply. At the same time, generally speaking, in order to improve the scope of application, the power supply equipment needs to be compatible with both AC power supply and DC power supply. However, when AC power supply is used, that is, when the power supply is alternating current, it is necessary to connect an energy storage filter capacitor with a large capacitance value. Otherwise, after rectifying the AC, the output ripple voltage and current will increase, and then in this state, if the equipment works for a long time, it is easy to be damaged. When DC power supply is used, that is, when the power supply is direct current, it is not necessary to connect a large energy storage filter capacitor, and if a large energy storage filter capacitor is connected by mistake, then due to the energy storage process of the energy storage filter capacitor, a large impact current will be generated when power is turned on, and then the power supply end may also have overcurrent protection or even damage.

[0003] It can be seen that when using different power supply types, it is necessary to match the corresponding power supply method, otherwise the equipment is easily damaged. Therefore, when the power supply equipment is compatible with AC power supply and DC power supply, how to improve the safety of power supply is an urgent problem to be solved. Summary of the invention

[0004] Embodiments of the present application provide an AC / DC power supply device, an abnormality detection method, an apparatus, and a storage medium for improving the safety of power supply.

[0005] On the one hand, an AC / DC power supply device is provided, the power supply device comprising an AC / DC detection module, a rectifier module, a first switch module, a second switch module, an AC energy storage module, a fault detection module and a processor module;

[0006] The input end of the rectifier module is connected to one end of the AC / DC detection module, the output end of the rectifier module is respectively connected to one end of the first switch module and the second switch module, the other end of the AC / DC detection module is connected to the processor module, the processor module is respectively connected to the control ends of the first switch module and the second switch module, the other end of the first switch module is connected to the input end of the AC energy storage module, the other end of the second switch module is connected to the load, the detection end of the fault detection module is connected to the AC energy storage module, and the output end is connected to the processor module;

[0007] Among them, the AC / DC detection module detects the voltage type input to the rectifier module, and after the processor module controls the switching state of the first switch module based on the voltage type, the fault detection module detects the working state of the AC energy storage module. When the processor module determines that the working state matches the voltage type, the second switch module is controlled to be turned on to supply power to the load.

[0008] Optionally, the power supply device further includes a power management module, an input end of the power management module is connected to an output end of the second switch module, and an output end is connected to the load;

[0009] Among them, when the processor module determines that the voltage type input to the rectifier module is a preset voltage type, the power consumption of at least one component of the load is limited through the power management module; the preset voltage type is a voltage type whose power conversion efficiency is less than a set power conversion efficiency threshold.

[0010] Optionally, the power supply device further includes a power conversion module;

[0011] The input end of the power conversion module is connected to the output end of the rectifier module, and the output end of the power conversion module is connected to the input end of the second switch module;

[0012] The power conversion module performs voltage conversion processing on the voltage signal output by the rectifier module to obtain a voltage signal with a constant voltage value.

[0013] Optionally, the power supply device further includes a display module, and an input end of the display module is connected to an output end of the processor module;

[0014] Wherein, the display module is used to display the information output by the processor module.

[0015] Optionally, the AC / DC detection module is an AC zero-crossing detection circuit;

[0016] Wherein, when the voltage signal input to the rectifier module is an AC voltage signal, the AC zero-crossing detection circuit outputs a pulse wave signal with a fixed period; or, when the voltage signal input to the rectifier module is a DC voltage signal, the AC zero-crossing detection circuit outputs a constant logic level signal.

[0017] Optionally, the fault detection module includes a voltage detection element, and two ends of the voltage detection element are respectively connected to two ends of the AC energy storage module;

[0018] Wherein, when the voltage detection element detects that there is a potential difference between the two ends of the AC energy storage module, a working state detection signal indicating that the working state of the AC energy storage module is a running state is output; or,

[0019] When the voltage detection element detects that there is no potential difference between the two ends of the AC energy storage module, a working state detection signal indicating that the working state of the AC energy storage module is a non-operating state is output.

[0020] Optionally, the fault detection module includes a current detection element and a resistor; one end of the current detection element is connected to one end of the AC energy storage module, the other end of the current detection element is connected to one end of the resistor, and the other end of the resistor is connected to the other end of the AC energy storage module;

[0021] Wherein, when the current detection element detects that there is no current in the branch where the resistor is located, a working state detection signal indicating that the working state of the AC energy storage module is a non-operating state is output;

[0022] Alternatively, when the current detection element detects that there is current in the branch where the resistor is located, a working state detection signal indicating that the working state of the AC energy storage module is the running state is output.

[0023] Optionally, the AC energy storage module includes a first capacitor; one end of the first capacitor is connected to the detection end of the fault detection module, and the other end is connected to the reference signal end;

[0024] Wherein, the first capacitor is used for storing energy and filtering the alternating current.

[0025] On the one hand, a power supply method based on any of the above-mentioned AC / DC power supply devices is provided, the method comprising:

[0026] receiving a voltage type detection signal output by the AC / DC detection module, and determining a voltage type input to the rectifier module based on the voltage type detection signal;

[0027] Based on the determined voltage type, sending a first control signal to the first switch module to control the first switch module to adjust to a first switch state corresponding to the voltage type;

[0028] receiving a working state detection signal output by the fault detection module, and determining whether the working state matches the voltage type based on the working state detection signal; the working state detection signal is obtained after the first switch module is adjusted to the first switch state, and is used to indicate the working state of the AC energy storage module;

[0029] When it is determined that the working state matches the voltage type, a second control signal is sent to the second switch module to control the second switch module to be turned on to supply power to the load.

[0030] In one aspect, a power supply device is provided, the device comprising:

[0031] a first determination unit, configured to receive a voltage type detection signal output by the AC / DC detection module, and determine a voltage type input to the rectifier module based on the voltage type detection signal;

[0032] A first sending unit, configured to send a first control signal to the first switch module based on the determined voltage type, so as to control the first switch module to adjust to a first switch state corresponding to the voltage type;

[0033] a second determination unit, configured to receive a working state detection signal output by the fault detection module, and determine whether the working state matches the voltage type based on the working state detection signal; the working state detection signal is obtained after the first switch module is adjusted to the first switch state, and is used to indicate the working state of the AC energy storage module;

[0034] The second sending unit is used to send a second control signal to the second switch module when it is determined that the working state matches the voltage type, so as to control the second switch module to be turned on and supply power to the load.

[0035] Optionally, the first sending unit is specifically configured to:

[0036] When the voltage type is direct current, sending a first control signal to the first switch module to control the first switch module to be turned off; or,

[0037] When the voltage type is alternating current, a first control signal for controlling the first switch module to be turned on is sent to the first switch module.

[0038] On the one hand, a computer storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the steps of the method described in the above aspects are implemented.

[0039] In an embodiment of the present application, an AC / DC power supply device includes an AC / DC detection module, a rectifier module, a first switch module, a second switch module, an AC energy storage module, a fault detection module and a processor module; wherein the AC / DC detection module is connected to the input end of the rectifier module, so that the AC / DC detection module can detect the voltage type input to the input rectifier module, and then the processor module can be connected through the other end of the AC / DC detection module to inform the processor module of the voltage type, and then the control end of the first switch module connected to the processor module can be used to control the switching state of the first switch module, and then the working state of the AC energy storage module connected thereto can be detected through the detection end of the fault detection module, and the working state is fed back to the processor module, so that when the processor module determines that the working state of the AC energy storage module matches the input voltage type, the second switch module connected to the output end of the power supply module is controlled to be turned on to supply power to a load connected to one end of the second switch module.

[0040] It can be seen that in the embodiment of the present application, the AC / DC detection module can be used to detect the voltage type input to the rectifier module, that is, the voltage type input to the power supply device, and the fault detection module can be used to detect the working state of the AC energy storage module, and the processor module can be used to determine whether the voltage type and the working state match, so as to determine whether an abnormality has occurred in the current power supply process, and only when it is determined to match, that is, when no power supply abnormality has occurred, will power be supplied to the load, so that the load can work stably and normally, and the safety of the power supply equipment can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0042] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0043] Figure 2 A schematic diagram of the structure of an AC / DC power supply device provided in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of the structure of a power supply device including a power management module provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of the structure of a power supply device including a power conversion module;

[0046] Figure 5 A schematic diagram of the structure of a power supply device including a display module provided in an embodiment of the present application;

[0047] Figure 6 A circuit diagram for designing an AC zero-crossing detection circuit using a bidirectional optical coupler;

[0048] Figure 7 A schematic diagram of input and output waveforms before and after the AC zero-crossing detection circuit;

[0049] Figure 8 is a schematic diagram of a fault detection module including a voltage detection element;

[0050] Fig. 9 A schematic diagram of a fault detection module including a current detection element and a resistor;

[0051] Fig.10 is a schematic diagram of an AC energy storage module including a first capacitor;

[0052] Fig.11 A schematic diagram of the structure of a power supply device provided in an embodiment of the present application;

[0053] Fig.12 A schematic diagram of a power supply method according to an embodiment of the present invention;

[0054] Fig.13 Another schematic diagram of a power supply method according to an embodiment of the present invention;

[0055] Fig.14 A schematic diagram of the structure of a power supply device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0057] At present, when using AC power supply, it is necessary to connect a large energy storage filter capacitor, otherwise, after rectifying the AC, the output ripple voltage and current will increase, and then in this state, if the equipment works for a long time, it is easy to be damaged. When using DC power supply, it is not necessary to connect a large energy storage filter capacitor, and if a large energy storage filter capacitor is connected by mistake, then due to the energy storage process of the energy storage filter capacitor, a large impact current will be generated when powered on, and then the power supply end may also have overcurrent protection or even damage.

[0058] Based on this, in an embodiment of the present application, an AC / DC power supply device includes an AC / DC detection module, a rectifier module, a first switch module, a second switch module, an AC energy storage module, a fault detection module and a processor module; wherein the AC / DC detection module is connected to the input end of the rectifier module, so that the AC / DC detection module can detect the voltage type input from the power supply end to the rectifier module, and then the processor module can be connected through the other end of the AC / DC detection module to inform the processor module of the voltage type, and then, the control end of the first switch module connected to the processor module can be used to control the switching state of the first switch module, and then the working state of the AC energy storage module connected thereto can be detected through the detection end of the fault detection module, and the working state is fed back to the processor module, so that when the processor module determines that the working state of the AC energy storage module matches the input voltage type, the second switch module connected to the output end of the power supply module is controlled to be turned on to supply power to the load connected to one end of the second switch module.

[0059] It can be seen that in the embodiment of the present application, the AC / DC detection module can be used to detect the voltage type input to the rectifier module, that is, the voltage type input to the power supply device, and the fault detection module can be used to detect the working state of the AC energy storage module, and the processor module can be used to determine whether the voltage type and the working state match, so as to determine whether an abnormality has occurred in the current power supply process, and only when it is determined to match, that is, when no power supply abnormality has occurred, will power be supplied to the load, so that the load can work stably and normally, and the stability of the power supply equipment can be improved.

[0060] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0061] like Figure 1 As shown, it is a schematic diagram of an application scenario provided in an embodiment of the present application, wherein the application scenario of the information processing may include an AC / DC power supply device 10, a load 11 and a power supply end 12.

[0062] The AC / DC power supply device 10 may include one or more processors 101 and a memory 102, etc. In addition, the AC / DC power supply device 10 may also include a display panel 103, which may be used to display various information output by the processor module, such as whether abnormal power supply occurs in the AC / DC power supply device 10, and the location where the abnormality occurs. The memory 102 of the AC / DC power supply device 10 may store program instructions of the power supply method provided in the embodiment of the present application, and these program instructions can be used to implement the steps of the power supply method provided in the embodiment of the present application when executed by the processor 101.

[0063] The load 11 is the object to be powered by the AC / DC power supply device 10. According to user needs, the load 11 can be different devices, which can form a complete product together with the AC / DC power supply device 10, for example, it can be other electronic products such as cameras.

[0064] In the embodiment of the present application, when it is necessary to power the load 11, the power supply end 12 will transmit a voltage signal to the AC / DC power supply device 10, and then the processor 101 in the AC / DC power supply device 10 will call the program instructions of the power supply method stored in the memory 102, and execute the program instructions of the power supply method. When it is determined that there is no abnormal power supply in the AC / DC power supply device 10, that is, the power supply is normal, the voltage signal will be transmitted to the load 11. In addition, a prompt message indicating that the power supply is normal will be displayed on the display panel 103 to inform the user that the current power supply is normal.

[0065] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1 The functions that can be realized by each device in the application scenario shown will be described in the subsequent method embodiments, and will not be described in detail here. Below, the method of the embodiment of the present application will be introduced in conjunction with the accompanying drawings.

[0066] like Figure 2 As shown, it is a structural schematic diagram of the AC / DC power supply device provided in an embodiment of the present application. The AC / DC power supply device 10 provided in an embodiment of the present application includes an AC / DC detection module 201, a rectifier module 202, a first switch module 203, a second switch module 204, an AC energy storage module 205, a fault detection module 206 and a processor module 207.

[0067] Specifically, the input end A1 of the rectifier module 202 is connected to one end A3 of the AC / DC detection module and the power supply end 12, the output end A2 of the rectifier module 202 is respectively connected to one end A5 of the first switch module 203 and one end A11 of the second switch module 204, and the other end A4 of the AC / DC detection module 201 is connected to the processor module 207, and the processor module 207 is respectively connected to the control end A7 of the first switch module 203 and the control end A13 of the second switch module 204, the other end A6 of the first switch module 203 is connected to the input end A8 of the AC energy storage module 205, the other end A12 of the second switch module 204 is connected to the load 11, the detection end A9 of the fault detection module 206 is connected to the AC energy storage module 205, and the output end A10 of the fault detection module 206 is connected to the processor module 207.

[0068] Among them, the AC / DC detection module 201 can detect the voltage type input from the power supply end 12 to the rectifier module 202, and after the processor module 207 controls the switching state of the first switch module 203 based on the voltage type, the fault detection module 206 can be used to detect the working state of the AC energy storage module 205. Then, when the processor module 207 determines that the working state of the AC energy storage module 205 matches the voltage type input to the rectifier module 202, the second switch module 204 will be controlled to be turned on to supply power to the load 11.

[0069] exist Figure 2 In the figure, the line segment without an arrow only indicates that the modules at both ends of the line segment are connected, while the line segment with an arrow not only indicates that the modules at both ends of the line segment are connected, but also indicates the direction of information transmission between the connected modules at both ends of the line segment. For example, the line segment with an arrow between the AC / DC detection module 201 and the processor module 207 can indicate that the AC / DC detection module 201 transmits the detected voltage type to the processor module 207 through a voltage type detection signal, or the line segment with an arrow between the processor module 207 and the first switch module 203 can indicate that the processor module 207 transmits a first control signal for controlling the first switch module 203 to adjust to a first switch state corresponding to the voltage type to the first switch module 203, and so on.

[0070] In one possible implementation, due to the difference in conversion efficiency between AC power supply and DC power supply, assuming that the conversion efficiency of AC power supply is lower than that of DC power supply, if the power supply end 12 has requirements for the power consumption of the entire machine, and the AC power supply cannot meet the normal operation of the load 11, then the power supply mode can be identified to determine whether power management is needed.

[0071] See also Figure 3As shown, it is a structural schematic diagram of a power supply device including a power management module provided in an embodiment of the present application, wherein the AC / DC power supply device 10 may also include a power management module 208, and the input terminal A20 of the power management module 208 is connected to the output terminal A12 of the second switch module 204, the output terminal A21 of the power management module 208 is connected to the load 11, and the control terminal A22 is connected to the processor 207.

[0072] Specifically, when the processor module 207 determines that the voltage type input to the rectifier module 202 is alternating current, the power management module 208 can limit the power consumption of at least one component of the load 11. For example, the load 11 is a surveillance camera, and the power supply device 10 can support AC 24V and DC 36V power supply. Assuming that the power supply conversion efficiency of AC 24V is low, when the surveillance camera is working normally, if the surveillance camera is powered by AC 24V, the maximum input power required to be provided by the power supply end is 27W, and if the surveillance camera is powered by DC 36V, the maximum input power required to be provided by the power supply end is 24W. Furthermore, when the current power supply end can only provide a maximum input power of 25W for the surveillance camera, it can be seen that the use of DC 36V for power supply can meet the maximum input power requirement of the surveillance camera, while the use of AC 24V for power supply cannot meet the maximum input power requirement of the surveillance camera. Therefore, if AC 24V is used for power supply, the power management module 208 can be used to limit the power consumption of at least one component of the surveillance camera to reduce the corresponding power consumption requirement when the surveillance camera is working, so that the surveillance camera can also work when AC 24V is used for power supply. Among them, the components whose power consumption is limited are some components that are not often used by the surveillance camera, or some components whose use effect can be appropriately reduced and have little impact on the surveillance effect, for example, the fill light of the surveillance camera, the current limit power of the fill light can be appropriately reduced to reduce the fill light distance.

[0073] In a possible implementation, since the AC / DC power supply device 10 is compatible with different power supply modes, and the DC voltage after rectification by the rectifier module 202 is also uncertain, that is, the DC voltage after rectification may be too high or too low, which may cause the subsequent load to fail to operate normally and stably.

[0074] Therefore, in the embodiment of the present application, the AC / DC power supply device 10 may further include a power conversion module 209 .

[0075] like Figure 4As shown, it is a schematic diagram of the structure of the power supply device including the power conversion module. Among them, the output terminal A2 of the rectifier module 202 is connected to the input terminal A24 of the power conversion module 209, and the output terminal A25 of the power conversion module 209 is connected to the input terminal A11 of the second switch module 204. Since the direct current rectified by the AC signal through the rectifier module 202 is pulsating direct current, the output terminal A2 of the rectifier module 202 is also connected to one end A5 of the first switch module 203 to further connect with the AC energy storage module 205, so as to promote the AC energy storage module 205 to reduce the ripple in the rectified direct current, so as to make the direct current smoother, and thus make the load work more stable.

[0076] The rectifier module 202 can rectify the first voltage signal input from the power supply terminal 12 to obtain a second voltage signal, and perform voltage conversion on the second voltage signal through the power conversion module 209 to obtain a third voltage signal with a constant voltage value.

[0077] In actual use, the rectifier module is usually composed of rectifier diodes. Therefore, when the first voltage signal is a DC signal, due to the presence of a certain voltage drop in the rectifier diode, when the DC signal passes through the rectifier module 202, the second voltage signal output from the rectifier module 202 will be slightly smaller than the first voltage signal.

[0078] In a possible implementation manner, in order to facilitate the user to determine the current power supply status of the load 11, in the embodiment of the present application, the power supply device 10 may further include a display module 210, such as Figure 5 , which is a schematic diagram of the structure of a power supply device including a display module provided in an embodiment of the present application, wherein an input terminal A27 of the display module 210 is connected to an output terminal A26 of the processor module 207 .

[0079] The display module 210 may be used to display information output by the processor module 207. For example, it may display whether abnormal power supply occurs in the AC / DC power supply device 10, and information such as the specific location and cause of the abnormality.

[0080] In a possible implementation, in order to detect whether the voltage type input from the power supply terminal 12 to the rectifier module 202 is AC or DC, and generally speaking, the difference between AC and DC is that AC is a voltage whose magnitude and direction change over time according to the law of a sine function, and there is a zero crossing point. For example, the city voltage is 220V / 50Hz, and there will be two zero crossing points in one cycle, while DC is a voltage whose magnitude and direction do not change over time. Therefore, if you want to distinguish whether the voltage type input to the rectifier module 202 is AC or DC, you can select an AC zero crossing detection circuit to detect the voltage type.

[0081] Therefore, in the embodiment of the present application, the AC / DC detection module 201 can be an AC zero-crossing detection circuit. When the voltage signal input to the rectifier module 202 is an AC voltage signal, the AC zero-crossing detection circuit will output a pulse wave signal with a fixed period; and when the voltage signal input to the rectifier module 202 is a DC voltage signal, the AC zero-crossing detection circuit will output a constant logic level signal.

[0082] Specifically, a transistor, an operational amplifier or an optical coupler may be used to design the AC zero-crossing detection circuit. The following takes the use of an optical coupler to design an AC zero-crossing detection circuit as an example. Figure 6 As shown, it is a circuit diagram of designing an AC zero-crossing detection circuit using a bidirectional optical coupler, wherein the AC zero-crossing detection circuit includes a capacitor C1, a bidirectional optical coupler U1, a transistor Q1, resistors R1, R2, R3, R4 and R5. Specifically, one end of the capacitor C1 is respectively connected to one end of the resistor R1 and to port 1 of the bidirectional optical coupler U1, the other end of the capacitor C1 is respectively connected to one end of the resistor R2 and to port 2 of the bidirectional optical coupler U1, port 4 of the bidirectional optical coupler U1 is connected to voltage VCC, port 3 is connected to one end of the resistor R3, the other end of the resistor R3 is respectively connected to one end of the resistor R4 and to port 1 of the transistor Q1, one end of the resistor R4 and port 2 of the transistor Q1 are both grounded, port 3 of the transistor Q1 is connected to one end of the resistor R5, and the other end of the resistor R5 is connected to voltage VCC.

[0083] Take the AC voltage with an input frequency of 50Hz as an example. Figure 7 As shown in (a), it is a schematic diagram of the input and output waveforms of the AC voltage before and after passing through the AC zero-crossing detection circuit, wherein the AC voltage can be loaded to the L and N terminals of the AC zero-crossing detection circuit, and the waveform of the AC voltage input to the AC zero-crossing detection circuit is a sine waveform. After being processed by the AC zero-crossing detection circuit, a pulse wave signal with a fixed period can be detected through the detection (Detect) terminal. For example, a sine signal with a frequency of 50 Hz can be converted into a pulse wave signal with a frequency of 100 Hz, and then the processor module 207 can perform the next step according to the received pulse wave signal with a frequency of 100 Hz.

[0084] like Figure 7 (b) is a schematic diagram of the input and output waveforms of the DC voltage before and after passing through the AC zero-crossing detection circuit, wherein the DC voltage input to the AC zero-crossing detection circuit is a voltage signal with a constant voltage value of V1, and after being processed by the AC zero-crossing detection circuit, a logic level signal with a constant voltage value of V2 can be output.

[0085] In a possible implementation, the fault detection module 206 may include a voltage detection element 2061, and two ends of the voltage detection element 2061 are respectively connected to two ends of the AC energy storage module 205. Figure 8 , which is a schematic diagram of a fault detection module including a voltage detection element. In actual use, the voltage detection element 2061 may include a voltmeter or other components that can be used to measure voltage.

[0086] When the voltage detection element 2061 detects that there is a potential difference between the two ends of the AC energy storage module 205, it will output a working state detection signal indicating that the working state of the AC energy storage module 205 is connected to the power supply circuit corresponding to the power supply device; and when the voltage detection element 2061 detects that there is no potential difference between the two ends of the AC energy storage module 205, it will output a working state detection signal indicating that the working state of the AC energy storage module 205 is not connected to the power supply circuit corresponding to the power supply device.

[0087] In a possible implementation, the fault detection module 206 may include a current detection element 2062 and a resistor 2063, wherein one end of the current detection element 2062 is connected to one end of the AC energy storage module 205, the other end of the current detection element 2062 is connected to one end of the resistor 2063, and the other end of the resistor 2063 is connected to the other end of the AC energy storage module 205. Fig. 9 , which is a schematic diagram of a fault detection module including a current detection element and a resistor. In actual use, the current detection element 2062 may include an ammeter or other components that can be used to measure current.

[0088] When the current detection element 2062 detects that there is no current in the branch where the resistor is located, it will output a working state detection signal indicating that the working state of the AC energy storage module 205 is a non-operating state; and when the current detection element 2062 detects that there is current in the branch where the resistor is located, it will output a working state detection signal indicating that the working state of the AC energy storage module 205 is an operating state.

[0089] In a possible implementation, the AC energy storage module 205 may include a first capacitor 2051, one end of which is connected to the detection end of the fault detection module 206, and the other end of which is connected to the reference signal end. Fig.10 As shown in FIG. 1 , a schematic diagram of an AC energy storage module including a first capacitor can be used as follows: Figure 8 The voltage detection element 2061 shown is used to detect the first capacitor 2051 .

[0090] The first capacitor 2051 can be used to store energy and filter the alternating current to reduce the ripple in the rectified direct current, so as to make the direct current smoother and thus make the load work more stably.

[0091] In a possible implementation, Fig.11 As shown, it is a structural schematic diagram of a power supply device provided in an embodiment of the present application, and the power supply device 110 includes an AC / DC detection module 201, a rectifier module 202, a power conversion module 209, a second switch module 204, a processor module 207 and a display module 210. Among them, the input end A1 of the rectifier module 202 is connected to one end A3 of the AC / DC detection module and the power supply end 12, the output end A2 of the rectifier module 202 is connected to one end A24 of the power conversion module 209, the other end A25 of the power conversion module 209 is connected to one end A11 of the second switch module 204, and the other end A4 of the AC / DC detection module 201 is connected to the processor module 207, and the processor module 207 is connected to the control end A13 of the second switch module 204, the other end A12 of the second switch module 204 is connected to the load, and the input end A27 of the display module 210 is connected to the processor module 207.

[0092] In actual application, assuming that the power supply device 110 only supports DC power supply, when the power supply end 12 inputs AC to the rectifier module 202 of the power supply device 110, the AC / DC detection module 201 will detect that the voltage type input to the rectifier module 202 is an AC voltage signal, and then the processor module 207 will determine that the voltage type (AC) currently input to the power supply end 12 does not match the pre-set voltage type (DC). At this time, the processor module 207 will send a control signal to the second switch module 204 to control the second switch module 204 to disconnect, thereby achieving the purpose of protecting the load. Of course, according to the actual needs of the user, the power supply device 110 can also be set to only support AC power supply.

[0093] Next, in combination with the above-mentioned AC / DC power supply device 10, the power supply method provided by the embodiment of the present application is introduced. Fig.12 As shown, it is a schematic diagram of the flow of the power supply method provided in an embodiment of the present application. The method can be executed by the processor of the above-mentioned AC / DC power supply device 10, and the flow of the method is introduced as follows.

[0094] Step 1201: receiving a voltage type detection signal output by an AC / DC detection module, and determining the voltage type input from a power supply end to a rectifier module based on the voltage type detection signal.

[0095] In the embodiment of the present application, when the AC / DC detection module receives the voltage signal input from the power supply end to the rectifier module, the voltage signal will be detected, and after the voltage type of the voltage signal is detected, a voltage type detection signal carrying information related to the detected voltage type will be output to the processor module. Furthermore, when the processor module receives the voltage type detection signal output by the AC / DC detection module, it can determine the voltage type input from the power supply end to the rectifier module based on the voltage type detection signal.

[0096] Step 1202: Based on the determined voltage type, send a first control signal to the first switch module to control the first switch module to adjust to a first switch state corresponding to the voltage type.

[0097] In the embodiment of the present application, after the processor module determines the voltage type input from the power supply end to the rectifier module, if the voltage type is direct current, the processor module will send a first control signal to the first switch module to control the first switch module to be turned off, thereby controlling the first switch module to be adjusted to a turned-off state. If the voltage type is alternating current, the processor module will send a first control signal to the first switch module to control the first switch module to be turned on, thereby controlling the first switch module to be adjusted to a turned-on state.

[0098] Step 1203: Receive the working state detection signal output by the fault detection module, and determine whether the working state matches the voltage type based on the working state detection signal.

[0099] In the embodiment of the present application, the working state detection signal is obtained after the first switch module is adjusted to the first switch state, and is used to indicate the working state of the AC energy storage module.

[0100] Specifically, after controlling the first switch module to adjust its state, the fault detection module will detect the working state of the AC energy storage module, that is, whether the AC energy storage module is running, that is, whether it is connected to the power supply circuit corresponding to the power supply device. Then, after the fault detection module detects the working state of the AC energy storage module, it will output a working state detection signal indicating the working state of the AC energy storage module to the processor module. Then, the processor module can know the working state of the AC energy storage module. Further, the processor module can determine whether abnormal power supply occurs in the current power supply process based on whether the working state of the AC energy storage module obtained and the voltage type input from the power supply end to the rectifier module match.

[0101] Step 1204: When it is determined that the working state matches the voltage type, a second control signal is sent to the second switch module to control the second switch module to be turned on to supply power to the load.

[0102] In the embodiment of the present application, when it is determined that the working state matches the voltage type, that is, when AC power is input, the working state of the AC energy storage module is the operating state, then a second control signal for controlling the conduction of the second switch module can be sent to the second switch module, thereby controlling the conduction of the second switch module to supply power to the load. Alternatively, when DC power is input, the working state of the AC energy storage module is the non-operating state, then a second control signal for controlling the conduction of the second switch module can also be sent to the second switch module, thereby controlling the conduction of the second switch module to supply power to the load.

[0103] Otherwise, a second control signal for controlling the second switch module to be turned off is sent to the second switch module, so as to control the second switch module to be adjusted to a turned-off state.

[0104] Since the AC / DC power supply device 10 has an initial default voltage state when it is powered by AC or DC, for example, AC is used for power supply by default, or DC is used for power supply by default. Of course, when special application scenarios are not considered, both power supply modes can be used as the default voltage state. Here, DC is used for power supply by default as an example. Fig.13 As shown, it is another flowchart diagram of the power supply method provided in the embodiment of the present application. The method can be executed by the processor of the above-mentioned AC / DC power supply device 10, and the flow of the method is introduced as follows.

[0105] Step 1301: Determine whether the voltage type input from the power supply end to the rectifier module is direct current through the AC / DC detection module.

[0106] Step 1302: When it is determined to be direct current, a first control signal is sent to the first switch module to control the first switch module to adjust to a closed state.

[0107] Step 1303: Determine whether the working state of the AC energy storage module is the running state through the fault detection module.

[0108] Step 1304: When it is determined to be in a non-operating state, a second control signal is sent to the second switch module to control the second switch module to be turned on to supply power to the load.

[0109] Step 1305: When the operation state is determined, a second control signal is sent to the second switch module to control the second switch module to be turned off, and the load remains in an unpowered state.

[0110] Step 1306: When it is determined that the power is not direct current, a first control signal is sent to the first switch module to control the first switch module to adjust to a conducting state.

[0111] Step 1307: Determine whether the working state of the AC energy storage module is the running state through the fault detection module.

[0112] Step 1308: When it is determined to be in the running state, a second control signal is sent to the second switch module to control the second switch module to be turned on to supply power to the load.

[0113] Step 1309: When it is determined to be in a non-operating state, a second control signal is sent to the second switch module to control the second switch module to be turned off, and the load remains in an unpowered state.

[0114] From the above power supply process, it can be seen that when the working state of the AC energy storage module does not match the voltage type input to the rectifier module, that is, when power supply abnormality occurs, the following two methods can be used to handle it:

[0115] (1) When power supply abnormality occurs during the first power-on

[0116] If AC voltage is used for power supply, the following two conditions must be met at the same time:

[0117] ①The processor module receives a pulse wave signal with a fixed period;

[0118] ②The processor module determines that the AC energy storage module is connected to the power supply circuit.

[0119] When both conditions are met, the load can be powered on normally, otherwise the load will remain in a power-off state.

[0120] If DC voltage is used for power supply, the following two conditions must be met at the same time:

[0121] ①The processor module receives a constant logic level signal;

[0122] ② The processor module determines that the AC energy storage module is not connected to the power supply circuit.

[0123] Similarly, the load can be powered on normally only when these two conditions are met at the same time, otherwise the load will remain in a power-off state.

[0124] (2) When power supply abnormality occurs during use

[0125] If the AC voltage is supplying power, that is, the load is in working condition, due to the AC energy storage module being aged or damaged, the AC energy storage module is in an abnormal open circuit state, and the AC energy storage module appears to be connected to the power supply circuit during initial use, but not connected to the power supply circuit during subsequent use. In order to protect the load, the load will be directly powered off to prevent damage to the load due to increased ripple in the rectified DC voltage signal.

[0126] To summarize, in the embodiment of the present application, the AC / DC detection module can be used to detect the voltage type input from the power supply end to the rectifier module, and the fault detection module can be used to detect the working state of the AC energy storage module, and the processor module can be used to determine whether the voltage type matches the working state, so as to determine whether an abnormality has occurred in the current power supply process, and only when a match is determined, that is, no power supply abnormality has occurred, will power be supplied to the load, so that the load can work stably and normally, and the stability of the power supply equipment can be improved.

[0127] like Fig.14 As shown, based on the same inventive concept, an embodiment of the present application provides a power supply device 140, which includes:

[0128] The first determination unit 1401 is used to receive a voltage type detection signal output by the AC / DC detection module, and determine the voltage type input from the power supply end to the rectifier module based on the voltage type detection signal;

[0129] A first sending unit 1402 is configured to send a first control signal to the first switch module based on the determined voltage type, so as to control the first switch module to adjust to a first switch state corresponding to the voltage type;

[0130] The second determination unit 1403 is used to receive the working state detection signal output by the fault detection module, and determine whether the working state matches the voltage type based on the working state detection signal; the working state detection signal is obtained after the first switch module is adjusted to the first switch state, and is used to indicate the working state of the AC energy storage module;

[0131] The second sending unit 1404 is used to send a second control signal to the second switch module to control the second switch module to be turned on and supply power to the load when it is determined that the working state matches the voltage type.

[0132] Optionally, the first sending unit 1402 is specifically configured to:

[0133] When the voltage type is direct current, a first control signal for controlling the first switch module to be turned off is sent to the first switch module; or,

[0134] When the voltage type is alternating current, a first control signal for controlling the first switch module to be turned on is sent to the first switch module.

[0135] The device can be used to perform Figure 12-13 Therefore, for the functions that can be realized by each functional module of the device, reference can be made to Figure 12-13 The description of the illustrated embodiment is not repeated in detail.

[0136] In some possible implementations, various aspects of the method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the method according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may execute the following steps: Figure 12-13 The method executed by the device in the illustrated embodiment.

[0137] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0138] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0139] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An AC / DC power supply device, characterized in that: The power supply device includes an AC / DC detection module, a rectifier module, a first switch module, a second switch module, an AC energy storage module, a fault detection module and a processor module; The input end of the rectifier module is connected to one end of the AC / DC detection module, the output end of the rectifier module is respectively connected to one end of the first switch module and the second switch module, the other end of the AC / DC detection module is connected to the processor module, the processor module is respectively connected to the control ends of the first switch module and the second switch module, the other end of the first switch module is connected to the input end of the AC energy storage module, the other end of the second switch module is connected to the load, the detection end of the fault detection module is connected to the AC energy storage module, and the output end is connected to the processor module; Among them, the AC / DC detection module detects the voltage type input to the rectifier module, and after the processor module controls the switching state of the first switch module based on the voltage type, the fault detection module detects the working state of the AC energy storage module. When the processor module determines that the working state matches the voltage type, the second switch module is controlled to be turned on to supply power to the load.

2. The power supply device according to claim 1, characterized in that: The power supply device further comprises a power management module, wherein an input end of the power management module is connected to an output end of the second switch module, an output end is connected to the load, and a control end is connected to the processor; Among them, when the processor module determines that the voltage type input to the rectifier module is a preset voltage type, the power consumption of at least one component of the load is limited through the power management module; the preset voltage type is a voltage type whose power conversion efficiency is less than a set power conversion efficiency threshold.

3. The power supply device according to claim 1, characterized in that: The power supply device also includes a power conversion module; The input end of the power conversion module is connected to the output end of the rectifier module, and the output end of the power conversion module is connected to the input end of the second switch module; The power conversion module performs voltage conversion processing on the voltage signal output by the rectifier module to obtain a voltage signal with a constant voltage value.

4. The power supply device according to claim 1, characterized in that: The power supply device further comprises a display module, an input end of the display module being connected to an output end of the processor module; Wherein, the display module is used to display the information output by the processor module.

5. The power supply device according to claim 1, characterized in that: The AC / DC detection module is an AC zero-crossing detection circuit; Wherein, when the voltage signal input to the rectifier module is an AC voltage signal, the AC zero-crossing detection circuit outputs a pulse wave signal with a fixed period; or, when the voltage signal input to the rectifier module is a DC voltage signal, the AC zero-crossing detection circuit outputs a constant logic level signal.

6. The power supply device according to claim 1, characterized in that: The fault detection module includes a voltage detection element, and two ends of the voltage detection element are respectively connected to two ends of the AC energy storage module; Wherein, when the voltage detection element detects that there is a potential difference between the two ends of the AC energy storage module, a working state detection signal indicating that the working state of the AC energy storage module is a running state is output; or, When the voltage detection element detects that there is no potential difference between the two ends of the AC energy storage module, a working state detection signal indicating that the working state of the AC energy storage module is a non-operating state is output.

7. The power supply device according to claim 1, characterized in that: The fault detection module includes a current detection element and a resistor; one end of the current detection element is connected to one end of the AC energy storage module, the other end of the current detection element is connected to one end of the resistor, and the other end of the resistor is connected to the other end of the AC energy storage module; Wherein, when the current detection element detects that there is no current in the branch where the resistor is located, a working state detection signal indicating that the working state of the AC energy storage module is a non-operating state is output; Alternatively, when the current detection element detects that there is current in the branch where the resistor is located, a working state detection signal indicating that the working state of the AC energy storage module is the running state is output.

8. The power supply device according to claim 1, characterized in that: The AC energy storage module includes a first capacitor; one end of the first capacitor is connected to the detection end of the fault detection module, and the other end is connected to the reference signal end; Wherein, the first capacitor is used for storing energy and filtering the alternating current.

9. A power supply method based on the AC / DC power supply device according to any one of claims 1 to 8, characterized in that: The method comprises: receiving a voltage type detection signal output by the AC / DC detection module, and determining a voltage type input to the rectifier module based on the voltage type detection signal; Based on the determined voltage type, sending a first control signal to the first switch module to control the first switch module to adjust to a first switch state corresponding to the voltage type; receiving a working state detection signal output by the fault detection module, and determining whether the working state matches the voltage type based on the working state detection signal; the working state detection signal is obtained after the first switch module is adjusted to the first switch state, and is used to indicate the working state of the AC energy storage module; When it is determined that the working state matches the voltage type, a second control signal is sent to the second switch module to control the second switch module to be turned on to supply power to the load.

10. The method according to claim 9, characterized in that The step of sending a first control signal to a first switch module based on the determined voltage type includes: When the voltage type is direct current, sending a first control signal to the first switch module to control the first switch module to be turned off; or, When the voltage type is alternating current, a first control signal for controlling the first switch module to be turned on is sent to the first switch module.

11. A power supply device, characterized in that: The device comprises: a first determination unit, configured to receive a voltage type detection signal output by the AC / DC detection module, and determine a voltage type input to the rectifier module based on the voltage type detection signal; A first sending unit, configured to send a first control signal to the first switch module based on the determined voltage type, so as to control the first switch module to adjust to a first switch state corresponding to the voltage type; a second determination unit, configured to receive a working state detection signal output by the fault detection module, and determine whether the working state matches the voltage type based on the working state detection signal; the working state detection signal is obtained after the first switch module is adjusted to the first switch state, and is used to indicate the working state of the AC energy storage module; A second sending unit is used to send a second control signal to the second switch module when it is determined that the working state matches the voltage type, so as to control the second switch module to be turned on and supply power to the load; Among them, the input end of the rectifier module is connected to one end of the AC / DC detection module, the output end of the rectifier module is respectively connected to one end of the first switch module and the second switch module, the other end of the AC / DC detection module is connected to the first determination unit, the first sending unit and the second sending unit are respectively connected to the control ends of the first switch module and the second switch module, the other end of the first switch module is connected to the input end of the AC energy storage module, the other end of the second switch module is connected to the load, the detection end of the fault detection module is connected to the AC energy storage module, and the output end is connected to the second determination unit.

12. A computer storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the method according to any one of claims 9 to 10 are implemented.