Summary of the invention
For overcoming the deficiency of above-mentioned prior art, the technical problem to be solved in the present invention provides a kind of method of double card double standby mobile phone monitoring seek channel, make double card double standby mobile phone have only under the independent GSM communication module, can complete monitoring seek channel, guarantee that two SIM cards can both be by the accurate paging of network.
For solving the problems of the technologies described above, technical scheme of the present invention is:
A kind of method of double card double standby mobile phone monitoring seek channel, two SIM cards belong to identical operator, and this method may further comprise the steps:
Step (1) SIM1 calculates its corresponding paging group, obtains the moment that SIM1 need monitor beep-page message;
Step (2) SIM2 calculates its corresponding paging group, obtains the moment that SIM2 need monitor beep-page message;
Step (3) is changeed step (4) if SIM1 is identical with the paging group of SIM2 correspondence, if the paging group of SIM1 and SIM2 correspondence is inequality, changes step (5);
Step (4) mobile phone agreement second layer module, comprises the following steps: by Cell Broadcast CB module paging receiving information as long as wake up in the moment of needs monitoring beep-page message
(4.1) needs that calculate in above-mentioned steps 1 of SIM1 moment of monitoring beep-page message starts, SIM1 monitoring seek channel (Paging Channel is called for short PCH) information, and SIM2 shares paging information;
(4.2) agreement second layer module receives PCH information, RRM module analysis paging information;
(4.3) if comprise the IMSI of SIM1 among the PCH, promptly SIM1 is paged, changes step 4.4; If SIM2 is paged, change step 4.5; If step 4.6 is changeed in blank paging;
(4.4) SIM1 starts normal called flow;
(4.5) SIM2 starts normal called flow;
(4.6) mobile phone enters holding state, changes step 6;
Each moment that need monitor beep-page message that step (5) mobile phone agreement second layer module just must calculate in above-mentioned steps 1 and step 2 wakes up, receives the beep-page message of two SIM card correspondences respectively by the Cell Broadcast CB module, comprises the following steps:
(5.1) needs that calculate in above-mentioned steps 1 of SIM1 moment of monitoring beep-page message starts, and SIM1 monitors PCH information;
(5.2) agreement second layer module receives PCH information, RRM module analysis paging information;
(5.3) if comprise the IMSI of SIM1 in the PCH information, promptly SIM1 is paged, changes step 5.4; If step 5.5 is changeed in blank paging;
(5.4) SIM1 starts normal called flow;
(5.5) mobile phone enters holding state;
(5.6) needs that calculate in above-mentioned steps 2 of SIM2 moment of monitoring beep-page message starts, and SIM2 monitors PCH information;
(5.7) agreement second layer module receives PCH information, RRM module analysis paging information;
(5.8) if comprise the IMSI of SIM2 in the PCH information, promptly SIM2 is paged, changes step 5.9; If step 5.10 is changeed in blank paging;
(5.9) SIM2 starts normal called flow;
(5.10) mobile phone enters holding state, changes step 6;
Step (6) finishes.
A kind of method of double card double standby mobile phone monitoring seek channel, two SIM cards belong to different operators, and this method may further comprise the steps:
Step (1) SIM1 monitors Broadcast Control Channel (Broadcast Control Channel is called for short BCCH), calculates its paging group, obtains the moment that SIM1 need monitor beep-page message;
Step (2) SIM2 monitors BCCH, calculates its paging group, obtains the moment that SIM2 need monitor beep-page message;
Step (3) is not overlapping if SIM1 that step 1 and 2 calculates and SIM2 need monitor the moment of beep-page message, and enough mobile phones of the time interval lock onto new BCCH, changes step 5; Otherwise, change step 4.
Step (4) is overlapping or at interval not enough if SIM1 that step 1 and 2 calculates and SIM2 need monitor the moment of beep-page message, changes step 6;
(5) two SIM card of step are independently finished PCH and are monitored work, may further comprise the steps:
(5.1) needs that calculate in step 1 of SIM1 moment of monitoring beep-page message starts, and SIM1 monitors PCH information;
(5.2) agreement second layer module receives PCH information, RRM module analysis paging information;
(5.3) if comprise the IMSI of SIM1 in the PCH information, promptly SIM1 is paged, changes step 5.4; If step 5.5 is changeed in blank paging;
(5.4) SIM1 starts normal called flow;
(5.5) mobile phone enters holding state;
(5.6) needs that calculate in step 2 of SIM2 moment of monitoring beep-page message starts, and SIM2 monitors PCH information;
(5.7) agreement second layer module receives PCH information, RRM module analysis paging information;
(5.8) if comprise the IMSI of SIM2 in the PCH information, promptly SIM2 is paged, changes step 5.9; If step 5.10 is changeed in blank paging;
(5.9) SIM2 starts normal called flow;
(5.10) mobile phone enters holding state, changes step 7;
Step (6) task management module determines SIM2 or SIM1 switching cell according to standard sub-district handoff protocol, guarantees that the paging time window can stagger, and may further comprise the steps:
(6.1) SIM2 starts the sub-district gravity treatment, if SIM2 in roaming, changes step 1; Otherwise, the selected again sub-district of SIM2, the time of the paging receiving group of this sub-district can stagger with the time of sub-district, SIM1 place paging receiving group, and the resident requirement of SIM2 is satisfied in the sub-district of this gravity treatment;
(6.2) if step 6.4 is changeed in gravity treatment success in SIM2 sub-district, if after SIM2 attempts N time, can not find the sub-district of satisfying condition described in the step 6.1, change step 6.3, N is a positive integer;
(6.3) SIM1 starts the sub-district gravity treatment, if SIM1 in roaming, changes step 1; Otherwise, the selected again sub-district of SIM1, the time of this sub-district paging receiving group can stagger with the time of sub-district, SIM2 place paging receiving group, and the resident requirement of SIM1 is satisfied, commentaries on classics step 5 in the sub-district of this gravity treatment;
(6.4) change step 5;
Step (7) finishes.
N=6 in the described step 6.2.
Compared with prior art, the invention has the beneficial effects as follows:
Synchronous matching design by software and hardware, the invention solves double card double standby mobile phone is used for when having only a cover GSM communication module, two SIM cards in the present invention, realized that double card double standby mobile phone can complete monitoring seek channel, guaranteed that two SIM cards can both be by the accurate paging of network.This scheme GSM terminal only needs a cover communication module, needs only a controller, memory, only needs an antenna, and cost is low, and volume is little.
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.
Described baseband processor adopts the SPREADTRUM 6600D chip of spreadtrum company.The GSM signal processor is digital signal processing chip (Digital Signal Processing is hereinafter to be referred as DSP), selects the PM+VC0529 of Vimicro company for use.Described rf chip adopts the SI 4210 of Silicon Labs Cp Inc., and described radio-frequency power amplifier adopts the SI 4300 of Silicon Labs Cp Inc..Memory adopts the NOR+SRAM FLASH of Samsung.
Shown in Fig. 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 monitoring seek channel.
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.
Agreement second layer module obtains the paging group at current SIM place from the Cell Broadcast CB module, notice RRM module and task management module;
The RRM module starts PCH monitoring flow process in the corresponding time of paging group;
1, RRM module notification protocol second layer module is monitored PCH;
2, agreement second layer module is monitored PCH by Cell Broadcast CB;
The agreement second layer obtains among the PCH paging information and reports to the RRM module;
In the RRM module analysis paging information, the paging information that whether contains this mobile phone correspondence, comprise international mobile subscriber identity (international mobile subscriberidentity, be called for short IMSI) or the temporary transient identification code of mobile subscriber (Temporary MobileSubscriber Identity is called for short TMSI).
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.For convenience, suppose that SIM1 initiates conversation.
When two cards belong to identical operator respectively, physically be in same position again, shared same set of communication module, the same antenna, therefore two SIM card corresponding district situations must be identical, promptly two SIM card must be to monitor same BCCH.Certain two SIM card also must be in the same position district.When base station system is wanted the paging mobile phone, can be to lane place identification code (Location Area Identity, be called for short LAI) all identical sub-districts transmission row paging command, send paging information by each sub-district at PCH. therefore only need SIM card supervision PCH channel to get final product.
Every SIM card is all corresponding fixing paging group on the PCH channel, if the paging group of two SIM correspondences is identical, mobile phone only wakes paging receiving information up in the moment of needs monitoring beep-page message.If corresponding paging group difference, mobile phone just must need the moment of paging receiving message to wake up at each, receives the beep-page message of two SIM card correspondences respectively.
Standard according to GSM, associating BCCH/ Separate Dedicated Control Channel (Stand-aloneDedicated Control Channel, hereinafter to be referred as SDCCH) sub-district, each multi-frame can provide 3 independently Common Control Channel (Common Control Channel, C CH) as access grant channel (hereinafter to be referred as AGCH) and PCH.
Non-associating BCCH/SDCCH sub-district, each multi-frame transmit 9 independently CCCH as AGCH and PCH.
These independently CCCH we be called paging group.Paging group can be used as paging channel and is used for the Radio Paging request, also can be used as the access request that access grant channel is used for responding mobile phone simultaneously, promptly distributes SDCCH.Travelling carriage calculates the paging cycle that monitor according to parameter A G and MFR, the paging group under periodically monitoring.Parameter A G represents to reserve the AGCH piece, and parameter MFR represents the cycle of CCCH multi-frame.So do when called when travelling carriage, can listen to the paging request that the base station sends, and give a response.
According to the standard of GSM, associating BCCH/SDCCH sub-district, each multi-frame transmits 3 paging groups, but not associating BCCH/SDCCH sub-district, each multi-frame transmits 9 paging groups.Identical for two SIM card paging groups, mobile phone only need periodically be monitored a paging group; For the paging group difference, need monitor in the paging group of each SIM card correspondence.
Fig. 3 is the flow chart of same operator card monitoring seek channel of the present invention.See also Fig. 3.The method of double card double standby mobile phone monitoring seek channel of the present invention, two SIM cards belong to identical operator, may further comprise the steps:
Step (1) SIM1 calculates its corresponding paging group, obtains the moment that SIM1 need monitor beep-page message, and mobile phone can calculate which the paging group paging receiving information that oneself should be in according to the IMSI of oneself;
Step (2) SIM2 calculates its corresponding paging group, obtains the moment that SIM2 need monitor beep-page message;
Step (3) is changeed step (4) if SIM1 is identical with the paging group of SIM2 correspondence, if the paging group of SIM1 and SIM2 correspondence is inequality, changes step (5);
Step (4) mobile phone agreement second layer module only need be waken up in the moment that needs are monitored beep-page message, by Cell Broadcast CB module paging receiving information, comprises the following steps:
(4.1) needs that calculate in above-mentioned steps 1 of SIM1 moment of monitoring beep-page message starts, and SIM1 monitors PCH information, and SIM2 shares paging information;
(4.2) agreement second layer module receives PCH information, RRM module analysis paging information;
(4.3) if comprise the IMSI of SIM1 among the PCH, promptly SIM1 is paged, changes step 4.4; If SIM2 is paged, change step 4.5; If step 4.6 is changeed in blank paging;
(4.4) SIM1 starts normal called flow;
(4.5) SIM2 starts normal called flow;
(4.6) mobile phone enters holding state, changes step 6;
Each moment that need monitor beep-page message that step (5) mobile phone agreement second layer module just must calculate in above-mentioned steps 1 and step 2 wakes up, receives the beep-page message of two SIM card correspondences respectively by the Cell Broadcast CB module, comprises the following steps:
The task management module settings is the PCH of SIM1 monitoring before this well, is that SIM2 monitors then.
(5.1) needs that calculate in above-mentioned steps 1 of SIM1 moment of monitoring beep-page message starts, and SIM1 monitors PCH information;
(5.2) agreement second layer module receives PCH information, RRM module analysis paging information;
(5.3) if comprise the IMSI of SIM1 in the PCH information, promptly SIM1 is paged, changes step 5.4; If step 5.5 is changeed in blank paging;
(5.4) SIM1 starts normal called flow;
(5.5) mobile phone enters holding state;
(5.6) needs that calculate in above-mentioned steps 2 of SIM2 moment of monitoring beep-page message starts, and SIM2 monitors PCH information;
(5.7) agreement second layer module receives PCH information, RRM module analysis paging information;
(5.8) if comprise the IMSI of SIM2 in the PCH information, promptly SIM2 is paged, changes step 5.9; If step 5.10 is changeed in blank paging;
(5.9) SIM2 starts normal called flow;
(5.10) mobile phone enters holding state, changes step 6;
Step (6) finishes.
When two cards belong to different operators respectively, two cards must corresponding different B CCH, and two SIM card must independently be finished PCH and monitor work.But because the time of two SIM card paging receiving information may be overlapping, therefore, mobile phone must have way to regulate time of reception.Fig. 4 is the flow chart of different operators card monitoring seek channel of the present invention.See also Fig. 4.The method of double card double standby mobile phone monitoring seek channel of the present invention, two SIM cards belong to different operators, may further comprise the steps:
Step (1) SIM1 monitors BCCH, calculates its paging group, obtains the moment that SIM1 need monitor beep-page message;
Described SIM1 monitors BCCH by the counter triggers in the mobile phone, as sets every 10ms and trigger once, carries out snoop-operations one time.
Mobile phone can calculate which the paging group paging receiving information that oneself should be in according to the IMSI of oneself.Because directly there is clock synchronization mobile phone and base station, mobile phone can oneself calculate when paging group can send, in correspondence moment mobile phone paging receiving information from PCH.The calculating of paging group belongs to techniques well known, does not add at this and gives unnecessary details.
Step (2) SIM2 monitors BCCH, calculates its paging group, obtains the moment that SIM2 need monitor beep-page message;
Step (3) is not overlapping if SIM1 that step 1 and 2 calculates and SIM2 need monitor the moment of beep-page message, and the time interval, enough mobile phones locked onto new BCCH, the RRM module locks onto new BCCH by agreement second layer module and Cell Broadcast CB module specifically, changes step 5; Otherwise, change step 4.
Described time interval T=2 * 51 * reframing time=2 * 51 * 4.6ms=469.2ms is so should be interval greater than 0.5s the time, enough mobile phones lock onto new BCCH.
Step (4) is overlapping or at interval not enough if SIM1 that step 1 and 2 calculates and SIM2 need monitor the moment of beep-page message, changes step 6;
(5) two SIM card of step are independently finished PCH and are monitored work, may further comprise the steps:
(5.1) needs that calculate in step 1 of SIM1 moment of monitoring beep-page message starts, and SIM1 monitors PCH information;
(5.2) agreement second layer module receives PCH information, RRM module analysis paging information;
(5.3) if comprise the IMSI of SIM1 in the PCH information, promptly SIM1 is paged, changes step 5.4; If step 5.5 is changeed in blank paging;
(5.4) SIM1 starts normal called flow;
(5.5) mobile phone enters holding state;
(5.6) needs that calculate in step 2 of SIM2 moment of monitoring beep-page message starts, and SIM2 monitors PCH information;
(5.7) agreement second layer module receives PCH information, RRM module analysis paging information;
(5.8) if comprise the IMSI of SIM2 in the PCH information, promptly SIM2 is paged, changes step 5.9; If step 5.10 is changeed in blank paging;
(5.9) SIM2 starts normal called flow;
(5.10) mobile phone enters holding state, changes step 7;
Step (6) task management module determines SIM2 or SIM1 switching cell according to standard sub-district handoff protocol, guarantees that the paging time window can stagger, and may further comprise the steps:
(6.1) SIM2 starts the sub-district gravity treatment, if SIM2 in roaming, changes step 1; Otherwise, the selected again sub-district of SIM2, the time of the paging receiving group of this sub-district can stagger with the time of sub-district, SIM1 place paging receiving group, and the resident requirement of SIM2 is satisfied in the sub-district of this gravity treatment;
After networking, mobile phone constantly monitors peripheral cell, have 5 minutes at least and distribute (BCCH allocation from its BCCH, be called for short BA) read the BCCH of 6 adjacent areas the strongest in the tabulation, read the base station identity code sign indicating number (being called for short the BSIC sign indicating number) of these 6 adjacent areas at least 30 seconds, whether the cycle is sought more suitably sub-district registration, and this just has the process of sub-district gravity treatment.The sub-district gravity treatment is judged according to sub-district gravity treatment channel quality canonical parameter c2 and path loss principle parameter c 1 parameter, if mobile phone calculates the c2 value that the c2 value of certain adjacent area surpasses the current stop of mobile phone sub-district, and keep more than 5 seconds, then mobile phone will start the sub-district gravity treatment and enter this sub-district, and this neighbour sub-district and current area are positioned at the same position district.If mobile phone for measuring to and current area be in the sub-district of same lane place, the c2 value that it calculates above current area c2 value and sub-district gravity treatment lag parameter with, and keep more than 5 seconds, then mobile phone will start the sub-district gravity treatment and enter this sub-district.
(6.2) if step 6.4 is changeed in gravity treatment success in SIM2 sub-district,, change step 6.3 if SIM2 attempts can't finding the sub-district of satisfying condition described in the step 6.1 6 times;
(6.3) SIM1 starts the sub-district gravity treatment, if SIM1 in roaming, changes step 1; Otherwise, the selected again sub-district of SIM1, the time of this sub-district paging receiving group can stagger with the time of sub-district, SIM2 place paging receiving group, and the resident requirement of SIM1 is satisfied, commentaries on classics step 5 in the sub-district of this gravity treatment;
(6.4) change step 5;
Step (7) finishes.
In sum, the present invention is based on that the hardware platform shown in Fig. 1-1 and the 1-2 realizes.By the synchronous matching design of software and hardware, this portable terminal can be supported intactly monitoring seek channel of mobile phone having only under the independent GSM communication module, guarantees that two SIM cards can both be by the accurate paging of network.
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.