Summary of the invention
It is synchronized the invention discloses a kind of three-phase recording and looks for point methods, device and equipment, waveform can be eliminated and wirelessly passed
The error generated in defeated engineering enrolls accurate waveform, provides the Wave data of preparation for main station judging failure.
First embodiment of the invention, which provides a kind of three-phase recording and synchronizes, looks for point methods, comprising:
Clock synchronization instruction is obtained, clock is adjusted synchronously, so that the clock of the clock and clock synchronization instruction transmitting terminal is same
Step;
Sampling obtains A, B, C three-phase waveform while obtaining clock synchronization instruction, calculates the time between A, B, C three-phase
Error, and judge that A phase whether there is failure, wherein phase on the basis of the A phase;
When judging the A phase there are when failure, the waveform of failed synchronization message A and A phase that A phase issues this moment is obtained;
According to the failed synchronization message A, the waveform of B phase is obtained;
According to the failed synchronization message A, the waveform of C phase is obtained.
Preferably, the acquisition clock synchronization instruction, is adjusted synchronously clock, so that the clock and clock synchronization instruction are sent
The clock at end is synchronous, specifically:
When receiving the clock synchronization instruction of clock synchronization instruction transmitting terminal, into the break period, and within the break period into
Row clock synchronization;
It records clock synchronization and completes the moment, obtain clock synchronization interval;
The clock synchronization interval is subjected to PID adjusting, obtains the compensation time, the clock of deviation is obtained according to the compensation time
It counts, completes clock and adjust.
Preferably, the clock count of the deviation be it is described compensation the time with to constantly base and, wherein it is described to constantly
Base by it is described when instruction transmitting terminal issue.
Preferably, it is described obtain clock synchronization instruction while sampling obtain A, B, C three-phase waveform, calculate three-phase between when
Between error, and judge that A phase whether there is failure, wherein phase on the basis of the A phase, specifically: receiving the clock synchronization instruction hair
It is sampled while the clock synchronization instruction that sending end is sent, when there are 6 waves when failure, before recording failure for A, B, C three-phase
10 waveforms of shape and failure failure.
Preferably, described when judging that the A phase there are when failure, obtains the failed synchronization message A issued by A phase, with
And before the waveform of A phase this moment further include:
The error between A, B, C three-phase is calculated, and A, B, C the three-phase sampling clock for being used to sample are reset, it is described
A, B, C three-phase sampling clock start counting.
Preferably, A, B, C three-phase sampling clock is reset simultaneously.
It is preferably, described that the waveform of B phase is obtained according to the failed synchronization message A, specifically: it is same according to the failure
Message A is walked, calculates B phase recording starting point, while obtaining recording offset point, enrolls B phase waveform.
It is preferably, described that the waveform of C phase is obtained according to the failed synchronization message A, specifically: it is same according to the failure
Message A is walked, calculates C phase recording starting point, while obtaining recording offset point, enrolls C phase waveform.
Second embodiment of the invention, which provides a kind of three-phase recording and synchronizes, looks for a device, comprising:
Clock synchronization instruction acquisition module obtains clock synchronization instruction, is adjusted synchronously to clock, so that the clock refers to clock synchronization
Enable the clock of transmitting terminal synchronous;
Three-phase error calculating module, obtain clock synchronization instruction while sampling obtain A, B, C three-phase waveform, calculate the A,
B, the time error between C three-phase, and judge that A phase whether there is failure, wherein phase on the basis of the A phase;
A phase recording module, when the A phase fault, the failed synchronization message A that A phase issues, and obtain the wave of A phase this moment
Shape;
B phase recording module obtains the waveform of B phase according to the failed synchronization message A;
C phase recording module obtains the waveform of C phase according to the failed synchronization message A.
Third embodiment of the invention, which provides a kind of three-phase recording and synchronizes, looks for point device, including processor, memory and
It stores in the memory and is configured the computer program executed by the processing, the processor executes the computer
It realizes that a kind of three-phase recording as described above synchronizes when program and looks for point methods.
It is synchronized based on a kind of three-phase recording provided by the invention and looks for point methods, device and equipment, passed through and receive clock synchronization instruction
The clock synchronization instruction that end is sent, starts clock synchronization, and clock synchronization interval carries out PID adjusting, completes the adjusting to clock, and clock synchronization instruction connects
While receipts, sampling clock is zeroed out and starts to sample, judged recording offset point and recording starting point, enrolling failure
Phase waveform.
Specific embodiment
To keep the purposes, technical schemes and advantages of embodiment of the present invention clearer, implement below in conjunction with the present invention
The technical solution in embodiment of the present invention is clearly and completely described in attached drawing in mode, it is clear that described reality
The mode of applying is some embodiments of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ability
Domain those of ordinary skill every other embodiment obtained without creative efforts, belongs to the present invention
The range of protection.Therefore, the detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit below and is wanted
The scope of the present invention of protection is sought, but is merely representative of selected embodiment of the invention.Based on the embodiment in the present invention,
Every other embodiment obtained by those of ordinary skill in the art without making creative efforts belongs to this
Invent the range of protection.
It elaborates below in conjunction with attached drawing to specific embodiments of the present invention.
It is synchronized the invention discloses a kind of three-phase recording and looks for point methods, device and equipment, waveform can be eliminated and wirelessly passed
The error generated in defeated engineering enrolls accurate waveform, provides the Wave data of preparation for main station judging failure.
Referring to Fig. 1, in the present embodiment, it may include three acquisition units that three-phase recording, which synchronizes and looks for point device, and three are adopted
Collection unit is separately positioned on A, B, C three-phase of three-phase circuit, for acquiring the waveform on A, B, C three-phase, is adopted for three in Fig. 1
Collection unit indicates with A, B, C, three-phase recording synchronize look for point device by wireless module and collect unit (i.e. instruction transmitting terminal) into
Row communication.
It synchronizes referring to Fig. 2, first embodiment of the invention provides a kind of three-phase recording and looks for point methods, can be recorded by three-phase
Wave, which synchronizes, looks for point device to execute the acquisition of three-phase waveform and the communication with clock synchronization instruction transmitting terminal, comprising:
S101, obtain clock synchronization instruction, clock is adjusted synchronously so that the clock and clock synchronization instruction transmitting terminal when
Clock is synchronous.
Specifically:
Firstly, when receiving the clock synchronization instruction of the clock synchronization instruction transmitting terminal, into break period T1, wherein clock synchronization instruction
Transmitting terminal can send a clock synchronization instruction by wireless module with every five seconds, certainly, in other embodiments of the invention, described
Clock synchronization instruction transmitting terminal, which can also be, sends primary or transmission in every four seconds for every six seconds once, can be correspondingly arranged according to the actual situation,
Here it is not specifically limited, since wireless clock synchronization is there are certain deviation, needs to be corrected clock, receive the same of instruction
When, sampling clock is emptied, and start to sample, ensure that the synchronism of sampling, carried out within the break period, completed in clock synchronization
Shi Jilu clock synchronization deadline T2, obtain clock synchronization interval △ T, to it is described when interval △ T carry out PID adjusting, obtain compensation the time.
Secondly, the clock count of deviation is obtained according to the compensation time, according to the size of the clock count of sampling deviation
Clock is adjusted, when the clock count of the deviation can be | tick | when > 7, clock is synchronized to the clock synchronization instruction hair
The clock of sending end, when the clock count of the deviation can be | tick | when < 7, clock is modified, completes to adjust;In addition, In
In the other embodiment of the present invention, the clock count of the deviation can also be | tick | when > 8 or | tick | it is when > 6, clock is same
Walk to the clock of clock synchronization instruction transmitting terminal, the clock count of the deviation can be | tick | < 8 or | tick | when < 6, by when
Clock is modified, right here | tick | judgement can be correspondingly arranged according to the actual situation, be not specifically limited here, but these sides
Case is in the protection scope of the embodiment of the present invention.
S102, sampling obtains A, B, C three-phase waveform while obtaining clock synchronization instruction, calculates between A, B, C three-phase
Time error, and judge that A phase whether there is failure, wherein phase on the basis of the A phase, as shown in Figure 3.
Specifically: it is sampled while receiving the clock synchronization instruction that the clock synchronization instruction transmitting terminal is sent, it can be effective
The delay caused by terminal processes task is avoided, and then avoids the waveform received there are errors, wherein using A phase as benchmark
Phase, when A, B, C three-phase is there are when failure, 10 waveforms of 6 waveforms and failure failure before recording failure need to illustrate
It is that when three-phase breaks down simultaneously, A phase issues failed synchronization message A at first, and B, C delay send failed synchronization message, that is, exists
B, C connects when receiving the failed synchronization message that A phase issues, and forbids issuing failed synchronization message, certainly, in other realities of the invention
It applies in example, can also be using B phase or C phase as failure phase, at the same time when failure, then corresponding delay issues failed synchronization to other two-phases
Message.
S103 obtains failed synchronization message A and A phase that A phase issues this moment when judging the A phase there are when failure
Waveform;
It should be noted that the frequency that A phase samples can be 4096HZ, the point of cycle acquisition can be 82 points, acquire
Period can be t=244us, enroll 1312 points (10 waveforms of 6 waveforms and failure failure i.e. before failure), and will therefore
Downtime is uploaded to instruction transmitting terminal simultaneously.In other embodiments of the invention, the frequency that A phase samples can also be 3072HZ
Or 5120HZ, the point of cycle acquisition can also be 84 or 86 points, then the total points enrolled correspond to 1344 or 1376 points, when
So, the waveform before and after the failure enrolled can also be before failure 9 after 7, and total wave number can also be 17 or 15, then corresponding record
The total point-variable taken turns to 1392 or 1230, these schemes can be correspondingly arranged according to the actual situation, does not do here specific
It limits, but these schemes are in the protection scope of the embodiment of the present invention.
S104 obtains the waveform of B phase according to the failed synchronization message A.
Specifically: the failed synchronization message B of failed synchronization message A and the B phase of the A phase is made the difference, B phase is obtained
Recording starting point obtains B phase recording offset point with the recording starting point of the B phase, and further sampling and every 250us sampling one
It is a, it carries out recorder data and moves, enroll the data of 1312 points, i.e. 10 waveforms of 6 before failure waveform and failure failure,
Clock synchronization instruction transmitting terminal will be sent to fault time simultaneously, be also possible to every 240us or every 260us sampling in other embodiments
One point, is not specifically limited here.
S105 obtains the waveform of C phase according to the failed synchronization message A.
Specifically: the failed synchronization message C of failed synchronization message A and the C phase of the A phase is made the difference, C phase is obtained
Recording starting point obtains C phase recording offset point with the recording starting point of the C phase, and further sampling and every 250us sampling one
It is a, it carries out recorder data and moves, enroll the data of 1312 points, i.e. 10 waveforms of 6 before failure waveform and failure failure,
Clock synchronization instruction transmitting terminal will be sent to fault time simultaneously, be also possible to every 240us or every 260us sampling in other embodiments
One point, is not specifically limited here.
In the present embodiment, the clock count of the deviation by it is described compensation the time with to constantly base and, wherein it is described
To constantly base by it is described when instruction transmitting terminal issue.
In the present embodiment, when judging the A phase, there are when failure, obtain failed synchronization message A and A that A phase issues
Mutually before waveform this moment further include: calculate the error between A, B, C three-phase, and A, B, C three-phase for being used to sample are adopted
Sample clock is reset, and A, B, C three-phase sampling clock starts counting, and A, B, C three-phase sampling clock is reset simultaneously, ensure that
The synchronism of the discrete indicator sampling of three-phase, ensure that the consistency of recording starting point after failure to the comparison in sampling time,
To ensure that the spacing between electric current and the three-phase recording point of electric field within 1.8 degree, clock synchronization precision is within 100us.
It synchronizes referring to Fig. 4, second embodiment of the invention provides a kind of three-phase recording and looks for a device, comprising:
Clock synchronization instruction acquisition module 201, obtain clock synchronization instruction, clock is adjusted synchronously so that the clock with it is right
The clock of Shi Zhiling transmitting terminal is synchronous;
Three-phase error calculating module 202, sampling obtains A, B, C three-phase waveform while obtaining clock synchronization instruction, calculates institute
The time error between A, B, C three-phase is stated, and judges that A phase whether there is failure, wherein phase on the basis of the A phase;
A phase recording module 203, when the A phase fault, failed synchronization message A that A phase issues, and obtain A phase this moment
Waveform;
B phase recording module 204 obtains the waveform of B phase according to the failed synchronization message A;
C phase recording module 205 obtains the waveform of C phase according to the failed synchronization message A.
Preferably, the clock synchronization instruction acquisition module 201 is specifically used for, and the clock synchronization for receiving the clock synchronization instruction transmitting terminal refers to
When enabling, set time into the break period, and within the break period;
It records clock synchronization and completes the moment, obtain clock synchronization interval;
The clock synchronization interval is subjected to PID adjusting, obtains the compensation time, the clock of deviation is obtained according to the compensation time
It counts, completes clock and adjust, so that the clock is synchronous with the clock synchronization instruction clock of transmitting terminal.
Preferably, the clock count of the deviation be it is described compensation the time with to constantly base and, wherein it is described to constantly
Base by it is described when instruction transmitting terminal issue.
Preferably, the three-phase error calculating module 202 is specifically used for: receiving what the clock synchronization instruction transmitting terminal was sent
Clock synchronization is sampled while instruction, when there are 6 waveforms and failure event when failure, before recording failure for A, B, C three-phase
Hinder 10 waveforms.
It preferably, further include resetting unit, the resetting unit is used to calculate the error between A, B, C three-phase, and
A, B, C the three-phase sampling clock for being used to sample are reset, A, B, C three-phase sampling clock starts counting.
Preferably, A, B, C three-phase sampling clock is reset simultaneously.
Preferably, the B phase recording module 204 is specifically used for:
According to the failed synchronization message A, B phase recording starting point is calculated, while obtaining recording offset point, enrolls B phase wave
Shape.
Preferably, the C phase recording module 205 is specifically used for:
According to the failed synchronization message A, C phase recording starting point is calculated, while obtaining recording offset point, enrolls C phase wave
Shape.
Third embodiment of the invention, which provides a kind of three-phase recording and synchronizes, looks for point device, including processor, memory and
It stores in the memory and is configured the computer program executed by the processing, the processor executes the computer
It realizes that a kind of three-phase recording as described above synchronizes when program and looks for point methods.
Fourth embodiment of the invention provides a kind of computer readable storage medium, and the computer readable storage medium includes
The computer program of storage, such as a kind of three-phase recording synchronize and look for a program.Wherein, it is controlled when the computer program is run
Equipment where the computer readable storage medium, which executes a kind of three-phase recording described in above-mentioned first embodiment and synchronizes, looks for a little.
It is synchronized based on a kind of three-phase recording provided by the invention and looks for point methods, device and equipment, passed through and receive clock synchronization instruction
The clock synchronization instruction that end is sent, starts clock synchronization, and clock synchronization interval carries out PID adjusting, completes the adjusting to clock, and clock synchronization instruction connects
While receipts, sampling clock is zeroed out and starts to sample, judged recording offset point and recording starting point, enrolling failure
Phase waveform.
Illustratively, computer program described in third embodiment of the invention and fourth embodiment can be divided into one
A or multiple modules, one or more of modules are stored in the memory, and are executed by the processor, with complete
At the present invention.One or more of modules can be the series of computation machine program instruction section that can complete specific function, should
Instruction segment realizes that a kind of three-phase recording synchronizes the implementation procedure looked in point device described for describing the computer program.
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is that a kind of three-phase recording synchronizes the control centre for looking for point methods, utilizes various interfaces and connection
The entire realization three-phase recording synchronizes the various pieces for looking for point methods.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, realizes three-phase
Recording synchronizes the various functions of looking for point methods.The memory can mainly include storing program area and storage data area, wherein deposit
Storing up program area can application program needed for storage program area, at least one function (such as sound-playing function, text conversion function
Energy is equal) etc.;Storage data area, which can be stored, uses created data (such as audio data, text message data according to mobile phone
Deng) etc..In addition, memory may include high-speed random access memory, it can also include nonvolatile memory, such as firmly
Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital,
SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states
Part.
Wherein, if described realize that a kind of three-phase recording synchronizes and look for the module of point device real in the form of SFU software functional unit
Now and when sold or used as an independent product, it can store in a computer readable storage medium.Based in this way
Understanding, the present invention realize above-described embodiment method in all or part of the process, can also be instructed by computer program
Relevant hardware is completed, and the computer program can be stored in a computer readable storage medium, the computer journey
Sequence is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes calculating
Machine program code, the computer program code can for source code form, object identification code form, executable file or it is certain in
Between form etc..The computer-readable medium may include: any entity or dress that can carry the computer program code
It sets, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software
Distribution medium etc..It should be noted that the content that the computer-readable medium includes can be according to making laws in jurisdiction
Requirement with patent practice carries out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, computer
Readable medium does not include electric carrier signal and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relationship between module indicate between them have communication connection, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand
And implement.
The above is only the preferred embodiment of the present invention, protection scope of the present invention is not limited merely to above-described embodiment,
All technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.