CN110231513A - A kind of method and device of multiple way electric acquisition and processing - Google Patents

A kind of method and device of multiple way electric acquisition and processing Download PDF

Info

Publication number
CN110231513A
CN110231513A CN201910619327.XA CN201910619327A CN110231513A CN 110231513 A CN110231513 A CN 110231513A CN 201910619327 A CN201910619327 A CN 201910619327A CN 110231513 A CN110231513 A CN 110231513A
Authority
CN
China
Prior art keywords
electric energy
detection
acquisition
energy
electric
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.)
Pending
Application number
CN201910619327.XA
Other languages
Chinese (zh)
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.)
Shenzhen Zhongyuan Power Supply Technology Development Co Ltd
Original Assignee
Shenzhen Zhongyuan Power Supply Technology Development 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 Shenzhen Zhongyuan Power Supply Technology Development Co Ltd filed Critical Shenzhen Zhongyuan Power Supply Technology Development Co Ltd
Priority to CN201910619327.XA priority Critical patent/CN110231513A/en
Publication of CN110231513A publication Critical patent/CN110231513A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • G01R22/10Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods using digital techniques

Abstract

The application provides a kind of method and device of multiple way electric acquisition and processing, this method comprises: setting since a wheel electric energy detection to next round electric energy detection electric energy detection time interval threshold value;The input terminal of analog switch is connected with the electric energy measurement end for being greater than or equal to two-way respectively, the open and close at electric energy measurement end are controlled according to the control instruction of energy data processor;After receiving electric quantity acquisition enabled instruction, corresponding electric energy measurement end is opened or closed according to preset acquisition order, the detection electric energy for acquiring input terminal corresponds to input terminal deposit register;After completing wheel acquisition according to acquisition order, generates detection and interrupt;After energy data processor reception detection electric energy is handled, generates electric energy processing and complete to identify;When reaching electric energy detection time interval threshold value, and receiving electric energy processing completion mark, the electric energy measurement under being opened based on acquisition order control all the way.The present invention realizes the acquisition and processing of multiple way electric.

Description

A kind of method and device of multiple way electric acquisition and processing
Technical field
This application involves the technical field of ammeter metering more particularly to the methods and dress of a kind of acquisition of multiple way electric and processing It sets.
Background technique
As all kinds of electronic equipments is fast-developing, especially, now begin to enter the intelligentized scientific and technological control epoch, more It is widely used in all trades and professions and daily life come more electronic equipments.The electricity consumption situation of equipment is monitored Not only monitoring can also be provided for equipment use state with the electric energy service condition of monitoring device.
With the arriving of 5G communication times, the foundation at large-scale data center is needed.At large-scale data center, need The data equipment of a large amount of data acquisition, storage and processing is established, and these data equipments require electric energy to drive, logarithm Monitoring according to the electricity consumption situation of equipment is more and more important, and how much the electricity consumption that service supplier also begins through every equipment collects Expense.This results in having road electrical equipments up to a hundred to need power energy monitoring and controlling inside a cabinet, but space is limited, this is required One common monitoring device can monitor multiple way electric metering.
Electricity on the market monitors product at present, the number for being exported input voltage signal conversion by AD modulus conversion chip Electricity data is converted to digital signal data with this and stored and processed by word signal.But since the monitoring of existing electricity is set Standby chip AD thief hatch is limited, and processor CPU processing capacity is unsatisfactory for the monitoring of multichannel electricity, and mainly progress two-way is straight The measurement of galvanic electricity encounters multichannel electric power detection and needs to connect multiple DC meters, wasting space and resource, and cost is high, monitors Inconvenience also adds the processing load of power energy monitoring and controlling processor.
Therefore, multichannel electricity service condition, simple and direct accurate and inexpensive multiple way electric can be monitored by how providing one kind The scheme of acquisition and processing control is this field technical problem urgently to be resolved.
Summary of the invention
The method and device for being designed to provide a kind of multiple way electric acquisition and processing of the application, solves in the prior art Multichannel electricity service condition can not be monitored, the technology that simple and direct accurate and inexpensive multiple way electric acquisition and processing control is asked Topic.
In order to achieve the above objectives, the application provides the method for a kind of multiple way electric acquisition and processing, comprising:
Be arranged analog switch on, since one wheel electric energy detection to next round electric energy detection electric energy inspection Survey time interval threshold value;
The input terminal of the analog switch is connected with the electric energy measurement end for being greater than or equal to two-way respectively, according to The control instruction of energy data processor controls the open and close at the electric energy measurement end;
After receiving electric quantity acquisition enabled instruction, the corresponding electric energy measurement is opened or closed according to preset acquisition order End, the detection electric energy for acquiring the input terminal correspond to the input terminal deposit register;The wheel is completed according to the acquisition order After acquisition, generates detection and interrupt;
The energy data processor receives the detection electric energy in the register, according to preset processing strategie into After row processing, generates electric energy processing and complete mark;Reach the electric energy detection time interval threshold value, and receives the electric energy Electric energy measurement when mark is completed in processing, under being opened based on acquisition order control all the way.
Optionally, wherein this method further include:
Electric energy measurement end described in each road is closed, the electric energy measurement end described in each road carries out zero bias calibration, acquires each road respectively Detection electric energy as zero bias energy value;
Electric energy measurement end described in each road is opened, acquisition testing electric energy is as full inclined energy value respectively;
Linear coefficient calibration is carried out according to the zero bias energy value and full inclined energy value, obtains electric energy measurement end described in each road Linear coefficient;
Register is stored according to the detection electric energy that the detection electric energy and linear coefficient are calibrated.
Optionally, wherein this method further include:
Corresponding relationship between detection electric energy and the detection electric energy of acquisition of the calibration are as follows:
Vreal=K | VAD-Voffset|, wherein VrealVoltage value after calibration, K are linear coefficient, VoffsetFor zero bias electric energy Value, VADFor the detection energy value of acquisition.
Optionally, wherein this method further include:
The various calibration parameters of calibration are stored on external memory;
After detecting the energy data processor reset or power-down rebooting, the school is obtained from the external memory Quasi- parameter, the detection electric energy that the detection electric energy of acquisition is calibrated.
Optionally, wherein this method further include:
Be arranged analog switch on, since one wheel electric energy detection to next round electric energy detection electric energy inspection Survey time interval threshold value, corresponding relationship of the setting electric energy measurement end number with time interval threshold value;
The electric energy measurement end number that acquisition is accessed in the input terminal of the analog switch;
It is compared with electric energy measurement end number with electric energy detection time interval threshold value corresponding relationship, obtains the simulation switching and open The electric energy detection time interval threshold value of pass.
On the other hand, the present invention also provides a kind of devices of multiple way electric acquisition and processing, comprising: time interval threshold value is set Set device, analog switch, energy harvester, energy data processor;Wherein,
The time interval threshold setter is connected with the energy data processor, is arranged on analog switch, Since one wheel electric energy detection to next round electric energy detection electric energy detection time interval threshold value;
The analog switch is connected with the energy harvester and energy data processor, input terminal respectively with Electric energy measurement end more than or equal to two-way is connected, and controls the electric energy measurement according to the control instruction of energy data processor The open and close at end;
The energy harvester is connected with the analog switch and energy data processor, receives electric quantity acquisition After enabled instruction, the corresponding electric energy measurement end is opened or closed according to preset acquisition order, acquires the input terminal Detection electric energy corresponds to the input terminal deposit register;After completing wheel acquisition according to the acquisition order, generates detection and interrupt;
The energy data processor, with the time interval threshold setter, analog switch and energy harvester It is connected, receives the detection electric energy in the register, after being handled according to preset processing strategie, generates at electric energy Reason completes mark;When reaching the electric energy detection time interval threshold value, and receiving the electric energy processing completion mark, it is based on Electric energy measurement under the acquisition order control unlatching all the way.
Optionally, wherein the device further include: calibration processor is connected with the energy harvester,
Electric energy measurement end described in each road is closed, the electric energy measurement end described in each road carries out zero bias calibration, acquires each road respectively Detection electric energy as zero bias energy value;
Electric energy measurement end described in each road is opened, acquisition testing electric energy is as full inclined energy value respectively;
Linear coefficient calibration is carried out according to the zero bias energy value and full inclined energy value, obtains electric energy measurement end described in each road Linear coefficient;
Register is stored according to the detection electric energy that the detection electric energy and linear coefficient are calibrated.
Optionally, wherein in the calibration processor,
Corresponding relationship between detection electric energy and the detection electric energy of acquisition of the calibration are as follows:
Vreal=K | VAD-Voffset|, wherein VrealVoltage value after calibration, K are linear coefficient, VoffsetFor zero bias electric energy Value, VADFor the detection energy value of acquisition.
Optionally, wherein the device further include: controller calibration is connected with the energy harvester,
The various calibration parameters of calibration are stored on external memory;
After detecting the energy data processor reset or power-down rebooting, the school is obtained from the external memory Quasi- parameter, the detection electric energy that the detection electric energy of acquisition is calibrated.
Optionally, wherein the time interval threshold setter, further includes: time interval threshold setting unit, electric energy are surveyed Measure end number acquiring unit and electric energy detection time interval threshold value acquiring unit;Wherein,
The time interval threshold setting unit is connected with the electric energy measurement end number acquiring unit, setting simulation Switching switch on, since one wheel electric energy detection to next round electric energy detection electric energy detection time interval threshold value, Electric energy measurement end number is set with the corresponding relationship of time interval threshold value;
The electric energy measurement end number acquiring unit, with the time interval threshold setting unit and analog switch phase Connection, the electric energy measurement end number that acquisition is accessed in the input terminal of the analog switch;
The electric energy detection time interval threshold value acquiring unit, with the electric energy measurement end number acquiring unit and electric energy number It is connected according to processor, is compared with electric energy measurement end number with electric energy detection time interval threshold value corresponding relationship, obtain the mould The electric energy detection time interval threshold value of quasi- switching switch.
The multiple way electric of the application acquires and the method and device of processing, the beneficial effect of realization are at least as follows:
(1) method and device of the multiple way electric acquisition and processing of the application, adopts AD all the way using analog switch Collection can be extended to multi pass acquisition, and single-chip microcontroller multichannel analog/digital (AD) mouth can be extended to the AD thief hatch of more multichannel, so as to To realize that the voltage, the electric current that satisfy the need measure and electrical energy measurement.
(2) method and device of the multiple way electric acquisition and processing of the application is used directly interior using analog switch It accesses (DMA) function and electric energy sampling value is directly stored in register, CPU processor participation is not needed, to alleviate CPU's Burden can sample AD data, alleviate the data processing time of CPU the multiple short time.
(3) method and device of the multiple way electric acquisition and processing of the application, can every electric energy detection time interval threshold value To carry out each road AD sampling, it is ensured that set time Nei Duige road electric current, voltage AD value poll one time.Fixed Time Interval is adopted Collect AD value, CPU can be made not need just to start wait waste of resource that can switch to avoid each analog switch again after Unstable voltage fluctuation.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application can also be obtained according to these attached drawings other attached for those skilled in the art Figure.
Fig. 1 is a kind of flow diagram of multiple way electric acquisition and the method handled in the embodiment of the present invention;
Fig. 2 is the flow diagram of the method for second of multiple way electric acquisition and processing in the embodiment of the present invention;
Fig. 3 is the flow diagram of the method for the acquisition of the third multiple way electric and processing in the embodiment of the present invention;
Fig. 4 is the flow diagram of the method for the 4th kind of multiple way electric acquisition and processing in the embodiment of the present invention;
Fig. 5 is a kind of switching circuit schematic diagram of analog switch in the embodiment of the present invention.
Fig. 6 is a kind of schematic diagram of multiple way electric sample logic control in the embodiment of the present invention.
Fig. 7 is a kind of structural schematic diagram of multiple way electric acquisition and the device handled in the embodiment of the present invention;
Fig. 8 is the structural schematic diagram of the device of second of multiple way electric acquisition and processing in the embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the device of the acquisition of the third multiple way electric and processing in the embodiment of the present invention;
Figure 10 is the structural schematic diagram of the device of the 4th kind of multiple way electric acquisition and processing in the embodiment of the present invention.
Specific embodiment
Below with reference to the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on the application In embodiment, those skilled in the art's every other embodiment obtained without making creative work, all Belong to the range of the application protection.
Embodiment
As shown in Figure 1, the flow diagram of the method for multiple way electric acquisition a kind of in the present embodiment and processing, this implementation A kind of electric power signal acquisition and control processing method for the detection of multichannel (can be 32 tunnels) high voltage direct current is provided in example.It should The method of multiple way electric acquisition and processing includes the following steps:
Step 101, setting analog switch on, since one wheel electric energy detection to next round electric energy detection Electric energy detection time interval threshold value.
The input terminal of analog switch is connected with the electric energy measurement end for being greater than or equal to two-way by step 102 respectively, The open and close at electric energy measurement end are controlled according to the control instruction of energy data processor.
Analog switch is the switching circuit with simulation of electronic circuits " potentiometer signal ", is also one of hybrid circuit Kind.Circuit transmission is analog signals.Analog switch plays the role of switching on and off signal, there is higher switching speed, There is the good linearity, again in transmission of analogue signal to reduce by the distortion of transmission signal.Analog switch, with CD4051 It is that band forbids 8 controlled by programming signal at end to select 1 analog switching circuit for chip, like a knife eight throws switching switch, tool There are 8 input end of analog signal, an analog signal output.
1 road AD can be acquired using analog switch can be extended to multi pass acquisition, and the multi-channel A/D mouth of single-chip microcontroller It can connect analog switch again and continue to be extended to more multi-channel A/D thief hatch, when encountering multiple way electric detection, do not need to connect Multiple DC meters, have saved installation space and resource.For example, can be with 1 road AD acquisition with analog switch core CD4051 It is extended to the acquisition of 8 tunnels, road AD mouthfuls of single-chip microcontroller 8 can be extended to 64 road AD thief hatch.Can voltage to 32 tunnels, electric current carry out Measurement and electrical energy measurement.
Step 103 after receiving electric quantity acquisition enabled instruction, opens or closes corresponding electric energy according to preset acquisition order Measurement end, the detection electric energy for acquiring input terminal correspond to input terminal deposit register;After completing wheel acquisition according to acquisition order, produce Biopsy, which is surveyed, to interrupt.
Detection electric energy in step 104, energy data processor receiving register, at preset processing strategie After reason, generates electric energy processing and complete mark;Reaching electric energy detection time interval threshold value, and is receiving electric energy processing and complete mark When, the electric energy measurement under being opened based on acquisition order control all the way.
In some alternative embodiments, as shown in Fig. 2, being second of multiple way electric acquisition and processing in the present embodiment The flow diagram of method, unlike Fig. 1, further includes:
Step 201 closes each road electric energy measurement end, carries out zero bias calibration to each road electric energy measurement end, acquires each road respectively Detection electric energy as zero bias energy value.
Step 202 opens each road electric energy measurement end, and acquisition testing electric energy is as full inclined energy value respectively.
Step 203 carries out linear coefficient calibration according to zero bias energy value and full inclined energy value, obtains each road electric energy measurement end Linear coefficient.
Step 204 is stored in register according to the detection electric energy that detection electric energy and linear coefficient are calibrated.
In some alternative embodiments, corresponding relationship between detection electric energy and the detection electric energy of acquisition of calibration are as follows: Vreal=K | VAD-Voffset|, wherein VrealVoltage value after calibration, K are linear coefficient, VoffsetFor zero bias energy value, VADFor The detection energy value of acquisition.
By taking analog switch core CD4051 as an example, 32 tunnel electric energy collection modules, 2 steps of calibration point first carry out zero bias calibration, Laggard line property coefficient calibration, sequentially cannot be anti-.Since the precision of circuit board sampling resistor itself is limited and direct current acquisition module Having differences property of Hall, so must be calibrated.Wherein, VrealFor the voltage value after calibration, K is linear coefficient, VoffsetFor Zero bias value.
Vreal=K | VAD-Voffset|
When acquiring signal input is 0, each road acquires AD value as zero bias value respectively.
When acquiring signal is full bias, pass through K=| VAD-Voffset|/VrealBias is calculated per linear coefficient all the way.
In some alternative embodiments, as shown in figure 3, being the acquisition of the third multiple way electric and processing in the present embodiment The flow diagram of method, unlike Fig. 2, further includes:
The various calibration parameters of calibration are stored on external memory by step 301;
Step 302 after detecting energy data processor reset or power-down rebooting, obtains calibration ginseng from external memory Number, the detection electric energy that the detection electric energy of acquisition is calibrated.
In some alternative embodiments, as shown in figure 4, being the 4th kind of multiple way electric acquisition and processing in the present embodiment The flow diagram of method in step 101, setting analog switch, is opened unlike Fig. 1 from a wheel electric energy detection Electric energy detection time interval threshold value between beginning to next round electric energy detection to start, are as follows:
Step 401, setting analog switch on, since one wheel electric energy detection to next round electric energy detection Electric energy detection time interval threshold value, setting electric energy measurement end number with electric energy detection time interval threshold value corresponding relationship.
The electric energy measurement end number that step 402, acquisition are accessed in the input terminal of analog switch.
Step 403 is compared with electric energy measurement end number with electric energy detection time interval threshold value corresponding relationship, is obtained simulation and is cut Change the electric energy detection time interval threshold value of switch.
In some alternative embodiments, as shown in figure 5, for a kind of switching circuit of analog switch in the present embodiment Schematic diagram.With analog switch core CD4051 by A, the low and high levels of tri- feet of B, C controls U25-U32, that is electric all the way Pressure is output to OUT terminal mouth, then a voltage follower is made by amplifier chip LM2904, increases driving capability.OUT output electricity Pressure maximum can achieve 5V, has been more than that chip sampling pin maximum 5V endures range, by R308 and R310 electric resistance partial pressure, has taken 3/4ths of its voltage, by clamp diode, when voltage is more than 4V, since VCC is 3.3V, he will pass through clamper two Pole pipe outflow, does not damage the sampling pin of AD.INH is " forbidding " end, and when being " 1 " high level, channel is in " disconnected " state, When INH=0, switch 3 foot of common end (OUT terminal) is specifically connected with which foot in input pin, i.e., internal equivalent switch is in What shelves is by A, B and the binary system (programming) of C-terminal output come what is determined.Analog switch core CD4051 there are three power end, In addition to VDD, VSS feeder ear, the end VEE is also added, this allows for signal amplitude and output level displacement is conveniently set.
In some alternative embodiments, as shown in fig. 6, for multiple way electric sample logic control a kind of in the present embodiment Schematic diagram.The prompt operation that electric energy detection time interval threshold value is executed using timer, optionally, with electric energy detection time interval Threshold value is to be illustrated for 0.1 second.Every 0.1 second with timer, an interruption is produced, notice CPU can trigger AD sampling, Using DMA function, (when scan pattern is used for multichannel collecting, a wheel acquisition is according to logical to ADC module (i.e. analog switch) The sequence of road setting successively acquires the channel of each unlatching.But each collected value in channel is stored in register, And only, acquisition complement mark can be just set after the channel that a wheel has acquired i.e. all settings has all acquired, so not using It will appear collected data capped phenomenon when DMA transfer mode.) ADC sampled value is directly stored in register, no It needs CPU to participate in, mitigates CPU burden.After the completion of acquisition, DMA is terminated with the form notice CPU sampling interrupted, and concedes system Bus.CPU receives sampling and completes mark, just will do it data processing, and processing is completed, then gives mono- status indicator of ADC, tells Its this wave number can carry out next round sampling according to having handled.ADC receive simultaneously next 0.1 second timing signal and In the case of CPU has handled the identifier of AD sampled value, it just will start down and sample all the way.CD4051 progress is controlled after the completion of sampling again Number switching.This is also the innovation place of this software logic processing.With the DMA function of ADC, can repeatedly the short time to AD Data are sampled, and the data processing time of CPU is mitigated.8 road AD sampling can be carried out every 0.1 second, it is ensured that in one second To 32 road electric currents, voltage AD value poll one time.Fixed Time Interval acquires AD value, and CPU can be made not need to carry out waiting waste Incipient voltage fluctuation is unstable resource can switch to avoid each CD4051 again after.
In some alternative embodiments, as shown in fig. 7, for dress multiple way electric acquisition and handled a kind of in the present embodiment 700 structural schematic diagram is set, the method which is used to implement above-mentioned multiple way electric acquisition and processing, specifically, the device It include: time interval threshold setter 701, analog switch 702, energy harvester 703 and energy data processor 704.
Wherein, time interval threshold setter 701 is connected with energy data processor 704, and analog switch is arranged On, since one wheel electric energy detection to next round electric energy detection electric energy detection time interval threshold value.
Analog switch 702 is connected with energy harvester 703 and energy data processor 704, input terminal respectively with Electric energy measurement end more than or equal to two-way is connected, and controls electric energy measurement end according to the control instruction of energy data processor It opens and closes.
Energy harvester 703 is connected with analog switch 702 and energy data processor 704, receives electric quantity acquisition After enabled instruction, corresponding electric energy measurement end is opened or closed according to preset acquisition order, acquires the detection electric energy of input terminal Corresponding input terminal is stored in register;After completing wheel acquisition according to acquisition order, generates detection and interrupt.
Energy data processor 704, with time interval threshold setter 701, analog switch 702 and energy harvester 703 are connected, the detection electric energy in receiving register, after being handled according to preset processing strategie, generate electric energy and have handled At mark;When reaching electric energy detection time interval threshold value, and receiving electric energy processing completion mark, controlled based on acquisition order Electric energy measurement under unlatching all the way.
In some alternative embodiments, as shown in figure 8, being second of multiple way electric acquisition and processing in the present embodiment The structural schematic diagram of device 800, unlike Fig. 7, further includes: calibration processor 801 is connected with energy harvester 703 It connects, closes each road electric energy measurement end, zero bias calibration is carried out to each road electric energy measurement end, acquires the detection electric energy conduct on each road respectively Zero bias energy value.
Each road electric energy measurement end is opened, acquisition testing electric energy is as full inclined energy value respectively;According to zero bias energy value and completely Inclined energy value carries out linear coefficient calibration, obtains the linear coefficient at each road electric energy measurement end;According to detection electric energy and linear coefficient The detection electric energy deposit register calibrated.
Optionally, in calibration processor, corresponding relationship between detection electric energy and the detection electric energy of acquisition of calibration are as follows:
Vreal=K | VAD-Voffset|, wherein VrealVoltage value after calibration, K are linear coefficient, VoffsetFor zero bias electric energy Value, VADFor the detection energy value of acquisition.
In some alternative embodiments, as shown in figure 9, being the acquisition of the third multiple way electric and processing in the present embodiment The structural schematic diagram of device 900, unlike Fig. 8, further includes: controller calibration 901 is connected with energy harvester 703 It connects, the various calibration parameters of calibration is stored on external memory;Detect energy data processor reset or power down weight Qi Hou obtains calibration parameter, the detection electric energy calibrated to the detection electric energy of acquisition from external memory.
It in some alternative embodiments, as shown in Figure 10, is the 4th kind of multiple way electric acquisition and processing in the present embodiment Device 1000 structural schematic diagram, unlike Fig. 7, time interval threshold setter 701, further includes: time interval Threshold setting unit 711, electric energy measurement end number acquiring unit 712 and electric energy detection time interval threshold value acquiring unit 713.
Wherein, time interval threshold setting unit 711 is connected with electric energy measurement end number acquiring unit 712, and mould is arranged On quasi- switching switch, since a wheel electric energy detection to next round electric energy detection electric energy detection time interval threshold Value, corresponding relationship of the setting electric energy measurement end number with time interval threshold value.
Electric energy measurement end number acquiring unit 712, with time interval threshold setting unit 711, electric energy detection time interval Threshold value acquiring unit 713 and analog switch 702 are connected, the electric energy that acquisition is accessed in the input terminal of analog switch Measurement end number;
Electric energy detection time interval threshold value acquiring unit 713, with electric energy measurement end number acquiring unit 712 and energy data Processor 704 is connected, and compares with electric energy measurement end number with electric energy detection time interval threshold value corresponding relationship, obtains simulation and cut Change the electric energy detection time interval threshold value of switch.
What the method and device of multiple way electric acquisition and processing was realized in the present embodiment has the beneficial effect that:
(1) method and device of the multiple way electric acquisition and processing of the application, adopts AD all the way using analog switch Collection can be extended to multi pass acquisition, and single-chip microcontroller multichannel analog/digital (AD) mouth can be extended to the AD thief hatch of more multichannel, so as to To realize that the voltage, the electric current that satisfy the need measure and electrical energy measurement.
(2) method and device of the multiple way electric acquisition and processing of the application is used directly interior using analog switch It accesses (DMA) function and electric energy sampling value is directly stored in register, CPU processor participation is not needed, to alleviate CPU's Burden can sample AD data, alleviate the data processing time of CPU the multiple short time.
(3) method and device of the multiple way electric acquisition and processing of the application, can every electric energy detection time interval threshold value To carry out each road AD sampling, it is ensured that set time Nei Duige road electric current, voltage AD value poll one time.Fixed Time Interval is adopted Collect AD value, CPU can be made not need just to start wait waste of resource that can switch to avoid each analog switch again after Unstable voltage fluctuation.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.Obviously, those skilled in the art can be to the application Various modification and variations are carried out without departing from spirit and scope.If in this way, these modifications and variations of the application Belong within the scope of the claim of this application and its equivalent technologies, then the application is also intended to encompass these modification and variations and exists It is interior.

Claims (10)

1. a kind of method of multiple way electric acquisition and processing characterized by comprising
Be arranged analog switch on, since one wheel electric energy detection to next round electric energy detection electric energy detection when Between interval threshold;
The input terminal of the analog switch is connected with the electric energy measurement end for being greater than or equal to two-way respectively, according to electric energy The control instruction of data processor controls the open and close at the electric energy measurement end;
After receiving electric quantity acquisition enabled instruction, the corresponding electric energy measurement end is opened or closed according to preset acquisition order, The detection electric energy for acquiring the input terminal corresponds to the input terminal deposit register;Wheel acquisition is completed according to the acquisition order Afterwards, detection is generated to interrupt;
The energy data processor receives the detection electric energy in the register, at preset processing strategie After reason, generates electric energy processing and complete mark;Reach the electric energy detection time interval threshold value, and receives the electric energy processing Electric energy measurement when completing mark, under being opened based on acquisition order control all the way.
2. the method for multiple way electric acquisition and processing according to claim 1, which is characterized in that further include:
Electric energy measurement end described in each road is closed, the electric energy measurement end described in each road carries out zero bias calibration, acquires the inspection on each road respectively Electric energy is surveyed as zero bias energy value;
Electric energy measurement end described in each road is opened, acquisition testing electric energy is as full inclined energy value respectively;
Linear coefficient calibration is carried out according to the zero bias energy value and full inclined energy value, obtains the line at electric energy measurement end described in each road Property coefficient;
Register is stored according to the detection electric energy that the detection electric energy and linear coefficient are calibrated.
3. the method for multiple way electric acquisition and processing according to claim 2, which is characterized in that further include:
Corresponding relationship between detection electric energy and the detection electric energy of acquisition of the calibration are as follows:
Vreal=K | VAD-Voffset|, wherein VrealVoltage value after calibration, K are linear coefficient, VoffsetFor zero bias energy value, VADFor the detection energy value of acquisition.
4. the method for multiple way electric acquisition and processing according to claim 2, which is characterized in that further include:
The various calibration parameters of calibration are stored on external memory;
After detecting the energy data processor reset or power-down rebooting, the calibration ginseng is obtained from the external memory Number, the detection electric energy that the detection electric energy of acquisition is calibrated.
5. the method for multiple way electric acquisition and processing according to claim 1, which is characterized in that setting analog switch On, since one wheel electric energy detection to next round electric energy detection electric energy detection time interval threshold value, to include:
Be arranged analog switch on, since one wheel electric energy detection to next round electric energy detection electric energy detection when Between interval threshold, setting electric energy measurement end number with electric energy detection time interval threshold value corresponding relationship;
The electric energy measurement end number that acquisition is accessed in the input terminal of the analog switch;
It is compared with electric energy measurement end number with electric energy detection time interval threshold value corresponding relationship, obtains the analog switch Electric energy detection time interval threshold value.
6. a kind of device of multiple way electric acquisition and processing characterized by comprising time interval threshold setter, simulation are cut Change switch, energy harvester and energy data processor;Wherein,
The time interval threshold setter is connected with the energy data processor, is arranged on analog switch, from one Wheel electric energy detection start to next round electric energy detection to start between electric energy detection time interval threshold value;
The analog switch is connected with the energy harvester and energy data processor, input terminal respectively be greater than Or be connected equal to the electric energy measurement end of two-way, the electric energy measurement end is controlled according to the control instruction of energy data processor It opens and closes;
The energy harvester is connected with the analog switch and energy data processor, receives electric quantity acquisition starting After instruction, the corresponding electric energy measurement end is opened or closed according to preset acquisition order, acquires the detection of the input terminal Electric energy corresponds to the input terminal deposit register;After completing wheel acquisition according to the acquisition order, generates detection and interrupt;
The energy data processor is connected with the time interval threshold setter, analog switch and energy harvester It connects, receives the detection electric energy in the register, after being handled according to preset processing strategie, generate electric energy and handled At mark;When reaching the electric energy detection time interval threshold value, and receiving the electric energy processing completion mark, based on described Electric energy measurement under acquisition order control unlatching all the way.
7. the device of multiple way electric acquisition and processing according to claim 6, which is characterized in that further include: calibration process Device is connected with the energy harvester,
Electric energy measurement end described in each road is closed, the electric energy measurement end described in each road carries out zero bias calibration, acquires the inspection on each road respectively Electric energy is surveyed as zero bias energy value;
Electric energy measurement end described in each road is opened, acquisition testing electric energy is as full inclined energy value respectively;
Linear coefficient calibration is carried out according to the zero bias energy value and full inclined energy value, obtains the line at electric energy measurement end described in each road Property coefficient;
Register is stored according to the detection electric energy that the detection electric energy and linear coefficient are calibrated.
8. the device of multiple way electric acquisition and processing according to claim 7, which is characterized in that in the calibration processor In,
Corresponding relationship between detection electric energy and the detection electric energy of acquisition of the calibration are as follows:
Vreal=K | VAD-Voffset|, wherein VrealVoltage value after calibration, K are linear coefficient, VoffsetFor zero bias energy value, VADFor the detection energy value of acquisition.
9. the device of multiple way electric acquisition and processing according to claim 7, which is characterized in that further include: calibration control Device is connected with the energy harvester,
The various calibration parameters of calibration are stored on external memory;
After detecting the energy data processor reset or power-down rebooting, the calibration ginseng is obtained from the external memory Number, the detection electric energy that the detection electric energy of acquisition is calibrated.
10. the device of multiple way electric acquisition and processing according to claim 6, which is characterized in that the time interval threshold It is worth setter, further includes: time interval threshold setting unit, electric energy measurement end number acquiring unit and electric energy detection time interval Threshold value acquiring unit;Wherein,
The time interval threshold setting unit is connected with the electric energy measurement end number acquiring unit, setting simulation switching On switch, since one wheel electric energy detection to next round electric energy detection electric energy detection time interval threshold value, setting Corresponding relationship of the electric energy measurement end number with time interval threshold value;
The electric energy measurement end number acquiring unit, is connected with the time interval threshold setting unit and analog switch It connects, the electric energy measurement end number that acquisition is accessed in the input terminal of the analog switch;
The electric energy detection time interval threshold value acquiring unit, when with the electric energy measurement end number acquiring unit, electric energy detection Between interval threshold acquiring unit and energy data processor be connected, with electric energy measurement end number with electric energy detection time interval threshold It is worth corresponding relationship comparison, obtains the electric energy detection time interval threshold value of the analog switch.
CN201910619327.XA 2019-07-10 2019-07-10 A kind of method and device of multiple way electric acquisition and processing Pending CN110231513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910619327.XA CN110231513A (en) 2019-07-10 2019-07-10 A kind of method and device of multiple way electric acquisition and processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910619327.XA CN110231513A (en) 2019-07-10 2019-07-10 A kind of method and device of multiple way electric acquisition and processing

Publications (1)

Publication Number Publication Date
CN110231513A true CN110231513A (en) 2019-09-13

Family

ID=67854988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910619327.XA Pending CN110231513A (en) 2019-07-10 2019-07-10 A kind of method and device of multiple way electric acquisition and processing

Country Status (1)

Country Link
CN (1) CN110231513A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112098709A (en) * 2020-08-14 2020-12-18 陕西千山航空电子有限责任公司 Acquisition circuit of self-adaptive microvolt analog voltage signal
CN113055012A (en) * 2021-03-05 2021-06-29 Tcl空调器(中山)有限公司 AD sampling method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2689351Y (en) * 2004-04-09 2005-03-30 山东科技大学 Multi-path impulsing data collector based on A/D conversion
CN101615010A (en) * 2009-07-17 2009-12-30 西安电子科技大学 Multi-path data acquiring system based on FPGA
CN101876693A (en) * 2010-06-09 2010-11-03 合肥工业大学 Electric energy metering chip-based terminal calibration system
CN102495279A (en) * 2011-12-23 2012-06-13 无锡博欧电子科技有限公司 Metering device for multipath alternating current electric quantities
CN102692559A (en) * 2012-06-19 2012-09-26 上海贝电实业(集团)股份有限公司 Multi-path collecting method of smart ammeter
CN104503931A (en) * 2014-11-28 2015-04-08 上海富山精密机械科技有限公司 Multi-channel analog signal acquisition method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2689351Y (en) * 2004-04-09 2005-03-30 山东科技大学 Multi-path impulsing data collector based on A/D conversion
CN101615010A (en) * 2009-07-17 2009-12-30 西安电子科技大学 Multi-path data acquiring system based on FPGA
CN101876693A (en) * 2010-06-09 2010-11-03 合肥工业大学 Electric energy metering chip-based terminal calibration system
CN102495279A (en) * 2011-12-23 2012-06-13 无锡博欧电子科技有限公司 Metering device for multipath alternating current electric quantities
CN102692559A (en) * 2012-06-19 2012-09-26 上海贝电实业(集团)股份有限公司 Multi-path collecting method of smart ammeter
CN104503931A (en) * 2014-11-28 2015-04-08 上海富山精密机械科技有限公司 Multi-channel analog signal acquisition method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112098709A (en) * 2020-08-14 2020-12-18 陕西千山航空电子有限责任公司 Acquisition circuit of self-adaptive microvolt analog voltage signal
CN113055012A (en) * 2021-03-05 2021-06-29 Tcl空调器(中山)有限公司 AD sampling method, device and storage medium

Similar Documents

Publication Publication Date Title
CN103019234B (en) Battery management and acquisition subsystem of new energy vehicle and method for controlling battery management and acquisition subsystem
CN101943743B (en) Intelligent monitoring method and device of connecting strip resistance and battery internal resistance of battery pack
CN101776708A (en) Multichannel voltage collecting device and method
CN104237645A (en) Online monitoring system and method for insulation state of substation DC system
CN103941075B (en) Nanosecond pulsewidth electrochemistry processing pulse real-time detection method and circuit thereof
CN110231513A (en) A kind of method and device of multiple way electric acquisition and processing
CN102590604A (en) Wide voltage data collection device based on complex programmable logic device (CPLD)
CN102098368B (en) Mobile phone
CN105510833A (en) Storage battery health status detection method, device and system
CN205049678U (en) Short circuit testing arrangement is opened to camera module
CN102507431A (en) Multi-channel galvanic corrosion measurement device
CN103852623B (en) Condenser type photovoltaic cell voltage x current harvester
CN201311447Y (en) Voltage and current testing system
CN105319514A (en) An accumulator capacity detection method
CN206223724U (en) A kind of test system of blood sugar instrument
CN107991529A (en) Non-linear power measures analysis recorder
CN203759092U (en) Capacitive photovoltaic battery voltage/current acquisition apparatus
CN207832893U (en) A kind of intelligent electric meter
CN105891591A (en) Large-power energy-storage inverter current detection and control system
CN104198871A (en) Electronic device tester and testing method thereof
CN204855637U (en) Battery management system's current sampling circuit
CN106154955A (en) A kind of two-way filtering temperature control detection switching signal harvester
CN204287285U (en) Capture card measured by a kind of multimeter
CN208285033U (en) A kind of series-connected cell group equalizing charge controlling circuit
CN111796188A (en) Lithium battery equipment parameter acquisition circuit and 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