WO2016131187A1 - Network switching method and apparatus, and terminal - Google Patents

Network switching method and apparatus, and terminal Download PDF

Info

Publication number
WO2016131187A1
WO2016131187A1 PCT/CN2015/073217 CN2015073217W WO2016131187A1 WO 2016131187 A1 WO2016131187 A1 WO 2016131187A1 CN 2015073217 W CN2015073217 W CN 2015073217W WO 2016131187 A1 WO2016131187 A1 WO 2016131187A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
network
condition
data service
failure
Prior art date
Application number
PCT/CN2015/073217
Other languages
French (fr)
Chinese (zh)
Inventor
程杰
代贝
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/073217 priority Critical patent/WO2016131187A1/en
Priority to CN201580002496.9A priority patent/CN106105365B/en
Publication of WO2016131187A1 publication Critical patent/WO2016131187A1/en

Links

Images

Classifications

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

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a network switching method, apparatus, and terminal.
  • China Telecom has deployed the 4th Generation Communication System (4G) network in some cities, and set a 4G switch on the 4G terminal to control whether the terminal registers the 4G network.
  • 4G 4th Generation Communication System
  • the terminal Set a “Enable 4G” switch on the terminal.
  • the working mode of the terminal is Long Time Evolution (LTE) and Code Division Multiple Access (CDMA).
  • LTE Long Time Evolution
  • CDMA Code Division Multiple Access
  • Wideband code division multiple access Wide-band CDMA, WCDMA for short
  • GSM Global System for Mobile Communication
  • the terminal's working mode is CDMA, WCDMA, GSM hybrid mode.
  • the terminal when the “Enable 4G” switch is turned on or off, the terminal performs network switching as follows: “Enable 4G” switch is turned off to open, and if the terminal is in idle state, the terminal immediately searches again and If the terminal is in the service state, the user is prompted to interrupt the current service and search for and access the LTE network; the "Enable 4G” switch is switched from open to closed, and the terminal immediately follows the Evolved High Rate Packet Date (Evolved High Rate Packet Date, Referring to the EHRPD network, the High Rate Packet Date (HRPD) network, and the priority of the 1x Radio Transmission Technology (1x RTT) network, the network access is searched in turn, that is, the "Enable 4G” switch is turned off.
  • the terminal preferentially registers with the EHRPD network. If the EHRPD network cannot be registered, it gradually falls back down and registers with the HRPD network.
  • the user has processed the 4G card but has not activated the 4G service. As a result, the terminal cannot access the 4G network.
  • the terminal preferentially registers the EHRPD network, but the local EHRPD network data service is unavailable, making the terminal unable to perform data services.
  • the 4G card handled by the user has opened the 4G service, but in the area where there is no LTE network coverage,
  • the terminal preferentially registers the EHRPD network, but the local EHRPD network data service is unavailable, making the terminal unable to perform data services.
  • the embodiment of the invention provides a network switching method, device and terminal, so that when a terminal inserts a 4G card but cannot access the 4G network, the terminal can quickly access the data service on the network, thereby effectively improving the performance of the terminal.
  • a first aspect of the embodiments of the present invention provides a network switching method, where the method includes:
  • LTE Long Term Evolution
  • the service parameter includes a number of times the data service activation fails or a reason value of the data service activation failure
  • the first condition is a condition that the preset terminal exits the EHRPD network
  • the first condition includes a maximum number of retries for the terminal to perform data service activation; Determining whether the service parameter meets the first condition, specifically includes:
  • the service parameter is a cause value of a data service activation failure
  • the first condition includes the terminal performing data in the EHRPD network.
  • the reason for the failure of business activation is permanent failure
  • the cause of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; if the cause value of the data service activation failure is not the permanent failure, determining The business parameters do not meet the first condition.
  • the method before the determining whether the number of times the service activation failure is greater than the maximum number of retries, the method further includes:
  • the second condition is that the data service activation failure of the terminal is caused by the network failure, and the current network is the EHRPD network;
  • the method further includes:
  • the fourth possible implementation manner of the fourth aspect in a fifth possible implementation manner of the first aspect, after the exiting the EHRPD network, the method also includes:
  • the terminal If the EHRPD network identifier of the terminal is an active state, the terminal requests to access the EHRPD network after exiting the LTE network.
  • a second aspect of the embodiments of the present invention provides a network switching method, where the method includes:
  • LTE Long Term Evolution
  • the method further includes:
  • the EHRPD network identifier of the terminal After detecting that the 4G service is not activated, the EHRPD network identifier of the terminal is modified to an inactive state.
  • a third aspect of the embodiments of the present invention provides a network switching apparatus, including:
  • a determining module configured to determine that the terminal cannot use the Long Term Evolution (LTE) network for data services
  • a monitoring module configured to monitor a service parameter of a data service activation failure in an evolved high-speed packet EHRPD network
  • a determining module configured to determine whether the service parameter meets the first condition, where the first condition is a condition that the preset terminal exits the EHRPD network;
  • a processing module configured to, when the determining module determines that the service parameter meets the first condition, exit the EHRPD network, and request to access a high-speed packet HRPD network.
  • the monitoring module monitors the obtained service parameter as the number of times the data service activation fails, the first condition includes the terminal performing data service activation. Maximum number of retries;
  • the determining module is specifically configured to: determine whether the number of times the service activation failure is greater than the maximum number of retries; if the number of times the service activation fails is greater than the maximum number of retries, determine that the service parameter meets the Determining the first condition; if the number of times the service activation fails is not greater than the maximum number of retries, determining that the service parameter does not meet the first condition.
  • the monitoring module monitors that the obtained service parameter is a cause value of data service activation failure
  • the first condition includes that the terminal is The reason for the failure of data service activation under the EHRPD network is a permanent failure
  • the determining module is specifically configured to: determine whether the cause value of the data service activation failure is the permanent failure; and if the cause of the data service activation failure is the permanent failure, determine the service parameter. And satisfying the first condition; if the cause value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
  • the monitoring module is further configured to obtain a cause value of the data service activation failure.
  • the determining module is further configured to determine whether the cause value of the data service activation failure meets the second condition; the second condition is that the terminal fails to perform data service activation because the network fails, and the current network is the EHRPD a network; if the cause value of the data service activation failure does not meet the second condition, the number of times the previous data service activation failure is cleared; if the reason for the data service activation failure meets the second condition , then increments the number of failed data service activations by one.
  • the determining module is further configured to: determine, according to the cause value of the data service activation failure, whether to restart the processor; if the processor needs to be restarted Restarting the processor; or,
  • the determining module 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 meets the preset data type, The determining module performs the step of determining whether the service parameter meets the first condition; or if the data type of the access point does not meet the preset data type, triggering the processing module to perform data Business activation.
  • the processing module is further configured to succeed If the EHRPD network identifier of the terminal is an active state, if the EHRPD network identifier of the terminal is an active state, the terminal requests to access the EHRPD network after exiting the LTE network. .
  • a fourth aspect of the embodiments of the present invention provides a network switching apparatus, including:
  • a detecting module configured to detect whether the 4G service of the terminal is activated
  • a processing module if the detecting module detects that the 4G service is activated, and determines that the terminal cannot use the long term evolution LTE network to perform data service, requesting access to the evolved high speed packet EHRPD network; or, if The detecting module detects that the 4G service is not activated, then When it is determined that the terminal cannot use the LTE network for data service, request to access the high speed packet HRPD network.
  • the processing module modifies an EHRPD network identifier of the terminal to an activated state
  • the processing module modifies the EHRPD network identifier of the terminal to an inactive state.
  • a fifth aspect of the embodiments of the present invention provides a terminal, including: a processor and a memory;
  • the memory is configured to store an execution instruction, when the terminal is running, the processor is in communication with the memory, and the processor invokes the execution instruction to perform the following operations:
  • LTE Long Term Evolution
  • the service parameter includes a number of times the data service activation fails or a reason value of the data service activation failure
  • the first condition is a condition that the preset terminal exits the EHRPD network
  • the processor is specifically configured to:
  • the first condition includes the terminal performing data in the EHRPD network
  • the reason for the failure of business activation is 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 cause of the data service activation failure is the permanent failure, determining that the service parameter is consistent The first condition; if the reason for the failure of the data service activation is not In the case of a permanent failure, it is determined that the service parameter does not comply with the first condition.
  • the processor is further configured to acquire a cause value of the data service activation failure, and determine that the data service is activated. Whether the failure cause value meets the second condition; the second condition is that the terminal fails to perform data service activation because the network fails, and the current network is the EHRPD network; if the reason for the data service activation failure is not If the second condition is met, the number of times the data service activation failure is cleared is cleared; if the reason value of the data service activation failure meets the second condition, the number of times the previous data service activation fails is added. 1.
  • the processor is further configured to determine, according to the cause value of the data service activation failure, whether to restart the processor; if the processor needs to be restarted Restarting the processor; or,
  • the processor determines whether the data type of the access point corresponding to the terminal matches the preset data type; if the data type of the access point matches the preset data type, And performing the step of determining whether the service parameter meets the first condition; if the data type of the access point does not meet the preset data type, performing data service activation.
  • the processor is further used to succeed If the EHRPD network identifier of the terminal is an active state, if the EHRPD network identifier of the terminal is an active state, the terminal requests to access the EHRPD network after exiting the LTE network. .
  • a sixth aspect of the embodiments of the present invention provides a terminal, including a processor and a memory;
  • the memory is configured to store an execution instruction, when the terminal is running, the processor is in communication with the memory, and the processor invokes the execution instruction to perform the following operations:
  • LTE Long Term Evolution
  • the processor is further configured to: after detecting that the 4G service is activated, modify an EHRPD network identifier of the terminal to be activated. Or; after detecting that the 4G service is not activated, the terminal's EHRPD network identifier is modified to an inactive state.
  • the network switching method, device, and terminal provided by the embodiment, when determining that the terminal cannot use the LTE network for the data service, the terminal monitors the service parameter of the data service activation failure in the EHRPD network, and when the service parameter meets the first condition, the terminal Automatically exit the EHRPD network, then search for and request access to the HRPD network, and use the data service under the HRPD network, so that when the terminal inserts the 4G card but cannot access the 4G network, the terminal can quickly fall back to the HRPD network for data services, effectively improving the data service. Terminal performance.
  • FIG. 1 is a flowchart of a network switching method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of a network switching method according to Embodiment 2 of the present invention.
  • FIG. 3 is a flowchart of a network switching method according to Embodiment 3 of the present invention.
  • FIG. 4 is a flowchart of a network switching method according to Embodiment 4 of the present invention.
  • FIG. 5 is a flowchart of a network switching method according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic structural diagram of a network switching apparatus according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic structural diagram of a network switching apparatus according to Embodiment 8 of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal according to Embodiment 9 of the present invention.
  • the network switching method provided by the embodiment of the present invention is applied to a terminal, for example, a mobile phone or a notebook.
  • a terminal for example, a mobile phone or a notebook.
  • Computers, tablets, handheld terminals, etc. are suitable for scenarios where the terminal switches from one network to another, for example, when the mobile phone switches from a 3G network to a 4G network, or when the mobile phone does not successfully access the 4G network, it can be switched. Go to other networks and other scenarios.
  • FIG. 1 is a flowchart of a network switching method according to Embodiment 1 of the present invention. As shown in Figure 1, the method includes the following steps:
  • Step 101 Determine that the terminal cannot use the LTE network for data services.
  • the 4G network may adopt the LTE technology.
  • the user does not open the 4G service, or the current serving cell where the terminal is located is not covered by the LTE network, or the LTE network fails, data services cannot be performed, etc., in these scenarios.
  • the terminal cannot use the LTE network for data services.
  • Step 102 Monitor service parameters of data service activation failure under the EHRPD network.
  • the service parameters include the number of times the data service activation fails or the reason why the data service activation fails.
  • the terminal preferentially registers the EHRPD network. After the terminal registers the EHRPD network successfully, the terminal performs data service activation under the EHRPD network, and monitors the terminal in the EHRPD. The number of times the data service fails to be activated in the network or the cause of the failure of the data service activation. You can set a static counter in the terminal to count the number of failed data service activations.
  • the cause of data service activation failure is the cause of data service activation failure.
  • the terminal may obtain the cause value of the failure of the data service activation through the processor of the terminal due to the failure caused by the instability of the EHRPD network and the failure caused by the unavailable network connection.
  • step 103 it is determined whether the service parameter meets the first condition. If the service parameter meets the first condition, step 104 is performed. If the service parameter does not meet the first condition, step 105 is performed.
  • the first condition is a condition that the preset terminal exits the EHRPD network.
  • the first condition is a condition that the preset terminal exits the EHRPD network, and the first condition may be set according to the specific content of the service parameter. For example, if the service parameter is the number of times the data service fails to be activated, The first condition is set to the maximum number of repetitions of the data service activation. When the number of data service activation failures exceeds the maximum number of repetitions, the service parameter meets the first condition. When the number of data service activation failures is less than or equal to the maximum number of repetitions, the service is performed. The parameter does not meet the first condition.
  • Step 104 Exit the EHRPD network and request access to the HRPD network.
  • the terminal when the service parameter meets the first condition, the terminal automatically exits the EHRPD network, and then searches for and requests access to the HRPD network. If the HRPD network is successfully accessed, the data service is used under the HRPD network.
  • a global variable can be set in the processor to control the terminal to access or exit the EHRPD network.
  • Step 105 Perform data service activation.
  • the terminal when the service parameter does not meet the first condition, the terminal re-activates the data service. If the activation fails, step 101 is continued.
  • the terminal when the terminal handles the 4G card but cannot access the 4G network, the terminal preferentially registers with the EHRPD network.
  • the EHRPD network has many problems, for example, the data service cannot be activated.
  • the Assisted Global Positioning System (AGPS) is slow to locate and the data service is easily interrupted. Therefore, after registering the EHRPD network, the terminal still cannot use the data service under the EHRPD network. However, the terminal cannot be closed. After the EHRPD network switches to another network, the 4G card inserted in the terminal causes the data service to be performed regardless of whether the 4G switch of the terminal is turned on or off, which reduces the performance of the terminal.
  • AGPS Assisted Global Positioning System
  • the terminal monitors the service parameters of the data service activation failure in the EHRPD network.
  • the terminal automatically exits the EHRPD network, and then searches for Requesting access to the HRPD network and using the data service in the HRPD network. Since the HRPD network is relatively stable, the terminal can perform data services under the HRPD network, so that when the terminal inserts the 4G card but cannot access the 4G network, the terminal can quickly fall back to The data service is performed on the HRPD network, which effectively improves the performance of the terminal.
  • the network switching method provided in this embodiment determines that the terminal cannot use the LTE network to perform the data service, and the terminal monitors the service parameter of the data service activation failure in the EHRPD network. When the service parameter meets the first condition, the terminal automatically exits the EHRPD network. Then, it searches for and requests access to the HRPD network, and uses the data service under the HRPD network, so that when the terminal inserts the 4G card but cannot access the 4G network, the terminal can quickly fall back to the HRPD network for data services, thereby effectively improving the performance of the terminal.
  • FIG. 2 is a flowchart of a network switching method according to Embodiment 2 of the present invention.
  • the service parameter is the number of times the data service fails to be activated
  • the first condition includes the maximum number of retries for the terminal to perform data service activation;
  • the implementation of the step of whether the parameter meets the first condition specifically includes the following steps:
  • Step 205 Determine whether the number of service activation failures is greater than the maximum number of retries. If yes, that is, the number of service activation failures is greater than the maximum number of retries, step 206 is performed. If not, the number of service activation failures is not greater than the maximum number of retries. Then step 207 is performed.
  • the data service is reactivated, and the maximum number of retries for the data service activation by one terminal is preset, and the maximum number of retries is guaranteed to be accidental.
  • the terminal retry normally, and ensure that the terminal exits the EHRPD network as soon as possible after determining that the EHRPD network has a network fault, so that the terminal accesses the HRPD network as soon as possible.
  • the maximum number of retries is set to 2 or 3 times.
  • the present invention is not limited thereto, and those skilled in the art can set the maximum number of retries according to the actual situation.
  • Step 206 Determine that the service parameter meets the first condition.
  • Step 207 Determine that the service parameter does not meet the first condition.
  • step 205 the following steps are further included:
  • Step 201 Obtain a cause value of failure of data service activation.
  • the terminal may obtain a cause value of the data service failure by using the processor.
  • Step 202 Determine whether the cause value of the data service activation failure meets the second condition; if not, that is, the reason value of the data service activation failure does not meet the second condition, perform step 203, and if yes, the cause value of the data service activation failure is met. In the second condition, step 204 is performed.
  • the second condition is that the terminal fails to activate the data service because the network fails, and the current network is an EHRPD network.
  • the network failure refers to data activation failure due to network failure, for example, the network signal is too weak, or the network signal is interrupted, so that the terminal cannot perform data service. If the cause of the data service activation failure is a network failure, and the network currently used by the terminal is an EHRPD network, the cause value of the data service activation failure is determined to meet the second condition; if the reason for the data service activation failure is not the network failure, or If the current network is not an EHRPD network, the reason for determining that the data service activation fails does not meet the second condition.
  • Step 203 Clear the number of times the last data service activation failed.
  • the number of times the data service activation fails after each data service activation failure is determined. If the reason for the failure of the data service activation fails to meet the second condition, the data service recorded last time is recorded. The number of activation failures is cleared.
  • step 204 the number of times the data service activation failed is incremented by one.
  • the last record is The number of data service activation failures is increased by one.
  • the first condition includes the maximum number of retries for the data service activation, and the number of times the service activation failure is greater than the maximum number of retries. If yes, determining that the service parameter meets the first condition, exiting the EHRPD network and requesting access to the HRPD network; if not, determining that the service parameter does not meet the first condition, then performing data service activation, when the service parameter meets the first condition, The terminal automatically quits the EHRPD network, then searches for and requests access to the HRPD network, and uses the data service under the HRPD network.
  • the method before determining whether the number of times the service activation failure is greater than the maximum number of retries, the method further includes: obtaining a cause value of the data service activation failure, and determining whether the cause value of the data service activation failure meets the second condition, and if yes, The number of times the data service activation fails is increased by one. If not, the number of data service activation failures is cleared.
  • the data service is only valid when the cause of the data service activation failure is the network failure and the current network is the EHRPD network.
  • the number of activation failures is increased by 1. In other cases, the reason for the failure of the data service activation is cleared, and the problem of blindly shutting down the EHRPD network and improving the terminal is avoided when the data service activation failure occurs due to some non-network failure reasons. performance.
  • FIG. 3 is a flowchart of a network switching method according to Embodiment 3 of the present invention.
  • the service parameter is the cause value of the data service activation failure
  • the first condition includes that the reason for the terminal to fail the data service activation under the EHRPD network is permanent.
  • Step 301 Determine whether the cause value of the data service activation failure is a permanent failure. If the value of the data service activation failure is a permanent failure, go to step 302. If no, the cause of the data service activation failure is not permanent. If the sex fails, step 303 is performed.
  • the permanent failure refers to the failure of the EHRPD network, and the terminal cannot use the data service under the EHRPD network regardless of how many data service activations are attempted.
  • the failure of the network side device causes the entire network signal to be interrupted, and Can't recover in a short time.
  • Step 302 Determine that the service parameter meets the first condition.
  • 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 Determine that the service parameter does not meet the first condition.
  • 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.
  • the service parameter is the cause value of the data service activation failure
  • the first condition includes the reason that the terminal fails to perform the data service activation in the EHRPD network is a permanent failure, and the reason for the data service activation failure is determined. Whether the value is a permanent failure. If yes, it is determined that the service parameter meets the first condition, the terminal exits the EHRPD network and requests access to the HRPD network; if not, it determines that the service parameter does not meet the first condition, and continues to perform data service on the EHRPD network. When the service parameters meet the first condition match, the terminal automatically exits the EHRPD network, then searches for and requests access to the HRPD network, and uses the data service under the HRPD network. Since the HRPD network is relatively stable, the terminal can perform the HRPD network. The data service enables the terminal to quickly fall back to the HRPD network for data services when the 4G card is inserted but cannot access the 4G network, which effectively improves the performance of the terminal.
  • FIG. 4 is a flowchart of a network switching method according to Embodiment 4 of the present invention.
  • the method further includes the following steps:
  • Step 401 Determine, according to the cause value of the data service activation failure, whether the processor needs to be restarted. If yes, if the processor needs to be restarted, go to step 402; if no, if the processor does not need to be restarted, go to step 403.
  • the terminal determines whether it is necessary to restart the processor according to the cause value of the data service activation failure. For example, if the reason value is due to the failure of the processor of the terminal, the data service activation fails, the processor needs to be restarted. If the cause value is not due to data failure of the terminal's processor failure, there is no need to restart the processor.
  • Step 402 Restart the processor.
  • the processor is restarted, and after restarting the processor, the data service activation is retried.
  • Step 403 Determine whether the data type of the access point corresponding to the terminal meets the preset data type. If yes, that is, the data type of the access point conforms to the preset data type, perform step 404; or, if not, the access point If the data type does not match the preset data type, step 405 is performed.
  • the preset data type includes multiple data types commonly used by the access point, for example, a system default (DEFAULT) type, a multimedia message service (MMS) type, and the like.
  • a system default (DEFAULT) type When the processor does not need to be restarted, the data type of the access point corresponding to the terminal is determined.
  • the data type of the access point is any one of the preset data types, the data type of the access point conforms to the preset. The data type.
  • the data type of the access point is not one of the preset data types, the data type of the access point does not match the preset data type.
  • the preset data type includes DEFAULT and MMS
  • the data type of the access point when the data type of the access point is DEFAULT or MMS, it conforms to the preset data type, and continues to determine whether to exit the EHRPD network.
  • the data type of the access point is not DEFAULT or When the MMS is not in compliance with the preset data type, the normal processing logic step is maintained, that is, the data service activation is re-attempted. 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 Perform the step of determining whether the service parameter meets the first condition.
  • Step 405 Perform data service activation.
  • the retry attempts to activate the data service, and if the data service fails to be activated, the number of times and the cause value of the data service activation failure are continuously monitored; If the data service is activated successfully, the data service is used.
  • the terminal monitors the data service under the EHRPD network After the failed service parameter is activated, it is determined whether the processor needs to be restarted according to the reason for the failure of the data service activation. If necessary, the processor is restarted. If not, the data type of the access point corresponding to the terminal is determined to be in accordance with the preset. Data type. If the data type of the access point meets the preset data type, perform the step of determining whether the service parameter meets the first condition, and determine whether to exit the EHRPD network according to the result, if the data type of the access point does not meet the preset Data type, then data service activation.
  • the processor needs to be restarted, and the data service activation is retried for the case that the data service activation fails due to the unusual data type of the access point. Therefore, the problem of blindly exiting the EHRPD network when the data service activation fails due to the failure of the processor of the terminal or the non-network cause of the data type is not avoided, and the method of restarting the processor and retrying the data service activation may be used.
  • the terminal can use the data service normally under the EHRPD network, which effectively improves the performance of the terminal.
  • the method further includes: if the LTE network is successfully registered, checking whether the EHRPD network identifier of the terminal is an active state; The EHRPD network identifier of the terminal is in an active state, and the terminal requests to access the EHRPD network after exiting the LTE network.
  • the terminal after exiting the EHRPD network, if the terminal needs to re-search for the LTE network, for example, if the 4G switch of the terminal is re-enabled, or the terminal restarts, the terminal starts to search for the LTE network, and successfully registers the LTE network. After that, the EHRPD network identifier of the terminal is checked, and the EHRPD network identifier can be set in the processor. If the EHRPD network identifier is in the active state, the terminal requests to access the EHRPD network after exiting the LTE network. If the EHRPD network identifier is inactive, the data service is activated.
  • the terminal After the terminal re-registers the LTE network, after exiting the LTE network, the terminal can select whether to access the EHRPD network according to the status of the EHRPD network identifier, so that the operation of exiting the EHRPD network when the data service fails to be activated has the current line and the current validity. Instead of simply and rudely exiting the EHRPD network completely, when the terminal cannot perform data services under the LTE network, and the EHRPD network is available for recovery, the terminal can access the EHRPD network and use the data service normally, thereby improving the stability of the terminal.
  • FIG. 5 is a flowchart of a network switching method according to Embodiment 5 of the present invention. As shown in FIG. 5, the method includes the following steps:
  • Step 501 Detect whether the 4G service of the terminal is activated.
  • a 4G switch can be set in the terminal.
  • a “Enable 4G” switch can be set in the system setting item to control whether the terminal registers the 4G network, and the 4G switch.
  • the status includes two states: "on” and "off”. When the status of the 4G switch is "on”, the 4G service of the terminal is activated. When the status of the 4G switch is "off”, the 4G service of the terminal is not activated.
  • Step 502 If it is determined that the 4G service is activated, it is determined that the terminal cannot use the LTE network to perform data service, and requests to access the EHRPD network; or if it is detected that the 4G service is not activated, it is determined that the terminal cannot use the LTE network for data service. When requesting access to the HRPD network.
  • the 4G switch and the EHRPD network may be associated together.
  • the 4G switch When the 4G switch is detected to be activated, that is, the 4G service is activated, and the terminal automatically requests to access the EHRPD network when the LTE network cannot be used;
  • the 4G switch When the 4G switch is disabled, that is, the 4G service is not activated, the terminal no longer preferentially registers with the EHRPD network, but directly searches for and requests access to the HRPD network, and uses the data service under the HRPD network.
  • the network switching method provided in this embodiment is to detect whether the 4G service is activated. If the 4G service is activated, it is determined that the terminal cannot use the LTE network to perform data service, and requests to access the EHRPD network; or, if the 4G service is detected. If it is not activated, it is determined that the terminal cannot use the LTE network for data service, and requests to access the HRPD network. When the terminal 4G service is closed, the terminal no longer preferentially registers the EHRPD network, but directly searches for and requests access to the HRPD network. The use of data services under a stable HRPD network improves the performance of the terminal.
  • the method further includes: after detecting that the 4G service is activated, modifying the EHRPD network identifier of the terminal to an activated state; or detecting the EHRPD network identifier of the terminal after detecting that the 4G service is not activated. Modified to inactive.
  • the EHRPD network identifier may be set in the 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 terminal is modified, restarted, switched flight mode, or the terminal replaces the service card, and the modified The EHRPD network logo is still in effect.
  • FIG. 6 is a schematic structural diagram of a network switching apparatus according to Embodiment 6 of the present invention.
  • 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 services.
  • the monitoring module 11 is configured to monitor service parameters of data service activation failure under the evolved high speed packet EHRPD network.
  • the determining module 12 is configured to determine whether the service parameter meets the first condition; wherein the first condition is preset The condition that the terminal exits the EHRPD network.
  • the processing module 13 is configured to exit the EHRPD network and request access to the HRPD network when the determining module 12 determines that the service parameter meets the first condition.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.
  • the first condition includes the terminal performing.
  • the maximum number of retries for the data service activation; the determining module 12 is specifically configured to: determine whether the number of service activation failures is greater than the maximum number of retries; if the number of service activation failures is greater than the maximum number of retries, determine that the service parameters meet the first condition If the number of service activation failures is not greater than the maximum number of retries, it is determined that the service parameters do not meet the first condition.
  • the monitoring module 11 is further configured to obtain a cause value of the data service activation failure; the determining module 12 is further configured to determine whether the cause value of the data service activation failure meets the second condition, and the second condition is that the terminal fails to activate the data service because the network fails. And the current network is an EHRPD network; if the reason for the failure of the data service activation does not meet the second condition, the number of times the data service activation failure is cleared is cleared; if the cause value of the data service activation failure meets the second condition, Add 1 to the number of failed data service activations.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the monitoring module 11 monitors the obtained service parameter as the cause value of the data service activation failure
  • the first condition includes that the terminal fails to activate the data service under the EHRPD network.
  • the determining module 12 is specifically configured to: determine whether the cause value of the data service activation failure is a permanent failure; if the cause value of the data service activation failure is a permanent failure, determine that the service parameter meets the first condition; If the cause of the service activation failure is not a permanent failure, it is determined that the service parameters do not meet the first condition.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the determining module 12 is further configured to determine whether the processor needs to be restarted according to the reason value of the data service activation failure; if necessary, restart the processor; or, if the processor is not required to be restarted, the determining module 12 determines that the terminal corresponds to Whether the data type of the access point conforms to the preset data type; if the data type of the access point conforms to the preset data type, the determining module 12 performs a judgment on whether the service parameter is The first condition is combined with the step; or, if the data type of the access point does not match the preset data type, the trigger processing module 13 performs data service activation.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the processing module 13 is further configured to: if the EHRPD network identifier of the terminal is in an active state, if the EHRPD network identifier of the terminal is in an active state, the terminal requests to access the EHRPD after exiting the LTE network.
  • the internet The internet.
  • FIG. 7 is a schematic structural diagram of a network switching apparatus according to Embodiment 8 of the present invention.
  • the apparatus includes a detection module 21 and a processing module 22.
  • the detecting module 21 is configured to detect whether the 4G service of the terminal is activated.
  • the processing module 22 is configured to request access to the evolved high-speed packet EHRPD network when the detecting module 21 detects that the 4G service is activated, and determines that the terminal cannot use the LTE network for data service; or if the detecting module 21 detects that the 4G service is not When activated, it is determined that the terminal cannot access the high-speed packet HRPD network when the LTE network cannot use the LTE network for data services.
  • the processing module 22 modifies the EHRPD network identifier of the terminal to an activated state; or, after the detecting module 21 detects that the 4G service is not activated, the processing is performed. Module 22 modifies the EHRPD network identity of the terminal to an inactive state.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of a terminal according to Embodiment 9 of the present invention.
  • the terminal includes a processor 31 and a memory 32.
  • the terminal may also include a transmitter 33 and a receiver 34, which may be coupled to the processor 31.
  • the memory 31 is configured to store execution instructions. When the terminal is running, the processor 31 communicates with the memory 32, and the processor 31 calls the execution instruction for performing the following operations:
  • the service parameter includes a number of times the data service activation fails or a reason value of the data service activation failure
  • the first condition is a condition that the preset terminal exits the EHRPD network
  • the first condition includes a maximum number of retries for the data service to be activated by the terminal, and the processor 31 is configured to determine whether the number of service activation failures is greater than the maximum number of retries. If the number of service activation failures is greater than the maximum number of retries, it is determined that the service parameters meet the first condition; if the number of service activation failures is not greater than the maximum number of retries, it is determined that the service parameters do not meet the first condition.
  • the service parameter is a cause value of the data service activation failure
  • the first condition includes the failure of the terminal to perform the data service activation failure in the EHRPD network is a permanent failure; the processor 31 is specifically configured to determine that the data service activation fails. Whether the cause value is a permanent failure; 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; if the cause value of the data service activation failure is not a permanent failure, it is determined that the service parameter does not match First condition.
  • the processor 31 is further configured to: obtain a cause value of the data service activation failure; and determine whether the cause value of the data service activation failure meets the second condition; and the second condition is that the terminal fails to perform the data service activation because the network fails.
  • the current network is an EHRPD network; if the reason for the failure of the data service activation does not meet the second condition, the number of times the data service activation failure is cleared is cleared; if the cause of the data service activation failure meets the second condition, The number of times the last data service activation failed was increased by one.
  • the processor 31 is further configured to determine, according to the cause value of the data service activation failure, whether the processor 31 needs to be restarted; if the processor 31 needs to be restarted, restart the processor 31; or, if the processor 31 is not required 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 conforms to the preset data type, performing the step of determining whether the service parameter meets the first condition; or If the data type of the access point does not match the preset data type, the data service is activated.
  • the processor 31 is further configured to: if the long-term evolution LTE network is successfully registered, check whether the EHRPD network identifier of the terminal is an activated state; if the EHRPD network identifier of the terminal is an active state, the terminal requests to access after exiting the LTE network. EHRPD network.
  • the terminal in this embodiment may be used to perform the technical solution of the network switching method provided by any one of the first embodiment to the fourth embodiment of the present invention.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • the terminal includes a processor 31 and a memory Reservoir 32.
  • the terminal may also include a transmitter 33 and a receiver 34, which may be coupled to the processor 31.
  • the memory 32 is used to store execution instructions.
  • the processor 31 communicates with the memory 32, and the processor 31 calls the execution instruction for performing the following operations:
  • the processor 31 is further configured to: after detecting that the 4G service is activated, modify the EHRPD network identifier of the terminal to an activated state; or, after detecting that the 4G service is not activated, modify the EHRPD network identifier of the terminal to be inactive. status.
  • the terminal in this embodiment may be used to perform the technical solution of the network switching method provided by the fifth embodiment of the present invention.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a network switching method and apparatus, and a terminal. The method comprises: determining that a terminal cannot execute a data service using a long term evolution (LTE) network; monitoring service parameters about a data service activation failure under an evolved high rate packet data (EHRPD) network, with the service parameters comprising the number of times of data service activation failures or reason values of the data service activation failures; judging whether the service parameters conform to a first condition, wherein the first condition is a pre-set condition for the terminal to exit from the EHRPD network; and if the service parameters conform to the first condition, exiting from the EHRPD network, and requesting to access an HRPD network, such that when a 4G card is inserted into the terminal but the terminal cannot access a 4G network, the terminal can quickly access the HRPD network to execute a data service, thereby effectively improving the performance of the terminal.

Description

网络切换方法、装置和终端Network switching method, device and terminal 技术领域Technical field
本发明实施例涉及通信技术,尤其涉及一种网络切换方法、装置和终端。The embodiments of the present invention relate to communication technologies, and in particular, to a network switching method, apparatus, and terminal.
背景技术Background technique
目前,中国电信已经在部分城市布局了第四代通信系统(the 4th Generation communication system,简称4G)网络,并且,在4G终端上设置一个4G开关来控制终端是否注册4G网络。At present, China Telecom has deployed the 4th Generation Communication System (4G) network in some cities, and set a 4G switch on the 4G terminal to control whether the terminal registers the 4G network.
在终端上设置一个“启用4G”开关,当“启用4G”开关打开时,终端的工作模式为长期演进网络(Long Time Evolution,简称LTE)、码分多址(Code Division Multiple Access,简称CDMA)、宽带码分多址(Wide-band CDMA,简称WCDMA)、全球移动通信系统(Global System for Mobile Communication,简称GSM)的混合模式;当“启用4G”开关关闭时,终端的工作模式为CDMA、WCDMA、GSM混合模式。具体的,按照中国电信的需求,“启用4G”开关打开或者关闭时,终端按照如下操作来进行网络切换:“启用4G”开关从关闭到打开,若终端处于空闲态,则终端立即重新搜索和接入LTE网络,若终端处于业务态,则提示用户是否中断当前业务并搜索和接入LTE网络;“启用4G”开关从打开到关闭,终端立即按照演进的高速分组(Evolved High Rate Packet Date,简称EHRPD)网络、高速分组(High Rate Packet Date,简称HRPD)网络、1x无线传输技术(1x Radio Transmission Technology,简称1x RTT)网络的优先级,依次搜索网络接入,即“启用4G”开关关闭时,终端优先注册EHRPD网络,若EHRPD网络不能注册,则逐步向下回落,注册HRPD网络。Set a “Enable 4G” switch on the terminal. When the “Enable 4G” switch is turned on, the working mode of the terminal is Long Time Evolution (LTE) and Code Division Multiple Access (CDMA). Broadband code division multiple access (Wide-band CDMA, WCDMA for short), Global System for Mobile Communication (GSM) hybrid mode; when the "Enable 4G" switch is off, the terminal's working mode is CDMA, WCDMA, GSM hybrid mode. Specifically, according to the requirements of China Telecom, when the “Enable 4G” switch is turned on or off, the terminal performs network switching as follows: “Enable 4G” switch is turned off to open, and if the terminal is in idle state, the terminal immediately searches again and If the terminal is in the service state, the user is prompted to interrupt the current service and search for and access the LTE network; the "Enable 4G" switch is switched from open to closed, and the terminal immediately follows the Evolved High Rate Packet Date (Evolved High Rate Packet Date, Referring to the EHRPD network, the High Rate Packet Date (HRPD) network, and the priority of the 1x Radio Transmission Technology (1x RTT) network, the network access is searched in turn, that is, the "Enable 4G" switch is turned off. The terminal preferentially registers with the EHRPD network. If the EHRPD network cannot be registered, it gradually falls back down and registers with the HRPD network.
但是,由于运营商的网络部署和配置不完善,出现了以下两种场景:However, due to the incomplete network deployment and configuration of the carrier, the following two scenarios occur:
1、用户办理了4G卡但未开通4G业务,导致终端无法接入4G网络,则终端优先注册EHRPD网络,但是本地的EHRPD网络数据业务不可用,使得终端无法进行数据业务。1. The user has processed the 4G card but has not activated the 4G service. As a result, the terminal cannot access the 4G network. The terminal preferentially registers the EHRPD network, but the local EHRPD network data service is unavailable, making the terminal unable to perform data services.
2、用户办理的4G卡开通了4G业务,但是在没有LTE网络覆盖的地域, 终端优先注册EHRPD网络,但是本地的EHRPD网络数据业务不可用,使得终端无法进行数据业务。2. The 4G card handled by the user has opened the 4G service, but in the area where there is no LTE network coverage, The terminal preferentially registers the EHRPD network, but the local EHRPD network data service is unavailable, making the terminal unable to perform data services.
在上述两种场景下,终端插了4G卡之后,若终端优先注册EHRPD网络,当EHRPD网络数据业务不可用时,无论终端的4G开关打开或者关闭,都无法进行数据业务,从而降低了终端的性能。In the above two scenarios, after the terminal is plugged into the 4G card, if the terminal preferentially registers with the EHRPD network, when the EHRPD network data service is unavailable, the data service cannot be performed regardless of whether the 4G switch of the terminal is turned on or off, thereby reducing the performance of the terminal. .
发明内容Summary of the invention
本发明实施例提供一种网络切换方法、装置和终端,使得终端在插入4G卡却无法接入4G网络时,可以快速接入网络上使用数据业务,有效提升了终端的性能。The embodiment of the invention provides a network switching method, device and terminal, so that when a terminal inserts a 4G card but cannot access the 4G network, the terminal can quickly access the data service on the network, thereby effectively improving the performance of the terminal.
本发明实施例第一方面提供一种网络切换方法,所述方法包括:A first aspect of the embodiments of the present invention provides a network switching method, where the method includes:
确定终端无法使用长期演进LTE网络进行数据业务;Determining that the terminal cannot use the Long Term Evolution (LTE) network for data services;
监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数;所述业务参数包括数据业务激活失败的次数或数据业务激活失败的原因值;Monitoring a service parameter of the data service activation failure in the evolved high-speed packet EHRPD network; the service parameter includes a number of times the data service activation fails or a reason value of the data service activation failure;
判断所述业务参数是否符合第一条件;其中,所述第一条件为预设的终端退出所述EHRPD网络的条件;Determining whether the service parameter meets the first condition; wherein the first condition is a condition that the preset terminal exits the EHRPD network;
若所述业务参数符合所述第一条件,则退出所述EHRPD网络,并请求接入高速分组HRPD网络。If the service parameter meets the first condition, exiting the EHRPD network and requesting access to 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 the number of times the data service is activated, the first condition includes a maximum number of retries for the terminal to perform data service activation; Determining whether the service parameter meets the first condition, specifically includes:
判断所述业务激活失败的次数是否大于所述最大重试次数;Determining whether the number of times the service activation fails is greater than the maximum number of retries;
若所述业务激活失败的次数大于所述最大重试次数,则确定所述业务参数符合第一条件;若所述业务激活失败的次数不大于所述最大重试次数,则确定所述业务参数不符合所述第一条件。If the number of times the service activation fails is greater than the maximum number of retries, determining that the service parameter meets the first condition; if the number of times the service activation fails is not greater than the maximum number of retries, determining the service parameter Does not meet the first condition.
结合第一方面,在第一方面的第二种可能实现方式中,若所述业务参数为数据业务激活失败的原因值;则所述第一条件包括所述终端在所述EHRPD网络下进行数据业务激活失败的原因为永久性失败;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 data service activation failure, the first condition includes the terminal performing data in the EHRPD network. The reason for the failure of business activation is permanent failure;
则判断所述业务参数是否符合第一条件,具体包括:And determining whether the service parameter meets the first condition, specifically:
判断所述数据业务激活失败的原因值是否为所述永久性失败; Determining whether the cause value of the data service activation failure is the permanent failure;
若所述数据业务激活失败的原因值为所述永久性失败,则确定所述业务参数符合所述第一条件;若所述数据业务激活失败的原因值不是所述永久性失败,则确定所述业务参数不符合所述第一条件。If the cause of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; if the cause value of the data service activation failure is not the permanent failure, determining The business parameters do not meet the first condition.
结合一方面的第一种可能实现方式,在第一方面的第三种可能实现方式中,所述判断所述业务激活失败的次数是否大于最大重试次数之前,所述方法还包括:In conjunction with the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, before the determining whether the number of times the service activation failure is greater than the maximum number of retries, the method further includes:
获取所述数据业务激活失败的原因值;Obtaining a cause value of the data service activation failure;
判断所述数据业务激活失败的原因值是否符合第二条件;所述第二条件为所述终端进行数据业务激活失败的原因为网络失败,且当前网络为所述EHRPD网络;Determining whether the cause value of the data service activation failure meets the second condition; the second condition is that the data service activation failure of the terminal is caused by the network failure, and the current network is the EHRPD network;
若所述数据业务激活失败的原因值不符合所述第二条件,则将上一次的数据业务激活失败的次数清零;If the cause value of the data service activation failure does not meet the second condition, the number of times the previous data service activation failure is cleared;
若所述数据业务激活失败的原因值符合所述第二条件,则将上一次的数据业务激活失败的次数加1。If the cause value of the data service activation failure meets the second condition, the number of times the previous data service activation failure is increased by one.
结合第一方面,在第一方面的第四种可能实现方式中,所述监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数之后,所述方法还包括:With reference to the first aspect, in a fourth possible implementation manner of the first aspect, after the monitoring the service parameter of the data service activation failure in the evolved high-speed packet EHRPD network, the method further includes:
根据所述数据业务激活失败的原因值,判断是否需要重启处理器;Determining whether it is necessary to restart the processor according to the reason value of the data service activation failure;
若需要重启所述处理器,则重启所述处理器;Restarting the processor if the processor needs to be restarted;
若不需要重启所述处理器,则判断所述终端对应的接入点的数据类型是否符合预设数据类型;若所述接入点的数据类型符合所述预设数据类型,则执行所述判断所述业务参数是否符合第一条件这一步骤;若所述接入点的数据类型不符合所述预设数据类型,则进行数据业务激活。If it is not required to restart the processor, determining whether the data type of the access point corresponding to the terminal conforms to a preset data type; if the data type of the access point meets the preset data type, performing the Determining whether the service parameter meets the first condition; if the data type of the access point does not meet the preset data type, performing data service activation.
结合第一方面、第一方面的第一种至第一方面的第四种任意一种可能实现方式,在第一方面的第五种可能实现方式中,所述退出所述EHRPD网络之后,所述方法还包括:With reference to the first aspect, the first aspect of the first aspect, the fourth possible implementation manner of the fourth aspect, in a fifth possible implementation manner of the first aspect, after the exiting the EHRPD network, The method also includes:
若成功注册长期演进LTE网络,则检查所述终端的EHRPD网络标识是否为激活状态;If the long-term evolution LTE network is successfully registered, check whether the EHRPD network identifier of the terminal is an active state;
若所述终端的EHRPD网络标识为激活状态,则所述终端在退出所述LTE网络后请求接入所述EHRPD网络。 If the EHRPD network identifier of the terminal is an active state, the terminal requests to access the EHRPD network after exiting the LTE network.
本发明实施例第二方面提供一种网络切换方法,所述方法包括:A second aspect of the embodiments of the present invention provides a network switching method, where the method includes:
检测所述终端的4G业务是否被激活;Detecting whether the 4G service of the terminal is activated;
若检测到所述4G业务被激活,则确定所述终端无法使用长期演进LTE网络进行数据业务时,请求接入演进的高速分组EHRPD网络;或者,If it is determined that the 4G service is activated, determining that the terminal cannot use the Long Term Evolution (LTE) network for data service, requesting access to the evolved high speed packet EHRPD network; or
若检测到所述4G业务没有被激活,则确定所述终端无法使用LTE网络进行数据业务时,请求接入高速分组HRPD网络。If it is detected that the 4G service is not activated, it is determined that the terminal cannot access the high speed packet HRPD network when the LTE network cannot be used for data service.
结合第二方面,在第二方面的第一中可能实现方式中,所述方法还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes:
所述检测到所述4G业务被激活之后,将终端的EHRPD网络标识修改为激活状态;或者,After detecting that the 4G service is activated, modifying the EHRPD network identifier of the terminal to an activated state; or
所述检测到所述4G业务没有被激活之后,将终端的EHRPD网络标识修改为未激活状态。After detecting that the 4G service is not activated, the EHRPD network identifier of the terminal is modified to an inactive state.
本发明实施例第三方面提供一种网络切换装置,包括:A third aspect of the embodiments of the present invention provides a network switching apparatus, including:
确定模块,用于确定终端无法使用长期演进LTE网络进行数据业务;a determining module, configured to determine that the terminal cannot use the Long Term Evolution (LTE) network for data services;
监控模块,用于监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数;a monitoring module, configured to monitor a service parameter of a data service activation failure in an evolved high-speed packet EHRPD network;
判断模块,用于判断所述业务参数是否符合第一条件;其中,所述第一条件为预设的终端退出所述EHRPD网络的条件;a determining module, configured to determine whether the service parameter meets the first condition, where the first condition is a condition that the preset terminal exits the EHRPD network;
处理模块,用于在所述判断模块判断所述业务参数符合所述第一条件时,退出所述EHRPD网络,并请求接入高速分组HRPD网络。And a processing module, configured to, when the determining module determines that the service parameter meets the first condition, exit the EHRPD network, and request to access a high-speed packet HRPD network.
结合第三方面,在第三方面的第一种可能实现方式中,若所述监控模块监控获得的所述业务参数为数据业务激活失败的次数,则所述第一条件包括终端进行数据业务激活的最大重试次数;With reference to the third aspect, in a first possible implementation manner of the third aspect, if the monitoring module monitors the obtained service parameter as the number of times the data service activation fails, the first condition includes the terminal performing data service activation. Maximum number of retries;
则所述判断模块具体用于:判断所述业务激活失败的次数是否大于所述最大重试次数;若所述业务激活失败的次数大于所述最大重试次数,则确定所述业务参数符合所述第一条件;若所述业务激活失败的次数不大于所述最大重试次数,则确定所述业务参数不符合所述第一条件。The determining module is specifically configured to: determine whether the number of times the service activation failure is greater than the maximum number of retries; if the number of times the service activation fails is greater than the maximum number of retries, determine that the service parameter meets the Determining the first condition; if the number of times the service activation fails is not greater than the maximum number of retries, determining that the service parameter does not meet the first condition.
结合第三方面,在第三方面的第二种可能实现方式中,若所述监控模块监控获得的所述业务参数为数据业务激活失败的原因值;则所述第一条件包括所述终端在所述EHRPD网络下进行数据业务激活失败的原因为永久性失败; With reference to the third aspect, in a second possible implementation manner of the third aspect, if the monitoring module monitors that the obtained service parameter is a cause value of data service activation failure, the first condition includes that the terminal is The reason for the failure of data service activation under the EHRPD network is a permanent failure;
则所述判断模块具体用于:判断所述数据业务激活失败的原因值是否为所述永久性失败;若所述数据业务激活失败的原因值为所述永久性失败,则确定所述业务参数符合所述第一条件;若所述数据业务激活失败的原因值不是所述永久性失败,则确定所述业务参数不符合所述第一条件。The determining module is specifically configured to: determine whether the cause value of the data service activation failure is the permanent failure; and if the cause of the data service activation failure is the permanent failure, determine the service parameter. And satisfying the first condition; if the cause value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
结合第三方面的第一种可能实现方式,在第三方面的第三种可能实现方式中,所述监控模块还用于获取所述数据业务激活失败的原因值;In conjunction with the first possible implementation 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.
所述判断模块还用于判断所述数据业务激活失败的原因值是否符合第二条件;所述第二条件为所述终端进行数据业务激活失败的原因为网络失败,且当前网络为所述EHRPD网络;若所述数据业务激活失败的原因值不符合所述第二条件,则将上一次的数据业务激活失败的次数清零;若所述数据业务激活失败的原因值符合所述第二条件,则将上一次的数据业务激活失败的次数加1。The determining module is further configured to determine whether the cause value of the data service activation failure meets the second condition; the second condition is that the terminal fails to perform data service activation because the network fails, and the current network is the EHRPD a network; if the cause value of the data service activation failure does not meet the second condition, the number of times the previous data service activation failure is cleared; if the reason for the data service activation failure meets the second condition , then increments the number of failed data service activations by one.
结合第三方面,在第三方面的第四种可能实现方式中,所述判断模块还用于根据所述数据业务激活失败的原因值,判断是否需要重启处理器;若需要重启所述处理器,则重启所述处理器;或者,With reference to the third aspect, in a fourth possible implementation manner of the third aspect, the determining module is further configured to: determine, according to the cause value of the data service activation failure, whether to restart the processor; if the processor needs to be restarted Restarting the processor; or,
若不需要重启所述处理器,则所述判断模块判断所述终端对应的接入点的数据类型是否符合预设数据类型;若所述接入点的数据类型符合所述预设数据类型,则所述判断模块执行所述判断所述业务参数是否符合第一条件这一步骤;或者,若所述接入点的数据类型不符合所述预设数据类型,则触发所述处理模块进行数据业务激活。If the processor does not need to be restarted, the determining module 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 meets the preset data type, The determining module performs the step of determining whether the service parameter meets the first condition; or if the data type of the access point does not meet the preset data type, triggering the processing module to perform data Business activation.
结合第三方面、第三方面的第一种至第三方面的第四种任意一种可能的实现方式,在第三方面的第五种可能实现方式中,所述处理模块还用于若成功注册长期演进LTE网络,则检查所述终端的EHRPD网络标识是否为激活状态;若所述终端的EHRPD网络标识为激活状态,则所述终端在退出所述LTE网络后请求接入所述EHRPD网络。With reference to the third aspect, any one 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 succeed If the EHRPD network identifier of the terminal is an active state, if the EHRPD network identifier of the terminal is an active state, the terminal requests to access the EHRPD network after exiting the LTE network. .
本发明实施例第四方面提供一种网络切换装置,包括:A fourth aspect of the embodiments of the present invention provides a network switching apparatus, including:
检测模块,用于检测所述终端的4G业务是否被激活;a detecting module, configured to detect whether the 4G service of the terminal is activated;
处理模块,用于若所述检测模块检测到所述4G业务被激活,则确定所述终端无法使用长期演进LTE网络进行数据业务时,请求接入演进的高速分组EHRPD网络;或者,若所述检测模块检测到所述4G业务没有被激活,则 确定所述终端无法使用LTE网络进行数据业务时,请求接入高速分组HRPD网络。a processing module, if the detecting module detects that the 4G service is activated, and determines that the terminal cannot use the long term evolution LTE network to perform data service, requesting access to the evolved high speed packet EHRPD network; or, if The detecting module detects that the 4G service is not activated, then When it is determined that the terminal cannot use the LTE network for data service, request to access the high speed packet HRPD network.
结合第四方面,在第四方面的第一种可能实现方式中,所述检测模块检测到所述4G业务被激活之后,所述处理模块将终端的EHRPD网络标识修改为激活状态;或者,With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, after the detecting module detects that the 4G service is activated, the processing module modifies an EHRPD network identifier of the terminal to an activated state; or
所述检测模块检测到所述4G业务没有被激活之后,所述处理模块将终端的EHRPD网络标识修改为未激活状态。After the detecting module detects that the 4G service is not activated, the processing module modifies the EHRPD network identifier of the terminal to an inactive state.
本发明实施例第五方面提供一种终端,包括:处理器和存储器;A fifth aspect of the embodiments of the present invention provides a terminal, including: a processor and a memory;
所述存储器用于存储执行指令,当所述终端运行时,所述处理器与所述存储器之间通信,所述处理器调用所述执行指令,用于执行以下操作:The memory is configured to store an execution instruction, when the terminal is running, the processor is in communication with the memory, and the processor invokes the execution instruction to perform the following operations:
确定终端无法使用长期演进LTE网络进行数据业务;Determining that the terminal cannot use the Long Term Evolution (LTE) network for data services;
监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数;所述业务参数包括数据业务激活失败的次数或数据业务激活失败的原因值;Monitoring a service parameter of the data service activation failure in the evolved high-speed packet EHRPD network; the service parameter includes a number of times the data service activation fails or a reason value of the data service activation failure;
判断所述业务参数是否符合第一条件;其中,所述第一条件为预设的终端退出所述EHRPD网络的条件;Determining whether the service parameter meets the first condition; wherein the first condition is a condition that the preset terminal exits the EHRPD network;
若所述业务参数符合所述第一条件,则退出所述EHRPD网络,并请求接入高速分组HRPD网络。If the service parameter meets the first condition, exiting the EHRPD network and requesting access to 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 the number of times the data service is activated, the first condition includes a maximum number of retries for the terminal to perform data service activation; The processor is specifically configured to:
判断所述业务激活失败的次数是否大于所述最大重试次数;Determining whether the number of times the service activation fails is greater than the maximum number of retries;
若所述业务激活失败的次数大于所述最大重试次数,则确定所述业务参数符合所述第一条件;若所述业务激活失败的次数不大于所述最大重试次数,则确定所述业务参数不符合所述第一条件。If the number of times the service activation fails is greater than the maximum number of retries, determining that the service parameter meets the first condition; and if the number of service activation failures is not greater than the maximum number of retries, determining the The business parameters do not meet the first condition.
结合第五方面,在第五方面的第二种可能实现方式中,若所述业务参数为数据业务激活失败的原因值;则所述第一条件包括所述终端在所述EHRPD网络下进行数据业务激活失败的原因为永久性失败;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 the data service activation failure, the first condition includes the terminal performing data in the EHRPD network The reason for the failure of business activation is 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 cause of the data service activation failure is the permanent failure, determining that the service parameter is consistent The first condition; if the reason for the failure of the data service activation is not In the case of a permanent failure, it is determined that the service parameter does not comply with the first condition.
结合第五方面的第一种可能实现方式,在第五方面的第三种可能实现方式中,所述处理器还用于获取所述数据业务激活失败的原因值;并判断所述数据业务激活失败的原因值是否符合第二条件;所述第二条件为所述终端进行数据业务激活失败的原因为网络失败,且当前网络为所述EHRPD网络;若所述数据业务激活失败的原因值不符合所述第二条件,则将上一次的数据业务激活失败的次数清零;若所述数据业务激活失败的原因值符合所述第二条件,则将上一次的数据业务激活失败的次数加1。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 acquire a cause value of the data service activation failure, and determine that the data service is activated. Whether the failure cause value meets the second condition; the second condition is that the terminal fails to perform data service activation because the network fails, and the current network is the EHRPD network; if the reason for the data service activation failure is not If the second condition is met, the number of times the data service activation failure is cleared is cleared; if the reason value of the data service activation failure meets the second condition, the number of times the previous data service activation fails is added. 1.
结合第五方面,在第五方面的第四种可能实现方式中,所述处理器还用于根据所述数据业务激活失败的原因值,判断是否需要重启处理器;若需要重启所述处理器,则重启所述处理器;或者,With reference to the fifth aspect, in a fourth possible implementation manner of the fifth aspect, the processor is further configured to determine, according to the cause value of the data service activation failure, whether to restart the processor; if the processor needs to be restarted Restarting the processor; or,
若不需要重启所述处理器,则所述处理器判断所述终端对应的接入点的数据类型是否符合预设数据类型;若所述接入点的数据类型符合所述预设数据类型,则执行所述判断所述业务参数是否符合第一条件这一步骤;若所述接入点的数据类型不符合所述预设数据类型,则进行数据业务激活。If the processor does not need to be restarted, the processor determines whether the data type of the access point corresponding to the terminal matches the preset data type; if the data type of the access point matches the preset data type, And performing the step of determining whether the service parameter meets the first condition; if the data type of the access point does not meet the preset data type, performing data service activation.
结合第五方面、第五方面的第一种至第五方面的第四种任意一种可能的实现方式,在第五方面的第五种可能实现方式中,所述处理器还用于若成功注册长期演进LTE网络,则检查所述终端的EHRPD网络标识是否为激活状态;若所述终端的EHRPD网络标识为激活状态,则所述终端在退出所述LTE网络后请求接入所述EHRPD网络。With reference to the fifth aspect, any one of the first to fifth aspects of the fifth aspect, in a fifth possible implementation manner of the fifth aspect, the processor is further used to succeed If the EHRPD network identifier of the terminal is an active state, if the EHRPD network identifier of the terminal is an active state, the terminal requests to access the EHRPD network after exiting the LTE network. .
本发明实施例第六方面提供一种终端,包括处理器和存储器;A sixth aspect of the embodiments of the present invention provides a terminal, including a processor and a memory;
所述存储器用于存储执行指令,当所述终端运行时,所述处理器与所述存储器之间通信,所述处理器调用所述执行指令,用于执行以下操作:The memory is configured to store an execution instruction, when the terminal is running, the processor is in communication with the memory, and the processor invokes the execution instruction to perform the following operations:
检测所述终端的4G业务是否被激活;Detecting whether the 4G service of the terminal is activated;
若检测到所述4G业务被激活,则确定所述终端无法使用长期演进LTE网络进行数据业务时,请求接入演进的高速分组EHRPD网络;或者,If it is determined that the 4G service is activated, determining that the terminal cannot use the Long Term Evolution (LTE) network for data service, requesting access to the evolved high speed packet EHRPD network; or
若检测到所述4G业务没有被激活,则确定所述终端无法使用LTE网络进行数据业务时,请求接入高速分组HRPD网络。If it is detected that the 4G service is not activated, it is determined that the terminal cannot access the high speed packet HRPD network when the LTE network cannot be used for data service.
结合第六方面,在第六方面的第一种可能实现方式中,所述处理器还用于检测到所述4G业务被激活之后,将终端的EHRPD网络标识修改为激活状 态;或者,检测到所述4G业务没有被激活之后,将终端的EHRPD网络标识修改为未激活状态。With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the processor is further configured to: after detecting that the 4G service is activated, modify an EHRPD network identifier of the terminal to be activated. Or; after detecting that the 4G service is not activated, the terminal's EHRPD network identifier is modified to an inactive state.
本实施例提供的网络切换方法、装置和终端,确定终端无法使用LTE网络进行数据业务时,通过终端监控在EHRPD网络下的数据业务激活失败的业务参数,当业务参数符合第一条件时,终端自动退出EHRPD网络,然后搜索并请求接入HRPD网络,在HRPD网络下使用数据业务,使得终端在插入4G卡却无法接入4G网络时,可以快速回落到HRPD网络上进行数据业务,有效提升了终端的性能。The network switching method, device, and terminal provided by the embodiment, when determining that the terminal cannot use the LTE network for the data service, the terminal monitors the service parameter of the data service activation failure in the EHRPD network, and when the service parameter meets the first condition, the terminal Automatically exit the EHRPD network, then search for and request access to the HRPD network, and use the data service under the HRPD network, so that when the terminal inserts the 4G card but cannot access the 4G network, the terminal can quickly fall back to the HRPD network for data services, effectively improving the data service. Terminal performance.
附图说明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 embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明实施例一提供的网络切换方法的流程图;FIG. 1 is a flowchart of a network switching method according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的网络切换方法的流程图;2 is a flowchart of a network switching method according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的网络切换方法的流程图;3 is a flowchart of a network switching method according to Embodiment 3 of the present invention;
图4为本发明实施例四提供的网络切换方法的流程图;4 is a flowchart of a network switching method according to Embodiment 4 of the present invention;
图5为本发明实施例五提供的网络切换方法的流程图;FIG. 5 is a flowchart of a network switching method according to Embodiment 5 of the present invention;
图6为本发明实施例六提供的网络切换装置结构示意图;FIG. 6 is a schematic structural diagram of a network switching apparatus according to Embodiment 6 of the present invention;
图7为本发明实施例八提供的网络切换装置结构示意图;FIG. 7 is a schematic structural diagram of a network switching apparatus according to Embodiment 8 of the present invention;
图8为本发明实施例九提供的终端的结构示意图。FIG. 8 is a schematic structural diagram of a terminal according to Embodiment 9 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供的网络切换方法,应用于终端,例如,手机、笔记本 电脑、平板电脑、手持终端等,适用于终端从一个网络切换到另一个网络的场景下,例如,手机从3G网络切换到4G网络的场景,或者,手机未成功接入4G网络时,可切换到其它网络等场景。The network switching method provided by the embodiment of the present invention is applied to a terminal, for example, a mobile phone or a notebook. Computers, tablets, handheld terminals, etc., are suitable for scenarios where the terminal switches from one network to another, for example, when the mobile phone switches from a 3G network to a 4G network, or when the mobile phone does not successfully access the 4G network, it can be switched. Go to other networks and other scenarios.
图1为本发明实施例一提供的网络切换方法的流程图。如图1所示,该方法包括以下步骤:FIG. 1 is a flowchart of a network switching method according to Embodiment 1 of the present invention. As shown in Figure 1, the method includes the following steps:
步骤101、确定终端无法使用LTE网络进行数据业务。Step 101: Determine that the terminal cannot use the LTE network for data services.
在本实施例中,4G网络可以采用的是LTE技术,当用户没有开通4G业务,或者终端所在的当前服务小区没有被LTE网络覆盖,或者LTE网络出现故障无法进行数据业务等,在这些场景下,终端都无法使用LTE网络进行数据业务。In this embodiment, the 4G network may adopt the LTE technology. When the user does not open the 4G service, or the current serving cell where the terminal is located is not covered by the LTE network, or the LTE network fails, data services cannot be performed, etc., in these scenarios. The terminal cannot use the LTE network for data services.
步骤102、监控在EHRPD网络下的数据业务激活失败的业务参数。Step 102: Monitor service parameters of data service activation failure under the EHRPD network.
其中,业务参数包括数据业务激活失败的次数或数据业务激活失败的原因值。The service parameters include the number of times the data service activation fails or the reason why the data service activation fails.
在本实施例中,终端插上4G卡之后,却无法接入4G网络时,终端优先注册EHRPD网络,当终端注册EHRPD网络成功后,终端在EHRPD网络下进行数据业务激活,并监控终端在EHRPD网络下数据业务激活失败的次数或者数据业务激活失败的原因值,可以在终端中设置一个静态计数器来统计数据业务激活失败的次数;数据业务激活失败的原因值为数据业务激活失败的原因,例如,由于EHRPD网络不稳定造成的失败,网络连接不可用造成的失败等原因,终端可通过终端的处理器来获取数据业务激活失败的原因值。In this embodiment, after the terminal is plugged into the 4G card but cannot access the 4G network, the terminal preferentially registers the EHRPD network. After the terminal registers the EHRPD network successfully, the terminal performs data service activation under the EHRPD network, and monitors the terminal in the EHRPD. The number of times the data service fails to be activated in the network or the cause of the failure of the data service activation. You can set a static counter in the terminal to count the number of failed data service activations. The cause of data service activation failure is the cause of data service activation failure. The terminal may obtain the cause value of the failure of the data service activation through the processor of the terminal due to the failure caused by the instability of the EHRPD network and the failure caused by the unavailable network connection.
步骤103、判断业务参数是否符合第一条件,若业务参数符合第一条件,则执行步骤104,若业务参数不符合第一条件,则执行步骤105。In step 103, it is determined whether the service parameter meets the first condition. If the service parameter meets the first condition, step 104 is performed. If the service parameter does not meet the first condition, step 105 is performed.
其中,第一条件为预设的终端退出EHRPD网络的条件。The first condition is a condition that the preset terminal exits the EHRPD network.
在本实施例中,第一条件为预设的终端退出EHRPD网络的条件,第一条件可以根据业务参数的具体内容来设定,例如,若业务参数为数据业务激活失败的次数时,可将第一条件设置为数据业务激活的最大重复次数,当数据业务激活失败的次数超过最大重复次数时,则业务参数符合第一条件,当数据业务激活失败的次数小于或者等于最大重复次数时,业务参数不符合第一条件。In this embodiment, the first condition is a condition that the preset terminal exits the EHRPD network, and the first condition may be set according to the specific content of the service parameter. For example, if the service parameter is the number of times the data service fails to be activated, The first condition is set to the maximum number of repetitions of the data service activation. When the number of data service activation failures exceeds the maximum number of repetitions, the service parameter meets the first condition. When the number of data service activation failures is less than or equal to the maximum number of repetitions, the service is performed. The parameter does not meet the first condition.
步骤104、退出EHRPD网络,并请求接入HRPD网络。 Step 104: Exit the EHRPD network and request access to the HRPD network.
在本实施例中,当业务参数符合第一条件时,终端自动退出EHRPD网络,然后搜索并请求接入HRPD网络,若接入HRPD网络成功,则在HRPD网络下使用数据业务。可以在处理器中设置一个全局变量来控制终端接入或者退出EHRPD网络。In this embodiment, when the service parameter meets the first condition, the terminal automatically exits the EHRPD network, and then searches for and requests access to the HRPD network. If the HRPD network is successfully accessed, the data service is used under the HRPD network. A global variable can be set in the processor to control the terminal to access or exit the EHRPD network.
步骤105、进行数据业务激活。Step 105: Perform data service activation.
在本实施例中,当业务参数不符合第一条件时,终端重新进行数据业务激活,若激活失败,则继续执行步骤101。In this embodiment, when the service parameter does not meet the first condition, the terminal re-activates the data service. If the activation fails, step 101 is continued.
现有技术中,当终端办理了4G卡但无法接入4G网络时,终端优先注册EHRPD网络,但是由于运营商的网络配置和部署并不完善,EHRPD网络存在诸多问题,例如,数据业务无法激活,辅助全球卫星定位系统(Assisted Global Positioning System,简称:AGPS)定位慢,数据业务容易中断等原因,使得终端在注册EHRPD网络之后,仍然无法在EHRPD网络下使用数据业务,但是,终端又不能关闭EHRPD网络切换到其它网络,从而导致终端插了的4G卡之后,无论终端的4G开关打开或者关闭,都无法进行数据业务,降低了终端的性能。在本实施例中,确定终端无法使用LTE网络进行数据业务时,由终端监控在EHRPD网络下数据业务激活失败的业务参数,当业务参数符合第一条件时,终端自动退出EHRPD网络,然后搜索并请求接入HRPD网络,在HRPD网络下使用数据业务,由于HRPD网络比较稳定,因此,终端可以在HRPD网络下进行数据业务,使得终端在插入4G卡却无法接入4G网络时,可以快速回落到HRPD网络上进行数据业务,有效提升了终端的性能。In the prior art, when the terminal handles the 4G card but cannot access the 4G network, the terminal preferentially registers with the EHRPD network. However, due to the incomplete network configuration and deployment of the operator, the EHRPD network has many problems, for example, the data service cannot be activated. The Assisted Global Positioning System (AGPS) is slow to locate and the data service is easily interrupted. Therefore, after registering the EHRPD network, the terminal still cannot use the data service under the EHRPD network. However, the terminal cannot be closed. After the EHRPD network switches to another network, the 4G card inserted in the terminal causes the data service to be performed regardless of whether the 4G switch of the terminal is turned on or off, which reduces the performance of the terminal. In this embodiment, when it is determined that the terminal cannot use the LTE network to perform data services, the terminal monitors the service parameters of the data service activation failure in the EHRPD network. When the service parameters meet the first condition, the terminal automatically exits the EHRPD network, and then searches for Requesting access to the HRPD network and using the data service in the HRPD network. Since the HRPD network is relatively stable, the terminal can perform data services under the HRPD network, so that when the terminal inserts the 4G card but cannot access the 4G network, the terminal can quickly fall back to The data service is performed on the HRPD network, which effectively improves the performance of the terminal.
本实施例提供的网络切换方法,确定终端无法使用LTE网络进行数据业务时,通过终端监控在EHRPD网络下的数据业务激活失败的业务参数,当业务参数符合第一条件时,终端自动退出EHRPD网络,然后搜索并请求接入HRPD网络,在HRPD网络下使用数据业务,使得终端在插入4G卡却无法接入4G网络时,可以快速回落到HRPD网络上进行数据业务,有效提升了终端的性能。The network switching method provided in this embodiment determines that the terminal cannot use the LTE network to perform the data service, and the terminal monitors the service parameter of the data service activation failure in the EHRPD network. When the service parameter meets the first condition, the terminal automatically exits the EHRPD network. Then, it searches for and requests access to the HRPD network, and uses the data service under the HRPD network, so that when the terminal inserts the 4G card but cannot access the 4G network, the terminal can quickly fall back to the HRPD network for data services, thereby effectively improving the performance of the terminal.
图2为本发明实施例二提供的网络切换方法的流程图。在上述图1所述实施例一的基础上,如图2所示,若业务参数为数据业务激活失败的次数,则第一条件包括终端进行数据业务激活的最大重试次数;则“判断业务参数是否符合第一条件”这一步骤的实现方式具体包括以下步骤: FIG. 2 is a flowchart of a network switching method according to Embodiment 2 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 times the data service fails to be activated, the first condition includes the maximum number of retries for the terminal to perform data service activation; The implementation of the step of whether the parameter meets the first condition specifically includes the following steps:
步骤205、判断业务激活失败的次数是否大于最大重试次数,若是,即业务激活失败的次数大于最大重试次数则执行步骤206,若否,即业务激活失败的次数不大于最大重试次数,则执行步骤207。Step 205: Determine whether the number of service activation failures is greater than the maximum number of retries. If yes, that is, the number of service activation failures is greater than the maximum number of retries, step 206 is performed. If not, the number of service activation failures is not greater than the maximum number of retries. Then step 207 is performed.
在本实施例中,当终端进行数据业务激活失败后,会重新进行数据业务激活,预先设定一个终端进行数据业务激活的最大重试次数,最大重试次数既要保证在偶然的激活失败的情况下终端正常重试,又要确保终端在确定EHRPD网络出现网络故障时,尽快的退出EHRPD网络,以使终端尽快接入HRPD网络,通常情况下,最大重试次数设置为2次或者3次,但本发明中并不以此为限,本领域技术人员可根据实情情况来设置最大重试次数。In this embodiment, after the terminal fails to activate the data service, the data service is reactivated, and the maximum number of retries for the data service activation by one terminal is preset, and the maximum number of retries is guaranteed to be accidental. In this case, the terminal retry normally, and ensure that the terminal exits the EHRPD network as soon as possible after determining that the EHRPD network has a network fault, so that the terminal accesses the HRPD network as soon as possible. Generally, the maximum number of retries is set to 2 or 3 times. However, the present invention is not limited thereto, and those skilled in the art can set the maximum number of retries according to the actual situation.
步骤206、确定业务参数符合第一条件。Step 206: Determine 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 parameters meet the first condition.
步骤207、确定业务参数不符合第一条件。Step 207: Determine 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 parameters do not meet the first condition.
可选地,在本实施例中,如图2所示,步骤205之前还包括以下步骤:Optionally, in this embodiment, as shown in FIG. 2, before step 205, the following steps are further included:
步骤201、获取数据业务激活失败的原因值。Step 201: Obtain a cause value of failure of data service activation.
在本实施例中,终端可以通过处理器来获取数据业务失败的原因值。In this embodiment, the terminal may obtain a cause value of the data service failure by using the processor.
步骤202、判断数据业务激活失败的原因值是否符合第二条件;若否,即数据业务激活失败的原因值不符合第二条件,则执行步骤203,若是,即数据业务激活失败的原因值符合第二条件,则执行步骤204。Step 202: Determine whether the cause value of the data service activation failure meets the second condition; if not, that is, the reason value of the data service activation failure does not meet the second condition, perform step 203, and if yes, the cause value of the data service activation failure is met. In the second condition, step 204 is performed.
其中,第二条件为终端进行数据业务激活失败的原因为网络失败,且当前网络为EHRPD网络。The second condition is that the terminal fails to activate the data service because the network fails, and the current network is an EHRPD network.
在本实施例中,网络失败指的是由于网络故障造成的数据激活失败,例如,网络信号太弱,或者,网络信号中断等,使得终端无法进行数据业务。若数据业务激活失败的原因值为网络失败,并且,终端当前使用的网络为EHRPD网络,则确定数据业务激活失败的原因值符合第二条件;若数据业务激活失败的原因值不是网络失败,或者,当前网络不是EHRPD网络,则确定数据业务激活失败的原因值不符合第二条件。In this embodiment, the network failure refers to data activation failure due to network failure, for example, the network signal is too weak, or the network signal is interrupted, so that the terminal cannot perform data service. If the cause of the data service activation failure is a network failure, and the network currently used by the terminal is an EHRPD network, the cause value of the data service activation failure is determined to meet the second condition; if the reason for the data service activation failure is not the network failure, or If the current network is not an EHRPD network, the reason for determining that the data service activation fails does not meet the second condition.
步骤203、将上一次的数据业务激活失败的次数清零。 Step 203: Clear the number of times the last data service activation failed.
在本实施例中,在EHRPD网络下,每一次数据业务激活失败后都会统计数据业务激活失败的次数,若确定数据业务激活失败的原因值不符合第二条件,则将上一次记录的数据业务激活失败的次数清零。In this embodiment, in the EHRPD network, the number of times the data service activation fails after each data service activation failure is determined. If the reason for the failure of the data service activation fails to meet the second condition, the data service recorded last time is recorded. The number of activation failures is cleared.
步骤204、则上一次的将数据业务激活失败的次数加1。In step 204, the number of times the data service activation failed is incremented by one.
在本实施例中,若确定数据业务激活失败的原因值符合第二条件,即造成数据业务激活失败的原因为网络失败,并且,终端所使用的当前网络为EHRPD网络,则将上一次记录的数据业务激活失败的次数加1。In this embodiment, if it is determined that the cause value of the data service activation failure meets the second condition, that is, the reason that the data service activation fails is the network failure, and the current network used by the terminal is the EHRPD network, the last record is The number of data service activation failures is increased by one.
需要说明的是,本实施例中的其它步骤和实施例一中的步骤相同,此处不再赘述。It should be noted that the other steps in this embodiment are the same as those in the first embodiment, and details are not described herein again.
本实施例提供的网络切换方法,若业务参数为数据业务激活失败的次数,则第一条件包括终端进行数据业务激活的最大重试次数,则判断业务激活失败的次数是否大于最大重试次数,若是,则确定业务参数符合第一条件,则退出EHRPD网络并请求接入HRPD网络;若否,则确定业务参数不符合第一条件,则进行数据业务激活,当业务参数符合第一条件时,终端自动退出EHRPD网络,然后搜索并请求接入HRPD网络,在HRPD网络下使用数据业务,由于HRPD网络比较稳定,因此,终端可以在HRPD网络下进行数据业务,使得终端在插入4G卡却无法接入4G网络时,可以快速回落到HRPD网络上进行数据业务,有效提升了终端的性能。并且,本实施例中,在判断业务激活失败的次数是否大于最大重试次数之前,还包括获取数据业务激活失败的原因值,判断数据业务激活失败的原因值是否符合第二条件,若符合,则将数据业务激活失败的次数加1,若不符合,则数据业务激活失败的次数清零,只有在数据业务激活失败的原因值为网络失败,且当前网络为EHRPD网络时,才将数据业务激活失败的次数加1,其它情况下将数据业务激活失败的原因清零,避免了由于一些非网络故障原因造成的数据业务激活失败的情况下,盲目的关闭EHRPD网络的问题,提高了终端的性能。In the network switching method provided in this embodiment, if the service parameter is the number of times the data service is activated, the first condition includes the maximum number of retries for the data service activation, and the number of times the service activation failure is greater than the maximum number of retries. If yes, determining that the service parameter meets the first condition, exiting the EHRPD network and requesting access to the HRPD network; if not, determining that the service parameter does not meet the first condition, then performing data service activation, when the service parameter meets the first condition, The terminal automatically quits the EHRPD network, then searches for and requests access to the HRPD network, and uses the data service under the HRPD network. Since the HRPD network is relatively stable, the terminal can perform data services under the HRPD network, so that the terminal cannot connect after inserting the 4G card. When entering a 4G network, you can quickly fall back to the HRPD network for data services, which effectively improves the performance of the terminal. In addition, in this embodiment, before determining whether the number of times the service activation failure is greater than the maximum number of retries, the method further includes: obtaining a cause value of the data service activation failure, and determining whether the cause value of the data service activation failure meets the second condition, and if yes, The number of times the data service activation fails is increased by one. If not, the number of data service activation failures is cleared. The data service is only valid when the cause of the data service activation failure is the network failure and the current network is the EHRPD network. The number of activation failures is increased by 1. In other cases, the reason for the failure of the data service activation is cleared, and the problem of blindly shutting down the EHRPD network and improving the terminal is avoided when the data service activation failure occurs due to some non-network failure reasons. performance.
图3为本发明实施例三提供的网络切换方法的流程图。在上述图1所示实施例一的基础上,如图3所示,若业务参数为数据业务激活失败的原因值;则第一条件包括终端在EHRPD网络下进行数据业务激活失败的原因为永久性失败;则“判断业务参数是否符合第一条件”这一步骤的具体实现方式包括以下步骤: FIG. 3 is a flowchart of a network switching method according to Embodiment 3 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 the cause value of the data service activation failure, the first condition includes that the reason for the terminal to fail the data service activation under the EHRPD network is permanent. Sexual failure; the specific implementation of the step of "determining whether the service parameters meet the first condition" includes the following steps:
步骤301、判断数据业务激活失败的原因值是否为永久性失败,若是,即数据业务激活失败的原因值为永久性失败,则执行步骤302,若否,即数据业务激活失败的原因值不是永久性失败,则执行步骤303。Step 301: Determine whether the cause value of the data service activation failure is a permanent failure. If the value of the data service activation failure is a permanent failure, go to step 302. If no, the cause of the data service activation failure is not permanent. If the sex fails, step 303 is performed.
在本实施例中,永久性失败指的是EHRPD网络出现故障,终端无论尝试多少次数据业务激活都无法使用EHRPD网络下的数据业务,例如,网络侧设备出现故障使得整个网络信号中断,并且在短时间内无法恢复。In this embodiment, the permanent failure refers to the failure of the EHRPD network, and the terminal cannot use the data service under the EHRPD network regardless of how many data service activations are attempted. For example, the failure of the network side device causes the entire network signal to be interrupted, and Can't recover in a short time.
步骤302、则确定业务参数符合第一条件。Step 302: Determine 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.
步骤303、则确定业务参数不符合第一条件。Step 303: Determine 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 the other steps in this embodiment are the same as those in the first embodiment, and details are not described herein again.
本实施例提供的网络切换方法,若业务参数为数据业务激活失败的原因值;则第一条件包括终端在EHRPD网络下进行数据业务激活失败的原因为永久性失败,判断数据业务激活失败的原因值是否为永久性失败,若是,则确定业务参数符合第一条件,终端退出EHRPD网络并请求接入到HRPD网络;若否,则确定业务参数不符合第一条件,继续在EHRPD网络进行数据业务激活,当业务参数符合第一条件匹配时,终端自动退出EHRPD网络,然后搜索并请求接入HRPD网络,在HRPD网络下使用数据业务,由于HRPD网络比较稳定,因此,终端可以在HRPD网络下进行数据业务,使得终端在插入4G卡却无法接入4G网络时,可以快速回落到HRPD网络上进行数据业务,有效提升了终端的性能。The network switching method provided in this embodiment, if the service parameter is the cause value of the data service activation failure; the first condition includes the reason that the terminal fails to perform the data service activation in the EHRPD network is a permanent failure, and the reason for the data service activation failure is determined. Whether the value is a permanent failure. If yes, it is determined that the service parameter meets the first condition, the terminal exits the EHRPD network and requests access to the HRPD network; if not, it determines that the service parameter does not meet the first condition, and continues to perform data service on the EHRPD network. When the service parameters meet the first condition match, the terminal automatically exits the EHRPD network, then searches for and requests access to the HRPD network, and uses the data service under the HRPD network. Since the HRPD network is relatively stable, the terminal can perform the HRPD network. The data service enables the terminal to quickly fall back to the HRPD network for data services when the 4G card is inserted but cannot access the 4G network, which effectively improves the performance of the terminal.
图4为本发明实施例四提供的网络切换方法的流程图。在上述实施例一的基础上,在步骤“监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数”之后,如图4所示,该方法还包括以下步骤:FIG. 4 is a flowchart of a network switching method according to Embodiment 4 of the present invention. On the basis of the foregoing embodiment 1, after the step of "monitoring the service parameters of the data service activation failure in the evolved high-speed packet EHRPD network", as shown in FIG. 4, the method further includes the following steps:
步骤401、根据数据业务激活失败的原因值,判断是否需要重启处理器,若是,即需要重启处理器,则执行步骤402;若否,即不需要重启处理器,则执行步骤403。 Step 401: Determine, according to the cause value of the data service activation failure, whether the processor needs to be restarted. If yes, if the processor needs to be restarted, go to step 402; if no, if the processor does not need to be restarted, go to step 403.
在本实施例中,终端根据数据业务激活失败的原因值,判断是否需要重启处理器,例如,若该原因值是由于终端的处理器出现故障而引起的数据业务激活失败,则需要重启处理器,若该原因值不是由于终端的处理器出现故障引起的数据激活失败,则不需要重启处理器。In this embodiment, the terminal determines whether it is necessary to restart the processor according to the cause value of the data service activation failure. For example, if the reason value is due to the failure of the processor of the terminal, the data service activation fails, the processor needs to be restarted. If the cause value is not due to data failure of the terminal's processor failure, there is no need to restart the processor.
步骤402、重启处理器。Step 402: Restart the processor.
在本实施例中,若数据业务激活失败是由终端的处理器出现故障引起的,则重启处理器,重启处理器之后,重新尝试进行数据业务激活。In this embodiment, if the data service activation failure is caused by a failure of the processor of the terminal, the processor is restarted, and after restarting the processor, the data service activation is retried.
步骤403、判断终端对应的接入点的数据类型是否符合预设数据类型,若是,即接入点的数据类型符合预设数据类型,则执行步骤404;或者,若否,即接入点的数据类型不符合预设数据类型,则执行步骤405。Step 403: Determine whether the data type of the access point corresponding to the terminal meets the preset data type. If yes, that is, the data type of the access point conforms to the preset data type, perform step 404; or, if not, the access point If the data type does not match the preset data type, step 405 is performed.
在本实施例中,预设数据类型包括接入点常用的多个数据类型,例如,系统默认(DEFAULT)类型、多媒体消息服务(Multimedia Message Service,简称MMS)类型等常用数据类型。当不需要重启处理器时,判断终端对应的接入点的数据类型,当接入点的数据类型为预设数据类型中的任意一种类型时,则该接入点的数据类型符合预设数据类型,当接入点的数据类型不是预设数据类型中的任意一种类型时,则该接入点的数据类型不符合预设数据类型。例如,若预设数据类型包括DEFAULT和MMS,当接入点的数据类型为DEFAULT或者MMS时,则符合预设数据类型,继续判断是否要退出EHRPD网络,当接入点的数据类型不是DEFAULT或者MMS时,则不符合预设数据类型,保持正常的处理逻辑步骤,即重新尝试数据业务激活,当数据业务激活失败后,继续监控数据业务激活失败的次数和原因值。In this embodiment, the preset data type includes multiple data types commonly used by the access point, for example, a system default (DEFAULT) type, a multimedia message service (MMS) type, and the like. When the processor does not need to be restarted, the data type of the access point corresponding to the terminal is determined. When the data type of the access point is any one of the preset data types, the data type of the access point conforms to the preset. The data type. When the data type of the access point is not one of the preset data types, the data type of the access point does not match 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, it conforms to the preset data type, and continues to determine whether to exit the EHRPD network. When the data type of the access point is not DEFAULT or When the MMS is not in compliance with the preset data type, the normal processing logic step is maintained, that is, the data service activation is re-attempted. After the data service activation fails, the number of times and the cause value of the data service activation failure are continuously monitored.
步骤404、执行判断业务参数是否符合第一条件这一步骤。Step 404: Perform the step of determining whether the service parameter meets the first condition.
在本实施例中,当终端对应的接入点的数据类型符合预设数据类型时,则进一步判断业务参数是否符合第一条件,后续步骤与实施例一中的步骤相同,此处不再赘述。In this embodiment, when the data type of the access point corresponding to the terminal meets the preset data type, it is further determined whether the service parameter meets the first condition, and the subsequent steps are the same as those in the first embodiment, and details are not described herein again. .
步骤405、进行数据业务激活。Step 405: Perform data service activation.
在本实施例中,若终端对应的接入点的数据类型不符合预设数据类型时,重试尝试数据业务激活,若数据业务激活失败,则继续监控数据业务激活失败的次数和原因值;若数据业务激活成功,则使用该数据业务。In this embodiment, if the data type of the access point corresponding to the terminal does not meet the preset data type, the retry attempts to activate the data service, and if the data service fails to be activated, the number of times and the cause value of the data service activation failure are continuously monitored; If the data service is activated successfully, the data service is used.
本实施例提供的网络切换方法,终端监控在EHRPD网络下的数据业务 激活失败的业务参数之后,根据数据业务激活失败的原因值,判断是否需要重启处理器,若需要,则重启处理器,若不需要,则判断终端对应的接入点的数据类型是否符合预设数据类型,若接入点的数据类型符合预设数据类型,则执行判断业务参数是否符合第一条件这一步骤,并根据结果判断是否退出EHRPD网络,若接入点的数据类型不符合预设数据类型,则进行数据业务激活。本实施例中,对于由处理器的故障引起的数据激活失败的情况,需要重启处理器,对于由于接入点的数据类型不常用而造成数据业务激活失败的情况,重新尝试进行数据业务激活,从而避免了由于终端的处理器出现故障或者是数据类型不常用等非网络原因造成数据业务激活失败时,盲目的退出EHRPD网络这一问题,可用通过重启处理器和重新尝试数据业务激活的方法,使得终端能够在EHRPD网络下正常的使用数据业务,有效提高了终端的性能。The network switching method provided by this embodiment, the terminal monitors the data service under the EHRPD network After the failed service parameter is activated, it is determined whether the processor needs to be restarted according to the reason for the failure of the data service activation. If necessary, the processor is restarted. If not, the data type of the access point corresponding to the terminal is determined to be in accordance with the preset. Data type. If the data type of the access point meets the preset data type, perform the step of determining whether the service parameter meets the first condition, and determine whether to exit the EHRPD network according to the result, if the data type of the access point does not meet the preset Data type, then data service activation. In this embodiment, for the case where the data activation failure caused by the failure of the processor fails, the processor needs to be restarted, and the data service activation is retried for the case that the data service activation fails due to the unusual data type of the access point. Therefore, the problem of blindly exiting the EHRPD network when the data service activation fails due to the failure of the processor of the terminal or the non-network cause of the data type is not avoided, and the method of restarting the processor and retrying the data service activation may be used. The terminal can use the data service normally under the EHRPD network, which effectively improves the performance of the terminal.
优选地,在上述实施例一至实施例四任一实施例的基础上,退出EHRPD网络之后,该方法还包括:若成功注册长期演进LTE网络,则检查终端的EHRPD网络标识是否为激活状态;若终端的EHRPD网络标识为激活状态,则终端在退出LTE网络后请求接入EHRPD网络。Preferably, after the EHRPD network is exited on the basis of any one of the foregoing Embodiments 1 to 4, the method further includes: if the LTE network is successfully registered, checking whether the EHRPD network identifier of the terminal is an active state; The EHRPD network identifier of the terminal is in an active state, and the terminal requests to access the EHRPD network after exiting the LTE network.
在本实施例中,退出EHRPD网络之后,若终端需要重新搜索到LTE网络,例如,若终端的4G开关被重新开启,或者,终端重启开机,则终端开始搜索LTE网络,并在成功注册LTE网络之后,检查终端的EHRPD网络标识,该EHRPD网络标识可设置在处理器中。若EHRPD网络标识为激活状态,则终端在退出LTE网络后请求接入EHRPD网络,若EHRPD网络标识为未激活状态,则进行数据业务激活。由于在终端重新注册LTE网络之后,终端在退出LTE网络之后,可根据EHRPD网络标识的状态,选择是否接入EHRPD网络,使得数据业务激活失败时退出EHRPD网络的操作具有即时行和本次有效性,而非简单粗暴的彻底退出EHRPD网络,当终端不能在LTE网络下进行数据业务,并且,EHRPD网络恢复可用时,终端可接入EHRPD网络,正常使用数据业务,提高了终端的稳定性。In this embodiment, after exiting the EHRPD network, if the terminal needs to re-search for the LTE network, for example, if the 4G switch of the terminal is re-enabled, or the terminal restarts, the terminal starts to search for the LTE network, and successfully registers the LTE network. After that, the EHRPD network identifier of the terminal is checked, and the EHRPD network identifier can be set in the processor. If the EHRPD network identifier is in the active state, the terminal requests to access the EHRPD network after exiting the LTE network. If the EHRPD network identifier is inactive, the data service is activated. After the terminal re-registers the LTE network, after exiting the LTE network, the terminal can select whether to access the EHRPD network according to the status of the EHRPD network identifier, so that the operation of exiting the EHRPD network when the data service fails to be activated has the current line and the current validity. Instead of simply and rudely exiting the EHRPD network completely, when the terminal cannot perform data services under the LTE network, and the EHRPD network is available for recovery, the terminal can access the EHRPD network and use the data service normally, thereby improving the stability of the terminal.
图5为本发明实施例五提供的网络切换方法的流程图。如图5所示,该方法包括以下步骤:FIG. 5 is a flowchart of a network switching method according to Embodiment 5 of the present invention. As shown in FIG. 5, the method includes the following steps:
步骤501、检测终端的4G业务是否被激活。 Step 501: Detect whether the 4G service of the terminal is activated.
在本实施例中,可以在终端中设置了一个4G开关,例如,对于安卓(Android)终端,可以在系统设置项中设置一个“启用4G”的开关,控制终端是否注册4G网络,4G开关的状态包括“打开”和“关闭”两种状态,当4G开关的状态为“打开”时,终端的4G业务被激活,当4G开关的状态为“关闭”时,终端的4G业务未被激活。In this embodiment, a 4G switch can be set in the terminal. For example, for an Android terminal, a “Enable 4G” switch can be set in the system setting item to control whether the terminal registers the 4G network, and the 4G switch. The status includes two states: "on" and "off". When the status of the 4G switch is "on", the 4G service of the terminal is activated. When the status of the 4G switch is "off", the 4G service of the terminal is not activated.
步骤502、若检测到4G业务被激活,则确定终端无法使用LTE网络进行数据业务时,请求接入EHRPD网络;或者,若检测到4G业务没有被激活,则确定终端无法使用LTE网络进行数据业务时,请求接入HRPD网络。Step 502: If it is determined that the 4G service is activated, it is determined that the terminal cannot use the LTE network to perform data service, and requests to access the EHRPD network; or if it is detected that the 4G service is not activated, it is determined that the terminal cannot use the LTE network for data service. When requesting access to the HRPD network.
在本实施例中,可以将4G开关和EHRPD网络关联在一起,当检测到4G开关被打开时,即4G业务被激活,终端自无法使用LTE网络时,自动请求接入EHRPD网络;当检测到4G开关被关闭时,即4G业务未被激活,终端不再优先注册EHRPD网络,而是直接搜索和请求接入HRPD网络,在HRPD网络下使用数据业务。In this embodiment, the 4G switch and the EHRPD network may be associated together. When the 4G switch is detected to be activated, that is, the 4G service is activated, and the terminal automatically requests to access the EHRPD network when the LTE network cannot be used; When the 4G switch is disabled, that is, the 4G service is not activated, the terminal no longer preferentially registers with the EHRPD network, but directly searches for and requests access to the HRPD network, and uses the data service under the HRPD network.
本实施例提供的网络切换方法,通过终端检测4G业务是否被激活若检测到4G业务被激活,则确定终端无法使用LTE网络进行数据业务时,请求接入EHRPD网络;或者,若检测到4G业务没有被激活,则确定终端无法使用LTE网络进行数据业务时,请求接入HRPD网络,当终端4G业务被关闭时,终端不再优先注册EHRPD网络,而是直接搜索和请求接入HRPD网络,在稳定的HRPD网络下使用数据业务,提升了终端的性能。The network switching method provided in this embodiment is to detect whether the 4G service is activated. If the 4G service is activated, it is determined that the terminal cannot use the LTE network to perform data service, and requests to access the EHRPD network; or, if the 4G service is detected. If it is not activated, it is determined that the terminal cannot use the LTE network for data service, and requests to access the HRPD network. When the terminal 4G service is closed, the terminal no longer preferentially registers the EHRPD network, but directly searches for and requests access to the HRPD network. The use of data services under a stable HRPD network improves the performance of the terminal.
优选地,本实施例五中,该方法还包括:检测到4G业务被激活之后,将终端的EHRPD网络标识修改为激活状态;或者,检测到4G业务没有被激活之后,将终端的EHRPD网络标识修改为未激活状态。Preferably, in the fifth embodiment, the method further includes: after detecting that the 4G service is activated, modifying the EHRPD network identifier of the terminal to an activated state; or detecting the EHRPD network identifier of the terminal after detecting that the 4G service is not activated. Modified to inactive.
在本实施例中,EHRPD网络标识可设置在终端的处理器中,根据4G业务的激活状态修改EHRPD网络标识,以保证终端在重启、开关飞行模式或者终端更换业务卡的情况下,修改后的EHRPD网络标识依然生效。In this embodiment, the EHRPD network identifier may be set in the 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 terminal is modified, restarted, switched flight mode, or the terminal replaces the service card, and the modified The EHRPD network logo is still in effect.
图6为本发明实施例六提供的网络切换装置结构示意图。如图6所示,该装置包括监控模块11、判断模块12、处理模块13和确定模块14。其中,确定模块14用于确定终端无法使用LTE网络进行数据业务。监控模块11用于监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数。判断模块12用于判断业务参数是否符合第一条件;其中,第一条件为预设的 终端退出EHRPD网络的条件。处理模块13用于在判断模块12判断业务参数符合第一条件时,退出EHRPD网络,并请求接入HRPD网络。FIG. 6 is a schematic structural diagram of a network switching apparatus according to Embodiment 6 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 services. The monitoring module 11 is configured to monitor service parameters of data service activation failure under the evolved high speed packet EHRPD network. The determining module 12 is configured to determine whether the service parameter meets the first condition; wherein the first condition is preset The condition that the terminal exits the EHRPD network. The processing module 13 is configured to exit the EHRPD network and request access to the HRPD network when the determining module 12 determines that the service parameter meets the first condition.
本实施例的装置,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.
在上述图6所示实施例六的基础上,在本发明实施例七提供的网络切换装置中,若监控模块11监控获得的业务参数为数据业务激活失败的次数,则第一条件包括终端进行数据业务激活的最大重试次数;则判断模块12具体用于:判断业务激活失败的次数是否大于最大重试次数;若业务激活失败的次数大于最大重试次数,则确定业务参数符合第一条件;若业务激活失败的次数不大于最大重试次数,则确定业务参数不符合第一条件。On the basis of the foregoing embodiment 6 shown in FIG. 6, in the network switching apparatus provided in the seventh embodiment of the present invention, if the monitoring module 11 monitors the obtained service parameter as the number of times the data service fails to be activated, the first condition includes the terminal performing. The maximum number of retries for the data service activation; the determining module 12 is specifically configured to: determine whether the number of service activation failures is greater than the maximum number of retries; if the number of service activation failures is greater than the maximum number of retries, determine that the service parameters meet the first condition If the number of service activation failures is not greater than the maximum number of retries, it is determined that the service parameters do not meet the first condition.
监控模块11还用于获取数据业务激活失败的原因值;判断模块12还用于判断数据业务激活失败的原因值是否符合第二条件,第二条件为终端进行数据业务激活失败的原因为网络失败,且当前网络为EHRPD网络;若数据业务激活失败的原因值不符合第二条件,则将上一次的数据业务激活失败的次数清零;若数据业务激活失败的原因值符合第二条件,则将上一次的数据业务激活失败的次数加1。The monitoring module 11 is further configured to obtain a cause value of the data service activation failure; the determining module 12 is further configured to determine whether the cause value of the data service activation failure meets the second condition, and the second condition is that the terminal fails to activate the data service because the network fails. And the current network is an EHRPD network; if the reason for the failure of the data service activation does not meet the second condition, the number of times the data service activation failure is cleared is cleared; if the cause value of the data service activation failure meets the second condition, Add 1 to the number of failed data service activations.
本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
进一步地,在图6所示实施例的基础上,若监控模块11监控获得的业务参数为数据业务激活失败的原因值;则第一条件包括终端在EHRPD网络下进行数据业务激活失败的原因为永久性失败;则判断模块12具体用于:判断数据业务激活失败的原因值是否为永久性失败;若数据业务激活失败的原因值为永久性失败,则确定业务参数符合第一条件;若数据业务激活失败的原因值不是永久性失败,则确定业务参数不符合第一条件。Further, on the basis of the embodiment shown in FIG. 6, if the monitoring module 11 monitors the obtained service parameter as the cause value of the data service activation failure, the first condition includes that the terminal fails to activate the data service under the EHRPD network. If the permanent failure occurs, the determining module 12 is specifically configured to: determine whether the cause value of the data service activation failure is a permanent failure; if the cause value of the data service activation failure is a permanent failure, determine that the service parameter meets the first condition; If the cause of the service activation failure is not a permanent failure, it is determined that the service parameters do not meet the first condition.
本实施例的装置,可以用于执行图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
优选地,判断模块12还用于根据数据业务激活失败的原因值,判断是否需要重启处理器;若需要,则重启处理器;或者,若不需要重启处理器,则判断模块12判断终端对应的接入点的数据类型是否符合预设数据类型;若接入点的数据类型符合预设数据类型,则判断模块12执行判断业务参数是否符 合第一条件这一步骤;或者,若接入点的数据类型不符合预设数据类型,则触发处理模块13进行数据业务激活。Preferably, the determining module 12 is further configured to determine whether the processor needs to be restarted according to the reason value of the data service activation failure; if necessary, restart the processor; or, if the processor is not required to be restarted, the determining module 12 determines that the terminal corresponds to Whether the data type of the access point conforms to the preset data type; if the data type of the access point conforms to the preset data type, the determining module 12 performs a judgment on whether the service parameter is The first condition is combined with the step; or, if the data type of the access point does not match the preset data type, the trigger processing module 13 performs data service activation.
本实施例的装置,可以用于执行图4所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
优选地,处理模块13还用于若成功注册长期演进LTE网络,则检查终端的EHRPD网络标识是否为激活状态;若终端的EHRPD网络标识为激活状态,则终端在退出LTE网络后请求接入EHRPD网络。Preferably, the processing module 13 is further configured to: if the EHRPD network identifier of the terminal is in an active state, if the EHRPD network identifier of the terminal is in an active state, the terminal requests to access the EHRPD after exiting the LTE network. The internet.
图7为本发明实施例八提供的网络切换装置结构示意图。如图7所示,该装置包括检测模块21和处理模块22。其中,检测模块21用于检测终端的4G业务是否被激活。处理模块22用于若检测模块21检测到4G业务被激活,则确定终端无法使用LTE网络进行数据业务时,请求接入演进的高速分组EHRPD网络;或者,若检测模块21检测到4G业务没有被激活,则确定终端无法使用LTE网络进行数据业务时,请求接入高速分组HRPD网络。FIG. 7 is a schematic structural diagram of a network switching apparatus according to Embodiment 8 of the present invention. As shown in FIG. 7, the apparatus includes a detection module 21 and a processing module 22. The detecting module 21 is configured to detect whether the 4G service of the terminal is activated. The processing module 22 is configured to request access to the evolved high-speed packet EHRPD network when the detecting module 21 detects that the 4G service is activated, and determines that the terminal cannot use the LTE network for data service; or if the detecting module 21 detects that the 4G service is not When activated, it is determined that the terminal cannot access the high-speed packet HRPD network when the LTE network cannot use the LTE network for data services.
可选地,在本实施例中,检测模块21检测到4G业务被激活之后,处理模块22将终端的EHRPD网络标识修改为激活状态;或者,检测模块21检测到4G业务没有被激活之后,处理模块22将终端的EHRPD网络标识修改为未激活状态。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 detecting module 21 detects that the 4G service is not activated, the processing is performed. Module 22 modifies the EHRPD network identity of the terminal to an inactive state.
本实施例的装置,可以用于执行图5所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
图8为本发明实施例九提供的终端的结构示意图。如图8所示,该终端包括处理器31和存储器32。终端还可以包括发射器33和接收器34,发射器33和接收器34可以和处理器31相连。其中,存储器31用于存储执行指令,当终端运行时,处理器31与存储器32之间通信,处理器31调用执行指令,用于执行以下操作:FIG. 8 is a schematic structural diagram of a terminal according to Embodiment 9 of the present invention. As shown in FIG. 8, the terminal includes a processor 31 and a memory 32. The terminal may also include a transmitter 33 and a receiver 34, which may be coupled to the processor 31. The memory 31 is configured to store execution instructions. When the terminal is running, the processor 31 communicates with the memory 32, and the processor 31 calls the execution instruction for performing the following operations:
确定终端无法使用LTE网络进行数据业务;Determining that the terminal cannot use the LTE network for data services;
监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数;业务参数包括数据业务激活失败的次数或数据业务激活失败的原因值;Monitoring a service parameter of a data service activation failure in an evolved high-speed packet EHRPD network; the service parameter includes a number of times the data service activation fails or a reason value of the data service activation failure;
判断业务参数是否符合第一条件;其中,第一条件为预设的终端退出EHRPD网络的条件;Determining whether the service parameter meets the first condition; wherein the first condition is a condition that the preset terminal exits the EHRPD network;
若业务参数符合所述第一条件,则退出EHRPD网络,并请求接入HRPD 网络。If the service parameter meets the first condition, exit the EHRPD network and request access to the HRPD The internet.
可选地,若业务参数为数据业务激活失败的次数,则第一条件包括终端进行数据业务激活的最大重试次数;则处理器31具体用于判断业务激活失败的次数是否大于最大重试次数;若业务激活失败的次数大于最大重试次数,则确定业务参数符合第一条件;若业务激活失败的次数不大于最大重试次数,则确定业务参数不符合第一条件。Optionally, if the service parameter is the number of times the data service is activated, the first condition includes a maximum number of retries for the data service to be activated by the terminal, and the processor 31 is configured to determine whether the number of service activation failures is greater than the maximum number of retries. If the number of service activation failures is greater than the maximum number of retries, it is determined that the service parameters meet the first condition; if the number of service activation failures is not greater than the maximum number of retries, it is determined that the service parameters do not meet the first condition.
可选地,若业务参数为数据业务激活失败的原因值;则第一条件包括终端在EHRPD网络下进行数据业务激活失败的原因为永久性失败;则处理器31具体用于判断数据业务激活失败的原因值是否为永久性失败;若数据业务激活失败的原因值为永久性失败,则确定业务参数符合第一条件;若数据业务激活失败的原因值不是永久性失败,则确定业务参数不符合第一条件。Optionally, if the service parameter is a cause value of the data service activation failure, the first condition includes the failure of the terminal to perform the data service activation failure in the EHRPD network is a permanent failure; the processor 31 is specifically configured to determine that the data service activation fails. Whether the cause value is a permanent failure; 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; if the cause value of the data service activation failure is not a permanent failure, it is determined that the service parameter does not match First condition.
可选地,处理器31还用于获取数据业务激活失败的原因值;并判断数据业务激活失败的原因值是否符合第二条件;第二条件为终端进行数据业务激活失败的原因为网络失败,且当前网络为EHRPD网络;若数据业务激活失败的原因值不符合第二条件,则将上一次的数据业务激活失败的次数清零;若数据业务激活失败的原因值符合第二条件,则将上一次的数据业务激活失败的次数加1。Optionally, the processor 31 is further configured to: obtain a cause value of the data service activation failure; and determine whether the cause value of the data service activation failure meets the second condition; and the second condition is that the terminal fails to perform the data service activation because the network fails. The current network is an EHRPD network; if the reason for the failure of the data service activation does not meet the second condition, the number of times the data service activation failure is cleared is cleared; if the cause of the data service activation failure meets the second condition, The number of times the last data service activation failed was increased by one.
可选地,处理器31还用于根据数据业务激活失败的原因值,判断是否需要重启处理器31;若需要重启处理器31,则重启处理器31;或者,若不需要重启处理器31,则处理器31判断终端对应的接入点的数据类型是否符合预设数据类型;若接入点的数据类型符合预设数据类型,则执行判断业务参数是否符合第一条件这一步骤;或者,若接入点的数据类型不符合预设数据类型,则进行数据业务激活。Optionally, the processor 31 is further configured to determine, according to the cause value of the data service activation failure, whether the processor 31 needs to be restarted; if the processor 31 needs to be restarted, restart the processor 31; or, if the processor 31 is not required 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 conforms to the preset data type, performing the step of determining whether the service parameter meets the first condition; or If the data type of the access point does not match the preset data type, the data service is activated.
可选地,处理器31还用于若成功注册长期演进LTE网络,则检查终端的EHRPD网络标识是否为激活状态;若终端的EHRPD网络标识为激活状态,则终端在退出LTE网络后请求接入EHRPD网络。Optionally, the processor 31 is further configured to: if the long-term evolution LTE network is successfully registered, check whether the EHRPD network identifier of the terminal is an activated state; if the EHRPD network identifier of the terminal is an active state, the terminal requests to access after exiting the LTE network. EHRPD network.
本实施例的终端,可以用于执行本发明实施例一至实施例四任一实施例所提供的网络切换方法的技术方案,其实现原理和技术效果类似,此处不再赘述。The terminal in this embodiment may be used to perform the technical solution of the network switching method provided by any one of the first embodiment to the fourth embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
如图8所示,在本发明实施例十提供的终端中,终端包括处理器31和存 储器32。终端还可以包括发射器33和接收器34,发射器33和接收器34可以和处理器31相连。其中,存储器32用于存储执行指令,当终端运行时,处理器31与存储器32之间通信,处理器31调用执行指令,用于执行以下操作:As shown in FIG. 8, in the terminal provided in Embodiment 10 of the present invention, the terminal includes a processor 31 and a memory Reservoir 32. The terminal may also include a transmitter 33 and a receiver 34, which may be coupled to the processor 31. The memory 32 is used to store execution instructions. When the terminal is running, the processor 31 communicates with the memory 32, and the processor 31 calls the execution instruction for performing the following operations:
检测终端的4G业务是否被激活;Detect whether the 4G service of the terminal is activated;
若检测到4G业务被激活,则确定终端无法使用LTE网络进行数据业务时,请求接入EHRPD网络;或者,If it is detected that the 4G service is activated, it is determined that the terminal cannot use the LTE network for data service, and requests to access the EHRPD network; or
若检测到4G业务没有被激活,则确定终端无法使用LTE网络进行数据业务时,请求接入HRPD网络。If it is detected that the 4G service is not activated, it is determined that the terminal cannot access the HRPD network when the LTE network cannot be used for data service.
可选地,处理器31还用于检测到4G业务被激活之后,将终端的EHRPD网络标识修改为激活状态;或者,检测到4G业务没有被激活之后,将终端的EHRPD网络标识修改为未激活状态。Optionally, the processor 31 is further configured to: after detecting that the 4G service is activated, modify the EHRPD network identifier of the terminal to an activated state; or, after detecting that the 4G service is not activated, modify the EHRPD network identifier of the terminal to be inactive. status.
本实施例的终端,可以用于执行本发明实施例五所提供的网络切换方法的技术方案,其实现原理和技术效果类似,此处不再赘述。The terminal in this embodiment may be used to perform the technical solution of the network switching method provided by the fifth embodiment of the present invention. The implementation principle and technical effects are similar, and details are not described herein again.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (24)

  1. 一种网络切换方法,其特征在于,所述方法包括:A network switching method, the method comprising:
    确定终端无法使用长期演进LTE网络进行数据业务;Determining that the terminal cannot use the Long Term Evolution (LTE) network for data services;
    监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数;所述业务参数包括数据业务激活失败的次数或数据业务激活失败的原因值;Monitoring a service parameter of the data service activation failure in the evolved high-speed packet EHRPD network; the service parameter includes a number of times the data service activation fails or a reason value of the data service activation failure;
    判断所述业务参数是否符合第一条件;其中,所述第一条件为预设的终端退出所述EHRPD网络的条件;Determining whether the service parameter meets the first condition; wherein the first condition is a condition that the preset terminal exits the EHRPD network;
    若所述业务参数符合所述第一条件,则退出所述EHRPD网络,并请求接入高速分组HRPD网络。If the service parameter meets the first condition, exiting the EHRPD network and requesting access to the high speed packet HRPD network.
  2. 根据权利要求1所述的方法,其特征在于,若所述业务参数为数据业务激活失败的次数,则所述第一条件包括终端进行数据业务激活的最大重试次数;则判断所述业务参数是否符合第一条件,具体包括:The method according to claim 1, wherein if the service parameter is the number of times the data service is activated, the first condition includes a maximum number of retries for the terminal to perform data service activation; and determining the service parameter. Whether the first condition is met, including:
    判断所述业务激活失败的次数是否大于所述最大重试次数;Determining whether the number of times the service activation fails is greater than the maximum number of retries;
    若所述业务激活失败的次数大于所述最大重试次数,则确定所述业务参数符合所述第一条件;若所述业务激活失败的次数不大于所述最大重试次数,则确定所述业务参数不符合所述第一条件。If the number of times the service activation fails is greater than the maximum number of retries, determining that the service parameter meets the first condition; and if the number of service activation failures is not greater than the maximum number of retries, determining the The business parameters do not meet the first condition.
  3. 根据权利要求1所述的方法,其特征在于,若所述业务参数为数据业务激活失败的原因值;则所述第一条件包括所述终端在所述EHRPD网络下进行数据业务激活失败的原因为永久性失败;The method according to claim 1, wherein the first condition comprises a reason why the terminal fails to activate the data service under the EHRPD network, if the service parameter is a cause value of a data service activation failure; For permanent failure;
    则判断所述业务参数是否符合第一条件,具体包括:And determining whether the service parameter meets the first condition, specifically:
    判断所述数据业务激活失败的原因值是否为所述永久性失败;Determining whether the cause value of the data service activation failure is the permanent failure;
    若所述数据业务激活失败的原因值为所述永久性失败,则确定所述业务参数符合所述第一条件;若所述数据业务激活失败的原因值不是所述永久性失败,则确定所述业务参数不符合所述第一条件。If the cause of the data service activation failure is the permanent failure, determining that the service parameter meets the first condition; if the cause value of the data service activation failure is not the permanent failure, determining The business parameters do not meet the first condition.
  4. 根据权利要求2所述的方法,其特征在于,所述判断所述业务激活失败的次数是否大于最大重试次数之前,所述方法还包括:The method according to claim 2, wherein the method further comprises: before determining whether the number of times the service activation fails is greater than a maximum number of retries, the method further comprising:
    获取所述数据业务激活失败的原因值;Obtaining a cause value of the data service activation failure;
    判断所述数据业务激活失败的原因值是否符合第二条件;所述第二条件为所述终端进行数据业务激活失败的原因为网络失败,且当前网络为所述EHRPD网络; Determining whether the cause value of the data service activation failure meets the second condition; the second condition is that the data service activation failure of the terminal is caused by the network failure, and the current network is the EHRPD network;
    若所述数据业务激活失败的原因值不符合所述第二条件,则将上一次的数据业务激活失败的次数清零;If the cause value of the data service activation failure does not meet the second condition, the number of times the previous data service activation failure is cleared;
    若所述数据业务激活失败的原因值符合所述第二条件,则将上一次的数据业务激活失败的次数加1。If the cause value of the data service activation failure meets the second condition, the number of times the previous data service activation failure is increased by one.
  5. 根据权利要求1所述的方法,其特征在于,所述监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数之后,所述方法还包括:The method according to claim 1, wherein the method further comprises: after monitoring the service parameter of the data service activation failure in the evolved high-speed packet EHRPD network, the method further comprises:
    根据所述数据业务激活失败的原因值,判断是否需要重启处理器;Determining whether it is necessary to restart the processor according to the reason value of the data service activation failure;
    若需要重启所述处理器,则重启所述处理器;Restarting the processor if the processor needs to be restarted;
    若不需要重启所述处理器,则判断所述终端对应的接入点的数据类型是否符合预设数据类型;若所述接入点的数据类型符合所述预设数据类型,则执行所述判断所述业务参数是否符合第一条件这一步骤;若所述接入点的数据类型不符合所述预设数据类型,则进行数据业务激活。If it is not required to restart the processor, determining whether the data type of the access point corresponding to the terminal conforms to a preset data type; if the data type of the access point meets the preset data type, performing the Determining whether the service parameter meets the first condition; if the data type of the access point does not meet the preset data type, performing data service activation.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述退出所述EHRPD网络之后,所述方法还包括:The method according to any one of claims 1-5, wherein after the exiting the EHRPD network, the method further comprises:
    若成功注册长期演进LTE网络,则检查所述终端的EHRPD网络标识是否为激活状态;If the long-term evolution LTE network is successfully registered, check whether the EHRPD network identifier of the terminal is an active state;
    若所述终端的EHRPD网络标识为激活状态,则所述终端在退出所述LTE网络后请求接入所述EHRPD网络。If the EHRPD network identifier of the terminal is an active state, the terminal requests to access the EHRPD network after exiting the LTE network.
  7. 一种网络切换方法,其特征在于,所述方法包括:A network switching method, the method comprising:
    检测终端的4G业务是否被激活;Detect whether the 4G service of the terminal is activated;
    若检测到所述4G业务被激活,则确定所述终端无法使用长期演进LTE网络进行数据业务时,请求接入演进的高速分组EHRPD网络;或者,If it is determined that the 4G service is activated, determining that the terminal cannot use the Long Term Evolution (LTE) network for data service, requesting access to the evolved high speed packet EHRPD network; or
    若检测到所述4G业务没有被激活,则确定所述终端无法使用LTE网络进行数据业务时,请求接入高速分组HRPD网络。If it is detected that the 4G service is not activated, it is determined that the terminal cannot access the high speed packet HRPD network when the LTE network cannot be used for data service.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    所述检测到所述4G业务被激活之后,将终端的EHRPD网络标识修改为激活状态;或者,After detecting that the 4G service is activated, modifying the EHRPD network identifier of the terminal to an activated state; or
    所述检测到所述4G业务没有被激活之后,将终端的EHRPD网络标识修改为未激活状态。After detecting that the 4G service is not activated, the EHRPD network identifier of the terminal is modified to an inactive state.
  9. 一种网络切换装置,其特征在于,包括: A network switching device, comprising:
    确定模块,用于确定终端无法使用长期演进LTE网络进行数据业务;a determining module, configured to determine that the terminal cannot use the Long Term Evolution (LTE) network for data services;
    监控模块,用于监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数;a monitoring module, configured to monitor a service parameter of a data service activation failure in an evolved high-speed packet EHRPD network;
    判断模块,用于判断所述业务参数是否符合第一条件;其中,所述第一条件为预设的终端退出所述EHRPD网络的条件;a determining module, configured to determine whether the service parameter meets the first condition, where the first condition is a condition that the preset terminal exits the EHRPD network;
    处理模块,用于在所述判断模块判断所述业务参数符合所述第一条件时,退出所述EHRPD网络,并请求接入高速分组HRPD网络。And a processing module, configured to, when the determining module determines that the service parameter meets the first condition, exit the EHRPD network, and request to access a high-speed packet HRPD network.
  10. 根据权利要求9所述的装置,其特征在于,若所述监控模块监控获得的所述业务参数为数据业务激活失败的次数,则所述第一条件包括终端进行数据业务激活的最大重试次数;The device according to claim 9, wherein if the monitoring module monitors the obtained service parameter as the number of times the data service activation fails, the first condition includes a maximum number of retries for the terminal to perform data service activation. ;
    则所述判断模块具体用于:判断所述业务激活失败的次数是否大于所述最大重试次数;若所述业务激活失败的次数大于所述最大重试次数,则确定所述业务参数符合所述第一条件;若所述业务激活失败的次数不大于所述最大重试次数,则确定所述业务参数不符合所述第一条件。The determining module is specifically configured to: determine whether the number of times the service activation failure is greater than the maximum number of retries; if the number of times the service activation fails is greater than the maximum number of retries, determine that the service parameter meets the Determining the first condition; if the number of times the service activation fails is not greater than the maximum number of retries, determining that the service parameter does not meet the first condition.
  11. 根据权利要求9所述的装置,其特征在于,若所述监控模块监控获得的所述业务参数为数据业务激活失败的原因值;则所述第一条件包括所述终端在所述EHRPD网络下进行数据业务激活失败的原因为永久性失败;The device according to claim 9, wherein if the monitoring module monitors the obtained service parameter as a cause value of data service activation failure, the first condition includes the terminal being in the EHRPD network. The reason for the failure of data service activation is permanent failure;
    则所述判断模块具体用于:判断所述数据业务激活失败的原因值是否为所述永久性失败;若所述数据业务激活失败的原因值为所述永久性失败,则确定所述业务参数符合所述第一条件;若所述数据业务激活失败的原因值不是所述永久性失败,则确定所述业务参数不符合所述第一条件。The determining module is specifically configured to: determine whether the cause value of the data service activation failure is the permanent failure; and if the cause of the data service activation failure is the permanent failure, determine the service parameter. And satisfying the first condition; if the cause value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
  12. 根据权利要求10所述的装置,其特征在于,所述监控模块还用于获取所述数据业务激活失败的原因值;The device according to claim 10, wherein the monitoring module is further configured to acquire a cause value of the data service activation failure;
    所述判断模块还用于判断所述数据业务激活失败的原因值是否符合第二条件;所述第二条件为所述终端进行数据业务激活失败的原因为网络失败,且当前网络为所述EHRPD网络;若所述数据业务激活失败的原因值不符合所述第二条件,则将上一次的数据业务激活失败的次数清零;若所述数据业务激活失败的原因值符合所述第二条件,则将上一次的数据业务激活失败的次数加1。The determining module is further configured to determine whether the cause value of the data service activation failure meets the second condition; the second condition is that the terminal fails to perform data service activation because the network fails, and the current network is the EHRPD a network; if the cause value of the data service activation failure does not meet the second condition, the number of times the previous data service activation failure is cleared; if the reason for the data service activation failure meets the second condition , then increments the number of failed data service activations by one.
  13. 根据权利要求9所述的装置,其特征在于,所述判断模块还用于根 据所述数据业务激活失败的原因值,判断是否需要重启处理器;若需要重启所述处理器,则重启所述处理器;或者,The apparatus of claim 9 wherein said determining module is further for rooting Determining whether it is necessary to restart the processor according to the reason value of the data service activation failure; if the processor needs to be restarted, restarting the processor; or
    若不需要重启所述处理器,则所述判断模块判断所述终端对应的接入点的数据类型是否符合预设数据类型;若所述接入点的数据类型符合所述预设数据类型,则所述判断模块执行所述判断所述业务参数是否符合第一条件这一步骤;或者,若所述接入点的数据类型不符合所述预设数据类型,则触发所述处理模块进行数据业务激活。If the processor does not need to be restarted, the determining module 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 meets the preset data type, The determining module performs the step of determining whether the service parameter meets the first condition; or if the data type of the access point does not meet the preset data type, triggering the processing module to perform data Business activation.
  14. 根据权利要求9-13任一项所述的装置,其特征在于,所述处理模块还用于若成功注册长期演进LTE网络,则检查所述终端的EHRPD网络标识是否为激活状态;若所述终端的EHRPD网络标识为激活状态,则所述终端在退出所述LTE网络后请求接入所述EHRPD网络。The device according to any one of claims 9 to 13, wherein the processing module is further configured to: if the long-term evolution LTE network is successfully registered, check whether the EHRPD network identifier of the terminal is an activated state; The EHRPD network identifier of the terminal is an activated state, and the terminal requests to access the EHRPD network after exiting the LTE network.
  15. 一种网络切换装置,其特征在于,包括:A network switching device, comprising:
    检测模块,用于检测终端的4G业务是否被激活;a detecting module, configured to detect whether the 4G service of the terminal is activated;
    处理模块,用于若所述检测模块检测到所述4G业务被激活,则确定所述终端无法使用长期演进LTE网络进行数据业务时,请求接入演进的高速分组EHRPD网络;或者,若所述检测模块检测到所述4G业务没有被激活,则确定所述终端无法使用LTE网络进行数据业务时,请求接入高速分组HRPD网络。a processing module, if the detecting module detects that the 4G service is activated, and determines that the terminal cannot use the long term evolution LTE network to perform data service, requesting access to the evolved high speed packet EHRPD network; or, if When the detecting module 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 speed packet HRPD network.
  16. 根据权利要求15所述的装置,其特征在于,所述检测模块检测到所述4G业务被激活之后,所述处理模块将终端的EHRPD网络标识修改为激活状态;或者,The device according to claim 15, wherein after the detecting module detects that the 4G service is activated, the processing module modifies the EHRPD network identifier of the terminal to an activated state; or
    所述检测模块检测到所述4G业务没有被激活之后,所述处理模块将终端的EHRPD网络标识修改为未激活状态。After the detecting module detects that the 4G service is not activated, the processing module modifies the EHRPD network identifier of the terminal to an inactive state.
  17. 一种终端,其特征在于,包括:处理器和存储器;A terminal, comprising: a processor and a memory;
    所述存储器用于存储执行指令,当所述终端运行时,所述处理器与所述存储器之间通信,所述处理器调用所述执行指令,用于执行以下操作:The memory is configured to store an execution instruction, when the terminal is running, the processor is in communication with the memory, and the processor invokes the execution instruction to perform the following operations:
    确定终端无法使用长期演进LTE网络进行数据业务;Determining that the terminal cannot use the Long Term Evolution (LTE) network for data services;
    监控在演进的高速分组EHRPD网络下的数据业务激活失败的业务参数;所述业务参数包括数据业务激活失败的次数或数据业务激活失败的原因值;Monitoring a service parameter of the data service activation failure in the evolved high-speed packet EHRPD network; the service parameter includes a number of times the data service activation fails or a reason value of the data service activation failure;
    判断所述业务参数是否符合第一条件;其中,所述第一条件为预设的终 端退出所述EHRPD网络的条件;Determining whether the service parameter meets the first condition; wherein the first condition is a preset end Ending the conditions of the EHRPD network;
    若所述业务参数符合所述第一条件,则退出所述EHRPD网络,并请求接入高速分组HRPD网络。If the service parameter meets the first condition, exiting the EHRPD network and requesting access to the high speed packet HRPD network.
  18. 根据权利要求17所述的终端,其特征在于,若所述业务参数为数据业务激活失败的次数,则所述第一条件包括终端进行数据业务激活的最大重试次数;则所述处理器具体用于:The terminal according to claim 17, wherein if the service parameter is the number of times the data service is activated, the first condition includes a maximum number of retries for the terminal to perform data service activation; Used for:
    判断所述业务激活失败的次数是否大于所述最大重试次数;Determining whether the number of times the service activation fails is greater than the maximum number of retries;
    若所述业务激活失败的次数大于所述最大重试次数,则确定所述业务参数符合所述第一条件;若所述业务激活失败的次数不大于所述最大重试次数,则确定所述业务参数不符合所述第一条件。If the number of times the service activation fails is greater than the maximum number of retries, determining that the service parameter meets the first condition; and if the number of service activation failures is not greater than the maximum number of retries, determining the The business parameters do not meet the first condition.
  19. 根据权利要求17所述的终端,其特征在于,若所述业务参数为数据业务激活失败的原因值;则所述第一条件包括所述终端在所述EHRPD网络下进行数据业务激活失败的原因为永久性失败;The terminal according to claim 17, wherein the first condition includes a reason why the terminal fails to activate the data service under the EHRPD network, if the service parameter is a cause value of the data service activation failure; For 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 cause of the data service activation failure is the permanent failure, determining that the service parameter is consistent The first condition; if the cause value of the data service activation failure is not the permanent failure, determining that the service parameter does not meet the first condition.
  20. 根据权利要求18所述的终端,其特征在于,所述处理器还用于获取所述数据业务激活失败的原因值;并判断所述数据业务激活失败的原因值是否符合第二条件;所述第二条件为所述终端进行数据业务激活失败的原因为网络失败,且当前网络为所述EHRPD网络;若所述数据业务激活失败的原因值不符合所述第二条件,则将上一次的数据业务激活失败的次数清零;若所述数据业务激活失败的原因值符合所述第二条件,则将上一次的数据业务激活失败的次数加1。The terminal according to claim 18, wherein the processor is further configured to: obtain a cause value of the data service activation failure; and determine whether the cause value of the data service activation failure meets the second condition; The second condition is that the data service activation failure of the terminal is caused by the network failure, and the current network is the EHRPD network; if the cause value of the data service activation failure does not meet the second condition, the last time is The number of times the data service activation fails is cleared; if the cause value of the data service activation failure meets the second condition, the number of times the previous data service activation failure is increased by one.
  21. 根据权利要求17所述的终端,其特征在于,所述处理器还用于根据所述数据业务激活失败的原因值,判断是否需要重启处理器;若需要重启所述处理器,则重启所述处理器;或者,The terminal according to claim 17, wherein the processor is further configured to: determine, according to the cause value of the data service activation failure, whether to restart the processor; if the processor needs to be restarted, restart the Processor; or,
    若不需要重启所述处理器,则所述处理器判断所述终端对应的接入点的数据类型是否符合预设数据类型;若所述接入点的数据类型符合所述预设数据类型,则执行所述判断所述业务参数是否符合第一条件这一步骤;若所述 接入点的数据类型不符合所述预设数据类型,则进行数据业务激活。If the processor does not need to be restarted, the processor determines whether the data type of the access point corresponding to the terminal matches the preset data type; if the data type of the access point matches the preset data type, And performing the step of determining whether the service parameter meets the first condition; If the data type of the access point does not match the preset data type, data service activation is performed.
  22. 根据权利要求17-21任一项所述的终端,其特征在于,所述处理器还用于若成功注册长期演进LTE网络,则检查所述终端的EHRPD网络标识是否为激活状态;若所述终端的EHRPD网络标识为激活状态,则所述终端在退出所述LTE网络后请求接入所述EHRPD网络。The terminal according to any one of claims 17 to 21, wherein the processor is further configured to: if the long-term evolution LTE network is successfully registered, check whether the EHRPD network identifier of the terminal is an active state; The EHRPD network identifier of the terminal is an activated state, and the terminal requests to access the EHRPD network after exiting the LTE network.
  23. 一种终端,其特征在于,包括处理器和存储器;A terminal, comprising: a processor and a memory;
    所述存储器用于存储执行指令,当所述终端运行时,所述处理器与所述存储器之间通信,所述处理器调用所述执行指令,用于执行以下操作:The memory is configured to store an execution instruction, when the terminal is running, the processor is in communication with the memory, and the processor invokes the execution instruction to perform the following operations:
    检测所述终端的4G业务是否被激活;Detecting whether the 4G service of the terminal is activated;
    若检测到所述4G业务被激活,则确定所述终端无法使用长期演进LTE网络进行数据业务时,请求接入演进的高速分组EHRPD网络;或者,If it is determined that the 4G service is activated, determining that the terminal cannot use the Long Term Evolution (LTE) network for data service, requesting access to the evolved high speed packet EHRPD network; or
    若检测到所述4G业务没有被激活,则确定所述终端无法使用LTE网络进行数据业务时,请求接入高速分组HRPD网络。If it is detected that the 4G service is not activated, it is determined that the terminal cannot access the high speed packet HRPD network when the LTE network cannot be used for data service.
  24. 根据权利要求23所述的终端,其特征在于,所述处理器还用于检测到所述4G业务被激活之后,将终端的EHRPD网络标识修改为激活状态;或者,检测到所述4G业务没有被激活之后,将终端的EHRPD网络标识修改为未激活状态。 The terminal according to claim 23, wherein the processor is further configured to: after detecting that the 4G service is activated, modifying an EHRPD network identifier of the terminal to an activated state; or detecting that the 4G service is not After being activated, the terminal's EHRPD network identifier is modified to an inactive state.
PCT/CN2015/073217 2015-02-17 2015-02-17 Network switching method and apparatus, and terminal WO2016131187A1 (en)

Priority Applications (2)

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
CN201580002496.9A CN106105365B (en) 2015-02-17 2015-02-17 Network switching method, device and terminal

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 (1)

Publication Number Publication Date
WO2016131187A1 true WO2016131187A1 (en) 2016-08-25

Family

ID=56688693

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110392412A (en) * 2019-07-23 2019-10-29 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment

Families Citing this family (1)

* 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

Citations (5)

* 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
CN102177748A (en) * 2009-01-08 2011-09-07 华为技术有限公司 Method for network handover, user equipment, gateway and network system thereof
US20120218971A1 (en) * 2011-02-24 2012-08-30 Qualcomm Incorporated Methods and apparatus to reduce a time to transfer multiple pdn contexts during inter-radio access technology handoff
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458450B (en) * 2009-06-22 2018-01-09 华为技术有限公司 Switching handling method, the communicator of hand-off process and communication system

Patent Citations (5)

* 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
CN102177748A (en) * 2009-01-08 2011-09-07 华为技术有限公司 Method for network handover, user equipment, gateway and network system thereof
CN103270790A (en) * 2010-12-17 2013-08-28 高通股份有限公司 Deetcting loss of IP continuity when transitioning between different networks
US20120218971A1 (en) * 2011-02-24 2012-08-30 Qualcomm Incorporated Methods and apparatus to reduce a time to transfer multiple pdn contexts during inter-radio access technology handoff
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110392412A (en) * 2019-07-23 2019-10-29 歌尔科技有限公司 Network distribution method, device, equipment and medium for Internet of things equipment

Also Published As

Publication number Publication date
CN106105365A (en) 2016-11-09
CN106105365B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
WO2011017890A1 (en) Multimode mobile terminal and method for downloading resources thereof
US9461927B2 (en) Method, device, and system for delaying packets during a network-triggered wake of a computing device
US9974010B2 (en) System and method for establishing network connection and terminal having the system
US9497665B2 (en) Method and system for returning to long term evolution network and mobile switching center
WO2015043520A1 (en) Method and terminal for activating pdn
WO2018045810A1 (en) Csfb-based calling method and device
CN106792639B (en) Method and system for realizing user data recovery in wireless AP
WO2019057023A1 (en) Data recovery method, sending/receiving apparatus, and computer-readable storage medium
US9820310B2 (en) Network connection method and system
WO2016131187A1 (en) Network switching method and apparatus, and terminal
CN112860408A (en) Process keep-alive method, device and system in cloud reality machine and storage medium
CN108419258B (en) Processing method for network communication function abnormity, modem and mobile terminal
EP4192077A1 (en) Session update method, terminal, and network-side device
CN102622254B (en) Television outage disposal route and system
US10412778B2 (en) Data transmission method and apparatus for data service
WO2022141480A1 (en) Communication method, apparatus and system
CN113840314B (en) Data transmission abnormality recovery method and device and terminal equipment
WO2017128185A1 (en) Method and terminal for controlling service connection
WO2013167010A2 (en) Mobile terminal and startup method therefor
US11812487B2 (en) Method, device, extender, and computer medium for automatically restoring connection
WO2013107035A1 (en) Method and device for detecting resumption of interrupted cell
WO2011153804A1 (en) Mobile terminal, method and device for network connection thereof
CN111885169B (en) Method, system and device for realizing high availability of cloud hard disk service
CN108347740B (en) Processing method for network communication function abnormity and application processor
CN108599987B (en) Processing method for network communication function abnormity, application processor and user terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15882327

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15882327

Country of ref document: EP

Kind code of ref document: A1