Summary of the invention
The objective of the invention is to address the above problem, provide a kind of pulse signal asynchronous synchronizing channel and the pinpoint method of packing into, solved in the process that in the E1 isochronous communication channel, realizes the automatic delay compensation and solved pulse signal, solved the problem of in the frame transport process, locating and improve positioning accuracy by the asynchronous synchronizing channel problem of packing into of framing method.
Technical scheme of the present invention is: the present invention has disclosed asynchronous synchronizing channel and the pinpoint method of packing into of a kind of pulse signal, the process and the pinpoint process of the signal asynchronous E1 of packing into the synchronizing channel of pulse when comprising with bidirectional pulse method delay compensation,
Wherein the process of the asynchronous synchronizing channel of packing into of this pulse signal comprises:
(1) from respectively the recurrent pulse of oneself being formed pulse frame in the mode of framing with master in a pulse period, the E1 up-downgoing synchronizing channel of packing into forms the pulsing frame among sending sequence;
(2) the other side can receive corresponding pulse frame from the receive path sequence, and according to the position that frame is determined pulse frame of separating of pulse frame;
(3) measure respectively by the measuring system at two ends and send pulse frame and received pulse frame the time interval with respect to the respective pulses of local terminal reference pulse sequence, the time interval data that measure respectively at two ends is t1, t2, t3, t4, wherein t1 is illustrated in one from holding recurrent pulse in the cycle, till pulse byte in the pulse frame that end recurrent pulse upper edge begins to produce to pulse is thus sent, with measuring from the end time measurement system, t2 is illustrated in a main end recurrent pulse in the cycle, autonomous end recurrent pulse upper edge begins to end to the pulse byte that correctly receives from the pulse frame that end produces, measure with main end time measurement system, t3 is illustrated in a main end recurrent pulse in the cycle, pulse byte in the pulse frame that autonomous end recurrent pulse upper edge begins to produce to pulse is thus sent and is ended, measure with main end measuring system, t4 is illustrated in one from holding recurrent pulse in the cycle, since end recurrent pulse upper edge begins to hold the pulse byte in the pulse frame that produces to end to correctly receiving the master, use from the measurement of end time measurement system;
This pinpoint process comprises:
(4) be coded in the pulse frame that produces unique representative pulse in the synchronizing channel system of framing according to pulse frame;
(5) this pulse frame is packed into E1 synchronizing channel system sends, and the moment that sends pulse frame is represented the rough position of pulse frame;
(6) byte that identifies in coded sequence in the pulse frame is a pulse frame active position byte, and first bit that defines after this byte is the pulse frame position that is accurate to bit;
(7) utilize pulse frame position bit to select the exact position of the jumping of wherein unique synchronization timing clock signal, accurately measure t1 and t3 by this jumping edge along this pulse frame of expression;
(8) identify the rough position of pulse frame at the receiving terminal of synchronizing channel system, be pulse frame active position byte by a byte that identifies in the pulse frame again, and first bit that defines after this byte is the pulse frame position that is accurate to bit, the jumping of the synchronization timing clock signal by selecting this bit correspondence is along the exact position of determining pulse frame, by jumping along accurately measuring t2 and t4.
Asynchronous synchronizing channel and the pinpoint method of packing into of above-mentioned pulse signal, wherein, this method also comprises:
One group of time data t1, the t2 that measures respectively according to two ends, t3, t4 at the time delay value that calculates passage from end to carry out delay compensation.
The present invention contrasts prior art following beneficial effect: the present invention is based on the principle that bidirectional pulse is sent out delay compensation, in the E1 isochronous communication channel, realize the automatic delay compensation, in above-mentioned implementation procedure, solve pulse signal by the asynchronous synchronizing channel problem of packing into of the method for framing, solved the problem of in the frame transport process, locating and improve positioning accuracy.
Embodiment
Below in conjunction with drawings and Examples embodiments of the invention are further described.
Fig. 3 shows the principle of the asynchronous isochronous communication channel of packing into of pulse sequence signal of the present invention.See also Fig. 3, the process of the asynchronous isochronous communication channel of packing into is as follows.
(1) from respectively the recurrent pulse of oneself being formed pulse frame in the mode of framing with master in a pulse period, the E1 up-downgoing synchronizing channel of packing into forms the pulsing frame among sending sequence;
(2) the other side can receive corresponding pulse frame from the receive path sequence, and according to the position that frame is determined pulse frame of separating of pulse frame;
(3) measure respectively by the measuring system at two ends and send pulse frame and received pulse frame the time interval with respect to the respective pulses of local terminal reference pulse sequence, the time interval data that measure respectively at two ends is t1, t2, t3, t4, wherein t1 is illustrated in one from holding recurrent pulse in the cycle, till pulse byte in the pulse frame that end recurrent pulse upper edge begins to produce to pulse is thus sent, with measuring from the end time measurement system, t2 is illustrated in a main end recurrent pulse in the cycle, autonomous end recurrent pulse upper edge begins to end to the pulse byte that correctly receives from the pulse frame that end produces, measure with main end time measurement system, t3 is illustrated in a main end recurrent pulse in the cycle, pulse byte in the pulse frame that autonomous end recurrent pulse upper edge begins to produce to pulse is thus sent and is ended, measure with main end measuring system, t4 is illustrated in one from holding recurrent pulse in the cycle, since end recurrent pulse upper edge begins to hold the pulse byte in the pulse frame that produces to end to correctly receiving the master, use from the measurement of end time measurement system.
Can the time data of local measurement be delivered to the other side in time by the synchrodata passage, delay compensation is carried out at the time delay value that calculates passage from end in one group of time data (t1, t2, t3, the t4) back that obtains simultaneously to measure respectively at two ends, and computational methods are as follows: according to Fig. 3 row formula:
d+t1+d2=t2 (1)
d+t4=t3+d1 (2)
Calculating (2)+(1) gets:
2d+t1+d2+t4=t3+t2+d1 (3)
2d=(t2-t1)-(t4-t3)+(d1-d2) (4)
Symmetric channel d1=d2
d=(t2-t1)-(t4-t3) (5)
By on can get: can use measured value (t1, t2, t3, t4) accurate Calculation for the phase difference of the principal and subordinate of symmetrical isochronous communication channel system (d1=d2) pulse train, this method can be got rid of pulse train and the asynchronous influence of isochronous communication channel timing system.
Clear and definite after the aforementioned calculation method remaining issues be to find out the pinpoint method of pulse frame, accurately measure the position of pulse frame, this method is given the characteristics that must fully adapt to E1 isochronous communication channel timing system simultaneously.The pinpoint principle of pulse frame is seen Fig. 4.The most frequently used method in time location is exactly the impulse hits signal definition time location with appointment, so the pinpoint process of pulse frame is exactly the process of specific pulse skip signal, and positioning principle is described below.
This pinpoint process comprises:
(1) is coded in the pulse frame that produces unique representative pulse in the synchronizing channel system of framing according to pulse frame;
(2) this pulse frame is packed into E1 synchronizing channel system sends, and the moment that sends pulse frame is represented the rough position of pulse frame;
(3) byte that identifies in coded sequence in the pulse frame is a pulse frame active position byte, and first bit that defines after this byte is the pulse frame position that is accurate to bit;
(4) utilize pulse frame position bit to select the exact position of the jumping of wherein unique synchronization timing clock signal, accurately measure t1 and t3 by this jumping edge along this pulse frame of expression;
(5) identify the rough position of pulse frame at the receiving terminal of synchronizing channel system, be pulse frame active position byte by a byte that identifies in the pulse frame again, and first bit that defines after this byte is the pulse frame position that is accurate to bit, the jumping of the synchronization timing clock signal by selecting this bit correspondence is along the exact position of determining pulse frame, by jumping along accurately measuring t2 and t4.
Fig. 5 shows the flow process of the signal asynchronous synchronizing channel of packing into of bidirectional pulse of the present invention.See also Fig. 5, flow process is divided into main end flow process and from the end flow process, two flow processs are separate, finish in one-period.
It at first is main end flow process.
Step S10: the pulse of main end reference pulse sequence.
Step S11: main end sends pulse frame, and the pulse frame reference pulse sequence starts packs into, the synchronizing channel of packing into be a pulse frame signal of represent pulse, the channel time that the pulse frame of packing into is observed is different from the burst length, t1 and t3 are the asynchronous time of packing into of measurement.
Step S12: wait for receiving the opposite end pulse.
Step S13: main termination is received pulse frame, measures time of reception t2, t4.
Step S14: next cycle master end is finished the transmission of measurement data.
Next is independently from the end flow process.
Step S15: from the pulse of end reference pulse sequence.
Step S16: send pulse frame from end, the pulse frame reference pulse sequence starts packs into, the synchronizing channel of packing into be a pulse frame signal of represent pulse, the channel time that the pulse frame of packing into is observed is different from the burst length, t1 and t3 are the asynchronous time of packing into of measurement.
Step S17: wait for receiving the opposite end pulse.
Step S18: receive pulse frame from termination, measure time of reception t2, t4.
Step S19: next cycle is finished from end and is calculated and delay compensation.
Fig. 6 shows the pinpoint flow process of carrying out of the present invention.See also Fig. 6, at first describe the location from the pulse frame process of transmitting.
Step S20: send pulse frame and begin some early-stage preparations and identification work.
Step S22: wait pulse byte to be sent, the rough position of pulse byte-identifier pulse frame.
Step S24: wait pulse bit to be sent, the exact position of pulse bit marker pulses frame.
Step S26: the jumping edge of selecting synchronised clock by wait and screening means (generally using circuit logic).
Step S28: the jumping that output is selected is prepared processing procedure next time along as time measurement signal.
Secondly the location is described from the pulse frame receiving course.
Step S21: the received pulse frame begins some early-stage preparations and identification work.
Step S23: wait for the received pulse byte, the rough position of pulse byte-identifier pulse frame.
Step S25: wait for the received pulse bit, the exact position of pulse bit marker pulses frame.
Step S27: the jumping edge of selecting synchronised clock by wait and screening means (generally using circuit logic).
Step S29: the jumping that output is selected is prepared processing procedure next time along as time measurement signal.
The foregoing description provides to those of ordinary skills and realizes or use of the present invention; those of ordinary skills can be under the situation that does not break away from invention thought of the present invention; the foregoing description is made various modifications or variation; thereby protection scope of the present invention do not limit by the foregoing description, and should be the maximum magnitude that meets the inventive features that claims mention.