CN106105365B - Network switching method, device and terminal - Google Patents

Network switching method, device and terminal Download PDF

Info

Publication number
CN106105365B
CN106105365B CN201580002496.9A CN201580002496A CN106105365B CN 106105365 B CN106105365 B CN 106105365B CN 201580002496 A CN201580002496 A CN 201580002496A CN 106105365 B CN106105365 B CN 106105365B
Authority
CN
China
Prior art keywords
data service
failure
network
terminal
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201580002496.9A
Other languages
Chinese (zh)
Other versions
CN106105365A (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.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN106105365A publication Critical patent/CN106105365A/en
Application granted granted Critical
Publication of CN106105365B publication Critical patent/CN106105365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The embodiment of the invention provides a network switching method, a device and a terminal, wherein the method comprises the following steps: determining that a terminal cannot use a Long Term Evolution (LTE) network for data service, and monitoring service parameters of data service activation failure in an evolved high-speed packet (EHRPD) network; the service parameters comprise the times of data service activation failure or the reason values of the data service activation failure; judging whether the service parameters meet a first condition or not; the first condition is a preset condition that the terminal exits from the EHRPD network; if the service parameters meet the first condition, the EHRPD network is exited, and the access to the high-speed packet HRPD network is requested, so that the terminal can be quickly accessed to the HRPD network for data service when the 4G card is inserted but the terminal cannot be accessed to the 4G network, and the performance of the terminal is effectively improved.

Description

Network switching method, device and terminal
Technical Field
The present invention relates to communications technologies, and in particular, to a network switching method, an apparatus, and a terminal.
Background
Currently, china telecommunications has laid out the 4th generation communication system (4G) network in a part of cities, and a 4G switch is set on a 4G terminal to control whether the terminal registers with the 4G network.
A 'starting 4G' switch is arranged on a terminal, and when the 'starting 4G' switch is turned on, the working mode of the terminal is a mixed mode of a Long Time Evolution (LTE), a Code Division Multiple Access (CDMA), a wideband-Code Division multiple access (WCDMA) and a Global System for Mobile Communication (GSM); when the switch of 'enabling 4G' is closed, the working mode of the terminal is a CDMA, WCDMA and GSM mixed mode. Specifically, according to the requirement of the Chinese telecommunication, when the switch "enable 4G" is turned on or off, the terminal performs network switching according to the following operations: the 4G switch is started from off to on, if the terminal is in an idle state, the terminal immediately searches and accesses the LTE network again, and if the terminal is in a service state, the terminal prompts a user whether to interrupt the current service and search and access the LTE network; the switch "enable 4G" is turned on to off, and the terminal immediately searches for network access in sequence according to the priorities of an Evolved High Rate Packet (EHRPD) network, a High Rate Packet (HRPD) network, and a 1x Radio Transmission Technology (1x RTT) network, that is, when the switch "enable 4G" is turned off, the terminal preferentially registers with the EHRPD network, and if the EHRPD network cannot register, the terminal gradually falls back down to register the HRPD network.
However, due to the imperfect network deployment and configuration of operators, the following two scenarios arise:
1. the user transacts the 4G card but does not open the 4G service, so that the terminal cannot access the 4G network, the terminal preferentially registers the EHRPD network, but the local EHRPD network data service is unavailable, so that the terminal cannot perform the data service.
2. The 4G card transacted by the user opens the 4G service, but in the region without the coverage of the LTE network, the terminal preferentially registers the EHRPD network, but the local EHRPD network data service is unavailable, so that the terminal cannot perform the data service.
In the two scenarios, after the terminal is plugged with the 4G card, if the terminal preferentially registers the EHRPD network, when the EHRPD network data service is unavailable, the data service cannot be performed no matter the 4G switch of the terminal is turned on or turned off, thereby reducing the performance of the terminal.
Disclosure of Invention
Embodiments of the present invention provide a network switching method, apparatus, and terminal, so that when a terminal is inserted into a 4G card but cannot access a 4G network, the terminal can quickly access the network to use a data service, thereby effectively improving the performance of the terminal.
A first aspect of an embodiment of the present invention provides a network switching method, where the method includes:
determining that the terminal cannot use a Long Term Evolution (LTE) network for data service;
monitoring service parameters of data service activation failure under an evolved high-speed packet EHRPD network; the service parameters comprise the times of data service activation failure or the reason values of the data service activation failure;
judging whether the service parameters meet a first condition or not; the first condition is a preset condition that the terminal exits from the EHRPD network;
and if the service parameters meet the first condition, exiting the EHRPD network and requesting to access the high-speed packet HRPD network.
With reference to the first aspect, in a first possible implementation manner of the first aspect, if the service parameter is a number of failed data service activation, the first condition includes a maximum number of retries of the terminal for data service activation; judging whether the service parameter meets a first condition, specifically comprising:
judging whether the number of times of the service activation failure is greater than the maximum retry number;
if the number of times of the service activation failure is greater than the maximum retry number, determining that the service parameter meets a first condition; and if the number of times of service activation failure is not more than the maximum retry number, determining that the service parameter does not meet the first condition.
With reference to the first aspect, in a second possible implementation manner of the first aspect, if the service parameter is a cause value of a failure of data service activation; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure;
judging whether the service parameter meets a first condition, specifically comprising:
judging whether the reason value of the data service activation failure is the permanent failure;
if the reason value of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; and if the reason value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
With reference to the first possible implementation manner of the aspect, in a third possible implementation manner of the first aspect, before the determining whether the number of service activation failures is greater than the maximum number of retries, the method further includes:
acquiring a reason value of the data service activation failure;
judging whether the reason value of the data service activation failure meets a second condition or not; the second condition is that the reason why the terminal fails to activate the data service is network failure, and the current network is the EHRPD network;
if the reason value of the data service activation failure does not meet the second condition, resetting the number of the last data service activation failure;
and if the reason value of the data service activation failure meets the second condition, adding 1 to the number of the last data service activation failure.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, after the monitoring a service parameter of a data service activation failure in an evolved high speed packet EHRPD network, the method further includes:
judging whether the processor needs to be restarted or not according to the reason value of the data service activation failure;
if the processor needs to be restarted, restarting the processor;
if the processor does not need to be restarted, judging whether the data type of the access point corresponding to the terminal accords with a preset data type; if the data type of the access point accords with the preset data type, executing the step of judging whether the service parameter accords with a first condition; and if the data type of the access point does not accord with the preset data type, activating the data service.
With reference to the first aspect and the first to any fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, after exiting the EHRPD network, the method further includes:
if the LTE network is successfully registered, checking whether the EHRPD network identifier of the terminal is in an activated state;
and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
A second aspect of the present invention provides a network switching method, where the method includes:
detecting whether the 4G service of the terminal is activated;
if the 4G service is detected to be activated, when the terminal is determined to be incapable of using a Long Term Evolution (LTE) network to perform data service, requesting to access an evolved high-speed packet EHRPD network; alternatively, the first and second electrodes may be,
and if the 4G service is not activated, requesting to access a high-speed packet HRPD network when the terminal is determined to be incapable of using the LTE network for data service.
With reference to the second aspect, in a possible implementation manner of the first aspect, the method further includes:
after detecting that the 4G service is activated, modifying the EHRPD network identification of the terminal into an activated state; alternatively, the first and second electrodes may be,
and after detecting that the 4G service is not activated, modifying the EHRPD network identification of the terminal into an inactivated state.
A third aspect of the embodiments of the present invention provides a network switching apparatus, including:
the determining module is used for determining that the terminal cannot use the Long Term Evolution (LTE) network for data service;
the monitoring module is used for monitoring the service parameters of the data service activation failure under the evolved high-speed packet EHRPD network;
the judging module is used for judging whether the service parameters meet a first condition or not; the first condition is a preset condition that the terminal exits from the EHRPD network;
and the processing module is used for exiting the EHRPD network and requesting to access the high-speed packet HRPD network when the judging module judges that the service parameters meet the first condition.
With reference to the third aspect, in a first possible implementation manner of the third aspect, if the service parameter monitored and obtained by the monitoring module is the number of failed data service activation, the first condition includes a maximum retry number of data service activation performed by a terminal;
the determining module is specifically configured to: judging whether the number of times of the service activation failure is greater than the maximum retry number; if the number of times of the service activation failure is greater than the maximum retry number, determining that the service parameter meets the first condition; and if the number of times of service activation failure is not more than the maximum retry number, determining that the service parameter does not meet the first condition.
With reference to the third aspect, in a second possible implementation manner of the third aspect, if the service parameter obtained by monitoring by the monitoring module is a cause value of data service activation failure; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure;
the determining module is specifically configured to: judging whether the reason value of the data service activation failure is the permanent failure; if the reason value of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; and if the reason value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
With reference to the first possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the monitoring module is further configured to obtain a cause value of the data service activation failure;
the judging module is also used for judging whether the reason value of the data service activation failure meets a second condition; the second condition is that the reason why the terminal fails to activate the data service is network failure, and the current network is the EHRPD network; if the reason value of the data service activation failure does not meet the second condition, resetting the number of the last data service activation failure; and if the reason value of the data service activation failure meets the second condition, adding 1 to the number of the last data service activation failure.
With reference to the third aspect, in a fourth possible implementation manner of the third aspect, the determining module is further configured to determine whether the processor needs to be restarted according to the cause value of the data service activation failure; if the processor needs to be restarted, restarting the processor; alternatively, the first and second electrodes may be,
if the processor does not need to be restarted, the judging module judges whether the data type of the access point corresponding to the terminal accords with a preset data type; if the data type of the access point accords with the preset data type, the judging module executes the step of judging whether the service parameter accords with a first condition; or, if the data type of the access point does not conform to the preset data type, triggering the processing module to activate the data service.
With reference to the third aspect and the fourth any possible implementation manner of the first to third aspects of the third aspect, in a fifth possible implementation manner of the third aspect, the processing module is further configured to check whether an EHRPD network identifier of the terminal is in an activated state if the long term evolution LTE network is successfully registered; and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
A fourth aspect of the present invention provides a network switching apparatus, including:
the detection module is used for detecting whether the 4G service of the terminal is activated or not;
the processing module is used for requesting to access an evolved high-speed packet EHRPD network when the detection module detects that the 4G service is activated and determines that the terminal cannot use a long-term evolution LTE network for data service; or, if the detection module detects that the 4G service is not activated, when determining that the terminal cannot use the LTE network for data service, requesting to access the high rate packet HRPD network.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, after the detection module detects that the 4G service is activated, the processing module modifies an EHRPD network identifier of the terminal to an activated state; alternatively, the first and second electrodes may be,
and after the detection module detects that the 4G service is not activated, the processing module modifies the EHRPD network identifier of the terminal into an inactivated state.
A fifth aspect of an embodiment of the present invention provides a terminal, including: a processor and a memory;
the memory is used for storing an execution instruction, when the terminal runs, the processor communicates with the memory, and the processor calls the execution instruction to execute the following operations:
determining that the terminal cannot use a Long Term Evolution (LTE) network for data service;
monitoring service parameters of data service activation failure under an evolved high-speed packet EHRPD network; the service parameters comprise the times of data service activation failure or the reason values of the data service activation failure;
judging whether the service parameters meet a first condition or not; the first condition is a preset condition that the terminal exits from the EHRPD network;
and if the service parameters meet the first condition, exiting the EHRPD network and requesting to access the high-speed packet HRPD network.
With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, if the service parameter is a number of failed data service activation, the first condition includes a maximum number of retries of the terminal for data service activation; the processor is specifically configured to:
judging whether the number of times of the service activation failure is greater than the maximum retry number;
if the number of times of the service activation failure is greater than the maximum retry number, determining that the service parameter meets the first condition; and if the number of times of service activation failure is not more than the maximum retry number, determining that the service parameter does not meet the first condition.
With reference to the fifth aspect, in a second possible implementation manner of the fifth aspect, if the service parameter is a cause value of failure of data service activation; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure;
the processor is specifically configured to determine whether the cause value of the data service activation failure is the permanent failure; if the reason value of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; and if the reason value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
With reference to the first possible implementation manner of the fifth aspect, in a third possible implementation manner of the fifth aspect, the processor is further configured to obtain a cause value of the data service activation failure; judging whether the reason value of the data service activation failure meets a second condition or not; the second condition is that the reason why the terminal fails to activate the data service is network failure, and the current network is the EHRPD network; if the reason value of the data service activation failure does not meet the second condition, resetting the number of the last data service activation failure; and if the reason value of the data service activation failure meets the second condition, adding 1 to the number of the last data service activation failure.
With reference to the fifth aspect, in a fourth possible implementation manner of the fifth aspect, the processor is further configured to determine whether the processor needs to be restarted according to the cause value of the data service activation failure; if the processor needs to be restarted, restarting the processor; alternatively, the first and second electrodes may be,
if the processor does not need to be restarted, the processor judges whether the data type of the access point corresponding to the terminal accords with a preset data type; if the data type of the access point accords with the preset data type, executing the step of judging whether the service parameter accords with a first condition; and if the data type of the access point does not accord with the preset data type, activating the data service.
With reference to the fifth aspect and the fourth any one possible implementation manner of the first to fifth aspects of the fifth aspect, in a fifth possible implementation manner of the fifth aspect, the processor is further configured to check whether an EHRPD network identifier of the terminal is in an activated state if the long term evolution LTE network is successfully registered; and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
A sixth aspect of an embodiment of the present invention provides a terminal, including a processor and a memory;
the memory is used for storing an execution instruction, when the terminal runs, the processor communicates with the memory, and the processor calls the execution instruction to execute the following operations:
detecting whether the 4G service of the terminal is activated;
if the 4G service is detected to be activated, when the terminal is determined to be incapable of using a Long Term Evolution (LTE) network to perform data service, requesting to access an evolved high-speed packet EHRPD network; alternatively, the first and second electrodes may be,
and if the 4G service is not activated, requesting to access a high-speed packet HRPD network when the terminal is determined to be incapable of using the LTE network for data service.
With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the processor is further configured to modify an EHRPD network identifier of the terminal to an activated state after detecting that the 4G service is activated; or, after detecting that the 4G service is not activated, modifying the EHRPD network identifier of the terminal to be in an inactivated state.
According to the network switching method, the device and the terminal provided by the embodiment, when the terminal is determined to be incapable of using the LTE network to perform data service, the terminal monitors the service parameters of failed activation of the data service in the EHRPD network, when the service parameters meet the first condition, the terminal automatically exits the EHRPD network, then searches for and requests to access the HRPD network, and uses the data service in the HRPD network, so that when the terminal is inserted with the 4G card but is incapable of accessing the 4G network, the terminal can quickly fall back to the HRPD network to perform the data service, and the performance of the terminal is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a network handover method according to an embodiment of the present invention;
fig. 2 is a flowchart of a network handover method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a network handover method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a network handover method according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a network handover method according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network switching apparatus according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network switching apparatus according to an eighth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to a ninth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The network switching method provided by the embodiment of the invention is applied to terminals, such as mobile phones, notebook computers, tablet computers, handheld terminals and the like, and is suitable for a scene that the terminal is switched from one network to another network, such as a scene that the mobile phone is switched from a 3G network to a 4G network, or a scene that the mobile phone is not successfully accessed to the 4G network, such as other networks and the like.
Fig. 1 is a flowchart of a network handover method according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step 101, determining that the terminal cannot use the LTE network for data service.
In this embodiment, the 4G network may adopt an LTE technology, and when a user does not open a 4G service, or a current serving cell where a terminal is located is not covered by an LTE network, or the LTE network fails and cannot perform a data service, the terminal cannot use the LTE network to perform the data service in these scenarios.
And 102, monitoring service parameters of data service activation failure in the EHRPD network.
The service parameter includes the number of times of data service activation failure or a cause value of the data service activation failure.
In this embodiment, after the terminal is plugged with the 4G card, but cannot access the 4G network, the terminal preferentially registers the EHRPD network, and after the terminal successfully registers the EHRPD network, the terminal performs data service activation in the EHRPD network, monitors the number of times of data service activation failure of the terminal in the EHRPD network or the cause value of the data service activation failure, and may set a static counter in the terminal to count the number of times of data service activation failure; the cause value of the data service activation failure is a cause of the data service activation failure, for example, a failure caused by instability of an EHRPD network, a failure caused by unavailable network connection, and the like, and the terminal may obtain the cause value of the data service activation failure through a processor of the terminal.
Step 103, determining whether the service parameter meets the first condition, if the service parameter meets the first condition, executing step 104, and if the service parameter does not meet the first condition, executing step 105.
The first condition is a preset condition that the terminal exits from the EHRPD network.
In this embodiment, the first condition is a preset condition that the terminal exits the EHRPD network, and the first condition may be set according to specific content of the service parameter, for example, if the service parameter is the number of times of failure of data service activation, the first condition may be set as the maximum number of times of data service activation, when the number of times of failure of data service activation exceeds the maximum number of times of repetition, the service parameter meets the first condition, and when the number of times of failure of data service activation is less than or equal to the maximum number of times of repetition, the service parameter does not meet the first condition.
And step 104, exiting the EHRPD network and requesting to access the HRPD network.
In this embodiment, when the service parameter meets the first condition, the terminal automatically exits the EHRPD network, then searches for and requests to access the HRPD network, and if the access to the HRPD network is successful, uses the data service in the HRPD network. A global variable may be set in the processor to control the access of the terminal to the EHRPD network or the exit from the EHRPD network.
And 105, activating the data service.
In this embodiment, when the service parameter does not meet the first condition, the terminal performs data service activation again, and if the activation fails, the step 101 is continuously executed.
In the prior art, when a terminal transacts a 4G card but cannot access a 4G network, the terminal preferentially registers the EHRPD network, but due to incomplete network configuration and deployment of an operator, the EHRPD network has many problems, for example, data service cannot be activated, an Assisted Global Positioning System (AGPS) is slow to locate, and data service is easily interrupted, so that the terminal cannot use the data service in the EHRPD network after registering the EHRPD network, but the terminal cannot close the EHRPD network to switch to another network, so that no matter a 4G switch of the terminal is turned on or off after the terminal inserts the 4G card, the data service cannot be performed, and performance of the terminal is reduced. In this embodiment, when it is determined that the terminal cannot use the LTE network for data service, the terminal monitors a service parameter of a data service activation failure in the EHRPD network, and when the service parameter meets a first condition, the terminal automatically exits the EHRPD network, and then searches for and requests to access the HRPD network, and uses the data service in the HRPD network.
In the network switching method provided by this embodiment, when it is determined that the terminal cannot use the LTE network for data service, the terminal monitors a service parameter of failure in activating the data service in the EHRPD network, and when the service parameter meets a first condition, the terminal automatically exits the EHRPD network, and then searches for and requests access to the HRPD network, and uses the data service in the HRPD network, so that when the terminal is inserted into the 4G card but cannot access the 4G network, the terminal can quickly fall back to the HRPD network for data service, and the performance of the terminal is effectively improved.
Fig. 2 is a flowchart of a network switching method according to a second embodiment of the present invention. On the basis of the first embodiment shown in fig. 1, as shown in fig. 2, if the service parameter is the number of failed data service activation, the first condition includes the maximum retry number of data service activation performed by the terminal; the implementation manner of the step of "judging whether the service parameter meets the first condition" specifically includes the following steps:
step 205, determining whether the number of service activation failures is greater than the maximum retry number, if so, executing step 206, if not, the number of service activation failures is not greater than the maximum retry number, executing step 207.
In this embodiment, after a terminal fails to activate a data service, the terminal reactivates the data service again, and a maximum retry number of the terminal for activating the data service is preset, where the maximum retry number is to ensure that the terminal normally retries even in an accidental activation failure, and to ensure that the terminal exits the EHRPD network as soon as possible when it is determined that the EHRPD network has a network failure, so that the terminal accesses the HRPD network as soon as possible, and normally, the maximum retry number is set to 2 or 3, but the present invention is not limited thereto, and a person skilled in the art may set the maximum retry number according to a practical situation.
Step 206, determining that the service parameter meets the first condition.
In this embodiment, when the number of service activation failures is greater than the maximum number of retries, it is determined that the service parameter meets the first condition.
Step 207, determining that the service parameter does not meet the first condition.
In this embodiment, when the number of service activation failures is less than or equal to the maximum number of retries, it is determined that the service parameter does not meet the first condition.
Optionally, in this embodiment, as shown in fig. 2, before the step 205, the following step is further included:
step 201, obtaining a cause value of data service activation failure.
In this embodiment, the terminal may obtain the cause value of the data service failure through the processor.
Step 202, judging whether the reason value of the data service activation failure meets a second condition; if not, that is, the cause value of the data service activation failure does not meet the second condition, step 203 is executed, and if yes, that is, the cause value of the data service activation failure meets the second condition, step 204 is executed.
The second condition is that the reason why the terminal fails to activate the data service is network failure, and the current network is an EHRPD network.
In this embodiment, the network failure refers to a data activation failure caused by a network failure, for example, a network signal is too weak, or the network signal is interrupted, so that the terminal cannot perform a data service. If the reason value of the data service activation failure is network failure and the network currently used by the terminal is an EHRPD network, determining that the reason value of the data service activation failure meets a second condition; and if the reason value of the data service activation failure is not the network failure or the current network is not the EHRPD network, determining that the reason value of the data service activation failure does not meet the second condition.
And step 203, clearing the number of the previous data service activation failures.
In this embodiment, in the EHRPD network, the number of times of data service activation failure is counted after each data service activation failure, and if it is determined that the cause value of the data service activation failure does not meet the second condition, the number of times of the data service activation failure recorded last time is cleared.
And step 204, adding 1 to the number of failed data service activation in the last time.
In this embodiment, if it is determined that the cause value of the data service activation failure meets the second condition, that is, the cause of the data service activation failure is a network failure, and the current network used by the terminal is an EHRPD network, the number of times of the data service activation failure recorded last time is increased by 1.
It should be noted that other steps in this embodiment are the same as those in the first embodiment, and are not described herein again.
In the network handover method provided in this embodiment, if the service parameter is the number of times of data service activation failure, the first condition includes a maximum retry number of the terminal performing data service activation, and it is determined whether the number of times of service activation failure is greater than the maximum retry number, if so, it is determined that the service parameter meets the first condition, and the EHRPD network exits and requests to access the HRPD network; if not, determining that the service parameters do not accord with the first condition, activating the data service, when the service parameters accord with the first condition, automatically exiting the EHRPD network by the terminal, then searching and requesting to access the HRPD network, and using the data service in the HRPD network. In addition, in this embodiment, before determining whether the number of times of the service activation failure is greater than the maximum retry number, the method further includes obtaining a cause value of the data service activation failure, determining whether the cause value of the data service activation failure meets a second condition, if yes, adding 1 to the number of times of the data service activation failure, if not, clearing the number of times of the data service activation failure, and only when the cause value of the data service activation failure is a network failure and the current network is an EHRPD network, adding 1 to the number of times of the data service activation failure, and otherwise, clearing the cause of the data service activation failure, so as to avoid a problem of blindly closing the EHRPD network under the condition that the data service activation failure is caused by some non-network failure reasons, and improve the performance of the terminal.
Fig. 3 is a flowchart of a network switching method according to a third embodiment of the present invention. On the basis of the first embodiment shown in fig. 1, as shown in fig. 3, if the service parameter is a cause value of failure of data service activation; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure; the specific implementation manner of the step of "judging whether the service parameter meets the first condition" includes the following steps:
step 301, determining whether the cause value of the data service activation failure is a permanent failure, if so, that is, the cause value of the data service activation failure is a permanent failure, executing step 302, and if not, that is, the cause value of the data service activation failure is not a permanent failure, executing step 303.
In this embodiment, the permanent failure refers to that the EHRPD network fails, and the terminal cannot use the data traffic in the EHRPD network no matter how many times the data traffic activation is attempted, for example, the network side device fails, so that the entire network signal is interrupted, and cannot be recovered in a short time.
Step 302, it is determined that the service parameter meets the first condition.
In this embodiment, if the cause value of the data service activation failure is a permanent failure, it is determined that the service parameter meets the first condition.
Step 303, it is determined that the service parameter does not meet the first condition.
In this embodiment, if the cause value of the data service activation failure is not a permanent failure, it is determined that the service parameter does not meet the first condition.
It should be noted that other steps in this embodiment are the same as those in the first embodiment, and are not described herein again.
In the network switching method provided by this embodiment, if the service parameter is a cause value of failure of data service activation; the first condition includes that the reason that the terminal fails to activate the data service in the EHRPD network is permanent failure, whether the reason value of the failure of the data service activation is permanent failure is judged, if so, the service parameter is determined to meet the first condition, and the terminal exits the EHRPD network and requests to access the HRPD network; if not, determining that the service parameters do not accord with the first condition, continuing to activate the data service in the EHRPD network, when the service parameters accord with the first condition and are matched, automatically exiting the EHRPD network by the terminal, then searching and requesting to access the HRPD network, and using the data service in the HRPD network.
Fig. 4 is a flowchart of a network switching method according to a fourth embodiment of the present invention. On the basis of the first embodiment, after the step "monitoring the service parameter of failed activation of data service in the evolved high speed packet EHRPD network", as shown in fig. 4, the method further includes the following steps:
step 401, judging whether the processor needs to be restarted or not according to the reason value of the data service activation failure, if so, executing step 402; if not, i.e. the processor does not need to be restarted, step 403 is executed.
In this embodiment, the terminal determines whether the processor needs to be restarted according to a cause value of the data service activation failure, for example, if the cause value is the data service activation failure caused by a failure of the processor of the terminal, the processor needs to be restarted, and if the cause value is not the data activation failure caused by a failure of the processor of the terminal, the processor does not need to be restarted.
Step 402, restart the processor.
In this embodiment, if the failure of data service activation is caused by a failure of the processor of the terminal, the processor is restarted, and after the processor is restarted, data service activation is retried.
Step 403, judging whether the data type of the access point corresponding to the terminal accords with a preset data type, if so, executing step 404, namely the data type of the access point accords with the preset data type; or, if not, that is, the data type of the access point does not conform to the preset data type, step 405 is executed.
In this embodiment, the preset data types include a plurality of data types commonly used by the access point, for example, a system DEFAULT (DEFAULT) type, a Multimedia Message Service (MMS) type, and other commonly used data types. And when the data type of the access point is not any one of the preset data types, the data type of the access point is not in accordance with the preset data type. For example, if the preset data type includes DEFAULT and MMS, when the data type of the access point is DEFAULT or MMS, the preset data type is met, whether to exit the EHRPD network is continuously judged, when the data type of the access point is not DEFAULT or MMS, the preset data type is not met, normal processing logic steps are maintained, that is, data service activation is retried, and after the data service activation fails, the number of times and the cause value of the data service activation failure are continuously monitored.
Step 404, executing a step of judging whether the service parameter meets the first condition.
In this embodiment, when the data type of the access point corresponding to the terminal conforms to the preset data type, it is further determined whether the service parameter conforms to the first condition, and the subsequent steps are the same as those in the first embodiment, and are not described herein again.
Step 405, data service activation is performed.
In this embodiment, if the data type of the access point corresponding to the terminal does not conform to the preset data type, retry to attempt data service activation, and if the data service activation fails, continue to monitor the number of times and the cause value of the data service activation failure; and if the data service activation is successful, using the data service.
In the network switching method provided by this embodiment, after monitoring a service parameter of a data service activation failure in an EHRPD network, a terminal determines whether to restart a processor according to a cause value of the data service activation failure, if so, the processor is restarted, if not, the processor is judged whether a data type of an access point corresponding to the terminal conforms to a preset data type, if the data type of the access point conforms to the preset data type, the step of judging whether the service parameter conforms to a first condition is performed, and whether to exit the EHRPD network is judged according to a result, and if the data type of the access point does not conform to the preset data type, the data service activation is performed. In this embodiment, for the case of data activation failure caused by a failure of the processor, the processor needs to be restarted, and for the case of data service activation failure caused by an unusual data type of the access point, data service activation is retried, so that the problem that the EHRPD network is blindly exited when the data service activation failure is caused by a failure of the processor of the terminal or an unusual data type or other non-network reasons, is avoided.
Preferably, on the basis of any one of the first to fourth embodiments, after exiting the EHRPD network, the method further includes: if the LTE network is successfully registered, checking whether the EHRPD network identifier of the terminal is in an activated state; and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
In this embodiment, after exiting the EHRPD network, if the terminal needs to search for the LTE network again, for example, if the 4G switch of the terminal is turned back on or the terminal is turned on again, the terminal starts to search for the LTE network and checks the EHRPD network identifier of the terminal after successfully registering the LTE network, where the EHRPD network identifier may be set in the processor. And if the EHRPD network identifier is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network, and if the EHRPD network identifier is in an inactivated state, the data service is activated. After the terminal re-registers the LTE network, the terminal can select whether to access the EHRPD network or not according to the state of the EHRPD network identifier after exiting the LTE network, so that the operation of exiting the EHRPD network when the data service activation fails has immediate action and the validity of the time, but not simply and roughly exits the EHRPD network completely.
Fig. 5 is a flowchart of a network switching method according to a fifth embodiment of the present invention. As shown in fig. 5, the method comprises the steps of:
step 501, detecting whether the 4G service of the terminal is activated.
In this embodiment, a 4G switch may be set in the terminal, for example, for an Android (Android) terminal, a "4G enabled" switch may be set in a system setting item to control whether the terminal registers a 4G network, the state of the 4G switch includes two states, i.e., "on" and "off", when the state of the 4G switch is "on", the 4G service of the terminal is activated, and when the state of the 4G switch is "off", the 4G service of the terminal is not activated.
Step 502, if it is detected that the 4G service is activated, requesting to access to an EHRPD network when it is determined that the terminal cannot use the LTE network for data service; or, if it is detected that the 4G service is not activated, when it is determined that the terminal cannot use the LTE network for data service, requesting to access the HRPD network.
In this embodiment, the 4G switch and the EHRPD network may be associated together, and when it is detected that the 4G switch is turned on, that is, the 4G service is activated, and the terminal cannot use the LTE network, it automatically requests to access the EHRPD network; when detecting that the 4G switch is turned off, namely the 4G service is not activated, the terminal does not preferentially register the EHRPD network any more, but directly searches and requests to access the HRPD network, and uses the data service under the HRPD network.
In the network switching method provided by this embodiment, the terminal detects whether the 4G service is activated, and if it is detected that the 4G service is activated, when it is determined that the terminal cannot use the LTE network for data service, requests to access the EHRPD network; or, if it is detected that the 4G service is not activated, when it is determined that the terminal cannot use the LTE network for data service, the terminal requests to access the HRPD network, and when the 4G service of the terminal is turned off, the terminal does not preferentially register the EHRPD network, but directly searches for and requests to access the HRPD network, and uses the data service in the stable HRPD network, thereby improving the performance of the terminal.
Preferably, in this fifth embodiment, the method further includes: after detecting that the 4G service is activated, modifying the EHRPD network identification of the terminal into an activated state; or after detecting that the 4G service is not activated, modifying the EHRPD network identification of the terminal into an inactivated state.
In this embodiment, the EHRPD network identifier may be set in a processor of the terminal, and the EHRPD network identifier is modified according to the activation state of the 4G service, so as to ensure that the modified EHRPD network identifier is still valid when the terminal is restarted, the flight mode is switched on or off, or the service card is replaced by the terminal.
Fig. 6 is a schematic structural diagram of a network switching device according to a sixth embodiment of the present invention. As shown in fig. 6, the apparatus includes a monitoring module 11, a judging module 12, a processing module 13, and a determining module 14. The determining module 14 is configured to determine that the terminal cannot use the LTE network for data service. The monitoring module 11 is configured to monitor a service parameter of a data service activation failure in the evolved high-speed packet EHRPD network. The judging module 12 is configured to judge whether the service parameter meets a first condition; the first condition is a preset condition that the terminal exits from the EHRPD network. The processing module 13 is configured to exit from the EHRPD network and request to access the HRPD network when the determining module 12 determines that the service parameter meets the first condition.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
On the basis of the sixth embodiment shown in fig. 6, in the network switching apparatus provided in the seventh embodiment of the present invention, if the service parameter monitored and obtained by the monitoring module 11 is the number of times of failure of data service activation, the first condition includes the maximum retry number of times of data service activation performed by the terminal; the determining module 12 is specifically configured to: judging whether the number of times of service activation failure is greater than the maximum retry number; if the number of times of service activation failure is greater than the maximum retry number, determining that the service parameter meets a first condition; and if the number of the service activation failures is not more than the maximum retry number, determining that the service parameters do not meet the first condition.
The monitoring module 11 is further configured to obtain a cause value of a failure in activating the data service; the determining module 12 is further configured to determine whether a cause value of the data service activation failure meets a second condition, where the second condition is that a cause of the data service activation failure performed by the terminal is a network failure, and a current network is an EHRPD network; if the reason value of the data service activation failure does not meet the second condition, resetting the number of the last data service activation failure; and if the reason value of the data service activation failure meets the second condition, adding 1 to the number of the last data service activation failure.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, on the basis of the embodiment shown in fig. 6, if the monitoring module 11 monitors the obtained service parameter as a cause value of data service activation failure; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure; the determining module 12 is specifically configured to: judging whether the reason value of the data service activation failure is a permanent failure; if the reason value of the data service activation failure is permanent failure, determining that the service parameter meets a first condition; and if the reason value of the data service activation failure is not a permanent failure, determining that the service parameter does not meet the first condition.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
Preferably, the judging module 12 is further configured to judge whether the processor needs to be restarted according to a cause value of the data service activation failure; if so, restarting the processor; or, if the processor does not need to be restarted, the determining module 12 determines whether the data type of the access point corresponding to the terminal conforms to the preset data type; if the data type of the access point conforms to the preset data type, the determining module 12 executes a step of determining whether the service parameter conforms to a first condition; or, if the data type of the access point does not conform to the preset data type, the processing module 13 is triggered to activate the data service.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Preferably, the processing module 13 is further configured to check whether the EHRPD network identifier of the terminal is in an activated state if the long term evolution LTE network is successfully registered; and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
Fig. 7 is a schematic structural diagram of a network switching device according to an eighth embodiment of the present invention. As shown in fig. 7, the apparatus comprises a detection module 21 and a processing module 22. The detecting module 21 is configured to detect whether a 4G service of the terminal is activated. The processing module 22 is configured to, if the detection module 21 detects that the 4G service is activated, request access to an evolved high-speed packet EHRPD network when determining that the terminal cannot use the LTE network for data service; or, if the detection module 21 detects that the 4G service is not activated, it determines that the terminal cannot use the LTE network for data service, and requests to access the high rate packet HRPD network.
Optionally, in this embodiment, after the detecting module 21 detects that the 4G service is activated, the processing module 22 modifies the EHRPD network identifier of the terminal to an activated state; or, after the detection module 21 detects that the 4G service is not activated, the processing module 22 modifies the EHRPD network identifier of the terminal to an inactivated state.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a terminal according to a ninth embodiment of the present invention. As shown in fig. 8, the terminal includes a processor 31 and a memory 32. The terminal may further comprise a transmitter 33 and a receiver 34, the transmitter 33 and the receiver 34 being connectable to the processor 31. Wherein, the memory 31 is used for storing an execution instruction, when the terminal runs, the processor 31 communicates with the memory 32, and the processor 31 calls the execution instruction to execute the following operations:
determining that the terminal cannot use the LTE network for data service;
monitoring service parameters of data service activation failure under an evolved high-speed packet EHRPD network; the service parameters comprise the times of the activation failure of the data service or the reason value of the activation failure of the data service;
judging whether the service parameters meet a first condition; the first condition is a preset condition that the terminal exits from the EHRPD network;
and if the service parameters meet the first condition, exiting the EHRPD network and requesting to access the HRPD network.
Optionally, if the service parameter is the number of failed data service activation, the first condition includes a maximum retry number of data service activation performed by the terminal; the processor 31 is specifically configured to determine whether the number of service activation failures is greater than the maximum retry number; if the number of times of service activation failure is greater than the maximum retry number, determining that the service parameter meets a first condition; and if the number of the service activation failures is not more than the maximum retry number, determining that the service parameters do not meet the first condition.
Optionally, if the service parameter is a cause value of failure of data service activation; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure; the processor 31 is specifically configured to determine whether the cause value of the data service activation failure is a permanent failure; if the reason value of the data service activation failure is permanent failure, determining that the service parameter meets a first condition; and if the reason value of the data service activation failure is not a permanent failure, determining that the service parameter does not meet the first condition.
Optionally, the processor 31 is further configured to obtain a cause value of a failure of data service activation; judging whether the reason value of the data service activation failure meets a second condition or not; the second condition is that the reason why the terminal fails to activate the data service is network failure, and the current network is an EHRPD network; if the reason value of the data service activation failure does not meet the second condition, resetting the number of the last data service activation failure; and if the reason value of the data service activation failure meets the second condition, adding 1 to the number of the last data service activation failure.
Optionally, the processor 31 is further configured to determine whether the processor 31 needs to be restarted according to the cause value of the data service activation failure; if the processor 31 needs to be restarted, the processor 31 is restarted; or, if the processor 31 does not need to be restarted, the processor 31 determines whether the data type of the access point corresponding to the terminal conforms to the preset data type; if the data type of the access point accords with the preset data type, executing the step of judging whether the service parameters accord with the first condition; or, if the data type of the access point does not conform to the preset data type, the data service activation is performed.
Optionally, the processor 31 is further configured to check whether the EHRPD network identifier of the terminal is in an active state if the long term evolution LTE network is successfully registered; and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
The terminal of this embodiment may be configured to execute the technical solution of the network switching method provided in any one of the first to fourth embodiments of the present invention, and the implementation principle and the technical effect are similar, which are not described herein again.
As shown in fig. 8, in the terminal provided in the tenth embodiment of the present invention, the terminal includes a processor 31 and a memory 32. The terminal may further comprise a transmitter 33 and a receiver 34, the transmitter 33 and the receiver 34 being connectable to the processor 31. The memory 32 is used for storing an execution instruction, when the terminal runs, the processor 31 communicates with the memory 32, and the processor 31 calls the execution instruction to perform the following operations:
detecting whether a 4G service of a terminal is activated;
if the 4G service is detected to be activated, when the terminal is determined to be incapable of using the LTE network to perform data service, requesting to access the EHRPD network; alternatively, the first and second electrodes may be,
and if the 4G service is not activated, requesting to access the HRPD network when the terminal is determined to be incapable of using the LTE network for data service.
Optionally, the processor 31 is further configured to modify the EHRPD network identifier of the terminal to an active state after detecting that the 4G service is activated; or after detecting that the 4G service is not activated, modifying the EHRPD network identification of the terminal into an inactivated state.
The terminal of this embodiment may be configured to execute the technical solution of the network switching method provided in the fifth embodiment of the present invention, and the implementation principle and the technical effect are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. A method for network handover, the method comprising:
determining that the terminal cannot use a Long Term Evolution (LTE) network for data service;
monitoring service parameters of data service activation failure under an evolved high-speed packet EHRPD network; the service parameters comprise the times of data service activation failure or the reason values of the data service activation failure;
judging whether the service parameters meet a first condition or not; the first condition is a preset condition that the terminal exits from the EHRPD network;
if the service parameters meet the first condition, exiting the EHRPD network and requesting to access a high-speed packet HRPD network;
after monitoring the service parameters of the failed activation of the data service in the evolved high-speed packet EHRPD network, the method further includes:
judging whether the processor needs to be restarted or not according to the reason value of the data service activation failure;
if the processor needs to be restarted, restarting the processor;
if the processor does not need to be restarted, judging whether the data type of the access point corresponding to the terminal accords with a preset data type; if the data type of the access point accords with the preset data type, executing the step of judging whether the service parameter accords with a first condition; if the data type of the access point does not accord with the preset data type, activating the data service;
if the service parameter is the number of failed data service activation, the first condition comprises the maximum retry number of the data service activation performed by the terminal; judging whether the service parameter meets a first condition, specifically comprising:
judging whether the number of times of the service activation failure is greater than the maximum retry number;
if the number of times of the service activation failure is greater than the maximum retry number, determining that the service parameter meets the first condition; if the number of times of the service activation failure is not more than the maximum retry number, determining that the service parameter does not meet the first condition;
if the service parameter is a cause value of data service activation failure; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure;
judging whether the service parameter meets a first condition, specifically comprising:
judging whether the cause value of the data service activation failure is the permanent failure, wherein the permanent failure is used for indicating the EHRPD network failure;
if the reason value of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; and if the reason value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
2. The method of claim 1, wherein before determining whether the number of service activation failures is greater than a maximum number of retries, the method further comprises:
acquiring a reason value of the data service activation failure;
judging whether the reason value of the data service activation failure meets a second condition or not; the second condition is that the reason why the terminal fails to activate the data service is network failure, and the current network is the EHRPD network;
if the reason value of the data service activation failure does not meet the second condition, resetting the number of the last data service activation failure;
and if the reason value of the data service activation failure meets the second condition, adding 1 to the number of the last data service activation failure.
3. The method of claim 1 or 2, wherein after said exiting the EHRPD network, the method further comprises:
if the LTE network is successfully registered, checking whether the EHRPD network identifier of the terminal is in an activated state;
and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
4. A method for network handover, the method comprising:
detecting whether a 4G service of a terminal is activated;
if the 4G service is detected to be activated, when the terminal is determined to be incapable of using a Long Term Evolution (LTE) network to perform data service, requesting to access an evolved high-speed packet EHRPD network; alternatively, the first and second electrodes may be,
if the 4G service is not activated, requesting to access a high-speed packet HRPD network when the terminal is determined to be incapable of using the LTE network for data service;
determining that the terminal cannot use the LTE network for data service comprises: determining a condition whether to exit the EHRPD network according to a service parameter of data service activation failure in the EHRPD network; the service parameters comprise the times of data service activation failure or the reason values of the data service activation failure;
if the service parameter is the number of times of data service activation failure, the condition of determining whether to exit the EHRPD network according to the service parameter of data service activation failure in the EHRPD network includes: judging whether the number of times of the service activation failure is greater than the maximum retry number; if the number of the service activation failures is larger than the maximum retry number, determining to quit the EHRPD network and requesting to access the HRPD network; if the number of times of the service activation failure is not more than the maximum retry number, determining to activate the data service;
if the service parameter is a cause value of data service activation failure, the condition of determining whether to exit the EHRPD network according to the service parameter of data service activation failure in the EHRPD network includes: judging whether the cause value of the data service activation failure is a permanent failure, wherein the permanent failure is used for indicating the EHRPD network failure; if the reason value of the data service activation failure is the permanent failure, determining to quit the EHRPD network and requesting to access the HRPD network; and if the reason value of the data service activation failure is not the permanent failure, determining to activate the data service.
5. The method of claim 4, further comprising:
after detecting that the 4G service is activated, modifying the EHRPD network identification of the terminal into an activated state; alternatively, the first and second electrodes may be,
and after detecting that the 4G service is not activated, modifying the EHRPD network identification of the terminal into an inactivated state.
6. A network switching apparatus, comprising:
the determining module is used for determining that the terminal cannot use the Long Term Evolution (LTE) network for data service;
the monitoring module is used for monitoring the service parameters of the data service activation failure under the evolved high-speed packet EHRPD network;
the judging module is used for judging whether the service parameters meet a first condition or not; the first condition is a preset condition that the terminal exits from the EHRPD network;
the processing module is used for exiting the EHRPD network and requesting to access a high-speed packet HRPD network when the judging module judges that the service parameters meet the first condition;
the judging module is further used for judging whether the processor needs to be restarted or not according to the reason value of the data service activation failure; if the processor needs to be restarted, restarting the processor; alternatively, the first and second electrodes may be,
if the processor does not need to be restarted, the judging module judges whether the data type of the access point corresponding to the terminal accords with a preset data type; if the data type of the access point accords with the preset data type, the judging module executes the step of judging whether the service parameter accords with a first condition; or if the data type of the access point does not accord with the preset data type, triggering the processing module to activate the data service;
if the service parameter monitored and obtained by the monitoring module is the number of data service activation failures, the first condition comprises the maximum retry number of data service activation of the terminal;
the determining module is specifically configured to: judging whether the number of times of the service activation failure is greater than the maximum retry number; if the number of times of the service activation failure is greater than the maximum retry number, determining that the service parameter meets the first condition; if the number of times of the service activation failure is not more than the maximum retry number, determining that the service parameter does not meet the first condition;
if the service parameter monitored and obtained by the monitoring module is a cause value of data service activation failure; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure;
the determining module is specifically configured to: judging whether the cause value of the data service activation failure is the permanent failure, wherein the permanent failure is used for indicating the EHRPD network failure; if the reason value of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; and if the reason value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
7. The apparatus of claim 6, wherein the monitoring module is further configured to obtain a cause value of the data service activation failure;
the judging module is also used for judging whether the reason value of the data service activation failure meets a second condition; the second condition is that the reason why the terminal fails to activate the data service is network failure, and the current network is the EHRPD network; if the reason value of the data service activation failure does not meet the second condition, resetting the number of the last data service activation failure; and if the reason value of the data service activation failure meets the second condition, adding 1 to the number of the last data service activation failure.
8. The apparatus according to claim 6 or 7, wherein the processing module is further configured to check whether an EHRPD network identifier of the terminal is in an active state if a long term evolution LTE network is successfully registered; and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
9. A network switching apparatus, comprising:
the detection module is used for detecting whether the 4G service of the terminal is activated or not;
the processing module is used for requesting to access an evolved high-speed packet EHRPD network when the detection module detects that the 4G service is activated and determines that the terminal cannot use a long-term evolution LTE network for data service; or, if the detection module detects that the 4G service is not activated, when determining that the terminal cannot use an LTE network for data service, requesting to access a high rate packet HRPD network;
determining that the terminal cannot use the LTE network for data service comprises: determining a condition whether to exit the EHRPD network according to a service parameter of data service activation failure in the EHRPD network; the service parameters comprise the times of data service activation failure or the reason values of the data service activation failure;
if the service parameter is the number of times of data service activation failure, the condition of determining whether to exit the EHRPD network according to the service parameter of data service activation failure in the EHRPD network includes: judging whether the number of times of the service activation failure is greater than the maximum retry number; if the number of the service activation failures is larger than the maximum retry number, determining to quit the EHRPD network and requesting to access the HRPD network; if the number of times of the service activation failure is not more than the maximum retry number, determining to activate the data service;
if the service parameter is a cause value of data service activation failure, the condition of determining whether to exit the EHRPD network according to the service parameter of data service activation failure in the EHRPD network includes: judging whether the cause value of the data service activation failure is a permanent failure, wherein the permanent failure is used for indicating the EHRPD network failure; if the reason value of the data service activation failure is the permanent failure, determining to quit the EHRPD network and requesting to access the HRPD network; and if the reason value of the data service activation failure is not the permanent failure, determining to activate the data service.
10. The apparatus according to claim 9, wherein after the detection module detects that the 4G service is activated, the processing module modifies an EHRPD network identifier of the terminal to an activated state; alternatively, the first and second electrodes may be,
and after the detection module detects that the 4G service is not activated, the processing module modifies the EHRPD network identifier of the terminal into an inactivated state.
11. A terminal, comprising: a processor and a memory;
the memory is used for storing an execution instruction, when the terminal runs, the processor communicates with the memory, and the processor calls the execution instruction to execute the following operations:
determining that the terminal cannot use a Long Term Evolution (LTE) network for data service;
monitoring service parameters of data service activation failure under an evolved high-speed packet EHRPD network; the service parameters comprise the times of data service activation failure or the reason values of the data service activation failure;
judging whether the service parameters meet a first condition or not; the first condition is a preset condition that the terminal exits from the EHRPD network;
if the service parameters meet the first condition, exiting the EHRPD network and requesting to access a high-speed packet HRPD network;
the processor is further configured to determine whether the processor needs to be restarted according to the cause value of the data service activation failure; if the processor needs to be restarted, restarting the processor; alternatively, the first and second electrodes may be,
if the processor does not need to be restarted, the processor judges whether the data type of the access point corresponding to the terminal accords with a preset data type; if the data type of the access point accords with the preset data type, executing the step of judging whether the service parameter accords with a first condition; if the data type of the access point does not accord with the preset data type, activating the data service;
if the service parameter is the number of failed data service activation, the first condition comprises the maximum retry number of the data service activation performed by the terminal; the processor is specifically configured to:
judging whether the number of times of the service activation failure is greater than the maximum retry number;
if the number of times of the service activation failure is greater than the maximum retry number, determining that the service parameter meets the first condition; if the number of times of the service activation failure is not more than the maximum retry number, determining that the service parameter does not meet the first condition;
if the service parameter is a cause value of data service activation failure; the first condition includes that the reason why the terminal fails to activate the data service in the EHRPD network is a permanent failure;
the processor is specifically configured to determine whether a cause value of the data service activation failure is the permanent failure, where the permanent failure is used to indicate the EHRPD network failure; if the reason value of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; and if the reason value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
12. The terminal of claim 11, wherein the processor is further configured to obtain a cause value of the failure of the data service activation; judging whether the reason value of the data service activation failure meets a second condition or not; the second condition is that the reason why the terminal fails to activate the data service is network failure, and the current network is the EHRPD network; if the reason value of the data service activation failure does not meet the second condition, resetting the number of the last data service activation failure; and if the reason value of the data service activation failure meets the second condition, adding 1 to the number of the last data service activation failure.
13. The terminal according to claim 11 or 12, wherein the processor is further configured to check whether an EHRPD network identifier of the terminal is in an active state if a long term evolution, LTE, network is successfully registered; and if the EHRPD network identifier of the terminal is in an activated state, the terminal requests to access the EHRPD network after exiting the LTE network.
14. A terminal comprising a processor and a memory;
the memory is used for storing an execution instruction, when the terminal runs, the processor communicates with the memory, and the processor calls the execution instruction to execute the following operations:
detecting whether the 4G service of the terminal is activated;
if the 4G service is detected to be activated, when the terminal is determined to be incapable of using a Long Term Evolution (LTE) network to perform data service, requesting to access an evolved high-speed packet EHRPD network; alternatively, the first and second electrodes may be,
if the 4G service is not activated, requesting to access a high-speed packet HRPD network when the terminal is determined to be incapable of using the LTE network for data service;
determining that the terminal cannot use the LTE network for data service comprises: determining a condition whether to exit the EHRPD network according to a service parameter of data service activation failure in the EHRPD network; the service parameters comprise the times of data service activation failure or the reason values of the data service activation failure;
if the service parameter is the number of times of data service activation failure, the condition of determining whether to exit the EHRPD network according to the service parameter of data service activation failure in the EHRPD network includes: judging whether the number of times of the service activation failure is greater than the maximum retry number; if the number of the service activation failures is larger than the maximum retry number, determining to quit the EHRPD network and requesting to access the HRPD network; if the number of times of the service activation failure is not more than the maximum retry number, determining to activate the data service;
if the service parameter is a cause value of data service activation failure, the condition of determining whether to exit the EHRPD network according to the service parameter of data service activation failure in the EHRPD network includes: judging whether the cause value of the data service activation failure is a permanent failure, wherein the permanent failure is used for indicating the EHRPD network failure; if the reason value of the data service activation failure is the permanent failure, determining to quit the EHRPD network and requesting to access the HRPD network; and if the reason value of the data service activation failure is not the permanent failure, determining to activate the data service.
15. The terminal of claim 14, wherein the processor is further configured to modify an EHRPD network identifier of the terminal to an active state after detecting that the 4G service is activated; or, after detecting that the 4G service is not activated, modifying the EHRPD network identifier of the terminal to be in an inactivated state.
CN201580002496.9A 2015-02-17 2015-02-17 Network switching method, device and terminal Active CN106105365B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/073217 WO2016131187A1 (en) 2015-02-17 2015-02-17 Network switching method and apparatus, and terminal

Publications (2)

Publication Number Publication Date
CN106105365A CN106105365A (en) 2016-11-09
CN106105365B true CN106105365B (en) 2020-02-14

Family

ID=56688693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580002496.9A Active CN106105365B (en) 2015-02-17 2015-02-17 Network switching method, device and terminal

Country Status (2)

Country Link
CN (1) CN106105365B (en)
WO (1) WO2016131187A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110856273B (en) * 2018-08-20 2021-07-20 华为技术有限公司 Session management method, device and system
CN110392412B (en) * 2019-07-23 2022-05-13 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010051505A1 (en) * 2008-10-31 2010-05-06 Qualcomm Incorporated 1xrtt, hrpd and ehrpd neighbor list support over lte
CN103270790A (en) * 2010-12-17 2013-08-28 高通股份有限公司 Deetcting loss of IP continuity when transitioning between different networks
CN103458450A (en) * 2009-06-22 2013-12-18 华为技术有限公司 Switchover processing method, switchover processing communication device and communication system
CN103718638A (en) * 2011-06-09 2014-04-09 高通股份有限公司 Methods and apparatus for enabling fallback to a second data service based on the presence of fallback conditions associated with establishment of a data context with a first data service

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102177748B (en) * 2009-01-08 2013-03-20 华为技术有限公司 Method for network handover, terminal, gateway and network system thereof
US8837405B2 (en) * 2011-02-24 2014-09-16 Qualcomm Incorporated Methods and apparatus to reduce a time to transfer multiple PDN contexts during inter-radio access technology handoff

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010051505A1 (en) * 2008-10-31 2010-05-06 Qualcomm Incorporated 1xrtt, hrpd and ehrpd neighbor list support over lte
CN103458450A (en) * 2009-06-22 2013-12-18 华为技术有限公司 Switchover processing method, switchover processing communication device and communication system
CN103270790A (en) * 2010-12-17 2013-08-28 高通股份有限公司 Deetcting loss of IP continuity when transitioning between different networks
CN103718638A (en) * 2011-06-09 2014-04-09 高通股份有限公司 Methods and apparatus for enabling fallback to a second data service based on the presence of fallback conditions associated with establishment of a data context with a first data service

Also Published As

Publication number Publication date
WO2016131187A1 (en) 2016-08-25
CN106105365A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
US9088616B2 (en) Method and apparatus for authentication
CN108513736B (en) Data processing method and device and terminal equipment
US9974010B2 (en) System and method for establishing network connection and terminal having the system
EP2892279A1 (en) Network switching method and device
WO2014032509A1 (en) Data transfer method and system
US9497665B2 (en) Method and system for returning to long term evolution network and mobile switching center
CN106792639B (en) Method and system for realizing user data recovery in wireless AP
KR20150092234A (en) Communication between a mobile device and telecommunications network
CN106105365B (en) Network switching method, device and terminal
CN113840314B (en) Data transmission abnormality recovery method and device and terminal equipment
CN108419258B (en) Processing method for network communication function abnormity, modem and mobile terminal
US20160330307A1 (en) Blacklist Management Method and Device
US10306518B2 (en) Circuit switched service processing method and terminal
CN111107093B (en) Application login method, device, terminal and storage medium
US20180110091A1 (en) Data Transmission Method and Apparatus for Data Service
CN107682909B (en) Control method and device for connecting access point
WO2020087418A1 (en) Method and device for handling pseudo base station, mobile terminal, and storage medium
CN112423287A (en) Control method and device for registration network, computer equipment and storage medium
CN115707048A (en) Network access mode switching method and device, storage medium and electronic equipment
CN108135018B (en) CSFB (Circuit switched Fall Back) fall result detection method and device and computer storage medium
CN107949009B (en) Method and device for detecting LTE network access result and computer storage medium
US11546949B2 (en) Paging processing method, network device, user equipment, and computer storage medium
CN113965972B (en) Method, device, equipment and storage medium for supporting multi-network switching by single communication card
CN108064452A8 (en) A kind of falling result detection method and device of CSFB, computer storage media
CN108064460B (en) CSFB (Circuit switched Fall Back) fall result detection method and device and computer storage medium

Legal Events

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

Effective date of registration: 20210422

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right