CN109257158A - A kind of Peer sampling synchronization method and system for equation of light communication - Google Patents
A kind of Peer sampling synchronization method and system for equation of light communication Download PDFInfo
- Publication number
- CN109257158A CN109257158A CN201811319235.1A CN201811319235A CN109257158A CN 109257158 A CN109257158 A CN 109257158A CN 201811319235 A CN201811319235 A CN 201811319235A CN 109257158 A CN109257158 A CN 109257158A
- Authority
- CN
- China
- Prior art keywords
- instant
- sampling
- data
- opposite side
- time
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/0075—Arrangements for synchronising receiver with transmitter with photonic or optical means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0602—Systems characterised by the synchronising information used
- H04J3/0605—Special codes used as synchronising signal
Abstract
The invention discloses a kind of Peer sampling synchronization methods and system for equation of light communication, belong to Relay Protection Technology in Power System field, it is characterised in that: include at least following steps: step 1: receiving to side data;Step 2: the communication information is obtained;Step 3: channel lag is calculated;Step 4: sampled time skew is calculated;Step 5: synchronous point is captured;Step 6: sample-synchronous calculates;Step 7: data are sent.By using above-mentioned technical proposal, equation of light communication terminal device status equity in the present invention, real-time synchronization, it is receiving to side data and after obtaining the communication information, need to only be handled by software can be completed sample-synchronous, i.e., independent of additional time synchronization system, does not also need synchronous waiting delay, with good synchronized sampling precision, while this method is succinct efficiently, is easily achieved.
Description
Technical field
The invention belongs to Relay Protection Technology in Power System field more particularly to a kind of Peer for equation of light communication
Sampling synchronization method and system.
Background technique
The equation of light communicates stationary problem for data at present, generallys use sampling instant adjusting method and GPS Synchronos method.Its
In, sampling instant adjusting method needs to carry out slave setting, the synchronous regime of real-time detection slave is needed, under asynchronous state
It needs to change hardware setting, adjusts the sampling period, be never synchronized to synchronous regime and need longer adjustment time, the adjustment time
Greater than one data transfer cycle (it is continuous send or continuous receiving time it is poor be a data transfer cycle), generally
Eight data transfer cycles, and error may be introduced in the whole process.And GPS Synchronos method depends on GPS time synchronization system, needs
Want additional hardware supported.To seek one kind and be concisely and efficiently sampling synchronization method with significant realistic meaning.
Summary of the invention
In view of the problems of the existing technology, independent of additional time synchronization system, synchronous waiting delay is not needed yet, together
When have good synchronized sampling precision, realize the equation of light communication real-time synchronization processing, the invention proposes one kind be used for light
The Peer sampling synchronization method and system of difference communication.
One of the objects of the present invention is to provide a kind of Peer sampling synchronization methods for equation of light communication, at least wrap
Include following steps:
Step 1: it receives to side data;Described is to be obtained by fiber optic communication to side data, including opposite side hits
According to the operation of, opposite side setting data, the opposite side communication information, and this side communication information for needing to return;
The opposite side communication information includes opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and opposite side sending instant;
Described this side communication information for needing to return is this side sending instant;
Step 2: the communication information is obtained;The communication information is the supplementary number for equation of light communication sampling synchronization method
According to, comprising: when data sending instant, data receiver moment, data processing time, data sending instant and previous sampling instant
Difference, data receiver moment connect with the previous sampling instant time difference, the sampling sequence number of the previous sampling instant of data sending instant, data
The sampling sequence number for the previous sampling instant that time receiving carves;
Step 3: channel lag is calculated;When using dedicated optic fiber channel communication, what is sent and received is equidistant, and is led to
Road be delayed also equal, communication channel delay td, this side sending instant be Tms, this side time of reception be Tmr, opposite side processing the time be
Tnd, then communication channel delay td=[(Tmr-Tms)-Tnd]/2;
Step 4: sampled time skew is calculated;In the process of running, this side sampling period is T, this side time of reception adopts with previous
The time difference at sample moment is dTm, and opposite side sending instant and the previous sampling instant time difference are dTn, this side lags the sampled time skew dt of opposite side
=(td+dTn-dTm) %T;
Step 5: synchronous point is captured;The sampling sequence number of the previous sampling instant of this side time of reception is M, when opposite side is sent
The sampling sequence number for the previous sampling instant carved is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T, then point P sampling instant is stagnant
The time of point N sampling instant is sampled time skew dt afterwards, and point P sampling instant pre-set time dt is the synchronous point of point N;
Step 6: sample-synchronous calculates;Three groups of sampled datas that sampling sequence number is P-2, P-1 and P are successively taken out in this side,
It is denoted as d1, d2, d3 respectively, calculates synchronous point data using second order Lagrange's interpolation, completes synchronized sampling;
Step 7: data are sent;The transmission data are including sending this side sampled data, this side runs setting data, this
The side communication information, and the opposite side communication information for needing to return;
This described side communication information includes this side sending instant, this side processing time, this side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and this side sending instant;
The opposite side communication information for needing to return is opposite side sending instant.
The system that the second object of the present invention is to provide a kind of Peer sampling synchronization method for equation of light communication,
It includes at least:
It receives opposite side data module: receiving to side data;Described is to be obtained by fiber optic communication to side data, including right
Side sampled data, opposite side operation setting data, the opposite side communication information, and this side communication information for needing to return;
The opposite side communication information includes opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and opposite side sending instant;
Described this side communication information for needing to return is this side sending instant;
It obtains communication information module: obtaining the communication information;The communication information is to communicate sampling synchronization method for the equation of light
Auxiliary data, comprising: data sending instant, data receiver moment, data processing time, data sending instant and previous sampling
The time difference at moment, data receiver moment and the previous sampling instant time difference, data sending instant previous sampling instant sampling sequence number,
The sampling sequence number of the previous sampling instant at data receiver moment;
It calculates channel lag module: calculating channel lag;When using dedicated optic fiber channel communication when, send and receive away from
From equal, communication channel delay is also equal, communication channel delay td, this side sending instant is Tms, this side time of reception is Tmr, at opposite side
The reason time is Tnd, then communication channel delay td=[(Tmr-Tms)-Tnd]/2;
It calculates sampled time skew module: calculating sampled time skew;In the process of running, this side sampling period is T, originally flanks the time receiving
Carving with the previous sampling instant time difference is dTm, and opposite side sending instant and the previous sampling instant time difference are dTn, this side lags opposite side
Sampled time skew dt=(td+dTn-dTm) %T;
It captures synchronous point module: capturing synchronous point;The sampling sequence number of the previous sampling instant of this side time of reception is M, right
The sampling sequence number of the previous sampling instant of side sending instant is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T, then point P is adopted
The time of sample moment lag point N sampling instant is sampled time skew dt, and point P sampling instant pre-set time dt is the synchronous point of point N;
Sample-synchronous computing module: sample-synchronous calculates;Three that sampling sequence number is P-2, P-1 and P are successively taken out in this side
Group sampled data, is denoted as d1, d2, d3 respectively, calculates synchronous point data using second order Lagrange's interpolation, completion, which synchronizes, adopts
Sample;
It sends data module: sending data;The transmission data include sending this side sampled data, this side operation setting number
According to, this side communication information, and the opposite side communication information for needing to return;
This described side communication information includes this side sending instant, this side processing time, this side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and this side sending instant;
The opposite side communication information for needing to return is opposite side sending instant.
The third object of the present invention, which is to provide, a kind of realizes Peer sampling synchronization method for equation of light communication
Computer program.
The fourth object of the present invention, which is to provide, a kind of realizes Peer sampling synchronization method for equation of light communication
Information data processing terminal.
The fifth object of the present invention is to provide a kind of computer readable storage medium, including instruction, when it is in computer
When upper operation, so that computer executes the Peer sampling synchronization method for equation of light communication.
In conclusion advantages of the present invention and good effect are as follows:
By using above-mentioned technical proposal, the equation of light communication terminal device status in the present invention is reciprocity, real-time synchronization.It is connecing
Receive the real-time calculating based on channel lag and sampled time skew, without carrying out the sampling period to side data and after obtaining the communication information
Adjustment, only need to be fitted operation to sample point data, so that it may realize synchronize, whole process one interrupt in complete,
I.e. independent of additional time synchronization system, synchronous waiting delay is not needed yet, there is good synchronized sampling precision, while the party
Method is succinct efficiently, is easily achieved.
Detailed description of the invention
Fig. 1 is the flow chart of the preferred embodiment of the present invention;
Fig. 2 is that the equation of light communicates sampling synchronization method schematic diagram in the preferred embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiments, to the present invention
It is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to
Limit the present invention.
Please refer to Fig. 1 to Fig. 2, a kind of Peer sampling synchronization method for equation of light communication,
In the present invention, the equation of light communicates terminal device status equity, using real-time synchronization technique, is receiving to side data and is obtaining
After obtaining the communication information, need to only be handled by software can be completed sample-synchronous, both do not needed synchronous waiting delay, also do not needed volume
Outer time synchronization system auxiliary.Realize that specific step is as follows:
Step 1: receiving to side data.Described to side data is obtained by fiber optic communication, including opposite side hits
According to the operation of, opposite side setting data, the opposite side communication information, and this side communication information for needing to return.
The opposite side communication information, including opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and opposite side sending instant.
Described this side communication information for needing to return, i.e. this side sending instant.
Step 2: obtaining the communication information.The communication information is the auxiliary data for equation of light communication sampling synchronization method,
It include: data sending instant, data receiver moment, data processing time, data sending instant and the previous sampling instant time difference, number
When according to the time of reception and the previous sampling instant time difference, the sampling sequence number of the previous sampling instant of data sending instant, data receiver
The sampling sequence number for the previous sampling instant carved.
Step 3: calculating channel lag.When using dedicated optic fiber channel communication, what is sent and received is equidistant, channel
It is delayed also equal, for convenience of describing, is denoted as td.Remember that this side sending instant is Tms simultaneously, this side time of reception is Tmr, remembers opposite side
The processing time is Tnd, then communication channel delay td=[(Tmr-Tms)-Tnd]/2.
Step 4: calculating sampled time skew.In the process of running, this side and the side apparatus sampling period is fixed and without adjustment,
For convenience of description, remember that this side sampling period is T.This side time of reception is remembered simultaneously and the previous sampling instant time difference is dTm, remembers opposite side
Sending instant and the previous sampling instant time difference are dTn, then sampled time skew dt=(td+dTn-dTm) %T of this side lag opposite side.
Step 5: capturing synchronous point.For convenience of description, remember that the sampling sequence number of the previous sampling instant of this side time of reception is
M remembers that the sampling sequence number of the previous sampling instant of opposite side sending instant is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T,
Then the time of point P sampling instant lag point N sampling instant is sampled time skew dt, and point P sampling instant pre-set time dt is point N
Synchronous point.
Step 6: sample-synchronous calculates.Three groups of sampled datas that sampling sequence number is P-2, P-1 and P are successively taken out in this side,
It is denoted as d1, d2, d3 respectively, calculates synchronous point data, i.e. completion synchronized sampling using second order Lagrange's interpolation.
Step 7: data are sent, including send this side sampled data, the operation of this side setting data, this side communication information, with
And the opposite side communication information for needing to return.
This described side communication information, including this side sending instant, this side processing time, this side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and this side sending instant.
The opposite side communication information for needing to return, i.e. opposite side sending instant.
Preferred embodiment two, a kind of system of the Peer sampling synchronization method for equation of light communication, comprising:
It receives opposite side data module: receiving to side data;Described is to be obtained by fiber optic communication to side data, including right
Side sampled data, opposite side operation setting data, the opposite side communication information, and this side communication information for needing to return;
The opposite side communication information includes opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and opposite side sending instant;
Described this side communication information for needing to return is this side sending instant;
It obtains communication information module: obtaining the communication information;The communication information is to communicate sampling synchronization method for the equation of light
Auxiliary data, comprising: data sending instant, data receiver moment, data processing time, data sending instant and previous sampling
The time difference at moment, data receiver moment and the previous sampling instant time difference, data sending instant previous sampling instant sampling sequence number,
The sampling sequence number of the previous sampling instant at data receiver moment;
It calculates channel lag module: calculating channel lag;When using dedicated optic fiber channel communication when, send and receive away from
From equal, communication channel delay is also equal, communication channel delay td, this side sending instant is Tms, this side time of reception is Tmr, at opposite side
The reason time is Tnd, then communication channel delay td=[(Tmr-Tms)-Tnd]/2;
It calculates sampled time skew module: calculating sampled time skew;In the process of running, this side sampling period is T, originally flanks the time receiving
Carving with the previous sampling instant time difference is dTm, and opposite side sending instant and the previous sampling instant time difference are dTn, this side lags opposite side
Sampled time skew dt=(td+dTn-dTm) %T;
It captures synchronous point module: capturing synchronous point;The sampling sequence number of the previous sampling instant of this side time of reception is M, right
The sampling sequence number of the previous sampling instant of side sending instant is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T, then point P is adopted
The time of sample moment lag point N sampling instant is sampled time skew dt, and point P sampling instant pre-set time dt is the synchronous point of point N;
Sample-synchronous computing module: sample-synchronous calculates;Three that sampling sequence number is P-2, P-1 and P are successively taken out in this side
Group sampled data, is denoted as d1, d2, d3 respectively, calculates synchronous point data using second order Lagrange's interpolation, completion, which synchronizes, adopts
Sample;
It sends data module: sending data;The transmission data include sending this side sampled data, this side operation setting number
According to, this side communication information, and the opposite side communication information for needing to return;
This described side communication information includes this side sending instant, this side processing time, this side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and this side sending instant;
The opposite side communication information for needing to return is opposite side sending instant.
Preferred embodiment three, a kind of computer program for realizing the Peer sampling synchronization method for equation of light communication,
The Peer sampling synchronization method for equation of light communication includes the following steps:
Step 1: receiving to side data.Described to side data is obtained by fiber optic communication, including opposite side hits
According to the operation of, opposite side setting data, the opposite side communication information, and this side communication information for needing to return.
The opposite side communication information, including opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and opposite side sending instant.
Described this side communication information for needing to return, i.e. this side sending instant.
Step 2: obtaining the communication information.The communication information is the auxiliary data for equation of light communication sampling synchronization method,
It include: data sending instant, data receiver moment, data processing time, data sending instant and the previous sampling instant time difference, number
When according to the time of reception and the previous sampling instant time difference, the sampling sequence number of the previous sampling instant of data sending instant, data receiver
The sampling sequence number for the previous sampling instant carved.
Step 3: calculating channel lag.When using dedicated optic fiber channel communication, what is sent and received is equidistant, channel
It is delayed also equal, for convenience of describing, is denoted as td.Remember that this side sending instant is Tms simultaneously, this side time of reception is Tmr, remembers opposite side
The processing time is Tnd, then communication channel delay td=[(Tmr-Tms)-Tnd]/2.
Step 4: calculating sampled time skew.In the process of running, this side and the side apparatus sampling period is fixed and without adjustment,
For convenience of description, remember that this side sampling period is T.This side time of reception is remembered simultaneously and the previous sampling instant time difference is dTm, remembers opposite side
Sending instant and the previous sampling instant time difference are dTn, then sampled time skew dt=(td+dTn-dTm) %T of this side lag opposite side.
Step 5: capturing synchronous point.For convenience of description, remember that the sampling sequence number of the previous sampling instant of this side time of reception is
M remembers that the sampling sequence number of the previous sampling instant of opposite side sending instant is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T,
Then the time of point P sampling instant lag point N sampling instant is sampled time skew dt, and point P sampling instant pre-set time dt is point N
Synchronous point.
Step 6: sample-synchronous calculates.Three groups of sampled datas that sampling sequence number is P-2, P-1 and P are successively taken out in this side,
It is denoted as d1, d2, d3 respectively, calculates synchronous point data, i.e. completion synchronized sampling using second order Lagrange's interpolation.
Step 7: data are sent, including send this side sampled data, the operation of this side setting data, this side communication information, with
And the opposite side communication information for needing to return.
This described side communication information, including this side sending instant, this side processing time, this side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and this side sending instant.
The opposite side communication information for needing to return, i.e. opposite side sending instant.
Preferred embodiment four, a kind of information data processing for realizing the Peer sampling synchronization method for equation of light communication
Terminal.The Peer sampling synchronization method for equation of light communication includes the following steps:
Step 1: receiving to side data.Described to side data is obtained by fiber optic communication, including opposite side hits
According to the operation of, opposite side setting data, the opposite side communication information, and this side communication information for needing to return.
The opposite side communication information, including opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and opposite side sending instant.
Described this side communication information for needing to return, i.e. this side sending instant.
Step 2: obtaining the communication information.The communication information is the auxiliary data for equation of light communication sampling synchronization method,
It include: data sending instant, data receiver moment, data processing time, data sending instant and the previous sampling instant time difference, number
When according to the time of reception and the previous sampling instant time difference, the sampling sequence number of the previous sampling instant of data sending instant, data receiver
The sampling sequence number for the previous sampling instant carved.
Step 3: calculating channel lag.When using dedicated optic fiber channel communication, what is sent and received is equidistant, channel
It is delayed also equal, for convenience of describing, is denoted as td.Remember that this side sending instant is Tms simultaneously, this side time of reception is Tmr, remembers opposite side
The processing time is Tnd, then communication channel delay td=[(Tmr-Tms)-Tnd]/2.
Step 4: calculating sampled time skew.In the process of running, this side and the side apparatus sampling period is fixed and without adjustment,
For convenience of description, remember that this side sampling period is T.This side time of reception is remembered simultaneously and the previous sampling instant time difference is dTm, remembers opposite side
Sending instant and the previous sampling instant time difference are dTn, then sampled time skew dt=(td+dTn-dTm) %T of this side lag opposite side.
Step 5: capturing synchronous point.For convenience of description, remember that the sampling sequence number of the previous sampling instant of this side time of reception is
M remembers that the sampling sequence number of the previous sampling instant of opposite side sending instant is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T,
Then the time of point P sampling instant lag point N sampling instant is sampled time skew dt, and point P sampling instant pre-set time dt is point N
Synchronous point.
Step 6: sample-synchronous calculates.Three groups of sampled datas that sampling sequence number is P-2, P-1 and P are successively taken out in this side,
It is denoted as d1, d2, d3 respectively, calculates synchronous point data, i.e. completion synchronized sampling using second order Lagrange's interpolation.
Step 7: data are sent, including send this side sampled data, the operation of this side setting data, this side communication information, with
And the opposite side communication information for needing to return.
This described side communication information, including this side sending instant, this side processing time, this side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and this side sending instant.
The opposite side communication information for needing to return, i.e. opposite side sending instant.
Preferred embodiment five, a kind of computer readable storage medium, including instruction, when run on a computer, make
It obtains computer and executes the Peer sampling synchronization method communicated for the equation of light, the Peer sampling communicated for the equation of light
Synchronous method includes the following steps: that the Peer sampling synchronization method for equation of light communication includes the following steps:
Step 1: receiving to side data.Described to side data is obtained by fiber optic communication, including opposite side hits
According to the operation of, opposite side setting data, the opposite side communication information, and this side communication information for needing to return.
The opposite side communication information, including opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and opposite side sending instant.
Described this side communication information for needing to return, i.e. this side sending instant.
Step 2: obtaining the communication information.The communication information is the auxiliary data for equation of light communication sampling synchronization method,
It include: data sending instant, data receiver moment, data processing time, data sending instant and the previous sampling instant time difference, number
When according to the time of reception and the previous sampling instant time difference, the sampling sequence number of the previous sampling instant of data sending instant, data receiver
The sampling sequence number for the previous sampling instant carved.
Step 3: calculating channel lag.When using dedicated optic fiber channel communication, what is sent and received is equidistant, channel
It is delayed also equal, for convenience of describing, is denoted as td.Remember that this side sending instant is Tms simultaneously, this side time of reception is Tmr, remembers opposite side
The processing time is Tnd, then communication channel delay td=[(Tmr-Tms)-Tnd]/2.
Step 4: calculating sampled time skew.In the process of running, this side and the side apparatus sampling period is fixed and without adjustment,
For convenience of description, remember that this side sampling period is T.This side time of reception is remembered simultaneously and the previous sampling instant time difference is dTm, remembers opposite side
Sending instant and the previous sampling instant time difference are dTn, then sampled time skew dt=(td+dTn-dTm) %T of this side lag opposite side.
Step 5: capturing synchronous point.For convenience of description, remember that the sampling sequence number of the previous sampling instant of this side time of reception is
M remembers that the sampling sequence number of the previous sampling instant of opposite side sending instant is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T,
Then the time of point P sampling instant lag point N sampling instant is sampled time skew dt, and point P sampling instant pre-set time dt is point N
Synchronous point.
Step 6: sample-synchronous calculates.Three groups of sampled datas that sampling sequence number is P-2, P-1 and P are successively taken out in this side,
It is denoted as d1, d2, d3 respectively, calculates synchronous point data, i.e. completion synchronized sampling using second order Lagrange's interpolation.
Step 7: data are sent, including send this side sampled data, the operation of this side setting data, this side communication information, with
And the opposite side communication information for needing to return.
This described side communication information, including this side sending instant, this side processing time, this side sending instant and previous sampling
The sampling sequence number of the previous sampling instant of the time difference at moment and this side sending instant.
The opposite side communication information for needing to return, i.e. opposite side sending instant.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When using entirely or partly realizing in the form of a computer program product, the computer program product include one or
Multiple computer instructions.When loading on computers or executing the computer program instructions, entirely or partly generate according to
Process described in the embodiment of the present invention or function.The computer can be general purpose computer, special purpose computer, computer network
Network or other programmable devices.The computer instruction may be stored in a computer readable storage medium, or from one
Computer readable storage medium is transmitted to another computer readable storage medium, for example, the computer instruction can be from one
A web-site, computer, server or data center pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)
Or wireless (such as infrared, wireless, microwave etc.) mode is carried out to another web-site, computer, server or data center
Transmission).The computer-readable storage medium can be any usable medium or include one that computer can access
The data storage devices such as a or multiple usable mediums integrated server, data center.The usable medium can be magnetic Jie
Matter, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid
State Disk (SSD)) etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (5)
1. a kind of Peer sampling synchronization method for equation of light communication, it is characterised in that: include at least following steps:
Step 1: it receives to side data;Described is to be obtained by fiber optic communication to side data, including opposite side sampled data, right
Side operation setting data, the opposite side communication information, and this side communication information for needing to return;
The opposite side communication information includes opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling instant
The sampling sequence number of the previous sampling instant of the time difference and opposite side sending instant;
Described this side communication information for needing to return is this side sending instant;
Step 2: the communication information is obtained;The communication information is the auxiliary data for equation of light communication sampling synchronization method, packet
It includes: data sending instant, data receiver moment, data processing time, data sending instant and the previous sampling instant time difference, data
The time of reception and the previous sampling instant time difference, the sampling sequence number of the previous sampling instant of data sending instant, data receiver moment
Previous sampling instant sampling sequence number;
Step 3: channel lag is calculated;When using dedicated optic fiber channel communication, what is sent and received is equidistant, and channel is prolonged
When also equal, communication channel delay td, this side sending instant be Tms, this side time of reception be Tmr, opposite side handle the time be Tnd,
Then communication channel delay td=[(Tmr-Tms)-Tnd]/2;
Step 4: sampled time skew is calculated;In the process of running, when this side sampling period is T, this side time of reception and previous sampling
The time difference at quarter is dTm, and opposite side sending instant and the previous sampling instant time difference are dTn, this side lags the sampled time skew dt=(td of opposite side
+ dTn-dTm) %T;
Step 5: synchronous point is captured;The sampling sequence number of the previous sampling instant of this side time of reception is M, opposite side sending instant
The sampling sequence number of previous sampling instant is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T, then point P sampling instant lags point
The time of N sampling instant is sampled time skew dt, and point P sampling instant pre-set time dt is the synchronous point of point N;
Step 6: sample-synchronous calculates;Three groups of sampled datas that sampling sequence number is P-2, P-1 and P are successively taken out in this side, respectively
It is denoted as d1, d2, d3, synchronous point data is calculated using second order Lagrange's interpolation, completes synchronized sampling;
Step 7: data are sent;The transmission data are including sending this side sampled data, this side runs setting data, this side is logical
Letter information, and the opposite side communication information for needing to return;
This described side communication information includes this side sending instant, this side processing time, this side sending instant and previous sampling instant
The sampling sequence number of the previous sampling instant of the time difference and this side sending instant;
The opposite side communication information for needing to return is opposite side sending instant.
2. a kind of system of the Peer sampling synchronization method for equation of light communication, it is characterised in that: include at least:
It receives opposite side data module: receiving to side data;Described is to be obtained by fiber optic communication, including opposite side is adopted to side data
Sample data, opposite side operation setting data, the opposite side communication information, and this side communication information for needing to return;
The opposite side communication information includes opposite side sending instant, opposite side processing time, opposite side sending instant and previous sampling instant
The sampling sequence number of the previous sampling instant of the time difference and opposite side sending instant;
Described this side communication information for needing to return is this side sending instant;
It obtains communication information module: obtaining the communication information;The communication information is for the auxiliary of equation of light communication sampling synchronization method
Help data, comprising: data sending instant, data receiver moment, data processing time, data sending instant and previous sampling instant
The time difference, data receiver moment and the previous sampling instant time difference, the sampling sequence number of the previous sampling instant of data sending instant, data
The sampling sequence number of the previous sampling instant of the time of reception;
It calculates channel lag module: calculating channel lag;When using dedicated optic fiber channel communication, the distance phase that sends and receives
Deng, communication channel delay is also equal, communication channel delay td, this side sending instant be Tms, this side time of reception be Tmr, opposite side handle when
Between be Tnd, then communication channel delay td=[(Tmr-Tms)-Tnd]/2;
It calculates sampled time skew module: calculating sampled time skew;In the process of running, this side sampling period be T, this side time of reception with
The previous sampling instant time difference is dTm, and opposite side sending instant and the previous sampling instant time difference are dTn, this side lags the sampling of opposite side
Time difference dt=(td+dTn-dTm) %T;
It captures synchronous point module: capturing synchronous point;The sampling sequence number of the previous sampling instant of this side time of reception is M, opposite side hair
The sampling sequence number for sending the previous sampling instant at moment is N, calculates sampling sequence number P=M- (td+dTn-dTm)/T, then when point P is sampled
The time for carving lag point N sampling instant is sampled time skew dt, and point P sampling instant pre-set time dt is the synchronous point of point N;
Sample-synchronous computing module: sample-synchronous calculates;Three groups that sampling sequence number is P-2, P-1 and P are successively taken out in this side to adopt
Sample data, are denoted as d1, d2, d3 respectively, calculate synchronous point data using second order Lagrange's interpolation, complete synchronized sampling;
It sends data module: sending data;The transmission data are including sending this side sampled data, this side runs setting data,
This side communication information, and the opposite side communication information for needing to return;
This described side communication information includes this side sending instant, this side processing time, this side sending instant and previous sampling instant
The sampling sequence number of the previous sampling instant of the time difference and this side sending instant;
The opposite side communication information for needing to return is opposite side sending instant.
3. a kind of computer program realized described in claim 1 for the Peer sampling synchronization method of equation of light communication.
4. a kind of information data processing for realizing the Peer sampling synchronization method described in claim 1 for equation of light communication is whole
End.
5. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer is executed as weighed
Benefit is used for the Peer sampling synchronization method that the equation of light communicates described in requiring 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811319235.1A CN109257158B (en) | 2018-11-07 | 2018-11-07 | Peer-to-peer sampling synchronization method and system for optical difference communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811319235.1A CN109257158B (en) | 2018-11-07 | 2018-11-07 | Peer-to-peer sampling synchronization method and system for optical difference communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109257158A true CN109257158A (en) | 2019-01-22 |
CN109257158B CN109257158B (en) | 2020-12-29 |
Family
ID=65044653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811319235.1A Active CN109257158B (en) | 2018-11-07 | 2018-11-07 | Peer-to-peer sampling synchronization method and system for optical difference communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109257158B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115190576A (en) * | 2022-02-22 | 2022-10-14 | 南京国电南自电网自动化有限公司 | Wireless differential synchronization system and method adaptive to cache depth |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050141814A1 (en) * | 2003-12-30 | 2005-06-30 | The Boeing Company | Digitally controlled optical fiber delay line |
CN101534002A (en) * | 2009-04-14 | 2009-09-16 | 国电南瑞科技股份有限公司 | Data synchronization method for ET-connected optical-fiber differential protection devices |
CN101534003A (en) * | 2009-04-14 | 2009-09-16 | 国电南瑞科技股份有限公司 | Data synchronization method for digitized fiber differential protection device |
CN101752901A (en) * | 2008-12-10 | 2010-06-23 | 深圳市中电电力技术有限公司 | Method, system, equipment and device for synchronizing data sampling at different places |
CN106099879A (en) * | 2016-08-09 | 2016-11-09 | 深圳供电局有限公司 | A kind of flexible direct current distribution network line differential protection system and differential protection implementation method |
CN108616111A (en) * | 2016-12-12 | 2018-10-02 | 南京南瑞继保电气有限公司 | A kind of multiterminal T connection electric transmission line optical fibre differential protection methods synchronized based on interpolation |
-
2018
- 2018-11-07 CN CN201811319235.1A patent/CN109257158B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050141814A1 (en) * | 2003-12-30 | 2005-06-30 | The Boeing Company | Digitally controlled optical fiber delay line |
CN101752901A (en) * | 2008-12-10 | 2010-06-23 | 深圳市中电电力技术有限公司 | Method, system, equipment and device for synchronizing data sampling at different places |
CN101534002A (en) * | 2009-04-14 | 2009-09-16 | 国电南瑞科技股份有限公司 | Data synchronization method for ET-connected optical-fiber differential protection devices |
CN101534003A (en) * | 2009-04-14 | 2009-09-16 | 国电南瑞科技股份有限公司 | Data synchronization method for digitized fiber differential protection device |
CN106099879A (en) * | 2016-08-09 | 2016-11-09 | 深圳供电局有限公司 | A kind of flexible direct current distribution network line differential protection system and differential protection implementation method |
CN108616111A (en) * | 2016-12-12 | 2018-10-02 | 南京南瑞继保电气有限公司 | A kind of multiterminal T connection electric transmission line optical fibre differential protection methods synchronized based on interpolation |
Non-Patent Citations (3)
Title |
---|
TUANJIE CAO 等: "Two methods of data synchronization in optical fiber differential: improved interpolation and clock relay", 《CICED 2010 PROCEEDINGS》 * |
王鹏 等: "SV跟踪式光纤纵联电流差动保护同步技术研究", 《电工技术》 * |
赵双石: "智能变电站中光纤差动保护装置的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115190576A (en) * | 2022-02-22 | 2022-10-14 | 南京国电南自电网自动化有限公司 | Wireless differential synchronization system and method adaptive to cache depth |
CN115190576B (en) * | 2022-02-22 | 2023-10-31 | 南京国电南自电网自动化有限公司 | Wireless differential synchronization system and method for self-adaptive cache depth |
Also Published As
Publication number | Publication date |
---|---|
CN109257158B (en) | 2020-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017186068A1 (en) | Uwb high-precision positioning system, positioning method and apparatus, and computer readable medium | |
US8909244B2 (en) | Distributed positioning mechanism for wireless communication devices | |
CN104115432A (en) | Method and apparatus for communicating time information between time-aware devices | |
CN104270567A (en) | High-precision synchronous multi-channel image acquisition system and time synchronization method thereof | |
CN104539931A (en) | Multi-ocular camera system, device and synchronization method | |
CN102916758B (en) | Ethernet time synchronism apparatus and the network equipment | |
WO2021008532A1 (en) | Active antenna unit delay alignment method and apparatus and active antenna unit | |
CN109996325A (en) | A kind of clock system and method for wireless sensor network | |
CN103995471A (en) | Clock synchronization method of distributed control system | |
CN109687927A (en) | A kind of method, communication equipment and the communication system of determining timestamp | |
CN105162570A (en) | Timing synchronization method and device for signal parallel processing | |
CN106850331B (en) | Ethernet frame sending device with synchronous clock function in traffic field | |
CN109257158A (en) | A kind of Peer sampling synchronization method and system for equation of light communication | |
CN108008676B (en) | Multi-processing unit relay protection system and synchronization method thereof | |
CN108781162A (en) | A kind of network node, message transmitting method and network | |
CN205050133U (en) | Embedded time system that unites in system | |
CN104601269B (en) | Master-salve clock synchronous method and system | |
CN107181552A (en) | Synchronisation signal transmission method and device, FPGA | |
WO2016000423A1 (en) | Delay compensation method and device | |
US20200351189A1 (en) | Method, System, and Computer Program Product for Producing Accurate IEEE 1588 PTP Timestamps in a System with Variable PHY Latency | |
CN102821108A (en) | Method for precisely synchronizing time of client and time of server | |
CN102802198A (en) | Data alignment method and device | |
CN106209090B (en) | A kind of combining unit pulse per second (PPS) synchronism output system and method based on FPGA | |
CN203722758U (en) | Synchronizer for distributed video system | |
CN111010250A (en) | Method and system for realizing high-precision time synchronization |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: No. 369, Central West Road, Tianjin Binhai New Area pilot free trade zone (Airport Economic Zone) Patentee after: Qingneng Huakong Technology Co.,Ltd. Address before: No. 369, Central West Road, Tianjin Binhai New Area pilot free trade zone (Airport Economic Zone) Patentee before: UNISM&C CO.,LTD. |
|
CP01 | Change in the name or title of a patent holder |