CN107009907B - Output sampling method and device of charging device - Google Patents

Output sampling method and device of charging device Download PDF

Info

Publication number
CN107009907B
CN107009907B CN201710187402.0A CN201710187402A CN107009907B CN 107009907 B CN107009907 B CN 107009907B CN 201710187402 A CN201710187402 A CN 201710187402A CN 107009907 B CN107009907 B CN 107009907B
Authority
CN
China
Prior art keywords
sampling
value
data buffer
current
buffer module
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.)
Active
Application number
CN201710187402.0A
Other languages
Chinese (zh)
Other versions
CN107009907A (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.)
Shenzhen Ce Newpower New Energy Technology Co ltd
Original Assignee
Shenzhen Ce Newpower New Energy Technology 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 Ce Newpower New Energy Technology Co ltd filed Critical Shenzhen Ce Newpower New Energy Technology Co ltd
Priority to CN201710187402.0A priority Critical patent/CN107009907B/en
Publication of CN107009907A publication Critical patent/CN107009907A/en
Application granted granted Critical
Publication of CN107009907B publication Critical patent/CN107009907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/60Monitoring or controlling charging stations
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16533Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application
    • G01R19/16538Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application in AC or DC supplies
    • G01R19/16547Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application in AC or DC supplies voltage or current in AC supplies
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/16571Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 comparing AC or DC current with one threshold, e.g. load current, over-current, surge current or fault current
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/16576Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 comparing DC or AC voltage with one threshold
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/17Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values giving an indication of the number of times this occurs, i.e. multi-channel analysers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/7072Electromobility specific charging systems or methods for batteries, ultracapacitors, supercapacitors or double-layer capacitors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/12Electric charging stations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/14Plug-in electric vehicles

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention is suitable for the technical field of electric automobile charging, and provides a charging device output sampling method and device. The method comprises the following steps: sampling output voltage and/or current of the charging device in real time; comparing the current sampling value with the current average value; the current average value is an average value of all sampling values currently stored in the data buffer module; and when the difference value between the current sampling value and the current average value meets a preset condition, the sampling value stored in the data buffer module is emptied to store a new sampling value. The method does not consume a large amount of storage resources, can sample and monitor the output of the charging device more quickly, and achieves quick response to the output of the charging device.

Description

Output sampling method and device of charging device
Technical Field
The invention belongs to the technical field of electric automobile charging, and particularly relates to an output sampling method and device of a charging device.
Background
With the rapid development of electric vehicles, the charging technology of electric vehicles is becoming a key point of whether electric vehicles can realize a great deal of popularization. In general, when an electric automobile is charged, the output current and/or voltage of the charging device needs to be sampled in real time and fed back to the control end in time so as to monitor the charging process of the electric automobile. In the conventional method for sampling the output current and/or voltage of the charging device, the sampling result occupies a relatively large memory of the MCU (Microcontroller Unit, micro control unit), so that when the output current and/or voltage of the charging device changes, the response is not timely enough, and the monitoring of the charging process of the electric automobile is affected.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method and an apparatus for sampling output of a charging device, so as to solve the problem in the prior art that when the output current and/or voltage of the charging device changes, the response is not timely enough.
In a first aspect of an embodiment of the present invention, there is provided an output sampling method of a charging device, including:
sampling output voltage and/or current of the charging device in real time;
comparing the current sampling value with the current average value; the current average value is an average value of all sampling values currently stored in the data buffer module;
and when the difference value between the current sampling value and the current average value meets a preset condition, the sampling value stored in the data buffer module is emptied to store a new sampling value.
Preferably, the data buffer module comprises a plurality of connected accumulators; the step of emptying the sampling value stored in the data buffer module specifically comprises the following steps:
and all the accumulators in the data buffer module are emptied.
Preferably, when the difference value between the current sampling value and the current average value meets a preset condition, the step of emptying the sampling value stored in the data buffer module specifically includes:
and when the difference value between the current sampling values with the preset number and the corresponding current average value is larger than a threshold value, all the sampling values stored in the data buffer module are emptied.
Preferably, the method further comprises: and when the sampling value stored in the data buffer module is larger than the maximum storage space of the data buffer module, emptying the earliest stored preset number of sampling values in the data buffer module.
Preferably, the data buffer module comprises a plurality of connected accumulators; the emptying of the preset number of sampling values stored earliest by the data buffer module is specifically as follows: clearing the accumulator currently storing the earliest sampling value to store a new sampling value; wherein the earliest sample value is the earliest sample value in time among the sample values stored in the respective accumulators.
In a second aspect of the embodiment of the present invention, there is provided an output sampling device of a charging device, including:
the sampling module is used for sampling the output voltage and/or current of the charging device in real time;
the data buffer module is used for storing the sampling value obtained by the sampling module;
the comparison module is used for comparing the current sampling value with the current average value; the current average value is an average value of all sampling values currently stored in the data buffer module;
and the processing module is used for emptying the sampling value stored in the data buffer module when the difference value between the current sampling value and the current average value meets a preset condition so as to store a new sampling value.
Preferably, the data buffer module comprises a plurality of connected accumulators; the processing module is specifically configured to: and all the accumulators in the data buffer module are emptied.
Preferably, the processing module is specifically configured to: and when the difference value between the current sampling values with the preset number and the corresponding current average value is larger than a threshold value, all the sampling values stored in the data buffer module are emptied.
Preferably, the processing module is further configured to empty a preset number of sampling values stored earliest in the data buffering module when the sampling value is greater than a maximum storage space of the data buffering module.
Preferably, the data buffer module comprises a plurality of connected accumulators; the processing module is specifically configured to: clearing the accumulator currently storing the earliest sampling value to store a new sampling value; wherein the earliest sample value is the earliest sample value in time among the sample values stored in the respective accumulators.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: according to the embodiment of the invention, the output voltage and/or current of the charging device is sampled in real time, then the current sampling value is compared with the current average value, and when the difference value between the current sampling value and the current average value meets the preset condition, the sampling value stored in the data buffer module is emptied to store a new sampling value, so that a large amount of storage resources are not consumed continuously, the output of the charging device can be sampled and monitored more quickly, and the quick response to the output of the charging device is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an output sampling method of a charging device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a specific example of an output sampling method of a charging device according to a first embodiment of the present invention;
fig. 3 is a block diagram of an output sampling device of a charging device according to a second embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
Example 1
Fig. 1 shows an implementation flow of an output sampling method of a charging device according to an embodiment of the present invention, which is described in detail below:
step S101, sampling the output voltage and/or current of the charging device in real time.
In this embodiment, the charging device may include a control module, an ac power distribution module, a power distribution module, and an acquisition module. The control module is used for generating a charging control signal. The alternating current power distribution module is used for outputting alternating current according to the charging control signal. The power distribution module is used for converting alternating current output by the alternating current distribution module into multiple paths of direct current according to the charging control signal and adjusting the power of each path of direct current. The acquisition module is used for acquiring alternating current electric signals output by the alternating current distribution module and multipath direct current electric signals output by the power distribution module and feeding back the alternating current electric signals and the multipath direct current electric signals to the control module so that the control module can adjust the charging control signals.
In this step, the output voltage and/or current of the power distribution module in the charging device may be sampled in real time. This step may be implemented by a voltage-current sampler or a voltage-current sampling circuit. For example, the output voltage and/or current of the power distribution module may be sampled by a sampled voltage current sampler. In this embodiment, the sampling time interval is not limited, and may be set according to actual needs. For example, every 1ms, 10ms, 100ms, 1s or 10s, etc. and different charging phases may correspond to different time intervals. Specifically, in the initial stage of charging, the sampling interval may be relatively large; as charging proceeds, the sampling interval may become smaller; at the end of charge, the sampling interval may be set smaller.
Step S102, comparing the current sampling value with the current average value.
The current average value is an average value of all sampling values currently stored in the data buffer module. For example, if the number of sampling values currently stored in the data buffer module is N (N>1) Each sampling value is X (i), i=1, 2, …, N, and the average value of all the sampling values is
Figure BDA0001255226780000051
The current sampling value is a sampling value X (i) obtained by sampling the output voltage and/or current of the charging device.
In this embodiment, comparing the current sampling value with the current average value may specifically be: the current sampling value X (i) is compared with the current average value
Figure BDA0001255226780000052
Comparing the magnitudes and calculating the current sampling value X (i) and the current average value
Figure BDA0001255226780000053
The difference between the two.
As an implementation manner, this step may be implemented by a comparator, but not limited to, comparing the magnitude relation between the current sampling value and the current average value. For example, the comparator may include a voltage comparator and/or a current comparator.
Step S103, when the difference between the current sampling value and the current average value meets a preset condition, the sampling value stored in the data buffer module is emptied, so as to store a new sampling value.
In this embodiment, step S103 may specifically be: and when the difference value between the current sampling values with the preset number and the corresponding current average value is larger than a threshold value, all the sampling values stored in the data buffer module are emptied. This step may be implemented by a microprocessor, but is not limited thereto.
Specifically, when the difference value between the current sampling values with the preset number and the corresponding current average value is larger than the threshold value, it is indicated that the actual output value of the output voltage and/or current of the charging device is changed, and all the sampling values stored in the data buffer module are emptied corresponding to the change of the charging stage, so that the output of the charging device can be sampled and monitored more quickly, and the quick response to the output of the charging device is realized.
It should be noted that, the current average value of the continuous preset number of current sampling values is compared with the corresponding current average value, and the current average value is the average value of all sampling values currently stored in the data buffer module, so that the current average values corresponding to different current sampling values are not the same, but may be relatively close.
For example, when the difference between the current sampling values X (i), X (i+1), … … and X (i+m) and the corresponding current average value is continuously detected to be greater than the threshold value, it is indicated that the actual output value of the output voltage and/or current of the charging device has been changed, and the charging period is changed correspondingly, at this time, all the sampling values stored in the data buffer module are emptied, so that the output of the charging device can be sampled and monitored more quickly, and a quick response to the output of the charging device is realized.
As an alternative, the data buffer module may comprise a plurality of connected accumulators, with each accumulator storing a sample value. Correspondingly, the emptying the sampling value stored in the data buffer module may specifically be: all accumulators in the data buffer module are emptied to store new sample values.
Further, the output sampling method of the charging device according to the embodiment of the present invention may further include: and when the sampling value stored in the data buffer module is larger than the maximum storage space of the data buffer module, emptying the earliest stored preset number of sampling values in the data buffer module.
It can be understood that when the sampling value stored in the data buffer module is greater than the maximum storage space of the data buffer module, it is indicated that no redundant storage space exists in the data buffer module to store a new sampling value, and at this time, the preset number of sampling values stored earliest in the data buffer module can be emptied, so that space is reserved for the new sampling value, and the new sampling value is stored.
As an embodiment, the data buffer module includes a plurality of connected accumulators. Correspondingly, the emptying the preset number of sampling values stored earliest by the data buffer module may specifically be: clearing the accumulator currently storing the earliest sampling value to store a new sampling value; wherein the earliest sample value is the earliest sample value in time among the sample values stored in the respective accumulators.
Specifically, the data buffering module includes three connected accumulators A1, A2 and A3, each accumulator being capable of storing X sample values. The three accumulators store the sample values in the order: firstly, storing a sampling value by an accumulator A1; when the accumulated value of the number of the sampling values is larger than X, the accumulator A1 does not have space for storing new sampling values, and the accumulator A2 stores the new sampling values; when the number of the sampling values is larger than 2X, the accumulator A2 does not have a space to store a new sampling value, and the accumulator A3 stores the new sampling value. Correspondingly, when the accumulated value of the number of the sampling values is larger than 3X, the three accumulators do not have space for storing new sampling values, and as the sampling values stored in the accumulator A1 are relatively earliest, the sampling values stored in the accumulator A1 are emptied, and then the new sampling values are stored, so that the current average value is calculated by the newer sampling values; when the accumulated value of the number of the sampling values is larger than 4X, the sampling values stored in the accumulator A2 are emptied, and then new sampling values are stored; when the accumulated value of the number of the sampling values is larger than 5X, the sampling values stored in the accumulator A3 are emptied, and then new sampling values are stored; and so on according to the above procedure.
Referring to fig. 2, a method for sampling an output of a charging device according to an embodiment of the present invention is further described below by taking a data buffer module including three connected accumulators A1, A2, and A3 as an example. The number of sampling values that each accumulator can store is 10000, but not limited to this.
Firstly, sampling the output voltage and/or current of a charging device by a sampling device, and then sending the sampled value to a monitor; the monitor compares the current sampling value with the current average value, and empties the sampling values stored in the accumulator A1, the accumulator A2 and the accumulator A3 when the absolute values of the differences between a plurality of continuous current sampling values and the corresponding current average values are all larger than a threshold value; accumulator A1, accumulator A2 and accumulator A3 store new sample values in sequence.
Specifically, when the accumulated number of sampling values is less than 10000, the accumulator A1 stores the sampling values; when the accumulated value of the number of the sampling values is larger than 10000, the accumulator A1 does not have space for storing new sampling values, and the accumulator A2 stores the new sampling values; when the number of the sampling values is larger than 20000, the accumulator A2 does not have space to store new sampling values, and the accumulator A3 stores new sampling values.
Correspondingly, when the accumulated value of the number of the sampling values is greater than 30000, the three accumulators do not have space for storing new sampling values, and as the sampling values stored in the accumulator A1 are relatively earliest, the sampling values stored in the accumulator A1 are emptied, and then the new sampling values are stored, so that the current average value is calculated from the newer sampling values; when the accumulated value of the number of the sampling values is greater than 40000, the sampling values stored in the accumulator A2 are emptied, and then new sampling values are stored; when the accumulated value of the number of the sampling values is more than 50000, the sampling values stored in the accumulator A3 are emptied, and then new sampling values are stored; and so on according to the above procedure.
In the present embodiment of the present invention,
Figure BDA0001255226780000071
(1) When i>30000, let i=20001, empty accumulator A1,
Figure BDA0001255226780000072
i.e. to cause accumulator A1 to store a new sample value;
(2) Again i>30000, let i=20001, empty accumulator A2,
Figure BDA0001255226780000073
i.e. to cause accumulator A2 to store the new sample value;
(3) Again i>30000, let i=20001, empty accumulator A3,
Figure BDA0001255226780000081
i.e. to cause accumulator A3 to store a new sample value;
(4) And (3) repeating (1) when i >30000 is performed again.
The average value of the filter output is
Figure BDA0001255226780000082
Where i is the number of times the sample values are actually accumulated.
According to the output sampling method of the charging device, the output voltage and/or the current of the charging device are sampled in real time, then the current sampling value is compared with the current average value, and when the difference value between the current sampling value and the current average value meets the preset condition, the sampling value stored in the data buffer module is emptied to store a new sampling value, a large amount of storage resources are not consumed continuously, so that the output of the charging device can be sampled and monitored more quickly, and the quick response to the output of the charging device is realized.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Example two
Corresponding to the output sampling method of the charging device described in the above embodiments, fig. 3 shows a block diagram of the output sampling device of the charging device according to the embodiment of the present invention. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 3, the apparatus includes a sampling module 101, a data buffering module 102, a comparing module 103, and a processing module 104.
Specifically, the sampling module 101 is configured to sample, in real time, an output voltage and/or current of the charging device.
And the data buffer module 102 is used for storing the sampling value obtained by the sampling module.
A comparing module 103, configured to compare the current sampling value with the current average value. Wherein the current average value is an average value of all sampling values currently stored in the data buffer module 102.
And the processing module 104 is configured to empty the sampling value stored in the data buffering module when the difference value between the current sampling value and the current average value meets a preset condition, so as to store a new sampling value.
Optionally, the data buffer module 102 includes a plurality of connected accumulators. The processing module 104 is specifically configured to: the respective accumulators in the data buffer module 102 are all emptied.
Optionally, the processing module 104 is specifically configured to: and when the difference value between the current sampling values with the preset number and the corresponding current average value is larger than a threshold value, all the sampling values stored in the data buffer module 102 are emptied.
Further, the processing module 104 is further configured to empty the preset number of sampling values stored earliest in the data buffering module 102 when the sampling values are greater than the maximum storage space of the data buffering module 102.
Optionally, the data buffer module 102 includes a plurality of connected accumulators. The processing module 104 is specifically configured to: clearing the accumulator currently storing the earliest sampling value to store a new sampling value; wherein the earliest sample value is the earliest sample value in time among the sample values stored in the respective accumulators.
According to the output sampling device of the charging device, the output voltage and/or the current of the charging device are sampled in real time, then the current sampling value is compared with the current average value, and when the difference value between the current sampling value and the current average value meets the preset condition, the sampling value stored in the data buffer module is emptied to store a new sampling value, a large amount of storage resources are not consumed continuously, so that the output of the charging device can be sampled and monitored more quickly, and the quick response to the output of the charging device is realized.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the system embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (8)

1. An output sampling method of a charging device, comprising:
sampling output voltage and/or current of the charging device in real time;
comparing the current sampling value with the current average value; the current average value is an average value of all sampling values currently stored in the data buffer module;
when the difference value between the current sampling value and the current average value meets a preset condition, the sampling value stored in the data buffer module is emptied to store a new sampling value;
when the difference value between the current sampling value and the current average value meets a preset condition, the step of emptying the sampling value stored in the data buffer module specifically comprises the following steps:
and when the absolute values of the differences between the current sampling values with the preset numbers and the corresponding current average values are larger than a threshold value, all the sampling values stored in the data buffer module are emptied.
2. The method of claim 1, wherein the data buffer module comprises a plurality of connected accumulators; the step of emptying the sampling value stored in the data buffer module specifically comprises the following steps:
and all the accumulators in the data buffer module are emptied.
3. The output sampling method of a charging device according to claim 1, further comprising: and when the sampling value stored in the data buffer module is larger than the maximum storage space of the data buffer module, emptying the earliest stored preset number of sampling values in the data buffer module.
4. The method of claim 3, wherein the data buffer module comprises a plurality of connected accumulators; the emptying of the preset number of sampling values stored earliest in the data buffer module is specifically: clearing the accumulator currently storing the earliest sampling value to store a new sampling value; wherein the earliest sample value is the earliest sample value in time among the sample values stored in the respective accumulators.
5. An output sampling device of a charging device, comprising:
the sampling module is used for sampling the output voltage and/or current of the charging device in real time;
the data buffer module is used for storing the sampling value obtained by the sampling module;
the comparison module is used for comparing the current sampling value with the current average value; the current average value is an average value of all sampling values currently stored in the data buffer module;
the processing module is used for emptying the sampling value stored in the data buffer module when the difference value between the current sampling value and the current average value meets a preset condition so as to store a new sampling value;
the processing module is specifically configured to: and when the absolute values of the differences between the current sampling values with the preset numbers and the corresponding current average values are larger than a threshold value, all the sampling values stored in the data buffer module are emptied.
6. The output sampling device of a charging device of claim 5, wherein the data buffer module comprises a plurality of connected accumulators; the processing module is specifically configured to: and all the accumulators in the data buffer module are emptied.
7. The output sampling device of claim 6, wherein the processing module is further configured to empty a preset number of sample values stored earliest in the data buffer module when the sample value is greater than a maximum storage space of the data buffer module.
8. The output sampling device of a charging device of claim 7, wherein the data buffer module comprises a plurality of connected accumulators; the processing module is specifically configured to: clearing the accumulator currently storing the earliest sampling value to store a new sampling value; wherein the earliest sample value is the earliest sample value in time among the sample values stored in the respective accumulators.
CN201710187402.0A 2017-03-27 2017-03-27 Output sampling method and device of charging device Active CN107009907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710187402.0A CN107009907B (en) 2017-03-27 2017-03-27 Output sampling method and device of charging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710187402.0A CN107009907B (en) 2017-03-27 2017-03-27 Output sampling method and device of charging device

Publications (2)

Publication Number Publication Date
CN107009907A CN107009907A (en) 2017-08-04
CN107009907B true CN107009907B (en) 2023-05-19

Family

ID=59446678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710187402.0A Active CN107009907B (en) 2017-03-27 2017-03-27 Output sampling method and device of charging device

Country Status (1)

Country Link
CN (1) CN107009907B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008295184A (en) * 2007-05-24 2008-12-04 Suzuki Motor Corp Charging device
CN101980029B (en) * 2010-09-14 2013-10-16 海洋王照明科技股份有限公司 Voltage sampling method and device
CN103000004B (en) * 2011-09-13 2014-09-17 三星电子(中国)研发中心 Monitoring method for visibility range from eyes to screen
CN104330740A (en) * 2014-07-08 2015-02-04 北京鸿智电通科技有限公司 Terminal charging protecting method and device
CN105337368B (en) * 2015-11-30 2018-02-02 小米科技有限责任公司 terminal charging method and device

Also Published As

Publication number Publication date
CN107009907A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN102216793B (en) System and method for measuring battery internal resistance
CN106207291A (en) A kind of charging method, device and battery system
CN106828168B (en) Current control method and device
CN112677804A (en) Charging power distribution method, charging power distribution device and battery replacement cabinet
CN113472037A (en) Battery pack balancing method, battery pack balancing device and battery management system
CN107222612B (en) Background application program closing method and device of mobile terminal
CN107181010B (en) The filter processing method and device and battery management system of power battery sample rate current
CN104659881A (en) Charging method and device for mobile terminal
CN106341467A (en) State analysis method of power utilization information collector based on big data parallel computing
US10381868B2 (en) Power metering system, load power monitoring system using the same and operation method thereof
CN107009907B (en) Output sampling method and device of charging device
CN111064158A (en) Overcurrent protection device, magnetic suspension system and overcurrent protection method thereof
CN117233645A (en) Energy storage inverter battery abnormality judging method, system and medium
US20170059634A1 (en) Power monitoring system and method for monitoring power thereof
CN111572400A (en) Charging control method and device applied to electric automobile
CN107895983B (en) Battery equalization method and device, computer readable storage medium, battery management device and vehicle
CN109417303B (en) Method for equalizing the charge states of a plurality of battery modules of a battery and corresponding device
CN113507154A (en) Charging method and device, charger and electronic equipment
CN110850304A (en) Full charge detection method and device and storage medium
CN212459839U (en) Energy consumption monitoring system based on big data
CN112328563B (en) Transient recording data compression method and device, electronic equipment and storage medium
CN110988448B (en) Filtering method applied to UPS bus voltage sampling
CN114844003A (en) Intelligent power distributor control method and terminal
CN114200315A (en) Method and device for predicting remaining charging time, electronic equipment and storage medium
CN112905684A (en) Electric power data storage method and device and computer readable storage medium

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