Movatterモバイル変換


[0]ホーム

URL:


CN106454801A - Network switching method and terminal - Google Patents

Network switching method and terminal
Download PDF

Info

Publication number
CN106454801A
CN106454801ACN201611151108.6ACN201611151108ACN106454801ACN 106454801 ACN106454801 ACN 106454801ACN 201611151108 ACN201611151108 ACN 201611151108ACN 106454801 ACN106454801 ACN 106454801A
Authority
CN
China
Prior art keywords
cell
network
terminal
tac
sim card
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 LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201611151108.6ApriorityCriticalpatent/CN106454801B/en
Publication of CN106454801ApublicationCriticalpatent/CN106454801A/en
Application grantedgrantedCritical
Publication of CN106454801BpublicationCriticalpatent/CN106454801B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本公开是关于一种网络切换方法及终端,属于信息处理技术领域。所述方法包括:当检测到由第一SIM卡切换到第二SIM卡时,将TAC禁止列表清空,并根据该第二SIM卡的身份信息,将当前所连接的移动网络切换至第二SIM卡对应的移动网络,实现网络切换。由于在将所连接的移动网络切换至第二SIM卡对应的移动网络之前,终端将存储的TAC禁止列表清空,因此,在当前所连接的移动网络切换至第二SIM卡连接移动网络时,不会因为网络切换之前存储的TAC禁止列表,而影响终端当前通过第二SIM卡连接移动网络,也即,避免出现当前所处的小区属于该TAC禁止列表中的小区时,导致该终端无法通过第二SIM卡接入到移动网络的情况。

The present disclosure relates to a network switching method and a terminal, and belongs to the technical field of information processing. The method includes: when it is detected that the first SIM card is switched to the second SIM card, clearing the TAC forbidden list, and switching the currently connected mobile network to the second SIM card according to the identity information of the second SIM card The mobile network corresponding to the card realizes network switching. Since the terminal clears the stored TAC prohibition list before switching the connected mobile network to the mobile network corresponding to the second SIM card, when the currently connected mobile network is switched to the second SIM card to connect to the mobile network, no Due to the TAC prohibition list stored before the network switching, the terminal is currently connected to the mobile network through the second SIM card. 2. The case where the SIM card is connected to the mobile network.

Description

Translated fromChinese
网络切换方法及终端Network switching method and terminal

技术领域technical field

本公开涉及信息处理技术领域,尤其涉及一种网络切换方法及终端。The present disclosure relates to the technical field of information processing, and in particular, to a network switching method and a terminal.

背景技术Background technique

随着通信技术的发展,手机、平板电脑等终端可以通过SIM卡(SubscriberIdentity Module客户识别模块)接入移动网络,实现与其他终端之间的信息交互。并且近年来,随着双卡双待技术的发展,终端可以在双SIM卡之间进行切换,以将终端切换到不同的移动网络,满足其不同的网络需求。With the development of communication technology, terminals such as mobile phones and tablet computers can access mobile networks through SIM cards (Subscriber Identity Module) to realize information interaction with other terminals. And in recent years, with the development of dual-card dual-standby technology, the terminal can switch between dual SIM cards, so as to switch the terminal to different mobile networks to meet its different network requirements.

相关技术中,网络切换的实现过程为:当检测到终端由第一SIM卡切换到第二SIM卡时,确定该第二SIM卡对应的身份信息,并根据该第二SIM卡的身份信息,将当前连接的移动网络切换至该第二SIM卡对应的移动网络。In related technologies, the implementation process of network switching is: when it is detected that the terminal is switched from the first SIM card to the second SIM card, the identity information corresponding to the second SIM card is determined, and according to the identity information of the second SIM card, Switch the currently connected mobile network to the mobile network corresponding to the second SIM card.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供了一种网络切换方法及终端。In order to overcome the problems existing in related technologies, the present disclosure provides a network switching method and a terminal.

根据本公开实施例的第一方面,提供一种网络切换方法方法,所述方法应用于双卡单通的终端中,所述终端上安装有第一客户识别模块SIM卡和第二SIM卡,所述方法包括:According to the first aspect of the embodiments of the present disclosure, a network switching method is provided, the method is applied to a dual-card single-pass terminal, and a first customer identification module SIM card and a second SIM card are installed on the terminal, The methods include:

当检测到由所述第一SIM卡切换到所述第二SIM卡时,将存储的跟踪区域码TAC(tracking area code,跟踪区域码)禁止列表清空,所述TAC禁止列表用于存储禁止进行网络连接的小区TAC;When it is detected that the first SIM card is switched to the second SIM card, the stored tracking area code TAC (tracking area code, tracking area code) prohibition list is emptied, and the TAC prohibition list is used to store prohibited network connected cell TAC;

确定所述第二SIM卡的身份信息;determining the identity information of the second SIM card;

根据所述第二SIM卡的身份信息,将当前所连接的移动网络切换至所述第二SIM卡对应的移动网络,以实现网络切换。According to the identity information of the second SIM card, the currently connected mobile network is switched to the mobile network corresponding to the second SIM card, so as to realize network switching.

可选地,所述根据所述第二SIM卡的身份信息,将当前所连接的移动网络切换至所述第二SIM卡对应的移动网络之后,还包括:Optionally, after switching the currently connected mobile network to the mobile network corresponding to the second SIM card according to the identity information of the second SIM card, the method further includes:

确定网络连接失败的小区;Determine the cell where the network connection failed;

将所述网络连接失败的小区的TAC添加到清空后的所述TAC禁止列表中,以更新所述TAC禁止列表。adding the TAC of the cell whose network connection failed to the cleared TAC forbidden list, so as to update the TAC forbidden list.

可选地,所述确定网络连接失败的小区,包括:Optionally, the determination of the cell where the network connection fails includes:

当检测到网络连接失败时,确定在当前所处小区进行网络连接的连接失败次数;When a network connection failure is detected, determine the number of network connection failures in the current cell;

当所述连接失败次数超过预设次数阈值时,将当前所处的小区确定为网络连接失败的小区。When the number of times of connection failure exceeds the preset number of times threshold, the cell where the current cell is located is determined as a cell where network connection fails.

可选地,所述确定网络连接失败的小区,包括:Optionally, the determination of the cell where the network connection fails includes:

判断当前所处的位置是否发生变化;Determine whether the current location has changed;

当当前所处的位置发生变化时,检测当前所处小区的信号能量和所述当前所处小区的邻小区的信号能量;When the current location changes, detecting the signal energy of the cell currently located and the signal energy of a neighboring cell of the cell currently located;

当所述邻小区的信号能量超过所述当前所处小区的信号能量时,重新进行网络注册,以接入所述邻小区;When the signal energy of the adjacent cell exceeds the signal energy of the current cell, perform network registration again to access the adjacent cell;

当接收到网络注册失败消息时,将所述邻小区确定为网络连接失败的小区。When the network registration failure message is received, the neighboring cell is determined as a cell whose network connection fails.

可选地,所述移动网络为LTE(Long Term Evolution,长期演进)网络。Optionally, the mobile network is an LTE (Long Term Evolution, long term evolution) network.

根据本公开实施例的第二方面,提供一种终端,所述终端包括:According to a second aspect of an embodiment of the present disclosure, a terminal is provided, and the terminal includes:

清空模块,用于当检测到由所述第一SIM卡切换到所述第二SIM卡时,将存储的跟踪区域码TAC禁止列表清空,所述TAC禁止列表用于存储禁止进行网络连接的小区TAC;Clearing module, used to clear the stored tracking area code TAC prohibition list when it is detected that the first SIM card is switched to the second SIM card, and the TAC prohibition list is used to store cells prohibited from network connection TAC;

第一确定模块,用于确定所述第二SIM卡的身份信息;A first determining module, configured to determine the identity information of the second SIM card;

切换模块,用于根据所述第二SIM卡的身份信息,将当前所连接的移动网络切换至所述第二SIM卡对应的移动网络,以实现网络切换。The switching module is configured to switch the currently connected mobile network to the mobile network corresponding to the second SIM card according to the identity information of the second SIM card, so as to realize network switching.

可选地,所述终端还包括:Optionally, the terminal also includes:

第二确定模块,用于确定网络连接失败的小区;The second determining module is used to determine the cell whose network connection fails;

添加模块,用于将所述网络连接失败的小区的TAC添加到清空后的所述TAC禁止列表中,以更新所述TAC禁止列表。An adding module, configured to add the TAC of the cell whose network connection failed to the cleared TAC forbidden list, so as to update the TAC forbidden list.

可选地,所述第二确定模块包括:Optionally, the second determination module includes:

第一确定子模块,用于当检测到网络连接失败时,确定在当前所处小区进行网络连接的连接失败次数;The first determining submodule is used to determine the number of connection failures of the network connection in the current cell when network connection failure is detected;

第二确定子模块,用于当所述连接失败次数超过预设次数阈值时,将当前所处的小区确定为网络连接失败的小区。The second determination sub-module is configured to determine the current cell as the cell where the network connection fails when the number of connection failures exceeds a preset threshold.

可选地,所述第二确定模块包括:Optionally, the second determination module includes:

判断子模块,用于判断当前所处的位置是否发生变化;Judgment sub-module, used to judge whether the current location has changed;

检测子模块,用于当当前所处的位置发生变化时,检测当前所处小区的信号能量和所述当前所处小区的邻小区的信号能量;The detection submodule is used to detect the signal energy of the cell where the current cell is located and the signal energy of the neighboring cells of the cell where the current cell is located when the current location changes;

注册子模块,用于当所述邻小区的信号能量超过所述当前所处小区的信号能量时,重新进行网络注册,以接入所述邻小区;A registration submodule, configured to re-register with the network to access the adjacent cell when the signal energy of the adjacent cell exceeds the signal energy of the current cell;

第三确定子模块,用于当接收到网络注册失败消息时,将所述邻小区确定为网络连接失败的小区。The third determining submodule is configured to determine the neighboring cell as a cell whose network connection fails when receiving a network registration failure message.

可选地,所述移动网络为LTE网络。Optionally, the mobile network is an LTE network.

根据本公开实施例的第三方面,提供了一种终端,所述终端包括:According to a third aspect of the embodiments of the present disclosure, a terminal is provided, and the terminal includes:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当检测到由所述第一SIM卡切换到所述第二SIM卡时,将存储的跟踪区域码TAC禁止列表清空,所述TAC禁止列表用于存储禁止进行网络连接的小区TAC;When it is detected that the first SIM card is switched to the second SIM card, the stored tracking area code TAC prohibition list is emptied, and the TAC prohibition list is used to store the cell TAC that is prohibited from network connection;

确定所述第二SIM卡的身份信息;determining the identity information of the second SIM card;

根据所述第二SIM卡的身份信息,将当前所连接的移动网络切换至所述第二SIM卡对应的移动网络,以实现网络切换。According to the identity information of the second SIM card, the currently connected mobile network is switched to the mobile network corresponding to the second SIM card, so as to realize network switching.

本公开的实施例提供的技术方案可以包括以下有益效果:在本公开实施例中,由于在将所连接的移动网络切换至第二SIM卡对应的移动网络之前,终端将存储的TAC禁止列表清空,因此,在当前所连接的移动网络切换至第二SIM卡连接移动网络时,不会因为网络切换之前存储的TAC禁止列表,而影响终端当前通过第二SIM卡连接移动网络,也即,避免出现当前所处的小区属于该TAC禁止列表中的小区时,导致该终端无法通过第二SIM卡接入到移动网络的情况。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In the embodiments of the present disclosure, before switching the connected mobile network to the mobile network corresponding to the second SIM card, the terminal clears the stored TAC prohibition list Therefore, when the currently connected mobile network is switched to the second SIM card to connect to the mobile network, the TAC prohibition list stored before the network switch will not affect the current connection of the terminal to the mobile network through the second SIM card, that is, to avoid When the current cell belongs to the cell in the TAC prohibition list, the terminal cannot access the mobile network through the second SIM card.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是本公开实施例提供的一种网络切换方法流程图;FIG. 1 is a flowchart of a network switching method provided by an embodiment of the present disclosure;

图2是本公开实施例提供的另一种网络切换方法流程图;FIG. 2 is a flow chart of another network switching method provided by an embodiment of the present disclosure;

图3A是本公开实施例提供的一种终端框图;FIG. 3A is a block diagram of a terminal provided by an embodiment of the present disclosure;

图3B是本公开实施例提供的另一种终端框图;FIG. 3B is a block diagram of another terminal provided by an embodiment of the present disclosure;

图3C是本公开实施例提供的一种第二确定模块框图;Fig. 3C is a block diagram of a second determining module provided by an embodiment of the present disclosure;

图3D是本公开实施例提供的另一种第二确定模块框图;Fig. 3D is a block diagram of another second determination module provided by an embodiment of the present disclosure;

图4是本公开实施例提供的另一种终端框图。Fig. 4 is a block diagram of another terminal provided by an embodiment of the present disclosure.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

在对本公开实施例进行详细的解释说明之前,先对本公开实施例的应用场景予以介绍。由于相关技术中,在使用第一SIM卡进行通信的过程中,终端根据连接第一SIM卡对应的移动网络的连接情况,存储有当前时间之前的TAC禁止列表,该TAC禁止列表包括多个小区的TAC,终端在该多个小区内无法连接到移动网络。当终端由第一SIM卡切换到第二SIM卡时,上述TAC禁止列表仍旧存在,若当前所处的小区属于该TAC禁止列表中的小区,将导致该终端无法通过第二SIM卡接入到移动网络。因此,本公开实施例提供了一种网络切换方法,当检测到由第一SIM卡切换到第二SIM卡时,将TAC禁止列表清空,并根据该第二SIM卡的身份信息,将当前所连接的移动网络切换至第二SIM卡对应的移动网络,实现网络切换。由于在将所连接的移动网络切换至第二SIM卡对应的移动网络之前,终端将存储的TAC禁止列表清空,因此,在通过第二SIM卡连接移动网络时,不会因为网络切换之前存储的TAC禁止列表,而影响终端当前通过第二SIM卡连接移动网络,也即,避免出现当前所处的小区属于该TAC禁止列表中的小区时,导致该终端无法通过第二SIM卡接入到移动网络的情况。Before explaining and describing the embodiments of the present disclosure in detail, the application scenarios of the embodiments of the present disclosure will be introduced first. In the related art, in the process of using the first SIM card for communication, the terminal stores the TAC prohibition list before the current time according to the connection status of the mobile network corresponding to the first SIM card, and the TAC prohibition list includes multiple cells TAC, the terminal cannot connect to the mobile network in the multiple cells. When the terminal is switched from the first SIM card to the second SIM card, the above-mentioned TAC prohibition list still exists. If the cell currently located belongs to the cell in the TAC prohibition list, the terminal cannot access the SIM card through the second SIM card. mobile network. Therefore, an embodiment of the present disclosure provides a network switching method. When switching from the first SIM card to the second SIM card is detected, the TAC forbidden list is cleared, and the current The connected mobile network is switched to the mobile network corresponding to the second SIM card to realize network switching. Since the terminal clears the stored TAC prohibition list before switching the connected mobile network to the mobile network corresponding to the second SIM card, when connecting to the mobile network through the second SIM card, it will not The TAC prohibition list affects the current connection of the terminal to the mobile network through the second SIM card, that is, to avoid the fact that the terminal cannot access the mobile network through the second SIM card when the cell currently located belongs to the cell in the TAC prohibition list. network situation.

图1是本公开实施例提供的一种网络切换方法流程图,该网络切换方法用于双卡单通的终端中,该终端上安装有第一SIM卡和第二SIM卡,如图1所示,该网络切换方法包括以下步骤。Fig. 1 is a flow chart of a network switching method provided by an embodiment of the present disclosure. The network switching method is used in a dual-card single-pass terminal, and the terminal is installed with a first SIM card and a second SIM card, as shown in Fig. 1 As shown, the network switching method includes the following steps.

在步骤101中,当检测到由第一SIM卡切换到第二SIM卡时,将存储的TAC禁止列表清空,该TAC禁止列表用于存储禁止进行网络连接的小区TAC。In step 101, when switching from the first SIM card to the second SIM card is detected, the stored TAC prohibition list is cleared, and the TAC prohibition list is used to store TACs of cells prohibited from network connection.

在步骤102中,确定第二SIM卡的身份信息。In step 102, the identity information of the second SIM card is determined.

在步骤103中,根据第二SIM卡的身份信息,将当前所连接的移动网络切换至第二SIM卡对应的移动网络,以实现网络切换。In step 103, according to the identity information of the second SIM card, the currently connected mobile network is switched to the mobile network corresponding to the second SIM card, so as to realize network switching.

本公开实施例中,由于在将所连接的移动网络切换至第二SIM卡对应的移动网络之前,终端将存储的TAC禁止列表清空,因此,在当前所连接的移动网络切换至第二SIM卡连接移动网络时,不会因为网络切换之前存储的TAC禁止列表,而影响终端当前通过第二SIM卡连接移动网络,也即,避免出现当前所处的小区属于该TAC禁止列表中的小区时,导致该终端无法通过第二SIM卡接入到移动网络的情况。In the embodiment of the present disclosure, since the terminal clears the stored TAC prohibition list before switching the connected mobile network to the mobile network corresponding to the second SIM card, the currently connected mobile network is switched to the second SIM card When connecting to the mobile network, the TAC prohibition list stored before the network switch will not affect the current connection of the terminal to the mobile network through the second SIM card, that is, to avoid the current cell belonging to the cell in the TAC prohibition list, As a result, the terminal cannot access the mobile network through the second SIM card.

可选地,根据第二SIM卡的身份信息,将当前所连接的移动网络切换至第二SIM卡对应的移动网络之后,还包括:Optionally, after switching the currently connected mobile network to the mobile network corresponding to the second SIM card according to the identity information of the second SIM card, the method further includes:

确定网络连接失败的小区;Determine the cell where the network connection failed;

将该网络连接失败的小区的TAC添加到清空后的TAC禁止列表中,以更新该TAC禁止列表。The TAC of the cell whose network connection fails is added to the cleared TAC forbidden list, so as to update the TAC forbidden list.

可选地,确定网络连接失败的小区,包括:Optionally, determining the cell where the network connection fails includes:

当检测到网络连接失败时,确定在当前所处小区进行网络连接的连接失败次数;When a network connection failure is detected, determine the number of network connection failures in the current cell;

当该连接失败次数超过预设次数阈值时,将当前所处的小区确定为网络连接失败的小区。When the number of connection failures exceeds the preset number of times threshold, the current cell is determined as the cell where the network connection fails.

可选地,确定网络连接失败的小区,包括:Optionally, determining the cell where the network connection fails includes:

判断当前所处的位置是否发生变化;Determine whether the current location has changed;

当当前所处的位置发生变化时,检测当前所处小区的信号能量和当前所处小区的邻小区的信号能量;When the current location changes, detect the signal energy of the current cell and the signal energy of the neighboring cell of the current cell;

当邻小区的信号能量超过当前所处小区的信号能量时,重新进行网络注册,以接入该邻小区;When the signal energy of the adjacent cell exceeds the signal energy of the current cell, re-register the network to access the adjacent cell;

当接收到网络注册失败消息时,将该邻小区确定为网络连接失败的小区。When the network registration failure message is received, the neighboring cell is determined as a cell whose network connection fails.

可选地,所述移动网络为LTE网络。Optionally, the mobile network is an LTE network.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be described in detail in the embodiments of the present disclosure.

图2是本公开实施例提供的另一种网络切换方法流程图,该网络切换方法应用于双卡单通的终端中,该终端上安装有第一SIM卡和第二SIM卡,如图2所示,该网络切换方法包括以下步骤。Fig. 2 is a flowchart of another network switching method provided by an embodiment of the present disclosure. The network switching method is applied to a dual-card single-pass terminal, and the terminal is installed with a first SIM card and a second SIM card, as shown in Fig. 2 As shown, the network switching method includes the following steps.

在步骤201中,当检测到由第一SIM卡切换到第二SIM卡时,将存储的TAC禁止列表清空,该TAC禁止列表用于存储禁止进行网络连接的小区TAC。In step 201, when switching from the first SIM card to the second SIM card is detected, the stored TAC prohibition list is cleared, and the TAC prohibition list is used to store TACs of cells prohibited from network connection.

在本公开实施例中,终端上安装有两个SIM卡,为了便于说明,将终端当前正在使用的SIM卡作为第一SIM卡,将网络切换后使用的SIM卡作为第二SIM卡。另外,终端在使用第一SIM卡与其他终端进行信息交互的过程中,终端是通过当前所处的小区与其他终端实现信息交互,而每个小区都有自己对应的TAC。如果终端在当前所处的小区内出现网络连接失败,终端可以将该小区的TAC存储于TAC禁止列表中,避免终端在同一小区重复尝试进行网络连接。也即,在终端在使用第一SIM卡的过程中,终端根据连接第一SIM卡对应的移动网络的连接情况,存储有当前时间之前的TAC禁止列表。其中,该移动网络可以为LTE网络,LTE网络为现有的3G网络的演进网络,LTE网络因其高效的信息交互速度而被广泛使用。In the embodiment of the present disclosure, two SIM cards are installed on the terminal. For ease of description, the SIM card currently used by the terminal is used as the first SIM card, and the SIM card used after network switching is used as the second SIM card. In addition, when the terminal uses the first SIM card to perform information interaction with other terminals, the terminal implements information interaction with other terminals through the cell it is currently in, and each cell has its own corresponding TAC. If the terminal fails to connect to the network in the current cell, the terminal can store the TAC of the cell in the TAC forbidden list, so as to prevent the terminal from repeatedly trying to connect to the network in the same cell. That is, when the terminal is using the first SIM card, the terminal stores the TAC prohibition list before the current time according to the connection status of the mobile network corresponding to the first SIM card. Wherein, the mobile network may be an LTE network, and the LTE network is an evolution network of the existing 3G network, and the LTE network is widely used because of its efficient information exchange speed.

由于该TAC禁止列表中的小区是终端在使用第一SIM卡的过程中添加的,当终端切换至第二SIM卡时,当终端当前所处的小区属于上述TAC禁止列表中的小区时,该小区对应的MME(Mobility Management Entity,移动管理实体)可能允许该终端接入该小区,但是由于该小区属于TAC禁止列表中的小区,导致终端无法通过第二SIM卡接入该小区。因此,在本公开实施例中,当终端由第一SIM卡切换至第二SIM卡时,为了使终端可以顺利连接至第二SIM卡对应的移动网络,在终端检测到由第一SIM卡切换到第二SIM卡时,终端可以将当前时间之前存储的TAC禁止列表清空。Since the cells in the TAC forbidden list are added by the terminal during the use of the first SIM card, when the terminal switches to the second SIM card, when the cell where the terminal is currently located belongs to the above-mentioned cells in the TAC forbidden list, the The MME (Mobility Management Entity, Mobility Management Entity) corresponding to the cell may allow the terminal to access the cell, but because the cell belongs to the cell in the TAC forbidden list, the terminal cannot access the cell through the second SIM card. Therefore, in the embodiment of the present disclosure, when the terminal is switched from the first SIM card to the second SIM card, in order to enable the terminal to smoothly connect to the mobile network corresponding to the second SIM card, when the terminal detects that the first SIM card is switched When accessing the second SIM card, the terminal can clear the TAC prohibition list stored before the current time.

另外,在本公开实施例中,该网络切换方法应用于双卡单通的终端中,针对双卡单通的终端,目前主要有手动切换和自动切换两种网络切换方式。手动切换,也即只有当终端检测到针对网络切换的指令时,终端才会由第一SIM卡切换至第二SIM卡,例如,在终端中有“网络切换”选项,当用户通过预设操作触发该“网络切换”选项时,终端将检测到针对网络切换的指令,然后由第一SIM卡切换至第二SIM卡。其中,预设操作可以为点击操作、滑动操作等。自动切换,也即在终端中安装有控制模块,该控制模块可以不停地在两个移动网络之间切换,并自动搜索网络,当该控制模块在两个网络之间切换时,终端也可以检测到该网络切换操作。因此,无论终端通过手动切换还是自动切换实现网络切换,终端都可以检测到由第一SIM卡切换到第二SIM卡的操作,然后执行步骤201。In addition, in the embodiments of the present disclosure, the network switching method is applied to a dual-card single-pass terminal. For a dual-card single-pass terminal, there are mainly two network switching methods: manual switching and automatic switching. Manual switching, that is, only when the terminal detects an instruction for network switching, the terminal will switch from the first SIM card to the second SIM card. For example, there is a "network switching" option in the terminal. When the user passes the preset operation When the "network switching" option is triggered, the terminal will detect an instruction for network switching, and then switch from the first SIM card to the second SIM card. Wherein, the preset operation may be a click operation, a slide operation, and the like. Automatic switching, that is, a control module is installed in the terminal, and the control module can continuously switch between two mobile networks and automatically search for the network. When the control module switches between the two networks, the terminal can also This network switch operation was detected. Therefore, regardless of whether the terminal implements network switching through manual switching or automatic switching, the terminal can detect the operation of switching from the first SIM card to the second SIM card, and then perform step 201 .

在步骤202中,确定第二SIM卡的身份信息。In step 202, the identity information of the second SIM card is determined.

当终端将当前时间之前存储的TAC禁止列表清空之后,终端可以将网络由第一SIM卡切换至第二SIM卡,然后接入第二SIM卡对应的移动网络。在终端接入第二SIM卡对应的移动网络的过程中,MME中的鉴权中心需要对该第二SIM卡的身份信息进行验证,以确定是否允许终端接入该第二SIM卡对应的移动网络,因此,终端需要先确定该第二SIM卡的身份信息。After the terminal clears the TAC prohibition list stored before the current time, the terminal can switch the network from the first SIM card to the second SIM card, and then access the mobile network corresponding to the second SIM card. When the terminal accesses the mobile network corresponding to the second SIM card, the authentication center in the MME needs to verify the identity information of the second SIM card to determine whether the terminal is allowed to access the mobile network corresponding to the second SIM card. network, therefore, the terminal needs to first determine the identity information of the second SIM card.

其中,第二SIM卡的身份信息用于唯一标识该第二SIM卡,在第二SIM和MME的鉴权中心中预先存储有该第二SIM卡的身份信息,该第二SIM卡的身份信息包括IMSI(International Mobile Subscriber Identity,国际移动用户识别码)和Ki(Keyidentifier,手机鉴权密钥)等。IMSI用于唯一识别移动用户也即SIM卡,Ki为SIM卡与运营商之间加密数据传递的密钥,且IMSI和Ki配合使用可以用来验证该第二SIM卡的身份信息。Wherein, the identity information of the second SIM card is used to uniquely identify the second SIM card, the identity information of the second SIM card is pre-stored in the authentication center of the second SIM and the MME, and the identity information of the second SIM card Including IMSI (International Mobile Subscriber Identity, International Mobile Subscriber Identity) and Ki (Keyidentifier, mobile phone authentication key), etc. The IMSI is used to uniquely identify the mobile user, that is, the SIM card, and Ki is the key for encrypted data transfer between the SIM card and the operator, and the combination of IMSI and Ki can be used to verify the identity information of the second SIM card.

在步骤203中,根据第二SIM卡的身份信息,将当前所连接的移动网络切换至第二SIM卡对应的移动网络,以实现网络切换。In step 203, according to the identity information of the second SIM card, the currently connected mobile network is switched to the mobile network corresponding to the second SIM card, so as to realize network switching.

在本公开实施例中,终端在确定第二SIM卡的身份信息后,可以将第二SIM卡的身份信息发送给鉴权中心,当鉴权中心接收到该第二SIM卡的身份信息时,对该第二SIM卡的身份信息进行验证,如果验证通过,则允许该终端通过第二SIM卡接入该第二SIM卡对应的移动网络,实现终端由第一SIM卡对应的移动网络切换至第二SIM卡对应的移动网络。In the embodiment of the present disclosure, after determining the identity information of the second SIM card, the terminal may send the identity information of the second SIM card to the authentication center, and when the authentication center receives the identity information of the second SIM card, Verify the identity information of the second SIM card, and if the verification is passed, the terminal is allowed to access the mobile network corresponding to the second SIM card through the second SIM card, so that the terminal is switched from the mobile network corresponding to the first SIM card to the mobile network corresponding to the second SIM card. The mobile network corresponding to the second SIM card.

在一种可能的实现方式中,鉴权中心对该第二SIM卡的身份信息进行验证的实现过程可以为:当鉴权中心接收到该第二SIM卡的身份信息时,通过该第二SIM卡身份信息包括的IMSI和Ki,计算出SRES(Signed Response,签字应答),如果鉴权中心计算出的SRES和第二SIM卡通过IMSI和Ki计算出的SRES相同,则鉴权成功,表明终端可以接入该第二SIM卡对应的移动网络。否则鉴权不成功,也即终端没有权限接入该第二SIM卡对应的移动网络。In a possible implementation manner, the implementation process for the authentication center to verify the identity information of the second SIM card may be: when the authentication center receives the identity information of the second SIM card, through the second SIM The IMSI and Ki included in the card identity information calculate the SRES (Signed Response, signature response). If the SRES calculated by the authentication center is the same as the SRES calculated by the second SIM card through the IMSI and Ki, the authentication is successful, indicating that the terminal The mobile network corresponding to the second SIM card can be accessed. Otherwise, the authentication is unsuccessful, that is, the terminal has no right to access the mobile network corresponding to the second SIM card.

可选地,在本公开实施例中,在终端通过第二SIM卡接入移动网络之后,也即在终端通过第二SIM卡与其他终端进行信息交互的过程中,终端可以根据接入该第二SIM卡对应的移动网络的情况,对清空后的TAC禁止列表进行更新。终端对清空后的TAC禁止列表进行更新可以通过步骤204来实现。Optionally, in this embodiment of the present disclosure, after the terminal accesses the mobile network through the second SIM card, that is, during the information interaction process between the terminal and other terminals through the second SIM card, the terminal may In the case of the mobile network corresponding to the second SIM card, the cleared TAC prohibition list is updated. The terminal may update the cleared TAC prohibition list through step 204 .

在步骤204中,确定网络连接失败的小区,并将该网络连接失败的小区的TAC添加到清空后的TAC禁止列表中,以更新该TAC禁止列表。In step 204, the cell whose network connection fails is determined, and the TAC of the cell whose network connection fails is added to the cleared TAC forbidden list, so as to update the TAC forbidden list.

在终端接入第二SIM卡对应的移动网络之后,终端当前可能出现连接网络失败情况,此时为了避免终端重复尝试接入该小区,终端可以将网络连接失败的小区的TAC添加到清空后的TAC禁止列表中,使得终端无法通过第二SIM卡接入该网络连接失败小区。After the terminal accesses the mobile network corresponding to the second SIM card, the terminal may fail to connect to the network. At this time, in order to prevent the terminal from repeatedly trying to access the cell, the terminal can add the TAC of the cell that failed to connect to the network to the cleared In the TAC prohibition list, the terminal cannot access the network connection failure cell through the second SIM card.

其中,终端确定网络连接失败的小区可以通过以下两种可能的方式实现。Wherein, the terminal may determine the cell whose network connection fails in the following two possible manners.

第一种可能的方式,当终端当前与该第二SIM卡对应的移动网络出现中断,也即网络连接失败时,确定连接失败次数,当连接失败次数超过预设次数阈值时,将当前所处的小区确定为网络连接失败的小区。In the first possible way, when the current mobile network corresponding to the second SIM card of the terminal is interrupted, that is, when the network connection fails, the number of connection failures is determined, and when the number of connection failures exceeds the preset number of thresholds, the current The cell identified as the network connection failure cell.

值得注意的是,当检测到网络连接失败时,如果直接将当前所处的小区的TAC添加到TAC禁止列表中,终端将无法再次接入到该小区,特别地,当该当前所处的小区的网络只是短暂出现异常,此时将该当前所处的小区的TAC添加到TAC禁止列表中,导致该小区的网络恢复正常后,终端也无法接入该当前所处的小区。因此,在本公开实施例中,当终端检测到网络连接失败时,记录连接失败次数,并开始计时,当计时时间达到时,重新进行网络连接,如果重新进行网络连接仍然失败,更新连接失败次数,重复开始计时,循环执行上述操作,直至终端接入该第二SIM卡对应的移动网络,或连接失败次数超过预设次数阈值。当连接失败次数超过预设次数阈值时,表明当前所处的小区的网络持续出现异常,此时终端可以将当前所处的小区确定为网络连接失败的小区,并将该当前所处的小区的TAC添加到清空后的TAC禁止列表中,避免终端重复尝试接入该当前所处的小区。It is worth noting that when a network connection failure is detected, if the TAC of the current cell is directly added to the TAC forbidden list, the terminal will not be able to access the cell again, especially when the current cell The network of the terminal is abnormal only for a short time. At this time, the TAC of the current cell is added to the TAC prohibition list, so that the terminal cannot access the current cell after the network of the cell returns to normal. Therefore, in the embodiment of the present disclosure, when the terminal detects that the network connection fails, it will record the number of connection failures and start timing. When the timing time is up, it will re-connect to the network. If the re-connection still fails, the number of connection failures will be updated. , start timing repeatedly, and execute the above operations in a loop until the terminal accesses the mobile network corresponding to the second SIM card, or the number of connection failures exceeds the preset threshold. When the number of connection failures exceeds the preset number threshold, it indicates that the network of the current cell continues to be abnormal. At this time, the terminal can determine the current cell as the cell where the network connection fails, and the current cell The TAC is added to the cleared TAC forbidden list, so as to prevent the terminal from repeatedly attempting to access the current cell.

其中,计时时间为终端中预先设置的时间,该计时时间可以为5s、10s或15s等。预设次数阈值为终端中预先设置的次数,该预设次数阈值可以为5次、10次或20次等。Wherein, the counting time is a preset time in the terminal, and the counting time may be 5s, 10s, or 15s. The preset number of times threshold is a preset number of times in the terminal, and the preset number of times threshold may be 5 times, 10 times, or 20 times, etc.

例如,计时时间为5s,预设次数阈值为5次,当终端检测到网络连接失败时,开始计时,并记录连接失败次数为1次,当计时时间5s达到时,重新进行网络连接,循环执行,如果连接失败次数超过5次,终端仍没有接入该当前所处的小区,表明该当前所处的小区的网络持续出现异常,因此,终端可以将该当前所处的小区确定为网络连接失败的小区。For example, the timing time is 5s, and the preset threshold is 5 times. When the terminal detects that the network connection fails, it will start timing and record the number of connection failures as 1 time. When the timing time reaches 5s, re-connect to the network and execute in a loop , if the number of connection failures exceeds 5 times, the terminal still does not access the current cell, indicating that the network of the current cell continues to be abnormal, so the terminal can determine the current cell as a network connection failure district.

第二种可能的方式,当当前所处的位置发生变化时,检测当前所处小区的信号能量和当前所处小区的邻小区的信号能量,当邻小区的信号能量超过当前所处小区的信号能量时,重新进行网络注册,以接入该邻小区。当接收到网络注册失败消息时,将该邻小区确定为网络连接失败的小区。The second possible way is to detect the signal energy of the current cell and the signal energy of the neighboring cell of the current cell when the current location changes. When the signal energy of the neighboring cell exceeds the signal energy of the current cell When the power is off, re-register the network to access the neighboring cell. When the network registration failure message is received, the neighboring cell is determined as a cell whose network connection fails.

需要说明的是,终端在通过第二SIM卡接入移动网络之后,只有终端处于某个小区的网络覆盖范围时,该终端才能接收到该小区的系统消息。由于相邻小区的网络覆盖范围有交集,因此,终端在当前位置时,除了可以接收当前所处的小区的系统消息,还可以接收其他小区的系统消息,该其他小区也即邻小区。It should be noted that after the terminal accesses the mobile network through the second SIM card, only when the terminal is within the network coverage of a certain cell, the terminal can receive the system message of the cell. Since the network coverages of adjacent cells overlap, when the terminal is at the current location, it can receive system information of other cells besides the system information of the current cell, and the other cells are also neighbor cells.

在第二种可能的方式中,当当前所处的位置发生变化时,终端接收当前所处小区的系统消息和当前所处小区的邻小区的系统消息,根据当前所处小区的系统消息和当前所处小区的邻小区的系统消息,确定当前所处小区的信号能量和当前所处小区的邻小区的信号能量,然后判断是否需要进行位置更新。也即,当邻小区的信号能量超过当前所处小区的信号能量时,终端重新进行网络注册,以接入该邻小区。In the second possible way, when the current location changes, the terminal receives the system message of the cell it is currently in and the system message The system information of the neighboring cells of the cell where the current cell is located determines the signal energy of the cell where the current cell is located and the signal energy of the neighboring cells of the cell where the current cell is located, and then determines whether a location update is required. That is, when the signal energy of the neighboring cell exceeds the signal energy of the current cell, the terminal re-registers with the network to access the neighboring cell.

其中,终端重新进行网络注册,也即,终端向第二SIM卡对应的MME发送该第二SIM卡的身份信息和该邻小区的TAC,当MME接收到第二SIM卡的身份信息和该邻小区的TAC时,判断该邻小区的TAC是否属于禁止该第二SIM卡接入的小区的TAC,当该邻小区的不属于禁止该第二SIM卡接入的小区的TAC时,更新该第二SIM卡的所处小区的TAC,也即,将该邻小区的TAC作为该终端当前所处的小区的TAC,以便MME能够跟踪该终端,并向该终端发送相应业务。当MME更新该第二SIM卡的当前所处小区的TAC时,确定该终端可以通过第二SIM卡接入该邻小区,然后向终端发送网络注册成功消息。Wherein, the terminal performs network registration again, that is, the terminal sends the identity information of the second SIM card and the TAC of the neighboring cell to the MME corresponding to the second SIM card, when the MME receives the identity information of the second SIM card and the TAC of the neighboring cell When the TAC of the cell is used, it is judged whether the TAC of the adjacent cell belongs to the TAC of the cell that prohibits the access of the second SIM card, and when the TAC of the adjacent cell does not belong to the cell that prohibits the access of the second SIM card, update the TAC The TAC of the cell where the SIM card is located, that is, the TAC of the neighboring cell is used as the TAC of the cell where the terminal is currently located, so that the MME can track the terminal and send corresponding services to the terminal. When the MME updates the TAC of the cell where the second SIM card is currently located, it determines that the terminal can access the neighboring cell through the second SIM card, and then sends a network registration success message to the terminal.

相应地,当MME确定该邻小区的TAC属于禁止该第二SIM卡接入的小区的TAC时,确定该终端没有权限通过第二SIM卡接入该邻小区,向终端发送网络注册失败消息。当终端接收到网络注册失败消息时,将该邻小区确定为网络连接失败的小区,并将该邻小区的TAC添加到TAC禁止列表中,避免终端重复通过第二SIM卡接入该邻小区Correspondingly, when the MME determines that the TAC of the neighboring cell belongs to the TAC of a cell prohibited from accessing the second SIM card, it determines that the terminal is not authorized to access the neighboring cell through the second SIM card, and sends a network registration failure message to the terminal. When the terminal receives the network registration failure message, it determines the neighboring cell as a cell whose network connection fails, and adds the TAC of the neighboring cell to the TAC forbidden list, so as to prevent the terminal from repeatedly accessing the neighboring cell through the second SIM card

其中,当前所处小区的系统消息和当前所处小区的邻小区的系统消息包括相应小区的TAC、相应小区所属的PLMN((Public Land Mobile Network,公共陆地移动网络)以及相应小区的信号能量等信息。PLMN用来区分不同的运营商,当终端接收到当前所处小区的邻小区的系统消息时,会先判断该邻小区所属的PLMN是否属于终端签约的PLMN,当邻小区所属的PLMN是终端签约的PLMN时,终端才继续执行是否需要进行位置更新的操作。特别地,当小区所属的PLMN不是终端签约的PLMN时,终端是不可能接入该邻小区的,也即不会执行位置更新的操作。Among them, the system information of the cell where the current cell is located and the system information of the neighbor cell of the cell where the current cell is located include the TAC of the corresponding cell, the PLMN ((Public Land Mobile Network, Public Land Mobile Network) to which the corresponding cell belongs, and the signal energy of the corresponding cell, etc. Information. PLMN is used to distinguish different operators. When the terminal receives the system information of the neighboring cell of the current cell, it will first judge whether the PLMN of the neighboring cell belongs to the PLMN signed by the terminal. When the PLMN of the neighboring cell is Only when the terminal subscribes to the PLMN, the terminal will continue to perform the operation of whether to update the location. In particular, when the PLMN to which the cell belongs is not the PLMN that the terminal subscribes to, it is impossible for the terminal to access the neighboring cell, that is, the location update will not be performed. The updated operation.

在本公开实施例中由于在将所连接的移动网络切换至第二SIM卡对应的移动网络之前,终端将存储的TAC禁止列表清空,因此,在当前连接的移动网络切换至第二SIM卡连接移动网络时,不会因为网络切换之前存储的TAC禁止列表,而影响终端当前通过第二SIM卡连接移动网络,也即,避免出现当前所处的小区属于该TAC禁止列表中的小区时,导致该终端无法通过第二SIM卡接入到移动网络的情况。In the embodiment of the present disclosure, before switching the connected mobile network to the mobile network corresponding to the second SIM card, the terminal clears the stored TAC prohibition list, therefore, the current connected mobile network is switched to the second SIM card connection When moving the network, it will not affect the current connection of the terminal to the mobile network through the second SIM card because of the TAC prohibition list stored before the network switchover, that is, to avoid the occurrence that the current cell belongs to the cell in the TAC prohibition list, causing The terminal cannot access the mobile network through the second SIM card.

图3A是本公开实施例提供的一种终端300的框图。参见图3A,该终端包括清空模块301、第一确定模块302和切换模块303。FIG. 3A is a block diagram of a terminal 300 provided by an embodiment of the present disclosure. Referring to FIG. 3A , the terminal includes an emptying module 301 , a first determining module 302 and a switching module 303 .

清空模块301,用于当检测到由第一SIM卡切换到第二SIM卡时,将存储的跟踪区域码TAC禁止列表清空,该TAC禁止列表用于存储禁止进行网络连接的小区TAC;The clearing module 301 is used to clear the stored tracking area code TAC prohibition list when it is detected that the first SIM card is switched to the second SIM card, and the TAC prohibition list is used to store the cell TAC prohibited from network connection;

第一确定模块302,用于确定第二SIM卡的身份信息;The first determination module 302 is configured to determine the identity information of the second SIM card;

切换模块303,用于根据第二SIM卡的身份信息,将当前所连接的移动网络切换至第二SIM卡对应的移动网络,以实现网络切换。The switching module 303 is configured to switch the currently connected mobile network to the mobile network corresponding to the second SIM card according to the identity information of the second SIM card, so as to realize network switching.

可选地,参见图3B,该终端还包括第二确定模块304和添加模块305:Optionally, referring to FIG. 3B, the terminal further includes a second determining module 304 and an adding module 305:

第二确定模块304,用于确定网络连接失败的小区;The second determining module 304 is configured to determine a cell whose network connection fails;

添加模块305,用于将该网络连接失败的小区的TAC添加到清空后的TAC禁止列表中,以更新该TAC禁止列表。The adding module 305 is configured to add the TAC of the cell whose network connection failed to the cleared TAC forbidden list, so as to update the TAC forbidden list.

可选地,参见图3C,该第二确定模块304包括第一确定子模块3041和第二确定子模块3042:Optionally, referring to FIG. 3C, the second determination module 304 includes a first determination submodule 3041 and a second determination submodule 3042:

第一确定子模块3041,用于当检测到网络连接失败时,确定在当前所处小区进行网络连接的连接失败次数;The first determination sub-module 3041 is used to determine the number of network connection failures in the current cell when a network connection failure is detected;

第二确定子模块3042,用于当该连接失败次数超过预设次数阈值时,将当前所处的小区确定为网络连接失败的小区。The second determination sub-module 3042 is configured to determine the current cell as the cell where the network connection fails when the number of connection failures exceeds the preset threshold.

可选地,参见图3D,该第二确定模块包括判断子模块3043、检测子模块3044、注册子模块3045和第三确定子模块3046:Optionally, referring to FIG. 3D, the second determination module includes a judgment submodule 3043, a detection submodule 3044, a registration submodule 3045 and a third determination submodule 3046:

判断子模块3043,用于判断当前所处的位置是否发生变化;Judging sub-module 3043, used to judge whether the current location changes;

检测子模块3044,用于当当前所处的位置发生变化时,检测当前所处小区的信号能量和当前所处小区的邻小区的信号能量;The detection sub-module 3044 is used to detect the signal energy of the cell currently located and the signal energy of the neighboring cell of the cell currently located when the current location changes;

注册子模块3045,用于当邻小区的信号能量超过当前所处小区的信号能量时,重新进行网络注册,以接入该邻小区;The registration sub-module 3045 is used to perform network registration again to access the neighboring cell when the signal energy of the adjacent cell exceeds the signal energy of the current cell;

第三确定子模块3046,用于当接收到网络注册失败消息时,将该邻小区确定为网络连接失败的小区。The third determining sub-module 3046 is configured to determine the neighboring cell as a cell whose network connection fails when receiving the network registration failure message.

可选地,所述移动网络为LTE网络。Optionally, the mobile network is an LTE network.

在本公开实施例中,由于在将所连接的移动网络切换至第二SIM卡对应的移动网络之前,终端将存储的TAC禁止列表清空,因此,在当前连接的移动网络切换至第二SIM卡连接移动网络时,不会因为网络切换之前存储的TAC禁止列表,而影响终端当前通过第二SIM卡连接移动网络,也即,避免出现当前所处的小区属于该TAC禁止列表中的小区时,导致该终端无法通过第二SIM卡接入到移动网络的情况。In the embodiment of the present disclosure, since the terminal clears the stored TAC prohibition list before switching the connected mobile network to the mobile network corresponding to the second SIM card, the currently connected mobile network switches to the second SIM card When connecting to the mobile network, the TAC prohibition list stored before the network switch will not affect the current connection of the terminal to the mobile network through the second SIM card, that is, to avoid the current cell belonging to the cell in the TAC prohibition list, As a result, the terminal cannot access the mobile network through the second SIM card.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图4是本公开实施例提供的另一种终端400的框图。该终端上安装有第一SIM卡和第二SIM卡,例如,终端400可以是移动电话等。Fig. 4 is a block diagram of another terminal 400 provided by an embodiment of the present disclosure. A first SIM card and a second SIM card are installed on the terminal, for example, the terminal 400 may be a mobile phone or the like.

参照图4,终端400可以包括以下一个或多个组件:处理组件402,存储器404,电源组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。Referring to FIG. 4, the terminal 400 may include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and communication component 416 .

处理组件402通常控制终端400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operations of the terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402 .

存储器404被配置为存储各种类型的数据以支持在终端400的操作。这些数据的示例包括用于在终端400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 404 is configured to store various types of data to support operations at the terminal 400 . Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件406为终端400的各种组件提供电源。电源组件406可以包括电源管理系统,一个或多个电源,及其他与为终端400生成、管理和分配电源相关联的组件。The power supply component 406 provides power to various components of the terminal 400 . Power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 400 .

多媒体组件408包括在该终端400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当终端400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 408 includes a screen providing an output interface between the terminal 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. When the terminal 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当终端400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a microphone (MIC), which is configured to receive an external audio signal when the terminal 400 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode. Received audio signals may be further stored in memory 404 or sent via communication component 416 . In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为终端400提供各个方面的状态评估。例如,传感器组件414可以检测到终端400的打开/关闭状态,组件的相对定位,例如所述组件为终端400的显示器和小键盘,传感器组件414还可以检测终端400或终端400一个组件的位置改变,用户与终端400接触的存在或不存在,终端400方位或加速/减速和终端400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 414 includes one or more sensors for providing various aspects of a status assessment of the terminal 400 . For example, the sensor component 414 can detect the open/closed state of the terminal 400, the relative positioning of components, for example, the components are the display and the keypad of the terminal 400, and the sensor component 414 can also detect the position change of the terminal 400 or a component of the terminal 400 , the presence or absence of user contact with the terminal 400 , the orientation or acceleration/deceleration of the terminal 400 and the temperature change of the terminal 400 . The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件416被配置为便于终端400和其他设备之间有线或无线方式的通信。终端400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 416 is configured to facilitate wired or wireless communication between the terminal 400 and other devices. The terminal 400 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,终端400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, terminal 400 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由终端400的处理器420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 404 including instructions, which can be executed by the processor 420 of the terminal 400 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行一种网络切换方法,所述方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to perform a network switching method, the method comprising:

当检测到由第一SIM卡切换到第二SIM卡时,将存储的TAC禁止列表清空,该TAC禁止列表用于存储禁止进行网络连接的小区TAC;When it is detected that the first SIM card is switched to the second SIM card, the stored TAC prohibition list is emptied, and the TAC prohibition list is used to store the cell TAC prohibited from network connection;

确定第二SIM卡的身份信息;Determine the identity information of the second SIM card;

根据第二SIM卡的身份信息,将当前所连接的移动网络切换至第二SIM卡对应的移动网络,以实现网络切换。According to the identity information of the second SIM card, the currently connected mobile network is switched to the mobile network corresponding to the second SIM card, so as to realize network switching.

可选地,根据第二SIM卡的身份信息,将当前所连接的移动网络切换至第二SIM卡对应的移动网络之后,还包括:Optionally, after switching the currently connected mobile network to the mobile network corresponding to the second SIM card according to the identity information of the second SIM card, the method further includes:

确定网络连接失败的小区;Determine the cell where the network connection failed;

将该网络连接失败的小区的TAC添加到清空后的TAC禁止列表中,以更新该TAC禁止列表。The TAC of the cell whose network connection fails is added to the cleared TAC forbidden list, so as to update the TAC forbidden list.

可选地,确定网络连接失败的小区,包括:Optionally, determining the cell where the network connection fails includes:

当检测到网络连接失败时,确定在当前所处小区进行网络连接的连接失败次数;When a network connection failure is detected, determine the number of network connection failures in the current cell;

当该连接失败次数超过预设次数阈值时,将当前所处的小区确定为网络连接失败的小区。When the number of connection failures exceeds the preset number of times threshold, the current cell is determined as the cell where the network connection fails.

可选地,确定网络连接失败的小区,包括:Optionally, determining the cell where the network connection fails includes:

判断当前所处的位置是否发生变化;Determine whether the current location has changed;

当当前所处的位置发生变化时,检测当前所处小区的信号能量和当前所处小区的邻小区的信号能量;When the current location changes, detect the signal energy of the current cell and the signal energy of the neighboring cell of the current cell;

当邻小区的信号能量超过当前所处小区的信号能量时,重新进行网络注册,以接入该邻小区;When the signal energy of the adjacent cell exceeds the signal energy of the current cell, re-register the network to access the adjacent cell;

当接收到网络注册失败消息时,将该邻小区确定为网络连接失败的小区。When the network registration failure message is received, the neighboring cell is determined as a cell whose network connection fails.

可选地,所述移动网络为LTE网络。Optionally, the mobile network is an LTE network.

在本公开实施例中,由于在将所连接的移动网络切换至第二SIM卡对应的移动网络之前,终端将存储的TAC禁止列表清空,因此,在当前连接的移动网络切换至第二SIM卡连接移动网络时,不会因为网络切换之前存储的TAC禁止列表,而影响终端当前通过第二SIM卡连接移动网络,也即,避免出现当前所处的小区属于该TAC禁止列表中的小区时,导致该终端无法通过第二SIM卡接入到移动网络的情况。In the embodiment of the present disclosure, since the terminal clears the stored TAC prohibition list before switching the connected mobile network to the mobile network corresponding to the second SIM card, the currently connected mobile network switches to the second SIM card When connecting to the mobile network, the TAC prohibition list stored before the network switch will not affect the current connection of the terminal to the mobile network through the second SIM card, that is, to avoid the current cell belonging to the cell in the TAC prohibition list, As a result, the terminal cannot access the mobile network through the second SIM card.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (11)

CN201611151108.6A2016-12-142016-12-14Method for switching network and terminalActiveCN106454801B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201611151108.6ACN106454801B (en)2016-12-142016-12-14Method for switching network and terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201611151108.6ACN106454801B (en)2016-12-142016-12-14Method for switching network and terminal

Publications (2)

Publication NumberPublication Date
CN106454801Atrue CN106454801A (en)2017-02-22
CN106454801B CN106454801B (en)2019-10-01

Family

ID=58217212

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201611151108.6AActiveCN106454801B (en)2016-12-142016-12-14Method for switching network and terminal

Country Status (1)

CountryLink
CN (1)CN106454801B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107295594A (en)*2017-08-072017-10-24广东欧珀移动通信有限公司 Network switching method, device and mobile terminal
CN108632916A (en)*2017-03-202018-10-09南昌黑鲨科技有限公司Processing method and processing device after multiple random access failure
CN108668324A (en)*2017-03-302018-10-16展讯通信(天津)有限公司data card switching method, device and user equipment
CN112203361A (en)*2020-10-122021-01-08Oppo(重庆)智能科技有限公司Method and device for processing radio link failure, terminal and storage medium
WO2021042227A1 (en)*2019-09-022021-03-11北京小米移动软件有限公司System information processing method and apparatus
WO2021098459A1 (en)*2019-11-182021-05-27Guangdong Oppo Mobile Telecommunications Corp., Ltd.User equipment and method for handling communication abnormality of user equipment
CN115278717A (en)*2021-04-302022-11-01北京小米移动软件有限公司 Method, device, terminal and storage medium for processing measurement results of different systems
CN116347537A (en)*2021-12-222023-06-27荣耀终端有限公司 Call processing method and device

Citations (6)

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

Patent Citations (6)

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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108632916A (en)*2017-03-202018-10-09南昌黑鲨科技有限公司Processing method and processing device after multiple random access failure
CN108668324A (en)*2017-03-302018-10-16展讯通信(天津)有限公司data card switching method, device and user equipment
CN107295594A (en)*2017-08-072017-10-24广东欧珀移动通信有限公司 Network switching method, device and mobile terminal
CN107295594B (en)*2017-08-072019-01-11Oppo广东移动通信有限公司Network switching method and device and mobile terminal
WO2021042227A1 (en)*2019-09-022021-03-11北京小米移动软件有限公司System information processing method and apparatus
WO2021098459A1 (en)*2019-11-182021-05-27Guangdong Oppo Mobile Telecommunications Corp., Ltd.User equipment and method for handling communication abnormality of user equipment
CN114451002A (en)*2019-11-182022-05-06Oppo广东移动通信有限公司 User equipment and method for handling communication abnormality of user equipment
CN114451002B (en)*2019-11-182024-03-19Oppo广东移动通信有限公司 User equipment and method for handling communication exceptions of user equipment
CN112203361A (en)*2020-10-122021-01-08Oppo(重庆)智能科技有限公司Method and device for processing radio link failure, terminal and storage medium
CN112203361B (en)*2020-10-122023-02-28Oppo(重庆)智能科技有限公司Method and device for processing radio link failure, terminal and storage medium
CN115278717A (en)*2021-04-302022-11-01北京小米移动软件有限公司 Method, device, terminal and storage medium for processing measurement results of different systems
CN116347537A (en)*2021-12-222023-06-27荣耀终端有限公司 Call processing method and device

Also Published As

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

Similar Documents

PublicationPublication DateTitle
CN106454801B (en)Method for switching network and terminal
CN106792638B (en) Network connection method and terminal
EP3301856B1 (en)Router management method, router and mobile terminal
CN106792948B (en) Cell switching method and device
CN105554884A (en)Method and device for paging response
CN106714244B (en)Wireless access method and device of terminal and terminal
CN106162763B (en)SIM card switching method and device
CN106851723B (en) Cell switching method and device
CN108966207A (en)Processing method for paging message and device
CN106028375A (en) Prompt method, device and terminal equipment for network switching
CN106376043A (en) SIM card automatic switching method and device
WO2017166739A1 (en)Method and device for performing neighbor cell detection during cell re-selection
CN107404723B (en)Method and device for accessing base station
CN107396367B (en)Prompting method and device for pseudo base station, terminal and computer readable storage medium
US12082143B2 (en)Network registration method, apparatus, system, and storage medium
CN108702689A (en) Cell access method, device and storage medium
CN108184228A (en)Emmergency call method and user equipment
CN107454660A (en)Network method and device are stayed after failed authentication
CN105101125A (en) Method and device for setting call forwarding
CN114401538A (en) Method, device, electronic device and storage medium for network switching
CN107040949B (en) Networking method, device and computer-readable storage medium
CN108668327A (en) Communication method and device for mobile terminal
CN110731090B (en)System message processing method and device
CN106792526B (en) Method and terminal for determining prohibition time in location area
CN106792570A (en)Localization method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp