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 the method for conversing in the double card double standby mobile phone sub-district under a kind of single GSM communication module, a wherein SIM card that has solved two card double-card mobile phones is done conversation, and under the situation that does not take place to switch the sub-district, how another SIM card of this mobile phone finishes the problem that switch the sub-district.
For solving the problems of the technologies described above, technical scheme of the present invention is:
The method of conversation in a kind of double card double standby mobile phone sub-district, when SIM1 does conversation, and under the situation that does not take place to switch the sub-district, this method may further comprise the steps:
Step (1) SIM card control module control SIM1 normally converses, the normal termination conversation;
Step (2) belongs to different operators if the SIM card control module is judged the SIM2 card respectively with the SIM1 card, changes step 3; If two SIM cards belong to identical operator, change step 5;
Step (3) SIM card control module control SIM2 searches and monitors Broadcast Control Channel (BroadcastControl Channel is called for short BCCH), may further comprise the steps again:
(3.1) SIM2 searches for the BCCH channel again according to the previous BCCH channel frequency of preserving in its SIM card;
(3.2) if SIM2 according to the previous BCCH channel frequency of preserving in its SIM card, can not find the BCCH channel, change step 3.3; If can find, change step 4;
(3.3) SIM2 divides free list sequential search BCCH channel according to the Broadcast Control Channel of mobile phone;
(3.4), change step 3.5 if SIM2 can not find the BCCH channel; If can find, change step 4;
(3.5) SIM card control module control SIM2 may further comprise the steps again according to carrying out cell selecting with common mode:
(3.5.1) the agreement second layer is by Cell Broadcast CB module scanning radiofrequency signal and measuring-signal mean intensity;
(3.5.2) the agreement second layer locks onto the highest frequency of signal strength signal intensity by the Cell Broadcast CB module;
(3.5.3) the agreement second layer if the frequency among the step 3.5.2 is the BCCH frequency, changes step 3.5.4 by Cell Broadcast CB block search frequency correction channel, if not, changes step 3.5.8;
(3.5.4) the agreement second layer is next synchronous with this BCCH frequency by the decoding synchronous channel SCH, reads the system message on the BCCH frequency then;
(3.5.5) the agreement second layer judges according to the system message of reading whether this sub-district belongs to the network of this card operator, if, change step 3.5.6, if not, change step 3.5.8;
(3.5.6) the agreement second layer judges that whether the sub-district is for forbidding the sub-district, if change step 3.5.8; If not, change step 3.5.7;
(3.5.7) the agreement second layer judge the sub-district path loss principle parameters C 1 whether greater than 0, if change step 3.5.9; If not, change step 3.5.8;
(3.5.8), then lock onto signal strength signal intensity time high frequency, change step 3.5.3 if all frequencies are not also searched for to finish; If all frequencies have been searched for and finished, change step 3.5.10;
Step 4 is changeed in (3.5.9) resident this sub-district of mobile phone;
(3.5.10) mobile phone will continue to monitor all frequencies, select residently, and mobile phone interface shows no network service, commentaries on classics step 3.5.1;
Step (4) SIM card control module is obtained the lane place identification code LAI of current area by Cell Broadcast CB module monitors BCCH, if this sub-district LAI that obtains and the LAI on the SIM card are inconsistent, changes step 6; If both unanimities are changeed step 7;
Step (5) SIM card control module control SIM2 obtains the all-network parameter from SIM1, changes step 7;
Step (6) SIM card control module control SIM2 initiates location area updating, changes step 8;
Step (7) SIM card control module control SIM2 carries out international mobile subscriber identity IMSI and adheres to, and changes step 8;
Step (8) SIM card control module writes SIM card with the temporary mobile subscriber identity TMSI of new LAI, BCCH list of frequency, acquisition;
Step (9) SIM card control module enters holding state by Cell Broadcast CB module monitoring seek channel;
Step (10) SIM card control module shows current network information by the task management module;
Step (11) finishes.
Described step 3.5.1 scanning radiofrequency signal and measuring-signal mean intensity are meant the frequency of all permissions of mobile phone for measuring, extracting 5 measured values on each frequency averages, calculate the average signal strength of each frequency, be 3~5 seconds the running time that this step needs.
The current network packets of information includes network title of described step 10, signal strength signal intensity.
The network parameter that SIM2 obtains from SIM1 in the described step 5 comprises preferred PLMN, forbids PLMN, lane place identification code, BCCH tabulation, IMSI.
Compared with prior art, the invention has the beneficial effects as follows:
The present invention has realized that by the synchronous matching design of software and hardware a wherein SIM card of two card double-card mobile phones is done conversation, and under the situation that does not take place to switch the sub-district, how SIM2 finishes the method that switch the sub-district.Because do not need mobile phone and GSM network to carry out communication, saved communication time, so the inventive method has also improved the speed that SIM2 reenters holding state.GSM terminal of the present invention 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, and baseband processor adopts the SPREADTRUM 6600D chip of spreadtrum company.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.This GSM signal processor is digital signal processing chip (Digital SignalProcessing is hereinafter to be referred as DSP), selects the PM+VC0529 of Vimicro company for use.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 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.
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): finish RRM.
Task management module (Mobility Management is called for short and deletes): 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.
Belonging to same operator with two SIM card is example, the working method of each module in the key diagram 2:
After SIM1 finished conversation, SIM card control module notice task management module SIM1 conversation was finished.Task management module command SIM card control module control SIM2 carries out location area updating.The SIM card control module obtains the all-network parameter from SIM1, controls SIM2 completing place district then and upgrades.
Handling process is divided into two different flow processs then according to operator's difference of two SIM correspondences.For convenience, suppose that SIM1 initiates conversation.
See also Fig. 3, call flow figure in the different operators double card double standby mobile phone sub-district of Fig. 3 the inventive method.When two cards belong to different operator respectively, because two SIM cards belong to different operators respectively, and the subdistrict position difference of operator's definition, therefore, the sub-district does not take place and switches in SIM1, and SIM2 may also might roam into new sub-district also in original sub-district.
See also Fig. 4, call flow figure in the same operator double card double standby mobile phone sub-district of Fig. 4 the inventive method.When two cards belong to identical operator, because two cards belong to same operator, 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.
The handling process of two kinds of situations is specific as follows:
The method of conversation in a kind of double card double standby mobile phone of the present invention sub-district, when SIM1 does conversation, and under the situation that takes place to switch the sub-district, this method may further comprise the steps:
Step (1) SIM card control module control SIM1 normally converses, the normal termination conversation;
Step (2) belongs to different operators if the SIM card control module is judged the SIM2 card respectively with the SIM1 card, changes step 3; If two SIM cards belong to identical operator, change step 5;
Step (3) SIM card control module control SIM2 searches and monitors Broadcast Control Channel, may further comprise the steps again:
(3.1) SIM2 searches for the BCCH channel again according to the previous BCCH channel frequency of preserving in its SIM card;
(3.2) if SIM2 according to the previous BCCH channel frequency of preserving in its SIM card, can not find the BCCH channel, change step 3.3; If can find, change step 4;
(3.3) SIM2 divides (BCCH Allocation is hereinafter to be referred as BA) free list sequential search BCCH channel according to the Broadcast Control Channel of mobile phone;
(3.4), change step 3.5 if SIM2 can not find the BCCH channel; If can find, change step 4;
(3.5) see also 5, Fig. 5 is the cell selecting flow chart of the inventive method common mode.SIM2 may further comprise the steps again according to carrying out cell selecting with common mode:
(3.5.1) the agreement second layer is by Cell Broadcast CB module scanning radiofrequency signal and measuring-signal mean intensity;
Described scanning radiofrequency signal and measuring-signal mean intensity are meant the frequency of all permissions of mobile phone for measuring, extract 5 measured values and average on each frequency, calculate the average signal strength of each frequency, and be 3~5 seconds the running time that this step needs.Put out a form in order according to different level intensity.
(3.5.2) the agreement second layer locks onto the highest frequency of signal strength signal intensity by the Cell Broadcast CB module;
(3.5.3) the agreement second layer if the frequency among the step 3.5.2 is the BCCH frequency, changes step 3.5.4 by Cell Broadcast CB block search frequency correction channel (FrequencyControl Channel is called for short FCCH), if not, changes step 3.5.8;
(3.5.4) the agreement second layer is next synchronous with this BCCH frequency by decoding synchronizing channel (Synchronization Channel is called for short SCH), reads the system message on the BCCH frequency then;
(3.5.5) the agreement second layer judges according to the system message of reading whether this sub-district belongs to the network of this card operator, if, change step 3.5.6, if not, change step 3.5.8;
(3.5.6) the agreement second layer judges that whether the sub-district is for forbidding the sub-district, if change step 3.5.8; If not, change step 3.5.7;
(3.5.7) the agreement second layer judge the sub-district path loss principle parameters C 1 whether greater than 0, if change step 3.5.9; If not, change step 3.5.8;
(3.5.8), then lock onto signal strength signal intensity time high frequency, change step 3.5.3 if all frequencies are not also searched for to finish; If all frequencies have been searched for and finished, change step 3.5.10;
Step 4 is changeed in (3.5.9) resident this sub-district of mobile phone;
(3.5.10) mobile phone will continue to monitor all frequencies, select residently, and mobile phone interface shows no network service, commentaries on classics step 3.5.1;
Step (4) SIM2 monitors BCCH, obtains the lane place identification code (Location AreaIdentity is called for short LAI) of current area, if this sub-district LAI that obtains and the LAI on the SIM card are inconsistent, changes step 6; If both unanimities are changeed step 7;
Step (5) SIM2 obtains the all-network parameter from SIM1, changes step 7;
SIM2 obtains the zone network parameter from SIM1 and comprises preferred Public Land Mobile Network (Public Land Mobile Network, hereinafter to be referred as PLMN), forbid PLMN, lane place identification code LAI, BCCH tabulation, international mobile subscriber identity (international mobilesubscriber identity is called for short IMSI).
Step (6) SIM2 initiates location area updating, changes step 8;
Step (7) SIM2 carries out mobile switching centre's (Mobile Switching Centre is called for short MSC) and adheres to, and promptly IMSI adheres to, and just IMSI ATTATCH changes step 8;
Step (8) SIM card control module writes SIM card with the temporary mobile subscriber identity (Temporary Mobile Subscriber Identity is called for short TMSI) of new LAI, BCCH list of frequency, acquisition;
Step (9) monitoring seek channel (Paging Channel is called for short PCH) enters holding state;
Step (10) shows current network information, as network title, signal strength signal intensity etc.;
Step (11) finishes.
In above-mentioned steps 7, even SIM2 finds the subzone network environment, promptly the LAI parameter without any variation, also will be carried out MSC and adhere to, and purpose is to receive in the SIM1 communication process, and gsm system may be issued the short message of SIM2.
In above-mentioned processing procedure, even surpass the periodic location update time, do not need to carry out once more periodical location area yet and upgrade, because in the mobile communication process, gsm system has been known mobile phone location.
Place beyond mobile phone moves to signal coverage, or the unexpected power down of mobile phone.In the above two kinds of cases, all have little time to divide transmission " IMSI " detach message to system, then gsm system thinks that still mobile phone is in " adhering to " state.At this moment, if this mobile phone is paged, system still can constantly send beep-page message, waste system wireless resource.
For the problems referred to above, the measure that gsm system generally takes forced location to upgrade.As require MS initiatively to register once in per 30 minutes, and the length of this time is set by the network operator, periodically registration that Here it is, and promptly the position is upgraded.After adopting periodically registration, if gsm system does not receive the periodicity register information of certain mobile phone, the location register at this mobile phone place will be " the latent separation " with the mobile phone state standard, if this mobile phone is done calledly at this moment, then no longer sends paging information.As long as after system receives correct lane place register information once more, will indicate that just this is " adhering to ".
In sum, the present invention is based on that the hardware platform shown in Fig. 1-1 and the 1-2 realizes.The inventive method provides a kind of new mode, has realized that a wherein SIM card of two card double-card mobile phones is done conversation, and under the situation that does not take place to switch the sub-district, how SIM2 finishes the method that switch the sub-district.
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.