Summary of the invention
The problem that the present invention solves provides a kind of multi-card mobile terminal and method for synchronous and device, reduces cost and the power consumption of multi-card mobile terminal.
For addressing the above problem, the invention provides a kind of method for synchronous of multi-card mobile terminal, wherein, many cards comprise standby at least at the first terminal card of first network residential quarter, described method for synchronous comprises the steps:
Determine the relative synchronizing information of the second terminal card, described relative synchronizing information be associated with the resident first network residential quarter of described first terminal card the first synchronizing information and with the second synchronizing information of the synchronous second network residential quarter of described the second terminal card, described the second terminal card is the terminal card that is in holding state;
The 3rd synchronizing information based on the resident first network residential quarter of the relative synchronizing information of described the second terminal card and the described first terminal card that receives keeps the synchronous of described the second terminal card and described second network residential quarter.
Alternatively, the relative synchronizing information of determining described the second terminal card comprises the steps:
Obtain the first synchronizing information of the resident first network residential quarter of described first terminal card;
Utilize the gap of the paging cycle of described first terminal card that described the second terminal card resident network cell and adjacent area are searched for and measured, determine the second network residential quarter synchronous with described the second terminal card;
Obtain the second synchronizing information with the synchronous second network residential quarter of described the second terminal card;
Determine the relative synchronizing information of described the second terminal card according to the first synchronizing information of the resident first network residential quarter of described first terminal card and with the second synchronizing information of the synchronous second network residential quarter of described the second terminal card.
Alternatively, described the first synchronizing information comprises the first broadcasting frame number that described first terminal card receives when keeping synchronous with described first network residential quarter and puts with the first start bit of frame corresponding to described the first broadcasting frame number;
Described the second synchronizing information comprise the second broadcasting frame number that described the second terminal card receives when keeping synchronous with described second network residential quarter and with the second original position of frame corresponding to described the second broadcasting frame number;
The relative synchronizing information of described the second terminal card comprises described the first broadcasting frame number, the second broadcasting frame number, and the side-play amount offset1 that puts with respect to described first start bit of described the second original position.
Alternatively, described the 3rd synchronizing information comprise the 3rd broadcasting frame number that described first terminal card receives when keeping synchronous with described first network residential quarter and with the 3rd original position of the corresponding frame of described the 3rd broadcasting frame number;
The 3rd synchronizing information based on the resident first network residential quarter of the relative synchronizing information of described the second terminal card and the described first terminal card that receives keeps comprising synchronously of described the second terminal card and described second network residential quarter:
According to the 3rd broadcasting frame number, determine that with the side-play amount that the 3rd original position and described second original position of described the 3rd broadcasting frame number corresponding frame are put with respect to described first start bit fourth beginning position that the 4th synchronizing information of described the second terminal card and described second network residential quarter, described the 4th synchronizing information comprise the 4th broadcasting frame number, the 4th broadcasting frame number correspondence frame is with respect to the 3rd side-play amount of broadcasting the 3rd original position of frame number correspondence frame.
Alternatively, described first network residential quarter is the TD-SCDMA network cell, and described second network residential quarter is the GSM network cell,
If described the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ less than 12, then described the 4th broadcasting frame number G
2=(T
2-T
1) * L
t/ L
g+ G
1The 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The side-play amount offset of the 3rd original position of corresponding frame
2=L
g-((T
2-T
1) * L
t-offset
1) mod (L
g)), wherein, G
1Be the second broadcasting frame number, L
tBe the frame length of TD-SCDMA, L
gFrame length for GSM;
If described the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ by more than 12, then described the 4th broadcasting frame number G
2=(T
2-T
n) * L
t/ L
g+ G
nThe 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The side-play amount offset of the 3rd original position of corresponding frame
2=L
g-((T
2-T
n) * L
t-offset
1) mod (L
g)), T wherein
nBe T
1The be separated by broadcasting frame number of TD-SCDMA frame of 12*N frame of frame, G
nBe G
1The be separated by broadcasting frame number of GSM frame of 13*N frame of frame, L
tBe the frame length of TD-SCDMA, L
gBe the frame length of GSM, N=(T
2-T
1)/12, N is natural number;
If described the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ and equal 12*N, then described the 4th broadcasting frame number G
2=G
1+ 13*N, the 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The side-play amount offset of the 3rd original position of corresponding frame
2=offset
1, wherein, G
1Be the second broadcasting frame number, N=(T
2-T
1)/12, N is natural number.Alternatively, also comprise step: based on the variation of described the first synchronizing information and/or described the second synchronizing information, upgrade the relative synchronizing information of described the second terminal card.
Alternatively, based on the variation of described the first synchronizing information and/or described the second synchronizing information, the relative synchronizing information of upgrading described the second terminal card comprises:
Putting the deviate of self adjusting when described first start bit is Δ offset
1The time, the side-play amount offset that puts with respect to described first start bit of described the second original position then
1'=offset
1+ Δ offset
1
The deviate of adjusting when described the second original position self is Δ offset
2The time, the side-play amount offset that puts with respect to described first start bit of described the second original position then
1'=offset
1+ Δ offset
2Alternatively, based on the variation of described the first synchronizing information and/or described the second synchronizing information, the relative synchronizing information of upgrading described the second terminal card also comprises: if the side-play amount offset that described the second original position is put with respect to described first start bit
1' when exceeding the frame length of described second network residential quarter, described side-play amount offset then
1"=offset
1'-frame length, and the second broadcasting frame number adds 1;
If described the second original position is put side-play amount offset with respect to described first start bit
1' be negative value, described side-play amount offset then
1"=frame length+offset
1', and the second broadcasting frame number subtracts 1.
Alternatively, also comprise step: judge whether synchronization failure of described the second terminal card, if described the second terminal card synchronization failure then utilizes the gap of the paging cycle of described first terminal card that described the second terminal card is re-started synchronously.
Alternatively, the basis for estimation of described the second terminal card synchronization failure comprise following any: 1) decoding synchronous channel SCH, surpass continuously the first threshold value if separate wrong number of times, then determine synchronization failure of described the second terminal card; 2) decode broadcast information BCCH surpasses the second threshold value continuously if separate wrong number of times, then determines synchronization failure of described the second terminal card; 3) decoding paging information PCH surpasses the 3rd threshold value continuously if separate wrong number of times, then determines synchronization failure of described the second terminal card.
Alternatively, described the first threshold value, the second threshold value and the 3rd threshold value are 3 times or 4 times.
Alternatively, described first network residential quarter is GSM network cell or TD-SCDMA network cell or WCDMA network cell.
Alternatively, described second network residential quarter is GSM network cell or TD-SCDMA network cell or WCDMA network cell.
A kind of synchronizer of multi-card mobile terminal, wherein, many cards comprise standby at least at the first terminal card of first network residential quarter, described synchronizer comprises:
The information determining unit, it is used for determining the relative synchronizing information of the second terminal card, described relative synchronizing information be associated with the resident first network residential quarter of described first terminal card the first synchronizing information and with the second synchronizing information of the synchronous second network residential quarter of described the second terminal card, described the second terminal card is the terminal card that is in holding state;
Synchronous performance element, it is used for the relative synchronizing information of the second terminal card of determining based on described information determining unit and the 3rd synchronizing information of the first network residential quarter that the described first terminal card that receives is resident keeps the synchronous of described the second terminal card and described second network residential quarter.
Alternatively, described information determining unit comprises:
The first acquiring unit, it is used for obtaining the synchronizing information of the resident first network residential quarter of described first terminal card;
The first determining unit, its gap for the paging cycle that utilizes described first terminal card is searched for and is measured described the second terminal card resident network cell and adjacent area, determines the second network residential quarter synchronous with described the second terminal card;
Second acquisition unit, it is used for obtaining the synchronizing information with the synchronous second network residential quarter of described the second terminal card;
The second determining unit, it is used for determining the relative synchronizing information of described the second terminal card according to the first synchronizing information of the resident first network residential quarter of described first terminal card and with the second synchronizing information of the synchronous second network residential quarter of described the second terminal card.
Alternatively, described the first synchronizing information comprises the first broadcasting frame number that described first terminal card receives when keeping synchronous with described first network residential quarter and puts with the first start bit of frame corresponding to described the first broadcasting frame number;
Described the second synchronizing information comprise the second broadcasting frame number that described the second terminal card receives when keeping synchronous with described second network residential quarter and with the second original position of frame corresponding to described the second broadcasting frame number;
The relative synchronizing information of described the second terminal card comprises described the first broadcasting frame number, the second broadcasting frame number, and the side-play amount offset1 that puts with respect to described first start bit of described the second original position.
Alternatively, described the 3rd synchronizing information comprise the 3rd broadcasting frame number that described first terminal card receives when keeping synchronous with described first network residential quarter and with the 3rd original position of the corresponding frame of described the 3rd broadcasting frame number;
Described synchronous performance element is used for according to the 3rd broadcasting frame number, determines that with the side-play amount that the 3rd original position and described second original position of the corresponding frame of described the 3rd broadcasting frame number are put with respect to described first start bit fourth beginning position that the 4th synchronizing information of described the second terminal card and described second network residential quarter, described the 4th synchronizing information comprise the 4th broadcasting frame number, the 4th broadcasting frame number correspondence frame is with respect to the 3rd side-play amount of broadcasting the 3rd original position of frame number correspondence frame.
Alternatively, described first network residential quarter is the TD-SCDMA network cell, and described second network residential quarter is the GSM network cell;
If described the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ less than 12, then described the 4th broadcasting frame number G
2=(T
2-T
1) * L
t/ L
g+ G
1The 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The side-play amount offset of the 3rd original position of corresponding frame
2=L
g-((T
2-T
1) * L
t-offset
1) mod (L
g)), wherein, G
1Be the second broadcasting frame number, L
tBe the frame length of TD-SCDMA, L
gFrame length for GSM;
If described the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ by more than 12, then described the 4th broadcasting frame number G
2=(T
2-T
n) * L
t/ L
g+ G
nThe 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The side-play amount offset of the 3rd original position of corresponding frame
2=Lg
-((T
2-T
n) * L
t-offset
1) mod (L
g)), T wherein
nBe T
1The be separated by broadcasting frame number of TD-SCDMA frame of 12*N frame of frame, G
nBe G
1The be separated by broadcasting frame number of GSM frame of 13*N frame of frame, L
tBe the frame length of TD-SCDMA, L
gBe the frame length of GSM, N=(T
2-T
1)/12, N is natural number;
If described the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ and equal 12*N, then described the 4th broadcasting frame number G
2=G
1+ 13*N, the 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The side-play amount offset of the 3rd original position of corresponding frame
2=offset
1, wherein, G
1Be the second broadcasting frame number, N=(T
2-T
1)/12, N is natural number.
Alternatively, also comprise information updating unit, it is used for the variation based on described the first synchronizing information and/or described the second synchronizing information, upgrades the relative synchronizing information of described the second terminal card.
Alternatively, described information updating unit comprises: the first updating block, it is used for putting the deviate of self adjusting when described first start bit is Δ offset
1The time, the side-play amount offset that puts with respect to described first start bit of described the second original position then
1'=offset
1+ Δ offset
1
The second updating block, its deviate that is used for adjusting when described the second original position self is Δ offset
2The time, the side-play amount offset that puts with respect to described first start bit of described the second original position then
1'=offset
1+ Δ offset
2
Alternatively, described information updating unit also comprises: the first processing unit that is connected with the second updating block with described the first updating block respectively, if it is used for side-play amount offset that described the second original position is put with respect to described first start bit
1' when exceeding the frame length of described second network residential quarter, described side-play amount offset then
1"=offset
1'-frame length, the second broadcasting frame number adds 1 simultaneously;
The second processing unit that is connected with the second updating block with described the first updating block is respectively put side-play amount offset if it is used for described the second original position with respect to described first start bit
1' be negative value, described side-play amount offset then
1"=frame length+offset
1', the second broadcasting frame number subtracts 1 simultaneously.
Alternatively, also comprise respectively the 3rd processing unit that is connected with described synchronous performance element with described information determining unit, it is used for judging whether synchronization failure of described the second terminal card, if described the second terminal card synchronization failure, then control the relative synchronizing information that described information determining unit redefines described the second terminal card, and control described synchronous performance element based on the relative synchronizing information of described the second terminal card keep described the second terminal card and described second network residential quarter synchronously.
Alternatively, the basis for estimation of described the second terminal card synchronization failure comprise following any: 1) decoding synchronous channel SCH, surpass continuously the first threshold value if separate wrong number of times, then determine synchronization failure of described the second terminal card; 2) decode broadcast information BCCH surpasses the second threshold value continuously if separate wrong number of times, then determines synchronization failure of described the second terminal card; 3) decoding paging information PCH surpasses the 3rd threshold value continuously if separate wrong number of times, then determines synchronization failure of described the second terminal card.
Alternatively, described the first threshold value, the second threshold value and the 3rd threshold value are 3 times or 4 times.
Alternatively, described first network residential quarter is GSM network cell or TD-SCDMA network cell or WCDMA network cell.
Alternatively, described second network residential quarter is GSM network cell or TD-SCDMA network cell or WCDMA network cell.
The embodiment of the invention also provides a kind of portable terminal that comprises above-mentioned synchronizer.
Compared with prior art, the embodiment of the invention has the following advantages: in multi-card mobile terminal, safeguard that the first terminal card network cell resident with it keeps synchronously and holding state, then the synchronous and holding state of second network residential quarter maintenance by the second terminal card and first terminal card being kept realize that synchronously the second terminal card is resident with it and contiguous, wherein said the second terminal card are that in addition other of first terminal card are in the terminal card of holding state.By so relative synchronization policy, follow-up multi-card mobile terminal is done when synchronous, only need to determine described first terminal card can keep synchronously other terminal cards that are in holding state synchronously, thereby reduce cost and the power consumption of multi-card mobile terminal.
Embodiment
The inventor finds it is by to two terminal cards maintain synchronization respectively in existing multi-card mobile terminal (take the dual-mode dual-card dual-standby terminal as example), thereby guarantees that mobile phone can while standby in two network schemers.The synchro system of two terminal cards is fully independent in this scheme, and parallel like this processing scheme implements more complicated, even the mobile phone that has uses two baseband processing chips that two cards are controlled respectively, thereby has increased cost and the power consumption of multi-card mobile terminal.Need to prove that above-mentioned terminal card comprises SIM card (subscriber identification module, Subscriber Identity Module) or usim card (global subscriber identification module, Universal Subscriber Identity Module).
For the problems referred to above, the inventor provide a kind of relatively synchronous strategy make many terminal cards in the standby process respectively the network cell resident with it keep synchronously.Particularly, first resident with it network cell of first terminal card in the multi-card mobile terminal is kept synchronously and holding state, then by the second terminal card and first terminal card are kept realizing synchronously that resident with it and the contiguous network cell of the second terminal card keeps synchronously and holding state, wherein said the second terminal card is except the terminal card that is in holding state in the multi-card mobile terminal.By so relative synchronization policy, if guarantee the first terminal card can keep synchronously the second terminal card synchronously, thereby reduce cost and the power consumption of multi-card mobile terminal.
Need to prove, in an embodiment of the present invention, multi-card mobile terminal can be dual-mode dual-card dual-standby terminal or bimodulus Multi-card multi-standby terminal, has frequently chip of injection in this portable terminal, be that described portable terminal only has a pair of radio frequency transceiver, can only be operated in a kind of frequency range under any time; Single-baseband processing chip, namely described portable terminal any time only processes the data that receive under a kind of network schemer.In addition, in an embodiment of the present invention, the terminal card of described multi-card mobile terminal is to describe as an example of the TD-SCDMA/GSM double-mode card example, and double card is in holding state simultaneously.But in actual applications, described multi-card mobile terminal is not limited to above-mentioned two kinds of network schemers.For example, double card also can be to be associated with heterogeneous networks pattern WCDMA (Wideband Code Division Multiple Access (WCDMA), Wideband Code Division Multiple Access)/GSM double-mode card, TD-SCDMA/WCDMA double-mode card etc.; Again for example, double card also can be the method for synchronous of the portable terminal that can provide by the embodiment of the invention such as the GSM single mode card that is associated with a kind of network schemer, TD-SCDMA single mode card realize double card when holding state respectively resident with it and/or contiguous network cell keep synchronously.
For above-mentioned purpose of the present invention, feature and advantage can more be become apparent, below in conjunction with accompanying drawing the specific embodiment of the present invention is described in detail.
What reference was shown in Figure 1 is the schematic flow sheet of the method for synchronous of the described a kind of multi-card mobile terminal of the embodiment of the invention.Particularly, wherein said multi-card mobile terminal comprises standby at least at the first terminal card of first network residential quarter, and the second terminal card is that outer other of first terminal are in the terminal card of holding state, and described the second terminal card standby is in the second network residential quarter.Need to prove that for convenience of description, in an embodiment of the present invention, described first network residential quarter is that TD-SCDMA network cell, described second network residential quarter are the GSM network cell, but in actual applications, is not limited to above-mentioned two kinds of network cells.
At first, execution in step S1: determine the relative synchronizing information of the second terminal card, described relative synchronizing information be associated with the resident first network residential quarter of described first terminal card the first synchronizing information and with the second synchronizing information of the synchronous second network residential quarter of described the second terminal card.
Particularly, described the first synchronizing information comprises the first broadcasting frame number that described first terminal card receives when keeping synchronous with described first network residential quarter and puts with the first start bit of frame corresponding to described the first broadcasting frame number.Described the second synchronizing information comprise the second broadcasting frame number that described the second terminal card receives when keeping synchronous with described second network residential quarter and with the second original position of frame corresponding to described the second broadcasting frame number.Wherein, in the present embodiment, (decoding broadcast channel BCCH (Broadcast Control Channel in the broadcast that described the first broadcasting frame number can send by the base station that receives the first network residential quarter, Broadcast Control Channel)) acquire, and SCH message and the described SCH message of decoding that described the second broadcasting frame number can send by the synchronous channel SCH (synchronizing channel, Synchronization Channel) that receives the second network residential quarter acquire; Further, owing to can determine described the first broadcasting frame number and described the second broadcasting frame number according to said process, therefore show that the broadcast channel achieve frame of described first terminal card and described first network residential quarter is synchronous, the broadcast channel achieve frame of described the second terminal card and described second network residential quarter is synchronous, and so described first start bit is put with the second original position and just can be determined.Further, the relative synchronizing information of described the second terminal card comprises the side-play amount that described the first broadcasting frame number, the second broadcasting frame number and described the second original position are put with respect to described first start bit.
Then, execution in step S2: the 3rd synchronizing information based on the resident first network residential quarter of relative synchronizing information and the described first terminal card that receives of described the second terminal card keeps the synchronous of described the second terminal card and described second network residential quarter.
Particularly, the implementation process of this step is when the follow-up first terminal card of keeping multi-card mobile terminal and the second terminal synchronizes, only needs the relative synchronizing information of described the second terminal card of determining according to the 3rd synchronizing information that receives the resident first network of described first terminal card residential quarter and above-mentioned steps S2 to get final product.Wherein said the 3rd synchronizing information comprise the 3rd broadcasting frame number that described first terminal card receives when keeping synchronous with described first network residential quarter and with the 3rd original position of the corresponding frame of described the 3rd broadcasting frame number.
What further, reference was shown in Figure 2 is the schematic flow sheet that the present invention determines the relative synchronizing information of described the second terminal card.
At first, execution in step S11: the first synchronizing information of obtaining the resident first network residential quarter of described first terminal card.Particularly, described first terminal card is in holding state, and in paging cycle, the radio frequency chip in the portable terminal will receive the synchronizing information (i.e. the first synchronizing information) of sending from the first network cell base station.Wherein, described the first synchronizing information comprises the first broadcasting frame number and puts with the first start bit of the corresponding frame of described the first broadcasting frame number that described first start bit is put the original position of the TS0 time slot that is described the first broadcast frame.
Then, execution in step S12: utilize the gap of the paging cycle of described first terminal card that described the second terminal card resident network cell and adjacent area are searched for and measured, determine the second network residential quarter synchronous with described the second terminal card.Particularly, usually in the paging cycle of first terminal card, only need part-time to come paging receiving information, and in the gap of paging cycle, usually radio frequency chip and the baseband processing chip of portable terminal all are in idle condition, can search for and measure the second terminal card resident network cell and adjacent area in this section free time.The network cell of considering described the second terminal card may gravity treatment, therefore need to search for and measure the current resident network cell of the second terminal card and contiguous residential quarter thereof, determine to be fit to the second network residential quarter of the resident or gravity treatment of the second terminal card, the second network residential quarter can have a plurality of, namely may have a plurality of network cells that need to be synchronous with the second terminal card.
Particularly, described to the resident network cell of the second terminal card with the adjacent area is searched for and measurement comprises following process: described first terminal card and the second terminal card all are in holding state, and portable terminal is in the resident first network residential quarter of first terminal card; Paging cycle gap at described first terminal card, the radio frequency chip of portable terminal will receive the signal that send the base station of the resident and/or contiguous network cell of described the second terminal card, and by baseband processing chip received signal strength (RSSI, Received Signal Strength Indication) to the received signal according to from sorting to weak by force; Set described received signal strength threshold value (for example ,-90dB~-95dB), and definite received signal strength satisfy (more than or equal to) number of the network cell of described threshold value, thereby determine to do synchronous all second network residential quarters.
Then, execution in step S13: obtain the second synchronizing information with the synchronous second network residential quarter of described the second terminal card.Particularly, the second network residential quarter that the needs of determining according to above-mentioned steps S12 and described the second terminal card are synchronous, obtain respectively the second synchronizing information of described the second terminal card and second network residential quarter, wherein said the second synchronizing information comprises the second original position of the second broadcasting frame number and the corresponding frame of described the second broadcasting frame number.
Then, execution in step S14: the relative synchronizing information of determining described the second terminal card according to the second synchronizing information of the synchronous second network residential quarter of the first synchronizing information of the resident first network residential quarter of described first terminal card and described the second terminal card.
Particularly, as shown in Figure 3, the first synchronizing information of the first network residential quarter that described first terminal card is resident comprises that the first start bit of the first broadcasting frame number and the corresponding frame 1 of described the first broadcasting frame number puts TS01; The second synchronizing information of the second network residential quarter that described the second terminal card is synchronous comprises the second original position TS02 of the second broadcasting frame number and frame 2 corresponding to described the second broadcasting frame number.Can determine the side-play amount offset1 that described the second original position is put with respect to described first start bit according to above-mentioned information.
In embodiments of the present invention, the resident first network of described first terminal card residential quarter (TD-SCDMA network cell) is also synchronous with the maintenance of described first network residential quarter, determines the first synchronizing information of described first terminal card; Described the second terminal card is relative with the first terminal card synchronous, and resident with it and/or contiguous second network residential quarter (GSM network cell) keeps synchronously, determine the second synchronizing information of described the second terminal card, and determine the relative synchronizing information of described first terminal card and the second terminal card according to described the first synchronizing information and the second synchronizing information.Wherein, described relative synchronizing information comprises that the first start bit of the second broadcasting frame number in first in the first synchronizing information broadcasting frame number, the second synchronizing information and the corresponding frame of described the first broadcasting frame number puts the side-play amount offset1 with the second original position of the corresponding frame of described the second broadcasting frame number.
Further, according to described relative synchronizing information, in subsequent synchronization processes, as long as determining described first terminal card and described first network residential quarter keeps synchronously, can determine the 4th synchronizing information of described the second terminal card and described second network residential quarter, be execution in step S2, described the 4th synchronizing information comprises that fourth beginning position of the 4th broadcasting frame number, the corresponding frame of the 4th broadcasting frame number is with respect to the side-play amount of the 3rd original position of the corresponding frame of the 3rd broadcasting frame number.
Particularly, with reference to figure 4 and the schematic diagram of keeping the relative synchronous specific embodiment with the first terminal card of the second terminal card of the present invention shown in Figure 5.As well known to those skilled in the art, because the frame length L of TD-SCDMA network cell
tFrame length L with the GSM network cell
gFollowing relation: L is arranged
t* 12=L
g* 13, i.e. G
1Frame (GSM frame) and T
1Relative displacement and the G of frame (TD-SCDMA frame)
14(with G
113 GSM frames in interval between the frame) frame and T
13Frame is (with T
112 TD-SCDMA frames in interval between the frame) relative displacement is identical.In other words, from T
1After frame begins 12 TD-SCDMA frames, this moment GSM frame (G
14Frame) with TD-SCDMA frame (T
13Frame) relative position returns to again G
1Frame and T
1Frame relative position constantly.Therefore, keep that described the second terminal card is relative with the first terminal card can be divided into following three kinds of situations synchronously.
The first situation: as shown in Figure 4 be in first network residential quarter (TD-SCDMA network cell) less than the time interval of 12 TD-SCDMA frame lengths in described the second terminal card is made synchronously i.e. the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ less than 12.
Particularly, the frame length of supposing described TD-SCDMA network cell is L
t(common L
t=5ms), the frame length of second network residential quarter (GSM network cell) is L
g(common L
g=60/13ms).
Determine that according to Fig. 2 is described the method for the relative synchronizing information of the second terminal card can obtain at T
1Image duration, described the second terminal card is the first broadcasting frame number T at the GSM network cell with respect to the synchronizing information (being relative synchronizing information) of TD-SCDMA network cell
1, the second broadcasting frame number G
1, the second broadcasting frame number G
1The second original position of corresponding frame is with respect to the first broadcasting frame number T
1The side-play amount that the first start bit of corresponding frame is put is offset
1
So, at T
2Image duration, described the second terminal card is as follows with respect to the account form of the 4th synchronizing information (in fact also can be called relative synchronizing information) of TD-SCDMA network cell at the GSM network cell:
In the time of synchronously, the 4th broadcasting frame number G
2=(T
2-T
1) * L
t/ L
g+ G
1(wherein "/" is for dividing exactly computing), wherein, the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ less than 12.
The 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The side-play amount offset of the 3rd original position of corresponding frame
2=L
g-((T
2-T
1) * L
t-offset
1) mod (L
g)).
Suppose at adjacent two frames of TD-SCDMA described the second terminal card to be done synchronously, then can be calculated T by top computing formula
2=T
1+ 1, L
t/ L
g=1, G
2=G
1+ 1, offset
2=L
g-(L
t-offset
1).
Second case: as shown in Figure 5 be in first network residential quarter (TD-SCDMA network cell), described the second terminal card to be done synchronously in greater than the time interval of 12 TD-SCDMA frame lengths, i.e. the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ by more than 12.
Particularly, at first, at T
1Image duration, described the second terminal card is the first broadcasting frame number T at the GSM network cell with respect to the synchronizing information (being relative synchronizing information) of TD-SCDMA network cell
1, the second broadcasting frame number G
1, the second broadcasting frame number G
1The second original position of corresponding frame is with respect to the first broadcast frame T
1The side-play amount that the first start bit of corresponding frame is put is offset
1
Further, here can be T
1Frame and T
2Time between the frame is divided into two parts, at first calculates by T
1Frame is to T
2Middle (the L of being separated by of frame
t* 12) the number N of frame length, i.e. N=(T
2-T
1)/12, T
1Be the first broadcasting frame number, T
2Be the 3rd broadcasting frame number, N is natural number.
Then, suppose and T
1The be separated by broadcasting frame number of TD-SCDMA frame of 12*N frame of frame is T
n, therefore at T
nImage duration, the sync bit of the relative TD-SCDMA frame of GSM frame (side-play amount of original position) still is offset
1, and T
nFrame and T
2The time interval between the frame is less than the frame length of 12 TD-SCDMA frames.
Therefore, can obtain T
nImage duration, described the second terminal card was as follows with respect to the synchronizing information of TD-SCDMA network cell at the GSM network cell:
In the time of synchronously, broadcasting frame number G
n=G1+13*N, broadcasting frame number T
n=T
1+ 12*N, broadcasting frame number G
nThe original position of corresponding frame is with respect to broadcasting frame number T
nThe side-play amount offset of the original position of corresponding frame
n=offset
1
Then, at T
2Image duration, described the second terminal card can obtain according to the described method of similar above-mentioned the first situation in the 4th synchronizing information (being relative synchronizing information) of GSM network cell with respect to the TD-SCDMA network cell:
The 4th broadcasting frame number G
2=(T
2-T
n) * L
t/ L
g+ G
n
The 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The 3rd original position offset of corresponding frame
2=L
g-((T
2-T
n) * L
t-offset
1) mod (L
g)), wherein mod is modulo operation.
The third situation: in first network residential quarter (TD-SCDMA network cell), equal in time interval of integral multiple of 12 TD-SCDMA frame lengths described the second terminal card to be done synchronously, i.e. the 3rd broadcasting frame number T
2With described the first broadcasting frame number T
1Differ and equal 12*N, N is natural number, then the 4th broadcasting frame number G
2=G
1+ 13*N, the 4th broadcasting frame number G
2Fourth beginning position of corresponding frame is with respect to the 3rd broadcasting frame number T
2The side-play amount offset of the 3rd original position of corresponding frame
2=offset
1
Keep the relative synchronous specific embodiment with the first terminal card of the second terminal card and can find out according to above-mentioned, relative synchronizing information according to fixed described the second terminal card and first terminal card, in subsequent synchronization processes, as long as determine that described first terminal card and described first network residential quarter keep can determining the synchronizing information of described the second terminal card and described second network residential quarter synchronously.
Further, when safeguarding the relative synchronizing information of described the second terminal card and first terminal card on subsequent cycle ground, because the variation of mobile terminal locations, accordingly variation also will occur in described the first synchronizing information and/or the second synchronizing information.
If the sync bit of described first terminal card changes, for example, it is Δ offset that the first start bit of the frame that the first broadcasting frame number is corresponding described in described the first synchronizing information is put the deviate of self adjusting
1The time, the side-play amount offset that the second original position of the frame that then the second broadcasting frame number is corresponding described in described the second synchronizing information is put with respect to described first start bit
1'=offset
1+ Δ offset
1Further, if described side-play amount offset
1' length surpassed GSM frame length L
g, offset then
1"=offset
1'-L
g, and described the second broadcasting frame number is also corresponding adds 1; If described side-play amount offset
1' be negative value, then offset
1"=L
g+ offset
1', and described the second broadcasting frame number subtracts 1 with corresponding.
If the sync bit of described the second terminal card changes, for example, the deviate that second original position self of the frame that the second broadcasting frame number is corresponding described in described the second synchronizing information is adjusted is Δ offset
2, then at original relative displacement offset
1The basis on add Δ offset
2, i.e. offset
1'=offset
1+ Δ offset
2Further, consider GSM frame length L
gFactor, if described side-play amount offset
1' length surpassed GSM frame length L
g, offset then
1"=offset
1'-L
g, and the second broadcasting frame number is also corresponding adds 1; If described side-play amount offset
1' be negative value, then offset
1"=L
g+ offset
1', and the second broadcasting frame number subtracts 1 with corresponding.
In the present embodiment, in the synchronizing process of the second terminal card, can also judge whether synchronization failure of described the second terminal card, if synchronization failure, then redefine the relative synchronizing information of described the second terminal card, and keep the synchronous of described the second terminal card and described second network residential quarter based on the relative synchronizing information of described the second terminal card.That is to say, if the second terminal card and second network residential quarter lose synchronously, then according to step S1 and S2 redefine need to be synchronous with the second terminal card the second network residential quarter, and keep the second terminal card and second network cell synchronous.
Wherein, judge described the second terminal card whether the foundation of synchronization failure can comprise following any: 1) decoding synchronous channel SCH, surpass continuously the first threshold value if separate wrong number of times, then determine synchronization failure of described the second terminal card; 2) decode broadcast information BCCH surpasses the second threshold value continuously if separate wrong number of times, then determines synchronization failure of described the second terminal card; 3) decoding paging information PCH surpasses the 3rd threshold value continuously if separate wrong number of times, then determines synchronization failure of described the second terminal card.Alternatively, wherein said the first threshold value, the second threshold value and the 3rd threshold value are 3 times or 4 times.As well known to those skilled in the art, so-called " separating wrong " just refers to the as a result check errors of CRC (cyclic redundancy check (CRC) code) decoding in the channel-decoding, and wherein said CRC (cyclic redundancy check (CRC) code) is a kind of error check code the most frequently used in the data communication.
Fig. 6 shows the structural representation of the synchronizer of a kind of portable terminal of the present invention.Particularly, the synchronizer 1 of described portable terminal comprises: information determining unit 11, it be used for to determine the relative synchronizing information of described the second terminal card, described relative synchronizing information be associated with the resident first network residential quarter of described first terminal card the first synchronizing information and with the second synchronizing information of the synchronous second network residential quarter of described the second terminal card; Synchronous performance element 12, it is used for the relative synchronizing information of the second terminal card of determining based on described information determining unit 11 and the 3rd synchronizing information of the first network residential quarter that the described first terminal card that receives is resident keeps the synchronous of described the second terminal card and described second network residential quarter; Information updating unit 13, it is used for the variation based on described the first synchronizing information and/or described the second synchronizing information, upgrades the relative synchronizing information of described the second terminal card; The 3rd processing unit 14 that is connected with described synchronous performance element 12 with described information determining unit 11 respectively, it is used for judging whether synchronization failure of described the second terminal card, if described the second terminal card synchronization failure, then control the relative synchronizing information that described information determining unit 11 redefines described the second terminal card, and control described synchronous performance element 12 based on the relative synchronizing information of described the second terminal card keep described the second terminal card and described second network residential quarter synchronously.
Further, described information determining unit 11 also comprises: the first acquiring unit 111, and it is used for obtaining the first synchronizing information of the resident first network residential quarter of described first terminal card; The first determining unit 112, its gap for the paging cycle that utilizes described first terminal card is searched for and is measured described the second terminal card resident network cell and adjacent area, determines the second network residential quarter synchronous with described the second terminal card; Second acquisition unit 113, it is used for obtaining the synchronizing information with the synchronous second network residential quarter of described the second terminal card; And second determining unit 114, it is used for determining the relative synchronizing information of described the second terminal card according to the synchronizing information of the resident first network residential quarter of described first terminal card and with the second synchronizing information of the synchronous second network residential quarter of described the second terminal card.
Further, described synchronous performance element 12 can also be used for according to the 3rd broadcasting frame number, broadcast the 4th synchronizing information that the 3rd original position of the corresponding frame of frame number and side-play amount that described the second original position is put with respect to described first start bit are determined described the second terminal card and described second network residential quarter with the described the 3rd.
Described information updating unit 13 comprises: the first updating block 131, it is used for putting the deviate of self adjusting when described first start bit is Δ offset
1The time, the side-play amount offset that puts with respect to described first start bit of described the second original position then
1'=offset
1+ Δ offset
1The second updating block 132, its deviate that is used for adjusting when described the second original position self is Δ offset
2The time, the side-play amount offset that puts with respect to described first start bit of described the second original position then
1'=offset
1+ Δ offset
2
Described information updating unit 13 also comprises: the first processing unit 133 that is connected with the second updating block 132 with described the first updating block 131 respectively, if it is used for side-play amount offset that described the second original position is put with respect to described first start bit
1' when exceeding the frame length of described second network residential quarter, described side-play amount offset then
1"=offset
1'-frame length, and the second broadcasting frame number adds 1; The second processing unit 134 that is connected with the second updating block 132 with described the first updating block 131 is respectively put side-play amount offset if it is used for described the second original position with respect to described first start bit
1' be negative value, described side-play amount offset then
1"=frame length+offset
1', and the second broadcasting frame number subtracts 1.
The present invention also provides a kind of Fig. 6 of comprising multi-card mobile terminal of described synchronizer, in actual applications, described synchronizer can be embedded on the baseband processing chip in the multi-card mobile terminal, and matches with radio frequency chip and to finish the described method for synchronous of the embodiment of the invention.
Need to prove that the portable terminal described in the embodiments of the invention is described as an example of the dual-mode dual-card dual-standby terminal example, when relating to the bimodulus Multi-card multi-standby terminal, relative method for synchronous provided by the present invention still can be suitable for.Particularly, in this case, described multi-card mobile terminal comprises many (more than three or three) terminal cards, processes by the synchronous flow process of described the second terminal card of the embodiment of the invention successively when synchronous in that the other-end card except the first terminal card is done.Namely, in the bimodulus Multi-card multi-standby terminal, except the first terminal card, remaining terminal card all adopts the method such as the second terminal card as described in the embodiment of the invention to keep synchronously, the relative synchronous mode that namely keeps other all terminal cards and first terminal card, make the other-end card respectively resident with it and/or contiguous network cell keep synchronously and holding state.
Although the present invention with preferred embodiment openly as above; but it is not to limit the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize method and the technology contents of above-mentioned announcement that technical solution of the present invention is made possible change and modification; therefore; every content that does not break away from technical solution of the present invention; to any simple modification, equivalent variations and modification that above embodiment does, all belong to the protection range of technical solution of the present invention according to technical spirit of the present invention.