[go: up one dir, main page]

CN109164404A - The system and method that sample circuit in circuit board is calibrated automatically - Google Patents

The system and method that sample circuit in circuit board is calibrated automatically Download PDF

Info

Publication number
CN109164404A
CN109164404A CN201810909289.7A CN201810909289A CN109164404A CN 109164404 A CN109164404 A CN 109164404A CN 201810909289 A CN201810909289 A CN 201810909289A CN 109164404 A CN109164404 A CN 109164404A
Authority
CN
China
Prior art keywords
sample circuit
circuit board
control terminal
circuit
calibration
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.)
Granted
Application number
CN201810909289.7A
Other languages
Chinese (zh)
Other versions
CN109164404B (en
Inventor
李威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Changjiang Computing Technology Co ltd
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201810909289.7A priority Critical patent/CN109164404B/en
Publication of CN109164404A publication Critical patent/CN109164404A/en
Application granted granted Critical
Publication of CN109164404B publication Critical patent/CN109164404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/005Calibrating; Standards or reference devices, e.g. voltage or resistance standards, "golden" references

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses the system and method that sample circuit in a kind of pair of circuit board is calibrated automatically, it is related to the automatic calibration field of sample circuit in circuit board.The system includes PC control terminal, programme-controlled dc power, voltage collecting device, DC Electronic Loads, voltage collecting device is connected to the both ends of the sampling resistor of sample circuit, PC control terminal is sent by measurement data in real time, PC control terminal centralized control calibration process, the number of preliminary setting data acquisition, after data acquisition, PC control terminal carries out data analysis according to specified algorithm, automatically generate the report of error compensation, program upgrading is carried out to the MCU of sample circuit in circuit board, completes the calibration of sample circuit.The present invention can rapidly and accurately complete the upgrading calibration of sample circuit in circuit board, improve the accuracy of sample circuit calibration in circuit board.

Description

The system and method that sample circuit in circuit board is calibrated automatically
Technical field
The present invention relates to the automatic calibration field of sample circuit in circuit board, it is specifically related to sample in a kind of pair of circuit board The system and method that circuit is calibrated automatically.
Background technique
Power consumption is a crucial parameter for power supply design even board-level circuit design, usually by using single in circuit The power sensing of a power rail namely the voltage measurement at sampling resistor both ends, carry out calculating current, to calculate power consumption indirectly.This A little voltage measurements are carried out using onboard micro-control unit and analog to digital conversion circuit.Sampling electricity in the circuit board being calibrated Road includes sampling resistor and its circuit for being connected to MCU (Micro Control Unit, micro-control unit), is adopted in usual circuit Sample resistance both ends connect difference operational amplifying circuit or ADC (Analog-Digital Converter, analog-digital converter), difference amplifier The voltage analog signal at sampling resistor both ends is converted into digital signal and is sent to MCU by circuit or modulus switching device (ADC).It is logical The voltage at digitized sampling resistance both ends is crossed, the voltage of power rail and its electric current can be computed where sampling resistor, this The power consumption of road power supply is also just calculated.But pass through the survey calculation value of sample circuit, often there are gap, mesh with true value It is preceding also to rarely have the system schema that the circuit for application sample resistance in actual circuit plate is calibrated automatically.
The patent application retrieved at present is mostly using special calibration circuit in entire circuit, to realize that error is mended It repays, and both for each specific application, the calibration circuit in these patent applications is realized complicated, many kinds of, does not have There is versatility, increase Material Cost, while new error may also be brought, suitable for application in the electricity of multiple power supply tree networks On the sample circuit of road plate.
Some schemes use power supply for 1 ampere of constant-current supply, and surveyed sampling resistor resistance is determined by LED light instruction The deviation situation of value, there is no the tests and calibration that are carried out under different voltages electric current to the sample circuit in circuit board, cannot be right Sample circuit carries out program upgrading and improves the measurement precision of the voltage and current power consumption in circuit.
Scheme also only passes through the data of two points, using y=kx+b once linear function, obtains calibration parameter, number Inaccurate according to handling, correlation and fitting degree are not able to satisfy on circuit board that different electrical power road exists in different electrical power tree network Voltage, electric current and power consumption number under certain loads obtain precise measurement requirement.
The measurement point data chosen in existing automatic calibrating method is on the low side, can only simple computation go out calibration parameter, and it is existing Other circuits that attached component forms are generallyd use by the calibration of sample circuit in circuit board and carry out error compensation, it is difficult to is full The calibration accuracy of sample circuit in sufficient circuit board.
Summary of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technique, provide in a kind of pair of circuit board sample circuit from The system and method for dynamic calibration, can rapidly and accurately complete the upgrading calibration of sample circuit in circuit board, improve circuit The accuracy that sample circuit is calibrated in plate.
The present invention provides the system that a kind of pair of sample circuit is calibrated automatically, and the sample circuit in circuit board includes microcontroller list First MCU, sampling resistor, the system include that PC control terminal, programme-controlled dc power, voltage collecting device, DC electronic are negative It carries, voltage collecting device is connected to the both ends of the sampling resistor of sample circuit, sends PC control for measurement data in real time Terminal;PC control terminal centralized control calibration process, after preset data times of collection data acquisition, Data analysis is carried out according to specified algorithm, automatically generates the report of error compensation, the MCU of sample circuit in circuit board is carried out Program upgrading, completes the calibration of sample circuit.
Based on the above technical solution, the PC control terminal sends program-controlled direct current at the appointed time Source, voltage collecting device and DC Electronic Loads parameter, and trigger these measuring devices, open primary calibration movement;It is each to survey The data measured are returned to PC control terminal by the MCU of sample circuit in real time in amount equipment and circuit board.
Based on the above technical solution, the data of each calibration actions are collected and recorded to PC control terminal, choosing Suitable calibration strategy is taken, error analysis and compensation is carried out, result is updated to the program of the MCU of sample circuit into circuit board In.
Based on the above technical solution, the PC control terminal is uniformly coordinated, and programme-controlled dc power is arranged The load of output and DC Electronic Loads, and the voltage at sampling resistor both ends is measured;After the completion of primary connection, host computer Controlling terminal carries out multiple data acquisition by default, and after the completion of all data acquisitions, PC control terminal provides many algorithms Carry out data analysis, a key generate multiple format comprising voltage and current value, performance number, error compensation value data sheet, into The calibration to sample circuit is completed in the upgrading of the MCU program of sample circuit in row circuit board.
Based on the above technical solution, the algorithm that the PC control terminal provides includes once linear, second order Multinomial, exponential function, rolling average fitting algorithm, PC control terminal make calibration curve and error compensation, and with most Small square law is basic norm, calculates the related coefficient and mean square error of every kind of algorithm, is made to the fitting degree of algorithms of different Compare, selects for the most accurate fitting algorithm of sample circuit.
The method that sample circuit in circuit board is calibrated automatically based on above system that the present invention also provides a kind of, including with Lower step:
PC control terminal, programme-controlled dc power, voltage collecting device and DC Electronic Loads are connected with system bus, Sampling resistor both ends in the sample circuit of circuit board are connected into voltage collecting device, cable one is terminated into programme-controlled dc power, Another termination DC Electronic Loads;
Each instrument and equipment is opened, PC control terminal is started, sets relevant parameter;
PC control terminal centralized control calibration process, according to preset data times of collection data acquisition Afterwards, power consumption number is calculated, data analysis is carried out according to specified algorithm, the report of error compensation is automatically generated, in circuit board The MCU of sample circuit carries out program upgrading, completes the calibration of sample circuit.
Based on the above technical solution, the process of the data acquisition are as follows:
The pulling load current of the output voltage of PC control terminal control programme-controlled dc power, DC Electronic Loads, according to Preset data times of collection obtains voltage value, current value, power consumption number from the MCU of sample circuit, from voltage collecting device Voltage value is read, reads current value from programme-controlled dc power.
Based on the above technical solution, when carrying out data analysis according to specified algorithm, the PC control is whole The algorithm that end provides includes once linear, second order polynomial, exponential function, rolling average fitting algorithm, PC control terminal Make calibration curve and error compensation, and using least square method as basic norm, calculate every kind of algorithm related coefficient and Square error makes comparisons to the fitting degree of algorithms of different, selects for the most accurate fitting algorithm of sample circuit.
Based on the above technical solution, this method is further comprising the steps of: upper when starting PC control terminal Machine controlling terminal carries out System self-test, sends instructions to each instrument and equipment of connection on the system bus, receives each instrument The information that device equipment returns, detection system connectivity judge whether whole system is ready to complete.
Based on the above technical solution, when starting PC control terminal, following relevant parameter is set: measurement model It encloses, resolution ratio, test step-length, up-down stroke selection, cycle-index.
Compared with prior art, advantages of the present invention is as follows:
PC control terminal in the present invention will be in all appts equipment and circuit board to be calibrated by system bus Sample circuit forms specific loop, connects, one-key start and operation, realizes that the collection of data in calibration process, selection are closed Suitable algorithm, and for the needs of the sample circuit in actual circuit plate, it obtains calibration curve and error compensation data, generates report Table carries out error analysis and compensation, extracts corresponding error compensation data table in report, pass through PC control terminal downloads To the micro-control unit MCU of sample circuit, program upgrading is carried out, rapidly and accurately completes the upgrading school of sample circuit in circuit board Quasi- work, other circuits that the calibration with sample circuit in available circuit plate generallys use attached component composition carry out error Compensation is compared, and the present invention is advantageously implemented the accurate measurement of the parameters such as electric current, power, can be improved sample circuit school in circuit board Quasi- accuracy.
Detailed description of the invention
Fig. 1 is the structural block diagram for the system calibrated automatically in the embodiment of the present invention to sample circuit in circuit board.
Fig. 2 is connection schematic diagram when calibrating in the embodiment of the present invention to sample circuit in circuit board.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
Embodiment 1
Shown in Figure 1, the embodiment of the present invention provides the system that sample circuit is calibrated automatically in a kind of pair of circuit board, circuit Sample circuit in plate includes MCU (Micro Control Unit, micro-control unit), the ADC (Analog- being sequentially connected Digital Converter, analog-digital converter), sampling resistor, the system include PC control terminal, programme-controlled dc power, Voltage collecting device, DC Electronic Loads, system circuit are attached networking, voltage collecting device by RS232 or gpib bus For voltmeter or data collecting card, the both ends of the sampling resistor of sample circuit are connected to, are in real time sent measurement data to upper Machine controlling terminal.
PC control terminal centralized control calibration process, each time data acquisition are issued by PC control terminal, Programme-controlled dc power provides suitable Current Voltage, and electronic load provides suitable draw and carries, and voltmeter or data collecting card are real-time PC control terminal is sent by measurement data.
After PC control terminal is according to preset data times of collection data acquisition, according to specified algorithm Data analysis is carried out, the report of error compensation is automatically generated, program upgrading is carried out to the MCU of sample circuit in circuit board, is completed The calibration of sample circuit.
PC control terminal passes through system bus for the sample circuit group in all appts equipment and circuit board to be calibrated It at specific loop, connects, one-key start and operation, realizes the collection of data in calibration process, select appropriate algorithm, and needle To the needs of the sample circuit in actual circuit plate, calibration curve and error compensation data are obtained, generate report, carry out error point Analysis and compensation, extract corresponding error compensation data table in report, arrive sample circuit by PC control terminal downloads Micro-control unit MCU carries out program upgrading, rapidly and accurately completes the upgrading calibration of sample circuit in circuit board.
Other circuits that calibration with sample circuit in available circuit plate generallys use attached component composition are missed Difference compensation is compared, and the embodiment of the present invention is advantageously implemented the accurate measurement of the parameters such as electric current, power, can be improved in circuit board and adopts The accuracy of sample circuit calibration.
Embodiment 2
On the basis of embodiment 1, PC control terminal can be by C language, LabVIEW (virtual instrument exploitation environment) It is developed Deng in PC machine.PC control terminal sends programme-controlled dc power, data collecting card and electricity at the appointed time The parameter of son load, and these equipment are triggered simultaneously, open primary calibration movement;Each measuring device and MCU will be measured Data are returned to PC control terminal by communication network (such as RS232, USB, TCP/IP) in real time.PC control terminal Most important function is by the data collection and record of each calibration actions, and choosing suitable calibration strategy, (such as various fittings are calculated Method etc.) error analysis and compensation are carried out, result is updated into the program of MCU.For example, being clicked after connecting relevant device Software respective selection tests connectivity, and observes corresponding tabs, selects Test Strategy.
Programme-controlled dc power is chosen according to the demand of actual circuit, generally selects the power supply of suitable voltage electric current supply capacity, Such as: Agilent E3634A (0~25V, 7A/0~50V, 4A).Before the movement of system calibration each time is opened, need Position machine controlling terminal sends instructions to power settings and determines value.Such as test need to be selected in the case where through-flow 1A in software power supply 1A is clicked or inputted in correspondence space in item card, or clicks test automatically, sets through-flow step-length, program can be set automatically Determine the output size of programme-controlled dc power.
The digital voltmeter or data collecting card of suitable voltage measurement capability are chosen according to the demand of actual circuit, such as: Agilent 34970A/34902A module (16channels) has the precision more than 6, and can be by multichannel measurement data PC control terminal is passed to simultaneously.
According to the demand of actual circuit, the DC Electronic Loads of suitable voltage current draw ability are chosen, such as: Chroma 63640-5 E-load or Faith FT6301A (120V, 30A, 150W) are loaded with this to simulate real work, to calibrate electricity Sample circuit in the plate of road.
Common measuring instrument equipment supports that (General-Purpose Interface Bus leads to by RS232 or GPIB With interface bus) agreement, and the postposition interface of two kinds of buses, also factory has been attached to exploitation routine.PC control terminal energy Turn the system bus such as GPIB cable and test equipment conveniently by USB Hub (USB interface hub), USB RS 232, USB It is bridged.Driving of the software development based on RS232 and GPIB is controlled, above system bus can be compatible with and completed to instrument and equipment Control and data collection.
Embodiment 3
On the basis of embodiment 1, PC control terminal is uniformly coordinated, and can disposably set programme-controlled dc power Output and electronic load load, and the voltage at sampling resistor both ends is measured;After the completion of primary connection, host computer control Terminal processed can carry out multiple data acquisition by default simultaneously, reduce error probability, improve work efficiency.
After the completion of all data acquisitions, PC control terminal provides many algorithms and selects to carry out data point for user Analysis, the algorithm that PC control terminal provides includes once linear, second order polynomial, exponential function, rolling average fitting algorithm, PC control terminal makes calibration curve and error compensation, and using least square method as basic norm, calculates every kind of algorithm Related coefficient and mean square error, make comparisons to the fitting degree of algorithms of different, select and be most accurately fitted for sample circuit Algorithm.
One key of PC control terminal generates counting comprising voltage and current value, performance number, error compensation value etc. for multiple format According to report, user can directly extract data, the upgrading of micro-control unit program in carry out system, complete the school to sample circuit It is quasi-.Other circuits that calibration with sample circuit in available circuit plate generallys use attached component composition carry out error compensation It compares, the embodiment of the present invention is advantageously implemented the accurate measurement of the parameters such as electric current, power, can be improved sample circuit in circuit board The accuracy of calibration.
Embodiment 4
The embodiment of the present invention provides a kind of side calibrated automatically to sample circuit in circuit board based on system in embodiment 1 Method, comprising the following steps:
It is shown in Figure 2, with system bus connection PC control terminal, programme-controlled dc power, voltage collecting device and Sampling resistor both ends in the sample circuit of circuit board are connected voltage collecting device, cable one are terminated by DC Electronic Loads Programme-controlled dc power, another termination DC Electronic Loads;
Open each instrument and equipment, start PC control terminal, set following relevant parameter: measurement range, resolution ratio, Test step-length, up-down stroke selection, cycle-index;
PC control terminal centralized control calibration process, according to preset data times of collection data acquisition Afterwards, power consumption number is calculated, data analysis is carried out according to specified algorithm, the report of error compensation is automatically generated, in circuit board The MCU of sample circuit carries out program upgrading, completes the calibration of sample circuit.
PC control terminal passes through system bus for the sample circuit group in all appts equipment and circuit board to be calibrated It at specific loop, connects, one-key start and operation, realizes the collection of data in calibration process, select appropriate algorithm, and needle To the needs of the sample circuit in actual circuit plate, calibration curve and error compensation data are obtained, generate report, carry out error point Analysis and compensation, extract corresponding error compensation data table in report, arrive sample circuit by PC control terminal downloads Micro-control unit MCU carries out program upgrading, rapidly and accurately completes the upgrading calibration of sample circuit in circuit board, and existing Other circuits progress error compensation that attached component forms is generallyd use by the calibration of sample circuit in circuit board to compare, this Inventive embodiments are advantageously implemented the accurate measurement of the parameters such as electric current, power, can be improved what sample circuit in circuit board was calibrated Accuracy.
Embodiment 5
On the basis of embodiment 4, when starting PC control terminal, PC control terminal carries out System self-test, hair It send instruction to give each instrument and equipment of connection on the system bus, receives the information that each instrument and equipment returns, detection system Connectivity, judges whether whole system is ready to complete.
The process of PC control terminal data acquisition are as follows:
The pulling load current of the output voltage of PC control terminal control programme-controlled dc power, DC Electronic Loads, according to Preset data times of collection obtains voltage value, current value, power consumption number from the MCU of sample circuit, from voltage collecting device Voltage value is read, reads current value from programme-controlled dc power.
When PC control terminal carries out data analysis according to specified algorithm, the algorithm packet of PC control terminal offer Include once linear, second order polynomial, exponential function, rolling average fitting algorithm, PC control terminal make calibration curve and Error compensation, and using least square method as basic norm, the related coefficient and mean square error of every kind of algorithm are calculated, to different calculations The fitting degree of method is made comparisons, and is selected for the most accurate fitting algorithm of sample circuit.
Embodiment 6
The embodiment of the present invention provides a kind of side calibrated automatically to sample circuit in circuit board based on system in embodiment 1 Method, comprising the following steps:
1) it in actual operation, gets out above-mentioned required equipment and instrument in the way of attached drawing 2, gpib bus is connected PC control terminal, programme-controlled dc power, data collecting card and DC Electronic Loads are picked up, by the sampling electricity on circuit board Sampling resistor both ends in road connect data collecting card, while terminating programme-controlled dc power, another termination direct current with cable one Son load;After opening each instrument and equipment preheating five minutes, starts PC control terminal, click System self-test, program can be sent out The instrument and equipment for sending instruction to be connected in bus to each receives the information that each instrument and equipment returns, detection system connection Property, determine whether entire calibration system is ready to complete.Equipment and instrument in Fig. 2 needs to have the performance under specified conditions, meets The demand of test.
2) PC control terminal is opened, and sets relevant parameter: measurement range, resolution ratio, test step-length, upper undershoot Journey selection, cycle-index etc.;Such as: when calibrating normal working voltage V, operating current being up to the power supply sample circuit of I, electricity Measurement range may be set to 0.9V~1.1V to pressure, voltage tester step-length may be set to 0.1V, and testing current range may be set to 0- 1.2I, testing current step-length may be set to 0.2A, select upstroke (i.e. voltage is from low to high, electric current provides from small to large), follow Ring number is set as 2.
3) PC control terminal starts to control programme-controlled dc power output voltage 0.9V, and sending instruction keeps DC electronic negative Carrying pulling load current is 0, and PC control terminal obtains voltage value A11, current value B11, power consumption number C11 from the MCU of sample circuit, Voltage value X11 is read out from data collecting card simultaneously, current value Y11 is read from programme-controlled dc power, calculates power consumption number Z11。
4) for PC control terminal according to the test of upstroke, sending instruction respectively makes DC Electronic Loads pulling load current 0.2I, 0.4I, 0.6I, 0.8I, 1.0I, 1.2I, respectively from sample circuit MCU obtain voltage value A12 ..., A17, current value B12 ..., B17, power consumption number C12 ..., C17, read out from data collecting card voltage value X12 ..., X17, and from program-controlled direct current Power supply read current value Y12 ..., Y17, calculate power consumption number Z12 ..., Z17.
5) for PC control terminal according to the test of upstroke, control programme-controlled dc power exports 1.0V and 1.1V, and divides Fa Song not instruct makes DC Electronic Loads pulling load current 0.2I, 0.4I, 0.6I, 0.8I, 1.0I, 1.2I, respectively from circuit board Sample circuit MCU obtain voltage value, current value, power consumption number, be as follows:
Table 1, voltage value, the current value, power consumption number obtained from the sample circuit MCU of circuit board
PC control terminal obtains voltage value, current value, power consumption number from data collecting card and programme-controlled dc power respectively It is as follows:
Table 2 obtains voltage value, current value, power consumption number from data collecting card
6) after pending data acquisition, PC control terminal chooses different algorithms, such as: once linear, second order are more Item formula, exponential function, rolling average are fitted scheduling algorithm, make calibration curve and error compensation, and be basic with least square method Criterion calculates the related coefficient (R of every kind of algorithm2) and mean square error (RMSE) be used as index, to the fitting journey of algorithms of different Degree is made comparisons, and is selected for this most accurate fitting algorithm of power supply sample circuit all the way, so as to later period accurately voltage and current function Consumption calculates.
Such as: under the data record that step 5 obtains, by taking voltage value is calibrated as an example, according to once linear functional relation Formula X =kA+d, X represent the voltage value obtained from data collecting card, and k represents the Monomial coefficient of voltage value calibration, and A is represented from circuit The voltage value that the sample circuit MCU of plate is obtained, d are the constant term of voltage value calibration, by (A11 ..., A17) under 0.9V voltage, (X11 ..., X17) two groups of data substitute into operation, parameter k and b are calculated with the criterion of least square method, thus according to relational expression X '=kA+d, X ' are the voltage value calibrated according to once linear algorithm, (X11 ' ..., X17 ') are obtained, according to related coefficient R2With the calculation formula of mean square error RMSE, calculates and choose the R that once linear algorithm is fitted1 2With mean square error RMSE1:
Wherein, i indicates the serial number of pendulous frequency.
7) PC control terminal is according to second order polynomial functional relation X=lA2+ mA+n, X are represented from data collecting card The voltage value of acquisition, l represent the two-term coefficient of voltage value calibration, and A represents the voltage obtained from the sample circuit MCU of circuit board Value, m represent the Monomial coefficient of voltage value calibration, and n is the constant term of voltage value calibration, by under 0.9V voltage (A11 ..., A17), (X11 ..., X17) two groups of data substitute into operation, with the criterion of least square method, parameter l, m and n are calculated, according to relationship Formula X "=lA2+ mA+n obtains the voltage value (X11 " ..., X17 ") calibrated according to second order polynomial functional relation algorithm, According to coefficient R2With the calculation formula of mean square error RMSE, calculates and choose the correlation that second order polynomial Function Fitting obtains Coefficients R2 2With mean square error RMSE2
Wherein, i indicates the serial number of pendulous frequency.
If R2 2Greater than R1 2, RMSE2Less than RMSE1, then the algorithm conduct of description selection second order polynomial functional relation The fitting of 0.9V voltage is more accurate, sample circuit closer true value after taking this algorithm to carry out error compensation.
8) according to step 6 and step 7, PC control terminal is respectively adopted algorithms of different and relatively show that the road power supply exists 0.9V voltage, current value and the most suitable fitting algorithm of power consumption number and error compensation data.
9) the set program of PC control terminal can calculate the road power supply in 1.0V automatically according to the setting of step 2 With fitting algorithm parameter and error compensation data all under 1.1V.
10) it because the operating voltage of different electrical power circuit and operating current are different on circuit board, is sampled to per power supply all the way The calibration process of circuit, it is necessary to carry out the parameter setting of step 2, just can guarantee the practical electricity of calibration process covering of its sample circuit Source operative scenario, the accuracy of the sampling circuit samples after realizing calibration.Meanwhile the software interface of PC control terminal provides The recommendation setting values of different electrical power circuit different voltages.
11) after the completion of all test jobs, in report option card, the statement form of needs, such as * .txt, * are chosen .xls, * .pdf etc., and can select to save the position of report.PC control terminal have recorded all test item object times, Specific test data and error compensation data etc., the structure of report of generation are as follows:
Table 3, all test item object times, specific test data and error compensation data
12) corresponding error compensation data table in report is extracted, PC control terminal downloads to microcontroller list are passed through First MCU carries out program upgrading, completes calibration.
The embodiment of the present invention is proposed with the selection of a variety of calibration algorithms, data sheet output, multiple sampling resistors simultaneously Other circuits that the calibration of sample circuit generallys use attached component composition in the method for measurement, with available circuit plate carry out Error compensation is compared, and the embodiment of the present invention can rapidly and accurately complete the upgrading calibration of sample circuit in circuit board, energy Working efficiency is significantly improved, the accuracy that the parameters such as electric current, power consumption calculate measurement is increased, improves sample circuit calibration in circuit board Accuracy.
Those skilled in the art can carry out various modifications to the embodiment of the present invention and modification, if these modifications and change For type within the scope of the claims in the present invention and its equivalent technologies, then these modifications and variations are also in protection scope of the present invention Within.
The prior art that the content being not described in detail in specification is known to the skilled person.

Claims (10)

1. the system that sample circuit is calibrated automatically in a kind of pair of circuit board, the sample circuit in circuit board includes micro-control unit MCU, sampling resistor, it is characterised in that: the system includes PC control terminal, programme-controlled dc power, voltage collecting device, straight Electronic load is flowed, voltage collecting device is connected to the both ends of the sampling resistor of sample circuit, in real time sends measurement data to Position machine controlling terminal;PC control terminal centralized control calibration process completes number according to preset data times of collection After acquisition, data analysis is carried out according to specified algorithm, the report of error compensation is automatically generated, to sample circuit in circuit board MCU carry out program upgrading, complete the calibration of sample circuit.
2. the system calibrated automatically to sample circuit in circuit board as described in claim 1, it is characterised in that: the host computer Controlling terminal sends the parameter of programme-controlled dc power, voltage collecting device and DC Electronic Loads at the appointed time, and triggers These measuring devices open primary calibration movement;The data that the MCU of sample circuit will be measured in each measuring device and circuit board It is returned to PC control terminal in real time.
3. the system calibrated automatically to sample circuit in circuit board as claimed in claim 2, it is characterised in that: the host computer The data of each calibration actions are collected and recorded to controlling terminal, chooses suitable calibration strategy, carries out error analysis and compensation, will As a result it updates in circuit board in the program of the MCU of sample circuit.
4. the system calibrated automatically to sample circuit in circuit board as claimed in claim 2, it is characterised in that: the host computer Controlling terminal is uniformly coordinated, and the output of programme-controlled dc power and the load of DC Electronic Loads is arranged, and to sampling resistor both ends Voltage measure;After the completion of primary connection, PC control terminal carries out multiple data acquisition by default, and all data are adopted After the completion of collection, PC control terminal provides many algorithms and carries out data analysis, and a key generates the electric comprising voltage of multiple format Flow valuve, performance number, error compensation value data sheet, carry out the upgrading of the MCU program of sample circuit in circuit board, complete to adopting The calibration of sample circuit.
5. the system calibrated automatically to sample circuit in circuit board as claimed in claim 4, it is characterised in that: the host computer The algorithm that controlling terminal provides includes once linear, second order polynomial, exponential function, rolling average fitting algorithm, host computer control Terminal processed makes calibration curve and error compensation, and using least square method as basic norm, calculates the phase relation of every kind of algorithm Several and mean square error, makes comparisons to the fitting degree of algorithms of different, selects for the most accurate fitting algorithm of sample circuit.
6. the method calibrated automatically to sample circuit in circuit board based on system described in claim 1, which is characterized in that including Following steps:
It, will be electric with system bus connection PC control terminal, programme-controlled dc power, voltage collecting device and DC Electronic Loads Sampling resistor both ends in the sample circuit of road plate connect voltage collecting device, and cable one is terminated programme-controlled dc power, another Terminate DC Electronic Loads;
Each instrument and equipment is opened, PC control terminal is started, sets relevant parameter;
PC control terminal centralized control calibration process, after preset data times of collection data acquisition, Power consumption number is calculated, data analysis is carried out according to specified algorithm, automatically generates the report of error compensation, to being sampled in circuit board The MCU of circuit carries out program upgrading, completes the calibration of sample circuit.
7. the method calibrated automatically to sample circuit in circuit board as claimed in claim 6, it is characterised in that: the completion number According to the process of acquisition are as follows:
The pulling load current of the output voltage of PC control terminal control programme-controlled dc power, DC Electronic Loads, according to preparatory The data times of collection of setting obtains voltage value, current value, power consumption number from the MCU of sample circuit, reads from voltage collecting device Voltage value reads current value from programme-controlled dc power.
8. the method calibrated automatically to sample circuit in circuit board as claimed in claim 6, it is characterised in that: according to specified When algorithm carries out data analysis, the algorithm that the PC control terminal provides includes once linear, second order polynomial, index letter Number, rolling average fitting algorithm, PC control terminal make calibration curve and error compensation, and are basic with least square method Criterion calculates the related coefficient and mean square error of every kind of algorithm, makes comparisons to the fitting degree of algorithms of different, selects to be directed to and adopt The most accurate fitting algorithm of sample circuit.
9. the method calibrated automatically to sample circuit in circuit board as claimed in claim 6, it is characterised in that: this method is also wrapped Include following steps: when starting PC control terminal, PC control terminal carries out System self-test, sends instructions to each company Instrument and equipment on the system bus is connect, the information that each instrument and equipment returns is received, detection system connectivity judges entire system Whether system is ready to complete.
10. the method calibrated automatically to sample circuit in circuit board as claimed in claim 6, it is characterised in that: starting is upper When machine controlling terminal, following relevant parameter: measurement range, resolution ratio, test step-length, up-down stroke selection, cycle-index is set.
CN201810909289.7A 2018-08-10 2018-08-10 System and method for automatically calibrating sampling circuit in circuit board Active CN109164404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810909289.7A CN109164404B (en) 2018-08-10 2018-08-10 System and method for automatically calibrating sampling circuit in circuit board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810909289.7A CN109164404B (en) 2018-08-10 2018-08-10 System and method for automatically calibrating sampling circuit in circuit board

Publications (2)

Publication Number Publication Date
CN109164404A true CN109164404A (en) 2019-01-08
CN109164404B CN109164404B (en) 2020-12-01

Family

ID=64895491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810909289.7A Active CN109164404B (en) 2018-08-10 2018-08-10 System and method for automatically calibrating sampling circuit in circuit board

Country Status (1)

Country Link
CN (1) CN109164404B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110261792A (en) * 2019-06-18 2019-09-20 深圳市嘉兆鸿电子有限公司 DC power supply detection method, device, test terminal and readable storage medium storing program for executing
CN111273208A (en) * 2020-03-11 2020-06-12 深圳市金锐显数码科技有限公司 Precision automatic correction method and system based on electronic load
CN112187263A (en) * 2020-08-28 2021-01-05 国电南瑞南京控制系统有限公司 AD sampling value compensation coefficient iteration method and system for resistance voltage division sampling technology
CN113094230A (en) * 2021-03-31 2021-07-09 宁畅信息产业(北京)有限公司 Power consumption monitoring method and power consumption monitoring mainboard
CN113433899A (en) * 2021-06-16 2021-09-24 南京航空航天大学 Signal detection and control method based on serial communication
CN113433501A (en) * 2021-06-24 2021-09-24 紫光展讯通信(惠州)有限公司 Current calibration method, system, medium and calibration board
CN113884960A (en) * 2020-07-02 2022-01-04 广州雷迅创新科技股份有限公司 High-precision calibration method for current measured by shunt method
CN115560792A (en) * 2022-11-09 2023-01-03 成都市运泰利自动化设备有限公司 Method for quick calibration
CN115840181A (en) * 2023-02-16 2023-03-24 南方电网产业投资集团有限责任公司 Charging pile high-voltage sampling calibration circuit and method and electronic equipment
CN116585696A (en) * 2023-05-26 2023-08-15 衡阳鸿运电子有限公司 Game paddle maintenance calibration system
CN118731814A (en) * 2024-06-28 2024-10-01 美泰姆(深圳)科技有限公司 A sampling calibration method for power router based on first-order curve fitting
CN118860050A (en) * 2024-09-27 2024-10-29 苏州联讯仪器股份有限公司 A voltage calibration circuit and sampling voltage fitting and voltage calibration method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102798654A (en) * 2012-09-08 2012-11-28 无锡隆盛科技股份有限公司 Heating control method for nitrogen oxygen sensor
CN102998644A (en) * 2012-11-23 2013-03-27 浙江省电力公司电力科学研究院 Calibration system for direct current resistance tester
CN103048542A (en) * 2011-10-14 2013-04-17 鸿富锦精密工业(深圳)有限公司 Device and system for measuring current calibration resistor
CN103487778A (en) * 2013-10-12 2014-01-01 南京深科博业电气股份有限公司 Analog quantity correcting method and single-CPU (Central Processing Unit) low-pressure protector based on analog quantity correcting method
CN103576064A (en) * 2013-10-28 2014-02-12 惠州市亿能电子有限公司 Insulation detection circuit with calibration module and calibration method thereof
CN103675461A (en) * 2013-12-20 2014-03-26 北京航天测控技术有限公司 Resistance measurement method and device based on adjustable current source
CN104181489A (en) * 2014-09-04 2014-12-03 国家电网公司 Calibration system for substation alternating-current sampling and measuring device
CN105811981A (en) * 2016-03-09 2016-07-27 深圳市博巨兴实业发展有限公司 Automatic test platform for high-precision ADC measurement
US9568581B2 (en) * 2012-07-16 2017-02-14 Fujitsu Limited Signal sampler with a calibration circuit
CN106872748A (en) * 2015-12-13 2017-06-20 李福来 Insulation Resistance Tester high voltage controllable power supply and range switch circuit

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103048542A (en) * 2011-10-14 2013-04-17 鸿富锦精密工业(深圳)有限公司 Device and system for measuring current calibration resistor
US9568581B2 (en) * 2012-07-16 2017-02-14 Fujitsu Limited Signal sampler with a calibration circuit
CN102798654A (en) * 2012-09-08 2012-11-28 无锡隆盛科技股份有限公司 Heating control method for nitrogen oxygen sensor
CN102998644A (en) * 2012-11-23 2013-03-27 浙江省电力公司电力科学研究院 Calibration system for direct current resistance tester
CN103487778A (en) * 2013-10-12 2014-01-01 南京深科博业电气股份有限公司 Analog quantity correcting method and single-CPU (Central Processing Unit) low-pressure protector based on analog quantity correcting method
CN103576064A (en) * 2013-10-28 2014-02-12 惠州市亿能电子有限公司 Insulation detection circuit with calibration module and calibration method thereof
CN103675461A (en) * 2013-12-20 2014-03-26 北京航天测控技术有限公司 Resistance measurement method and device based on adjustable current source
CN104181489A (en) * 2014-09-04 2014-12-03 国家电网公司 Calibration system for substation alternating-current sampling and measuring device
CN106872748A (en) * 2015-12-13 2017-06-20 李福来 Insulation Resistance Tester high voltage controllable power supply and range switch circuit
CN105811981A (en) * 2016-03-09 2016-07-27 深圳市博巨兴实业发展有限公司 Automatic test platform for high-precision ADC measurement

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖文波等: "便携式太阳电池特性参数获取系统", 《北京航空航天大学学报》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110261792A (en) * 2019-06-18 2019-09-20 深圳市嘉兆鸿电子有限公司 DC power supply detection method, device, test terminal and readable storage medium storing program for executing
CN111273208A (en) * 2020-03-11 2020-06-12 深圳市金锐显数码科技有限公司 Precision automatic correction method and system based on electronic load
CN113884960A (en) * 2020-07-02 2022-01-04 广州雷迅创新科技股份有限公司 High-precision calibration method for current measured by shunt method
CN112187263A (en) * 2020-08-28 2021-01-05 国电南瑞南京控制系统有限公司 AD sampling value compensation coefficient iteration method and system for resistance voltage division sampling technology
CN112187263B (en) * 2020-08-28 2022-07-01 国电南瑞南京控制系统有限公司 AD sampling value compensation coefficient iteration method and system for resistance voltage division sampling technology
CN113094230A (en) * 2021-03-31 2021-07-09 宁畅信息产业(北京)有限公司 Power consumption monitoring method and power consumption monitoring mainboard
CN113094230B (en) * 2021-03-31 2024-03-12 宁畅信息产业(北京)有限公司 Power consumption monitoring method and power consumption monitoring main board
CN113433899A (en) * 2021-06-16 2021-09-24 南京航空航天大学 Signal detection and control method based on serial communication
CN113433501B (en) * 2021-06-24 2023-06-02 紫光展讯通信(惠州)有限公司 Current calibration method, system, medium and calibration plate
CN113433501A (en) * 2021-06-24 2021-09-24 紫光展讯通信(惠州)有限公司 Current calibration method, system, medium and calibration board
CN115560792A (en) * 2022-11-09 2023-01-03 成都市运泰利自动化设备有限公司 Method for quick calibration
CN115840181A (en) * 2023-02-16 2023-03-24 南方电网产业投资集团有限责任公司 Charging pile high-voltage sampling calibration circuit and method and electronic equipment
CN116585696A (en) * 2023-05-26 2023-08-15 衡阳鸿运电子有限公司 Game paddle maintenance calibration system
CN116585696B (en) * 2023-05-26 2024-01-30 衡阳鸿运电子有限公司 Game paddle maintenance calibration system
CN118731814A (en) * 2024-06-28 2024-10-01 美泰姆(深圳)科技有限公司 A sampling calibration method for power router based on first-order curve fitting
CN118731814B (en) * 2024-06-28 2025-04-29 美泰姆(深圳)科技有限公司 Electric energy router sampling calibration method based on first-order curve fitting
CN118860050A (en) * 2024-09-27 2024-10-29 苏州联讯仪器股份有限公司 A voltage calibration circuit and sampling voltage fitting and voltage calibration method
CN118860050B (en) * 2024-09-27 2025-07-15 苏州联讯仪器股份有限公司 A voltage calibration circuit and sampling voltage fitting and voltage calibration method

Also Published As

Publication number Publication date
CN109164404B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN109164404A (en) The system and method that sample circuit in circuit board is calibrated automatically
CN101807795B (en) Method and device for constructing electric energy metering simulation system
CN201014997Y (en) Excitation system testing device based on virtual instrument
CN201203666Y (en) Multifunctional mutual-inductor tester
CN101718849A (en) Automatic calibration system of charge/discharge detection instrument of storage battery
CN103487210A (en) Full-automatic calibrating and debugging method and apparatus for intelligent pressure meter
CN106646334B (en) A method and system for calculating the measurement error of an electric energy meter
CN109061291A (en) A kind of method of calibration of embedded On-line sampling system charging pile electric energy error
CN109470389A (en) Strain-type torque measurement system and method
CN117804518A (en) A test fixture for the production of sensing components
CN205608171U (en) Digital electric energy measurement system's testing arrangement
CN202256659U (en) Charging pile direct-current electric energy meter calibration device
CN101187693A (en) Automatic Testing System of Motor Performance Based on Virtual Instrument and Its Working Method
CN104330096B (en) A kind of rectification building-out of measurement signal and the method and device of automatic Calibration
CN101393240A (en) Power Grid Harmonic Online Monitoring Circuit and Its Working Method Based on Virtual Instrument
CN103344937B (en) Intelligent electric energy meter consumption detection equipment and detection method
CN119691703A (en) Concentrator error calibration method based on machine learning
CN114200381B (en) Intelligent ammeter reliability detection system and method
CN105842566B (en) The system and its mapping method of automation mapping digital filter amplitude-versus-frequency curve
CN104316889A (en) Virtual load method-based generator rotor alternating current impedance tester calibration device
CN111781553B (en) System and method for verifying voltage divider
CN209086421U (en) Portable converter station DC measurement system remote end module calibration equipment
CN114355014B (en) A substation secondary device adapted to climate and environmental changes and a method of using the same
CN117214542A (en) Direct current resistance measuring method, measuring device and automatic direct current resistance measuring system
CN110045311A (en) Metering secondary global error on-the-spot test method and its 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240627

Address after: 430000 No. 6, High-tech Fourth Road, Donghu High-tech Development Zone, Wuhan City, Hubei Province

Patentee after: FIBERHOME TELECOMMUNICATION TECHNOLOGIES Co.,Ltd.

Country or region after: China

Patentee after: Wuhan Changjiang Computing Technology Co.,Ltd.

Address before: 430000 No. 6, High-tech Fourth Road, Donghu High-tech Development Zone, Wuhan City, Hubei Province

Patentee before: FIBERHOME TELECOMMUNICATION TECHNOLOGIES Co.,Ltd.

Country or region before: China