CN106454801B - Method for switching network and terminal - Google Patents
Method for switching network and terminal Download PDFInfo
- Publication number
- CN106454801B CN106454801B CN201611151108.6A CN201611151108A CN106454801B CN 106454801 B CN106454801 B CN 106454801B CN 201611151108 A CN201611151108 A CN 201611151108A CN 106454801 B CN106454801 B CN 106454801B
- Authority
- CN
- China
- Prior art keywords
- cell
- sim card
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The disclosure is directed to a kind of method for switching network and terminals, belong to technical field of information processing.The described method includes: when detect the second SIM card is switched to by the first SIM card when, TAC banned list is emptied, and according to the identity information of second SIM card, current connected mobile network is switched into the corresponding mobile network of the second SIM card, realizes network switching.By before the mobile network connected is switched to the corresponding mobile network of the second SIM card, terminal empties the TAC banned list of storage, therefore, when current connected mobile network switches to the second SIM card connection mobile network, it will not be because of the TAC banned list stored before network switching, and it influences terminal and currently passes through the second SIM card connection mobile network, namely, when avoiding the occurrence of the cell that the cell being presently in belongs in the TAC banned list, the case where causing the terminal that can not be linked into mobile network by the second SIM card.
Description
Technical field
This disclosure relates to technical field of information processing more particularly to a kind of method for switching network and terminal.
Background technique
With the development of communication technology, the terminals such as mobile phone, tablet computer can pass through SIM card (Subscriber
Identity Module client identification module) access to mobile network, realize the information exchange between other terminals.And it is close
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 the related technology, the realization process of network switching are as follows: when detecting that terminal is switched to the 2nd SIM by the first SIM card
When card, the corresponding identity information of the second SIM card is determined, and according to the identity information of second SIM card, the shifting that will currently connect
Network switching is moved to the corresponding mobile network of second SIM card.
Summary of the invention
To overcome the problems in correlation technique, present disclose provides a kind of method for switching network and terminals.
According to the first aspect of the embodiments of the present disclosure, a kind of method for switching network method is provided, the method is applied to double
In the terminal of card single-pass, the first client identification module SIM card and the second SIM card are installed in the terminal, which comprises
When detect second SIM card is switched to by first SIM card when, by the Tracking Area Code TAC of storage
(tracking area code, Tracking Area Code) banned list empties, and the TAC banned list forbids carrying out net for storing
The cell TAC of network connection;
Determine the identity information of second SIM card;
According to the identity information of second SIM card, current connected mobile network is switched into second SIM card
Corresponding mobile network, to realize network switching.
Optionally, the identity information according to second SIM card, switches to institute for current connected mobile network
After stating the corresponding mobile network of the second SIM card, further includes:
Determine the cell of network connection failure;
The TAC of the cell of the network connection failure is added in the TAC banned list after emptying, to update
State TAC banned list.
Optionally, the cell of the determining network connection failure, comprising:
When detecting network connection failure, determine in the connection failure number for being presently in cell and being connected to the network;
When the connection failure number is more than preset times threshold value, the cell being presently in is determined as network connection and is lost
The cell lost.
Optionally, the cell of the determining network connection failure, comprising:
Judge whether the position being presently in changes;
When the position being presently in changes, detection be presently in cell signal energy and it is described be presently in it is small
The signal energy of the adjacent cell in area;
When the signal energy of the adjacent cell is presently in the signal energy of cell more than described in, network note is re-started
Volume, to access the adjacent cell;
When receiving network registry failed message, the adjacent cell is determined as to the cell of network connection failure.
Optionally, the mobile network is LTE (Long Term Evolution, long term evolution) network.
According to the second aspect of an embodiment of the present disclosure, a kind of terminal is provided, the terminal includes:
Empty module, for when detect second SIM card is switched to by first SIM card when, by storage with
Track region code TAC banned list empties, and the TAC banned list is for storing the cell TAC for forbidding being connected to the network;
First determining module, for determining the identity information of second SIM card;
Switching module switches to current connected mobile network for the identity information according to second SIM card
The corresponding mobile network of second SIM card, to realize network switching.
Optionally, the terminal further include:
Second determining module, for determining the cell of network connection failure;
Adding module forbids arranging for the TAC of the cell of the network connection failure to be added to the TAC after emptying
In table, to update the TAC banned list.
Optionally, second determining module includes:
First determines submodule, is being presently in cell progress network for determining when detecting network connection failure
The connection failure number of connection;
Second determines submodule, is used for when the connection failure number is more than preset times threshold value, by what is be presently in
Cell is determined as the cell of network connection failure.
Optionally, second determining module includes:
Judging submodule, for judging whether the position being presently in changes;
Detection sub-module, for when the position being presently in changes, detection to be presently in the signal energy of cell
With the signal energy of the adjacent cell for being presently in cell;
Submodule is registered, is more than the signal energy for being presently in cell for the signal energy when the adjacent cell
When, network registry is re-started, to access the adjacent cell;
Third determines submodule, for when receiving network registry failed message, the adjacent cell to be determined as network
The cell of connection failure.
Optionally, the mobile network is LTE network.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, the terminal includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When detect second SIM card is switched to by first SIM card when, the Tracking Area Code TAC of storage is prohibited
Only list empties, and the TAC banned list is for storing the cell TAC for forbidding being connected to the network;
Determine the identity information of second SIM card;
According to the identity information of second SIM card, current connected mobile network is switched into second SIM card
Corresponding mobile network, to realize network switching.
The technical scheme provided by this disclosed embodiment can include the following benefits: in the embodiments of the present disclosure, by
In before the mobile network connected is switched to the corresponding mobile network of the second SIM card, the TAC of storage is forbidden arranging by terminal
Table empties, therefore, will not be because of network when current connected mobile network switches to the second SIM card connection mobile network
The TAC banned list stored before switching, and influence terminal and currently pass through the second SIM card connection mobile network, that is, avoiding out
When the cell being now presently in belongs to the cell in the TAC banned list, cause the terminal that can not be linked by the second SIM card
The case where mobile network.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of method for switching network flow chart that the embodiment of the present disclosure provides;
Fig. 2 is another 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 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 terminal block diagram that the embodiment of the present disclosure provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Before carrying out detailed explanation to the embodiment of the present disclosure, first the application scenarios of the embodiment of the present disclosure are given
It introduces.Since in the related technology, during being communicated using the first SIM card, terminal is corresponding according to the first SIM card of connection
Mobile network connection, the TAC banned list being stored with before current time, which includes multiple small
The TAC in area, terminal cannot connect to mobile network in multiple cell.When terminal is switched to the second SIM card by the first SIM card
When, above-mentioned TAC banned list still exists, if the cell being presently in belongs to the cell in the TAC banned list, will lead to this
Terminal can not be linked into mobile network by the second SIM card.Therefore, the embodiment of the present disclosure provides a kind of method for switching network,
When detect the second SIM card is switched to by the first SIM card when, TAC banned list is emptied, and according to the body of second SIM card
Current connected mobile network is switched to the corresponding mobile network of the second SIM card, realizes network switching by part information.Due to
Before the mobile network connected is switched to the corresponding mobile network of the second SIM card, terminal is by the TAC banned list of storage
It empties, therefore, when connecting mobile network by the second SIM card, will not forbid arranging because of the TAC stored before network switching
Table, and influence terminal and currently pass through the second SIM card connection mobile network, that is, avoiding the occurrence of the cell being presently in belongs to this
When cell in TAC banned list, the case where causing the terminal that can not be linked into mobile network by the second SIM card.
Fig. 1 is a kind of method for switching network flow chart that the embodiment of the present disclosure provides, which is used for double card
In the terminal of single-pass, the first SIM card and the second SIM card are installed in the terminal, as shown in Figure 1, the method for switching network includes
Following steps.
In a step 101, when detect the second SIM card is switched to by the first SIM card when, by the TAC banned list of storage
It empties, the TAC banned list is for storing the cell TAC for forbidding being connected to the network.
In a step 102, the identity information of the second SIM card is determined.
In step 103, according to the identity information of the second SIM card, current connected mobile network is switched to second
The corresponding mobile network of SIM card, to realize network switching.
In the embodiment of the present disclosure, since the mobile network connected is being switched to the corresponding mobile network of the second SIM card
Before, terminal empties the TAC banned list of storage, therefore, switches to the second SIM card in current connected mobile network and connects
When meeting mobile network, it will not influence terminal because of the TAC banned list stored before network switching and currently pass through the 2nd SIM
Card connection mobile network, that is, leading to this when avoiding the occurrence of the cell that the cell being presently in belongs in the TAC banned list
The case where terminal can not be linked into mobile network by the second SIM card.
Optionally, according to the identity information of the second SIM card, current connected mobile network is switched into the second SIM card
After corresponding mobile network, further includes:
Determine the cell of network connection failure;
The TAC of the cell of the network connection failure is added in the TAC banned list after emptying, to update TAC taboo
Only list.
Optionally it is determined that the cell of network connection failure, comprising:
When detecting network connection failure, determine in the connection failure number for being presently in cell and being connected to the network;
When the connection failure number is more than preset times threshold value, the cell being presently in is determined as network connection failure
Cell.
Optionally it is determined that the cell of network connection failure, comprising:
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 is more than to be presently in the signal energy of cell, network registry is re-started, to connect
Enter the adjacent cell;
When receiving network registry failed message, which is determined as to the cell of network connection failure.
Optionally, the mobile network is LTE network.
All the above alternatives, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is real
It applies example and this is no longer repeated one by one.
Fig. 2 is another method for switching network flow chart that the embodiment of the present disclosure provides, which is applied to
In the terminal of double card single-pass, the first SIM card and the second SIM card are installed in the terminal, as shown in Fig. 2, the method for switching network
Include the following steps.
In step 201, when detect the second SIM card is switched to by the first SIM card when, by the TAC banned list of storage
It empties, the TAC banned list is for storing the cell TAC for forbidding being connected to the network.
In the embodiments of the present disclosure, installation for ease of description currently makes terminal there are two SIM card in terminal
The SIM card used is as the first SIM card, using the SIM card used after network switching as the second SIM card.In addition, terminal is using the
During one SIM card and other terminals carry out information exchange, terminal is that the cell and other terminals by being presently in are realized
Information exchange, and each cell has oneself corresponding TAC.It is lost if network connection occurs in the cell being presently in terminal
It loses, the TAC of the cell can be stored in TAC banned list by terminal, and terminal is avoided to carry out net in same cell repeated attempt
Network connection.That is, terminal is according to the corresponding mobile network of the first SIM card of connection in terminal during using the first SIM card
Connection, the TAC banned list being stored with before current time.Wherein, which 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.
Since the cell in the TAC banned list is that terminal is added during using the first SIM card, when terminal is cut
When shifting to the second SIM card, when the cell that terminal is presently in belongs to the cell in above-mentioned TAC banned list, the cell is corresponding
MME (Mobility Management Entity, mobile management entity) terminal may be allowed to access the cell, but by
Belong to the cell in TAC banned list in the cell, causes terminal that can not access the cell by the second SIM card.Therefore, at this
In open embodiment, when terminal switches to the second SIM card by the first SIM card, in order to allow terminal to be smoothly connected to second
The corresponding mobile network of SIM card, when terminal detects and is switched to the second SIM card by the first SIM card, terminal can be when will be current
Between before store TAC banned list empty.
In addition, in the embodiments of the present disclosure, which is applied in the terminal of double card single-pass, for double card list
Logical terminal mainly has manual switching at present and automatically switches two kinds of network switching modes.Manual switching, namely only work as terminal
When detecting the instruction for network switching, terminal just can switch to the second SIM card by the first SIM card, for example, having in the terminal
" network switching " option, when user is somebody's turn to do " network switching " option by predetermined registration operation triggering, terminal be will test for network
Then the instruction of switching switches to the second SIM card by the first SIM card.Wherein, predetermined registration operation can be clicking operation, sliding behaviour
Make etc..Automatically switch, namely control module be installed in the terminal, the control module can ceaselessly two mobile networks it
Between switch, and search for network automatically, when the control module switches between the two networks, terminal may also detect that the network
Handover operation.Therefore, no matter terminal by manual switching or automatically switch realize network switching, terminal may detect that by
First SIM card is switched to the operation of the second SIM card, then executes step 201.
In step 202, the identity information of the second SIM card is determined.
After the TAC banned list stored before terminal is by current time empties, terminal can be by network by the first SIM
Card switches to the second SIM card, then accesses the corresponding mobile network of the second SIM card.The corresponding shifting of the second SIM card is accessed in terminal
During dynamic network, the Authentication Center needs in MME verify the identity information of second SIM card, to determine whether
Terminal is allowed to access the corresponding mobile network of second SIM card, therefore, terminal needs first to determine the identity letter of second SIM card
Breath.
Wherein, the identity information of the second SIM card is used for unique identification second SIM card, in the authentication of the 2nd SIM and MME
The identity information of second SIM card is previously stored in center, the identity information of second SIM card 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 card, and Ki is SIM card and operation
The key that encryption data is transmitted between quotient, and IMSI and Ki is with the use of the identity information that can be used to verify second SIM card.
In step 203, according to the identity information of the second SIM card, current connected mobile network is switched to second
The corresponding mobile network of SIM card, to realize network switching.
In the embodiments of the present disclosure, terminal, can be by the body of the second SIM card after the identity information for determining the second SIM card
Part information is sent to Authentication Center, when Authentication Center receives the identity information of second SIM card, to second SIM card
Identity information is verified, and if the verification passes, then allows the terminal by the second SIM card to access second SIM card corresponding
Mobile network realizes that terminal switches to the corresponding mobile network of the second SIM card by the corresponding mobile network of the first SIM card.
In one possible implementation, the realization that Authentication Center verifies the identity information of second SIM card
Process can be with are as follows: when Authentication Center receives the identity information of second SIM card, passes through the second SIM card identity information packet
The IMSI and Ki included calculates SRES (Signed Response, sign response), if the calculated SRES of Authentication Center and
Second SIM card is identical by the calculated SRES of IMSI and Ki, then authenticates success, show that terminal can access second SIM card
Corresponding mobile network.Otherwise authenticating unsuccessful namely terminal does not have permission to access the corresponding mobile network of second SIM card.
Optionally, in the embodiments of the present disclosure, after terminal is by the second SIM card access to mobile network, namely at end
During end carries out information exchange by the second SIM card and other terminals, terminal can be corresponding according to second SIM card is accessed
Mobile network the case where, the TAC banned list after emptying is updated.Terminal carries out the TAC banned list after emptying
Update can be realized by step 204.
In step 204, it determines the cell of network connection failure, and the TAC of the cell of the network connection failure is added
In TAC banned list to after emptying, to update the TAC banned list.
After terminal accesses the corresponding mobile network of the second SIM card, terminal is currently likely to occur connection network failure feelings
Condition, at this time in order to avoid terminal repeated attempt accesses the cell, the TAC of the cell of network connection failure can be added to by terminal
In TAC banned list after emptying, so that terminal can not access the network connection failure cell by the second SIM card.
Wherein, terminal determines that the cell of network connection failure can be realized by the possible mode of following two.
The first possible mode, when terminal currently interrupt namely net by mobile network corresponding with second SIM card
When network connection failure, connection failure number is determined, it is small by what is be presently in when connection failure number is more than preset times threshold value
Area is determined as the cell of network connection failure.
It is worth noting that, when detecting network connection failure, if directly the TAC for the cell being presently in added
Into TAC banned list, terminal will be unable to be linked into the cell again, particularly, when the network of the cell being presently in
It is that of short duration appearance is abnormal, the TAC of the cell being presently in is added in TAC banned list at this time, leads to the net of the cell
After network restores normal, terminal can not also access the cell being presently in.Therefore, in the embodiments of the present disclosure, when terminal detects
When to network connection failure, connection failure number is recorded, and start timing, when timing time reaches, re-starts network company
It connects, still fails if re-starting network connection, update connection failure number, repeat to start timing, circulation executes above-mentioned behaviour
Make, until terminal accesses the corresponding mobile network of second SIM card or connection failure number is more than preset times threshold value.When even
When connecing the frequency of failure more than preset times threshold value, show that exception persistently occurs in the network for the cell being presently in, terminal can at this time
The cell being presently in be determined as to the cell of network connection failure, and the TAC of the cell being presently in is added to clearly
In TAC banned list after sky, terminal repeated attempt is avoided to access the cell being presently in.
Wherein, timing time is the pre-set time in terminal, which can be 5s, 10s or 15s etc..In advance
If frequency threshold value is pre-set number in terminal, which can be inferior for 5 times, 10 times or 20.
For example, timing time is 5s, preset times threshold value is 5 times, when terminal detects network connection failure, starts to count
When, and recording connection failure number is 1 time, when timing time 5s reaches, re-starts network connection, circulation executes, if
Connection failure number is more than 5 times, and terminal shows the network of the cell being presently in still without the cell being presently in is accessed
Lasting exception occur, therefore, the cell that this can be presently in by terminal is determined as the cell of network connection failure.
Second of possible mode, when the position being presently in changes, detection is presently in the signal energy of cell
The signal energy for measuring and being presently in the adjacent cell of cell, when the signal energy of adjacent cell is more than the signal energy for being presently in cell
When amount, network registry is re-started, to access the adjacent cell.It is when receiving network registry failed message, the adjacent cell is true
It is set to the cell of network connection failure.
It should be noted that terminal is after through the second SIM card access to mobile network, only terminal is in some cell
Network coverage when, which can just receive the system message of the cell.Due to the network coverage of neighboring community
There is intersection, therefore, terminal is at current location, and system message in addition to can receive the cell being presently in can also receive
The system message of other cells, other cells namely adjacent cell.
In second of possible mode, when the position being presently in changes, terminal reception is presently in cell
System message and be presently in cell adjacent cell system message, according to the system message and current institute for being presently in cell
Locate the system message of the adjacent cell of cell, determines the letter for being presently in the signal energy of cell and being presently in the adjacent cell of cell
Number energy, then judges whether to need to carry out location updating.That is, when the signal energy of adjacent cell is more than to be presently in cell
When signal energy, terminal re-starts network registry, to access the adjacent cell.
Wherein, terminal re-starts network registry, that is, terminal sends the 2nd SIM to the corresponding MME of the second SIM card
The identity information of card and the TAC of the adjacent cell, when MME receives the identity information and the TAC of the adjacent cell of the second SIM card,
Judge whether the TAC of the adjacent cell belongs to the TAC for the cell for forbidding second SIM card to access, is not belonging to prohibit when the adjacent cell
Only when the TAC of the cell of second SIM card access, the TAC of the locating cell of second SIM card is updated, that is, by the adjacent cell
The TAC of cell that is presently in as the terminal of TAC, so that MME can track the terminal, and send corresponding industry to the terminal
Business.When MME updates the TAC for being presently in cell of second SIM card, determine that the terminal can be accessed by the second SIM card
Then the adjacent cell sends network registry success message to terminal.
Correspondingly, when MME determines that the TAC of the adjacent cell belongs to the TAC for the cell for forbidding second SIM card to access, really
The fixed terminal does not have permission to access the adjacent cell by the second SIM card, sends network registry failed message to terminal.When terminal connects
When receiving network registry failed message, which is determined as to the cell of network connection failure, and the TAC of the adjacent cell is added
It is added in TAC banned list, avoids terminal from iterating through the second SIM card and access the adjacent cell
Wherein, the system message for being presently in the system message of cell and being presently in the adjacent cell of cell includes corresponding small
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 to distinguish different operators, is presently in cell when terminal receives
When the system message of adjacent cell, it can first judge whether PLMN belonging to the 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 to execute the operation for whether needing to carry out location updating.Particularly,
When the PLMN belonging to the cell is not the PLMN of terminal unit contractual, terminal can not access the adjacent cell, namely be not carried out
The operation of location updating.
In the embodiments of the present disclosure since the mobile network connected is being switched to the corresponding mobile network of the second SIM card
Before, terminal empties the TAC banned list of storage, therefore, switches to the connection of the second SIM card in the mobile network currently connected
When mobile network, it will not influence terminal because of the TAC banned list stored before network switching and currently pass through the second SIM card
Mobile network is connected, that is, leading to the end when avoiding the occurrence of the cell that the cell being presently in belongs in the TAC banned list
The case where end can not be linked into mobile network by the second SIM card.
Fig. 3 A is a kind of block diagram for terminal 300 that the embodiment of the present disclosure provides.Referring to Fig. 3 A, which includes emptying module
301, the first determining module 302 and switching module 303.
Empty module 301, for when detect the second SIM card is switched to by the first SIM card when, by the tracing area of storage
Code TAC banned list empties, and the TAC banned list is for storing the cell TAC for forbidding being connected to the network;
First determining module 302, for determining the identity information of the second SIM card;
Switching module 303 switches to current connected mobile network for the identity information according to the second SIM card
The corresponding mobile network of second SIM card, to realize network switching.
Optionally, referring to Fig. 3 B, which further includes the second determining module 304 and adding module 305:
Second determining module 304, for determining the cell of network connection failure;
Adding module 305, for the TAC of the cell of the network connection failure to be added to the TAC banned list after emptying
In, to update the TAC banned list.
Optionally, referring to Fig. 3 C, which includes that the first determining submodule 3041 and second determines submodule
Block 3042:
First determines submodule 3041, is being presently in cell progress for determining when detecting network connection failure
The connection failure number of network connection;
Second determines submodule 3042, for will be presently in when the connection failure number is more than preset times threshold value
Cell be determined as the cell of network connection failure.
Optionally, referring to Fig. 3 D, which includes judging submodule 3043, detection sub-module 3044, registration
Submodule 3045 and third determine submodule 3046:
Judging submodule 3043, for judging whether the position being presently in changes;
Detection sub-module 3044, for when the position being presently in changes, detection to be presently in the signal of cell
The signal energy of energy and the adjacent cell for being presently in cell;
Submodule 3045 is registered, for weighing when the signal energy of adjacent cell is more than to be presently in the signal energy of cell
It is new to carry out network registry, to access the adjacent cell;
Third determines submodule 3046, for when receiving network registry failed message, which to be determined as net
The cell of network connection failure.
Optionally, the mobile network is LTE network.
In the embodiments of the present disclosure, since the mobile network connected is being switched to the corresponding mobile network of the second SIM card
Before network, terminal empties the TAC banned list of storage, therefore, switches to the second SIM card in the mobile network currently connected and connects
When meeting mobile network, it will not influence terminal because of the TAC banned list stored before network switching and currently pass through the 2nd SIM
Card connection mobile network, that is, leading to this when avoiding the occurrence of the cell that the cell being presently in belongs in the TAC banned list
The case where terminal can not be linked into mobile network by the second SIM card.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 4 is the block diagram for another terminal 400 that the embodiment of the present disclosure provides.Be equipped in the terminal the first SIM card and
Second SIM card, for example, terminal 400 can be mobile phone etc..
Referring to Fig. 4, terminal 400 may include following one or more components: processing component 402, memory 404, power supply
Component 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414, and
Communication component 416.
The integrated operation of the usual controlling terminal 400 of processing component 402, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 402 may include that one or more processors 420 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, just
Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, it is more to facilitate
Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in terminal 400.These data are shown
Example includes the instruction of any application or method for operating in terminal 400, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to 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 may include power management system
System, one or more power supplys and other with for terminal 400 generate, manage, and distribute the associated component of power supply.
Multimedia component 408 includes the screen of one output interface of offer between the terminal 400 and user.Some
In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
It may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors
To sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, multimedia
Component 408 includes a front camera and/or rear camera.When terminal 400 is in operation mode, such as screening-mode or view
When frequency mode, front camera and/or rear camera can receive external multi-medium data.Each front camera is with after
Setting camera can be a fixed optical lens system or has focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike
Wind (MIC), when terminal 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set
Part 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for terminal 400 is commented
Estimate.For example, sensor module 414 can detecte the state that opens/closes of terminal 400, and the relative positioning of component, for example, it is described
Component is the display and keypad of terminal 400, and sensor module 414 can also detect 400 1 components of terminal 400 or terminal
Position change, the existence or non-existence that user contacts with terminal 400,400 orientation of terminal or acceleration/deceleration and terminal 400
Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor 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 their combination.In an exemplary implementation
In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 400 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of terminal 400 to complete the above method.For example,
The 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 the storage medium is held by the processor of terminal
When row, enable the terminal to execute a kind of method for switching network, which comprises
When detect the second SIM card is switched to by the first SIM card when, the TAC banned list of storage is emptied, the TAC prohibit
Only list is for storing the cell TAC for forbidding being connected to the network;
Determine the identity information of the second SIM card;
According to the identity information of the second SIM card, current connected mobile network is switched into the corresponding shifting of the second SIM card
Dynamic network, to realize network switching.
Optionally, according to the identity information of the second SIM card, current connected mobile network is switched into the second SIM card
After corresponding mobile network, further includes:
Determine the cell of network connection failure;
The TAC of the cell of the network connection failure is added in the TAC banned list after emptying, to update TAC taboo
Only list.
Optionally it is determined that the cell of network connection failure, comprising:
When detecting network connection failure, determine in the connection failure number for being presently in cell and being connected to the network;
When the connection failure number is more than preset times threshold value, the cell being presently in is determined as network connection failure
Cell.
Optionally it is determined that the cell of network connection failure, comprising:
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 is more than to be presently in the signal energy of cell, network registry is re-started, to connect
Enter the adjacent cell;
When receiving network registry failed message, which is determined as to the cell of network connection failure.
Optionally, the mobile network is LTE network.
In the embodiments of the present disclosure, since the mobile network connected is being switched to the corresponding mobile network of the second SIM card
Before network, terminal empties the TAC banned list of storage, therefore, switches to the second SIM card in the mobile network currently connected and connects
When meeting mobile network, it will not influence terminal because of the TAC banned list stored before network switching and currently pass through the 2nd SIM
Card connection mobile network, that is, leading to this when avoiding the occurrence of the cell that the cell being presently in belongs in the TAC banned list
The case where terminal can not be linked into mobile network by the second SIM card.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (12)
1. a kind of method for switching network, in the terminal applied to double card single-pass, the first client is installed in the terminal and identifies mould
Block SIM card and the second SIM card, which is characterized in that the described method includes:
When detect second SIM card is switched to by the first client identification module SIM card when, by the tracing area of storage
Code TAC banned list empties, and the TAC banned list is for storing the cell TAC for forbidding being connected to the network;
Determine the identity information of second SIM card;
According to the identity information of second SIM card, it is corresponding that current connected mobile network is switched into second SIM card
Mobile network, to realize network switching.
2. the method according to claim 1, wherein the identity information according to second SIM card, will work as
Preceding connected mobile network switches to after the corresponding mobile network of second SIM card, further includes:
Determine the cell of network connection failure;
The TAC of the cell of the network connection failure is added in the TAC banned list after emptying, described in updating
TAC banned list.
3. according to the method described in claim 2, it is characterized in that, the cell of the determining network connection failure, comprising:
When detecting network connection failure, determine in the connection failure number for being presently in cell and being connected to the network;
When the connection failure number is more than preset times threshold value, the cell being presently in is determined as network connection failure
Cell.
4. according to the method described in claim 2, it is characterized in that, the cell of the determining network connection failure, comprising:
Judge whether the position being presently in changes;
When the position being presently in changes, detection is presently in the signal energy and the cell that is presently in of cell
The signal energy of adjacent cell;
When the signal energy of the adjacent cell is presently in the signal energy of cell more than described in, network registry is re-started,
To access the adjacent cell;
When receiving network registry failed message, the adjacent cell is determined as to the cell of network connection failure.
5. the method according to claim 1, wherein the mobile network is long term evolution LTE network.
6. a kind of terminal, the first client identification module SIM card and the second SIM card are installed in the terminal, which is characterized in that institute
Stating terminal includes:
Empty module, for when detect second SIM card is switched to by the first client identification module SIM card when, will
The Tracking Area Code TAC banned list of storage empties, and the TAC banned list is for storing the cell for forbidding being connected to the network
TAC;
First determining module, for determining the identity information of second SIM card;
Switching module switches to current connected mobile network described for the identity information according to second SIM card
The corresponding mobile network of second SIM card, to realize network switching.
7. terminal according to claim 6, which is characterized in that the terminal further include:
Second determining module, for determining the cell of network connection failure;
Adding module, for the TAC of the cell of the network connection failure to be added to the TAC banned list after emptying
In, to update the TAC banned list.
8. terminal according to claim 7, which is characterized in that second determining module includes:
First determines submodule, for when detecting network connection failure, determines and is connected to the network being presently in cell
Connection failure number;
Second determines submodule, the cell for will be presently in when the connection failure number is more than preset times threshold value
It is determined as the cell of network connection failure.
9. terminal according to claim 7, which is characterized in that second determining module includes:
Judging submodule, for judging whether the position being presently in changes;
Detection sub-module, for when the position being presently in changes, detection to be presently in signal energy and the institute of cell
State the signal energy for being presently in the adjacent cell of cell;
Submodule is registered, for weighing when the signal energy of the adjacent cell is presently in the signal energy of cell more than described in
It is new to carry out network registry, to access the adjacent cell;
Third determines submodule, for when receiving network registry failed message, the adjacent cell being determined as being connected to the network
The cell of failure.
10. terminal according to claim 6, which is characterized in that the mobile network is long term evolution LTE network.
11. a kind of terminal, which is characterized in that the first client identification module SIM card and the second SIM card are installed in the terminal,
The terminal includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When detect second SIM card is switched to by the first client identification module SIM card when, by the tracing area of storage
Code TAC banned list empties, and the TAC banned list is for storing the cell TAC for forbidding being connected to the network;
Determine the identity information of second SIM card;
According to the identity information of second SIM card, it is corresponding that current connected mobile network is switched into second SIM card
Mobile network, to realize network switching.
12. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium
Item instruction, described instruction is as processor loads and executes to realize that the network as described in claim 1-5 any claim is cut
Change the operation run in method.
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 CN106454801A (en) | 2017-02-22 |
CN106454801B true 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) |
Families Citing this family (7)
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 |
CN107295594B (en) * | 2017-08-07 | 2019-01-11 | Oppo广东移动通信有限公司 | Network switching method and device and mobile terminal |
CN110731090B (en) * | 2019-09-02 | 2022-07-29 | 北京小米移动软件有限公司 | System message processing method and device |
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 |
CN112203361B (en) * | 2020-10-12 | 2023-02-28 | Oppo(重庆)智能科技有限公司 | Method and device for processing radio link failure, terminal and storage medium |
CN116347537B (en) * | 2021-12-22 | 2024-09-20 | 荣耀终端有限公司 | Call processing method and device |
Citations (6)
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 |
-
2016
- 2016-12-14 CN CN201611151108.6A patent/CN106454801B/en active Active
Patent Citations (6)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN106454801A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106454801B (en) | Method for switching network and terminal | |
CN106792638B (en) | Method for connecting network and terminal | |
CN105554884A (en) | Method and device for paging response | |
CN105120505B (en) | The method, apparatus and system of smart machine couple in router | |
US11968557B2 (en) | MDT information notifying method and MDT information receiving method | |
CN108966207A (en) | Processing method for paging message and device | |
CN106714244B (en) | Wireless access method and device of terminal and terminal | |
US11252623B2 (en) | Network switching method, device and storage medium | |
CN105516508A (en) | Method and device for activating virtual SIM card | |
WO2021000228A1 (en) | Information reporting method and apparatus, configuration method and apparatus, multi-sim terminal, and base station | |
WO2021022474A1 (en) | Mdt information sending method and apparatus, and mdt information receiving method and apparatus | |
WO2020227879A1 (en) | Connection processing method and apparatus, and medium | |
KR101808056B1 (en) | Method, device and system for transmitting information | |
CN104837181A (en) | Network access method and device | |
CN105101125B (en) | The setting method and device of call forwarding | |
US12082143B2 (en) | Network registration method, apparatus, system, and storage medium | |
CN107040949B (en) | Network residing method, device and computer readable storage medium | |
CN107070707B (en) | Method and device for determining initialization mode of router | |
CN104812026A (en) | Cell residence method, device and mobile terminal | |
CN106792526B (en) | The disable time of the band of position determines method and terminal | |
CN112492665B (en) | Random access method and device, PLMN (public land mobile network) identifier sending method and device | |
CN105142190A (en) | Network cell reselection method and device | |
CN111727612B (en) | Terminal tracking method and device and storage medium | |
CN110324873A (en) | ESIM switching and network registering method, device and baseband equipment | |
CN108811080B (en) | Method, device and storage medium for cell registration |
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 |