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 dual-SIM-card dual-standby mobile terminal standby mode control method and portable terminal with lock net function.Detect the plug-in card situation in start and judge to enter and added lock net arbitration functions in the standby mode process, thereby realized the restrictions that dual-SIM-card dual-standby mobile terminal uses two card networks respectively.
For solving the problems of the technologies described above, technical scheme of the present invention is:
A kind of dual-SIM-card dual-standby mobile terminal standby mode control method may further comprise the steps:
Step 1: mobile terminal-opening, read the standby mode data in the memory device, and these data be saved in first global variable in the buffer area; If SIM1/SIM2 singly treats pattern, change step 2; If the double-card dual-standby pattern is changeed step 3;
Step 2: treat that singly pattern lock net judgement flow process may further comprise the steps:
Step 2.1: if SIM1 singly treats pattern, then detect the SIM1 draw-in groove,, detect the SIM2 draw-in groove, and whether the card in the identification draw-in groove is available if SIM2 singly treats pattern;
Step 2.2:, enter no card start-up if the card in the draw-in groove can not be discerned, card not in the unavailable or draw-in groove; If block available, be ready to, change step 2.3;
Step 2.3: judge the SIM card network lock state in the draw-in groove,, then normally start mobile phone if close; If card network lock state is opened, change step 2.4;
Step 2.4: to the MCC of SIM card, the corresponding network information PLMN tabulation in MNC value and the memory device compares, and judges whether coupling, if coupling normally starts portable terminal; If do not match, prompting user SIM card is refused; Change step 4;
Step 3: the judgement flow process of double-card dual-standby pattern lock net may further comprise the steps:
Step 3.1:SIM1 card initialization judges whether the SIM1 card is available;
Step 3.2:, change step 3.3 if the SIM1 card can not be discerned, card not in the unavailable or draw-in groove; If the SIM1 card is ready to, change step 3.4;
Step 3.3: putting buffering area SIM1 card state is no card state, reads the state information of SIM2 card in the buffering area, if ready, closes SIM1 card protocol stack, and standby mode is that SIM2 singly treats, starts mobile phone, changes step 4; If the state information of SIM2 card is not for having card, can not discerning or the dead card state, then standby mode is no mode card, changes step 4;
Step 3.4: judge SIM1 card network lock state,, change step 3.6 if close; If SIM1 card network lock state changes step 3.5 for opening;
Step 3.5: the tabulation of the corresponding SIM1 network information PLMN in MCC, MNC value and the memory device of SIM1 card is compared, judge whether coupling, if coupling is put in the buffer area SIM1 state information global variable for preparing ready state; If do not match, put that the SIM1 state information is no card state in the buffer area; Change step 3.7;
Step 3.6: put in the buffer area SIM1 state information global variable for preparing ready state, change step 3.7.
Step 3.7: read the state information of SIM2 card in the buffering area and the state information of SIM1 card, if two all is to prepare ready state, then standby mode is the double-card dual-standby pattern, starts mobile phone, changes step 4; If SIM1 is no card state, SIM2 closes SIM1 card protocol stack for ready, and standby mode is defined as SIM2 and singly treats, starts mobile phone, changes step 4; If SIM2 is no card state, SIM1 closes SIM2 card protocol stack for ready, and standby mode is defined as SIM1 and singly treats, starts mobile phone, changes step 4; If the two all is no card state, then point out user's SIM card to be refused, operate by the user and carry out power-off operation; If the SIM2 card is the no initializtion state, then finish this flow process, wait SIM2 card initialization is finished, and changes step 3.1;
Step 4: finish.
Before the start, want earlier default network lock information to be written in the memory device, described network lock information comprises SIM1, SIM2 network lock information totally two covers, the network information PLMN tabulation that every cover all has network lock On/Off state and allows to use, described network information PLMN tabulation comprises MCC and MNC.
A kind of dual-SIM-card dual-standby mobile terminal, be used to implement above-mentioned standby mode control method, comprise gsm communication module, radio frequency part, memory device, SIM1 draw-in groove and SIM2 draw-in groove, power module, keyboard input module, LCD display module, multi-media module, this portable terminal also comprises the standby mode control module, this module stores is used to control the standby mode of described dual-SIM-card dual-standby mobile terminal in described memory device.
Described gsm module baseband processing chip adopts the SPREADTRUM SC6600D chip of spreadtrum company, and described memory device adopts SAMSUNG FLASH.
Compared with prior art, the invention has the beneficial effects as follows:
The present invention has net lock function double-card dual-standby mobile communication terminal standby mode control method, detect the plug-in card situation in start and judge to enter and added lock net arbitration functions in the standby mode process, thereby realized the restrictions that double card double standby mobile phone uses two card networks respectively.
Embodiment
Below in conjunction with drawings and Examples the specific embodiment of the present invention is described in further detail, but should limit protection scope of the present invention with this.
See also Fig. 4.Dual-SIM-card dual-standby mobile terminal of the present invention, be used to implement standby mode control method of the present invention, comprise gsm communication module, standby mode control module, radio frequency part, also comprise peripheral equipment of terminal such as memory device, SIM1 draw-in groove and SIM2 draw-in groove, power module, keyboard input module, LCD display module, multi-media module.Wherein, the gsm communication module is a primary module, is responsible for the management and the allotment of public collection resources such as keyboard, LCD display module, loud speaker, microphone, memory; Be responsible for GSM encoding and decoding speech, channel coding/decoding, encrypt and decrypt, equilibrium and to various voice, the modulation of digital information is amplified, emission, reception, demodulation; Realization multimedia segment control, provide man-machine interface (button input), backlight, renovate function such as detection; Provide the SIM card interface, realize memory control and charging controlled function; The interface of external equipments such as data equipment, earphone, charger is provided.This portable terminal also comprises the standby mode control module, and this module stores is used to control the standby mode of described dual-SIM-card dual-standby mobile terminal in described memory device, realizes the use of two SIM cards in network.
The gsm module baseband processing chip can adopt SPREADTRUM SC6600D chip, and described memory device can adopt SAMSUNG FLASH.
The present invention has net lock function double-card dual-standby mobile communication terminal standby mode control method, need interdependently realize in the cell phone software of integral body.
The standby mode control module is an independently module, and several public interface functions are provided, and for other module invokes, for example gsm module is opened and closed protocol stack etc.
Default for the convenience of the user standby mode reduces standby mode and judges required operand, establishes a standby mode storage in dual-SIM-card dual-standby mobile terminal memory device zone.During each the start, read these standby mode data earlier, be saved in after reading out in first global variable in the buffer area.
Before the start, earlier default network lock information to be written in certain zone of mobile phone storage equipment, can read easily.Described network lock information comprises SIM1, SIM2 network lock information totally two covers, the network information PLMN tabulation that every cover all has network lock On/Off state and allows to use.
Described network information PLMN tabulation comprises MCC (Mobile Country Code, Mobile Country Code MCC) and MNC (Mobile Network Code, mobile network code, MNC), and network information tabulation number can need to set according to the client.
After start enters flow process, need global variable be set in buffer area, be used for preserving state information after the initialization of SIM1 card and SIM2 card, comprise no initializtion, ready, do not have card, card can not be discerned or state such as dead card.The SIM1 card of having preserved in order to follow-up foundation and the state of SIM2 card are judged and are entered the different stand pattern.
See also Fig. 1~3.Dual-SIM-card dual-standby mobile terminal standby mode control method of the present invention may further comprise the steps:
Step 1: mobile terminal-opening, read the standby mode data in the memory device, and these data be saved in first global variable in the buffer area; If SIM1/SIM2 singly treats pattern, change step 2; If the double-card dual-standby pattern is changeed step 3;
Step 2: treat that singly pattern lock net judgement flow process may further comprise the steps
Step 2.1: if SIM1 singly treats pattern, then detect the SIM1 draw-in groove, if SIM2 singly treats pattern, detect the SIM2 draw-in groove, whether the card in the identification draw-in groove is available;
Step 2.2:, enter no card start-up if the card in the draw-in groove can not be discerned, card not in the unavailable or draw-in groove; If block available, be ready to, change step 2.3;
Step 2.3: judge the SIM card network lock state in the draw-in groove,, then normally start mobile phone if close; If card network lock state changes step 2.4 for opening;
Step 2.4: the tabulation of the corresponding network information PLMN in MCC, MNC value and the memory device of SIM card is compared, judge whether coupling, if coupling normally starts portable terminal; If do not match, prompting user SIM card is refused; Change step 4;
Step 3: double-card dual-standby pattern lock net judges that flow process may further comprise the steps
Step 3.1:SIM1 card initialization judges whether the SIM1 card is available;
Step 3.2:, change step 3.3 if the SIM1 card can not be discerned, card not in the unavailable or draw-in groove; If the SIM1 card is ready to, change step 3.4;
Step 3.3: putting buffering area SIM1 card state is no card state, reads the state information of SIM2 card in the buffering area, if ready, closes SIM1 card protocol stack, and standby mode is that SIM2 singly treats, starts mobile phone, changes step 4; If the state information of SIM2 card is not for having card, can not discerning or the dead card state, then standby mode is no mode card, changes step 4;
Step 3.4: judge SIM1 card network lock state,, change step 3.6 if close; If card network lock state is opened, change step 3.5;
Step 3.5: tabulation compares to the corresponding SIM1 network information PLMN in MCC, MNC value and the memory device of SIM1 card, judges whether coupling, if coupling is put in the buffer area SIM1 state information global variable for preparing ready state; If do not match, put that the SIM2 state information is no card state in the buffer area; Change step 3.7;
Step 3.6: put in the buffer area SIM1 state information global variable for preparing ready state, change step 3.7.
Step 3.7: read the state information of SIM2 card in the buffering area and the state information of SIM1 card, if two all is to prepare ready state, then standby mode is the double-card dual-standby pattern, starts mobile phone, changes step 4; If SIM1 is no card state, SIM2 closes SIM1 card protocol stack for ready, and standby mode is defined as SIM2 and singly treats, starts mobile phone, changes step 4; If SIM2 is for being no card state, SIM1 closes SIM2 card protocol stack for ready, and standby mode is defined as SIM1 and singly treats, starts mobile phone, changes step 4; If the two all is no card state, then point out user's SIM card to be refused, operate by the user and carry out power-off operation; If the SIM2 card is the no initializtion state, then finish this flow process, wait SIM2 card initialization is finished, and changes step 3.1;
Step 4: finish.
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.