CN106454801A - Network switching method and terminal - Google Patents

Network switching method and terminal Download PDF

Info

Publication number
CN106454801A
CN106454801A CN201611151108.6A CN201611151108A CN106454801A CN 106454801 A CN106454801 A CN 106454801A CN 201611151108 A CN201611151108 A CN 201611151108A CN 106454801 A CN106454801 A CN 106454801A
Authority
CN
China
Prior art keywords
cell
sim
network
terminal
tac
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611151108.6A
Other languages
Chinese (zh)
Other versions
CN106454801B (en
Inventor
崔恒彬
吴鸣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611151108.6A priority Critical patent/CN106454801B/en
Publication of CN106454801A publication Critical patent/CN106454801A/en
Application granted granted Critical
Publication of CN106454801B publication Critical patent/CN106454801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The invention relates to a network switching method and a terminal, and belongs to the technical field of information processing. The method comprises the steps of when detecting that a first SIM card is switched into a second SIM card, emptying a TAC prohibit list and switching a currently connected mobile network into a mobile network corresponding to the second SIM card according to identity information of the second SIM card, thereby achieving network switching. Before the connected mobile network is switched into the mobile network corresponding to the second SIM card, the terminal empties the stored TAC prohibit list, so that the condition that the terminal is currently connected to the mobile network through the second SIM card is not affected due to the TAC prohibit list stored before network switching when the currently connected mobile network is switched into the mobile network connected with the second SIM card, that is to say, the condition that the terminal cannot be connected to the mobile network through the second SIM card when a currently located cell belongs to the cell in the TAC prohibit list is avoided.

Description

Method for switching network and terminal
Technical field
It relates to technical field of information processing, more particularly, to a kind of method for switching network and terminal.
Background technology
With the development of communication technology, the terminal such as mobile phone, panel computer can pass through SIM (Subscriber Identity Module client identification module) access to mobile network, realize the information exchange and other-end between.And it is near Nian Lai, with the development of double-card dual-standby technology, terminal can switch between double SIM card, to switch the terminal into difference Mobile network, meet its different network demand.
In correlation technique, the process of realizing of network switching is:When terminal is detected, the 2nd SIM is switched to by the first SIM During card, determine this corresponding identity information of the second SIM, and the identity information according to this second SIM, by the current shifting connecting Dynamic network switching is to the corresponding mobile network of this second SIM.
Content of the invention
For overcoming problem present in correlation technique, present disclose provides a kind of method for switching network and terminal.
According to the embodiment of the present disclosure in a first aspect, providing a kind of method for switching network method, methods described is applied to double In the terminal of card single-pass, described terminal is provided with the first client identification module SIM and the second SIM, methods described includes:
When detect described second SIM is switched to by described first SIM when, will storage Tracking Area Code TAC (tracking area code, Tracking Area Code) banned list empties, and described TAC banned list forbids carrying out net for storage Cell TAC that network connects;
Determine the identity information of described second SIM;
According to the identity information of described second SIM, current connected mobile network is switched to described second SIM Corresponding mobile network, to realize network switching.
Alternatively, the described identity information according to described second SIM, current connected mobile network is switched to institute After stating the corresponding mobile network of the second SIM, also include:
Determine the cell of network connection failure;
The TAC of the cell of described network connection failure is added in the described TAC banned list after emptying, to update State TAC banned list.
Alternatively, the described cell determining network connection failure, including:
When network connection failure is detected, determination carries out the connection failure number of times of network connection being presently in cell;
When described connection failure number of times exceedes preset times threshold value, the cell being presently in is defined as network connection and loses The cell losing.
Alternatively, the described cell determining network connection failure, including:
Judge whether the position being presently in changes;
When the position being presently in changes, detection be presently in the signal energy of cell and described be presently in little The signal energy of the adjacent cell in area;
When being presently in the signal energy of cell described in the signal energy of described adjacent cell exceedes, re-start network note Volume, to access described adjacent cell;
When receiving network registry failed message, described adjacent cell is defined as the cell of network connection failure.
Alternatively, described mobile network is LTE (Long Term Evolution, Long Term Evolution) network.
According to the second aspect of the embodiment of the present disclosure, provide a kind of terminal, described terminal includes:
Empty module, for when detect described second SIM is switched to by described first SIM when, by storage with Track region code TAC banned list empties, and described TAC banned list is used for storage and forbids carrying out cell TAC of network connection;
First determining module, for determining the identity information of described second SIM;
Handover module, for the identity information according to described second SIM, current connected mobile network is switched to The corresponding mobile network of described second SIM, to realize network switching.
Alternatively, described terminal also includes:
Second determining module, for determining the cell of network connection failure;
Add module, forbids arranging for the TAC of the cell of described network connection failure is added to the described TAC after emptying In table, to update described TAC banned list.
Alternatively, described second determining module includes:
First determination sub-module, for when network connection failure is detected, determines and carries out network being presently in cell The connection failure number of times connecting;
Second determination sub-module, for when described connection failure number of times exceedes preset times threshold value, by be presently in Cell is defined as the cell of network connection failure.
Alternatively, described second determining module includes:
Judging submodule, whether the position for judging to be presently in changes;
Detection sub-module, during for changing when the position being presently in, detection is presently in the signal energy of cell Signal energy with the described adjacent cell being presently in cell;
Registration submodule, for being presently in the signal energy of cell when the signal energy of described adjacent cell described in exceeding When, re-start network registry, to access described adjacent cell;
3rd determination sub-module, for when receiving network registry failed message, described adjacent cell being defined as network The cell of connection failure.
Alternatively, described mobile network is LTE network.
A kind of third aspect according to the embodiment of the present disclosure, there is provided terminal, described terminal includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When detect described second SIM is switched to by described first SIM when, by storage Tracking Area Code TAC prohibit Only list empties, and described TAC banned list is used for storage and forbids carrying out cell TAC of network connection;
Determine the identity information of described second SIM;
According to the identity information of described second SIM, current connected mobile network is switched to described second SIM Corresponding mobile network, to realize network switching.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:In the disclosed embodiments, by In before the mobile network being connected is switched to the corresponding mobile network of the second SIM, the TAC of storage is forbidden arranging by terminal Table empties, therefore, when current connected mobile network switches to the second SIM and connects mobile network, will not be because of network The TAC banned list of storage before switching, and affect current second SIM that passes through of terminal and connect mobile network, namely, it is to avoid go out When the cell being now presently in belongs to the cell in this TAC banned list, lead to this terminal cannot be linked into by the second SIM The situation of mobile network.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the present invention Example, and be used for explaining the principle of the present invention together with description.
Fig. 1 is a kind of method for switching network flow chart that the embodiment of the present disclosure provides;
Fig. 2 is another kind of method for switching network flow chart that the embodiment of the present disclosure provides;
Fig. 3 A is a kind of terminal block diagram that the embodiment of the present disclosure provides;
Fig. 3 B is another kind of terminal block diagram that the embodiment of the present disclosure provides;
Fig. 3 C is one kind the second determining module block diagram that the embodiment of the present disclosure provides;
Fig. 3 D is another kind the second determining module block diagram that the embodiment of the present disclosure provides;
Fig. 4 is another kind of terminal block diagram that the embodiment of the present disclosure provides.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the present invention.
Before detailed explanation is carried out to the embodiment of the present disclosure, first the application scenarios of the embodiment of the present disclosure are given Introduce.Due in correlation technique, during being communicated using the first SIM, terminal corresponds to according to connecting the first SIM Mobile network connection, the TAC banned list before the current time that is stored with, this TAC banned list includes multiple little The TAC in area, terminal cannot connect to mobile network in the plurality of cell.When terminal is switched to the second SIM by the first SIM When, above-mentioned TAC banned list still exists, if the cell being presently in belongs to the cell in this TAC banned list, will lead to this Terminal cannot be linked into mobile network by the second SIM.Therefore, the embodiment of the present disclosure provides a kind of method for switching network, When detect the second SIM is switched to by the first SIM when, TAC banned list is emptied, and the body according to this second SIM Part information, current connected mobile network is switched to the corresponding mobile network of the second SIM, realizes network switching.Due to Before the mobile network being connected is switched to the corresponding mobile network of the second SIM, the TAC banned list that terminal will store Empty, therefore, when connecting mobile network by the second SIM, will not forbid arranging because of the TAC of storage before network switching Table, and affect current second SIM that passes through of terminal and connect mobile network, that is, avoiding the occurrence of the cell being presently in belong to this During cell in TAC banned list, lead to this terminal cannot be linked into the situation of mobile network by the second SIM.
Fig. 1 is a kind of method for switching network flow chart that the embodiment of the present disclosure provides, and this method for switching network is used for double card In the terminal of single-pass, this terminal is provided with the first SIM and the second SIM, as shown in figure 1, this method for switching network includes Following steps.
In a step 101, when detect the second SIM is switched to by the first SIM when, will storage TAC banned list Empty, this TAC banned list is used for storage and forbids carrying out cell TAC of network connection.
In a step 102, determine the identity information of the second SIM.
In step 103, the identity information according to the second SIM, current connected mobile network is switched to second The corresponding mobile network of SIM, to realize network switching.
In the embodiment of the present disclosure, by the mobile network being connected being switched to the corresponding mobile network of the second SIM Before, the TAC banned list of storage is emptied by terminal, therefore, switches to the second SIM even in current connected mobile network When meeting mobile network, because of the TAC banned list of storage before network switching, and terminal will not be affected and currently passes through the 2nd SIM Card connects mobile network, that is, when avoiding the occurrence of the cell that the cell being presently in belongs in this TAC banned list, leading to this Terminal cannot be linked into the situation of mobile network by the second SIM.
Alternatively, the identity information according to the second SIM, current connected mobile network is switched to the second SIM After corresponding mobile network, also include:
Determine the cell of network connection failure;
The TAC of the cell of this network connection failure is added in the TAC banned list after emptying, to update this TAC taboo Only list.
Optionally it is determined that the cell of network connection failure, including:
When network connection failure is detected, determination carries out the connection failure number of times of network connection being presently in cell;
When this connection failure number of times exceedes preset times threshold value, the cell being presently in is defined as network connection failure Cell.
Optionally it is determined that the cell of network connection failure, including:
Judge whether the position being presently in changes;
When the position being presently in changes, detection is presently in the signal energy of cell and is presently in cell The signal energy of adjacent cell;
When the signal energy of adjacent cell exceedes the signal energy being presently in cell, re-start network registry, to connect Enter this adjacent cell;
When receiving network registry failed message, this adjacent cell is defined as the cell of network connection failure.
Alternatively, described mobile network is LTE network.
Above-mentioned all optional technical schemes, all can be according to the alternative embodiment arbitrarily combining to form the disclosure, and the disclosure is real Apply example this is no longer repeated one by one.
Fig. 2 is another kind of method for switching network flow chart that the embodiment of the present disclosure provides, and this method for switching network is applied to In the terminal of double card single-pass, this terminal is provided with the first SIM and the second SIM, as shown in Fig. 2 this method for switching network Comprise the following steps.
In step 201, when detect the second SIM is switched to by the first SIM when, will storage TAC banned list Empty, this TAC banned list is used for storage and forbids carrying out cell TAC of network connection.
In the disclosed embodiments, terminal is provided with two SIMs, for convenience of description, terminal is currently made SIM as the first SIM, using the SIM being used after network switching as the second SIM.In addition, terminal is using During one SIM and other-end carry out information exchange, terminal is to be realized with other-end by the cell being presently in Information exchange, and each cell has oneself corresponding TAC.If terminal network connection in the cell being presently in lost Lose, the TAC of this cell can be stored in TAC banned list for terminal, it is to avoid terminal carries out net in same cell repeated attempt Network connects.That is, in terminal during using the first SIM, terminal is according to connecting the corresponding mobile network of the first SIM Connection, the TAC banned list before the current time that is stored with.Wherein, this mobile network can be LTE network, LTE net Network is the evolvement network of existing 3G network, and LTE network is widely used because of its efficient information exchange speed.
Because the cell in this TAC banned list is that terminal is added during using the first SIM, when terminal is cut When shifting to the second SIM, when the cell that terminal is presently in belongs to the cell in above-mentioned TAC banned list, this cell corresponds to MME (Mobility Management Entity, mobile management entity) may allow this terminal access this cell, but by Belong to the cell in TAC banned list in this cell, lead to terminal cannot access this cell by the second SIM.Therefore, at this In open embodiment, when terminal switches to the second SIM by the first SIM, in order that terminal can smoothly connect to second The corresponding mobile network of SIM, when terminal detects and is switched to the second SIM by the first SIM, terminal can be when will be current Between before storage TAC banned list empty.
In addition, in the disclosed embodiments, this method for switching network is applied in the terminal of double card single-pass, for double card list Logical terminal, mainly has manual switching and the two kinds of network switching modes that automatically switch at present.Manual switching, namely only work as terminal When the instruction for network switching is detected, terminal just can switch to the second SIM by the first SIM, for example, has in the terminal " network switching " option, when user is somebody's turn to do " network switching " option by predetermined registration operation triggering, terminal will detect for network The instruction of switching, then switches to the second SIM by the first SIM.Wherein, predetermined registration operation can be clicking operation, slip behaviour Make etc..Automatically switch, namely in the terminal control module be installed, this control module can ceaselessly two mobile networks it Between switch, and automatically search for network, when this control module switches between the two networks, terminal may also detect that this network Handover operation.Therefore, no matter terminal manually switches or automatically switches is realized network switching, terminal may detect that by First SIM is switched to the operation of the second SIM, then execution step 201.
In step 202., determine the identity information of the second SIM.
After the TAC banned list storing before terminal is by current time empties, terminal can be by network by a SIM Card switches to the second SIM, then accesses the corresponding mobile network of the second SIM.Access the corresponding shifting of the second SIM in terminal During dynamic network, the AUC in MME needs the identity information of this second SIM to be verified, to determine whether Terminal is allowed to access the corresponding mobile network of this second SIM, therefore, terminal needs first to determine the identity letter of this second SIM Breath.
Wherein, the identity information of the second SIM is used for this second SIM of unique mark, in the authentication of the 2nd SIM and MME In be previously stored with the heart the identity information of this second SIM, the identity information of this second SIM includes IMSI (International Mobile Subscriber Identity, international mobile subscriber identity) and Ki (Key Identifier, mobile phone identification key) etc..IMSI is used for unique identification mobile subscriber namely SIM, and Ki is SIM and operation Between business encryption data transmission key, and IMSI and Ki use cooperatively can be used to verify the identity information of this second SIM.
In step 203, the identity information according to the second SIM, current connected mobile network is switched to second The corresponding mobile network of SIM, to realize network switching.
In the disclosed embodiments, terminal, can be by the body of the second SIM after the identity information determining the second SIM Part information is sent to AUC, when AUC receives the identity information of this second SIM, to this second SIM Identity information is verified, if the verification passes, then allows this terminal to access this second SIM by the second SIM corresponding Mobile network, realizes terminal and switches to the corresponding mobile network of the second SIM by the corresponding mobile network of the first SIM.
In a kind of possible implementation, the realization that AUC is verified to the identity information of this second SIM Process can be:When AUC receives the identity information of this second SIM, by this second SIM identity information bag IMSI and Ki including, calculates SRES (Signed Response, sign response), if the SRES that calculates of AUC and The SRES that second SIM is calculated by IMSI with Ki is identical, then authenticate successfully, shows that terminal can access this second SIM Corresponding mobile network.Otherwise authenticate unsuccessful, namely terminal does not have authority to access the corresponding mobile network of this second SIM.
Alternatively, in the disclosed embodiments, after terminal passes through the second SIM access to mobile network, namely at end During end carries out information exchange by the second SIM and other-end, terminal can correspond to according to accessing this second SIM Mobile network situation, the TAC banned list after emptying is updated.TAC banned list after terminal-pair empties is carried out Renewal can be realized by step 204.
In step 204, determine the cell of network connection failure, and the TAC of the cell of this network connection failure is added In TAC banned list to after empty, to update this TAC banned list.
After terminal accesses the corresponding mobile network of the second SIM, terminal is currently likely to occur connection network failure feelings Condition, now in order to avoid terminal repeated attempt accesses this cell, the TAC of the cell of network connection failure can be added to by terminal So that terminal cannot access this network connection failure cell by the second SIM in TAC banned list after emptying.
Wherein, terminal determine network connection failure cell can by following two possible by way of realize.
The first possible mode, occurs interrupting with the corresponding mobile network of this second SIM when terminal is current, namely net During network connection failure, determine connection failure number of times, when connection failure number of times exceedes preset times threshold value, little by be presently in Area is defined as the cell of network connection failure.
It should be noted that when network connection failure is detected, if directly the TAC of the cell being presently in is added To in TAC banned list, terminal will be unable to be linked into this cell again, especially, when the network of the cell that this is presently in It is that of short duration appearance is abnormal, the TAC of the cell being now presently in this is added in TAC banned list, leads to the net of this cell After network recovers normal, terminal also cannot access the cell that this is presently in.Therefore, in the disclosed embodiments, when terminal detects During to network connection failure, record connection failure number of times, and start timing, when timing time reaches, re-start network even Connecing, if re-start network connection still failed, updating connection failure number of times, repeat to start timing, circulation executes above-mentioned behaviour Make, until terminal accesses the corresponding mobile network of this second SIM, or connection failure number of times exceedes preset times threshold value.When even When connecing the frequency of failure and exceeding preset times threshold value, show that exception persistently in the network of the cell being presently in, now terminal can So that the cell being presently in be defined as the cell of network connection failure, and the TAC of the cell that this is presently in is added to clearly In TAC banned list after sky, it is to avoid terminal repeated attempt accesses the cell that this is presently in.
Wherein, timing time is the time pre-setting in terminal, and this timing time can be 5s, 10s or 15s etc..In advance If frequency threshold value is the number of times pre-setting in terminal, this preset times threshold value can be inferior for 5 times, 10 times or 20.
For example, timing time is 5s, and preset times threshold value is 5 times, when terminal detects network connection failure, starts to count When, and record connection failure number of times for 1 time, when timing time 5s reaches, re-start network connection, circulation executes, if More than 5 times, terminal, still without accessing this cell of being presently in, shows the network of this cell being presently in connection failure number of times Persistently occur abnormal, therefore, the cell that this is presently in can be defined as the cell of network connection failure by terminal.
The possible mode of second, when the position being presently in changes, detection is presently in the signal energy of cell Measure and be presently in the signal energy of the adjacent cell of cell, when the signal energy of adjacent cell exceedes the signal energy being presently in cell During amount, re-start network registry, to access this adjacent cell.When receiving network registry failed message, will be true for this adjacent cell It is set to the cell of network connection failure.
It should be noted that terminal is after by the second SIM access to mobile network, only terminal is in certain cell Network coverage when, this terminal just can receive the system message of this cell.Network coverage due to neighbor cell There is common factor, therefore, terminal, when current location, except receiving the system message of the cell being presently in, can also receive The system message of other cells, this other cell namely adjacent cell.
In the possible mode of second, when the position being presently in changes, terminal receives and is presently in cell System message and be presently in cell adjacent cell system message, according to the system message being presently in cell and current institute The system message of the adjacent cell of place's cell, the letter determining the signal energy being presently in cell and being presently in the adjacent cell of cell Number energy, then judges whether to need to carry out location updating.That is, being presently in cell when the signal energy of adjacent cell exceedes During signal energy, terminal re-starts network registry, to access this adjacent cell.
Wherein, terminal re-starts network registry, that is, terminal sends the 2nd SIM to the corresponding MME of the second SIM The identity information of card and the TAC of this adjacent cell, when MME receives the TAC of the identity information of the second SIM and this adjacent cell, Judge the TAC of this adjacent cell whether belong to forbid this second SIM access cell TAC, when this adjacent cell be not belonging to prohibit Stop the access of this second SIM the TAC of cell when, update the TAC of the residing cell of this second SIM, that is, by this adjacent cell The TAC of cell that is presently in as this terminal of TAC so that MME can follow the tracks of this terminal, and send corresponding industry to this terminal Business.When MME update this second SIM be presently in cell TAC when, determine this terminal can by second SIM access This adjacent cell, then sends network registry success message to terminal.
Correspondingly, when the TAC that MME determines this adjacent cell belongs to the TAC of the cell forbidding that this second SIM accesses, really This terminal fixed does not have authority to access this adjacent cell by the second SIM, sends network registry failed message to terminal.When terminal connects When receiving network registry failed message, this adjacent cell is defined as the cell of network connection failure, and the TAC of this adjacent cell is added It is added in TAC banned list, it is to avoid terminal iterates through the second SIM and accesses this adjacent cell
Wherein, the system message of the system message being presently in cell and the adjacent cell being presently in cell includes accordingly little PLMN belonging to the TAC in area, respective cell ((Public Land Mobile Network, public land mobile network) and The information such as the signal energy of respective cell.PLMN is used for distinguishing different operators, is presently in cell when terminal receives During the system message of adjacent cell, can first judge whether the PLMN belonging to this adjacent cell belongs to the PLMN of terminal unit contractual, work as adjacent cell When affiliated PLMN is the PLMN of terminal unit contractual, terminal just continues executing with the need of the operation carrying out location updating.Especially, When PLMN belonging to when cell is not the PLMN of terminal unit contractual, terminal can not possibly access this adjacent cell, namely is not carried out The operation of location updating.
In the disclosed embodiments by the mobile network being connected is being switched to the corresponding mobile network of the second SIM Before, the TAC banned list of storage is emptied by terminal, therefore, switches to the second SIM in the current mobile network connecting and connects During mobile network, because of the TAC banned list of storage before network switching, and terminal will not be affected and currently passes through the second SIM Connect mobile network, that is, when avoiding the occurrence of the cell that the cell being presently in belongs in this TAC banned list, leading to this end End cannot be linked into the situation of mobile network by the second SIM.
Fig. 3 A is a kind of block diagram of terminal 300 that the embodiment of the present disclosure provides.Referring to Fig. 3 A, this terminal includes emptying module 301st, the first determining module 302 and handover module 303.
Empty module 301, for when detect the second SIM is switched to by the first SIM when, will storage tracing area Code TAC banned list empties, and this TAC banned list is used for storage and forbids carrying out cell TAC of network connection;
First determining module 302, for determining the identity information of the second SIM;
Handover module 303, for the identity information according to the second SIM, current connected mobile network is switched to The corresponding mobile network of second SIM, to realize network switching.
Alternatively, referring to Fig. 3 B, this terminal also includes the second determining module 304 and add module 305:
Second determining module 304, for determining the cell of network connection failure;
Add module 305, for being added to the TAC banned list after emptying by the TAC of the cell of this network connection failure In, to update this TAC banned list.
Alternatively, referring to Fig. 3 C, this second determining module 304 includes the first determination sub-module 3041 and the second determination submodule Block 3042:
First determination sub-module 3041, for when network connection failure is detected, determines and carries out being presently in cell The connection failure number of times of network connection;
Second determination sub-module 3042, for when this connection failure number of times exceedes preset times threshold value, being presently in Cell be defined as the cell of network connection failure.
Alternatively, referring to Fig. 3 D, this second determining module includes judging submodule 3043, detection sub-module 3044, registration Submodule 3045 and the 3rd determination sub-module 3046:
Judging submodule 3043, whether the position for judging to be presently in changes;
Detection sub-module 3044, during for changing when the position being presently in, detection is presently in the signal of cell Energy and be presently in cell adjacent cell signal energy;
Registration submodule 3045 is for when the signal energy of adjacent cell exceedes the signal energy being presently in cell, heavy Newly carry out network registry, to access this adjacent cell;
3rd determination sub-module 3046, for when receiving network registry failed message, this adjacent cell being defined as net The cell of network connection failure.
Alternatively, described mobile network is LTE network.
In the disclosed embodiments, by the mobile network being connected is being switched to the corresponding mobile network of the second SIM Before network, the TAC banned list of storage is emptied by terminal, therefore, switches to the second SIM even in the current mobile network connecting When meeting mobile network, because of the TAC banned list of storage before network switching, and terminal will not be affected and currently passes through the 2nd SIM Card connects mobile network, that is, when avoiding the occurrence of the cell that the cell being presently in belongs in this TAC banned list, leading to this Terminal cannot be linked into the situation of mobile network by the second SIM.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is the block diagram of another kind of terminal 400 that the embodiment of the present disclosure provides.Be provided with this terminal the first SIM and Second SIM, for example, terminal 400 can be mobile phone etc..
With reference to Fig. 4, terminal 400 can include following one or more assemblies:Process assembly 402, memorizer 404, power supply Assembly 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communication component 416.
The integrated operation of the usual control terminal 400 of process assembly 402, such as with display, call, data communication, phase Machine operation and record operate associated operation.Process assembly 402 can include one or more processors 420 and refer to execute Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 402 can include one or more modules, just Interaction between process assembly 402 and other assemblies.For example, process assembly 402 can include multi-media module, many to facilitate Interaction between media component 408 and process assembly 402.
Memorizer 404 is configured to store various types of data to support the operation in terminal 400.The showing of these data Example includes the instruction for any application program of operation or method in terminal 400, contact data, telephone book data, disappears Breath, picture, video etc..Memorizer 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of terminal 400.Power supply module 406 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for terminal 400, the assembly that power supply is associated.
Multimedia groupware 408 includes the screen of one output interface of offer between this terminal 400 and user.At some In embodiment, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen May be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensors With the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or sliding action Border, but also the detection persistent period related to described touch or slide and pressure.In certain embodiments, multimedia Assembly 408 includes a front-facing camera and/or post-positioned pick-up head.When terminal 400 is in operator scheme, such as screening-mode or regard During frequency pattern, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and after Put the optical lens system that photographic head can be a fixation or there is focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured to output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when terminal 400 is in operator scheme, during as call model, logging mode and speech recognition mode, mike is joined It is set to reception external audio signal.The audio signal being received can be further stored in memorizer 404 or via communication set Part 416 sends.In certain embodiments, audio-frequency assembly 410 also includes a speaker, for exports audio signal.
, for providing interface between process assembly 402 and peripheral interface module, above-mentioned peripheral interface module can for I/O interface 412 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, for providing the state of various aspects to comment for terminal 400 Estimate.For example, sensor cluster 414 can detect/the closed mode of opening of terminal 400, and the relative localization of assembly is for example described Assembly is display and the keypad of terminal 400, and sensor cluster 414 can be with detection terminal 400 or 400 1 assemblies of terminal Position change, user is presence or absence of with what terminal 400 contacted, terminal 400 orientation or acceleration/deceleration and terminal 400 Temperature change.Sensor cluster 414 can include proximity transducer, is configured to the detection when not having any physical contact The presence of object nearby.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for becoming Use as in application.In certain embodiments, this sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between terminal 400 and other equipment.Terminal 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement In example, communication component 416 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, described communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example As, RF identification (RFID) technology can be based in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, terminal 400 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided As included the memorizer 404 instructing, above-mentioned instruction can be executed by the processor 420 of terminal 400 to complete said method.For example, Described non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in described storage medium is held by the processor of terminal So that terminal is able to carry out a kind of method for switching network during row, methods described includes:
When detect the second SIM is switched to by the first SIM when, the TAC banned list of storage is emptied, this TAC prohibit Only list is used for storing and forbids carrying out cell TAC of network connection;
Determine the identity information of the second SIM;
According to the identity information of the second SIM, current connected mobile network is switched to the corresponding shifting of the second SIM Dynamic network, to realize network switching.
Alternatively, the identity information according to the second SIM, current connected mobile network is switched to the second SIM After corresponding mobile network, also include:
Determine the cell of network connection failure;
The TAC of the cell of this network connection failure is added in the TAC banned list after emptying, to update this TAC taboo Only list.
Optionally it is determined that the cell of network connection failure, including:
When network connection failure is detected, determination carries out the connection failure number of times of network connection being presently in cell;
When this connection failure number of times exceedes preset times threshold value, the cell being presently in is defined as network connection failure Cell.
Optionally it is determined that the cell of network connection failure, including:
Judge whether the position being presently in changes;
When the position being presently in changes, detection is presently in the signal energy of cell and is presently in cell The signal energy of adjacent cell;
When the signal energy of adjacent cell exceedes the signal energy being presently in cell, re-start network registry, to connect Enter this adjacent cell;
When receiving network registry failed message, this adjacent cell is defined as the cell of network connection failure.
Alternatively, described mobile network is LTE network.
In the disclosed embodiments, by the mobile network being connected is being switched to the corresponding mobile network of the second SIM Before network, the TAC banned list of storage is emptied by terminal, therefore, switches to the second SIM even in the current mobile network connecting When meeting mobile network, because of the TAC banned list of storage before network switching, and terminal will not be affected and currently passes through the 2nd SIM Card connects mobile network, that is, when avoiding the occurrence of the cell that the cell being presently in belongs in this TAC banned list, leading to this Terminal cannot be linked into the situation of mobile network by the second SIM.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the present invention Its embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modifications, purposes or Person's adaptations are followed the general principle of the present invention and are included the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It is described above and precision architecture illustrated in the accompanying drawings it should be appreciated that the invention is not limited in, and And various modifications and changes can carried out without departing from the scope.The scope of the present invention only to be limited by appended claim.

Claims (11)

1. a kind of method for switching network, is applied in the terminal of double card single-pass, and described terminal is provided with first client's identification mould Block SIM and the second SIM are it is characterised in that methods described includes:
When detect described second SIM is switched to by described first SIM when, by the Tracking Area Code TAC of storage forbid arrange Table empties, and described TAC banned list is used for storage and forbids carrying out cell TAC of network connection;
Determine the identity information of described second SIM;
According to the identity information of described second SIM, current connected mobile network is switched to described second SIM and corresponds to Mobile network, to realize network switching.
2. method according to claim 1, ought it is characterised in that the described identity information according to described second SIM After front connected mobile network switches to the corresponding mobile network of described second SIM, also include:
Determine the cell of network connection failure;
The TAC of the cell of described network connection failure is added in the described TAC banned list after emptying, described to update TAC banned list.
3. method according to claim 2 is it is characterised in that the cell of described determination network connection failure, including:
When network connection failure is detected, determination carries out the connection failure number of times of network connection being presently in cell;
When described connection failure number of times exceedes preset times threshold value, the cell being presently in is defined as network connection failure Cell.
4. method according to claim 2 is it is characterised in that the cell of described determination network connection failure, including:
Judge whether the position being presently in changes;
When the position being presently in changes, detection is presently in the signal energy of cell and the described cell that is presently in The signal energy of adjacent cell;
When being presently in the signal energy of cell described in the signal energy of described adjacent cell exceedes, re-start network registry, To access described adjacent cell;
When receiving network registry failed message, described adjacent cell is defined as the cell of network connection failure.
5. method according to claim 1 is it is characterised in that described mobile network is Long Term Evolution LTE network.
6. a kind of terminal, described terminal is provided with the first client identification module SIM and the second SIM it is characterised in that institute State terminal to include:
Empty module, for when detect described second SIM is switched to by described first SIM when, will storage tracking area Domain code TAC banned list empties, and described TAC banned list is used for storage and forbids carrying out cell TAC of network connection;
First determining module, for determining the identity information of described second SIM;
Handover module, for the identity information according to described second SIM, current connected mobile network is switched to described The corresponding mobile network of second SIM, to realize network switching.
7. terminal according to claim 6 is it is characterised in that described terminal also includes:
Second determining module, for determining the cell of network connection failure;
Add module, for being added to the described TAC banned list after emptying by the TAC of the cell of described network connection failure In, to update described TAC banned list.
8. terminal according to claim 7 is it is characterised in that described second determining module includes:
First determination sub-module, for when network connection failure is detected, determines and carries out network connection being presently in cell Connection failure number of times;
Second determination sub-module, for when described connection failure number of times exceedes preset times threshold value, by the cell being presently in It is defined as the cell of network connection failure.
9. terminal according to claim 7 is it is characterised in that described second determining module includes:
Judging submodule, whether the position for judging to be presently in changes;
Detection sub-module, during for changing when the position being presently in, detection is presently in signal energy and the institute of cell State the signal energy of the adjacent cell being presently in cell;
Registration submodule, for be presently in described in exceeding when the signal energy of described adjacent cell cell signal energy when, weight Newly carry out network registry, to access described adjacent cell;
3rd determination sub-module, for when receiving network registry failed message, described adjacent cell being defined as network connection The cell of failure.
10. terminal according to claim 6 is it is characterised in that described mobile network is Long Term Evolution LTE network.
A kind of 11. terminals are it is characterised in that described terminal includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When detect described second SIM is switched to by described first SIM when, by the Tracking Area Code TAC of storage forbid arrange Table empties, and described TAC banned list is used for storage and forbids carrying out cell TAC of network connection;
Determine the identity information of described second SIM;
According to the identity information of described second SIM, current connected mobile network is switched to described second SIM and corresponds to Mobile network, to realize network switching.
CN201611151108.6A 2016-12-14 2016-12-14 Method for switching network and terminal Active CN106454801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611151108.6A CN106454801B (en) 2016-12-14 2016-12-14 Method for switching network and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611151108.6A CN106454801B (en) 2016-12-14 2016-12-14 Method for switching network and terminal

Publications (2)

Publication Number Publication Date
CN106454801A true CN106454801A (en) 2017-02-22
CN106454801B CN106454801B (en) 2019-10-01

Family

ID=58217212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611151108.6A Active CN106454801B (en) 2016-12-14 2016-12-14 Method for switching network and terminal

Country Status (1)

Country Link
CN (1) CN106454801B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295594A (en) * 2017-08-07 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, device and mobile terminal
CN108632916A (en) * 2017-03-20 2018-10-09 南昌黑鲨科技有限公司 Processing method and processing device after multiple random access failure
CN108668324A (en) * 2017-03-30 2018-10-16 展讯通信(天津)有限公司 data card switching method, device and user equipment
CN112203361A (en) * 2020-10-12 2021-01-08 Oppo(重庆)智能科技有限公司 Method and device for processing radio link failure, terminal and storage medium
WO2021042227A1 (en) * 2019-09-02 2021-03-11 北京小米移动软件有限公司 System information processing method and apparatus
WO2021098459A1 (en) * 2019-11-18 2021-05-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. User equipment and method for handling communication abnormality of user equipment
CN116347537A (en) * 2021-12-22 2023-06-27 荣耀终端有限公司 Call processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442744A (en) * 2007-11-23 2009-05-27 华为技术有限公司 Method, equipment and system for switching isomerization access network
CN101860534A (en) * 2010-05-20 2010-10-13 北京星网锐捷网络技术有限公司 Method and system for switching network, access equipment and authentication server
CN102368860A (en) * 2011-08-23 2012-03-07 李秀川 Network switch method and device
CN103379567A (en) * 2012-04-24 2013-10-30 中兴通讯股份有限公司 EPLMN list configuration method, target PLMN selection method, MME and eNB
CN103532859A (en) * 2012-07-03 2014-01-22 华为终端有限公司 Method for realizing network switching, device and multi-mode terminal
CN106162763A (en) * 2015-04-02 2016-11-23 小米科技有限责任公司 SIM changing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442744A (en) * 2007-11-23 2009-05-27 华为技术有限公司 Method, equipment and system for switching isomerization access network
CN101860534A (en) * 2010-05-20 2010-10-13 北京星网锐捷网络技术有限公司 Method and system for switching network, access equipment and authentication server
CN102368860A (en) * 2011-08-23 2012-03-07 李秀川 Network switch method and device
CN103379567A (en) * 2012-04-24 2013-10-30 中兴通讯股份有限公司 EPLMN list configuration method, target PLMN selection method, MME and eNB
CN103532859A (en) * 2012-07-03 2014-01-22 华为终端有限公司 Method for realizing network switching, device and multi-mode terminal
CN106162763A (en) * 2015-04-02 2016-11-23 小米科技有限责任公司 SIM changing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632916A (en) * 2017-03-20 2018-10-09 南昌黑鲨科技有限公司 Processing method and processing device after multiple random access failure
CN108668324A (en) * 2017-03-30 2018-10-16 展讯通信(天津)有限公司 data card switching method, device and user equipment
CN107295594A (en) * 2017-08-07 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, device and mobile terminal
CN107295594B (en) * 2017-08-07 2019-01-11 Oppo广东移动通信有限公司 Method for switching network, device and mobile terminal
WO2021042227A1 (en) * 2019-09-02 2021-03-11 北京小米移动软件有限公司 System information processing method and apparatus
WO2021098459A1 (en) * 2019-11-18 2021-05-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. User equipment and method for handling communication abnormality of user equipment
CN114451002A (en) * 2019-11-18 2022-05-06 Oppo广东移动通信有限公司 User equipment and method for processing communication exception of user equipment
CN114451002B (en) * 2019-11-18 2024-03-19 Oppo广东移动通信有限公司 User equipment and method for handling communication anomalies of user equipment
CN112203361A (en) * 2020-10-12 2021-01-08 Oppo(重庆)智能科技有限公司 Method and device for processing radio link failure, terminal and storage medium
CN112203361B (en) * 2020-10-12 2023-02-28 Oppo(重庆)智能科技有限公司 Method and device for processing radio link failure, terminal and storage medium
CN116347537A (en) * 2021-12-22 2023-06-27 荣耀终端有限公司 Call processing method and device

Also Published As

Publication number Publication date
CN106454801B (en) 2019-10-01

Similar Documents

Publication Publication Date Title
CN106454801A (en) Network switching method and terminal
CN107113673A (en) Method, device and the user equipment switched for cell
CN106792638B (en) Method for connecting network and terminal
CN104954564A (en) Method and device for switching SIM (Subscriber Identity Module) cards as well as terminal
CN104239094A (en) Method and device for controlling background application programs and terminal equipment
CN105516508A (en) Method and device for activating virtual SIM card
CN104765990A (en) Setting method and device for management account of intelligent device
CN106376043A (en) Automatic switching method and device for SIM (Subscriber Identification Module) card
CN106792948A (en) Cell switching method and device
CN106376057A (en) Wireless network access method and device
CN107295579A (en) The method and device of adjacent area detection is carried out in cell reselection process
CN106714244B (en) Wireless access method and device of terminal and terminal
CN106358189A (en) Device and method for accessing wireless local area network
CN106793089A (en) Paging method and device
CN105744595A (en) Method, device and system for accessing wireless local area network
CN106851723A (en) cell switching method and device
CN106454998A (en) Wireless local area network access method and apparatus, and terminal
CN110536012A (en) The method and device of the outer playback amount of controlling terminal
CN105101125B (en) The setting method and device of call forwarding
CN108702689A (en) Cell accessing method, device and storage medium
EP3972302A1 (en) Network registration method, apparatus and system, and storage medium
CN106535166A (en) Data service processing method and device
CN110521227A (en) Residence reselecting and device, priority indication method and apparatus
CN107070707A (en) Router initializes the determination method and apparatus of pattern
CN112996083A (en) Cell access method and cell access device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant