Evidence obtaining circuit for mistakenly inserting equipment into alternating current, equipment and equipment fault detection method
By designing an evidence collection circuit in a DC input device and using rectifier and voltage sampling control switch modules, evidence is only retained when AC power is inserted, which solves the problem of difficulty in positioning the fault due to the mistaken insertion of AC power by the DC input device, and accurately locates and evidence storage of the cause of the fault.
Patent Information
- Application Number
- CN202410146311.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2025-08-01
AI Technical Summary
When a DC input device accidentally inserts AC power, causing a failure, the prior art cannot retain evidence, making it difficult to locate and store the cause of the failure.
Design an evidence forensic circuit for which the equipment is mistakenly inserted into AC power, including a rectifier module, a sampling module, a switch module and an evidence forensic module. Through half-wave rectification and voltage sampling, the evidence for the forensic module is only enabled when the AC power is inserted to retain evidence.
In the event of a equipment failure, the cause of the failure can be effectively located by retaining evidence, avoiding misinformation of evidence to affect the normal operation of the equipment, and improving the accuracy and reliability of troubleshooting.
Smart Images

Figure CN120405509A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technologies, and particularly to a forensics circuit for a device accidentally plugged into alternating current, a device, and a device fault detection method. Background Art
[0002] A direct-current input device generally refers to a device that needs to be plugged into direct current during operation, that is, a device powered by direct current. A direct-current input device usually includes a direct-current power input port. When using the direct-current input device, direct current can be plugged into this port. In this way, the direct-current voltage can be input into the direct-current input device through this port to supply power to the device and enable the device to work properly.
[0003] However, when actually using a direct-current input device, there may be a situation where alternating current is accidentally plugged into the direct-current power input port. In this case, since the alternating current does not match the power consumption of the direct-current input device, the device will malfunction or even be damaged. When the device malfunctions, the cause of the malfunction is usually investigated. However, for the situation where the device is accidentally plugged into alternating current, since there is no evidence retention in the related art, it will be difficult to confirm whether the device malfunction is caused by accidentally plugging into alternating current, and thus the cause of the malfunction cannot be effectively located and documented. Summary of the Invention
[0004] The present application provides a forensics circuit for a device accidentally plugged into alternating current, a device, and a device fault detection method, which are used to solve the problem that when a direct-current input device malfunctions due to accidentally plugging into alternating current, the cause of the malfunction cannot be effectively located and documented due to lack of evidence retention.
[0005] To solve the above technical problems, the present application is implemented as follows:
[0006] In a first aspect, a forensics circuit for a device accidentally plugged into alternating current is provided, including a rectification module, a sampling module, a switching module, and a forensics module, where:
[0007] The rectification module is connected to the sampling module, the sampling module is connected to the switching module, and the switching module is connected to the forensics module;
[0008] In the case where the device is accidentally plugged into alternating current, the rectification module is used to perform half-wave rectification on the alternating-current voltage and output a first voltage to the sampling module, the sampling module is used to sample the first voltage and output a second voltage to the switching module, the switching module is turned on under the control of the second voltage, and in the case where the switching module is turned on, the forensics module is in a working state and conducts forensics on the device accidentally plugged into alternating current.
[0009] In a second aspect, a device is provided, including the evidence collection circuit described in the first aspect above.
[0010] In a third aspect, a method for detecting device faults based on the evidence collection circuit described in the first aspect above is provided, including:
[0011] When a device fails, determining whether the evidence collection module collects evidence of the device being accidentally inserted with alternating current;
[0012] When the evidence collection module collects evidence of the device being accidentally inserted with alternating current, determining that the cause of the device failure includes the device being accidentally inserted with alternating current.
[0013] In the embodiments of the present application, when the device is accidentally inserted with alternating current, the rectification module can perform half-wave rectification on the alternating voltage and then output a first voltage to the sampling module. The sampling module can sample the first voltage and output a second voltage to the switching module. The switching module is turned on under the action of the second voltage, so that the evidence collection module can be in a working state and collect evidence of the device being accidentally inserted with alternating current. Thus, when the device is accidentally inserted with alternating current, since the evidence collection module will leave corresponding evidence, that is, the evidence collection module will store the evidence of the device being accidentally inserted with alternating current, therefore, when the device fails, the cause of the device failure can be effectively located according to the retained evidence, which is convenient for troubleshooting the cause of the failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0015] Figure 1 is a schematic structural diagram of the evidence collection circuit for the device being accidentally inserted with alternating current in the first embodiment of the present application;
[0016] Figure 2 is a schematic structural diagram of the evidence collection circuit for the device being accidentally inserted with alternating current in the second embodiment of the present application;
[0017] Figure 3 is a schematic structural diagram of the evidence collection circuit for the device being accidentally inserted with alternating current in the third embodiment of the present application;
[0018] Figure 4 is a schematic structural diagram of the evidence collection circuit for the device being accidentally inserted with alternating current in the fourth embodiment of the present application;
[0019] Figure 5It is a schematic structural diagram of a forensics circuit for misinsertion of alternating current in the fifth embodiment of the present application;
[0020] Figure 6 It is a schematic structural diagram of a forensics circuit for misinsertion of alternating current in the sixth embodiment of the present application;
[0021] Figure 7 It is a schematic structural diagram of a forensics circuit for misinsertion of alternating current in the seventh embodiment of the present application;
[0022] Figure 8 It is a schematic structural diagram of a forensics circuit for misinsertion of alternating current in the eighth embodiment of the present application;
[0023] Figure 9 It is a schematic flowchart of a device fault detection method according to an embodiment of the present application. Detailed implementation manners
[0024] In order to enable those skilled in the art to better understand the technical solutions in the present application, the following will clearly and completely describe the technical solutions in the present application with reference to the accompanying drawings in one or more embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0025] The terms "first", "second", etc. in the present application and the claims are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the present application can be implemented in an order other than those illustrated or described herein. In addition, "and / or" in the present application and the claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0026] The following will detail the technical solutions provided by each embodiment of the present application with reference to the accompanying drawings.
[0027] Figure 1 It is a schematic structural diagram of a forensics circuit 10 for misinsertion of alternating current in the first embodiment of the present application. As Figure 1 shown, the forensics circuit 10 includes a rectification module 11, a sampling module 12, a switching module 13, and a forensics module 14. The rectification module 11 is connected to the sampling module 12, the sampling module 12 is connected to the switching module 13, and the switching module 13 is connected to the forensics module 14.
[0028] Based on Figure 1The shown evidence collection circuit, in the case of the device being accidentally inserted into alternating current, the rectification module 11 is used to perform half-wave rectification on the alternating voltage and output a first voltage to the sampling module 12. The sampling module 12 is used to sample the first voltage and output a second voltage to the switching module 13. The switching module 13 is turned on under the control of the second voltage. In the case where the switching module 13 is turned on, the evidence collection module 14 is in a working state and collects evidence for the device being accidentally inserted into alternating current.
[0029] In this way, since in the case of the device being accidentally inserted into alternating current, the evidence collection module 14 will leave corresponding evidence, that is, the evidence collection module 14 will store evidence for the device being accidentally inserted into alternating current. Therefore, when the device fails, the cause of the device failure can be effectively located according to the retained evidence, which is convenient for troubleshooting the cause of the failure. For example, in the case of the device failing, if the evidence collection module 14 has retained evidence of the device being accidentally inserted into alternating current, it can be determined that the cause of the device failure at least includes the device being accidentally inserted into alternating current. On the contrary, if the evidence collection module 14 has not retained evidence of the device being accidentally inserted into alternating current, it can be determined that the device failure is not caused by accidentally inserting into alternating current.
[0030] Optionally, in some embodiments, Figure 1 In the case of the device being inserted into direct current or a lightning surge, the shown evidence collection circuit 10, the sampling module 12 is further used to sample the direct voltage or the voltage generated under a lightning surge and output a third voltage to the switching module 13. The switching module 13 is turned off under the control of the third voltage. In the case where the switching module 13 is turned off, the evidence collection module 14 will be in a non-working state, that is, the evidence collection module 14 will not collect evidence.
[0031] In this way, since the evidence collection module 14 in the evidence collection circuit 10 will not collect evidence in the case of the device being inserted into direct current or a lightning surge, and will only collect evidence in the case of the device being accidentally inserted into alternating current. Therefore, not only can it avoid the problem that the evidence collection module 14 still collects evidence in the scenarios of the device working normally or a lightning surge, resulting in the subsequent inability to accurately determine whether the device is accidentally inserted into alternating current, but also it can avoid affecting the normal operation of the device due to false evidence collection, improving reliability.
[0032] Optionally, in some embodiments, Figure 1The rectification module 11 shown may include a diode. The sampling module 12 may include a first resistor and a second resistor. The switching module 13 may include a switching element. The evidence collection module 14 may include an evidence collection element. Among them, the evidence collection element may include a first state and a second state. When the evidence collection module 14 is in the working state, the evidence collection element is converted from the first state to the second state, and the second state cannot be converted back to the first state. That is to say, when the device is accidentally inserted into alternating current, if the evidence collection element is in the first state, the evidence collection element will switch from the first state to the second state. If the evidence collection element is already in the second state, the evidence collection element will remain in the second state unchanged. In the second state, the evidence collection element will collect evidence of the device being accidentally inserted into alternating current. When the device is inserted into direct current or a lightning surge, if the evidence collection element is in the first state, it will remain in the first state unchanged. In the first state, the evidence collection element will not collect evidence. If the evidence collection element is in the second state, the second state will remain unchanged and will not be converted to the first state.
[0033] When the rectification module 11 includes a diode, the sampling module 12 includes a first resistor and a second resistor, the switching module 13 includes a switching element, and the evidence collection module 14 includes an evidence collection element, the connection manner between these elements may be as Figure 2 shown.
[0034] Figure 2 In, the anode of the diode VD ( Figure 2 the 1 end shown) is connected to the positive line Vin+ (or Vout+) of the main power circuit. The cathode of the diode VD ( Figure 2 the 2 end shown) is respectively connected to one end of the first resistor R1 ( Figure 2 the 3 end shown) and the input end of the switching element S ( Figure 2 the 7 end shown). The other end of the first resistor R1 ( Figure 2 the 4 end shown) is respectively connected to one end of the second resistor R2 ( Figure 2 the 5 end shown) and the controlled end of the switching element S ( Figure 2 the 8 end shown). The other end of the second resistor R2 ( Figure 2 the 6 end shown) is connected to the negative line Vin- (or Vout-) of the main power circuit. The output end of the switching element S ( Figure 2 the 9 end shown) is connected to the input end of the evidence collection element P ( Figure 2 the 10 end shown). The output end of the evidence collection element P ( Figure 2 the 11 end shown) is connected to the negative line Vin- (or Vout-) of the main power circuit.
[0035] Figure 2In the evidence-taking circuit shown, the second resistor R2 is a sampling resistor, and the voltage across the second resistor is the voltage output by the sampling module 12 to the switching module 13, that is, the voltage output to the control terminal ( Figure 2 the 8-terminal shown) of the switching element S.
[0036] Based on Figure 2 the evidence-taking circuit shown, in the case of the device being accidentally inserted into alternating current, the evidence-taking element P will take evidence of the device being accidentally inserted into alternating current. In the case of the device being inserted into direct current or lightning surge, the evidence-taking element P will be in a non-operating state. To achieve such a purpose, Figure 2 the voltage across the second resistor R2 in
[0037] the following conditions need to be satisfied at least:
[0038] In the case of the device being inserted into direct current or lightning surge, the voltage across the second resistor R2 is less than the turn-on voltage of the switching element S;
[0039] In the case of the device being accidentally inserted into alternating current, the voltage across the second resistor R2 is greater than the turn-on voltage of the switching element S and less than the maximum withstand voltage of the switching element S.
[0040] The switching element S is a switching element with a turn-on voltage. When the input voltage at the control terminal of the switching element S is greater than the turn-on voltage, that is, when the voltage difference between the control terminal and the output terminal of the switching element S is greater than the threshold voltage, the switching element S will turn on (i.e., the switching element S conducts). At this time, the input terminal and the output terminal of the switching element S are conducting. When the input voltage at the control terminal of the switching element S is less than the turn-on voltage, that is, when the voltage difference between the control terminal and the output terminal of the switching element S is less than or equal to the threshold voltage, the switching element S will turn off (i.e., the switching element S cuts off or disconnects). At this time, the input terminal and the output terminal of the switching element S are disconnected. In addition, the switching element S has a maximum withstand voltage. When the input voltage at the control terminal of the switching element S is less than the maximum withstand voltage, the switching element S will not be damaged. When the input voltage at the control terminal of the switching element S is greater than or equal to the maximum withstand voltage, the switching element S will be damaged.Based on the above switching characteristics of the switching element S, when the device is inserted with direct current or a lightning surge, the voltage across the second resistor R2 needs to be less than the turn-on voltage of the switching element S. In this way, when the device is inserted with direct current or a lightning surge, the switching element S will not turn on. Correspondingly, the evidence-taking element P will be in a non-operating state (or the first state), that is, the evidence-taking element P will not take evidence. When the device is accidentally inserted with alternating current, the voltage across the second resistor R2 needs to be greater than the turn-on voltage of the switching element S. In this way, when the device is accidentally inserted with alternating current, the switching element S turns on. Correspondingly, the evidence-taking element P will be converted from the first state to the second state and take evidence of the accidental insertion of alternating current by the device in the second state. In addition, when the device is accidentally inserted with alternating current, the voltage across the second resistor R2 also needs to be less than the maximum withstand voltage of the switching element S. In this way, when the switching element S turns on, the switching element S will not be damaged due to the excessive voltage input at the control end, thereby affecting the evidence-taking element P to take evidence of the accidental insertion of alternating current by the device.
[0041] In order to make the voltage across the second resistor R2 meet the above conditions, optionally, in some embodiments, the resistance ratio of the first resistor R1 and the second resistor R2 can be set, that is, a suitable resistance ratio is selected, and at the same time, a switching element S with a suitable turn-on voltage is selected. On the one hand, it is ensured that within the normal DC operating voltage range of the device or the voltage range generated by a lightning surge, the voltage across the second resistor R2 will not turn on the switching element S. On the other hand, it is ensured that when the device is accidentally inserted with alternating current, the voltage across the second resistor R2 can turn on the switching element S and will not damage the switching element S. One possible example of parameter setting is as follows:
[0042] The resistance value of R1 is set to 190K, the resistance value of R2 is set to 10K, and the switching element S can be a switching element with a turn-on voltage of 10V. In this configuration, when the device is inserted into normal direct current (38V - 72V), the operating current in the branches of R1 and R2 is between 0.19mA and 0.36mA, and the voltage value of the feedback signal fed back by R2 to the switching element S (i.e., the voltage value across R2) is between 1.9V and 3.6V. This voltage is less than the turn-on voltage of the switching element S and cannot enable the switching element S to reach the turn-on condition. When a lightning surge occurs, the equivalent voltage at the input port of the device is approximately 80V - 120V. At this time, the operating current in the branches of R1 and R2 is between 0.4mA and 0.6mA, and the voltage value of the feedback signal fed back by R2 to the switching element S (i.e., the voltage value across R2) is between 4V and 6V. This voltage is less than the turn-on voltage of the switching element S and cannot enable the switching element S to reach the turn-on condition. When the device is misinserted into alternating current, when the amplitude of the alternating voltage reaches 200V, the voltage value of the feedback signal fed back by R2 to the switching element S (i.e., the voltage value across R2) will reach 10V, meeting the turn-on condition of the switching element S. At this time, current will flow through the evidence-taking element P, and the evidence-taking element P will conduct evidence-taking, thus achieving the purpose of evidence-taking.
[0043] Optionally, in some embodiments, in order to prevent the first resistor R1 and the second resistor R2 from being damaged due to excessive current, it is also possible to select appropriate resistance values while choosing a suitable resistance ratio to reduce the current flowing through the first resistor R1 and the second resistor R2. For example, taking the resistance ratio of R1 and R2 in the above example as 19:1, if the maximum allowable current flowing through R1 and R2 is 1mA and the maximum voltage across R1 and R2 is 250V in the case of misinsertion into alternating current, then the minimum resistance value of R1 is 237.5K, and the minimum resistance value of R2 is 12.5K.
[0044] Figure 2 The working principle of the illustrated evidence-taking circuit is as follows:
[0045] In the case of incorrect insertion of alternating current into the device, that is, when an alternating voltage is input across Vin+ and Vin-, during the positive half-cycle of the alternating current, the diode VD conducts under the action of the alternating voltage. The diode VD performs half-wave rectification on the alternating voltage to obtain a first voltage and outputs the first voltage across the first resistor R1 and the second resistor R2. The second resistor R2 samples the first voltage, and the sampled voltage is the voltage across the second resistor R2. The voltage across the second resistor R2 is greater than the turn-on voltage of the switching element S, and the switching element S turns on. When the switching element S is turned on, the alternating voltage will be applied to the evidence-taking element P through the diode VD and the switching element S. At this time, a current will flow through the evidence-taking element P, and the evidence-taking element P will switch from the first state to the second state. In the second state, the evidence-taking element P will take evidence of the incorrect insertion of alternating current into the device, achieving the purpose of evidence-taking. During the negative half-cycle of the alternating current, the diode VD is turned off under the action of the alternating voltage, and the evidence-taking circuit is in a non-operating state.
[0046] In the case of inserting direct current or lightning surge into the device, that is, when a direct voltage or a voltage generated by a lightning surge is input across Vin+ and Vin-, the diode VD conducts under the action of the direct voltage or the voltage generated by the lightning surge. The direct voltage or the voltage generated by the lightning surge will be applied across the first resistor R1 and the second resistor R2 through the diode VD. The second resistor R2 samples the direct voltage or the voltage generated by the lightning surge, and the sampled voltage is the voltage across the second resistor R2. The voltage across the second resistor R2 is less than the turn-on voltage of the switching element S, and the switching element S turns off. When the switching element S is turned off, no current will flow through the evidence-taking element P, and the evidence-taking element P does not work, that is, it does not take evidence, and the device operates normally. Among them, when the evidence-taking element P does not work, the evidence-taking element P can be in the first state (optionally, if the device has been incorrectly inserted with alternating current before inserting direct current or lightning surge, then the evidence-taking element P will be in the second state, and when the device inserts direct current or lightning surge, the evidence-taking element P will remain in the second state unchanged).
[0047] Optionally, in some embodiments, the switching element S can be a MOS transistor. The controlled terminal of the switching element S is the gate of the MOS transistor, the input terminal of the switching element S is the drain of the MOS transistor, and the output terminal of the switching element S is the source of the MOS transistor. When the switching element S is a MOS transistor, the structure of the corresponding evidence-taking circuit can be as Figure 3 shown.
[0048] Figure 3 The working principle of the shown evidence-taking circuit is the same as Figure 2The working principle of the evidence-taking circuit shown is the same and will not be described again here. Among them, when the device is inserted with direct current or a lightning surge, the voltage across the second resistor R2 is less than the turn-on voltage of the MOS transistor (VT), and the MOS transistor is turned off, and the evidence-taking element P will not take evidence. When the device is misinserted with alternating current, the voltage across the second resistor R2 is greater than the turn-on voltage of the MOS transistor, the MOS transistor is turned on, and current flows through the evidence-taking element P, and the evidence-taking element P takes evidence of the misinsertion of alternating current by the device to achieve the purpose of evidence-taking.
[0049] It should be noted that in other possible implementation manners, the switching element may also be other components or circuits with switching characteristics other than the MOS transistor, such as a triode, a relay, etc., and will not be exemplified one by one here. Among them, when the switching element is a triode, the controlled end of the switching element is the base of the triode, the input end of the switching element is the collector of the triode, and the output end of the switching element is the emitter of the triode. When the switching element is a relay, the controlled end of the switching element is the common terminal of the relay, the input end of the switching element is the normally closed terminal of the relay, and the output end of the switching element is the normally open terminal of the relay (it should be noted that there are various types of relays, and different types of relays have different ports. Here, only the relay with three ports (i.e., the common terminal, the normally open terminal, and the normally closed terminal) is taken as an example for description. The connection manner of other types of relays in the evidence-taking circuit can be determined according to the actual situation as long as the switching characteristics of the switching element in the embodiment of the present application can be realized).
[0050] Optionally, in some embodiments, the evidence-taking element may be a fuse. The input end of the evidence-taking element is one end of the fuse, the output end of the evidence-taking element is the other end of the fuse, the first state of the evidence-taking element may be the non-fused state of the fuse, and the second state of the evidence-taking element may be the fused state of the fuse. When the evidence-taking element is a fuse, the structure of the corresponding evidence-taking circuit may be as Figure 4 shown.
[0051] Figure 4 The working principle of the evidence-taking circuit shown is the same as that of the evidence-taking circuit shown in Figure 2 and will not be described again here. Among them, when the device is inserted with direct current or a lightning surge, the fuse FU will not blow. When the device is misinserted with alternating current, current flows through the fuse FU, and the fuse FU will blow, thereby leaving evidence to achieve the purpose of evidence-taking.
[0052] It should be noted that in other possible implementation manners, the evidence-taking component may also be other components except for the fuse, as long as the component has at least two states, and when a large current flows through the component, the component can be switched from state 1 to state 2, and evidence can be taken in state 2 and will not be switched back from state 2 to state 1. Here, other possible components will not be exemplified one by one.
[0053] Optionally, in some embodiments, since a large current will pass through the evidence-taking component during operation, in order to avoid dangerous situations such as smoking and fire caused by damage to the switching component due to excessive current stress, a current-limiting resistor may be provided in the switching module so that the current flowing through the switching component and the evidence-taking component will neither damage the switching component nor prevent the evidence-taking component from taking evidence.
[0054] When a current-limiting resistor is included in the switching module, the structure of the evidence-taking circuit may be as Figure 5 shown. Figure 5 In, one end of the current-limiting resistor R3 (i.e., Figure 5 the 12th end shown) is connected to the cathode of the diode VD (i.e., Figure 5 the 2nd end shown), and the other end of the current-limiting resistor R3 (i.e., Figure 5 the 13th end shown) is connected to the input end of the switching component S (i.e., Figure 5 the 7th end shown).
[0055] Figure 5 The working principle of the evidence-taking circuit shown in Figure 2 is the same as that of the evidence-taking circuit shown in, and will not be described repeatedly here. Among them, when the device is accidentally inserted into the alternating current, a current will pass through the current-limiting resistor R3 and flow through the switching component S and the evidence-taking component P. Since the current-limiting resistor R3 is added, the current flowing through the switching component S can be reduced to avoid damaging the switching component S. In addition, since the resistance value of the current-limiting resistor R3 is not too large, the current flowing through the evidence-taking component P can ensure that the evidence-taking component P is switched from the first state to the second state and evidence of the accidental insertion of the device into the alternating current can be obtained in the second state. For example, when the evidence-taking component P is a fuse, after adding the current-limiting resistor R3, the current flowing through the switching component S and the fuse will, on the one hand, not damage the switching component S, and on the other hand, can cause the fuse to blow and leave evidence.
[0056] Optionally, in some embodiments, in order to improve the anti-interference ability of the circuit, a first capacitor may also be provided in the sampling module. Among them, the first capacitor may be connected in parallel at both ends of the second resistor. As Figure 6 shown, a first capacitor C1 is connected in parallel at both ends of the second resistor R2, and the first capacitor C1 can improve the anti-interference ability of the evidence-taking circuit. Figure 6 The working principle of the evidence-taking circuit shown inFigure 2 The working principle of the evidence collection circuit shown is the same, and will not be described repeatedly here.
[0057] Optionally, in some embodiments, the number of diodes in the rectification module may include multiple. Taking the diodes including the first diode and the second diode as an example, the structure of the corresponding evidence collection circuit may be as Figure 7 shown. Figure 7 In [figure], the anode of the first diode VD1 (i.e., Figure 7 the 1a end shown) and the anode of the second diode VD2 (i.e., Figure 7 the 1b end shown) are connected to the positive line Vin+ (or Vout+) of the main power loop. The cathode of the first diode VD1 (i.e., Figure 7 the 2a end shown) is connected to one end of the first resistor R1 (i.e., Figure 7 the 3 end shown). The cathode of the second diode VD2 (i.e., Figure 7 the 2b end shown) is connected to the input end of the switching element S (i.e., Figure 7 the 7 end shown).
[0058] Figure 7 The working principle of the evidence collection circuit shown is as follows:
[0059] When the device is inserted with direct current or lightning surge, the first diode VD1 conducts, and the direct current voltage or the voltage generated under the lightning surge will be applied across the first resistor R1 and the second resistor R2 through the first diode VD1. The voltage across the second resistor R2 is less than the turn-on voltage of the switching element S, and the switching element S is turned off. When the switch S is turned off, no current will flow through the evidence collection element P, that is, the evidence collection element P does not work, that is, no evidence is collected, and the device works normally.
[0060] When the device is accidentally inserted with alternating current, in the positive half-cycle of the alternating current, the first diode VD1 conducts under the action of the alternating current voltage. The first diode VD1 performs half-wave rectification on the alternating current voltage to obtain the first voltage and outputs the first voltage across the first resistor R1 and the second resistor R2. The voltage across the second resistor R2 is greater than the turn-on voltage of the switching element S, and the switching element S is turned on. When the switching element S is turned on, the second diode VD2 conducts, and the alternating current voltage will be applied across the evidence collection element P through the second diode VD2 and the switching element S. At this time, current will flow through the evidence collection element P, and the evidence collection element P will be converted from the first state to the second state. In the second state, the evidence collection element P will collect evidence of the accidental insertion of alternating current into the device, achieving the purpose of evidence collection. In the negative half-cycle of the alternating current, both the first diode VD1 and the second diode VD2 are in the cut-off state, and the evidence collection circuit is in the non-working state.
[0061] It should be noted that in other possible implementation manners, it can also be in Figure 7One or more diodes are connected in series between the first diode VD1 and the first resistor R1 shown, or, Figure 7 one or more diodes are connected in series between the second diode VD2 and the switch element S shown, and the working principle of the corresponding circuit is the same as that of Figure 7 the evidence-taking circuit shown.
[0062] Optionally, in other possible implementation manners, the evidence-taking circuit may also be Figures 2 to 7 any combination of the circuits shown (here, any combination may be replacing one or more components in a certain figure with the corresponding components in other figures). For example, in a more specific implementation manner, the evidence-taking circuit may be as shown in Figure 8 shown. Figure 8 For the working principle of the evidence-taking circuit shown, reference may be made to the working principle of the evidence-taking circuit shown in Figures 2 to 7 shown, which will not be elaborated here in detail.
[0063] Based on the evidence-taking circuit in the embodiments of the present application, in the case where the device is accidentally inserted into the alternating current, the rectification module can perform half-wave rectification on the alternating voltage and output the first voltage to the sampling module. The sampling module can sample the first voltage and output the second voltage to the switch module. The switch module is turned on under the action of the second voltage, so that the evidence-taking module can be in a working state and take evidence of the device accidentally inserted into the alternating current. Thus, in the case where the device is accidentally inserted into the alternating current, since the evidence-taking module will leave corresponding evidence, that is, the evidence-taking module will store the evidence of the device accidentally inserted into the alternating current, therefore, when the device fails, the cause of the device failure can be effectively located according to the retained evidence, which is convenient for troubleshooting the cause of the failure.
[0064] The embodiments of the present application also propose a device, which may include the device accidental insertion of alternating current evidence-taking circuit provided in the embodiments of the present application. Optionally, the device may be a first device or a second device. The first device is a device powered by direct current, and the evidence-taking circuit may be arranged at the direct current power input port of the first device. The second device may be a device powered by direct current or alternating current, and the evidence-taking circuit may be arranged at the direct current power input port of the second device.
[0065] In this way, by arranging the evidence-taking circuit provided in the embodiments of the present application in the first device or the second device, it is possible to take evidence of the device accidentally inserted into the alternating current, so that when the first device or the second device fails, it can be determined according to the evidence-taking circuit whether the device failure is caused by accidentally inserting into the alternating current, thereby effectively locating the cause of the device failure and facilitating the troubleshooting of the cause of the failure.
[0066] Figure 9 is a schematic flowchart of a device failure detection method according to an embodiment of the present application. Figure 9The device fault detection method shown is implemented based on the evidence collection circuit provided in the embodiments of the present application. Figure 9 The device fault detection method shown is as described below.
[0067] S902: When a device fails, determine whether the evidence collection module collects evidence of the device being wrongly plugged into alternating current.
[0068] S904: When the evidence collection module collects evidence of the device being wrongly plugged into alternating current, determine that the cause of the device failure includes the device being wrongly plugged into alternating current.
[0069] The device here can be the above-mentioned first device or second device. When the first device or the second device fails, it can be determined whether the evidence collection module in the evidence collection circuit collects evidence of the device being wrongly plugged into alternating current. If the evidence collection module collects evidence of the device being wrongly plugged into alternating current, it can be determined that the cause of the device failure at least includes the device being wrongly plugged into alternating current. If the evidence collection module does not collect evidence of the device being wrongly plugged into alternating current, it can be determined that the cause of the device failure is not the device being wrongly plugged into alternating current. For example, the evidence collection module includes a fuse. When the device fails, if the fuse blows, it can be determined that the cause of the device failure at least includes the device being wrongly plugged into alternating current. If the fuse does not blow, it can be determined that the device failure is not caused by the device being wrongly plugged into alternating current. Thus, effective positioning of the device failure can be achieved, facilitating fault troubleshooting.
[0070] In summary, the above are only the preferred embodiments of the present application and are not used to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0071] The system, device, module or unit illustrated in the above embodiments can be specifically implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.
[0072] It should also be noted that the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, commodity or device comprising a series of elements not only includes those elements but also other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising said element.
[0073] Each embodiment in this application is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other, and the differences between each embodiment and other embodiments are emphasized. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant parts, reference can be made to the description of the method embodiment.
Claims
1. An evidence collection circuit for misinsertion of alternating current into a device, comprising a rectification module, a sampling module, a switching module, and an evidence collection module, wherein: The rectification module is connected to the sampling module, the sampling module is connected to the switching module, and the switching module is connected to the evidence collection module; In the case of misinsertion of alternating current into the device, the rectification module is configured to perform half-wave rectification on the alternating voltage and output a first voltage to the sampling module, the sampling module is configured to sample the first voltage and output a second voltage to the switching module, the switching module is turned on under the control of the second voltage, and in the case where the switching module is turned on, the evidence collection module is in an operating state and collects evidence of misinsertion of alternating current into the device.
2. The circuit according to claim 1, in the case of insertion of direct current or lightning surge into the device, the sampling module is configured to sample the direct voltage or the voltage generated under lightning surge and output a third voltage to the switching module, the switching module is turned off under the control of the third voltage, and in the case where the switching module is turned off, the evidence collection module is in a non-operating state.
3. The circuit according to claim 1 or 2, the rectification module includes a diode, the sampling module includes a first resistor and a second resistor, the switching module includes a switching element, the evidence collection module includes an evidence collection element, the evidence collection element includes a first state and a second state, and in the case where the evidence collection module is in an operating state, the evidence collection element is converted from the first state to the second state, and the second state cannot be converted back to the first state, wherein: The anode of the diode is connected to the positive line of the main power circuit, and the cathode of the diode is respectively connected to one end of the first resistor and the input end of the switching element; The other end of the first resistor is respectively connected to one end of the second resistor and the controlled end of the switching element, the other end of the second resistor is connected to the negative line of the main power circuit, the output end of the switching element is connected to the input end of the evidence collection element, and the output end of the evidence collection element is connected to the negative line of the main power circuit.
4. The circuit according to claim 3, the switching element includes a MOS transistor, the controlled end of the switching element is the gate of the MOS transistor, the input end of the switching element is the drain of the MOS transistor, and the output end of the switching element is the source of the MOS transistor.
5. The circuit according to claim 3, the evidence collection element includes a fuse, the input end of the evidence collection element is one end of the fuse, the output end of the evidence collection element is the other end of the fuse, the first state of the evidence collection element is the non-fused state of the fuse, and the second state of the evidence collection element is the fused state of the fuse.
6. The circuit according to claim 3, the second resistor is a sampling resistor, and the voltage across the second resistor is the voltage output by the sampling module to the switching module; In the case of insertion of direct current or lightning surge into the device, the voltage across the second resistor is less than the turn-on voltage of the switching element; When the device is accidentally plugged into AC power, the voltage across the second resistor is greater than the turn-on voltage of the switching element and less than the maximum voltage withstand of the switching element.
7. For the circuit according to claim 3, when the device is accidentally plugged into AC power, during the positive half-cycle of the AC power, the diode conducts, the diode performs half-wave rectification on the AC voltage and outputs the first voltage across the first resistor and the second resistor. The voltage across the second resistor is greater than the turn-on voltage of the switching element, the switching element turns on, and current flows through the evidence-taking element, and the evidence-taking element switches from the first state to the second state; during the negative half-cycle of the AC power, the diode is cut off, and the circuit is in a non-operating state. When the device is plugged into DC power or a lightning surge, the diode conducts, and the DC voltage or the voltage generated under the lightning surge is applied across the first resistor and the second resistor. The voltage across the second resistor is less than the turn-on voltage of the switching element, the switching element turns off, no current flows through the evidence-taking element, and the evidence-taking element is in the first state.
8. For the circuit according to claim 3, the switching module further includes a current-limiting resistor, one end of the current-limiting resistor is connected to the cathode of the diode, and the other end of the current-limiting resistor is connected to the input end of the switching element.
9. For the circuit according to claim 3, the sampling module further includes a first capacitor, and the first capacitor is connected in parallel across the second resistor.
10. For the circuit according to claim 3, the diode includes a first diode and a second diode. The anodes of the first diode and the second diode are connected to the positive line of the main power circuit. The cathode of the first diode is connected to one end of the first resistor, and the cathode of the second diode is connected to the input end of the switching element.
11. A device, the device includes the circuit according to any one of claims 1 to 10.
12. For the device according to claim 11, the device includes a first device or a second device; Among them, The first device is a device powered by DC power, and the circuit is provided at the DC power input port of the first device; The second device is a device powered by DC power or AC power, and the circuit is provided at the DC power input port of the second device.
13. A method for detecting device faults based on the circuit according to any one of claims 1 to 10, including: When a device fails, determining whether the evidence-taking module takes evidence of the device being accidentally plugged into AC power; When the evidence-taking module takes evidence of the device being accidentally plugged into AC power, determining that the cause of the device failure includes the device being accidentally plugged into AC power.