The start network searching method of double card double standby mobile phone
Technical field
The present invention relates to the start network searching method of the start network searching method, particularly a kind of double card double standby mobile phone of a kind of global system for mobile communications (Global System for MobileCommunications is hereinafter to be referred as GSM) mobile phone.
Background technology
The personal mobile communication fast development, a lot of users have the number more than 2, corresponding client identification module (Subscriber Identity Model is hereinafter to be referred as SIM) card more than 2.In this case, can select, but bother very much, so increasing user selects to use the GSM mobile handset of supporting double SIM card with two mobile phones.
Support that at present the technology of two SIM has two kinds:
1: single GSM communication module, connect two kinds of SIM card by electronics or mechanical mode, but the same time has only one can work.Other one is in off-mode.That is to say, can only be in user mode by a number.
2: two GSM communication modules, each module are supported separately a SIM card, can realize that two numbers are in holding state simultaneously, and any one can incoming call, exhalation.
Scheme one is that two cards are singly treated in fact, though two SIM cards are physically arranged, a SIM job can only be arranged, and therefore, the GSM flow process that network is a standard is landed in start.
Scheme two is supported double-card dual-standby, but has adopted two to overlap independently system, and therefore, in individual system, the GSM flow process that network all is a standard is landed in start.
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 start network searching method of double card double standby mobile phone.This scheme supports two SIM cards 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.
For solving the problems of the technologies described above, technical scheme of the present invention is:
A kind of start network searching method of double card double standby mobile phone may further comprise the steps:
Step (1): the mobile phone hardware start, chip power, SIM card powers on, program start;
Step (2): base band master chip (Baseband Integrated Circuit is called for short BBIC) reading SIM card information comprises following four steps:
(2.1) read the network information among the SIM 1, send out message and give other task,
(2.2) read the network information among the SIM 2, send out message and give other task,
(2.3) read short message and telephone number information among the SIM 1,
(2.4) read short message and telephone number information among the SIM 2;
Step (3): the operating process of first SIM card comprises the following steps:
(3.1) SIM card control module control SIM1 search and monitoring BCCH channel if the BCCH frequency of storing in the SIM card is exactly the BCCH frequency of current area, change step 3.1.1, otherwise change step 3.1.2;
(3.1.1) mobile phone is by synchronous FCCH channel calibration frequency and SCH channel synchronization frequency, and with frequency lock, monitors the BCCH channel, changes step 3.2;
(3.1.2) select for use common mode to carry out cell selecting, comprise the following steps:
(3.1.2.1) scanning RF signal and measuring-signal mean intensity;
(3.1.2.2) lock onto the highest frequency of signal strength signal intensity;
(3.1.2.3) search FCCH channel if the frequency among the step 3.1.2.2 is the BCCH frequency, changes step 3.1.2.4, if not, changes step 3.1.2.8;
(3.1.2.4) next synchronous with this BCCH frequency by the decoding synchronous channel SCH, read the system message on the BCCH frequency then;
(3.1.2.5) judge according to the system message of reading whether this sub-district belongs to the network of this card operator, if, change step 3.1.2.6, if not, change step 3.1.2.8;
(3.1.2.6) judge that whether the sub-district is for forbidding the sub-district, if change step 3.1.2.8; If not, change step 3.1.2.7;
(3.1.2.7) whether the C1 that judges the sub-district is greater than 0, if change step 3.1.2.9; If not, change step 3.1.2.8;
(3.1.2.8), then lock onto signal strength signal intensity time high frequency, change step 3.1.2.3 if all frequencies are not also searched for to finish; If all frequencies have been searched for and finished, change step 3.1.2.10;
Step 3.2 is changeed in (3.1.2.9) resident this sub-district of mobile phone;
(3.1.2.10) mobile phone will continue to monitor all frequencies, select residently, and mobile phone interface shows no network service, commentaries on classics step 3.1.2.1;
(3.2) obtain the LAI of current area,, change step 3.3 if this sub-district LAI that obtains and the LAI on the SIM card are inconsistent; If both unanimities are changeed step 3.4;
(3.3) initiate location area updating, change step 3.5;
(3.4) carry out IMSI and adhere to, change step 3.5;
(3.5) TMSI with new LAI, BCCH list of frequency, acquisition writes SIM card;
(3.6) monitoring seek channel PCH enters holding state;
(3.7) show current network information;
Step (4):, change step 4.1 if second SIM card belongs to different operators respectively with first SIM card; If two SIM cards belong to identical operator, change step 4.2;
(4.1) if second SIM card is also surfed the Net, change step 4.1.1; Otherwise, change step 5;
After (4.1.1) second SIM card is independently finished network selecting and cell selecting according to the flow process of first SIM card in the step 3, change step 5;
The search of (4.2) second SIM cards is also monitored the BCCH channel, may further comprise the steps:
(4.2.1) read network parameter among the SIM1, share the broadcast message in the BCCH frequency;
(4.2.2), change step 4.2.3 if the LAI on the sub-district LAI that obtains and this second SIM card is inconsistent; If both unanimities are changeed step 4.2.4;
(4.2.3) initiate location area updating, change step 4.2.5;
(4.2.4) carry out IMSI and adhere to, change step 4.2.5;
(4.2.5) the TMSI information with new LAI, BCCH list of frequency and acquisition writes this second SIM card;
(4.2.6) monitor the PCH channel, enter holding state;
(4.2.7) show current network information;
Step (5): finish.
The network information in the described step 2 comprises preferred PLMN, forbids PLMN, lane place identification code LAI, BCCH tabulation, IMSI.
Described step 3.1.2.1 scanning radio frequency (RADIO FREQENCY, abbreviation RF) 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.
Current network packets of information includes network title among described step 3.7 and the 4.2.7, signal strength signal intensity.
Compared with prior art, the invention has the beneficial effects as follows:
The synchronous matching design of the present invention by software and hardware supports that two SIM cards in the same GSM terminal equipment land the GSM network simultaneously, and this GSM terminal only needs a cover communication module, as long as controller, memory only needs an antenna.Realized that promptly portable terminal is having only under the independent GSM communication module, can support two SIM card to begin search for networks, persistent district simultaneously simultaneously, and successfully enter holding state.
Description of drawings
Fig. 1-1 hardware designs block diagram of the present invention
The hardware specific design figure of Fig. 1-2 specific embodiment of the invention
Fig. 2-1 software frame figure of the present invention
Fig. 2-2 concrete software architecture diagram of the present invention
The SIM card of Fig. 3 the inventive method reads flow chart
The cell selecting flow chart of Fig. 4 the inventive method common mode
The net flow chart is looked in the different operators start of Fig. 5 the inventive method
The net flow chart is looked in the same operator start of Fig. 6 the inventive method
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.
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.Shown in Fig. 2-1 and 2-2 software frame figure of the present invention.
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 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.
When operating at SIM card, application software layer (Application Software), i.e. man-machine interface (MMI) is sent operational order to the SIM card control module, for example reads phone directory, sends SMS message; The SIM card control module is sent request to task management module (Mobility Management), and for example request sends SMS message; Task management module assignment hardware resource comprises and distributes CUP disposal ability resource, transmission receive path etc.
Handling process is divided into following two different flow processs then according to operator's difference of two SIM card correspondences.
First kind of situation, two cards belong to different operators respectively, and the start network searching method is as follows:
The start of 1 mobile phone hardware, chip power, SIM card powers on, program start.
2 base band master chip reading SIM card information.
Because amount of information is very big on the SIM card, call over and will take a long time, therefore, must start an independent task and finish and read the SIM card datamation.In addition, when reading of data, preferentially read two network informations in the SIM card, and then read SMS message, information such as phone directory.Read different SIM card, switch by analog switch.
The network information comprises:
Preferred Public Land Mobile Network (Public Land Mobile Network, hereinafter to be referred as PLMN), forbid PLMN, lane place identification code (Location Area Identity, be called for short LAI), Broadcast Control Channel (Broadcast Control Channel is called for short BCCH) tabulation, international mobile subscriber identity (international mobile subscriber identity is called for short IMSI)) etc.
In order to shorten the surf time, need preferentially the above parameter of two SIM card to be read.
3SIM1 is according to following flow operations:
3.1SIM card control module controls SIM1 searches and monitors the BCCH channel, is divided into two kinds of situations:
● the BCCH frequency of storing in the 3.1.1:SIM card is exactly the BCCH frequency of current area, then mobile phone can pass through synchronizing frequency correction channel (Frequency Control Channel, abbreviation FCCH) calibration frequency and synchronizing channel (Synchronization Channel, abbreviation SCH) synchronizing frequency, and, monitor the BCCH channel with frequency lock.
● 3.1.2: search for less than suitable bcch carrier if mobile phone is divided in (BCCHAllocation is hereinafter to be referred as BA) tabulation in Broadcast Control Channel, will carry out cell selecting with common mode so.Mobile phone will be measured the frequency of all permissions, extract 5 measured values and average on each frequency, calculate the average signal strength of each frequency, put out a form in order according to different level intensity.Then, at first adjust to the highest frequency of signal strength signal intensity, search FCCH channel judges whether this frequency is the BCCH frequency, in this way, then come with this BCCH frequency synchronously by decoding SCH, frequency is the numbering to fixed frequency, reads the system hour on the BCCH frequency then.Judge according to the system message of reading whether this sub-district belongs to the sub-district under the Ben Ka operator, and whether the sub-district is for forbidding the sub-district, whether the path loss criterion C1 of sub-district is greater than 0, if above three conditions all satisfy, mobile phone just can resident this sub-district, otherwise will reselect from inferior strong frequency, repeat above flow process.If all frequencies are all searched for and are finished, still do not find proper cell, mobile phone will continue to monitor all frequencies, select resident, the no network service of mobile phone interface demonstration.
C1: path loss principle parameter is selected sub-district or gravity treatment according to the quality of wireless channel.After mobile platform started, it can be got in touch with a public GSM PLMN (Public Land Mobile Network), therefore travelling carriage will be selected a proper cell, and therefrom extract parameter and other system message of control channel, and this selection course is called " cell selecting ".So-called proper cell is subjected to many effects limit, whether belong to selected network (under artificial network's preference pattern) as this sub-district, the sub-district access that whether is under an embargo, the priority of sub-district, whether the access grade of travelling carriage is forbidden by this sub-district and whether the quality of wireless channel can satisfy needs of communication or the like, and wherein the quality of wireless channel is the key factor of cell selecting.Stipulated that in the GSM standard parameter is called path loss criterion C1, so-called proper cell must guarantee C1>0 of this sub-district, it is defined as: C1=(A-Max (B, 0)) wherein: A=RXLEV-RXLEV_ACCESS_MIN (dBm) B=MS_TXPWR_MAX_CCH-P (dBm) RXLEV: average received level (" DedicatedReport ") P: spendable maximum power level (" the SystemInformation Type 3; 4 that posts a letter during the needed minimum incoming level MS_TXPWR_MAX_CCH:MS connecting system of travelling carriage (MS) Maximum Output Level (" CM Service Report (UL) ") RXLEV_ACCESS_MIN:MS connecting system ") C1 calculates by each travelling carriage, it has defined the overlay area of each sub-district, outside this sub-district, C1 is for negative; The boundary that its decision is selected between two adjacent sub-districts under holding state is calculated the parameter of C1 and is broadcasted in system message by network.
3.2 mobile phone is monitored the BCCH channel, obtains the LAI of current area.
3.3 if inconsistent on the sub-district LAI that obtains and the SIM card initiates location area updating.
3.4 if consistent on the sub-district LAI that obtains and the SIM card then carries out mobile switching centre's (Mobile Switching Centre is called for short MSC) and adhere to, promptly IMSI adheres to (IMSI ATTATCH).
3.5 the temporary transient identification code of mobile subscriber (Temporary Mobile Subscriber Identity is called for short TMSI) of new LAI and BCCH list of frequency, acquisition is write SIM card.
3.6 monitoring seek channel (Paging Channel is called for short PCH) enters standby (being IDLE) state.
3.7 show the network informations such as current network title, signal strength signal intensity.
4SIM card 2 is independently finished network selecting and cell selecting according to the flow process of SIM card 1 in step 3.
Second kind of situation, two cards belong to identical operator respectively, and the start network searching method is as follows:
The start of 1 mobile phone hardware, chip power, SIM card powers on, program start.
2 reading SIM card information.
Because amount of information is very big on the SIM card, call over and will take a long time, therefore, must start an independent task and finish and read the SIM datamation.What read at first is the network information, because two cards are to agree with operator, therefore, the network information only need read the information in the SIM card.The network information reads SMS message after reading and finishing again, information such as telephone number.Read different SIM card, switch by analog switch.
The BCCH channel is also monitored in 3 first SIM card searches, and two cards of flow process and first kind of situation belong to step 3 unanimity of the SIM1 of different operator respectively.
The search of 4 second SIM cards is also monitored the BCCH channel, because two SIM cards belong to same operator, physically be in same position again: same mobile phone the inside, use same antenna, same set of communication system, therefore, second SIM card need not start anew web search and resident process, but operation according to the following steps.
4.1 read the network parameter among the SIM1, share the broadcast message among the BCCH.
4.2 if inconsistent on the sub-district LAI that obtains and the SIM card initiates location area updating.
4.3 if the sub-district LAI that obtains is consistent with SIM card, then carries out MSC and adhere to, promptly IMSI adheres to (IMSI ATTATCH).
4.4 with new LAI and BCCH list of frequency, the TMSI of acquisition writes SIM card.
4.5 monitor the PCH channel, enter the IDLE state.
4.6 show the network informations such as current network title, signal strength signal intensity.
In sum, the present invention is based on that the hardware platform shown in Fig. 2-1 and the 2-2 realizes.The inventive method provides a kind of new mode, solves the problem that start back two SIM cards land network.And two SIM cards land after the network, all will be in holding state.
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.