CN110470941A - Creepage detection method, device, equipment and the storage medium of alternating current - Google Patents

Creepage detection method, device, equipment and the storage medium of alternating current Download PDF

Info

Publication number
CN110470941A
CN110470941A CN201910873204.9A CN201910873204A CN110470941A CN 110470941 A CN110470941 A CN 110470941A CN 201910873204 A CN201910873204 A CN 201910873204A CN 110470941 A CN110470941 A CN 110470941A
Authority
CN
China
Prior art keywords
leakage current
value
sampled value
current
storage queue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910873204.9A
Other languages
Chinese (zh)
Other versions
CN110470941B (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.)
Wasion Group Co Ltd
Original Assignee
Wasion Group 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 Wasion Group Co Ltd filed Critical Wasion Group Co Ltd
Priority to CN201910873204.9A priority Critical patent/CN110470941B/en
Publication of CN110470941A publication Critical patent/CN110470941A/en
Application granted granted Critical
Publication of CN110470941B publication Critical patent/CN110470941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

The invention discloses a kind of creepage detection method of alternating current, device, equipment and computer readable storage mediums, method includes: that each sampling instant acquires a leakage current analog signal, and the leakage current analog signal of current sample time is converted to leakage current sampled value using analog-to-digital conversion;When getting leakage current sampled value, judge whether the total number of leakage current sampled value in storage queue reaches predetermined period hits;When the total number of leakage current sampled value in storage queue reaches predetermined period hits, obtain the leakage current virtual value of previous sampling instant, and according to the leakage current sampled value of data corresponding leakage current sampled value and current sample time earliest in the leakage current virtual value of previous sampling instant, storage queue, the leakage current virtual value of current sample time is obtained.It is slow and the technical issues of be unable to real-time detection that the present invention solves existing creepage detection method detection speed.

Description

Creepage detection method, device, equipment and the storage medium of alternating current
Technical field
The present invention relates to power measurement field more particularly to a kind of creepage detection method of alternating current, device, equipment and Computer readable storage medium.
Background technique
As industry and commerce and residential households electrical equipment increasingly increase, low pressure electrical nodes are more and more, since electricity consumption is set Standby and wiring lack of standardization or ageing equipment, various safety utilization of electric power Frequent Accidents caused by causing because of electric leakage give social property Huge loss is brought with personal safety.Electric leakage causes safety utilization of electric power accident in order to prevent, needs to electrical equipment and electricity consumption Route carries out earth leakage protective, and is a ring important in earth leakage protective to the detection of leakage current, and leakage current is common at present In detection method every time detect before require to resurvey at least one complete cycle signal, then further according to resurvey to All signals calculate leakage current value in a few complete cycle, acquire all signals in a complete cycle and need to expend centainly Time thus detection method detection speed is slow and be unable to real-time detection.
Summary of the invention
It is a primary object of the present invention to propose a kind of creepage detection method of alternating current, device, equipment and computer Readable storage medium storing program for executing, it is intended to solve the problems, such as that existing creepage detection method is slow in the presence of detection speed and is unable to real-time detection.
To achieve the above object, the present invention provides a kind of creepage detection method of alternating current, comprising steps of
Each sampling instant acquires a leakage current analog signal, and uses analog-to-digital conversion by the electric leakage of current sample time Flow field simulation signal is converted to leakage current sampled value;
When getting leakage current sampled value, judge whether the total number of leakage current sampled value in storage queue reaches default Periodic sampling number;
When the total number of leakage current sampled value in storage queue reaches predetermined period hits, previous sampling instant is obtained Leakage current virtual value, and according to the corresponding electric leakage of data earliest in the leakage current virtual value of previous sampling instant, storage queue The leakage current sampled value for flowing sampled value and current sample time, obtains the leakage current virtual value of current sample time.
Optionally, the leakage current virtual value according to previous sampling instant, the corresponding leakage of data earliest in storage queue The leakage current sampled value of current sampling data and current sample time, the step of obtaining the leakage current virtual value of current sample time packet It includes:
By the leakage current virtual value of previous sampling instant, the leakage current sampled value of current sample time, storage queue acceptance of the bid It is denoted as the corresponding leakage current sampled value of earliest data and inputs preset the first computation model of leakage current virtual valueIn, the leakage current virtual value of current sample time is obtained, wherein I1For present sample Moment leakage current virtual value, I0For previous sampling instant leakage current virtual value, ICurrentlyIt is sampled for the leakage current of current sample time Value, IEarliestFor the corresponding leakage current sampled value of data earliest in storage queue, K is preset normalization coefficient.
Optionally, the leakage current virtual value according to previous sampling instant, the corresponding leakage of data earliest in storage queue The leakage current sampled value of current sampling data and current sample time, the step of obtaining the leakage current virtual value of current sample time it Afterwards, further includes:
Earliest data in the leakage current sampled value covering storage queue of current sample time are corresponded into leakage current sampled value, and Set latest data to the leakage current sampled value of current sample time;
Judge whether the corresponding storage location of latest data is in the most end storage location in storage queue;
If so, being the corresponding leakage current sampled value of first storage location in storage queue by earliest data change;
If it is not, being then the corresponding leakage current sampled value of next storage location of latest data by earliest data change.
Optionally, described when getting leakage current sampled value, judge the total number of leakage current sampled value in storage queue After the step of whether reaching predetermined period hits, further includes:
When the total number of leakage current sampled values all in storage queue is not up to predetermined period hits, storage team is judged Whether the total number of all leakage current sampled values in column, which reaches predetermined period hits, subtracts one;
Subtract for the moment when the total number of all leakage current sampled values in storage queue reaches predetermined period hits, it will be current The leakage current sampled value of sampling instant is stored in storage queue in next storage location of latest data, and by latest data It is changed to the leakage current sampled value of current sample time and by the leakage current sampled value of first storage location in storage queue As earliest data to update storage queue;
Had according to the practical leakage current that each leakage current sampled value in updated storage queue obtains current sample time Valid value.
Optionally, each leakage current sampled value according in updated storage queue obtains the reality of current sample time The step of border leakage current virtual value includes:
Each leakage current sampled value in updated storage queue is inputted into preset leakage current virtual value second and calculates mould TypeIn, the leakage current virtual value of current sample time is obtained, wherein I0Have for the leakage current of current sample time Valid value, K are predetermined coefficient, and N is predetermined period hits, InIt is adopted for the corresponding leakage current of n-th of storage location in storage queue Sample value, n=1,2 ... N.
Optionally, whether the total number for judging all leakage current sampled values in storage queue reaches predetermined period and adopts After the step of sample number subtracts one, further includes:
Subtract judgement for the moment when the total number of all leakage current sampled values in storage queue is not up to predetermined period hits Whether the total number of all leakage current sampled values in storage queue is 0;
When the total number of all leakage current sampled values in storage queue is 0, the leakage current sampling of current sample time Value is stored in first storage location in storage queue, and using the leakage current sampled value of current sample time as newest number According to.
Optionally, described when the total number of all leakage current sampled values in storage queue is not up to predetermined period hits Subtract for the moment, after the step of whether total number for judging all leakage current sampled values in storage queue is 0, further includes:
When the total number of all leakage current sampled values in storage queue is not 0, by the leakage current of current sample time Sampled value is stored in storage queue in next storage location of latest data, and when latest data is changed to present sample The leakage current sampled value at quarter.
To achieve the above object, the present invention also provides a kind of leak current detection device of alternating current, the leakages of the alternating current Current detection means includes current sense module, analog-digital converter ADC module and leakage current calculation process module;
The current sense module acquires a leakage current analog signal for each sampling instant;
The analog-digital converter ADC module, for using analog-to-digital conversion by the leakage current analog signal of current sample time Be converted to leakage current sampled value;
The leakage current calculation process module is leaked electricity in storage queue for judging when getting leakage current sampled value Whether the total number of stream sampled value reaches predetermined period hits;When the total number of leakage current sampled value in storage queue reaches pre- If when periodic sampling number, obtaining the leakage current virtual value of previous sampling instant, and effective according to the leakage current of previous sampling instant The leakage current sampled value of data corresponding leakage current sampled value and current sample time, acquisition are current earliest in value, storage queue The leakage current virtual value of sampling instant.
To achieve the above object, the present invention also provides a kind of leak current detection device equipment of alternating current, the equipment packets It includes memory, processor and is stored in the computer program that can be run on the memory and on the processor, the meter Calculation machine program realizes the step of creepage detection method of alternating current as described above when being executed by the processor.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages Computer program is stored on medium, the computer program realizes the electric leakage of alternating current as described above when being executed by processor The step of flowing detection method.
Creepage detection method, device, equipment and the computer readable storage medium of a kind of alternating current proposed by the present invention, A leakage current analog signal is acquired by each sampling instant, and uses analog-to-digital conversion by the leakage current mould of current sample time Quasi- signal is converted to leakage current sampled value;When getting leakage current sampled value, leakage current sampled value in storage queue is judged Whether total number reaches predetermined period hits;When the total number of leakage current sampled value in storage queue reaches predetermined period sampling When number, the leakage current virtual value of previous sampling instant is obtained, and according to the leakage current virtual value of previous sampling instant, storage queue In data corresponding leakage current sampled value and current sample time earliest leakage current sampled value, obtain the leakage of current sample time Current effective value.To in the sampling for completing a sampling period for the first time, i.e., acquire all signals in a complete cycle for the first time Afterwards, when one signal of subsequent each acquisition, so that it may which the leakage current virtual value for calculating current time, withouting waiting for acquisition should Other signals in signal the latter cycle, thus can real-time detection leakage current and detection rates faster.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the creepage detection method first embodiment of alternating current of the present invention;
Fig. 3 is the flow diagram of the creepage detection method second embodiment of alternating current of the present invention;
Fig. 4 is the flow diagram of the creepage detection method 3rd embodiment of alternating current of the present invention;
Fig. 5 is the flow diagram of the creepage detection method fourth embodiment of alternating current of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of creepage detection method of alternating current of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Fig. 1 is please referred to, Fig. 1 is the hardware structural diagram of equipment provided in each embodiment of the present invention.It is described to set Standby includes the components such as communication module 10, memory 20 and processor 30.It will be understood by those skilled in the art that shown in Fig. 1 Equipment can also include perhaps combining certain components or different component layouts than illustrating more or fewer components.Its In, the processor 30 is connect with the memory 20 and the communication module 10 respectively, is stored with meter on the memory 20 Calculation machine program, the computer program are executed by processor 30 simultaneously.
Communication module 10 can be connect by network with external equipment.Communication module 10 can receive external equipment sending Data, to the external equipment, the external equipment can be electrical equipment, in monitoring for also transmittable data, instruction and information The electronic equipments such as the heart, mobile phone, tablet computer, laptop and desktop computer.
Memory 20 can be used for storing software program and various data.Memory 20 can mainly include storing program area The storage data area and, wherein storing program area can application program needed for storage program area, at least one function (calculate leakage Current effective value) etc.;Storage data area, which can be stored, uses created data or information etc. according to equipment.In addition, memory 20 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic disk storage Part, flush memory device or other volatile solid-state parts.
Processor 30 is the control centre of equipment, using the various pieces of various interfaces and connection whole equipment, is led to It crosses operation or executes the software program and/or module being stored in memory 20, and call the number being stored in memory 20 According to, execute equipment various functions and processing data, thus to equipment carry out integral monitoring.Processor 30 may include one or more A processing unit;Preferably, processor 30 can integrate application processor and modem processor, wherein application processor master Processing operation system, user interface and application program etc. are wanted, modem processor mainly handles wireless communication.It is understood that It is that above-mentioned modem processor can not also be integrated into processor 30.
Although Fig. 1 is not shown, above equipment can also include circuit control module, and circuit control module is used for and alternating current Connection realizes power supply control, guarantees the normal work of other component.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the restriction to equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
According to above-mentioned hardware configuration, each embodiment of the method for the present invention is proposed.
Referring to Fig. 2, in the first embodiment of the creepage detection method of alternating current of the present invention, the electric leakage of the alternating current Flow detection method comprising steps of
Step S10, each sampling instant acquire a leakage current analog signal, and when using analog-to-digital conversion by present sample The leakage current analog signal at quarter is converted to leakage current sampled value;
In the present solution, alternating current refers to that the electric current of size and Orientation all generating period variations, current waveform are positive Chord curve has symmetry and periodicity, and the time span of a cycle and the frequency of alternating current are related, physical relationship T= 1/f, wherein T is the time span of a cycle, and unit is the second, and f is frequency.Since sine curve has symmetry and period Property, thus the time that half of cycle may be selected as the sampling period, also can choose a cycle time as the sampling period, sample Predetermined period hits in period can be 16 or 32 or other numerical value, and predetermined period hits is not limited thereto.
The each sampling instant of current sensor in the leakage current test equipment of alternating current can acquire a leakage current mould Quasi- signal, is then sent to ADC (Analog-to-Digital for the leakage current analog signal that current sample time acquires Converter, analog-digital converter), the leakage current analog signal of current sample time is converted to leakage current and sampled by the ADC Value.
Step S20, when getting leakage current sampled value, judge leakage current sampled value in storage queue total number whether Reach predetermined period hits;
When getting the leakage current sampled value of current sample time, judges leakage current stored in storage queue and adopt Whether the total number of sample value reaches predetermined period hits, storage location total number and predetermined period hits in storage queue It is identical.
Step S30 is obtained previous when the total number of leakage current sampled value in storage queue reaches predetermined period hits The leakage current virtual value of sampling instant, and according to data pair earliest in the leakage current virtual value of previous sampling instant, storage queue The leakage current sampled value of the leakage current sampled value and current sample time answered, the leakage current for obtaining current sample time are effective.
The total number of leakage current sampled value reaches predetermined period hits and illustrates all in storage queue deposit in storage queue Storage space all stores leakage current sampled value in setting, while illustrating the leakage current that a cycle has been acquired before current sample time Signal, even a cycle correspond to 1/2 Zhou Bochang, then illustrate the leakage current signal for having acquired a half cycles, if one Corresponding 1 Zhou Bochang of a period, then illustrate the leakage current signal for having acquired a complete cycle.When determining in storage queue When the total number of leakage current sampled value reaches predetermined period hits, the leakage current virtual value of previous sampling instant, and root are obtained According to the corresponding leakage current virtual value of earliest data and present sample in the leakage current virtual value of previous sampling instant, storage queue The leakage current virtual value at moment obtains the leakage current virtual value of current sample time, detailed process are as follows:
By the leakage current virtual value of previous sampling instant, the leakage current sampled value of current sample time, storage queue acceptance of the bid It is denoted as the corresponding leakage current sampled value of earliest data and inputs preset the first computation model of leakage current virtual valueIn, the leakage current virtual value of current sample time is obtained, wherein I1For present sample Moment leakage current virtual value, I0For previous sampling instant leakage current virtual value, ICurrentlyIt is sampled for the leakage current of current sample time Value, IEarliestFor the corresponding leakage current sampled value of data earliest in storage queue, K is preset normalization coefficient.
The present embodiment acquires a leakage current analog signal by each sampling instant, and will currently be adopted using analog-to-digital conversion The leakage current analog signal at sample moment is converted to leakage current sampled value;When getting leakage current sampled value, storage queue is judged Whether the total number of middle leakage current sampled value reaches predetermined period hits;When the total number of leakage current sampled value in storage queue When reaching predetermined period hits, the leakage current virtual value of previous sampling instant is obtained, and according to the electric leakage of previous sampling instant The leakage current sampled value of earliest data corresponding leakage current sampled value and current sample time, is obtained in stream virtual value, storage queue Obtain the leakage current virtual value of current sample time.It is subsequent each to acquired in a complete cycle after all signals for the first time When acquiring a signal, so that it may which the leakage current virtual value for quickly calculating current time withouts waiting for after acquiring the signal Other signals in one cycle, thus can real-time detection leakage current and detection rates faster.
Further, the application alternating current is proposed according to the first embodiment of the creepage detection method of the application alternating current Creepage detection method second embodiment, in the present embodiment, after the step S30, further includes:
Step S40, by data correspond to leakage current earliest in the leakage current sampled value covering storage queue of current sample time Sampled value, and set latest data to the leakage current sampled value of current sample time;
Step S50, judges whether the corresponding storage location of latest data is in the most end storage location in storage queue;If It is to then follow the steps S60;If it is not, thening follow the steps S70;
Earliest data change is the corresponding leakage current sampled value of first storage location in storage queue by step S60;
Earliest data change is the corresponding leakage current sampled value of next storage location of latest data by step S70.
In the present embodiment, after calculating the leakage current virtual value for obtaining current sample time, current sample time can be adopted Data corresponding leakage current sampled value earliest in the leakage current sampled value covering storage queue of collection, then by storage queue most New data is changed to the leakage current sampled value of current time acquisition.Since the corresponding leakage current sampled value of earliest data is coated Gai Liao needs to change the earliest data in storage queue again, judges the storage position of the latest data in storage queue at this time Set whether be storage queue most end position, if so, the leakage current that will be stored in first storage location in storage queue Sampled value is as earliest data, if it is not, then will be in next storage location of the storage location of the latest data in storage queue The leakage current sampled value of storage is as earliest data.
For example, the storage location in storage queue there are 10, store by current sample time leakage current sampled value into depositing Before storing up queue, the storage location of the earliest data in storage queue is most end position, and the storage location of latest data is the 9th, The leakage current sampled value of current sample time can be stored in most end position, i.e., by the covering of current sample time leakage current sampled value The leakage current sampled value of storage, and latest data is changed to the current sample time leakage current sampled value stored in this position, The storage location of latest data is most end position at this time, and data have been capped earliest, need to redefine earliest data, It can be that the corresponding leakage current of the first storage location is adopted by earliest data change since the storage location of latest data is most end position Sample value.
In another example the storage location in storage queue has 10, by current sample time leakage current sampled value store into Before storage queue, the storage location of the earliest data in storage queue is the 9th, and the storage location of latest data is the 8th, when The leakage current sampled value of preceding sampling instant can be stored in the 9th, i.e., stored the covering of current sample time leakage current sampled value Leakage current sampled value, and by latest data be changed to the current sample time stored on the position (the 9th storage location) leakage Current sampling data, the storage location of latest data is the 9th storage location at this time, and data have been capped earliest, are needed Earliest data are redefined, since the storage location of latest data is not most end position, earliest data change can be the 9th and deposited The corresponding leakage current sampled value of next storage location that storage space is set i.e. the 10th storage location.
The present embodiment provides use first in, first out principle to acquire current sample time after a kind of calculating leakage current virtual value Leakage current sampled value stores the strategy into storage queue, so that it is guaranteed that when next sampling instant calculates leakage current sampled value, according to According to each leakage current sampled value of storage queue be away from the leakage current sampled value in the nearest a cycle of next sampling instant.
Further, referring to Fig. 3, this Shen is proposed according to the first embodiment of the creepage detection method of the application alternating current Please alternating current creepage detection method 3rd embodiment, in the present embodiment, after step S20, further includes:
Step S21 sentences when the total number of leakage current sampled values all in storage queue is not up to predetermined period hits Whether the total number of all leakage current sampled values in disconnected storage queue, which reaches predetermined period hits, subtracts one;
Step S22 subtracts one when the total number of all leakage current sampled values in storage queue reaches predetermined period hits When, the leakage current sampled value of current sample time is stored in storage queue in next storage location of latest data, and Latest data is changed to the leakage current sampled value of current sample time and by the leakage of first storage location in storage queue Current sampling data updates storage queue as earliest data;
Step S23 obtains the reality of current sample time according to each leakage current sampled value in updated storage queue Leakage current virtual value.
In the present embodiment, all stored leakage current samplings in the storage queue when determining current sample time When the total number of value is not up to predetermined period hits, illustrate still to have in storage queue not stored leakage current in storage location to adopt Sample value does not collect the leakage current signal of a cycle also, judges in storage queue store at this time before current sample time Leakage current sampled value number whether reach predetermined period hits and subtract one, due to storage location quantity in storage queue and pre- If periodic sampling number is identical, that is, judge in storage queue whether not stored leakage current sampled value in only one storage location.When It determines in storage queue not stored leakage current sampled value in only one storage location, then adopts the leakage current of current sample time Sample value is stored in the most end position in next storage location of latest data, that is, being stored in storage queue in storage queue, And latest data is changed to the leakage current sampled value of current sample time and by first storage location in storage queue Leakage current sampled value updates storage queue as earliest data.
The practical electric leakage of current sample time is finally obtained according to each leakage current sampled value in updated storage queue Virtual value is flowed, the detailed process of practical leakage current virtual value is obtained are as follows:
Each leakage current sampled value in updated storage queue is inputted into preset leakage current virtual value second and calculates mould TypeIn, the leakage current virtual value of current sample time is obtained, wherein I0Have for the leakage current of current sample time Valid value, K are predetermined coefficient, and N is predetermined period hits, InIt is adopted for the corresponding leakage current of n-th of storage location in storage queue Sample value, n=1,2 ... N.
The leakage current test equipment of the present embodiment in acquired leakage current sampled value, (adopt by the leakage current including currently acquiring Sample value) cumulative amount when reaching predetermined period quantity for the first time, it is straight according to the leakage current sampled value in collected a cycle Connect the strategy for calculating and obtaining leakage current virtual value.
Further, referring to Fig. 4, this Shen is proposed according to the first embodiment of the creepage detection method of the application alternating current Please alternating current creepage detection method fourth embodiment, in the present embodiment, after step S21, further includes:
Step S24 subtracts when the total number of all leakage current sampled values in storage queue is not up to predetermined period hits For the moment, whether the total number for judging all leakage current sampled values in storage queue is 0;
Step S25, when the total number of all leakage current sampled values in storage queue is 0, by current sample time Leakage current sampled value is stored in first storage location in storage queue, and the leakage current sampled value of current sample time is made For latest data.
In the present embodiment, when the total number of all leakage current sampled values in storage queue is not up to predetermined period sampling Number subtracts for the moment, that is, determines in storage queue there is not stored leakage current sampled value at least two storage locations, at this time can be further Whether the total number for judging all leakage current sampled values in storage queue is 0, that is, judges whether current time is to adopt for the first time Collect leakage current collection value, when the total number of all leakage current sampled values in storage queue is 0, then illustrates current sample time Acquisition leakage current sampled value for the first time, can direct current sample time leakage current sampled value be stored in storage queue the One storage location, and using the leakage current sampled value of current sample time as latest data.
The present embodiment provides one kind when leakage current test equipment acquires leakage current sampled value for the first time, to leakage current sampled value Processing strategie.
Further, referring to Fig. 5, this Shen is proposed according to the first embodiment of the creepage detection method of the application alternating current Please alternating current creepage detection method the 5th embodiment, in the present embodiment, after step S24, further includes:
Step S26, when the total number of all leakage current sampled values in storage queue is not 0, by current sample time Leakage current sampled value be stored in storage queue in next storage location of latest data, and latest data is changed to work as The leakage current sampled value of preceding sampling instant.
In the present embodiment, it when the total number of all leakage current sampled values in storage queue is not 0, that is, determines current Sampling instant is not to acquire leakage current sampled value for the first time, and acquired leakage current sampled value sum is not up to predetermined period The leakage current sampled value of current sample time can be stored in next storage location of latest data in storage queue by hits On, and latest data is changed to the leakage current sampled value of non-current sample time.
It is not up to default in acquired leakage current sampled value sum that the present embodiment provides a kind of leakage current test equipment When periodic sampling number, to the processing strategie of the leakage current sampled value currently acquired.
The present invention also proposes that a kind of leak current detection device of alternating current, the leak current detection device of the alternating current include Current sense module, analog-digital converter ADC module and leakage current calculation process module;
The current sense module acquires a leakage current analog signal for each sampling instant;
The analog-digital converter ADC module, for using analog-to-digital conversion by the leakage current analog signal of current sample time Be converted to leakage current sampled value;
The leakage current calculation process module is leaked electricity in storage queue for judging when getting leakage current sampled value Whether the total number of stream sampled value reaches predetermined period hits;When the total number of leakage current sampled value in storage queue reaches pre- If when periodic sampling number, obtaining the leakage current virtual value of previous sampling instant, and effective according to the leakage current of previous sampling instant The leakage current sampled value of data corresponding leakage current sampled value and current sample time, acquisition are current earliest in value, storage queue The leakage current virtual value of sampling instant.
The present invention also proposes a kind of computer readable storage medium, is stored thereon with computer program.The computer can Reading storage medium can be the memory 20 in the equipment of Fig. 1, be also possible to such as ROM (Read-Only Memory, read-only storage Device)/RAM (Random Access Memory, random access memory), magnetic disk, at least one of CD, the computer Readable storage medium storing program for executing includes that several information are used so that equipment executes method described in each embodiment of the present invention.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of creepage detection method of alternating current, which is characterized in that comprising steps of
Each sampling instant acquires a leakage current analog signal, and uses analog-to-digital conversion by the leakage current mould of current sample time Quasi- signal is converted to leakage current sampled value;
When getting leakage current sampled value, judge whether the total number of leakage current sampled value in storage queue reaches predetermined period Hits;
When the total number of leakage current sampled value in storage queue reaches predetermined period hits, the leakage of previous sampling instant is obtained Current effective value, and adopted according to the corresponding leakage current of data earliest in the leakage current virtual value of previous sampling instant, storage queue The leakage current sampled value of sample value and current sample time obtains the leakage current virtual value of current sample time.
2. the creepage detection method of alternating current according to claim 1, which is characterized in that it is described according to previous sampling when The leakage current of the corresponding leakage current sampled value of data and current sample time is adopted earliest in the leakage current virtual value at quarter, storage queue Sample value, the step of obtaining the leakage current virtual value of current sample time include:
It is number by label in the leakage current virtual value of previous sampling instant, the leakage current sampled value of current sample time, storage queue Preset the first computation model of leakage current virtual value is inputted according to corresponding leakage current sampled value In, the leakage current virtual value of current sample time is obtained, wherein I1For current sample time leakage current virtual value, I0It is adopted to be previous Sample moment leakage current virtual value, ICurrentlyFor the leakage current sampled value of current sample time, IEarliestFor data pair earliest in storage queue The leakage current sampled value answered, K are preset normalization coefficient.
3. the creepage detection method of alternating current according to claim 2, which is characterized in that it is described according to previous sampling when The leakage current of the corresponding leakage current sampled value of data and current sample time is adopted earliest in the leakage current virtual value at quarter, storage queue Sample value, after the step of obtaining the leakage current virtual value of current sample time, further includes:
Earliest data in the leakage current sampled value covering storage queue of current sample time are corresponded into leakage current sampled value, and will be worked as The leakage current sampled value of preceding sampling instant is set as latest data;
Judge whether the corresponding storage location of latest data is in the most end storage location in storage queue;
If so, being the corresponding leakage current sampled value of first storage location in storage queue by earliest data change;
If it is not, being then the corresponding leakage current sampled value of next storage location of latest data by earliest data change.
4. the creepage detection method of alternating current according to any one of claims 1 to 3, which is characterized in that described to obtain When getting leakage current sampled value, judge whether the total number of leakage current sampled value in storage queue reaches predetermined period hits After step, further includes:
When the total number of leakage current sampled values all in storage queue is not up to predetermined period hits, judge in storage queue The total numbers of all leakage current sampled values whether reach predetermined period hits and subtract one;
Subtract when the total number of all leakage current sampled values in storage queue reaches predetermined period hits for the moment, by present sample The leakage current sampled value at moment is stored in storage queue in next storage location of latest data, and latest data is changed For current sample time leakage current sampled value and using the leakage current sampled value of first storage location in storage queue as Earliest data are to update storage queue;
The practical leakage current virtual value of current sample time is obtained according to each leakage current sampled value in updated storage queue.
5. the creepage detection method of alternating current according to claim 4, which is characterized in that described to be deposited according to updated Storing up the step of each leakage current sampled value in queue obtains the practical leakage current virtual value of current sample time includes:
Each leakage current sampled value in updated storage queue is inputted into preset the second computation model of leakage current virtual valueIn, the leakage current virtual value of current sample time is obtained, wherein I0It is effective for the leakage current of current sample time Value, K are predetermined coefficient, and N is predetermined period hits, InFor the corresponding leakage current sampling of n-th of storage location in storage queue Value, n=1,2 ... N.
6. the creepage detection method of alternating current according to claim 5, which is characterized in that in the judgement storage queue All leakage current sampled values total number whether reach the step of predetermined period hits subtracts one after, further includes:
Subtract for the moment when the total number of all leakage current sampled values in storage queue is not up to predetermined period hits, judges to store Whether the total number of all leakage current sampled values in queue is 0;
When the total number of all leakage current sampled values in storage queue is 0, by the leakage current sampled value of current sample time First storage location being stored in storage queue, and using the leakage current sampled value of current sample time as latest data.
7. the creepage detection method of alternating current according to claim 6, which is characterized in that described when in storage queue The total number of all leakage current sampled values is not up to predetermined period hits and subtracts for the moment, judges all leakage currents in storage queue After the step of whether total number of sampled value is 0, further includes:
When the total number of all leakage current sampled values in storage queue is not 0, the leakage current of current sample time is sampled Value is stored in storage queue in next storage location of latest data, and latest data is changed to current sample time Leakage current sampled value.
8. a kind of leak current detection device of alternating current, which is characterized in that the leak current detection device of the alternating current includes electricity Flow sensing module, analog-digital converter ADC module and leakage current calculation process module;
The current sense module acquires a leakage current analog signal for each sampling instant;
The analog-digital converter ADC module, for being converted the leakage current analog signal of current sample time using analog-to-digital conversion For leakage current sampled value;
The leakage current calculation process module, for when getting leakage current sampled value, judging that leakage current is adopted in storage queue Whether the total number of sample value reaches predetermined period hits;When the total number of leakage current sampled value in storage queue reaches default week When phase hits, obtain the leakage current virtual value of previous sampling instant, and according to the leakage current virtual value of previous sampling instant, deposit The leakage current sampled value for storing up earliest data corresponding leakage current sampled value and current sample time in queue, when obtaining present sample The leakage current virtual value at quarter.
9. a kind of leakage current test equipment of alternating current, which is characterized in that the leakage current test equipment of the alternating current includes depositing Reservoir, processor and it is stored in the computer program that can be run on the memory and on the processor, the computer The creepage detection method of the alternating current as described in any one of claims 1 to 7 is realized when program is executed by the processor The step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the electric leakage of the alternating current as described in any one of claims 1 to 7 when the computer program is executed by processor The step of flowing detection method.
CN201910873204.9A 2019-09-16 2019-09-16 Method, device and equipment for detecting leakage current of alternating current and storage medium Active CN110470941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910873204.9A CN110470941B (en) 2019-09-16 2019-09-16 Method, device and equipment for detecting leakage current of alternating current and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910873204.9A CN110470941B (en) 2019-09-16 2019-09-16 Method, device and equipment for detecting leakage current of alternating current and storage medium

Publications (2)

Publication Number Publication Date
CN110470941A true CN110470941A (en) 2019-11-19
CN110470941B CN110470941B (en) 2021-10-08

Family

ID=68515919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910873204.9A Active CN110470941B (en) 2019-09-16 2019-09-16 Method, device and equipment for detecting leakage current of alternating current and storage medium

Country Status (1)

Country Link
CN (1) CN110470941B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113391234A (en) * 2021-05-17 2021-09-14 深圳市合广测控技术有限公司 Electric leakage detection method, control device and electric leakage detection equipment
CN115219769A (en) * 2022-09-20 2022-10-21 江苏东成工具科技有限公司 Current detection method, electric tool and computer readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0817552A (en) * 1994-06-30 1996-01-19 Mitsubishi Electric Corp Deterioration detecting device for lightning arrester
CN1553206A (en) * 2003-12-18 2004-12-08 西安交通大学 Electric power apparatus external insulative leakage current on-line monitoring system in converting station
WO2006044035A2 (en) * 2004-10-19 2006-04-27 Echelon Corporation Method and apparatus for an electric meter
JP2010127860A (en) * 2008-11-28 2010-06-10 Patokkusu Japan Kk Device and method for measuring leak current
JP2010249747A (en) * 2009-04-17 2010-11-04 Toyo Networks & System Integration Co Ltd Insulation monitoring device
CN204188757U (en) * 2014-09-30 2015-03-04 广东电网有限责任公司茂名供电局 Portable power equipment leakage point insulating pick-up unit
CN106597229A (en) * 2013-05-07 2017-04-26 陈国栋 Working method of insulation online monitoring system for voltage transformation equipment (greater than 35kV)
CN107528296A (en) * 2017-07-11 2017-12-29 江苏固德威电源科技股份有限公司 Residual current protection method applied to photovoltaic DC-to-AC converter

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0817552A (en) * 1994-06-30 1996-01-19 Mitsubishi Electric Corp Deterioration detecting device for lightning arrester
CN1553206A (en) * 2003-12-18 2004-12-08 西安交通大学 Electric power apparatus external insulative leakage current on-line monitoring system in converting station
WO2006044035A2 (en) * 2004-10-19 2006-04-27 Echelon Corporation Method and apparatus for an electric meter
JP2010127860A (en) * 2008-11-28 2010-06-10 Patokkusu Japan Kk Device and method for measuring leak current
JP2010249747A (en) * 2009-04-17 2010-11-04 Toyo Networks & System Integration Co Ltd Insulation monitoring device
CN106597229A (en) * 2013-05-07 2017-04-26 陈国栋 Working method of insulation online monitoring system for voltage transformation equipment (greater than 35kV)
CN204188757U (en) * 2014-09-30 2015-03-04 广东电网有限责任公司茂名供电局 Portable power equipment leakage point insulating pick-up unit
CN107528296A (en) * 2017-07-11 2017-12-29 江苏固德威电源科技股份有限公司 Residual current protection method applied to photovoltaic DC-to-AC converter

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113391234A (en) * 2021-05-17 2021-09-14 深圳市合广测控技术有限公司 Electric leakage detection method, control device and electric leakage detection equipment
CN113391234B (en) * 2021-05-17 2023-12-12 深圳市合广测控技术有限公司 Leakage detection method, control device and leakage detection equipment
CN115219769A (en) * 2022-09-20 2022-10-21 江苏东成工具科技有限公司 Current detection method, electric tool and computer readable medium
WO2024060755A1 (en) * 2022-09-20 2024-03-28 江苏东成工具科技有限公司 Current measurement method, electric tool, and computer-readable medium

Also Published As

Publication number Publication date
CN110470941B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN110470941A (en) Creepage detection method, device, equipment and the storage medium of alternating current
CN104636406B (en) A kind of method and apparatus according to user behavior pushed information
CN104503565A (en) Power consumption management method and device for mobile device and mobile device
CN105843731B (en) Computer system and the method for monitoring performance executed by computer system
CN105355021A (en) ZigBee-based remote wireless meter reading system and performance detection method thereof
CN105607006A (en) Battery capacity determination method, system and terminal thereof
CN103533153A (en) Shaking help-seeking mechanism based on mobile terminal
CN106600145A (en) Power distribution network reliability analysis method and device
CN106557362B (en) Task migration method and system applied to intelligent robot
CN105259409B (en) A kind of frequency power signal computational methods based on zero passage time domain specification
CN103179261B (en) The system and method for controlling mobile phone through speech is realized based on ambient temperature
CN103278707B (en) Obtain method and the terminal of terminal standby time
CN103021088B (en) Intelligent cloud ammeter
CN102646060B (en) Method for detecting nodes not meeting requirement on computational accuracy in high-performance computer system
CN105992278B (en) A kind of flow control methods and mobile terminal
CN203932958U (en) Power grid integrated intelligence is adjusted and online nucleus correcting system
CN105224381B (en) A kind of method, apparatus and system of migration virtual machine
CN102346029A (en) Device for detecting observing angle of overhead line sag and control method thereof
CN107819819A (en) Power stealing monitoring method and Internet of things system based on compound Internet of Things
CN108303650A (en) A kind of measuring method and system based on the rechargeable battery remaining charging time
CN209248007U (en) Metering fault simulator and system
CN206863119U (en) A kind of electricity statistic device
CN205158611U (en) Long -range wireless meter reading system based on zigBee
CN116627433B (en) Real-time parameter prediction method, system, equipment and medium for AI processor
CN112444325B (en) Body temperature monitoring method and device, electronic equipment and 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