Summary of the invention
The present invention is the deficiency that overcomes above-mentioned prior art, the technical problem to be solved in the present invention provides a kind of residence reselecting of double card double standby mobile phone, make two card double-card mobile phones have only under the independent GSM communication module, can support the sub-district gravity treatment of two SIM card simultaneously, and successfully enter idle condition.
For solving the problems of the technologies described above, technical scheme of the present invention is:
A kind of residence reselecting of double card double standby mobile phone comprises the following steps:
Step (1) mobile phone agreement second layer module is measured the signal strength signal intensity of this sub-district of SIM 1 correspondence;
Step (2) mobile phone agreement second layer module is measured the signal of the neighbor cell of SIM 1 correspondence, may further comprise the steps:
(2.1) signal strength signal intensity of the adjacent cell of mobile phone agreement second layer module testing SIM 1 correspondence;
(2.2) if timer T1 overflows, change step 2.3, if not, change step 2.6;
(2.3) the BSIC decoding is carried out in the adjacent sub-district of mobile phone agreement second layer module, to determine whether adjacent sub-district changes;
(2.4) if variation has taken place in BSIC, change step 2.5, do not change if, change step 2.6;
(2.5) variation has taken place in BSIC, judges that then variation has taken place in adjacent sub-district, will decode to its BCCH;
(2.6) if timer T2 overflows, change step 2.7, if not, change step 2.8;
(2.7) mobile phone agreement second layer module is decoded again to the BCCH of adjacent sub-district, to guarantee the accuracy of sub-district gravity treatment data;
(2.8) measure end;
Step (3) is changeed step 4 if 2 two cards of SIM 1, SIM belong to different operators respectively; If two cards belong to identical operator respectively, change step 9;
SIM 1 is according to test case for step (4), and whether decision needs the sub-district gravity treatment, if then change
Step 5 if not, is changeed step 6;
Need wherein to judge whether the sub-district gravity treatment, need to consider following factors:
(4.1) the sub-district gravity treatment that causes owing to signal strength signal intensity comprises the following steps:
(4.1.1) Integer N=0 is set,
(4.1.2) measure N neighbor cell,
(4.1.3) according to the GSM standard standard, the RRM module judges whether to carry out the sub-district gravity treatment, if, change step 4.1.4, if not, change step 4.1.5;
(4.1.4) start the sub-district gravity treatment, change step 5;
(4.1.5)N=N+1;
If step 4.1.2 is changeed in (4.1.6) N<6, if not, change step 4.1.7;
(4.1.7) the sub-district gravity treatment deterministic process that is caused by signal strength signal intensity finishes, and changes step 4.2;
(4.2) owing to this sub-district reason causes the sub-district gravity treatment, comprise the following steps:
If (4.2.1) sub-district becomes illegal state, change step 4.2.4, if not, change step 4.2.2;
If (4.2.2) number of retransmissions is greater than maximum number of retransmissions MAXRET, mobile phone still can successful connecting system, changes step 4.2.4, if not, changes step 4.2.2;
If (4.2.3) mobile phone can not correctly be decoded to paging information, change step 4.2.4, if not, change step 4.2.2;
(4.2.4) start the sub-district gravity treatment;
(4.2.5) causing sub-district gravity treatment deterministic process by this sub-district reason finishes;
After step (5) SIM 1 starts the sub-district gravity treatment, change step 6;
Step (6) SIM 2 starts the same testing process that SIM 1 carries out described in the above-mentioned steps 1 and 2, to the adjacent cell of SIM 2 correspondences measure, decoding work;
Step (7) SIM 2 is according to the test result of step 6, and judges according to above-mentioned steps 4 and 5 described reselection conditions, if satisfy reselection conditions, then starts the gravity treatment flow process, changes step 8; If discontented lumping weight selects condition, then directly change step 8;
The situation processing that step (8) SIM 1,2 two cards of SIM belong to different operator respectively finishes,
Change step 13;
Step (9) SIM2 directly obtains the measurement data of SIM1;
Step (10) need to judge whether the sub-district gravity treatment, and Rule of judgment is as described in step 4.1 and 4.2,
Step 11 is changeed in sub-district gravity treatment if desired, if not, changes step 13;
Step (11) SIM1 starts the sub-district gravity treatment;
Step (12) SIM2 starts the sub-district gravity treatment, changes step 13;
Step (13) finishes.
The signal strength signal intensity of adjacent 6 sub-districts of mobile phone for measuring SIM 1 correspondence in the described step (2.1).
Timer T1 is regularly less than 60 seconds in the described step (2.2).
Timer T1 is regularly 30 seconds in the described step (2.2).
Timer T2 is regularly 300 seconds in the described step (2.6).
Compared with prior art, the invention has the beneficial effects as follows:
By the synchronous matching design of software and hardware, the invention solves two card double-card mobile phones under idle pulley, the problem of reselecting Serving cell that causes because of reasons such as move the position, signal variations.This scheme supports two SIM in the same GSM terminal equipment to land the GSM network simultaneously.And this GSM terminal only needs a cover communication module, needs only a controller, memory, only needs an antenna.
Embodiment
Specific embodiments of the present invention are further described in detail below in conjunction with drawings and Examples, but should not limit protection scope of the present invention with this.The present invention needs hardware designs and software design to cooperate synchronously, and the present invention will be described from the angle of hardware and software below.
Hardware implementation platform of the present invention is shown in Fig. 1-1 and 1-2.Use a cover GSM communicating circuit, antenna, a single memory, two to overlap the SIM card interface circuits on the hardware, and other control circuits of cover.Hardware increases analog switch on general GSM hardware architecture basis, by software control, switch between two SIM card.
The GSM communicating circuit comprises radio circuit and baseband processor, described radio circuit comprises rf chip, radio-frequency power amplifier and duplexer, wherein this duplexer is integrated in the front-end module, described baseband processor comprises GSM signal processor and general-purpose built-in type CPU, and this general-purpose built-in type CPU is base band master chip BBIC.Other control circuit comprises power module, keyboard, voicefrequency circuit and LCD interface circuit.Described antenna is connected in turn with radio circuit, baseband processor.
Shown in Fig. 2-1 and 2-2 software frame figure of the present invention.When software is stored at network data, open up independently memory space for two SIM cards.Handling process is divided into two different flow processs then according to operator's difference of two SIM card correspondences.Software is mainly handled the operation among the present invention in protocol layer, mainly comprise and handle the control flow of two SIM card when carrying out the sub-district gravity treatment.
Agreement ground floor Layer1: provide the interface between chip and high layer software, directly control chip.
Agreement second layer Layer2: finish transfer of data and flow control.
RRM (Radio Resources is called for short RR) module: finish RRM.
Task management module (Mobility Management is called for short MM): finish mobile phone identification and mobile management.
Call out control (Call control is called for short CC): the management relevant with handset call.
SMS: short message service management.
Supplementary service (Sup.Services is called for short SS): the supplementary service management, as calling transfer, number demonstration etc.
With the sub-district gravity treatment is example, and the direct method of work of each module is described.
Agreement second layer module obtains current area and neighbor cell signal intensity from Cell Broadcast CB (CB) module, reports and gives RRM (RR);
RRM (RR) module judges whether to carry out the sub-district gravity treatment;
Sub-district gravity treatment if desired, RRM (RR) module is sent cell re-selection request to task management module (MobilityManagement);
Task management module (Mobility Management) is coordinated the SIM card control module and RRM (RR) module is finished the sub-district gravity treatment.
Under several below situations, start the sub-district gravity treatment:
● the sub-district becomes illegal state
● in the number of times that maximum retransmit MAXRET sets, mobile phone can successful connecting system.
● the error rate of down link is too high, and mobile phone can not correctly be decoded to the information of paging.
● the path loss criterion parameter C1 of Serving cell<0 surpasses more than the 5s continuously.
● the path loss criterion parameter C1 of another sub-district surpasses more than the 5s greater than the time of current area C1.
Handling process is divided into two different flow processs then according to operator's difference of two SIM correspondences, below is described in detail respectively.
Two cards of A belong to different operators respectively:
Because two SIM cards belong to different operators respectively, and each difference is divided in the GSM sub-district of operator, therefore, each SIM corresponding district gravity treatment is independently carried out.
1, the signal strength signal intensity of 6 sub-districts of vicinity of mobile phone test SIM 1 correspondence, and adjacent sub-district carried out Base transceiver Station Identity Code (Base Station Identity Code in per at least 60 seconds, hereinafter to be referred as BSIC) decoding, to determine whether adjacent sub-district changes, if find that variation has taken place BSIC, judge that then variation has taken place in adjacent sub-district, will be to its Broadcast Control Channel (Broadcast Control Channel, be called for short BCCH) decode, BCCH to adjacent sub-district decoded again in per 5 minutes, to guarantee the accuracy of sub-district gravity treatment data.
2, SIM1 is according to test case, and whether decision will carry out the sub-district gravity treatment.If satisfy reselection conditions, then start the gravity treatment flow process.
3, SIM 2 starts same testing process, and work such as decoding are measured in 6 sub-districts of vicinity of SIM 2 correspondences.
4, SIM 2 is according to test case, and whether decision will carry out the sub-district gravity treatment.If satisfy reselection conditions, then start the gravity treatment flow process.
Two cards of B belong to identical operator respectively:
Because two cards belong to same operator, physically are in same position again, shared same set of communication module, the same antenna, therefore, two SIM card corresponding district situations must be identical.At this situation, only need a SIM card that cell parameter is tested, the another one SIM card can be shared measurement parameter.Concrete steps are as follows:
1, the signal strength signal intensity of 6 sub-districts of vicinity of mobile phone test SIM 1 correspondence, and adjacent sub-district carried out BSIC decoding in per at least 60 seconds, to determine whether adjacent sub-district changes, if find that variation has taken place BSIC, judge that then variation has taken place in adjacent sub-district, to decode to its BCCH, the BCCH to adjacent sub-district decoded again in per 5 minutes, to guarantee the accuracy of sub-district gravity treatment data.
2, SIM2 directly obtains SIM 1 test data.
3, SIM1 is according to test case, and whether decision will carry out the sub-district gravity treatment.If satisfy reselection conditions, then start the gravity treatment flow process.
4, if SIM 1 starts the gravity treatment flow process, then SIM 2 also starts the gravity treatment flow process, and gravity treatment is to the sub-district identical with SIM1, otherwise if SIM 1 does not do gravity treatment, SIM2 does not do gravity treatment yet.
See also accompanying drawing, the idiographic flow of the residence reselecting of a kind of double card double standby mobile phone of the present invention is as follows:
Step (1) mobile phone agreement second layer module is measured this cell signal strength of SIM 1 correspondence;
Step (2) is shown in the flow chart of Fig. 3 cell measurement of the present invention, and the signal of the neighbor cell of mobile phone for measuring SIM 1 correspondence may further comprise the steps:
(2.1) signal strength signal intensity of 6 sub-districts of vicinity of mobile phone agreement second layer module testing SIM 1 correspondence;
(2.2) if 30 seconds timer overflows, change step 2.3, if not, change step 2.6;
(2.3) the BSIC decoding is carried out in adjacent sub-district, to determine whether adjacent sub-district changes;
(2.4) if variation has taken place in BSIC, change step 2.5, do not change if, change step 2.6;
(2.5) variation has taken place in BSIC, judges that then variation has taken place in adjacent sub-district, will decode to its BCCH;
(2.6) if 5 minutes timer overflows, change step 2.7, if not, change step 2.8;
(2.7) BCCH to adjacent sub-district decodes again, to guarantee the accuracy of sub-district gravity treatment data;
(2.8) measure end;
Step (3) is changeed step 4 if 2 two cards of SIM 1, SIM belong to different operators respectively; If two cards belong to identical operator respectively, change step 9;
Step (4) is shown in the flow chart that Fig. 6 is different operators card sub-district gravity treatment among the present invention, and SIM 1 is according to test case, and whether decision needs the sub-district gravity treatment, if, then change step 5, if not, change step 6;
Need wherein to judge whether the sub-district gravity treatment, need to consider following factors:
(4.1) the sub-district gravity treatment that causes owing to signal strength signal intensity as shown in Figure 4, comprises the following steps:
(4.1.1) Integer N=0 is set,
(4.1.2) measure N neighbor cell,
(4.1.3) according to the GSM standard standard, judge whether to carry out the sub-district gravity treatment, if, change step 4.1.4, if not, change step 4.1.5;
(4.1.4) start the sub-district gravity treatment, change step 5;
(4.1.5)N=N+1;
If step 4.1.2 is changeed in (4.1.6) N<6, if not, change step 4.1.7;
(4.1.7) the sub-district gravity treatment deterministic process that is caused by signal strength signal intensity finishes, and changes step 4.2;
(4.2) owing to this sub-district reason causes the sub-district gravity treatment, as shown in Figure 5, comprise the following steps:
If (4.2.1) sub-district becomes illegal state, change step 4.2.4, if not, change step 4.2.2;
If (4.2.2) number of retransmissions is greater than MAXRET, mobile phone still can successful connecting system, changes
Step 4.2.4 if not, changes step 4.2.2; Wherein MAXRET is a maximum number of retransmissions, is the canonical parameter in the GSM communications protocol.
If (4.2.3) down link error code height, mobile phone can not correctly be decoded to paging information, changes
Step 4.2.4 if not, changes step 4.2.2;
(4.2.4) start the sub-district gravity treatment;
(4.2.5) causing sub-district gravity treatment deterministic process by this sub-district reason finishes;
Step (5) SIM 1 starts the sub-district gravity treatment, changes step 6;
Step (6) SIM 2 starts the same test stream that SIM 1 carries out described in the above-mentioned steps 1 and 2
Journey, to the adjacent cell of SIM 2 correspondences measure, decoding work;
Step (7) SIM 2 is according to the test result of step 6, and judges according to above-mentioned steps 4 and 5 described reselection conditions, if satisfy reselection conditions, then starts the gravity treatment flow process,, change step 8; If discontented lumping weight selects condition, then directly change step 8;
The situation processing that step (8) SIM 1,2 two cards of SIM belong to different operator respectively finishes, and changes step 13;
Step (9) is shown in the flow chart of same operator card sub-district gravity treatment among Fig. 7 the present invention, and SIM2 directly obtains the measurement data of SIM1;
Step (10) need to judge whether the sub-district gravity treatment, and Rule of judgment is as described in step 4.1 and 4.2, and step 11 is changeed in sub-district gravity treatment if desired, if not, changes step 13;
Step (11) SIM1 starts the sub-district gravity treatment;
Step (12) SIM2 starts the sub-district gravity treatment, changes step 13;
Step (13) finishes.
In sum, the present invention is based on that the hardware platform shown in Fig. 2-1 and the 2-2 realizes.By the synchronous matching design of software and hardware, this portable terminal can be supported the sub-district gravity treatment of two SIM card simultaneously having only under the independent GSM communication module, and successfully enters idle condition.
The above is preferred embodiment of the present invention only, is not to be used for limiting practical range of the present invention.Be that all equivalences of doing according to the content of the present patent application claim change and modification, all should be technology category of the present invention.