CN109633246A - Alternating current power failure detection method, apparatus and system - Google Patents

Alternating current power failure detection method, apparatus and system Download PDF

Info

Publication number
CN109633246A
CN109633246A CN201811514287.4A CN201811514287A CN109633246A CN 109633246 A CN109633246 A CN 109633246A CN 201811514287 A CN201811514287 A CN 201811514287A CN 109633246 A CN109633246 A CN 109633246A
Authority
CN
China
Prior art keywords
power down
alternating current
current
voltage
current data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811514287.4A
Other languages
Chinese (zh)
Inventor
陈为奇
孙本新
卢耀文
范高林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING EPSOLAR TECHNOLOGY Co Ltd
Original Assignee
BEIJING EPSOLAR 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 BEIJING EPSOLAR TECHNOLOGY Co Ltd filed Critical BEIJING EPSOLAR TECHNOLOGY Co Ltd
Priority to CN201811514287.4A priority Critical patent/CN109633246A/en
Publication of CN109633246A publication Critical patent/CN109633246A/en
Pending legal-status Critical Current

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/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16528Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values using digital techniques or performing arithmetic operations
    • 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/16585Circuits 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 for individual pulses, ripple or noise and other applications where timing or duration is of importance
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The present invention provides a kind of alternating current power failure detection methods, apparatus and system;Wherein, this method is applied to processor;Processor is connect with sample circuit;Sample circuit is connect with mains circuit;This method comprises: receiving the alternating current data of the mains circuit of sample circuit acquisition;According to alternating current data and pre-set threshold value, determine mains circuit whether power down.Present invention reduces the costs of alternating current detection of power loss mode, and improve detection speed.

Description

Alternating current power failure detection method, apparatus and system
Technical field
The present invention relates to power system security detection technique fields, more particularly, to a kind of alternating current power failure detection method, dress It sets and system.
Background technique
With the rapid development of information technology and popularizing for computer application, requirement of the electrical equipment to power supply reliability is got over Come higher.Existing alternating current detection of power loss mode is substantially using hardware circuit to alternating current by partial pressure, rectification, voltage clamp Position, Isolation, shaping process generate a power frequency square-wave pulse, can then pass through one power frequency of hardware or software detection Inside whether there is the method for pulse input to judge whether power down;Obtain alternating current power down information using a large amount of hardware circuits, cost compared with It is high;And in detection process, need to realize detection by the power frequency square-wave pulse of a cycle, longest may need a city Electric cycle (20 milliseconds) can just detect alternating current power down, and detection speed is lower.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of alternating current power failure detection methods, apparatus and system, to reduce city The cost of electric detection of power loss mode improves detection speed.
In a first aspect, this method is applied to processor the embodiment of the invention provides a kind of alternating current power failure detection method;Place Reason device is connect with sample circuit;Sample circuit is connect with mains circuit;This method comprises: receiving the alternating current electricity of sample circuit acquisition The alternating current data on road;According to alternating current data and pre-set threshold value, determine mains circuit whether power down.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein on State receive sample circuit acquisition mains circuit alternating current data the step of before, this method further include: by current voltage number, when Preceding power down number and the numerical value of power loss indicator position are initialized as zero;It is above-mentioned according to alternating current data and pre-set threshold value, determine city Circuit whether power down the step of, comprising: update current voltage number according to the alternating current data that receive;According to current voltage number and Pre-set periodic voltage number, judges whether alternating current data belong to the current alternating current period;If belonged to, compare alternating current data with Pre-set power down voltage value;If alternating current data are greater than or equal to power down voltage value, it is determined that mains circuit does not have power down, Zero is set by current power down number;If alternating current data are less than power down voltage value, current power down number is updated;Worked as according to updated Preceding power down number and pre-set power down number maximum value, determine mains circuit whether power down.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides second of first aspect Possible embodiment, wherein the current power down number of above-mentioned basis and pre-set power down number maximum value determine mains circuit Whether power down the step of, comprising: compare current power down number and pre-set power down number maximum value;If current power down number is big In pre-set power down number maximum value, it is determined that mains circuit power down, and one is set by power loss indicator position.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the third of first aspect Possible embodiment, wherein it is above-mentioned according to current voltage number and pre-set periodic voltage number, whether judge alternating current data The step of belonging to the current alternating current period, comprising: compare current voltage number and pre-set periodic voltage number;If current voltage Number is less than pre-set periodic voltage number, determines that alternating current data belong to the current alternating current period;If current voltage number be greater than etc. In pre-set periodic voltage number, determine that alternating current data are not belonging to the current alternating current period;By current voltage number and current power down Voltage number is set as zero.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect Possible embodiment, wherein it is above-mentioned according to alternating current data and pre-set threshold value, determine mains circuit whether power down it Before, this method further include: judge whether power loss indicator position is one;If it is, stopping detection.
Second aspect, the embodiment of the present invention also provide a kind of alternating current power loss detection means, which is set to processor;Place Reason device is connect with sample circuit;Sample circuit is connect with mains circuit;The device includes: data reception module, is adopted for receiving The alternating current data of the mains circuit of sample circuit acquisition;Determining module is powered off, is used for according to alternating current data and pre-set threshold value, Determine mains circuit whether power down.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein on State device further include: initial module, for the numerical value of current voltage number, current power down number and power loss indicator position to be initialized as Zero;Above-mentioned power-off determining module includes: current voltage number updating unit, for updating current electricity according to the alternating current data received Press number;Current alternating current period judging unit, for judging alternating current number according to current voltage number and pre-set periodic voltage number According to whether belonging to the current alternating current period;Power down voltage value comparing unit, if comparing alternating current data for belonging to and presetting Power down voltage value;First non-power down determination unit, if being greater than or equal to power down voltage value for alternating current data, it is determined that city Circuit does not have power down, sets zero for current power down number;First power down determination unit, if being less than power down for alternating current data Voltage value updates current power down number;According to updated current power down number and pre-set power down number maximum value, alternating current is determined Circuit whether power down.
In conjunction with the first possible embodiment of second aspect, the embodiment of the invention provides second of second aspect Possible embodiment, wherein above-mentioned first power down determination unit is also used to: compare current power down number and pre-set power down Number maximum value;If current power down number is greater than pre-set power down number maximum value, it is determined that mains circuit power down, and will fall Electrosemaphore position is set as one.
In conjunction with second of possible embodiment of second aspect, the embodiment of the invention provides the third of second aspect Possible embodiment, wherein above-mentioned current alternating current period judging unit is also used to: compare current voltage number and pre-set Periodic voltage number;If current voltage number is less than pre-set periodic voltage number, determine that alternating current data belong to current alternating current week Phase;If current voltage number is more than or equal to pre-set periodic voltage number, determine that alternating current data are not belonging to the current alternating current period; Zero is set by current voltage number and current power down voltage number.
The third aspect, the embodiment of the present invention also provide a kind of alternating current detection of power loss system, including processor, sample circuit and Mains circuit;Above-mentioned alternating current power loss detection means are set to processor.
The embodiment of the present invention bring it is following the utility model has the advantages that
The embodiment of the invention provides a kind of alternating current power failure detection methods, apparatus and system;Receive sample circuit acquisition After the alternating current data of mains circuit, according to the alternating current data and pre-set threshold value, determine mains circuit whether power down;The party Formula reduces the cost of alternating current power failure detection method, and improves detection speed.
Other features and advantages of the present invention will illustrate in the following description, alternatively, Partial Feature and advantage can be with Deduce from specification or unambiguously determine, or by implementing above-mentioned technology of the invention it can be learnt that.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, better embodiment is cited below particularly, and match Appended attached drawing is closed, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of alternating current power failure detection method provided in an embodiment of the present invention;
Fig. 2 is another alternating current power failure detection method provided in an embodiment of the present invention;
Fig. 3 is a kind of process schematic that alternating current data are obtained by sample circuit provided in an embodiment of the present invention;
Fig. 4 is the waveform diagram of line voltage provided in an embodiment of the present invention;
Fig. 5 is the waveform diagram of alternating current data provided in an embodiment of the present invention;
Fig. 6 is the waveform diagram of another alternating current data provided in an embodiment of the present invention;
Fig. 7 is the flow chart provided in an embodiment of the present invention for calculating Common Parameters;
Fig. 8 is the flow chart that a kind of interrupt routine provided in an embodiment of the present invention executes detection alternating current power down process;
Fig. 9 is a kind of structural schematic diagram of alternating current power loss detection means provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of alternating current detection of power loss system provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, the higher cost of existing alternating current detection of power loss mode, detection speed is lower, is based on this, the embodiment of the present invention Provide a kind of alternating current power failure detection method, device and system, can be applied to alternating current power supply reliability detection or other The detection of electric system.
For convenient for understanding the present embodiment, first to a kind of alternating current detection of power loss side disclosed in the embodiment of the present invention Method describes in detail.
A kind of alternating current power failure detection method shown in Figure 1, this method are applied to processor;The processor and sampling electricity Road connection;Sample circuit is connect with mains circuit;Method includes the following steps:
Step S100 receives the alternating current data of the mains circuit of sample circuit acquisition.
Specifically, in order to save hardware cost, above-mentioned sample circuit only can be sampled simply, and filtering etc. obtains The alternating current data proportional to the actual voltage value of mains circuit;It, can also will be through over-sampling since mains circuit is alternating current Obtained voltage value is that the alternating current data of negative value are overturn, and obtains the alternating current data that voltage value is positive value.
Step S102, according to alternating current data and pre-set threshold value, determine mains circuit whether power down.
Specifically, the voltage of mains circuit output is sinusoidal form, can not determine alternating current according to the voltage value at a certain moment Circuit whether power down, and need to count the alternating current data in a period of time, alternating current data and preset threshold value carried out Compare, so that it is determined that mains circuit whether power down.Above-mentioned pre-set threshold value can be preset alternating current power down voltage;The city The data of electric power down voltage can be theoretical value, or related personnel determines by test of many times;In actual comparison In, the virtual voltage of alternating current data and mains circuit is at certain ratio, it is therefore desirable to carry out in proportion to alternating current power down voltage Scaling.Since line voltage is sinusoidal form, there must be line voltage in the regular hour to be less than alternating current in one cycle Power down voltage, it can be determined that whether be more than in the event, if there is line voltage to be less than alternating current power down voltage, to judge city Electricity whether power down.
The embodiment of the invention provides a kind of alternating current power failure detection methods, apparatus and system;Receive sample circuit acquisition After the alternating current data of mains circuit, according to the alternating current data and pre-set threshold value, determine mains circuit whether power down;The party Method reduces the cost of alternating current power failure detection method, and improves detection speed.
The embodiment of the invention also provides another alternating current power failure detection method, this method method basis shown in Fig. 1 Upper realization, flow diagram is as shown in Fig. 2, specific as follows:
The numerical value of current voltage number, current power down number and power loss indicator position is initialized as zero by step S200.
Specifically, above-mentioned current voltage number, current power down number and power loss indicator position are equivalent to the variable of setting;Wherein, when Preceding voltage number is used to count the quantity of the alternating current data received, and current power down number is used for lower than given alternating current power down voltage The quantity of alternating current data, power loss indicator position for indicate alternating current whether power down.
Step S202 receives the alternating current data of the mains circuit of sample circuit acquisition;Specifically, which can lead to It crosses following manner acquisition: obtaining the induced electricity of line voltage (AC sinusoidal voltage signal) by the voltage transformer of sample circuit Pressure;Induced voltage is sampled with certain sample frequency, obtains induced voltage sampled data;To induced voltage sampled data Ratio enlargement, filtering and overturning processing are carried out, finally obtains alternating current data (alternatively referred to as mains voltage signal), then input Device A/D module is managed, process schematic is as shown in Figure 3.
Line voltage VGridWaveform diagram as shown in figure 4, can be indicated by following formula:
VGrid=Vmaxsin(2πft)
Wherein VmaxFor the maximum peak voltage of alternating current, f is the frequency of alternating current, and t is time variable.
Amplitude of the commercial power becomes ADV after voltage transformer and operational amplifier (a part of sample circuit) processingmax, It can be calculated by the following formula:
Wherein, N is the ratio between the coil turn of voltage transformer, and M is the rate mu-factor of operational amplifier.
The alternating current data ADV obtained after amplifier sampling processingGridWaveform as shown in figure 5, following public affairs can be passed through Formula indicates:
Step S204 updates current voltage number according to the alternating current data received;Specifically, current voltage number is added one.
Step S206 compares current voltage number and pre-set periodic voltage number;If current voltage number is less than preparatory The periodic voltage number of setting, go to step S210;If current voltage number is greater than or equal to pre-set periodic voltage number, Go to step 208.
Specifically, above-mentioned periodic voltage number is that the corresponding sampling of a line voltage period obtains the number of alternating current data, It can be calculated according to the frequency and sample frequency of alternating current.
Step 208, it determines that alternating current data are not belonging to the current alternating current period, current voltage number and current power down voltage number is set It is set to zero, go to step S202;Specifically, that is, judge that an alternating current period is over, start to next alternating current period It is detected.
Step S210 compares alternating current data and pre-set power down voltage value if belonged to;If alternating current data are greater than Or it is equal to power down voltage value, go to step S212;If alternating current data are less than power down voltage value, go to step S214.
Specifically, above-mentioned power down voltage value ADVGridoffAccording to the ginseng of hardware circuit after being powered on for the first time according to processor Several and given alternating current power down voltage VGridoffIt is calculated, specific as follows to state shown in formula:,
Wherein, P and Q is respectively to carry out practical maximum voltage and the corresponding number of maximum voltage in simulation numeral conversion process Amount is determined according to the parameter of the converter in sample circuit;P can be that 4096, Q can be 3.3 (V).
Step S212 determines that mains circuit does not have power down, sets zero for current power down number, gos to step 202;When true After determining mains circuit and there is no power down, next alternating current data received are continued with.
Step S214 updates current power down number;Specifically, current power down number is added one.
Step S216 compares current power down number and pre-set power down number maximum value;If current power down number is greater than Pre-set power down number maximum value, then go to step S218;If current power down number is less than or equal to pre-set Power down number maximum value, then go to step S202.
Specifically, falling to count maximum value CntOff can be according to alternating current power down voltage VGridoffIt is calculated;Firstly, according to Alternating current power down voltage VGridoffThe time T that line voltage value in a cycle is lower than alternating current power down voltage is calculatedGridoff, such as Shown in following formula:
Then according to sample frequency FFreqCalculate the power down time T of corresponding pointsGridoffThe middle number that can generate alternating current data (being to fall maximum value of counting) CntOff, as shown in following formula:
CntOff=2*TGridoff*FFreq
Specifically, the relationship of maximum value and power down voltage value of falling to count can be shown from Fig. 6.
Step S218 determines mains circuit power down, and sets one for power loss indicator position.
In implementation process, when being received again by alternating current data, it can be determined that whether power loss indicator position is one;If so, It then indicates that mains circuit is in power-down state, no longer alternating current data is handled at this time, stop detection.
Method provided in an embodiment of the present invention can rapidly detect alternating current whether power down, while reducing sampled point road Cost.
The embodiment of the invention also provides a kind of quickly detection alternating current power down method, this method to be mainly used in alternating current In the processor of the inverter of bypass functionality;Simple hardware circuit carries out sampling marquis to line voltage, recycles processor It is (required according to the power down voltage difference of setting most to may be implemented in several interrupt cycles fastly for supercomputing and multilevel iudge ability Time be also corresponding change) in calculate and judge export alternating current whether power down;After detecting alternating current power down, it is switched to Inverter mode guarantees that the load that user uses is not in circut breaking.
In the method, it is necessary first to calculate some Common Parameters, flow chart is as shown in fig. 7, specifically include:
(1) setting alternating current power down voltage V is obtainedGridoff, obtain sample frequency FFreq
(2) power down time T is calculatedGridoff
(3) alternating current power down voltage value ADV after calculating sample quantizationGridoff
(4) by time TGridoffIt is quantified as number CntOff.
Processor is with interruption frequency FFreqReal-time sampling constantly is carried out to line voltage, sampling is obtained into data ADSample With given alternating current power down voltage ADVGridoffCompare, if ADSample is less than ADVGridoff, current power down number at this time This variable of VaccOffCnt increases by one, is then compared VaccOffCnt and power down number maximum value CntOff, if VaccOffCnt is greater than CntOff and is considered as alternating current power down at this time, and ADSample of any of them is not less than ADVGridoffWhen, Just VaccOffCnt is actively reset after just VaccOffCnt being reset or being waited one cycle of alternating current, is likely to occur for next time Power down is prepared, and flow chart is as shown in Figure 8.
Hardware cost can be reduced using this method, acquisition alternating current is mainly compared using the judgement of high speed MCU computing capability and is fallen Power information detects alternating current power down fast speed.
The embodiment of the present invention also provides a kind of alternating current power loss detection means, which is set to processor;Processor with adopt Sample circuit connection;Sample circuit is connect with mains circuit;The structural schematic diagram of the device is as shown in Figure 9, comprising: data reception Block 800, the alternating current data of the mains circuit for receiving sample circuit acquisition;Determining module 802 is powered off, for according to alternating current number According to and pre-set threshold value, determine mains circuit whether power down.
Further, above-mentioned apparatus further include: initial module is used for current voltage number, current power down number and power down mark The numerical value of will position is initialized as zero;Above-mentioned power-off determining module includes: current voltage number updating unit, is received for basis Alternating current data update current voltage number;Current alternating current period judging unit, for according to current voltage number and pre-set week Phase voltage number, judges whether alternating current data belong to the current alternating current period;Power down voltage value comparing unit, if for belonging to, than Compared with alternating current data and pre-set power down voltage value;First non-power down determination unit, if being greater than or waiting for alternating current data In power down voltage value, it is determined that mains circuit does not have power down, sets zero for current power down number;First power down determination unit is used If being less than power down voltage value in alternating current data, current power down number is updated;According to updated current power down number and preset Power down number maximum value, determine mains circuit whether power down.
Specifically, above-mentioned first power down determination unit is also used to: comparing current power down number and pre-set power down number most Big value;If current power down number is greater than pre-set power down number maximum value, it is determined that mains circuit power down, and by power down mark Will position is set as one.
Specifically, above-mentioned current alternating current period judging unit is also used to: comparing current voltage number and pre-set period Voltage number;If current voltage number is less than pre-set periodic voltage number, determine that alternating current data belong to the current alternating current period;Such as Fruit current voltage number is more than or equal to pre-set periodic voltage number, determines that alternating current data are not belonging to the current alternating current period;It will work as Preceding voltage number and current power down voltage number are set as zero.
Alternating current power loss detection means provided in an embodiment of the present invention, with alternating current power failure detection method provided by the above embodiment Technical characteristic having the same reaches identical technical effect so also can solve identical technical problem.
The embodiment of the present invention also provides a kind of alternating current detection of power loss system, and structural schematic diagram is as shown in Figure 10;The system Including processor 90, sample circuit 91 and mains circuit 92;Above-mentioned alternating current power loss detection means are set to processor.
The computer program product of alternating current power failure detection method, device and system provided by the embodiment of the present invention, packet The computer readable storage medium for storing program code is included, the instruction that said program code includes can be used for executing previous methods Method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description And/or the specific work process of device, it can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of alternating current power failure detection method, which is characterized in that the method is applied to processor;The processor and sampling electricity Road connection;The sample circuit is connect with mains circuit;The described method includes:
Receive the alternating current data of the mains circuit of the sample circuit acquisition;
According to the alternating current data and pre-set threshold value, determine the mains circuit whether power down.
2. the method according to claim 1, wherein the alternating current electricity for receiving the sample circuit acquisition Before the step of alternating current data on road, the method also includes: by the number of current voltage number, current power down number and power loss indicator position Value is initialized as zero;
It is described according to the alternating current data and pre-set threshold value, determine the mains circuit whether power down the step of, comprising:
The current voltage number is updated according to the alternating current data received;
According to the current voltage number and pre-set periodic voltage number, judge whether the alternating current data belong to current alternating current Period;
If belonged to, the alternating current data and pre-set power down voltage value;
If the alternating current data are greater than or equal to the power down voltage value, it is determined that the mains circuit does not have power down, by institute It states current power down number and is set as zero;
If the alternating current data are less than the power down voltage value, the current power down number is updated;Described worked as according to updated Preceding power down number and pre-set power down number maximum value, determine the mains circuit whether power down.
3. according to the method described in claim 2, it is characterized in that, described according to the current power down number and pre-set Power down number maximum value, determine the mains circuit whether power down the step of, comprising:
Compare the current power down number and pre-set power down number maximum value;
If the current power down number is greater than pre-set power down number maximum value, it is determined that the mains circuit power down, and One is set by the power loss indicator position.
4. according to the method described in claim 3, it is characterized in that, described according to current voltage number and electricity of pre-set period Number is pressed, the step of whether the alternating current data belong to the current alternating current period judged, comprising:
Compare the current voltage number and pre-set periodic voltage number;
If the current voltage number is less than pre-set periodic voltage number, determine that the alternating current data belong to current alternating current week Phase;
If current voltage number is more than or equal to pre-set periodic voltage number, determine that the alternating current data are not belonging to current alternating current Period;Zero is set by the current voltage number and the current power down voltage number.
5. according to the method described in claim 3, it is characterized in that, according to the alternating current data and pre-set threshold value, really Whether the fixed mains circuit before power down, the method also includes:
Judge whether the power loss indicator position is one;
If it is, stopping detection.
6. a kind of alternating current power loss detection means, which is characterized in that described device is set to processor;The processor and sampling electricity Road connection;The sample circuit is connect with mains circuit;Described device includes:
Data reception module, the alternating current data of the mains circuit for receiving the sample circuit acquisition;
Determining module is powered off, for determining whether the mains circuit is fallen according to the alternating current data and pre-set threshold value Electricity.
7. device according to claim 6, which is characterized in that described device further include:
Initial module, for the numerical value of current voltage number, current power down number and power loss indicator position to be initialized as zero;
The power-off determining module includes:
Current voltage number updating unit, for updating the current voltage number according to the alternating current data received;
Current alternating current period judging unit, for judging institute according to the current voltage number and pre-set periodic voltage number State whether alternating current data belong to the current alternating current period;
Power down voltage value comparing unit, if for belonging to, the alternating current data and pre-set power down voltage value;
First non-power down determination unit, if being greater than or equal to the power down voltage value for the alternating current data, it is determined that institute Stating mains circuit does not have power down, sets zero for the current power down number;
First power down determination unit updates the current power down if being less than the power down voltage value for the alternating current data Number;According to the updated current power down number and pre-set power down number maximum value, determine whether the mains circuit is fallen Electricity.
8. device according to claim 7, which is characterized in that the first power down determination unit is also used to:
Compare the current power down number and pre-set power down number maximum value;
If the current power down number is greater than pre-set power down number maximum value, it is determined that the mains circuit power down, and One is set by the power loss indicator position.
9. device according to claim 8, which is characterized in that the current alternating current period judging unit is also used to:
Compare the current voltage number and pre-set periodic voltage number;
If the current voltage number is less than pre-set periodic voltage number, determine that the alternating current data belong to current alternating current week Phase;
If current voltage number is more than or equal to pre-set periodic voltage number, determine that the alternating current data are not belonging to current alternating current Period;Zero is set by the current voltage number and the current power down voltage number.
10. a kind of alternating current detection of power loss system, which is characterized in that including processor, sample circuit and mains circuit;Claim The described in any item devices of 6-9 are set to the processor.
CN201811514287.4A 2018-12-11 2018-12-11 Alternating current power failure detection method, apparatus and system Pending CN109633246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811514287.4A CN109633246A (en) 2018-12-11 2018-12-11 Alternating current power failure detection method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811514287.4A CN109633246A (en) 2018-12-11 2018-12-11 Alternating current power failure detection method, apparatus and system

Publications (1)

Publication Number Publication Date
CN109633246A true CN109633246A (en) 2019-04-16

Family

ID=66073007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811514287.4A Pending CN109633246A (en) 2018-12-11 2018-12-11 Alternating current power failure detection method, apparatus and system

Country Status (1)

Country Link
CN (1) CN109633246A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231508A (en) * 2019-07-09 2019-09-13 和记奥普泰通信技术有限公司 Packetizing OTN, PTN, IPRAN, SPN and PON device looses power alarm detection method
CN110927614A (en) * 2019-12-12 2020-03-27 中车大连电力牵引研发中心有限公司 Network voltage interruption detection method for single-phase four-quadrant rectifier
CN113267666A (en) * 2021-07-02 2021-08-17 厦门市爱维达电子有限公司 Method for rapidly detecting AC voltage abnormity in power system
CN113314084A (en) * 2021-05-31 2021-08-27 惠科股份有限公司 Display panel driving method and device and display panel
CN113316100A (en) * 2020-02-26 2021-08-27 成都鼎桥通信技术有限公司 Client terminal equipment and power failure reporting method of client terminal equipment
CN113933775A (en) * 2020-07-14 2022-01-14 内蒙古电力(集团)有限责任公司内蒙古电力科学研究院分公司 Power failure detection method and system for electric energy meter

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102005812A (en) * 2009-09-01 2011-04-06 北京动力源科技股份有限公司 Method and device for judging alternating current power failure
CN102116822A (en) * 2010-12-30 2011-07-06 易事特电力***技术有限公司 Method for detecting power failure of power grid for three-phase uninterruptable power supply
CN102338833A (en) * 2011-06-03 2012-02-01 厦门科华恒盛股份有限公司 Method and device for detecting abnormality of mains supply quickly
CN105115105A (en) * 2015-08-28 2015-12-02 广东美的制冷设备有限公司 Power failure detection method and system and air conditioner
CN105301522A (en) * 2015-11-23 2016-02-03 厦门科华恒盛股份有限公司 Detection method of three-phase mains supply power failure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102005812A (en) * 2009-09-01 2011-04-06 北京动力源科技股份有限公司 Method and device for judging alternating current power failure
CN102116822A (en) * 2010-12-30 2011-07-06 易事特电力***技术有限公司 Method for detecting power failure of power grid for three-phase uninterruptable power supply
CN102338833A (en) * 2011-06-03 2012-02-01 厦门科华恒盛股份有限公司 Method and device for detecting abnormality of mains supply quickly
CN105115105A (en) * 2015-08-28 2015-12-02 广东美的制冷设备有限公司 Power failure detection method and system and air conditioner
CN105301522A (en) * 2015-11-23 2016-02-03 厦门科华恒盛股份有限公司 Detection method of three-phase mains supply power failure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马潮: "《AVR单片机嵌入式***原理与应用实践》", 31 October 2007 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231508A (en) * 2019-07-09 2019-09-13 和记奥普泰通信技术有限公司 Packetizing OTN, PTN, IPRAN, SPN and PON device looses power alarm detection method
CN110927614A (en) * 2019-12-12 2020-03-27 中车大连电力牵引研发中心有限公司 Network voltage interruption detection method for single-phase four-quadrant rectifier
CN113316100A (en) * 2020-02-26 2021-08-27 成都鼎桥通信技术有限公司 Client terminal equipment and power failure reporting method of client terminal equipment
CN113316100B (en) * 2020-02-26 2022-11-04 成都鼎桥通信技术有限公司 Client terminal equipment and power failure reporting method of client terminal equipment
CN113933775A (en) * 2020-07-14 2022-01-14 内蒙古电力(集团)有限责任公司内蒙古电力科学研究院分公司 Power failure detection method and system for electric energy meter
CN113314084A (en) * 2021-05-31 2021-08-27 惠科股份有限公司 Display panel driving method and device and display panel
CN113314084B (en) * 2021-05-31 2022-03-22 惠科股份有限公司 Display panel driving method and device and display panel
CN113267666A (en) * 2021-07-02 2021-08-17 厦门市爱维达电子有限公司 Method for rapidly detecting AC voltage abnormity in power system

Similar Documents

Publication Publication Date Title
CN109633246A (en) Alternating current power failure detection method, apparatus and system
CN103033769B (en) Fault detection method of three-phase power supply
CN105301522B (en) A kind of detection method of three-phase mains power down
CN101871982B (en) Method and circuit for detecting phase sequence and asymmetrical voltage of three phase current
CN102495292B (en) Method and circuit for online monitoring capacity state of bus capacitor
CN104157086B (en) A kind of detection stolen alarm device of cable and alarm method
CN104991110A (en) Voltage abnormity detection method and device for single phase alternating current power supply
CN110504828A (en) Control circuit and control method
CN202204866U (en) Current detection circuit for air-conditioner compressor
CN207832923U (en) A kind of distributing monitoring system
CN103439587A (en) Three-phase alternating current detecting method
CN108075633A (en) Soft-start method, device, circuit and the electric appliance of circuit of power factor correction
CN108110899A (en) A kind of communication module and system that power-off event is supported to report
CN109490765A (en) Device for switching contact residual Life Calculation method and detection device, contactor
CN109212334A (en) Electric energy meter phase sequence identifies device and method
CN104201948B (en) Control device and method of position-free sensor of switched reluctance motor
CN106845553B (en) Load characteristic identification mechanism, method and auto-power-off device
CN107462766B (en) New method for detecting mains voltage and mains frequency and detection circuit
CN104836462A (en) Detection method of frequency and phase of input alternating current of air conditioning system and device
CN205484555U (en) Portable 240V direct current system insulation monitoring and warning device for communication
CN107238750A (en) A kind of network wave method for detecting based on discharge circuit
CN207408504U (en) A kind of load detecting circuit and electronic equipment
CN215526395U (en) Intelligent switch with zero-crossing detection function
CN113777429A (en) Filter capacitor failure early warning method and control device
CN104423292A (en) X capacitor bleeding control method and circuit

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190416

RJ01 Rejection of invention patent application after publication