WO2016169103A1 - 一种网络切换方法、装置和移动终端 - Google Patents
一种网络切换方法、装置和移动终端 Download PDFInfo
- Publication number
- WO2016169103A1 WO2016169103A1 PCT/CN2015/080335 CN2015080335W WO2016169103A1 WO 2016169103 A1 WO2016169103 A1 WO 2016169103A1 CN 2015080335 W CN2015080335 W CN 2015080335W WO 2016169103 A1 WO2016169103 A1 WO 2016169103A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network
- establish
- data service
- service connection
- mobile terminal
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
- H04W36/0022—Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
- H04W36/00224—Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies between packet switched [PS] and circuit switched [CS] network technologies, e.g. circuit switched fallback [CSFB]
-
- 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
- H04W36/144—Reselecting a network or an air interface over a different radio air interface technology
- H04W36/1443—Reselecting a network or an air interface over a different radio air interface technology between licensed networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/249—Reselection being triggered by specific parameters according to timing information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a network switching method, apparatus, and mobile terminal.
- the 4th Generation mobile communication technology (4G) adopts the LTE standard, and the 4G network can adopt the method of Packet Switching (PS) and Circuit Switching (CS).
- PS Packet Switching
- CS Circuit Switching
- SFB Circuit Switched Fallback
- SGLTE Simultaneous GSM and LTE
- the mobile terminal may send a Packet Data Protocol active request (PDP active request) to the network side to establish a data service connection with the network side.
- PDP active request Packet Data Protocol active request
- the mobile terminal may send a Packet Data Protocol active request (PDP active request) to the network side to establish a data service connection with the network side.
- PDP active request is sent, if the mobile terminal receives the activation success message returned by the network side, it indicates that the data service connection has been established; if the mobile terminal receives the activation failure message returned by the network side, the mobile terminal will The PDP active request is resent to the network side every preset time period (such as 30s) until the activation success message is received.
- the activation failure messages are, for example, clear code 29 and clear code 33.
- the clear code 29 is User Authentication Failure, indicating that the user authentication fails; the clear code 33 is Requested Service Option not subscribed, indicating that there is no subscription service request option.
- the clear code 29 or 33 is generally caused by network congestion, long response time, or limited network resources on the network side. After receiving the clear code 29 or clear code 33, if the currently registered 4G network environment is good, the mobile terminal will not automatically fall back to the 2th Generation mobile communication technology (2G) or the third generation.
- the 3th Generation mobile communication technology The 3G) network, in this way, the mobile terminal will not be able to carry out data services with the network side before receiving the activation success message. That is to say, if the mobile terminal side network is good and the network side network has a problem, the mobile terminal cannot establish a data service connection with the network side for a period of time, and thus the data service cannot be performed normally.
- the main purpose of the present invention is to provide a network switching method, device, and terminal, so as to solve the problem in the prior art that if the mobile terminal side network is good and the network side network has a problem, the mobile terminal cannot establish with the network side for a period of time. The data service is connected, and the problem of data service cannot be performed normally.
- the present invention provides a network switching method.
- the step performed on the mobile terminal side includes: after completing the network registration, attempting to establish a data service connection with the network side; if attempting to establish a data service connection fails, and attempting to establish a data service connection time If the length reaches the preset time length threshold, the currently registered network is switched to another network.
- the attempt to establish a data service connection with the network side includes: attempting to establish a data service connection with the network side by sending a packet data protocol activation request to the network side.
- the currently registered network is switched to another network, including: if the network side is received
- the returned activation failure message accumulates the number of times the activation failure message is received, and sends a packet data protocol activation request to the network side again every preset time period; when the number of consecutively receiving the activation failure message reaches a preset number of times threshold Switch the currently registered network to another network.
- the method further includes: if the mobile terminal generates a routing cell update or restarts, re-registering the network.
- the process of switching the currently registered network to another network includes: performing network registration on the other network; and the network registration includes: setting a network priority for each registrable network; and following the network priority Network registration is attempted from high to low until the network registration is complete.
- the invention also provides a network switching device, comprising: a connection module, wherein the mobile terminal is finished After the network is registered, an attempt is made to establish a data service connection with the network side; the switching module is configured to: if the attempt to establish a data service connection fails, and the time length of the attempt to establish a data service connection reaches a preset time length threshold, the currently registered network Switch to another network.
- the connection module is configured to establish a data service connection with the network side by sending a packet data protocol activation request to the network side.
- the switching module is configured to: if the activation failure message returned by the network side is received, the number of times the activation failure message is received is accumulated, and the packet data protocol activation request is sent to the network side again every preset time period; When the number of consecutively receiving the activation failure message reaches a preset number of times threshold, the currently registered network is switched to another network.
- the device further includes a registration module, configured to re-authenticate the network if the mobile terminal generates a routing cell update or restarts.
- the present invention further provides a mobile terminal, the mobile terminal comprising a processor and a memory, wherein the memory stores a set of program codes, and the processor is configured to invoke program code stored in the memory, for Do the following:
- the attempt to establish a data service connection fails and the time length of the attempt to establish a data service connection reaches a preset time length threshold, the currently registered network is switched to another network.
- the processor attempts to establish a data service connection with the network side, and the specific operations include:
- An attempt is made to establish a data service connection with the network side by transmitting a packet data protocol activation request to the network side.
- the processor switches the currently registered network to another network, if the attempt to establish a data service connection with the network side fails and the time length of the attempt to establish a data service connection reaches a preset time length threshold, the specific operation includes: :
- the number of times the activation failure message is received is accumulated, and the packet data protocol activation request is sent to the network side again every preset time period;
- the currently registered network is switched to another network.
- the processor further performs:
- the network registration is re-executed.
- the mobile terminal of the present invention cannot establish a data service connection with the network side for a period of time, the currently registered network is switched to another network, so as to re-attempt to establish a data service connection in the new network environment.
- the invention can reduce the time cost for the user to wait for the connection to be established, reduce the network load, and improve the user experience.
- FIG. 1 is a flowchart of a network switching method according to an embodiment of the present invention.
- FIG. 2 is a specific flowchart of a network switching method according to an embodiment of the present invention.
- FIG. 3 is a structural diagram of a network switching apparatus according to an embodiment of the present invention.
- FIG. 4 is a structural diagram of a mobile terminal according to an embodiment of the present invention.
- the main idea of the present invention is that after the network registration is completed, if the data service needs to be carried out, the mobile terminal attempts to establish a data service connection with the network side. If the connection is established, the data service can be performed; if the network cannot be connected with the network side for a period of time Establish a data service connection, then switch the currently registered network to another network, avoid the currently registered network with possible problems, and re-attempt to establish a data service connection in the new network environment, so as to quickly establish a data service connection.
- the invention can reduce the time cost for the user to wait for the connection to be established, reduce the network load, and improve the user experience.
- a network switching method is provided. As shown in FIG. 1, it is a flowchart of a network switching method according to an embodiment of the present invention. This embodiment is executed on the mobile terminal side.
- Step S110 after completing the network registration, attempt to establish a data service connection with the network side.
- Mobile terminals include, but are not limited to, mobile phones, computers, and tablets.
- the network registered by the mobile terminal includes, but is not limited to, a 2G network, a 3G network, and a 4G network.
- the network side refers to a registered network, including but not limited to: a base station in a registered network.
- Step S120 If the attempt to establish a data service connection fails and the length of time for attempting to establish a data service connection reaches a preset time length threshold, the currently registered network is switched to another network.
- the mobile terminal and the network side can perform data service transactions. Normal data services can be performed only after the mobile terminal and the network side establish a data service connection.
- registration of the other network may be implemented.
- the network switching action may be initiated by the mobile terminal or initiated by the user.
- step S110 is re-executed.
- step S120 is re-executed.
- the network currently registered by the mobile terminal is switched to another network.
- the network currently registered by the mobile terminal is switched to another network.
- a packet data protocol activation request (PDP activation request) is sent to the network side, and an attempt is made to establish a data service connection with the network side. If the activation success message returned by the network side is received, the data service connection is established; if the activation failure message returned by the network side is received, the number of times the activation failure message is received is accumulated, and the network side is again performed every preset time period. Sending a PDP activation request; when the number of consecutively receiving the activation failure message reaches a preset number of times threshold, the currently registered network is switched to another network.
- FIG. 2 is a specific flowchart of a network switching method according to an embodiment of the present invention.
- step S210 network registration is implemented within a plurality of registrable networks.
- a registrable network refers to a network that the mobile terminal can select when performing a registration operation.
- network priorities are set for each registrable network; network registration is attempted in descending order of network priority until network registration is completed. Further, it can be
- Each of the plurality of registrable networks sets a priority; and the priority of each registrable network can be temporarily set according to the current network environment state of the plurality of registrable networks at the mobile terminal side.
- the priority of the 4G network, the 3G network, and the 2G network is directly lowered, then when registering the network, try to register the 4G network first. If the 4G network environment is poor and cannot be registered, try to register the 3G network. By analogy, it is registered to a network in a 4G network, a 3G network, and a 2G network.
- the 3G network environment is the best, the 2G network environment is the second, and the 4G network environment is the worst. You can temporarily set the 3G network with the highest priority, the 2G network priority, and the 4G network priority. The lowest level.
- Step S220 attempting to establish a data service connection with the network side by sending a PDP activation request to the network side.
- the data service connection may be established with the network side by sending a PDP activation request to the network side.
- the PDP activation request is used to request the network side to establish a data service connection with the mobile terminal for data service.
- Step S230 receiving an activation success message or an activation failure message returned by the network side. If an activation failure message is received, step S240 is performed; if an activation success message is received, step S280 is performed.
- the network side after receiving the PDP activation request sent by the mobile terminal, the network side returns an activation success message or an activation failure message to the mobile terminal.
- the activation success message indicates that the data service connection has been established.
- the activation failure message indicates that the data service connection establishment fails, and data service cannot be performed temporarily.
- Activation failure messages include: clear code 29, clear code 33.
- the establishment of a data service connection fails because the network environment on the network side is not good, such as: network congestion, shortage of resources on the network side, and the like. These reasons can be alleviated or released after a certain period of time. For example, during the peak period of network usage, network congestion is likely to occur. After the peak usage period of the network, the network congestion problem will be alleviated, and data services can be performed normally.
- step S240 the number of times the activation failure message is received is accumulated.
- the user may be prompted that the currently registered network cannot establish a network connection. After the user sees the prompt, the user can actively perform network switching, or wait for the mobile terminal to automatically perform network switching.
- Step S250 Determine whether the number of times the activation failure message is received reaches a preset number of times threshold. If yes, go to step S270; if no, go to step S260.
- the number of thresholds can be an empirical value. According to the interval of sending PDP activation requests twice and the threshold of the number of times, it can be measured how long the registration network has not been able to establish a data service connection. If the length of time that the data service connection cannot be established reaches the time length threshold, you can consider switching to another network to perform data services in a better network environment.
- Step S260 after the preset time period, send a PDP activation request to the network side again. That is to say, after the preset time period, step S220 is performed again.
- the preset time period is the interval at which the PDP activation request is sent twice in succession.
- the preset time period is 2h, and after receiving the activation failure message 2h, the PDP activation request is sent to the network side again.
- step S270 the currently registered network is switched to another network, and the accumulated number of times is set to zero.
- the currently registered network is switched to another network.
- the network registration When the network registration is re-registered, the network registration may be sequentially tried according to the priority of the plurality of registrable networks from high to low, until registration to one of the registrable networks. Further, in the process of attempting network registration, the network that cannot establish a data service connection may be skipped in order to quickly register to other networks.
- the number of times threshold is 3 times; the network currently registered by the mobile terminal is a 4G network; when the mobile terminal needs to perform data service, a PDP activation request is sent to the network side, and a clear code 29 is received every time a PDP activation request is sent. Or clear code 33, and the number of consecutive receipts of clear code 29 is 3 or the number of consecutively received clear code 33 is 3. Then, if the network currently registered by the mobile terminal is identified as a 4G network, the user is prompted to "the 4G network has a problem. Data services cannot be performed", and then the 4G network is switched to a 2G network or a 3G network.
- step S280 the accumulated number of times is set to zero, and the data service connection is established, and the data service can be performed.
- the network registration may be re-executed in the case that the mobile terminal generates a routing cell update or restart.
- the mobile terminal sends the current location information of the mobile terminal to the network side at intervals.
- the network side returns the RAU parameter to the mobile terminal according to the current location information of the mobile terminal.
- the mobile terminal records the RAU parameter returned by the network side; and, according to this time
- the received RAU parameter and the last received RAU parameter determine whether the current RAU parameter and the previous RAU parameter have changed, and thus can determine whether the mobile terminal has a routing cell update, and if so, re-execute Network registration, if not, there is no need to re-register the network.
- step S210 For the step of re-registering the network, reference may be made to step S210 above.
- the network registered by the mobile terminal is a 4G network
- the network registered by the mobile terminal is a 2G or 3G network
- TAC Tracking Area Code
- the invention also provides a network switching device. As shown in Figure 3.
- the device includes:
- the registration module 310 is configured to complete network registration for the mobile terminal.
- the registration module 310 is further configured to re-authenticate the network if the mobile terminal has a routing cell update or restart.
- the connection module 320 is configured to establish a data service connection with the network side after the mobile terminal completes the network registration.
- the switching module 330 is configured to switch the currently registered network to another network if an attempt to establish a data service connection fails and the length of time for attempting to establish a data service connection reaches a preset time length threshold.
- connection module 320 is configured to request to establish a data service connection with the network side by sending a PDP activation request to the network side.
- the switching module 330 is configured to: if the activation failure message returned by the network side is received, accumulate the number of times the activation failure message is received, and send the PDP activation request to the network side again every preset time period; when the activation failure is continuously received When the number of times the message reaches the preset number of times, the currently registered network is switched to another network.
- the network switching device of the present invention may be disposed in a mobile terminal, and the mobile terminal performs network switching based on the device.
- the mobile terminal 4 may include at least one processor 41, such as a CPU, at least one communication bus 42 and a memory 43; a communication bus 42 for implementing connection communication between these components; and the memory 43 may be high speed
- the RAM memory may also be a non-volatile memory such as at least one disk memory.
- a set of program codes is stored in the memory 43, and the processor 41 is configured to call the program code stored in the memory 43 for performing the following operations:
- the attempt to establish a data service connection fails and the time length of the attempt to establish a data service connection reaches a preset time length threshold, the currently registered network is switched to another network.
- the processor 41 attempts to establish a data service connection with the network side, and the specific operations include:
- An attempt is made to establish a data service connection with the network side by transmitting a packet data protocol activation request to the network side.
- the processor 41 switches the currently registered network to another network.
- Specific operations include:
- the number of times the activation failure message is received is accumulated, and the packet data protocol activation request is sent to the network side again every preset time period;
- the currently registered network is switched to another network.
- processor 41 further performs:
- the network registration is re-executed.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种网络切换方法、装置和移动终端。其中,所述方法包括:在完成网络注册之后,尝试与网络侧建立数据业务连接;如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。本发明的移动终端如果在一段时间内无法与网络侧建立数据业务连接,则将当前注册的网络切换到其他网络,以便在新的网络环境下,重新尝试建立数据业务连接。通过本发明可以降低用户等待建立连接的时间成本,降低网络负荷,提升用户的体验效果。
Description
本申请要求于2015年4月23日提交中国专利局,申请号为201510196678.6、发明名称为“一种网络切换方法、装置和移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及通信技术领域,尤其涉及一种网络切换方法、装置和移动终端。
目前,第四代移动通信技术(the 4th Generation mobile communication technology,简称4G)采用LTE制式,4G网络可以通过联合附着分组交换(Packet Switching,简称PS)和电路交换(Circuit Switching,简称CS)的方式来进行数据业务;而语音业务则需要借助电路域回落(Circuit Switched Fallback,简称CSFB)技术或SGLTE(simultaneous GSM and LTE)技术来实现。
移动终端完成4G网络注册之后,移动终端可以向网络侧发送分组数据协议激活请求(Packet Data Protocol active request,简称PDP active request),以便与网络侧建立数据业务连接。在PDP active request(PDP激活请求)发出后,如果移动终端接收到网络侧返回的激活成功消息,则表示数据业务连接已经建立;如果移动终端接收到网络侧返回的激活失败消息,则移动终端会每隔预设时间段(如30s)重新向网络侧发送PDP active request,直至接收到激活成功消息为止。
激活失败消息例如是:clear code 29和clear code 33。clear code 29为User Authentication Failure,表示用户鉴权失败;clear code 33为Requested Service Option not subscribed,表示没有订制服务请求选项。
clear code 29或者33一般是由于网络侧出现网络拥塞、响应时间过长、或者网络侧资源有限等问题造成的。移动终端在接收到clear code 29或者clear code 33之后,如果当前注册的4G网络环境良好,则不会自动回落到第二代移动通信技术(the 2th Generation mobile communication technology,简称2G)或第三代移动通信技术(the 3th Generation mobile communication technology,简
称3G)网络,这样,移动终端在接收到激活成功消息之前,将无法与网络侧开展数据业务。也即是说,如果移动终端侧网络良好,而网络侧网络出现问题,将导致移动终端在一段时间内无法与网络侧建立数据业务连接,进而无法正常进行数据业务。
发明内容
本发明的主要目的在于提供一种网络切换方法、装置和终端,以解决现有技术中,如果移动终端侧网络良好,而网络侧网络出现问题,导致移动终端在一段时间内无法与网络侧建立数据业务连接,进而无法正常进行数据业务的问题。
基于上述技术问题,本发明是通过以下技术方案来解决的。
本发明提供了一种网络切换方法,在移动终端侧执行的步骤包括:在完成网络注册之后,尝试与网络侧建立数据业务连接;如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。
其中,所述尝试与网络侧建立数据业务连接,包括:通过向网络侧发送分组数据协议激活请求,尝试与网络侧建立数据业务连接。
其中,如果所述尝试与网络侧建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络,包括:如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送分组数据协议激活请求;当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
其中,所述方法还包括:如果移动终端发生路由小区更新或者重新启动,则重新进行网络注册。
其中,在将当前注册的网络切换到其他网络的过程中,包括:针对所述其他网络进行网络注册;所述网络注册,包括:为可注册的各网络分别设置网络优先级;按照网络优先级从高到低的顺序尝试进行网络注册,直至网络注册完成。
本发明还提供了一种网络切换装置,包括:连接模块,用于移动终端在完
成网络注册之后,尝试与网络侧建立数据业务连接;切换模块,用于如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。
其中,所述连接模块,用于通过向网络侧发送分组数据协议激活请求,尝试与网络侧建立数据业务连接。
其中,所述切换模块,用于:如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送分组数据协议激活请求;当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
其中,所述装置还包括注册模块,用于在移动终端发生路由小区更新或者重新启动的情况下,重新进行网络注册。
本发明又提供了一种移动终端,所述移动终端包括处理器和存储器,其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,用于执行以下操作:
在完成网络注册之后,尝试与网络侧建立数据业务连接;
如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。
其中,所述处理器尝试与网络侧建立数据业务连接,具体操作包括:
通过向网络侧发送分组数据协议激活请求,尝试与网络侧建立数据业务连接。
其中,如果所述尝试与网络侧建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则所述处理器将当前注册的网络切换到其他网络,具体操作包括:
如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送分组数据协议激活请求;
当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
其中,所述处理器还执行:
如果移动终端发生路由小区更新或者重新启动,则重新进行网络注册。
本发明有益效果如下:
本发明的移动终端如果在一段时间内无法与网络侧建立数据业务连接,则将当前注册的网络切换到其他网络,以便在新的网络环境下,重新尝试建立数据业务连接。通过本发明可以降低用户等待建立连接的时间成本,降低网络负荷,提升用户的体验效果。
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的网络切换方法的流程图;
图2是根据本发明实施例的网络切换方法的具体流程图;
图3是根据本发明实施例的网络切换装置的结构图;
图4是根据本发明实施例的移动终端的结构图。
本发明的主要思想是,移动终端在完成网络注册之后,如果需要开展数据业务,则尝试与网络侧建立数据业务连接,如果连接建立,则可以开展数据业务;如果在一段时间内无法与网络侧建立数据业务连接,则将当前注册的网络切换到其他网络,避开当前注册的可能存在问题的网络,在新的网络环境下,重新尝试建立数据业务连接,以达到快速建立数据业务连接,进行数据业务的目的。通过本发明可以降低用户等待建立连接的时间成本,降低网络负荷,提升用户的体验效果。
为使本发明的目的、技术方案和优点更加清楚,以下结合附图及具体实施例,对本发明作进一步地详细说明。
根据本发明的实施例,提供了一种网络切换方法。如图1所示,为根据本发明实施例的网络切换方法的流程图。本实施例在移动终端侧执行
步骤S110,在完成网络注册之后,尝试与网络侧建立数据业务连接。
移动终端包括但不限于:手机、计算机、平板电脑。
移动终端注册的网络包括但不限于:2G网络、3G网络和4G网络。
网络侧指注册的网络,其包括但不限于:注册网络中的基站。
步骤S120,如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。
如果移动终端在尝试与网络侧建立数据业务连接时,数据业务连接成功建立,则移动终端和网络侧可以进行数据业务往来。只有在移动终端和网络侧建立数据业务连接之后,才能进行正常的数据业务。
具体的,在将当前注册的网络切换到其他网络的过程中,即可以实现该其他网络的注册。网络切换动作可以由移动终端发起,也可以由用户主动发起。
在执行步骤S110-S120的过程中,如果移动终端发生路由小区更新(Route Area Update,简称RAU)、或者移动终端重新启动,则重新进行网络注册,并且在完成网络注册之后,重新执行步骤S110-S120。
本实施例为了提高用户体验效果,在屡次尝试建立数据业务连接、且连接失败持续的时间长度达到预设的时间长度阈值时,将移动终端当前注册的网络切换到其他网络上。在当前注册的网络有问题的情况下,可以在其他网络尝试建立数据业务连接,降低用户在当前注册的网络上花费的时间成本,以及降低当前注册的网络的负荷。
下面给出一个较为具体的实施例,但是本领域技术人员应当知道,本实施例只为进一步地的说明本发明,并不用于限制本发明。
本实施例通过向网络侧发送分组数据协议激活请求(PDP激活请求),尝试与网络侧建立数据业务连接。如果接收到网络侧返回的激活成功消息,则数据业务连接建立;如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送PDP激活请求;当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
具体如图2所示的根据本发明实施例的网络切换方法的具体流程图。
步骤S210,在多个可注册的网络范围内,实现网络注册。
可注册的网络是指:在执行注册操作时,移动终端可选择的网络。
具体而言,为可注册的各网络分别设置网络优先级;按照网络优先级从高到低的顺序,尝试进行网络注册,直至网络注册完成。进一步地,可以预先为
多个可注册的网络中的每个网络设置优先级;也可以根据移动终端侧,这多个可注册的网络当时的网络环境状态,临时设置每个可注册的网络的优先级。
例如:直接设置4G网络、3G网络和2G网络的优先级逐次降低,那么在进行网络注册时,先尝试注册4G网络,在4G网络环境较差不能进行注册时,再尝试注册3G网络,以此类推,直至注册到4G网络、3G网络和2G网络中的一个网络。
又如:如果在移动终端需要注册网络时,3G网络环境最优,2G网络环境次之,4G网络环境最差,则可以临时设置3G网络优先级最高、2G网络优先级次之、4G网络优先级最低。
本实施例优选的,在设置网络优先级时,将4G网络设置为最高优先级。
步骤S220,通过向网络侧发送PDP激活请求,来尝试与网络侧建立数据业务连接。
在完成网络注册之后,在开展数据业务之前,可以通过向网络侧发送PDP激活请求,来尝试与网络侧建立数据业务连接。PDP激活请求用于请求网络侧与移动终端建立数据业务连接,以便进行数据业务。
步骤S230,接收网络侧返回的激活成功消息或激活失败消息。如果接收到激活失败消息,则执行步骤S240;如果接收到激活成功消息,则执行步骤S280。
根据现有技术可知,网络侧在接收到移动终端发送的PDP激活请求之后,会向移动终端返回激活成功消息或激活失败消息。激活成功消息表示数据业务连接已经建立。激活失败消息表示数据业务连接建立失败,暂时不能进行数据业务。激活失败消息包括:clear code 29、clear code 33。
一般而言,数据业务连接建立失败是因为网络侧的网络环境不佳,如:网络拥塞、网络侧资源短缺等原因造成的。这些原因在一定时间后可以缓解或解除,例如:在网络使用的高峰期,容易出现网络拥塞的问题,在网络使用高峰期过后,网络拥塞问题便会得到缓解,数据业务可以正常进行。
步骤S240,累计接收到激活失败消息的次数。
当接收到激活失败消息时,可以提示用户当前注册的网络不能建立网络连接。用户看到提示后,可以主动进行网络切换,也可以等待移动终端自动进行网络切换。
步骤S250,判断接收激活失败消息的次数是否达到预设的次数阈值。若是,则执行步骤S270;若否,则执行步骤S260。
次数阈值可以是经验值。根据连续两次发送PDP激活请求的时间间隔、以及该次数阈值,可以衡量出该注册网络已经多长时间不能正常建立数据业务连接。如果不能建立数据业务连接的时间长度达到时间长度阈值,则可以考虑切换到其他网络,以便在较好的网络环境下,开展数据业务。
步骤S260,在预设时间段之后,再次向网络侧发送PDP激活请求。也即是说,在预设时间段之后,再次执行步骤S220。
该预设时间段即为连续两次发送PDP激活请求的时间间隔。例如:该预设的时间段为2h,那么在接收到激活失败消息2h之后,再次向网络侧发送PDP激活请求。
步骤S270,将当前注册的网络切换到其他网络,并将累计次数置零。
当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
在重新进行网络注册时,还可以根据多个可注册的网络的优先级从高到低的顺序,顺次尝试网络注册,直至注册到其中一个可注册网络。进一步地,在尝试网络注册过程中,可以跳过该不能建立数据业务连接的网络,以便快捷的注册到其他网络。
例如:次数阈值为3次;移动终端当前注册的网络为4G网络;当移动终端需要进行数据业务时,则向网络侧发送PDP激活请求,如果每发一次PDP激活请求即收到一次clear code 29或clear code 33,且连续收到clear code 29的次数为3或者连续收到clear code 33的次数为3,那么,识别移动终端当前注册的网络为4G网络,则提示用户“4G网络出现问题,不能进行数据业务”,然后,将4G网络切换到2G网络或3G网络。
步骤S280,将累计次数置零,数据业务连接建立,可进行数据业务。
在执行上述步骤S210-S280的过程中,还可以在移动终端发生路由小区更新或者重新启动的情况下,重新进行网络注册。
具体而言,在完成网络注册之后,移动终端每隔一段时间,就向网络侧发送移动终端当前的位置信息。网络侧根据移动终端当前的位置信息,向移动终端返回RAU参数。移动终端记录网络侧返回的RAU参数;并且,根据本次
接收到的RAU参数,以及上一次接收到的RAU参数,判断出本次的RAU参数和上一次的RAU参数是否发生变化,进而可以判断出移动终端是否发生路由小区更新,如果是,则重新进行网络注册,如果否,则无需重新注册网络。重新注册网络的步骤,可以参考上述步骤S210。
进一步地,如果移动终端注册的网络为4G网络,则比较本次RAU参数中的追踪区域码(Tracking Area code,简称TAC)和上一次RAU参数中的TAC,如果两次的TAC相同,则移动终端未发生路由小区更新;如果两次的TAC不同,则移动终端发生了路由小区更新。如果移动终端注册的网络为2G或3G网络,则比较本次RAU参数中的位置区域码(Location Area code,简称LAC)和上一次RAU参数中的LAC,如果两次的LAC相同,则移动终端未发生路由小区更新;如果两次的TAC不同,则移动终端发生了路由小区更新。这样做,可以确保移动终端的位置发生改变后,依然能够工作在较优的网络环境下。
需要注意的是,移动终端在重新启动、发生路由小区更新之后,同样需要对累计次数置零。
本发明还提供了一种网络切换装置。如图3所示。
该装置包括:
注册模块310,用于为移动终端完成网络注册。注册模块310还用于在移动终端发生路由小区更新或者重新启动的情况下,重新进行网络注册。
连接模块320,用于移动终端在完成网络注册之后,尝试与网络侧建立数据业务连接。
切换模块330,用于如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。
在一个实施例中,连接模块320,用于通过向网络侧发送PDP激活请求,请求与网络侧建立数据业务连接。切换模块330,用于如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送PDP激活请求;当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
本实施例所述的装置的功能已经在图1-图2所示的方法实施例中进行了描述,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。
本发明的网络切换装置可以设置在移动终端中,移动终端基于该装置进行网络切换。如图4所示,该移动终端4可以包括:至少一个处理器41,例如CPU,至少一个通信总线42以及存储器43;通信总线42用于实现这些组件之间的连接通信;存储器43可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。存储器43中存储一组程序代码,且处理器41用于调用存储器43中存储的程序代码,用于执行以下操作:
在完成网络注册之后,尝试与网络侧建立数据业务连接;
如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。
可选地,所述处理器41尝试与网络侧建立数据业务连接,具体操作包括:
通过向网络侧发送分组数据协议激活请求,尝试与网络侧建立数据业务连接。
可选地,如果所述尝试与网络侧建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则所述处理器41将当前注册的网络切换到其他网络,具体操作包括:
如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送分组数据协议激活请求;
当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
可选地,所述处理器41还执行:
如果移动终端发生路由小区更新或者重新启动,则重新进行网络注册。
以上所述仅为本发明的实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的权利要求范围之内。
Claims (13)
- 一种网络切换方法,其特征在于,在移动终端侧执行的步骤包括:在完成网络注册之后,尝试与网络侧建立数据业务连接;如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。
- 根据权利要求1所述的方法,其特征在于,所述尝试与网络侧建立数据业务连接,包括:通过向网络侧发送分组数据协议激活请求,尝试与网络侧建立数据业务连接。
- 根据权利要求2所述的方法,其特征在于,如果所述尝试与网络侧建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络,包括:如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送分组数据协议激活请求;当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:如果移动终端发生路由小区更新或者重新启动,则重新进行网络注册。
- 根据权利要求1-4中任一项所述的方法,其特征在于,在将当前注册的网络切换到其他网络的过程中,包括:针对所述其他网络进行网络注册;所述网络注册,包括:为可注册的各网络分别设置网络优先级;按照网络优先级从高到低的顺序尝试进行网络注册,直至网络注册完成。
- 一种网络切换装置,其特征在于,包括:连接模块,用于移动终端在完成网络注册之后,尝试与网络侧建立数据业务连接;切换模块,用于如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网 络。
- 根据权利要求6所述的装置,其特征在于,所述连接模块,用于通过向网络侧发送分组数据协议激活请求,尝试与网络侧建立数据业务连接。
- 根据权利要求7所述的装置,其特征在于,所述切换模块,用于:如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送分组数据协议激活请求;当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
- 根据权利要求6所述的装置,其特征在于,所述装置还包括注册模块,用于在移动终端发生路由小区更新或者重新启动的情况下,重新进行网络注册。
- 一种移动终端,其特征在于,所述移动终端包括处理器和存储器,其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,用于执行以下操作:在完成网络注册之后,尝试与网络侧建立数据业务连接;如果尝试建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则将当前注册的网络切换到其他网络。
- 根据权利要求10所述的移动终端,其特征在于,所述处理器尝试与网络侧建立数据业务连接,具体操作包括:通过向网络侧发送分组数据协议激活请求,尝试与网络侧建立数据业务连接。
- 根据权利要求11所述的移动终端,其特征在于,如果所述尝试与网络侧建立数据业务连接失败、并且尝试建立数据业务连接的时间长度达到预设的时间长度阈值,则所述处理器将当前注册的网络切换到其他网络,具体操作包括:如果接收到网络侧返回的激活失败消息,则累计接收到激活失败消息的次数,并且每隔预设时间段,再次向网络侧发送分组数据协议激活请求;当连续接收到激活失败消息的次数达到预设的次数阈值时,将当前注册的网络切换到其他网络。
- 根据权利要求10所述的移动终端,其特征在于,所述处理器还执行:如果移动终端发生路由小区更新或者重新启动,则重新进行网络注册。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510196678.6A CN106162778A (zh) | 2015-04-23 | 2015-04-23 | 一种网络切换方法、装置和移动终端 |
| CN201510196678.6 | 2015-04-23 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016169103A1 true WO2016169103A1 (zh) | 2016-10-27 |
Family
ID=57143489
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/080335 Ceased WO2016169103A1 (zh) | 2015-04-23 | 2015-05-29 | 一种网络切换方法、装置和移动终端 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106162778A (zh) |
| WO (1) | WO2016169103A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112835702A (zh) * | 2021-02-25 | 2021-05-25 | 平安消费金融有限公司 | 服务切换方法、装置、计算机设备及存储介质 |
| CN113079500A (zh) * | 2019-12-18 | 2021-07-06 | 东莞宇龙通信科技有限公司 | 一种终端激活方法、装置、存储介质及电子设备 |
| CN113784434A (zh) * | 2021-08-30 | 2021-12-10 | 紫光展锐(重庆)科技有限公司 | 一种通信方法、装置及终端设备 |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107087272B (zh) * | 2017-05-19 | 2020-01-14 | Oppo广东移动通信有限公司 | 一种连接网络的方法、终端及存储介质 |
| CN107948992A (zh) * | 2017-11-09 | 2018-04-20 | 福建新大陆支付技术有限公司 | 一种gprs支付终端通讯优化方法 |
| CN109526051B (zh) * | 2018-11-29 | 2021-09-07 | 维沃移动通信有限公司 | 一种建立多媒体通信的方法和终端设备 |
| CN110958684B (zh) * | 2019-11-28 | 2022-09-20 | 维沃移动通信有限公司 | 一种网络注册方法及用户设备 |
| CN112637850B (zh) * | 2020-11-30 | 2023-05-16 | 展讯半导体(成都)有限公司 | 鉴权异常的处理方法、系统及用户终端 |
| CN115996439A (zh) * | 2021-10-18 | 2023-04-21 | 北京小米移动软件有限公司 | 网络切换方法、装置及可读存储介质 |
| CN116131911A (zh) * | 2022-12-30 | 2023-05-16 | 中国电信股份有限公司卫星通信分公司 | 终端接入网络的方法、终端、通信系统及存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090017824A1 (en) * | 2007-07-13 | 2009-01-15 | Samsung Electronics Co., Ltd. | Handover method and apparatus for multi-mode mobile station |
| CN101409917A (zh) * | 2008-10-27 | 2009-04-15 | 深圳华为通信技术有限公司 | 一种通信网络注册方法和终端 |
| CN101803236A (zh) * | 2007-08-08 | 2010-08-11 | 三星电子株式会社 | 在具有私有网络小区的无线通信系统中连接无线链路的装置和方法 |
| CN103718604A (zh) * | 2011-06-21 | 2014-04-09 | 诺基亚公司 | 提供优化的切换预备和执行操作的方法、装置和计算机程序产品 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101594663B (zh) * | 2008-05-31 | 2012-05-23 | 华为技术有限公司 | 一种网络选择的方法、系统和装置 |
| CN103716852A (zh) * | 2014-01-03 | 2014-04-09 | 宇龙计算机通信科技(深圳)有限公司 | 终端和快速恢复数据业务的方法 |
-
2015
- 2015-04-23 CN CN201510196678.6A patent/CN106162778A/zh active Pending
- 2015-05-29 WO PCT/CN2015/080335 patent/WO2016169103A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090017824A1 (en) * | 2007-07-13 | 2009-01-15 | Samsung Electronics Co., Ltd. | Handover method and apparatus for multi-mode mobile station |
| CN101803236A (zh) * | 2007-08-08 | 2010-08-11 | 三星电子株式会社 | 在具有私有网络小区的无线通信系统中连接无线链路的装置和方法 |
| CN101409917A (zh) * | 2008-10-27 | 2009-04-15 | 深圳华为通信技术有限公司 | 一种通信网络注册方法和终端 |
| CN103718604A (zh) * | 2011-06-21 | 2014-04-09 | 诺基亚公司 | 提供优化的切换预备和执行操作的方法、装置和计算机程序产品 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113079500A (zh) * | 2019-12-18 | 2021-07-06 | 东莞宇龙通信科技有限公司 | 一种终端激活方法、装置、存储介质及电子设备 |
| CN113079500B (zh) * | 2019-12-18 | 2023-05-09 | 东莞宇龙通信科技有限公司 | 一种终端激活方法、装置、存储介质及电子设备 |
| CN112835702A (zh) * | 2021-02-25 | 2021-05-25 | 平安消费金融有限公司 | 服务切换方法、装置、计算机设备及存储介质 |
| CN113784434A (zh) * | 2021-08-30 | 2021-12-10 | 紫光展锐(重庆)科技有限公司 | 一种通信方法、装置及终端设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106162778A (zh) | 2016-11-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016169103A1 (zh) | 一种网络切换方法、装置和移动终端 | |
| CN106686565B (zh) | 在无线网络中在用户设备处理ims呼叫和csfb呼叫 | |
| CN110831082B (zh) | 小区切换、rrc重建立方法及装置、存储介质、用户设备 | |
| US20190274181A1 (en) | Method and apparatus for initiating user plane path re-establishment and communications system | |
| US11689956B2 (en) | Relocation method and apparatus | |
| US12028918B2 (en) | SMS processing method in internet of things, mobility management network element, and terminal device | |
| US10383164B2 (en) | Network terminal having configurable retry or changeover | |
| WO2021057526A1 (zh) | 一种网关设备容灾的方法及通信设备 | |
| EP4093107A1 (en) | Multimedia service processing method, storage medium, chip, and related device | |
| US20170295521A1 (en) | Circuit switched service processing method and terminal | |
| WO2019096306A1 (zh) | 一种处理请求的方法以及相应实体 | |
| EP3200499B1 (en) | Mobility management entity and home subscriber server for handling callee service according to csfb and a faulty state of a pgw | |
| EP3399801B1 (en) | Voice call processing method and terminal device | |
| US20260075587A1 (en) | Service indication method and device | |
| US9560516B2 (en) | Method to use existing NAS signaling connection for pending uplink signaling/data after TAU accept | |
| CN112135307B (zh) | 一种电话响应的方法和终端 | |
| CN103415028B (zh) | 业务发起提示方法和网元设备 | |
| CN110519712A (zh) | 信息处理方法及装置、网元及存储介质 | |
| CN107872821A (zh) | Lte网络接入结果的检测方法及装置、计算机存储介质 | |
| US12568547B2 (en) | Removal of stale call state during call setup | |
| EP2575381A2 (en) | Method and device for communication | |
| CN110740483B (zh) | 一种在lte切换过程中的信息处理方法及装置 | |
| CN108616940A (zh) | 一种2g/3g网络资源释放方法及移动通信网络 | |
| CN116056107A (zh) | 业务上报配置方法、装置、网络设备和存储介质 | |
| WO2022062827A1 (zh) | 网络切换方法、网络设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15889592 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.04.2018) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15889592 Country of ref document: EP Kind code of ref document: A1 |