CN112527591A - Method and system for improving circuit current detection precision - Google Patents
Method and system for improving circuit current detection precision Download PDFInfo
- Publication number
- CN112527591A CN112527591A CN202011264459.4A CN202011264459A CN112527591A CN 112527591 A CN112527591 A CN 112527591A CN 202011264459 A CN202011264459 A CN 202011264459A CN 112527591 A CN112527591 A CN 112527591A
- Authority
- CN
- China
- Prior art keywords
- circuit
- current path
- current
- module
- small
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 30
- 238000000034 method Methods 0.000 title claims abstract description 17
- 229910044991 metal oxide Inorganic materials 0.000 claims description 3
- 150000004706 metal oxides Chemical class 0.000 claims description 3
- 239000004065 semiconductor Substances 0.000 claims description 3
- 230000005059 dormancy Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000007958 sleep Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
Abstract
The invention discloses a method and a system for improving the current detection precision of a circuit, which comprises the steps of setting an indication signal in the circuit for judging the magnitude of input voltage; the power supply works to generate input current, the circuit compares the input voltage with the indication signal and determines the operation mode of the circuit; determining a current path opened by the circuit according to different operation modes of the circuit; the circuit detects the current in the current path and calculates the power consumption of the detected current; feeding back the calculated power consumption to the circuit, and continuously detecting the input current; according to the invention, two current paths are designed, and the control circuit selects to open a large current path or a small current path according to the high and low levels of the indication signal; the problem of the equipment such as server when entering light load mode such as dormancy, undercurrent detects the error great is solved, guarantee the server when normally working simultaneously, the detection precision of heavy current state.
Description
Technical Field
The present invention relates to the field of system design, and in particular, to a method and system for improving circuit current detection accuracy.
Background
With the rise of big data, cloud computing and AI, people have more and more demands on the server, and the power consumption of the server is also more and more increased; in order to deal with the sudden operation and memory volume increase of double 11 shopping, a plurality of servers are in a standby state, and the servers in the standby state are in a light-load working mode, which is necessary from the environmental protection direction of energy conservation and emission reduction.
The server monitors internal power consumption at present, and mainly monitors current and voltage through a power consumption monitoring chip, the voltage monitoring is simpler, and the voltage generally has little change during working.
Current monitoring generally involves detecting the voltage difference across one or more precision resistors of small resistance in series along a path to obtain the current passing through the resistor.
The performance of the existing server is better and better, the power consumption is larger and larger, when part of servers work, the current of a certain power supply can reach more than 100A, the large current is detected in a mode of connecting a plurality of precise resistors in parallel, the specific numerical value of the large current can be well detected by the mode, but when the servers enter a low-power working state such as energy-saving working state and the like, the current can be reduced to less than 10A, even to the current of 1-2A, and the voltage detection precision of a detection chip is limited due to small pressure difference, and the detected current error can be larger.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method and a system for improving the circuit current detection precision, which can solve the problem of large small current detection error when equipment such as a server enters a light load mode such as dormancy and the like, and simultaneously ensure the detection precision of a large current state when the server normally works.
In order to solve the technical problems, the invention adopts a technical scheme that: a method for improving the circuit current detection precision is provided, which comprises the following steps:
s100, setting an indication signal in a circuit for judging the magnitude of input voltage;
s200, the power supply works to generate input voltage, the circuit compares the input voltage with the indication signal and determines that the circuit enters different operation modes;
s300, determining a current path opened by the circuit according to different operation modes of the circuit;
s400, detecting the current in the current path by the circuit, and calculating the power consumption of the detected current;
and S500, feeding back the calculated power consumption to the circuit, and continuously detecting the input current.
Preferably, when the circuit judges the magnitude of the input voltage according to the indication signal, when the input voltage is greater than the indication signal, the corresponding current is recorded as a large current, and when the input voltage is less than the indication signal, the corresponding current is recorded as a small current.
Preferably, in step S200, the operation mode of the circuit includes a heavy load mode and a light load mode.
Preferably, in step S300, the current path includes a large current path and a small current path;
when the operation mode of the circuit is a heavy load mode, the circuit starts a large current path and closes a small current path;
when the operation mode of the circuit is a light load mode, the circuit starts a low current path and closes a high current path.
Preferably, in step S400, when the circuit starts the large current path, the circuit detects a current in the large current path; when the circuit starts the small current path, the circuit detects the current in the small current path.
A system for improving the accuracy of current sensing in a circuit, comprising: the device comprises an input power module, a signal decision device, a first control signal module, a second control signal module, a large current path module, a small current path module and an output power module;
the input power supply module is connected with the signal decision device in series; the signal decision device is respectively connected with the first control signal module and the second control signal module in series; the first control signal module is connected with the high-current channel module in series; the second control signal module is connected with the small current path module in series; the output power supply module is respectively connected with the large current path module and the small current path module in series; and the large current path module is connected with the small current path module in parallel.
Preferably, the signal decision device judges whether the input current of the input power module is in a large current state or a small current state, the signal decision device comprises two resistors and two MOS transistors, and the circuit controls different MOS transistor switches to determine whether the circuit enters the large current path module or the small current path module according to the state of the input current.
Preferably, the first control signal module controls the large-current path module to start and controls the small-current path module to close; the second control signal module controls the small current path module to start and controls the large current path module to close.
Preferably, the high-current path module comprises a plurality of resistors and a plurality of MOS transistors, the resistors are connected in parallel, the MOS transistors are connected in parallel, and the resistors connected in parallel and the MOS transistors connected in parallel are connected in series to form the high-current path module.
Preferably, the small current path module is formed by connecting a resistor and an MOS transistor in series, and the resistor in the small current path is a resistor with a large resistance.
The invention has the beneficial effects that: according to the invention, two current paths are designed, a large current path is designed according to the maximum working current, a small current path is designed according to the current in a light load mode, and the control circuit selects to open the large current path or the small current path according to the high and low levels of an indication signal through a selected indication signal; the problem of the equipment such as server when entering light load mode such as dormancy, undercurrent detects the error great is solved, guarantee the server when normally working simultaneously, the detection precision of heavy current state.
Drawings
FIG. 1 is a flow chart of a method for improving the accuracy of current detection in a circuit according to the present invention;
FIG. 2 is a block diagram of a system for improving the accuracy of current detection in a circuit according to the present invention;
FIG. 3 is a circuit diagram of control signals of a system for improving the circuit current detection accuracy according to the present invention;
FIG. 4 is a schematic diagram of a system for improving circuit current detection accuracy according to the present invention;
wherein: 1. a VCC power supply; 2. a first control signal module; 3. a second control signal module; 4. r6 resistance; 5. q6 MOS pipe; 6. r7 resistance; 7. q7 MOS pipe; 8. an indication signal; 9. r1 resistance; 10. r2 resistance; 11. r3 resistance; 12. q1 MOS pipe; 13. q2 MOS pipe; 14. q3 MOS pipe; 15. q4 MOS pipe; 16. r4 resistance; 17. q5 MOS pipe; 18. an input power module; 19. an output power supply module; 20. a signal decision device; 21. a high current path module; 22. and a small current path module.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
Fig. 1 is a flowchart of a method for improving circuit current detection accuracy according to the present invention, and the method for improving circuit current detection accuracy includes:
firstly, designing a circuit of a control signal, firstly, selecting an indication signal to judge the magnitude of input voltage, and selecting 12V voltage as the indication signal;
and secondly, the server determines the operation mode of the circuit according to the comparison and judgment of the input voltage and the indication signal:
when the input voltage is higher than the indication signal, the circuit enters a heavy load mode;
when the input voltage is lower than the indication signal, the circuit enters a light load mode;
thirdly, the server determines the path opened by the circuit according to different operation modes of the circuit:
when the circuit enters a heavy-load mode, the circuit starts a large-current path, closes a small-current path, and detects the large-current path; in this embodiment, when the 12V voltage is high, the system enters a normal operating state, the main board power supply operates normally, the current becomes large, the current of many servers reaches the current of 100-200A, and the operating current of some highly configured servers is larger;
when the circuit enters a light load mode, the circuit starts a low current path, closes a high current path and detects the low current path; in this embodiment, when the 12V voltage is low, only the Standby power supply remains on the motherboard, all other main power supplies are turned off, the system enters a low power consumption state of sleep, the current drops to a very low level, and most board cards drop to a current of 1-2A;
and fourthly, calculating the power consumption of the circuit by the circuit according to different operation modes and reporting the power consumption to the server.
Fig. 2 is a system diagram of the present invention for improving the circuit current detection accuracy, and a system for improving the circuit current detection accuracy includes: the device comprises an input power module 18, a signal decision device 20, a first control signal module 2, a second control signal module 3, a large current path module 21, a small current path module 22 and an output power module 19;
the input power supply module 18 is connected in series with the signal decision device 20; the signal decision device 20 is respectively connected in series with the first control signal module 2 and the second control signal module 3; the first control signal module 2 is connected in series with the large current path module 21; the second control signal module 3 is connected in series with the small current path module 22; the output power module 19 is connected in series with the large current path module 21 and the small current path module 22, respectively, and the large current path module 21 and the small current path module 22 are connected in parallel.
Fig. 3 is a control signal circuit diagram of a system for improving circuit current detection accuracy according to the present invention, the system for improving circuit current detection accuracy includes:
the VCC power supply 1 selects a hot-plug chip in a system, and boosts the hot-plug chip to obtain a voltage of 24V, the first control signal module 2 and the second control signal module 3 are MOS tubes which can open a current path when the level is high, the first control signal module 2 controls a large current path, and the second control signal module 3 controls a small current path;
fig. 3 is used to determine whether the input voltage of the circuit is higher than a set value, and to select the mode in which the circuit operates according to the obtained result.
Fig. 4 is a schematic structural diagram of a system for improving circuit current detection accuracy according to the present invention, the system for improving circuit current detection accuracy includes:
the R1 resistor 9, the R2 resistor 10 and the R3 resistor 11 are all precision resistors of 0.5 milliohm, the three resistors are connected in parallel in the circuit, a Q1 MOS tube 12, a Q2 MOS tube 13, a Q3 MOS tube 14 and a Q4 MOS tube 15 are connected in parallel, the parallel resistors and the parallel MOS tubes are connected in series to form a large-current path, and two ends of the parallel resistors are connected with the input power supply module 18 and the output power supply module 19;
the R4 resistor 16 is connected in series with the Q5 MOS tube 17 to form a small current path; the R4 resistor 16 is generally large in structure, 10 milliohms is selected in a circuit, and a circuit can support 2A current according to design requirements;
when the circuit is designed, the resistance value of the resistor and the number of MOS (metal oxide semiconductor) tubes can be increased or decreased according to the actual current;
when the circuit is in a heavy current path mode, calculating the power consumption of the circuit, and feeding back data to a server after acquiring accurate power consumption data; when the circuit is in a low-current path mode, calculating the power consumption of the circuit, and feeding back data to a server after accurate power consumption data is obtained;
the circuit judges the input current, inputs a large current path when the current is large, closes the small current path, inputs the small current path when the current is small, closes the large current path, can detect currents of different sizes more accurately, and calculates and obtains more accurate circuit power consumption.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A method for improving the accuracy of current detection in a circuit, comprising:
s100, setting an indication signal in a circuit for judging the magnitude of input voltage;
s200, the power supply works to generate input voltage, the circuit compares the input voltage with the indication signal and determines that the circuit enters different operation modes;
s300, determining a current path opened by the circuit according to different operation modes of the circuit;
s400, detecting the current in the current path by the circuit, and calculating the power consumption of the detected current;
and S500, feeding back the calculated power consumption to the circuit, and continuously detecting the input current.
2. The method of claim 1, wherein the step of detecting the current comprises: when the circuit judges the magnitude of the input voltage according to the indication signal, when the input voltage is greater than the indication signal, the corresponding current is recorded as a large current, and when the input voltage is less than the indication signal, the corresponding current is recorded as a small current.
3. The method of claim 1, wherein the step of detecting the current comprises: in step S200, the operation mode of the circuit includes a heavy load mode and a light load mode.
4. The method as claimed in claim 3, wherein the method further comprises: in the step S300, the current path includes a large current path and a small current path;
when the operation mode of the circuit is a heavy load mode, the circuit starts a large current path and closes a small current path;
when the operation mode of the circuit is a light load mode, the circuit starts a low current path and closes a high current path.
5. The method as claimed in claim 4, wherein the method further comprises: in the step S400, when the circuit starts the large current path, the circuit detects the current in the large current path; when the circuit starts the small current path, the circuit detects the current in the small current path.
6. A system for improving accuracy of current detection in a circuit, comprising: the device comprises an input power module (18), a signal decision device (20), a first control signal module (2), a second control signal module (3), a large-current path module (21), a small-current path module (22) and an output power module (19);
the input power supply module (18) is connected with the signal decision device (20) in series; the signal decision device (20) is respectively connected with the first control signal module (2) and the second control signal module (3) in series; the first control signal module (2) is connected with the large current path module (21) in series; the second control signal module (3) is connected with the small current path module (22) in series; the output power supply module (19) is respectively connected with the large current path module (21) and the small current path module (22) in series; the large current path module (21) is connected with the small current path module (22) in parallel.
7. The system of claim 6, wherein the current detection circuit further comprises: the signal decision device (20) judges whether the input current of the input power module (18) is in a large current state or a small current state, the signal decision device (20) comprises two resistors and two MOS (metal oxide semiconductor) tubes, and the circuit controls different MOS tube switches to decide whether the circuit enters a large current access module or a small current access module according to the state of the input current.
8. The system according to claim 6 or 7, wherein the circuit current detection precision is improved by: the first control signal module (2) controls the large current path module (21) to be started and controls the small current path module (22) to be closed; the second control signal module (3) controls the small current path module (22) to be started and controls the large current path module (21) to be closed.
9. The system of claim 8, wherein the current detection circuit further comprises: the high-current path module (21) comprises a plurality of resistors and a plurality of MOS (metal oxide semiconductor) tubes, wherein the resistors are connected in parallel, the MOS tubes are connected in parallel, and the resistors connected in parallel are connected in series with the MOS tubes connected in parallel.
10. The system of claim 8, wherein the current detection circuit further comprises: the small current path module (22) is formed by connecting a resistor and an MOS tube in series.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011264459.4A CN112527591A (en) | 2020-11-12 | 2020-11-12 | Method and system for improving circuit current detection precision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011264459.4A CN112527591A (en) | 2020-11-12 | 2020-11-12 | Method and system for improving circuit current detection precision |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112527591A true CN112527591A (en) | 2021-03-19 |
Family
ID=74982307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011264459.4A Withdrawn CN112527591A (en) | 2020-11-12 | 2020-11-12 | Method and system for improving circuit current detection precision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112527591A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114064399A (en) * | 2021-10-28 | 2022-02-18 | 苏州浪潮智能科技有限公司 | Server power consumption monitoring device and building method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106774762A (en) * | 2016-11-28 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of server power supply PSU condition control methods, RMC and rack |
CN110568252A (en) * | 2019-08-29 | 2019-12-13 | 桂林电子科技大学 | four-channel double-gear interface control circuit current detection system |
CN111366777A (en) * | 2020-04-21 | 2020-07-03 | 深圳市亿道数码技术有限公司 | Hardware-controlled USB device detection circuit |
-
2020
- 2020-11-12 CN CN202011264459.4A patent/CN112527591A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106774762A (en) * | 2016-11-28 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of server power supply PSU condition control methods, RMC and rack |
CN110568252A (en) * | 2019-08-29 | 2019-12-13 | 桂林电子科技大学 | four-channel double-gear interface control circuit current detection system |
CN111366777A (en) * | 2020-04-21 | 2020-07-03 | 深圳市亿道数码技术有限公司 | Hardware-controlled USB device detection circuit |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114064399A (en) * | 2021-10-28 | 2022-02-18 | 苏州浪潮智能科技有限公司 | Server power consumption monitoring device and building method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN211086970U (en) | Multi-power-supply up-down control circuit | |
US7536577B2 (en) | Calibration technique for power measurement and management over multiple time frames | |
US8111493B2 (en) | Current limit detector | |
CN102177483B (en) | Power management in a system having a processor and a voltage converter that provides a power voltage to the processor | |
US7080268B2 (en) | Method and apparatus for regulating power to electronic circuits | |
KR20180017339A (en) | Electronic device including power management integrated circuit | |
DE112005001303T5 (en) | Method for monitoring a burn-in device | |
CN112527591A (en) | Method and system for improving circuit current detection precision | |
DE112005001304T5 (en) | A heater power control circuit and a burn-in device using the same | |
US20020015272A1 (en) | Switch device and overcurrent controlling method | |
CN101191815A (en) | Circuit of detecting power-up and power-down | |
US7208925B2 (en) | Voltage regulator controller power good indicator circuitry | |
CN114333971A (en) | Power consumption measuring assembly and method and chip power consumption measuring device | |
CN114814530A (en) | Load open circuit detection circuit and method for high-side intelligent power IC and application | |
CN207424805U (en) | A kind of system for reducing chip power-consumption | |
CN111781544B (en) | Energy storage capacitor device and state monitoring circuit thereof | |
CN116930726A (en) | Core board quality detection equipment and detection method | |
WO2006132629A1 (en) | Low power voltage detection circuit and method therefor | |
CN114896926B (en) | System for nanosecond level quick adjustment chip internal load | |
KR20070001778A (en) | System and method for configuring direct current converter | |
US20230178979A1 (en) | Adaptive Power Supply Voltage Transient Protection | |
CN112269463A (en) | Power-down protection circuit and method and electric energy meter | |
CN114204522B (en) | Protection method and protection system for inverter direct current bus and air conditioner | |
CN218584873U (en) | 5G module current consumption test system | |
CN113708339B (en) | Power management device and power supply system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210319 |