The content of the invention
It is existing to solve it is an object of the invention to provide a kind of multimode terminal and its time synchronizing method in cross form switching
Have that technology call drop probability is high, the problem that measurement capability is low.
The present invention provides a kind of multimode terminal time synchronizing method in cross form switching,
Above-mentioned multimode terminal is calculated under work at present standard and safeguards the timing information of remaining inoperative standard;
When needing to carry out service switching, the timing information of the target standard according to above-mentioned maintenance is by service switching to target
Standard.
Preferably, before above-mentioned all steps, also comprise the following steps:
Above-mentioned multimode terminal carries out cell searching in initialization, obtain first frame header position of subframe of each standard with
First side-play amount of the frame header position of subframe of other standards is simultaneously stored.
Preferably, above-mentioned terminal brings the timing information of remaining inoperative standard into after successful switch to target standard
To work at present standard, continue to calculate and safeguard.
Preferably, above-mentioned timing information includes subframe numbers NTAnd its operation time τT。
Preferably, above-mentioned terminal calculates determining for corresponding inoperative standard when carrier frequency offset is not considered by equation below
When information:
τT=TC×NC+τC-τ0-TT×NT
Wherein, TCRepresent the sub-frame duration of work at present standard, NCThe present sub-frame number of work at present standard is represented,
τCRepresent work at present standard by NC+ 1 subframe falls in NCτ in+1 subframeCMoment, τ0Represent above-mentioned corresponding non-work
Make first side-play amount of the frame header position of subframe of first frame header position of subframe relative to work at present standard of standard,
TTRepresent the sub-frame duration of above-mentioned corresponding inoperative standard.
Preferably, when carrier frequency offset is considered, before above-mentioned terminal calculates the timing information of remaining inoperative standard, also perform
Following operation:
Calculate under work at present standard, band frequency deviation sampling time Ts′;
Calculate according to the above-mentioned sampling time T with frequency deviations1st subframe of the work at present standard of ' sampling is to NC+ 1 son
The τ of frameCThe total time t at momentC。
Preferably, the sampling time T with frequency deviation is calculated by equation belows′:
Ts'=Ts×(1/(1+foffset/fc))≈Ts×(1-foffset/fc)
Wherein, Ts=1/fs, it is the baseband sampling time of work at present standard, fsIt is the baseband sampling of work at present standard
Frequency, fcIt is the working carrier frequency of work at present standard, foffsetIt is the carrier frequency offset of work at present standard.
Preferably, it is above-mentioned according to the sampling time T with frequency deviation if the carrier frequency offset of work at present standard keeps constants′
1st subframe of the work at present standard of sampling is to NCThe τ of+1 subframeCThe total time t at momentCCalculated by equation below:
tC=(TC×NC+τC-τ0)×(1+foffset/fc)
Wherein, TCRepresent the sub-frame duration of work at present standard, NCThe present sub-frame number of work at present standard is represented,
τCRepresent work at present standard by NC+ 1 subframe falls in NCτ in+1 subframeCMoment, τ0Represent above-mentioned corresponding non-work
Make first side-play amount of the frame header position of subframe of first frame header position of subframe relative to work at present standard of standard,
fcIt is the working carrier frequency of work at present standard, foffsetIt is the carrier frequency offset of work at present standard.
Preferably, if the carrier frequency offset of work at present standard changes according to subframe, during above-mentioned sampling according to frequency deviation
Between Ts1st subframe of the work at present standard of ' sampling is to NCThe τ of+1 subframeCThe total time t at momentCBy equation below
Calculate:
Wherein, TCRepresent the sub-frame duration of work at present standard, NCThe present sub-frame number of work at present standard is represented,
τCRepresent work at present standard by NC+ 1 subframe falls in NCτ in+1 subframeCMoment, τ0Represent above-mentioned corresponding non-work
Make first side-play amount of the frame header position of subframe of first frame header position of subframe relative to work at present standard of standard,
fcIt is the working carrier frequency of work at present standard, fOffset, iThe corresponding carrier frequency offset of i-th subframe of work at present standard is represented,Represent the N of work at present standardCThe corresponding carrier frequency offset of+1 subframe.
Preferably, above-mentioned terminal calculates the timing of corresponding inoperative standard by equation below when carrier frequency offset is considered
Information:
τT=tC-TT×NT
Wherein, tCRepresent according to the sampling time T with frequency deviations1st subframe of the work at present standard of ' sampling is to NC+
The τ of 1 subframeCThe total time at moment, TTRepresent the sub-frame duration of above-mentioned corresponding inoperative standard.
The present invention also provides a kind of multimode terminal, including switch unit, also including computing unit,
Above-mentioned computing unit, for being calculated under working form and safeguards the timing information of remaining inoperative standard, above-mentioned
Timing information includes subframe numbers NTAnd its operation time τT;
Above-mentioned switch unit, the timing information of the target standard for being calculated according to above-mentioned computing unit, by business
It is switched to target standard.
Preferably, above-mentioned terminal also includes search unit, for carrying out cell searching in initialization, to obtain each standard
First frame header position of subframe and other standards first initial offset of the frame header position of subframe and store.
Preferably, above-mentioned computing unit includes Time Calculation module and timing computing module,
Above-mentioned Time Calculation module, for calculating the sampling time T with frequency deviations', and calculate according to above-mentioned with frequency deviation
Sampling time Ts1st subframe of the current standard of ' sampling is to NC+ 1 τ of subframeCThe total time t at momentC;
Above-mentioned timing computing module, for calculating and safeguards the timing information of inoperative standard.
Preferably, when carrier frequency offset is considered,
Above-mentioned Time Calculation module calculates the sampling time T with frequency deviation by equation belows′:
Ts'=Ts×(1/(1+foffset/fc))≈Ts×(1-foffset/fc)
Above-mentioned Time Calculation module calculates above-mentioned according to frequency deviation when carrier frequency offset keeps constant by equation below
Sampling time Ts1st subframe of the work at present standard of ' sampling is to NCThe τ of+1 subframeCThe total time t at momentC:
tC=(TC×NC+τC-τ0)×(1+foffset/fc)
Above-mentioned Time Calculation module when carrier frequency offset changes according to subframe, by equation below calculate it is above-mentioned according to band frequently
Inclined sampling time Ts1st subframe of the work at present standard of ' sampling is to NCThe τ of+1 subframeCThe total time t at momentC:
Wherein, Ts=1/fs, it is the baseband sampling time of work at present standard, fsIt is the baseband sampling of work at present standard
Frequency, fcIt is the working carrier frequency of work at present standard, foffsetIt is the carrier frequency offset of work at present standard, TCThe work at present system of expression
The sub-frame duration of formula, τCRepresent work at present standard by NC+ 1 subframe falls in NCτ in+1 subframeCMoment,
τ0Represent first subframe of first frame header position of subframe relative to work at present standard of above-mentioned corresponding inoperative standard
Frame header position side-play amount, fOffset, iThe corresponding carrier frequency offset of i-th subframe of work at present standard is represented,Table
Show the N of work at present standardCThe corresponding carrier frequency offset of+1 subframe.
Preferably, above-mentioned timing computing module calculates corresponding inoperative when carrier frequency offset is not considered by equation below
The timing information of standard:
τT=TC×NC+τC-τ0-TT×NT
And when carrier frequency offset is considered, the timing information of corresponding inoperative standard is calculated by equation below:
τT=tC-TT×NT
Wherein, TCRepresent the sub-frame duration of work at present standard, NCThe present sub-frame number of work at present standard is represented,
τCRepresent work at present standard by NC+ 1 subframe falls in NCτ in+1 subframeCMoment, τ0Represent above-mentioned corresponding non-work
Make first side-play amount of the frame header position of subframe of first frame header position of subframe relative to work at present standard of standard,
TTRepresent the sub-frame duration of above-mentioned corresponding inoperative standard, tCRepresent according to the sampling time T with frequency deviations' sampling it is current
1st subframe of standard is to NC+ 1 τ of subframeCThe total time at moment.
The present invention is calculated and safeguarded in working form to the timing information of remaining inoperative standard, is calculated in real time
Go out the timing position of remaining inoperative standard, when needing to be switched to target standard, switched over the timing information safeguarded, protect
The synchronization of business is demonstrate,proved, and after handover success, the timing information of remaining inoperative standard has been directly brought into work at present standard
Middle to continue to calculate and safeguard, the present invention accelerates the process of switching, improves success rate, ability and the property of service switching and measurement
Energy.
Specific embodiment
In order that the technical problems to be solved by the invention, technical scheme and beneficial effect are clearer, clear, below tie
Drawings and Examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
As shown in figure 3, being the flow of multimode terminal time synchronizing method in cross form switching first embodiment of the present invention
Figure, the present embodiment does not consider that frequency deviation influences, specifically includes following steps:
Step S001:During initialization, multimode terminal carries out cell searching, obtains the frame head position of first subframe of each standard
Put first side-play amount of the frame header position of subframe with other standards and store;
Assuming that multimode terminal has 3 communication standards, respectively A, B, E, then the side-play amount for now obtaining is:The first of A
The frame header position of individual subframe and the first of B side-play amount τ of the frame header position of subframeA-B, first frame header position of subframe of A
With the side-play amount τ of first frame header position of subframe of EA-E, first frame header position of subframe of B and first subframe of E
The side-play amount τ of frame header positionB-E, stored after getting corresponding side-play amount, no matter in which kind of standard work, calculate remaining non-work
When making the timing information of standard, directly take.
Step S002:Under work at present standard, the timing information of remaining inoperative standard is calculated and safeguarded;
Assuming that work at present standard is A, then this step is calculated and safeguards the timing information of B and E.
In the present invention, timing information includes subframe numbers NTAnd its operation time τT。
If the 1st subframe of work at present standard is to NC+ 1 τ of subframeCThe total time at moment is tC, then:
tC=TC×NC+τC-τ0
This step calculates the timing information of inoperative standard by equation below:
τT=TC×NC+τC-τ0-TT×NT=tC-TT×NT
Wherein, in formula,Expression is rounded downwards, TCRepresent the sub-frame duration of work at present standard, NCRepresent current
The present sub-frame number of working form, τCWork at present standard is represented since first subframe, by NC+ 1 subframe falls in NC
τ in+1 subframeCMoment, τ0Represent first frame header position of subframe of above-mentioned corresponding inoperative standard relative to current
First side-play amount of the frame header position of subframe of working form, TTWhen representing that the subframe of above-mentioned corresponding inoperative standard continues
Between.
Timing information NTIt is by NCInoperative standard subframe numbers after individual working form subframe, τTRepresent inoperative standard
In, in NTThe relative position of timing information in+1 subframe.
Step S003:When needing to carry out service switching, the timing information of the target standard according to above-mentioned maintenance is cut
Change;
Assuming that target standard is B, then the timing information computing formula of B is:
τB=TA×NA+τA-τA-B-TB×NB
Wherein, TARepresent the sub-frame duration of A, NARepresent the present sub-frame number of A, τARepresent A by NC+ 1 subframe
Moment, τA-BRepresent first side-play amount of the frame header position of subframe of first frame header position of subframe relative to A of B, TBTable
Show the sub-frame duration of B.
In this step, because target standard timing information, it is known that therefore between can rapidly and accurately completing standard switch, than
Such as, it is switched to the N of BBThe τ of subframeBMoment point.
Step S004:Switch successfully, the timing information of remaining inoperative standard is brought into work at present standard, continue to count
Calculate and safeguard.
After multimode terminal successful switch is to B, B becomes current working form, and multimode terminal original will be safeguarded in A
E timing informations and the timing information of its own be brought into B, and while work in B, continue to calculate and safeguard A's and E
Timing information, in being switched to A or C from B again.By that analogy, when multimode terminal is operated in any standard, dynamic calculation is simultaneously
Safeguard the timing information of other standards.
In terminal practical work process, due to reasons such as temperature change, movement and the stabilities of a system, terminal can be caused
The synchronization of frequency is ensured it is necessary to have frequency lock loop.The essence of frequency lock loop is that terminal receiver is examined according to signal
Survey theoretical, estimate the frequency departure between terminal and work at present standard, by adjusting the local crystal oscillator of terminal, reach adjustment
Terminal local carrier frequency, so as to eliminate frequency deviation.But the adjustment of crystal oscillator, can cause the reference frequency of clock signal to change, so as to influence
Time synchronization information.Frequency lock loop is more small to the synchronous impact of work at present standard, and terminal can easily disappear very much
Influence except frequency deviation to the timing information of work at present standard, but due to time additive effect, the meter of the timing information of cross-mode
Calculating can be subject to large effect, and this is accomplished by being adjusted by the timing information of remaining inoperative standard of terminal, to calibrate
The location information of inoperative standard.
As shown in figure 4, being the flow of multimode terminal time synchronizing method in cross form switching second embodiment of the present invention
Figure, in the present embodiment, it is assumed that carrier frequency offset changes according to subframe, specifically includes following steps:
Step S101:During initialization, multimode terminal carries out cell searching, obtains the frame head position of first subframe of each standard
Put first side-play amount of the frame header position of subframe with other standards and store;
Also assume that multimode terminal has 3 communication standards, respectively A, B, E.
Step S102:Under work at present standard, the sampling time T with frequency deviation is calculateds′;
This step calculates the sampling time T with frequency deviation by equation belows′:
Ts'=Ts×(1/(1+foffset/fc))≈Ts×(1-foffset/fc)
Wherein, Ts=1/fs, it is the baseband sampling time of work at present standard, fsIt is the baseband sampling of work at present standard
Frequency, fcIt is the working carrier frequency of work at present standard, foffsetIt is the carrier frequency offset of work at present standard, usually, foffsetPhase
To fcMeeting very little, above formula is approximately set up.
Step S103:Calculate according to the above-mentioned sampling time T with frequency deviationsThe work at present standard of ' sampling is from the 1st subframe
To NC+ 1 τ of subframeCThe total time t at momentC;
Because in the present embodiment, the carrier frequency offset f of work at present standardoffsetChange according to subframe, therefore this step is by as follows
Formula is calculated according to the above-mentioned sampling time T with frequency deviationsThe work at present standard of ' sampling is from the 1st subframe to NC+ 1 subframe
τCThe total time t at momentC:
Wherein, TCRepresent the sub-frame duration of work at present standard, fcIt is the working carrier frequency of work at present standard, τCTable
Show work at present standard by NC+ 1 subframe falls in NCτ in+1 subframeCMoment, τ0Represent above-mentioned corresponding inoperative
First frame header position of subframe of standard relative to work at present standard first side-play amount of the frame header position of subframe,
fOffset, iThe corresponding carrier frequency offset of i-th subframe of work at present standard is represented,Represent the N of work at present standardC+
The corresponding carrier frequency offset of 1 subframe.
In other embodiments, if the carrier frequency offset f of work at present standardoffsetKeep constant, then calculate according to above-mentioned band
The sampling time T of frequency deviationsThe work at present standard of ' sampling is from the 1st subframe to NC+ 1 τ of subframeCThe total time at moment
tCFormula be:
tC=(TC×NC+τC-τ0)×(1+foffset/fc) (2)
Step S104:According to the result of calculation of step S103, the timing information of corresponding inoperative standard is calculated and safeguarded;
This step calculates timing information by equation below:
τT=tC-TT×NT
Wherein, TTRepresent the sub-frame duration of corresponding inoperative standard.
Assuming that work at present standard is A, if corresponding inoperative standard is B, above formula is:
τB=tA-TB×NB
Wherein, TBRepresent the sub-frame duration of B standards.
If corresponding working form is E, above formula is:
τE=tA-TE×NE
Wherein, TERepresent the sub-frame duration of E standards.
Step S105:When needing to carry out service switching, the timing information of the target standard according to above-mentioned maintenance is cut
Change;
Step S106:Switch successfully, the timing information of remaining inoperative standard is brought into work at present standard, continue to count
Calculate and safeguard.
Below by taking dual-mode terminal as an example, it is assumed that its communication standard is respectively the son of TD-SCDMA and GSM, TD-SCDMA standard
Frame time is 5ms, and the subframe time of GSM is 4.615ms, and work at present standard is TD-SCDMA, then the frame header position of GSM subframes
It is τ relative to the side-play amount of the frame header position of TD-SCDMA subframes0, τ0In terminal initialization, obtained by searching for cell, warp
Cross NTD-SCDMAτ in+1 TD-SCDMA subframeTD-SCDMAAfter the ms moment, in working form, if not considering carrier frequency offset,
The then formula in step S002, the location information of GSM standards, i.e. NGSMThe τ of+1 subframeGSMMoment point, is calculated as follows:
τGSM=TTD-SCDMA×NTD-SCDMA+τTD-SCDMA-τ0-TGSM×NGSM
As shown in figure 5, be that relation schematic diagram is synchronously calculated in TD-SCDMA/GSM dual-mode terminals, above-mentioned each parameters relationship ginseng
As shown in accompanying drawing 5.
Due to frequency deviation influence, above-mentioned dual-mode terminal worked in TD-SCDMA standards a period of time after, it is necessary to be switched to GSM
During standard, according to the timing information that TD-SCDMA standards are safeguarded, now the timing information N of GSM standardsGSMAnd τGSMNeed calibration.
If fDBBIt is the base band frequency deviation of TD-SCDMA standards, fsIt is the baseband sampling frequency of TD-SCDMA standards, fcIt is TD-
The working carrier frequency of SCDMA standards, foffsetIt is the carrier frequency offset of TD-SCDMA standards, Ts=1/fs, it is the base of TD-SCDAM standards
Band the sampling time, then carrier frequency offset fracture to base band frequency deviation and be:
fDBB=(fs/fc)×foffset
The now sampling time T with frequency deviations′:
Ts(the f of '=1/s+fDBB)=Ts×(1/(1+foffset/fc))≈Ts×(1-foffset/fc)
Because generally, carrier frequency offset foffsetMuch smaller than working carrier frequency fc(in such as 3G, working carrier frequency fcFor 2GHz or
1GHz or so, and carrier frequency offset foffsetIt is general maximum no more than 10kHz, typically in hundreds of Hz or tens Hz), therefore make
It is above-mentioned approximate.
Baseband sampling time and the difference in the sampling time with frequency deviation:
ΔTs=Ts-Ts'=Ts×foffset/fc
The frequency deviation of TD-SCDMA standards is shown in Table 1 with the relation of time sampling deviation.
Table 1
According to table 1, if the frequency deviation of terminal receiver is 5kHz, 62.5 subframe times are often crossed, it is necessary to adjust a code
The piece time realizes sample-synchronous, and actual synchronization adjustment is adjusted according to 1/8 chip, that is to say, that often cross 7.8125
Subframe is, it is necessary to adjust 1/8 chip.
If carrier frequency offset foffsetFrom the 1st TD-SCDMA subframe to NTD-SCDMAIn+1 TD-SCDMA subframe
τTD-SCDMAThe ms moment keeps constant, then according to the sampling time T with frequency deviations' sampling from the 1st TD-SCDMA subframe to the
NTD-SCDMAτ in+1 TD-SCDMA subframeTD-SCDMAThe total time t at ms momentTD-SCDMANo longer it is:
TTD-SCDMA×NTD-SCDMA+τTD-SCDMA-τ0
But:
tTD-SCDMA=(TTD-SCDMA×NTD-SCDMA+τTD-SCDMA-τ0)×(1+foffset/fc)
If carrier frequency offset foffsetFrom starting just to change according to subframe, then according to the sampling time T with frequency deviations' sampling from
1st TD-SCDMA subframe is to NTD-SCDMAτ in+1 TD-SCDMA subframeTD-SCDMAmsThe total time t at momentTD-SCDMAShould
For:
Now, the timing information of the GSM for calculating is:
τGSM=tTD-SCDMA-TGSM×NGSM
As shown in fig. 6, being the graph of a relation of frequency deviation and timing information, in figure, TX axles represent stringent clock, and RX axles indicate frequency
Clock partially after calibration.
As shown in fig. 7, be multimode terminal theory diagram of the present invention, including search unit 01, computing unit 02, switch unit
03, wherein,
Search unit 01, for carrying out cell searching in terminal initialization, to obtain first subframe of each standard
First initial offset of the frame header position of subframe of frame header position and other standards is simultaneously stored;
Computing unit 02, for being calculated under working form and safeguards the timing information of remaining inoperative standard;
Computing unit 02 includes timing computing module 21 and time computing module 22, timing computing module 21, for basis
Formula in step S002 is calculated and adjusts the timing information of inoperative standard;Time Calculation module 22, for according to step
Formula in S102 calculates the sampling time T with frequency deviations', and considering that carrier frequency offset and carrier frequency offset change according to subframe
When, calculated according to the sampling time T with frequency deviation according to the formula (1) in step S103sThe 1st of the work at present standard of ' sampling
Individual subframe is to NC+ 1 τ of subframeCThe total time t at momentC, or considering that carrier frequency offset but carrier frequency offset keep constant
When, calculated according to the sampling time T with frequency deviation according to the formula (2) in step S103sThe 1st of the work at present standard of ' sampling
Individual subframe is to NC+ 1 τ of subframeCThe total time t at momentC;
Switch unit 03, the timing information for calculating the 02 target standard for obtaining according to computing unit, by service switching
To target standard.
Described above has shown and described the preferred embodiments of the present invention, but as previously described, it should be understood that the present invention is not
Form disclosed herein is confined to, the exclusion to other embodiment is not to be taken as, and can be used for various other combinations, modification
And environment, and can be carried out by the technology or knowledge of above-mentioned teaching or association area in invention contemplated scope described herein
Change.And the change and change that those skilled in the art are carried out do not depart from the spirit and scope of the present invention, then all should be in institute of the present invention
In attached scope of the claims.