Detection device

By setting current detection units with different current detection accuracies in the detection device and dynamically switching them, the problem of low current detection accuracy in the prior art is solved by using a higher-precision current detection unit to participate in the detection, and high-precision measurement is achieved in both small and large current ranges.

CN223883648UActive Publication Date: 2026-02-06MIDEA SMART TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202423133797.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2026-02-06
Estimated Expiration
2034-12-18

AI Technical Summary

Technical Problem

Existing detection devices use a single current detection unit for current detection, which results in low detection accuracy.

Method used

The detection device is equipped with a first current detection unit and a second current detection unit with different current detection accuracies. When the current collected by the first current detection unit is less than the threshold, the controller controls the switch unit to disconnect and connects the second current detection unit to the detection circuit, so that the second current detection unit with higher accuracy can participate in current detection.

Benefits of technology

It improves the accuracy of current detection, enabling high-precision measurement in both low and high current ranges, and prevents the detection circuit current from fluctuating around the threshold, which could cause the switching unit to operate rapidly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223883648U_ABST
    Figure CN223883648U_ABST
Patent Text Reader

Abstract

The utility model discloses a detection device. The detection device comprises a controller, a switch unit, a first current detection unit and a second current detection unit. The switch unit is coupled to the controller, and a first end of the switch unit is coupled to the tested device; the first current detection unit is coupled with the second end of the switch unit and the controller and collects a first current; the second current detection unit is coupled between the first end and the second end of the switch unit, is coupled with the controller and is used for collecting a second current; the controller is configured to generate a first instruction when the first current is smaller than a threshold value so as to control the first end and the second end of the switch unit to be disconnected, and the second current detection unit is connected to the detection loop. In this way, the current detection precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic circuit, in particular to a detection device. BACKGROUND

[0002] At present, in the process of the electronic product / electronic device running with electricity, the detection device can be used to detect the current of the measured device.

[0003] In the detection device in the related art, the single current detection unit is used for current detection, and the detection precision is low. CONTENT OF THE UTILITY MODEL

[0004] The detection device provided by the present application can improve the current detection precision.

[0005] In a first aspect, the present application provides a detection device, which comprises a controller, a switching unit coupled to the controller, a first end of the switching unit coupled to a measured device, a first current detection unit coupled to a second end of the switching unit and coupled to the controller to collect a first current, and a second current detection unit coupled between the first end and the second end of the switching unit and coupled to the controller to collect a second current, wherein the current detection precision of the second current detection unit is greater than that of the first current detection unit, and wherein the controller is configured to generate a first instruction to control the first end and the second end of the switching unit to be disconnected and the second current detection unit to be connected to a detection loop when the first current is less than a threshold value.

[0006] The switching unit comprises a relay, a first end of a coil of the relay coupled to a working voltage end, a first contact of the relay coupled to the measured device, and a second contact of the relay coupled to the first current detection unit, a control unit, a first end of the control unit coupled to a second end of the coil of the relay, a second end of the control unit grounded, and a control end of the control unit coupled to the controller, and the controller is configured to generate the first instruction to control the control unit to be disconnected, the first contact and the second contact of the relay to be disconnected, the second current detection unit to be connected to the detection loop, and the threshold value to be updated.

[0007] The control unit comprises a diode, a negative electrode of the diode coupled to the second end of the coil of the relay, and a positive electrode of the diode grounded, and a first transistor, a first end of the first transistor coupled to the second end of the coil of the relay, a second end of the first transistor grounded, and a control end of the first transistor coupled to the controller.

[0008] An electromagnetic shielding assembly is arranged on the first current detection unit.

[0009] The switching unit comprises a second transistor, a first end of the second transistor coupled to the measured device, a second end of the second transistor coupled to the first current detection unit, and a control end of the second transistor coupled to the controller.

[0010] The first current detection unit is a Hall current detection unit, and the second current detection unit is a sampling resistor.

[0011] The detection device further comprises a voltage detection unit coupled to the device under test and the controller.

[0012] The voltage detection unit comprises a voltage sensor, an attenuation circuit and an optocoupler coupled in sequence.

[0013] The detection device further comprises a communication module coupled to the controller.

[0014] The detection device further comprises at least one of an overcurrent protection unit, a power limiting unit, an abnormal power-off unit and an alarm reminding unit.

[0015] The detection device provided by the present application has the following advantages: unlike the prior art, the detection device provided by the present application is provided with a first current detection unit and a second current detection unit with different current detection accuracies, so that the controller controls the first end and the second end of the switching unit to be disconnected when the first current collected by the first current detection unit is less than a threshold value, the second current detection unit is connected to the detection loop, and the second current detection unit with higher accuracy is used for current detection, thereby improving the current detection accuracy. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor. Among them:

[0017] Figure 1 is a structural schematic diagram of an embodiment of the detection device provided by the present application;

[0018] Figure 2 is a structural schematic diagram of another embodiment of the detection device provided by the present application;

[0019] Figure 3 is a structural schematic diagram of another embodiment of the detection device provided by the present application;

[0020] Figure 4 is a structural schematic diagram of another embodiment of the detection device provided by the present application;

[0021] Figure 5 is a structural schematic diagram of another embodiment of the detection device provided by the present application;

[0022] Figure 6is a structural schematic diagram of another embodiment of the detection device provided in the application;

[0023] Figure 7 is a structural schematic diagram of another embodiment of the detection device provided in the application;

[0024] Figure 8 is a structural schematic diagram of another embodiment of the detection device provided in the application;

[0025] Figure 9 is a flow schematic diagram of an embodiment of the current detection method provided in the application;

[0026] Figure 10 is an application scenario schematic diagram of the current detection method provided in the application. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the application will be described clearly and completely below with reference to the drawings in the embodiments of the application. It can be understood that the specific embodiments described herein are only used to explain the application, rather than limit the application. In addition, it should be noted that, for the convenience of description, only parts related to the application are shown in the drawings, rather than all structures. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the application.

[0028] In this document, reference to something being "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. As those skilled in the art will readily appreciate, the embodiments described herein can be combined with one another, if desired.

[0029] At present, in the process of the electronic product / electronic device running with electricity, the current of the measured device can be detected by using the corresponding detection device.

[0030] In the detection device in the related art, the single current detection unit is used for current detection, and there is the problem of low detection precision.

[0031] Based on this, the application provides the first current detection unit and the second current detection unit with different current detection precisions in the detection device, so that the controller controls the first end and the second end of the switching unit to be disconnected when the first current collected by the first current detection unit is less than the threshold value, the second current detection unit is connected to the detection loop, and the second current detection unit with higher precision is used for current detection, so that the current detection precision can be improved. For details, refer to the technical solutions of any one of the following embodiments.

[0032] Referring toFigure 1 , Figure 1 is a structural schematic diagram of an embodiment of the detection device provided by the present application. The detection device 100 comprises a controller 10, a switching unit 20, a first current detection unit 30 and a second current detection unit 40.

[0033] The switching unit 20 is coupled to the controller 10, and a first end of the switching unit 20 is coupled to a device under test 200. The device under test 200 can be an electronic product / equipment capable of running with electricity. The switching unit 20 can be a relay, a MOS tube, a thyristor or an IGBT tube, etc.

[0034] The first current detection unit 30 is coupled to a second end of the switching unit 20 and the controller 10, and collects a first current. In some embodiments, the first current detection unit 30 can be composed of a Hall current sensor.

[0035] The second current detection unit 40 is coupled between the first end and the second end of the switching unit 20 and the controller 10, and collects a second current. The current detection accuracy of the second current detection unit 40 is greater than that of the first current detection unit 30. In some embodiments, the second current detection unit 40 can be composed of a sampling resistor.

[0036] The controller 10 controls the first end and the second end of the switching unit 20 to be disconnected in response to the first current being less than a threshold value, and connects the second current detection unit 40 to the detection circuit. That is, the controller 10 is configured to control the switching unit 20 to be disconnected and connect the second current detection unit 40 to the detection circuit when the first current is less than the threshold value.

[0037] The controller 10 controls the first end and the second end of the switching unit 20 to be turned on in response to the second current being greater than the threshold value, and shorts the second current detection unit 40, so that only the first current detection unit 30 exists in the detection circuit. That is, the controller 10 is configured to generate a second instruction to control the switching unit 20 to be turned on and short the second current detection unit 40 when the second current is greater than the threshold value, so that only the first current detection unit 30 exists in the detection circuit.

[0038] In some embodiments, the threshold corresponding to the first current and the second current can be dynamically changed. For example, when the current detection is performed by the first current detection unit 30, a first threshold is set. The controller 10 controls the switch unit 20 to be off in response to the first current being less than the first threshold, and the second current detection unit 40 is connected to the detection loop. At this time, the first threshold is modified to be a second threshold. The controller 10 controls the switch unit 20 to be on in response to the second current being greater than the second threshold, and the second current detection unit 40 is short-circuited, so that only the first current detection unit 30 exists in the detection loop. In this way, when there is only one current threshold, the detection loop current fluctuates up and down around the threshold current, which causes the switch unit 20 to act quickly and repeatedly.

[0039] In the present embodiment, the first current detection unit 30 and the second current detection unit 40 with different current detection accuracies are arranged in the detection device 100. When the first current collected by the first current detection unit 30 is less than a threshold, the controller 10 controls the first end and the second end of the switch unit 20 to be off, and the second current detection unit 40 is connected to the detection loop. The second current detection unit 40 with higher accuracy is used to participate in current detection, which can improve the current detection accuracy.

[0040] In an application scenario, the detection device 100 is powered on by default without connecting the second current detection unit 40, so as to prevent the second current detection unit 40 from being burned out by excessive current. At this time, only the first current detection unit 30 is used for current sampling. When the current detected by the first current detection unit 30 is less than a certain threshold, the switch unit 20 is actuated to connect the second current detection unit 40 for current detection. If the detected current is not less than the threshold, the first current detection unit 30 is continuously used.

[0041] Referring to Figure 2 , Figure 2 is a structural schematic diagram of an embodiment of the detection device provided by the present application. The detection device 100 comprises a controller 10, a switch unit 20, a first current detection unit 30, and a second current detection unit 40.

[0042] The switch unit 20 is coupled to the controller 10, and the first end of the switch unit 20 is coupled to the device under test 200.

[0043] The first current detection unit 30 is coupled to the second end of the switch unit 20 and the controller 10, and collects the first current.

[0044] The second current detection unit 40 is coupled between the first end and the second end of the switch unit 20 and the controller 10, and collects the second current. The current detection accuracy of the second current detection unit 40 is greater than that of the first current detection unit 30.

[0045] The switch unit 20 comprises a relay and a control unit 21.

[0046] The first end of the coil of the relay is coupled to the working voltage end, the first contact A of the relay is coupled to the device under test 200, and the second contact B of the relay is coupled to the first current detection unit 30.

[0047] The second end of the coil of the relay is coupled to the first end of the control unit 21, the second end of the control unit 21 is grounded, and the control end of the control unit 21 is coupled to the controller 10.

[0048] The controller 10 is configured to generate a first instruction to control the control unit 21 to open the second contact B and the first contact A, and to connect the second current detection unit 40 to the detection loop, the first instruction being generated when the first current is less than the threshold value. After the second contact B and the first contact A are opened, the first contact A is connected to the third contact C, which is an empty contact and is not connected to any electronic device and cannot form a loop. The second current detection unit 40 is connected to the detection loop, and the threshold value is updated to change the timing of triggering the control unit to prevent the relay from rapidly acting multiple times when the loop current fluctuates around the threshold current.

[0049] The controller 10 is configured to generate a second instruction to control the control unit 21 to turn on the second contact B and the first contact A, and to short-circuit the second current detection unit 40 to make the detection loop only have the first current detection unit 30, the second instruction being generated when the second current is greater than the threshold value.

[0050] In some embodiments, the threshold corresponding to the first current and the second current can be dynamically changed. For example, when the current detection is performed by the first current detection unit 30, the first threshold is set, and the controller 10 controls the control unit 21 to be off in response to the first current being less than the first threshold, thereby disconnecting the second contact B and the first contact A, and further connecting the second current detection unit 40 to the detection loop. At this time, the first threshold is modified to be the second threshold. Wherein, the controller 10 controls the control unit 21 to be on in response to the second current being greater than the second threshold, thereby connecting the second contact B and the first contact A, and further short-circuiting the second current detection unit 40, so that only the first current detection unit 30 exists in the detection loop, to prevent the detection loop current from fluctuating on and off the threshold current, thereby causing the switching unit 20 to act quickly and repeatedly.

[0051] In the present embodiment, by setting the first current detection unit 30 and the second current detection unit 40 with different current detection accuracies in the detection device 100, the controller 10 controls the switching unit 20 to be off when the first current collected by the first current detection unit 30 is less than the threshold, thereby connecting the second current detection unit 40 to the detection loop, and using the second current detection unit 40 with higher accuracy to participate in current detection, which can improve the current detection accuracy.

[0052] Further, using a relay as a range switching circuit, the second current detection unit 40 can be flexibly connected and removed, and the circuit can also be cut off in time when the current is too large.

[0053] Reference is made to Figure 3 , Figure 3 is a structural schematic diagram of an embodiment of the detection device provided by the present application. The detection device 100 comprises a controller 10, a switching unit 20, a first current detection unit 30, and a second current detection unit 40.

[0054] Wherein, the switching unit 20 is coupled to the controller 10, and the first end of the switching unit 20 is coupled to the device under test 200.

[0055] The first current detection unit 30 is coupled to the second end of the switching unit 20 and the controller 10, and collects the first current.

[0056] The second current detection unit 40 is coupled between the first end and the second end of the switching unit 20 and the controller 10, and collects the second current. Wherein, the current detection accuracy of the second current detection unit 40 is greater than the current detection accuracy of the first current detection unit 30.

[0057] Wherein, the switching unit 20 comprises a relay and a control unit 21.

[0058] The first end of the coil of the relay is coupled to the working voltage terminal, the first contact A of the relay is coupled to the device under test 200, and the second contact B of the relay is coupled to the first current detection unit 30; the control unit 21, the first end of the control unit 21 is coupled to the second end of the coil of the relay, the second end of the control unit 21 is grounded, and the control end of the control unit 21 is coupled to the controller 10.

[0059] Further, the control unit 21 comprises a diode D1 and a first transistor Q1.

[0060] The negative electrode of the diode D1 is coupled to the second end of the coil of the relay, and the positive electrode of the diode D1 is grounded.

[0061] The first end of the first transistor Q1 is coupled to the second end of the coil of the relay, the second end of the first transistor Q1 is grounded, and the control end of the first transistor Q1 is coupled to the controller 10.

[0062] The controller 10 controls the first transistor Q1 to be turned off in response to the first current being less than a threshold value, disconnects the second contact B and the first contact A, and further connects the second current detection unit 40 to the detection loop. That is, the controller 10 generates a first instruction to control the first transistor Q1 to be turned off, disconnect the second contact B and the first contact A, and further connect the second current detection unit 40 to the detection loop, and the first instruction is generated when the first current is less than the threshold value.

[0063] The controller 10 controls the first transistor Q1 to be turned on in response to the second current being greater than a threshold value, connects the second contact B and the first contact A, and further shorts the second current detection unit 40, so that only the first current detection unit 30 exists in the detection loop. That is, the controller 10 generates a second instruction to control the first transistor Q1 to be turned on, connect the second contact B and the first contact A, and further short the second current detection unit 40, so that only the first current detection unit 30 exists in the detection loop, and the second instruction is generated when the second current is greater than the threshold value.

[0064] In some embodiments, the threshold values corresponding to the first current and the second current can be dynamically changed. For example, when the current detection is performed by using the first current detection unit 30, a first threshold value is set, the controller 10 controls the first transistor Q1 to be turned off in response to the first current being less than the first threshold value, disconnects the second contact B and the first contact A, and further connects the second current detection unit 40 to the detection loop. At this time, the first threshold value is modified to be a second threshold value. The controller 10 controls the first transistor Q1 to be turned on in response to the second current being greater than the second threshold value, connects the second contact B and the first contact A, and further shorts the second current detection unit 40, so that only the first current detection unit 30 exists in the detection loop. This prevents the switching unit 20 from being rapidly and repeatedly operated when there is only one current threshold value and the current in the detection loop fluctuates around the threshold current.

[0065] In the embodiment, the first current detection unit 30 and the second current detection unit 40 are arranged to have different current detection accuracies, so that the controller 10 controls the switch unit 20 to be turned off when the first current collected by the first current detection unit 30 is less than a threshold value, and the second current detection unit 40 is connected to the detection loop to participate in current detection by using the second current detection unit 40 with higher accuracy, so as to improve the current detection accuracy.

[0066] In some embodiments, the control end of the first transistor Q1 is coupled to the controller 10 through a resistor. The resistor can divide the voltage of the control signal output by the controller 10, so as to protect the first transistor Q1.

[0067] In some embodiments, the first current detection unit 30 is provided with an electromagnetic shielding component, which can improve the anti-interference performance of the first current detection unit 30, so that the first current detection unit 30 can accurately measure the current in a complex electromagnetic environment.

[0068] Referring to Figure 4 , Figure 4 is a structural schematic diagram of an embodiment of the detection device provided by the present application. The detection device 100 comprises a controller 10, a switch unit 20, a first current detection unit 30, and a second current detection unit 40.

[0069] The switch unit 20 is coupled to the controller 10, and the first end of the switch unit 20 is coupled to the measured device 200.

[0070] The first current detection unit 30 is coupled to the second end of the switch unit 20 and the controller 10 respectively, and collects a first current.

[0071] The second current detection unit 40 is coupled between the first end and the second end of the switch unit 20 and the controller 10 respectively, and collects a second current. The current detection accuracy of the second current detection unit 40 is greater than that of the first current detection unit 30.

[0072] The switch unit 20 comprises a second transistor Q2, the first end of the second transistor Q2 is coupled to the measured device 200, the second end of the second transistor Q2 is coupled to the first current detection unit 30, and the control end of the second transistor Q2 is coupled to the controller 10.

[0073] In the embodiment, the controller 10 controls the second transistor Q2 to be off in response to the first current being less than the threshold value, disconnects the first end and the second end of the second transistor Q2, and further connects the second current detection unit 40 into the detection loop. That is, the controller 10 generates a first instruction to control the second transistor Q2 to be off, disconnect the first end and the second end of the second transistor Q2, and further connect the second current detection unit 40 into the detection loop, and the first instruction is generated when the first current is less than the threshold value.

[0074] In the embodiment, the controller 10 controls the second transistor Q2 to be off in response to the first current being less than the threshold value, disconnects the first end and the second end of the second transistor Q2, and further connects the second current detection unit 40 into the detection loop. That is, the controller 10 generates a first instruction to control the second transistor Q2 to be off, disconnect the first end and the second end of the second transistor Q2, and further connect the second current detection unit 40 into the detection loop, and the first instruction is generated when the first current is less than the threshold value.

[0075] In some embodiments, the threshold value corresponding to the first current and the second current can be dynamically changed. For example, when the first current detection unit 30 is used for current detection, a first threshold value is set, and the controller 10 controls the second transistor Q2 to be off in response to the first current being less than the first threshold value, disconnects the first end and the second end of the second transistor Q2, and further connects the second current detection unit 40 into the detection loop. At this time, the first threshold value is modified to be a second threshold value. In response to the second current being greater than the second threshold value, the controller 10 controls the second transistor Q2 to be on, connects the first end and the second end of the second transistor Q2, and further shorts the second current detection unit 40 to make the first current detection unit 30 exist in the detection loop. This is to prevent the detection loop current from fluctuating up and down around the threshold current, causing the switching unit 20 to act rapidly and repeatedly.

[0076] In the embodiment, the first current detection unit 30 and the second current detection unit 40 with different current detection accuracies are set to make the controller 10 control the switching unit 20 to be off when the first current collected by the first current detection unit 30 is less than the threshold value, connect the second current detection unit 40 into the detection loop, and use the second current detection unit 40 with higher accuracy to participate in current detection, thereby improving the current detection accuracy.

[0077] Referring to Figure 5 , Figure 5 is a structural schematic diagram of an embodiment of the detection device provided by the present application. The detection device 100 comprises a controller 10, a relay, a Hall current sensor 70, a sampling resistor R1, a resistor R2, a first transistor Q1, and a diode D1.

[0078] The first end of the coil of the relay is coupled to the working voltage end, the first contact A of the relay is coupled to the device under test 200, and one end of the Hall current sensor 70 is coupled to the second contact B of the relay. The other end of the Hall current sensor 70 is connected to the negative electrode. The Uref pin of the Hall current sensor 70 is connected to the ground, the Uout pin of the Hall current sensor 70 is connected to the controller 10, the GND pin of the Hall current sensor 70 is connected to the ground, and the Uc pin of the Hall current sensor 70 is connected to the working voltage.

[0079] The sampling resistor R1 is coupled between the first contact A and the second contact B of the relay.

[0080] The negative electrode of the diode D1 is coupled to the second end of the coil of the relay, and the positive electrode of the diode D1 is connected to the ground.

[0081] The first end of the first transistor Q1 is coupled to the second end of the coil of the relay, the second end of the first transistor Q1 is connected to the ground, and the control end of the first transistor Q1 is coupled to the controller 10 through the resistor R2.

[0082] The controller 10 controls the first transistor Q1 to be turned off in response to the first current being less than the threshold value, and the coil of the relay turns off the second contact B and the first contact A, and the sampling resistor R1 is connected to the detection circuit. That is, the controller 10 generates a first instruction to control the first transistor Q1 to be turned off, to turn off the second contact B and the first contact A, and to connect the sampling resistor R1 to the detection circuit, and the first instruction is generated when the first current is less than the threshold value.

[0083] The controller 10 controls the first transistor Q1 to be turned on in response to the second current being greater than the threshold value, and the coil of the relay turns on the second contact B and the first contact A, and the sampling resistor R1 is short-circuited, so that only the Hall current sensor 70 exists in the detection circuit. That is, the controller 10 generates a second instruction to control the first transistor Q1 to be turned on, to turn on the second contact B and the first contact A, and to short-circuit the sampling resistor R1, so that only the Hall current sensor 70 exists in the detection circuit, and the second instruction is generated when the second current is greater than the threshold value.

[0084] In some embodiments, the threshold corresponding to the first current and the second current can be dynamically changed. For example, when the current is detected by the Hall current sensor 70, a first threshold is set. The controller 10 controls the first transistor Q1 to be off in response to the first current being less than the first threshold, disconnects the second contact B and the first contact A, and thus connects the sampling resistor R1 to the detection circuit. At this time, the first threshold is modified to a second threshold. The controller 10 controls the first transistor Q1 to be on in response to the second current being greater than the second threshold, connects the second contact B and the first contact A, and thus shorts the sampling resistor R1, so that only the Hall current sensor 70 exists in the detection circuit. The threshold corresponding to the first current and the second current can be dynamically changed, which can prevent the relay from being rapidly and repeatedly actuated due to the fluctuation of the detection circuit current around the threshold current when there is only one current threshold.

[0085] In the present embodiment, the Hall current sensor 70 and the sampling resistor R1 with different current detection accuracies are set to enable the controller 10 to control the relay to be off when the first current collected by the Hall current sensor 70 is less than a threshold, connect the sampling resistor R1 to the detection circuit, and use the sampling resistor R1 with higher accuracy to participate in current detection, thereby improving the current detection accuracy.

[0086] In some embodiments, the control end of the first transistor Q1 is coupled to the controller 10 through a resistor R2. The resistor can divide the voltage of the control signal output by the controller 10, thereby protecting the first transistor Q1.

[0087] In some embodiments, an electromagnetic shielding component is arranged on the Hall current sensor 70, which can improve the anti-interference performance of the Hall current sensor 70, so that the Hall current sensor 70 can accurately measure the current in a complex electromagnetic environment.

[0088] Referring to Figure 6 , Figure 6 is a structural schematic diagram of an embodiment of the detection device provided by the present application. The detection device 100 comprises a controller 10, a switching unit 20, a first current detection unit 30, a second current detection unit 40, and a voltage detection unit 50.

[0089] The switching unit 20 is coupled to the controller 10, and the first end of the switching unit 20 is coupled to the device under test 200.

[0090] The first current detection unit 30 is coupled to the second end of the switching unit 20 and the controller 10, and collects the first current.

[0091] The second current detection unit 40 is coupled between the first end and the second end of the switching unit 20 and the controller 10, and collects the second current.

[0092] The controller 10 controls the switch unit 20 to be disconnected in response to the first current being less than the first threshold value, and connects the second current detection unit 40 into the detection loop.

[0093] The voltage detection unit 50 is coupled to the device under test 200 and the controller 10.

[0094] In some embodiments, the voltage detection unit 50 comprises a voltage sensor, an attenuation circuit and an optocoupler in sequence. The optocoupler is used to isolate the voltage detection loop, which can improve the ability to resist lightning surges. In some embodiments, the optocoupler is an optocoupler with feedback, which can realize linear coupling in cooperation with an operational amplifier.

[0095] In some embodiments, as shown in Figure 7 In addition to the controller 10, the switch unit 20, the first current detection unit 30, the second current detection unit 40 and the voltage detection unit 50 described above, the detection device 100 further comprises a communication module 80 coupled to the controller 10. The communication module 80 can realize communication with external equipment. For example, the detected current and / or voltage are sent to the external equipment. For another example, instructions sent by the external equipment are received. In some embodiments, the communication module can be a wireless communication module, such as a Bluetooth communication module, a wifi communication module, etc. In some embodiments, the communication module can be a Socket protocol communication module. For example, the detection device 100 uses a wireless communication scheme to report voltage and current data and control the on-off of the circuit, which saves the trouble of on-site operation by relevant personnel and realizes remote monitoring.

[0096] In some embodiments, as shown in Figure 8 The detection device 100 further comprises an overcurrent protection unit 11, a power limiting unit 12, an abnormal power-off unit 13 and an alarm reminding unit 14. In other embodiments, the detection device 100 can comprise at least one of the overcurrent protection unit 11, the power limiting unit 12, the abnormal power-off unit 13 and the alarm reminding unit 14.

[0097] In this embodiment, the first current detection unit 30 and the second current detection unit 40 with different current detection accuracies are provided, so that the controller 10 controls the switch unit 20 to be disconnected when the first current collected by the first current detection unit 30 is less than the threshold value, and connects the second current detection unit 40 into the detection loop. The second current detection unit 40 with higher accuracy is used to participate in current detection, which can improve the current detection accuracy.

[0098] In one application scenario, the first current detection unit 30 is a Hall current detection unit, and the second current detection unit 40 is a sampling resistor. When the first current is less than a threshold, the controller 10 controls the switch unit 20 to open, connecting the sampling resistor to the detection circuit. When the second current is greater than a threshold, the controller 10 controls the switch unit 20 to open, short-circuiting the sampling resistor, so that only the Hall current detection unit exists in the detection circuit.

[0099] In some embodiments, an alarm threshold or an interruption threshold can be set by the detection device 100 so that relevant personnel can be notified of the occurrence of the fault in a timely manner and the device under test can be powered off in time to protect it.

[0100] See Figure 9 , Figure 9 This is a schematic flowchart of an embodiment of the current detection method provided in this application. The method is applied to the detection device 100 of any of the above embodiments, and includes:

[0101] Step 91: Obtain the first current collected by the first current detection unit.

[0102] Step 92: In response to the first current being less than the threshold, the control switch unit is disconnected, and the second current detection unit is connected to the detection circuit.

[0103] Step 93: Obtain the second current collected by the second current detection unit.

[0104] In one application scenario, in response to the second current being greater than a threshold, the control switch unit 20 is turned on, short-circuiting the second current detection unit 40.

[0105] In one application scenario, when the current in the circuit fluctuates, the operating state of the sensor and the fusion weight of the read data are dynamically adjusted according to the magnitude of the real-time current. For example, after connecting the second current detection unit 40 to the detection circuit, the second current collected by the second current detection unit 40 is acquired. When the difference between the current value of the second current and the threshold is less than a preset difference, the second current and the first current are collected simultaneously, and the first current and the second current are weighted and fused to obtain the final current.

[0106] In one application scenario, combined Figure 10 Explanation: When the detection device 100 system is powered on, the sampling resistor (second current detection unit 40) is not connected, and the switching threshold is updated. When the current collected by the Hall current sensor (first current detection unit 30) is less than the threshold, the sampling resistor (second current detection unit 40) is connected, and the switching threshold is updated again. When the current collected by the Hall current sensor (first current detection unit 30) is greater than the threshold, the current value is analyzed, and the voltage value is further collected. It is determined whether the voltage value exceeds the alarm threshold. If yes, the connection is disconnected and an alarm is triggered; otherwise, the next sampling cycle begins.

[0107] When the current collected by the sampling resistor (the second current detection unit 40) is greater than the threshold value, the sampling resistor (the second current detection unit 40) is not connected. When the current collected by the sampling resistor (the second current detection unit 40) is less than the threshold value, the current value is analyzed, and the voltage value is further collected. It is judged whether the voltage value exceeds the alarm threshold value. If yes, the connection is disconnected and an alarm is given. If no, the next sampling period is started.

[0108] In summary, the application provides a first current detection unit 30 and a second current detection unit 40 with different current detection accuracies in the detection device 100, so that the controller 10 controls the switch unit 20 to be disconnected when the first current collected by the first current detection unit 30 is less than the threshold value, and the second current detection unit 40 is connected to the detection loop, and the second current detection unit 40 with higher accuracy is used for current detection, which can improve the current detection accuracy.

[0109] Further, the detection device 100 provided by the application can simultaneously satisfy small current and large current detection, and can automatically switch different current detection units according to the current size, expand the range while ensuring the accuracy, and solve the problems of small measurable current of high-precision sensors and low accuracy of large current sensors. For example, while ensuring the measurement accuracy, the current measurement can be performed from the milliamperes level to the tens of amperes level.

[0110] In several embodiments provided by the application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, another division mode can be used. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0111] The integrated units in the above other embodiments, if implemented in the form of software function units and sold or used as independent products, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, essentially or in other words, the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processing circuit component (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0112] The above is only the embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent flow transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.

Claims

1. A detection device, characterized in that, The detection device comprises: a controller; a switch unit coupled to the controller, a first end of the switch unit being coupled to a device under test; a first current detection unit coupled to a second end of the switch unit and the controller, and configured to collect a first current; a second current detection unit coupled between the first end and the second end of the switch unit and the controller, and configured to collect a second current, wherein a current detection accuracy of the second current detection unit is greater than a current detection accuracy of the first current detection unit; wherein the controller is configured to generate a first instruction to control the first end and the second end of the switch unit to be disconnected, and to connect the second current detection unit to a detection loop when the first current is less than a threshold value.

2. The detection device of claim 1, wherein, The switch unit comprises: a relay, a first end of a coil of the relay being coupled to a working voltage end, a first contact of the relay being coupled to the device under test, and a second contact of the relay being coupled to the first current detection unit; a control unit, a first end of the control unit being coupled to a second end of the coil of the relay, a second end of the control unit being grounded, and a control end of the control unit being coupled to the controller; the controller is configured to generate the first instruction to control the control unit to be disconnected, the first contact and the second contact of the relay to be disconnected, the second current detection unit to be connected to the detection loop, and the threshold value to be updated.

3. The detection device of claim 2, wherein, The control unit comprises: a diode, a negative electrode of the diode being coupled to the second end of the coil of the relay, and a positive electrode of the diode being grounded; a first transistor, a first end of the first transistor being coupled to the second end of the coil of the relay, a second end of the first transistor being grounded, and a control end of the first transistor being coupled to the controller.

4. The detection device of claim 1, wherein, An electromagnetic shielding assembly is arranged on the first current detection unit.

5. The detection device of claim 1, wherein, The switch unit comprises: a second transistor, a first end of the second transistor being coupled to the device under test, a second end of the second transistor being coupled to the first current detection unit, and a control end of the second transistor being coupled to the controller.

6. The detection device of claim 1, wherein, The first current detection unit is a Hall current detection unit, and the second current detection unit is a sampling resistor.

7. The detection device of claim 1, wherein, The detection device further comprises a voltage detection unit coupled to the device under test and the controller.

8. The detection device of claim 7, wherein, The voltage detection unit comprises a voltage sensor, an attenuation circuit, and an optocoupler arranged in sequence.

9. The detection device of claim 1, wherein, The detection device further comprises a communication module coupled to the controller.

10. The detection device of claim 1, wherein, The detection device further comprises at least one of an overcurrent protection unit, a power limiting unit, an abnormal power-off unit, and an alarm reminding unit.