WO2022121315A1 - Network handover method and apparatus, computer device, and storage medium - Google Patents
Network handover method and apparatus, computer device, and storage medium Download PDFInfo
- Publication number
- WO2022121315A1 WO2022121315A1 PCT/CN2021/107075 CN2021107075W WO2022121315A1 WO 2022121315 A1 WO2022121315 A1 WO 2022121315A1 CN 2021107075 W CN2021107075 W CN 2021107075W WO 2022121315 A1 WO2022121315 A1 WO 2022121315A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network standard
- serving cell
- network
- signal quality
- ping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to a network switching method, apparatus, computer equipment and storage medium.
- Network connection technology makes people's lives more efficient and convenient. For example, people can receive and pay through payment terminals, which is very convenient and fast.
- the mobile terminal preferentially resides in a network standard with a higher level, such as a 4G network, to obtain a faster connection speed.
- a network standard with a higher level, such as a 4G network
- the mobile terminal preferentially accesses the 4G network (such as 4G LTE), and transmits the service request message to the peer background server on the network side, and the server side responds after receiving it, and then The follow-up data interaction process is carried out normally and the payment is finally completed quickly.
- 4G network such as 4G LTE
- a first aspect of the present application provides a network switching method, the method comprising:
- a network switching apparatus comprising:
- a cell information acquisition module configured to acquire an identifier of a serving cell, where the current network of the serving cell is a first network standard
- a ping-pong handover number determining module configured to determine the number of ping-pong handovers according to the identity of the serving cell
- a network standard obtaining module configured to obtain second network standard information when the number of times of the ping-pong handover reaches a set number
- the network standard switching module is used for switching from the first network standard to the second network standard according to the second network standard information.
- a third aspect of the present application provides a computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
- a fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
- FIG. 1 is an application environment diagram of a network switching method in one embodiment.
- FIG. 2 is a schematic flowchart of a network switching method in an embodiment.
- FIG. 3 is a schematic flowchart of determining the number of ping-pong handovers in one embodiment.
- FIG. 4 is a schematic flowchart of a method for switching a network format in another embodiment.
- FIG. 5 is a schematic flowchart of the combined use of two network switching methods in one embodiment.
- FIG. 6 is a structural block diagram of a network switching apparatus in an embodiment.
- FIG. 7 is a diagram of the internal structure of a computer device in one embodiment.
- the network switching method provided by the present application can be applied to the application environment shown in FIG. 1 .
- the terminal 102 communicates with the base station 104 through the network.
- the terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the base station 104 includes several sub-base stations, each of which corresponds to a serving cell.
- the terminal 102 accesses the network, that is, realizes a communication connection with any sub-base station, the terminal 102 obtains the serving cell information of the sub-base station to which it accesses.
- the serving cell information acquired by the terminal changes from A1 to A2, it indicates that the terminal changes from the sub-base station corresponding to the serving cell A1 to the sub-base station corresponding to the serving cell A2.
- a network switching method is provided, and the method is applied to the terminal in FIG. 1 as an example for description, including the following steps:
- Step S202 Acquire an identifier of a serving cell, where the current network of the serving cell is a first network standard.
- the serving cell is a cell currently accessed by the terminal for communication.
- a cell is also called a cell, which refers to an area covered by a base station or a part of the base station (such as a sector antenna) in a cellular mobile communication system.
- a mobile terminal can reliably communicate with the base station through a wireless channel. communication.
- the identifier of the serving cell is the basis for the terminal to identify each serving cell, and the unique corresponding serving cell can be identified according to the serving cell identifier.
- the terminal supports a variety of network standards, that is, it can communicate through a variety of network standards, including but not limited to the second generation GSM, TDMA and other digital mobile phones (2G), the 2.5th generation mobile communication technology GPRS, the third generation mobile communication technology 3G, The fourth generation of mobile communication technology 4G.
- the first network standard is any one of them, and the second network standard is another network standard that is different from the first network standard.
- the first network standard and the second network standard are respectively used to distinguish two different network standard states before the network standard of the terminal is switched.
- the first network standard is relative to the second network standard after the change
- the first network standard is the network standard before the switch, such as 4G
- the second network standard is the network standard after the switch
- the network standard can be other network standard except 4G, such as GPRS, 3G, 5G and so on. Under the same network standard, multiple different serving cell information can be registered in different time periods.
- the terminal after the terminal is powered on, it notices the first network standard, and locally records and saves the serving cell information under the currently registered network standard.
- Step S204 Determine the number of ping-pong handovers according to the identity of the serving cell.
- the cell handover refers to the change of the serving cell accessed by the mobile terminal.
- the change of the identity of the serving cell it can be determined that the serving cell accessed by the terminal has changed.
- the identity of the serving cell accessed by the mobile terminal changes from B1 to B2, because the identity B1 corresponds to the serving cell A1, and the identity B2 corresponds to the serving cell A2.
- the identity changes from B1 to B2, which means that the serving cell changes from A1 to A2. That is, a cell handover occurs or a serving cell handover occurs.
- Ping-pong handover means that the terminal switches back and forth between the serving cell where it currently resides and its neighboring cells.
- the ping-pong handover may start from a certain serving cell, switch back and forth with a certain neighboring cell, and then return to the serving cell.
- the current serving cell is A1 and the adjacent cell A2, switching from A1 to A2 and then switching to A1, that is, a ping-pong handover (A1-A2-A1) occurs between the current serving cell A1 and the adjacent cell A2, and the handover from A1 to A2 switches to A1, then switches to A2, and then switches to A1, which means that two ping-pong handovers (A1-A2-A1-A2-A1) occur between the current serving cell A1 and the adjacent cell A2. Assuming that there is an adjacent cell A3, the handover is from the current serving cell A1 to A2 to A3 to A1, and three cell handovers occur, but no ping-pong handover (A1-A2-A3-A1).
- the terminal When it is determined that ping-pong handover occurs according to the identity of the serving cell, the terminal will record the number of times that ping-pong handover occurs.
- Step S206 when the number of times of the ping-pong handover reaches a set number of times, obtain second network standard information.
- the set number of times is the maximum number of times of ping-pong handovers set by the terminal.
- the terminal determines that the frequency of ping-pong handovers is frequent, resulting in unstable or interrupted signals, which will affect terminal services.
- the signal is unstable or interrupted, the stability of the data link is greatly reduced, and the payment service request cannot be normally transmitted to the peer server. , resulting in payment failure, which seriously affects the user experience.
- the acquisition of the second network standard information is started.
- Step S208 switching from the first network standard to the second network standard according to the second network standard information.
- the terminal in the first network mode, the terminal frequently performs ping-pong handover, indicating that the cell signal drift is serious under the first network mode.
- the terminal In order not to affect the service of the mobile terminal, according to the acquired information of the second network mode Switch to the second network standard.
- the above-mentioned method, device, computer equipment and storage medium for network handover obtain the identification of the serving cell, and the current network of the serving cell is the first network standard; determine the number of ping-pong handovers according to the identification of the serving cell; when the number of ping-pong handovers reaches the set value When the number of times, the second network standard information is obtained; according to the second network standard information, switching from the first network standard to the second network standard is performed. That is, when it is detected that frequent ping-pong switching occurs in the mobile terminal, the first network standard is switched to the second network standard.
- the mobile terminal can maintain a better network communication state, thereby reducing network delay.
- the determining the number of ping-pong handovers according to the identity of the serving cell includes:
- Step S2042 Determine the handover path of the serving cell according to the identifier of the serving cell.
- the identity of the serving cell can be identified and recorded by the terminal, and the handover record between each serving cell can also be set by customizing the recording range threshold through the window (the recording range threshold is a natural number). And the handover records between the serving cell and each serving cell are stored in a stacking manner. For example, if the input record range threshold is 3, the terminal will store the first three serving cells including the current serving cell and their switching records. If A3 is the current serving cell, it will be switched from A4 to A2 before A3, and then switched by A2.
- the handover path of the serving cell is the handover record of the serving cell, such as switching from A2 to A1, and then from A1 to A3.
- the handover record (A2-A1-A3) is the handover path of the serving cell.
- Step S2044 judging whether the handover path is a ping-pong handover, and determining the number of times of the ping-pong handover.
- the terminal if it is monitored that the terminal switches back and forth between two serving cells, such as starting from one serving cell, switching back and forth with another serving cell, and finally returning to the starting serving cell, it can be determined that the occurrence of Ping-pong switching.
- the terminal At the set recording range threshold, each time a ping-pong handover occurs, the terminal records it once, and accumulates the number of ping-pong handovers to obtain the total number of ping-pong handovers.
- the total number of ping-pong handovers that occur within the set recording range threshold is compared with the number of times set by the terminal. If the number of ping-pong handovers is less than the set number, the terminal will not acquire the second network standard information. When the number of ping-pong handovers reaches the set number, the terminal will start to acquire the second network standard information.
- the handover path of the serving cell is determined according to the serving cell identifier.
- the number of ping-pong handovers is determined.
- the first network standard is switched to the second network standard. Switching from a network standard with frequent ping-pong handovers to a network standard with relatively less frequent ping-pong handovers enables the mobile terminal to maintain a better network communication state, thereby reducing network delays.
- the network handover method further includes: step S402 , acquiring the signal value of the serving cell.
- the signal value of the serving cell is a specific value indicating the signal of the serving cell, including various forms.
- LTE (4G network) mainly refers to RSRP ((Reference Signal Receiving Power, reference signal received power, and its range is -140 to -44db) )
- WCDMA (3G network) reference indicators are RSCP (Receive Signal Channel Power, pilot channel signal strength)
- GSM (2G network) reference indicators are CSQ and RSSI (Received Signal Strength Indication received signal strength indication).
- Step S404 Determine the signal quality level according to the signal value and the preset level threshold.
- the preset level threshold is the basis for dividing the signal quality of the serving cell, and multiple level thresholds can be set.
- the signal value of the serving cell is compared with the preset level threshold to determine the signal quality level.
- the signal quality level the signal quality of the current network can be distinguished. The higher the signal quality level, the better the signal quality.
- two level thresholds are set, and by comparing the signal value with the level threshold, three signal quality levels can be determined, namely the first signal quality level, the second signal quality level and the third signal quality level.
- the signal quality of the third signal quality level is the highest, the signal quality of the second signal quality level is second, and the signal quality of the first signal quality level is the worst. In this case, the first signal quality level is the worst signal quality level.
- Step S406 when the duration of the signal value at the set signal quality level is longer than a preset duration, obtain second network standard information; wherein the set signal quality level includes the worst signal quality level.
- the preset duration is the longest time that the signal value can continue to be at the set signal quality level, for example, the preset preset duration may be 20 seconds.
- the terminal communicates normally under the signal value, and acquires the signal value of the new serving cell.
- the terminal acquires the second network standard information.
- the set signal quality level is that the communication is affected due to poor signal quality.
- the signal value of the serving cell is continuously at the set signal quality level, it indicates that the quality of the signal value of the serving cell is poor, which will affect the completion of terminal services.
- the payment service of a mobile terminal when a user initiates a payment request, if the signal quality of the mobile terminal is poor, the payment service request will not be transmitted to the peer server normally or quickly, resulting in payment failure.
- the terminal will acquire the second network standard. If both the aforementioned first signal quality level and second signal quality level are regarded as levels with poor signal quality, the signal value of the serving cell is continuously at the first signal quality level, or is continuously at the second signal quality level and is at the first signal quality level. When the duration of a signal quality level or a second signal quality level reaches a preset duration, the terminal will be triggered to acquire the second network standard.
- Step S408 switching from the first network standard to the second network standard according to the obtained second network standard information.
- the terminal is triggered to switch from the first network standard to the second network standard.
- the signal quality level is determined according to the signal value and the preset level threshold.
- the second network standard information is acquired, wherein the set signal quality level includes the worst signal quality level.
- the signal quality level of the serving cell is determined according to the signal value of the serving cell, and when the duration of the signal quality level of the serving cell at the set signal quality level (that is, the signal quality level is poor) is greater than the preset duration, the signal quality level of the serving cell is determined.
- the signal quality level is poor, so the terminal is triggered to acquire the second network standard according to the second network standard information.
- the network handover method further includes: acquiring the identity and signal value of the serving cell every preset period, and recording the identity and signal value of the serving cell.
- the preset period takes the reporting period of the operating system as a preset period. Every preset period, the terminal periodically obtains the identity of the serving cell and the signal value corresponding to the serving cell, and records the identity and signal value of the serving cell. For example, the preset period is 5 seconds. After the terminal acquires the serving cell A1, it waits for a preset period of 5 seconds, automatically acquires the next serving cell, and records the identifier and signal value of the next serving cell.
- the identification and signal value of the serving cell are acquired and recorded every preset period, so as to update the serving cell regularly, so that the terminal can more accurately judge whether a cell handover or frequent ping-pong handover occurs. .
- the network switching method further includes: the preset duration is N times the preset period.
- the preset duration is N times the preset period, and N is a natural number. That is, the preset duration may be the cumulative sum of N preset cycle durations. For example, when N is 4, the preset duration is the sum of the durations of 4 preset cycles. In 5 consecutive preset cycles, the signal values of the serving cells in the 5 preset cycles are all at the set signal quality level. The cumulative sum of the durations of the five preset cycles is greater than the sum of the durations of the four preset cycles (ie, the preset duration), so it can be determined that the signal value of the serving cell is poor, and the terminal obtains the second network standard information.
- the method further includes: checking whether the second network standard is an unused network standard according to the stored used network standard; The priority order of the second network standard in each network standard, check whether the priority of the second network standard is higher than that of the first network standard; if the second network standard has not been used, or the second network standard If the priority of the network standard is higher than that of the first network standard, the step of switching from the first network standard to the second network standard is performed according to the obtained second network standard information.
- the used network standard is the used network standard that has been stored in the mobile terminal before acquiring the second network standard.
- the network standard used by the first network standard before switching is called the used network standard.
- the unused network standard of the first network standard before the handover is called the unused network standard.
- Verifying whether the second network standard is a network standard that has not been used before refers to verifying whether the network standard corresponding to the second network standard is the same as the network standard that has been used and stored in the mobile terminal.
- the 4G standard is the used network standard that has been stored by the mobile terminal. In this case, it is checked whether the network standard corresponding to the second network standard is the 4G standard.
- the second network standard information is compared with the stored used network standard, and the mobile terminal can determine whether the mobile terminal has used the second network standard before by comparing whether the two information are consistent. Because the unused network standard may be the best network standard that has not been utilized.
- the priority order of the default network configuration of the mobile terminal is 5G, 4G, 3G, and 2G.
- the mobile terminal will preferentially switch to the network standard with a higher priority order.
- the mobile terminal will switch to the unused second network standard, or switch to the second network standard with the higher priority network format. Thereby, it is discovered or guaranteed that the obtained second network standard is the best network standard.
- the second network standard that passes the verification that is, a network standard that has not been used before or a network standard that has a higher priority than the first network standard obtained by the mobile terminal.
- the second network standard passes the verification, indicating that the second network standard is the current best network standard, so that the mobile terminal will switch from the first network standard with frequent ping-pong handovers or the signal value of the serving cell at the set signal quality level to the first network standard.
- the second network standard that passes the verification that passes the verification.
- the obtained second network standard is the best network standard.
- One network standard is switched to the second network standard, so that the mobile terminal can maintain a better network communication condition and reduce network delay.
- the stored used network standard further includes the initial network standard before handover, and the network standard obtained after each handover before obtaining the best network standard.
- the optimal network standard is the corresponding network standard when the mobile terminal switches to the last second network standard, and the last second network standard can enable the mobile terminal to perform its services normally.
- the process of switching from the cell of the first network standard to the cell of the second network standard may occur multiple times until the last second network standard enables the mobile terminal to normally perform network communication functions and realize its services. That is, when the mobile terminal switches the first network standard to the second network standard for the first time, the obtained second network standard is not the best network standard, so the mobile terminal will continue to use the second network standard as the new first network standard.
- the network standard repeat the steps of judging whether frequent ping-pong handovers occur in the serving cell or whether the signal value of the serving cell continues to be at the set signal level for a long time, until the mobile terminal obtains a network standard that can meet the normal needs of its business.
- the network standard is the last second network standard.
- the network switching method further includes:
- Step S502 Acquire an identifier of a serving cell, where the current network of the serving cell is the first network standard.
- Step S504 Determine the handover path of the serving cell according to the identifier of the serving cell.
- Step S506 determine whether the handover path is a ping-pong handover.
- step S508 is executed to determine the number of times of the ping-pong handover.
- step S50 is performed to record the identification and signal value of the serving cell in the current preset period, and will continue to acquire the identification and signal value of a new serving cell until the next preset period .
- step S510 is executed to verify whether the number of ping-pong handovers reaches the set number of times.
- step S52 is executed to acquire the second network standard information.
- the terminal will determine that frequent ping-pong handovers do not occur, and will perform step S50 to record the identity and signal of the serving cell of the current preset period value, and will not continue to acquire the identity and signal value of a new serving cell until the next preset period.
- step S52 is executed to switch from the first network standard to the second network standard according to the second network standard information.
- step S512 is performed synchronously, and the signal quality level is determined according to the signal value and the preset level threshold.
- Step S514 check whether the duration of the signal value of the serving cell at the set signal quality level is greater than the preset duration.
- step S52 is performed to obtain second network standard information; wherein the set signal quality level includes the worst signal quality level.
- step S50 When the duration of the signal value at the set signal quality level is not longer than the preset duration, step S50 will be executed to record the identity and signal value of the serving cell in the current preset period, and will not continue to acquire until the next preset period The identity and signal value of a new serving cell.
- step S54 is executed to switch from the first network standard to the second network standard according to the second network standard information.
- the mobile terminal can determine whether the number of ping-pong switching reaches the set number, or whether the duration of the signal value at the set signal quality level is greater than the preset duration.
- the information of the second network standard needs to be acquired, and then the first network standard is switched to the second network standard.
- There are more ways to trigger the mobile terminal to acquire the second network standard and it is also convenient for the mobile terminal to realize the switching of the network standard more quickly and improve the switching efficiency of the network standard.
- steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. Alternatively, the order of execution of the stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in the other steps.
- a network switching apparatus including: a cell information acquisition module 602, a network standard acquisition module 604, and a network standard switching module 606, wherein:
- the cell information acquisition module 602 is configured to acquire the identifier of the serving cell, where the current network of the serving cell is the first network standard.
- a ping-pong handover number determination module 604 configured to determine the number of ping-pong handovers according to the identifier of the serving cell
- the network standard obtaining module 606 is configured to obtain the second network standard information when the number of ping-pong handovers reaches a set number of times.
- the network standard switching module 608 is configured to switch from the first network standard to the second network standard according to the obtained second network standard information.
- the network standard acquisition module includes:
- a handover path determination module configured to determine the handover path of the serving cell according to the identity of the serving cell
- the handover times acquisition module is used for judging whether the handover path is a ping-pong handover, and determining the times of the ping-pong handover.
- the network switching device includes:
- a cell information acquisition module further configured to acquire the signal value of the serving cell
- a signal quality level determination module configured to determine the signal quality level according to the signal value and the preset level threshold
- the network standard obtaining module is further configured to obtain the second network standard information when the duration of the signal value at the set signal quality level is longer than a preset duration; wherein, the set signal quality level includes the worst signal quality level;
- the network standard switching module is used for switching from the first network standard to the second network standard according to the second network standard information.
- the network standard acquisition module further includes:
- the cell information recording module is configured to acquire the identity and signal value of the serving cell every preset period, and record the identity and signal value of the serving cell.
- the network switching device further includes: a network standard information verification module,
- a network standard information verification module configured to verify whether the second network standard is an unused network standard according to the stored used network standard
- Each module in the above-mentioned network switching device may be implemented in whole or in part by software, hardware and combinations thereof.
- the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
- a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 7 .
- the computer equipment includes a processor, memory, a communication interface, a display screen, and an input device connected by a system bus.
- the processor of the computer device is used to provide computing and control capabilities.
- the memory of the computer device includes a non-volatile storage medium, an internal memory.
- the nonvolatile storage medium stores an operating system and a computer program.
- the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
- the communication interface of the computer device is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies.
- the computer program implements a network switching method when executed by the processor.
- the display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
- FIG. 7 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
- a computer device including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
- the processor further implements the following steps when executing the computer program:
- the handover path is a ping-pong handover, and the number of times of the ping-pong handover is determined.
- the processor further implements the following steps when executing the computer program:
- the duration of the signal value at the set signal quality level is greater than the preset duration, acquiring the second network standard information; wherein the set signal quality level includes the worst signal quality level;
- the processor further implements the following steps when executing the computer program: acquiring the identity and signal value of the serving cell every preset period, and recording the identity and signal value of the serving cell.
- the processor further implements the following steps when executing the computer program:
- the method further includes:
- a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
- the computer program further implements the following steps when executed by the processor:
- the handover path is a ping-pong handover, and the number of times of the ping-pong handover is determined.
- the computer program further implements the following steps when executed by the processor:
- the duration of the signal value at the set signal quality level is greater than the preset duration, acquiring the second network standard information; wherein the set signal quality level includes the worst signal quality level;
- the computer program further implements the following steps when executed by the processor:
- the computer program further implements the following steps when executed by the processor:
- the method further includes:
- Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like.
- Volatile memory may include random access memory (RAM) or external cache memory.
- the RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
相关申请交叉引用Cross-reference to related applications
本申请要求2020年12月08日递交的、标题为“网络切换方法、装置、计算机设备和存储介质”、申请号为2020114234787的中国申请的优先权,其公开内容通过引用全部结合在本申请中。This application claims the priority of the Chinese application filed on December 08, 2020 and entitled "Network Switching Method, Device, Computer Equipment and Storage Medium" and application number 2020114234787, the disclosure of which is fully incorporated into this application by reference .
本申请涉及一种网络切换方法、装置、计算机设备和存储介质。The present application relates to a network switching method, apparatus, computer equipment and storage medium.
随着通信技术的发展,出现了采用移动终端进行网络连接的技术,网络连接技术使人们生活更高效、方便,例如人们通过支付终端就能实现收付款,非常方便快捷。With the development of communication technology, the technology of using mobile terminals for network connection has appeared. Network connection technology makes people's lives more efficient and convenient. For example, people can receive and pay through payment terminals, which is very convenient and fast.
现有的移动终端都支持多种网络制式,在不同网络制式下的功耗和连接速度都会有所不同。现有技术中,移动终端是根据网络制式的信号强度,优先驻留于等级较高的网络制式如4G网络下,以获取较快的连接速度。例如用户通过在支付终端上发起支付业务后,移动终端通过优先接入4G网络(比如4G LTE),传递业务请求消息给到网络侧的对端后台服务器,服务器端收到后做出响应,之后正常进行后续的数据交互流程并最终快速地完成支付。Existing mobile terminals all support multiple network standards, and the power consumption and connection speed will be different under different network standards. In the prior art, according to the signal strength of the network standard, the mobile terminal preferentially resides in a network standard with a higher level, such as a 4G network, to obtain a faster connection speed. For example, after the user initiates the payment service on the payment terminal, the mobile terminal preferentially accesses the 4G network (such as 4G LTE), and transmits the service request message to the peer background server on the network side, and the server side responds after receiving it, and then The follow-up data interaction process is carried out normally and the payment is finally completed quickly.
发明内容SUMMARY OF THE INVENTION
根据多个实施例,本申请第一方面提供一种网络切换方法,所述方法包括:According to various embodiments, a first aspect of the present application provides a network switching method, the method comprising:
获取服务小区的标识,所述服务小区的当前网络为第一网络制式;acquiring an identifier of a serving cell, where the current network of the serving cell is the first network standard;
根据所述服务小区的标识确定乒乓切换的次数;Determine the number of ping-pong handovers according to the identity of the serving cell;
当所述乒乓切换的次数达到设定次数时,获取第二网络制式信息;以及When the number of times of the ping-pong handover reaches a set number of times, acquiring the second network standard information; and
根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。Switching from the first network standard to the second network standard according to the second network standard information.
根据多个实施例,本申请第二方面提供一种网络切换装置,所述装置包括:According to various embodiments, a second aspect of the present application provides a network switching apparatus, the apparatus comprising:
小区信息获取模块,用于获取服务小区的标识,所述服务小区的当前网络为第一网络制式;a cell information acquisition module, configured to acquire an identifier of a serving cell, where the current network of the serving cell is a first network standard;
乒乓切换次数确定模块,用于根据所述服务小区的标识确定乒乓切换的次数;a ping-pong handover number determining module, configured to determine the number of ping-pong handovers according to the identity of the serving cell;
网络制式获取模块,用于当所述乒乓切换的次数达到设定次数时,获取第二网络制式信息;以及a network standard obtaining module, configured to obtain second network standard information when the number of times of the ping-pong handover reaches a set number; and
网络制式切换模块,用于根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。The network standard switching module is used for switching from the first network standard to the second network standard according to the second network standard information.
根据多个实施例,本申请第三方面提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:According to various embodiments, a third aspect of the present application provides a computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
获取服务小区的标识,所述服务小区的当前网络为第一网络制式;acquiring an identifier of a serving cell, where the current network of the serving cell is the first network standard;
根据所述服务小区的标识确定乒乓切换的次数;Determine the number of ping-pong handovers according to the identity of the serving cell;
当所述乒乓切换的次数达到设定次数时,获取第二网络制式信息;以及When the number of times of the ping-pong handover reaches a set number of times, acquiring the second network standard information; and
根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。Switching from the first network standard to the second network standard according to the second network standard information.
根据多个实施例,本申请第四方面提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:According to various embodiments, a fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取服务小区的标识,所述服务小区的当前网络为第一网络制式;acquiring an identifier of a serving cell, where the current network of the serving cell is the first network standard;
根据所述服务小区的标识确定乒乓切换的次数;Determine the number of ping-pong handovers according to the identity of the serving cell;
当所述乒乓切换的次数达到设定次数时,获取第二网络制式信息;以及When the number of times of the ping-pong handover reaches a set number of times, acquiring the second network standard information; and
根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。Switching from the first network standard to the second network standard according to the second network standard information.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and advantages of the present application will be apparent from the description, drawings, and claims.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为一个实施例中网络切换方法的应用环境图。FIG. 1 is an application environment diagram of a network switching method in one embodiment.
图2为一个实施例中网络切换方法的流程示意图。FIG. 2 is a schematic flowchart of a network switching method in an embodiment.
图3为一个实施例中确定乒乓切换次数的流程示意图。FIG. 3 is a schematic flowchart of determining the number of ping-pong handovers in one embodiment.
图4为另一个实施例中网络制式切换方法的流程示意图。FIG. 4 is a schematic flowchart of a method for switching a network format in another embodiment.
图5为一个实施例中两种网络切换方法结合使用的流程示意图。FIG. 5 is a schematic flowchart of the combined use of two network switching methods in one embodiment.
图6为一个实施例中网络切换装置的结构框图。FIG. 6 is a structural block diagram of a network switching apparatus in an embodiment.
图7为一个实施例中计算机设备的内部结构图。FIG. 7 is a diagram of the internal structure of a computer device in one embodiment.
目前的网络切换方式,在一些偏远郊区或者干扰严重地区使用时,由于网络信号差,导致用户在使用移动终端时容易网络延迟。When the current network switching method is used in some remote suburbs or areas with severe interference, due to poor network signals, users are prone to network delays when using mobile terminals.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
本申请提供的网络切换方法,可以应用于如图1所示的应用环境中。其中,终端102与基站104通过网络进行通信。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,基站104包括若干子基站,每个子基站对应一个服务小区。终端102入网,即与任意一个子基站实现通信连接,终端102将获取其接入的子基站的服务小区信息。当发生小区切换时,例如终端获取的服务小区信息从A1变化为A2,则表明终端从服务小区A1对应的子基站变化为接入服务小区A2对应的子基站。The network switching method provided by the present application can be applied to the application environment shown in FIG. 1 . The
在一个实施例中,如图2所示,提供了一种网络切换方法,以该方法应用于图1中的终端为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a network switching method is provided, and the method is applied to the terminal in FIG. 1 as an example for description, including the following steps:
步骤S202,获取服务小区的标识,所述服务小区的当前网络为第一网络制式。Step S202: Acquire an identifier of a serving cell, where the current network of the serving cell is a first network standard.
其中,服务小区是终端当前通信接入的小区。其中,小区也称蜂窝小区,是指在蜂窝移动通信系统中,其中的一个基站或基站的一部分(例如扇形天线)所覆盖的区域,在这个区域内移动终端可以通过无线信道可靠地与基站进行通信。服务小区的标识是终端识别各服务小区的依据,根据服务小区标识可以识别唯一对应的服务小区。The serving cell is a cell currently accessed by the terminal for communication. Among them, a cell is also called a cell, which refers to an area covered by a base station or a part of the base station (such as a sector antenna) in a cellular mobile communication system. In this area, a mobile terminal can reliably communicate with the base station through a wireless channel. communication. The identifier of the serving cell is the basis for the terminal to identify each serving cell, and the unique corresponding serving cell can be identified according to the serving cell identifier.
终端支持多种网络制式,即能够通过多种网络制式通信,包括但不限于第二代GSM、TDMA等数字手机(2G)、第2.5代移动通信技术GPRS、第三代移动通信技术3G、第四代移动通信技术4G。第一网络制式是其中的任意一种,第二网络制式是区别于第一网络制式的其它网络制式。第一网络制式和第二网络制式分别用于予以区别终端的网络制式发生切换前的两种不同网络制式状态。如第一网络制式是相对发生变化后的第二网络制式而言的,第一网络制式是未发生切换前的网络制式,如4G,第二网络制式是发生切换后的网络制式,则第二网络制式可以为除4G之外的其它网络制式,如GPRS,3G,5G等。同一网络制式下在不同时段内可以注册多个不同的服务小区信息。The terminal supports a variety of network standards, that is, it can communicate through a variety of network standards, including but not limited to the second generation GSM, TDMA and other digital mobile phones (2G), the 2.5th generation mobile communication technology GPRS, the third generation mobile communication technology 3G, The fourth generation of mobile communication technology 4G. The first network standard is any one of them, and the second network standard is another network standard that is different from the first network standard. The first network standard and the second network standard are respectively used to distinguish two different network standard states before the network standard of the terminal is switched. If the first network standard is relative to the second network standard after the change, the first network standard is the network standard before the switch, such as 4G, and the second network standard is the network standard after the switch, then the second network standard The network standard can be other network standard except 4G, such as GPRS, 3G, 5G and so on. Under the same network standard, multiple different serving cell information can be registered in different time periods.
具体地,终端开机之后,注意到第一网络制式,本地记录并保存当前注册的网络制式下的服务小区信息。Specifically, after the terminal is powered on, it notices the first network standard, and locally records and saves the serving cell information under the currently registered network standard.
步骤S204,根据所述服务小区的标识确定乒乓切换的次数。Step S204: Determine the number of ping-pong handovers according to the identity of the serving cell.
其中,在无线通信系统中,当移动终端从一个小区(指基站或者基站的覆盖范围)移动到另一个小区时,为了保证用户的通信不会中断,会在两个不同的小区之间进行切换。小区切换是指移动终端接入的服务小区发生变化,根据服务小区的标识发生变化,可以确定终端接入的服务小区发生变化。例如,移动终端接入的服务小区的标识从B1变化为B2,由于标识B1对应的为服务小区A1,标识B2对应的为服务小区A2。此时,标识从B1变为B2,即意味着服务小区从A1变为A2。即发生一次小区切换或者称发生一次服务小区切换。Among them, in the wireless communication system, when the mobile terminal moves from one cell (referring to the base station or the coverage of the base station) to another cell, in order to ensure that the user's communication will not be interrupted, it will switch between two different cells. . The cell handover refers to the change of the serving cell accessed by the mobile terminal. According to the change of the identity of the serving cell, it can be determined that the serving cell accessed by the terminal has changed. For example, the identity of the serving cell accessed by the mobile terminal changes from B1 to B2, because the identity B1 corresponds to the serving cell A1, and the identity B2 corresponds to the serving cell A2. At this time, the identity changes from B1 to B2, which means that the serving cell changes from A1 to A2. That is, a cell handover occurs or a serving cell handover occurs.
乒乓切换是指终端在当前驻留的服务小区和其相邻小区之间来回进行切换。乒乓切换可以是从某服务小区出发,和某相邻小区发生来回切换后,又回到该服务小区。例如当前服务小区为A1、相邻小区A2,从A1切换到A2再切换到A1,即当前服务小区A1和相邻小区A2之间发生一次乒乓切换(A1-A2-A1),从A1切换到A2再切换到A1再切换到A2再切换到A1,即表明当前服务小区A1和相邻小区A2之间发生两次乒乓切换(A1-A2-A1-A2-A1)。假设存在相邻小区A3,切换从当前服务小区A1到A2再到A3再到A1,发生三次小区切换,但没有发生乒乓切换(A1-A2-A3-A1)。Ping-pong handover means that the terminal switches back and forth between the serving cell where it currently resides and its neighboring cells. The ping-pong handover may start from a certain serving cell, switch back and forth with a certain neighboring cell, and then return to the serving cell. For example, the current serving cell is A1 and the adjacent cell A2, switching from A1 to A2 and then switching to A1, that is, a ping-pong handover (A1-A2-A1) occurs between the current serving cell A1 and the adjacent cell A2, and the handover from A1 to A2 switches to A1, then switches to A2, and then switches to A1, which means that two ping-pong handovers (A1-A2-A1-A2-A1) occur between the current serving cell A1 and the adjacent cell A2. Assuming that there is an adjacent cell A3, the handover is from the current serving cell A1 to A2 to A3 to A1, and three cell handovers occur, but no ping-pong handover (A1-A2-A3-A1).
当根据服务小区的标识确定发生乒乓切换时,终端将记录发生乒乓切换的次数。When it is determined that ping-pong handover occurs according to the identity of the serving cell, the terminal will record the number of times that ping-pong handover occurs.
步骤S206,当所述乒乓切换的次数达到设定次数时,获取第二网络制式信息。Step S206, when the number of times of the ping-pong handover reaches a set number of times, obtain second network standard information.
具体地,设定次数是终端设置的发生乒乓切换的最大次数值。当乒乓切换的次数达到设定次数时,终端判定乒乓切换的频率较频繁,导致信号不稳定或中断,将影响终端业务。如移动终端的支付业务,用户在发起支付请求时,如果移动终端发生频繁的乒乓切换,导致信号不稳定或中断,数据链路稳定性极大降低,出现支付业务请求无法正常传递到对端服务器,导致支付失败,严重影响用户体验。从而开始获取第二网络制式信息。Specifically, the set number of times is the maximum number of times of ping-pong handovers set by the terminal. When the number of ping-pong handovers reaches the set number of times, the terminal determines that the frequency of ping-pong handovers is frequent, resulting in unstable or interrupted signals, which will affect terminal services. For example, in the payment service of the mobile terminal, when the user initiates the payment request, if frequent ping-pong switching occurs on the mobile terminal, the signal is unstable or interrupted, the stability of the data link is greatly reduced, and the payment service request cannot be normally transmitted to the peer server. , resulting in payment failure, which seriously affects the user experience. Thus, the acquisition of the second network standard information is started.
步骤S208,根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。Step S208, switching from the first network standard to the second network standard according to the second network standard information.
其中,在第一网络制式下,终端频繁发生乒乓切换,表明第一网络制式下小区信号漂移较为严重,为了不影响移动终端的业务,根据获取的第二网络制式信息,终端从第一网络制式切换到第二网络制式。Among them, in the first network mode, the terminal frequently performs ping-pong handover, indicating that the cell signal drift is serious under the first network mode. In order not to affect the service of the mobile terminal, according to the acquired information of the second network mode Switch to the second network standard.
上述网络切换的方法、装置、计算机设备和存储介质,获取服务小区的标识,服务小区的当前网络为第一网络制式;根据服务小区的标识确定乒乓切换的次数;当乒乓切换的 次数达到设定次数时,获取第二网络制式信息;根据第二网络制式信息,从第一网络制式切换至第二网络制式。即当检测到移动终端发生频繁的乒乓切换时,将第一网络制式切换成第二网络制式。避免频繁乒乓切换导致的通信质量降低,能使移动终端保持较好的网络通信状况,从而减少网络延迟。The above-mentioned method, device, computer equipment and storage medium for network handover obtain the identification of the serving cell, and the current network of the serving cell is the first network standard; determine the number of ping-pong handovers according to the identification of the serving cell; when the number of ping-pong handovers reaches the set value When the number of times, the second network standard information is obtained; according to the second network standard information, switching from the first network standard to the second network standard is performed. That is, when it is detected that frequent ping-pong switching occurs in the mobile terminal, the first network standard is switched to the second network standard. By avoiding the degradation of communication quality caused by frequent ping-pong handovers, the mobile terminal can maintain a better network communication state, thereby reducing network delay.
在一个实施例中,如图3所示,所述根据所述服务小区的标识确定乒乓切换的次数,包括:In an embodiment, as shown in FIG. 3 , the determining the number of ping-pong handovers according to the identity of the serving cell includes:
步骤S2042,根据所述服务小区的标识确定所述服务小区的切换路径。Step S2042: Determine the handover path of the serving cell according to the identifier of the serving cell.
具体地,服务小区的标识是可以被终端识别记录的,各服务小区之间的切换记录也可以通过窗口自定义设置记录范围阈值(记录范围阈值为自然数)。并且服务小区和各服务小区之间的切换记录是以压栈方式存储的。例如输入记录范围阈值为3,则终端会存储包括当前服务小区在内的前面3条服务小区及其切换记录,如A3为当前服务小区,在A3之前经过从A4切换到A2,再由A2切换到A1的过程(A4-A2-A1-A3),如果设置记录范围阈值为3,则被存储的只有A2、A1、A3,以及A2-A1-A3的切换记录,而A4将不会被存储。服务小区的切换路径即服务小区的切换记录,如从A2切换到A1,再由A1切换到A3这一切换记录(A2-A1-A3)即服务小区的切换路径。Specifically, the identity of the serving cell can be identified and recorded by the terminal, and the handover record between each serving cell can also be set by customizing the recording range threshold through the window (the recording range threshold is a natural number). And the handover records between the serving cell and each serving cell are stored in a stacking manner. For example, if the input record range threshold is 3, the terminal will store the first three serving cells including the current serving cell and their switching records. If A3 is the current serving cell, it will be switched from A4 to A2 before A3, and then switched by A2. In the process to A1 (A4-A2-A1-A3), if the record range threshold is set to 3, only the switching records of A2, A1, A3, and A2-A1-A3 will be stored, and A4 will not be stored . The handover path of the serving cell is the handover record of the serving cell, such as switching from A2 to A1, and then from A1 to A3. The handover record (A2-A1-A3) is the handover path of the serving cell.
步骤S2044,判断所述切换路径是否为乒乓切换,并确定所述乒乓切换的次数。Step S2044, judging whether the handover path is a ping-pong handover, and determining the number of times of the ping-pong handover.
具体地,根据切换路径如果监测到终端在两个服务小区之间来回切换,如从一个服务小区出发,和另一个服务小区来回切换,并最终又回到出发的服务小区,此时可以确定发生乒乓切换。在设定的记录范围阈值,每发生一次乒乓切换,终端记录一次,并将发生乒乓切换的次数进行累加,从而得到发生乒乓切换的总次数。Specifically, according to the switching path, if it is monitored that the terminal switches back and forth between two serving cells, such as starting from one serving cell, switching back and forth with another serving cell, and finally returning to the starting serving cell, it can be determined that the occurrence of Ping-pong switching. At the set recording range threshold, each time a ping-pong handover occurs, the terminal records it once, and accumulates the number of ping-pong handovers to obtain the total number of ping-pong handovers.
将在设定的记录范围阈值内,发生乒乓切换的总次数和终端设定次数进行比较,如果乒乓切换次数小于设定次数,终端不会获取第二网络制式信息。当乒乓切换次数达到设定次数时,终端将开始获取第二网络制式信息。The total number of ping-pong handovers that occur within the set recording range threshold is compared with the number of times set by the terminal. If the number of ping-pong handovers is less than the set number, the terminal will not acquire the second network standard information. When the number of ping-pong handovers reaches the set number, the terminal will start to acquire the second network standard information.
本实施例中,通过根据服务小区标识确定服务小区的切换路径。当根据切换路径确定为乒乓切换时,确定乒乓切换次数。确定乒乓切换的次数达到设定次数时,从而可以判断发生频繁的乒乓切换,将从第一网络制式切换成第二网络制式。从频繁发生乒乓切换的网络制式切换到相对没有频繁发生乒乓切换的网络制式,因而能使移动终端保持较好的网络通信状况,从而减少网络延迟。In this embodiment, the handover path of the serving cell is determined according to the serving cell identifier. When it is determined to be ping-pong handover according to the handover path, the number of ping-pong handovers is determined. When it is determined that the number of ping-pong handovers reaches the set number of times, it can be determined that frequent ping-pong handovers occur, and the first network standard is switched to the second network standard. Switching from a network standard with frequent ping-pong handovers to a network standard with relatively less frequent ping-pong handovers enables the mobile terminal to maintain a better network communication state, thereby reducing network delays.
在一个实施例中,如图4所示,网络切换方法还包括:步骤S402,获取所述服务小区的信号值。In one embodiment, as shown in FIG. 4 , the network handover method further includes: step S402 , acquiring the signal value of the serving cell.
其中,服务小区的信号值是表明服务小区信号具体的数值,包括多种形式,如LTE(4G网络)主要参考RSRP((Reference Signal Receiving Power,参考信号接收功率,其范围是-140到-44db)、WCDMA(3G网络)参考指标为RSCP(Receive Signal Channel Power、导频信道信号强度)、GSM(2G网络)参考指标为CSQ和RSSI(Received Signal Strength Indication接收的信号强度指示)。Among them, the signal value of the serving cell is a specific value indicating the signal of the serving cell, including various forms. For example, LTE (4G network) mainly refers to RSRP ((Reference Signal Receiving Power, reference signal received power, and its range is -140 to -44db) ), WCDMA (3G network) reference indicators are RSCP (Receive Signal Channel Power, pilot channel signal strength), GSM (2G network) reference indicators are CSQ and RSSI (Received Signal Strength Indication received signal strength indication).
步骤S404,根据所述信号值和预设等级阈值,确定信号质量等级。Step S404: Determine the signal quality level according to the signal value and the preset level threshold.
具体地,预设等级阈值是划分服务小区信号质量的依据,可设定多个等级阈值,在划分时,将服务小区的信号值和预设等级阈值进行比较,确定信号质量等级。根据信号质量等级,可以区分当前网络的信号质量。信号质量等级越高,说明信号质量越好。一种实施方式中,设置有两种等级阈值,将信号值与等级阈值进行比较,可以确定三种信号质量等级,分别为第一信号质量等级、第二信号质量等级和第三信号质量等级。其中,第三信号质量等级的信号质量最高,第二信号质量等级的信号质量次之,第一信号质量等级的信号质量最差,此时,第一信号质量等级为最差信号质量等级。Specifically, the preset level threshold is the basis for dividing the signal quality of the serving cell, and multiple level thresholds can be set. When dividing, the signal value of the serving cell is compared with the preset level threshold to determine the signal quality level. According to the signal quality level, the signal quality of the current network can be distinguished. The higher the signal quality level, the better the signal quality. In one embodiment, two level thresholds are set, and by comparing the signal value with the level threshold, three signal quality levels can be determined, namely the first signal quality level, the second signal quality level and the third signal quality level. The signal quality of the third signal quality level is the highest, the signal quality of the second signal quality level is second, and the signal quality of the first signal quality level is the worst. In this case, the first signal quality level is the worst signal quality level.
步骤S406,当所述信号值处于设定信号质量等级的持续时间大于预设时长时,获取第二网络制式信息;其中,设定信号质量等级包括最差信号质量等级。Step S406, when the duration of the signal value at the set signal quality level is longer than a preset duration, obtain second network standard information; wherein the set signal quality level includes the worst signal quality level.
其中,预设时长是信号值能持续处于设定信号质量等级的最长时间,例如设定预设时长可以是20秒。服务小区的信号值处于设定信号质量等级的持续时间不大于预设时长时,终端在该信号值下正常通信,并获取新的服务小区的信号值。当服务小区的信号值处于设定信号质量等级的持续时间大于预设时长时,终端获取第二网络制式信息。Wherein, the preset duration is the longest time that the signal value can continue to be at the set signal quality level, for example, the preset preset duration may be 20 seconds. When the duration of the signal value of the serving cell at the set signal quality level is not greater than the preset duration, the terminal communicates normally under the signal value, and acquires the signal value of the new serving cell. When the duration for which the signal value of the serving cell is at the set signal quality level is greater than the preset duration, the terminal acquires the second network standard information.
具体地,设定信号质量等级是信号质量较差导致通信受影响,当服务小区的信号值持续处于设定信号质量等级时,表明服务小区信号值的质量较差,会影响终端业务的完成。如移动终端的支付业务,用户在发起支付请求时,如果移动终端的信号质量较差,支付业务请求将无法正常或快速传递到对端服务器,从而导致支付失败。Specifically, the set signal quality level is that the communication is affected due to poor signal quality. When the signal value of the serving cell is continuously at the set signal quality level, it indicates that the quality of the signal value of the serving cell is poor, which will affect the completion of terminal services. For example, in the payment service of a mobile terminal, when a user initiates a payment request, if the signal quality of the mobile terminal is poor, the payment service request will not be transmitted to the peer server normally or quickly, resulting in payment failure.
为了不影响移动终端的业务,终端将会获取第二网络制式。如果将前述的第一信号质量等级和第二信号质量等级均视为信号质量较差的等级,则服务小区的信号值持续处于第一信号质量等级、或者持续处于第二信号质量等级且在第一信号质量等级或第二信号质量等级持续的时长达到预设时长时,将触发终端获取第二网络制式。In order not to affect the service of the mobile terminal, the terminal will acquire the second network standard. If both the aforementioned first signal quality level and second signal quality level are regarded as levels with poor signal quality, the signal value of the serving cell is continuously at the first signal quality level, or is continuously at the second signal quality level and is at the first signal quality level. When the duration of a signal quality level or a second signal quality level reaches a preset duration, the terminal will be triggered to acquire the second network standard.
步骤S408,根据所述获取第二网络制式信息,从第一网络制式切换至第二网络制式。Step S408, switching from the first network standard to the second network standard according to the obtained second network standard information.
具体地,在第一网络制式下,由于服务小区的信号值质量较差,将触发终端从第一网络制式切换到第二网络制式。Specifically, in the first network standard, due to the poor quality of the signal value of the serving cell, the terminal is triggered to switch from the first network standard to the second network standard.
本实施例中,根据信号值和预设等级阈值,确定信号质量等级。当持续处于设定信号质量等级时,获取第二网络制式信息,其中,设定信号质量等级包括最差信号质量等级。根据第二网络制式信息,从第一网络制式切换至第二网络制式。根据服务小区的信号值确定服务小区的信号质量等级,当该服务小区的信号质量等级处于设定信号质量等级(即信号质量等级较差)的持续时间大于预设时长时时,确定该服务小区的信号质量等级较差,从而根据第二网络制式信息,触发终端获取第二网络制式。避免频繁乒乓切换导致的通信质量降低,能使移动终端保持较好的网络通信状况,从而减少网络延迟。In this embodiment, the signal quality level is determined according to the signal value and the preset level threshold. When the signal quality level is set continuously, the second network standard information is acquired, wherein the set signal quality level includes the worst signal quality level. Switch from the first network standard to the second network standard according to the second network standard information. The signal quality level of the serving cell is determined according to the signal value of the serving cell, and when the duration of the signal quality level of the serving cell at the set signal quality level (that is, the signal quality level is poor) is greater than the preset duration, the signal quality level of the serving cell is determined. The signal quality level is poor, so the terminal is triggered to acquire the second network standard according to the second network standard information. By avoiding the degradation of communication quality caused by frequent ping-pong handovers, the mobile terminal can maintain a better network communication state, thereby reducing network delay.
在一个实施例中,网络切换方法还包括:每间隔一预设周期获取所述服务小区的标识和信号值,并记录所述服务小区的标识和信号值。In one embodiment, the network handover method further includes: acquiring the identity and signal value of the serving cell every preset period, and recording the identity and signal value of the serving cell.
具体地,预设周期以操作系统的上报周期为一个预设周期。每间隔一个预设周期,终端定时获取服务小区的标识和对应该服务小区的信号值,并记录该服务小区的标识和信号值。例如预设周期为5秒,在终端获取服务小区A1之后,等待5秒的预设周期,自动获取下一个服务小区,并记录该下一个服务小区的标识和信号值。Specifically, the preset period takes the reporting period of the operating system as a preset period. Every preset period, the terminal periodically obtains the identity of the serving cell and the signal value corresponding to the serving cell, and records the identity and signal value of the serving cell. For example, the preset period is 5 seconds. After the terminal acquires the serving cell A1, it waits for a preset period of 5 seconds, automatically acquires the next serving cell, and records the identifier and signal value of the next serving cell.
在本实施例中,通过每间隔一预设周期获取服务小区的标识和信号值,并对其进行记录,从而对服务小区定时更新,使终端对是否发生小区切换、频繁的乒乓切换判断更准确。In this embodiment, the identification and signal value of the serving cell are acquired and recorded every preset period, so as to update the serving cell regularly, so that the terminal can more accurately judge whether a cell handover or frequent ping-pong handover occurs. .
在一个实施例中,网络切换方法还包括:所述预设时长为所述预设周期的N倍。In one embodiment, the network switching method further includes: the preset duration is N times the preset period.
具体地,预设时长是预设周期的N倍,N为自然数。即预设时长可以是N个预设周期时长累计之和。如N为4时,预设时长是4个预设周期时长之和,当在连续5个预设周期内,5个预设周期内的服务小区的信号值均处于设定信号质量等级,由于5个预设周期的时长累计之和大于4个预设周期时长之和(即预设时长),因此可以判定服务小区的信号值较差,终端获取第二网络制式信息。Specifically, the preset duration is N times the preset period, and N is a natural number. That is, the preset duration may be the cumulative sum of N preset cycle durations. For example, when N is 4, the preset duration is the sum of the durations of 4 preset cycles. In 5 consecutive preset cycles, the signal values of the serving cells in the 5 preset cycles are all at the set signal quality level. The cumulative sum of the durations of the five preset cycles is greater than the sum of the durations of the four preset cycles (ie, the preset duration), so it can be determined that the signal value of the serving cell is poor, and the terminal obtains the second network standard information.
在一个实施例中,在所述获取第二网络制式信息之后,还包括:根据存储的已使用的网络制式,校验所述第二网络制式是否为未使用过的网络制式;根据所述第二网络制式在各网络制式中的优先级顺序,校验所述第二网络制式的优先级是否优先于所述第一网络制式;如果所述第二网络制式未使用过,或者所述第二网络制式的优先级优先于所述第一网络制式,则执行根据所述获取第二网络制式信息,从第一网络制式切换至第二网络制式的步骤。In an embodiment, after the acquiring the second network standard information, the method further includes: checking whether the second network standard is an unused network standard according to the stored used network standard; The priority order of the second network standard in each network standard, check whether the priority of the second network standard is higher than that of the first network standard; if the second network standard has not been used, or the second network standard If the priority of the network standard is higher than that of the first network standard, the step of switching from the first network standard to the second network standard is performed according to the obtained second network standard information.
具体地,已使用的网络制式是在获取第二网络制式之前,已经在移动终端存储的已经使用过的网络制式。当进入网络制式切换这一场景过程中,切换前的第一网络制式所使用的网络制式,称之为已使用的网络制式。切换前的第一网络制式未使用的网络制式,称之 为未使用的网络制式。Specifically, the used network standard is the used network standard that has been stored in the mobile terminal before acquiring the second network standard. When entering into the process of network standard switching, the network standard used by the first network standard before switching is called the used network standard. The unused network standard of the first network standard before the handover is called the unused network standard.
校验第二网络制式是否为之前未使用的网络制式是指,校验第二网络制式对应的网络制式是否和移动终端存储的已经使用过的网络制式相同。例如4G制式是移动终端已经存储的已使用的网络制式,此时,则校验第二网路制式对应的网路制式是否为4G制式。将第二网络制式信息和存储的已使用的网络制式进行比较,移动终端通过比较两者信息是否一致,可以确定移动终端是否之前使用过第二网络制式。因为未使用过的网络制式可能是未被利用到的最佳网络制式。Verifying whether the second network standard is a network standard that has not been used before refers to verifying whether the network standard corresponding to the second network standard is the same as the network standard that has been used and stored in the mobile terminal. For example, the 4G standard is the used network standard that has been stored by the mobile terminal. In this case, it is checked whether the network standard corresponding to the second network standard is the 4G standard. The second network standard information is compared with the stored used network standard, and the mobile terminal can determine whether the mobile terminal has used the second network standard before by comparing whether the two information are consistent. Because the unused network standard may be the best network standard that has not been utilized.
移动终端默认的网络配置的优先级顺序,从高到低依次是5G、4G、3G、2G,当服务小区发生频繁的乒乓切换,或者服务小区的信号值长时间持续处于设定信号质量等级时,由于网络配置的优先级越高,相应地,网络通信的信号、效率更高,因此移动终端会优先切换到优先级顺序排名较高的网络制式。The priority order of the default network configuration of the mobile terminal, from high to low, is 5G, 4G, 3G, and 2G. When frequent ping-pong handovers occur in the serving cell, or the signal value of the serving cell continues to be at the set signal quality level for a long time , because the higher the priority of the network configuration, the higher the signal and efficiency of the network communication, the mobile terminal will preferentially switch to the network standard with a higher priority order.
如果第二网络制式先前未被使用,或者第二网络制式的优先级较高时,则移动终端会切换到该未被使用过的第二网络制式,或者切换到该优先级较高的第二网络制式。从而发掘或保证获得的第二网络制式是最佳网络制式。If the second network standard has not been used before, or the priority of the second network standard is higher, the mobile terminal will switch to the unused second network standard, or switch to the second network standard with the higher priority network format. Thereby, it is discovered or guaranteed that the obtained second network standard is the best network standard.
校验通过的第二网络制式,即移动终端获得的之前未被使用的网络制式或者优先级高于第一网络制式的一种网络制式。第二网络制式通过校验,表明该第二网络制式是当前最佳网络制式,从而移动终端将从频繁发生乒乓切换或者服务小区的信号值持续处于设定信号质量等级的第一网络制式切换至该通过校验的第二网络制式。The second network standard that passes the verification, that is, a network standard that has not been used before or a network standard that has a higher priority than the first network standard obtained by the mobile terminal. The second network standard passes the verification, indicating that the second network standard is the current best network standard, so that the mobile terminal will switch from the first network standard with frequent ping-pong handovers or the signal value of the serving cell at the set signal quality level to the first network standard. The second network standard that passes the verification.
在本实施例中,通过优先获取之前未被使用的网络制式或者优先级更高的网络制式,使获得的第二网络制式为最佳网络制式,移动终端从信号不稳定、或较差的第一网络制式切换到第二网络制式,从而使移动终端能保持较好的网络通信状况,减少网络延迟。In this embodiment, by preferentially obtaining a network standard that has not been used before or a network standard with a higher priority, the obtained second network standard is the best network standard. One network standard is switched to the second network standard, so that the mobile terminal can maintain a better network communication condition and reduce network delay.
在另一个实施例中,存储的已使用的网络制式,还包括切换前的初始网络制式、以及在获取最佳的网络制式之前,每次切换后得到的网络制式。最佳的网络制式是移动终端切换到最后一个第二网络制式时,对应的网络制式,该最后一个第二网络制式可以使移动终端正常执行其业务。从第一网络制式小区切换至第二网络制式小区的过程可能会发生多次,直至最后一个第二网络制式可以使移动终端正常执行网络通信功能,实现其业务。即移动终端在第一次将第一网络制式切换至第二网络制式时,所获得的第二网络制式并非最佳的网络制式,因此移动终端会继续将该第二网络制式作为新的第一网络制式,重复执行判断服务小区是否发生频繁的乒乓切换或者服务小区的信号值是否长时间持续处于设定信号等级等各步骤,直至移动终端获得能满足其业务正常需求的网络制式,此时的网络制 式即最后一个第二网络制式。In another embodiment, the stored used network standard further includes the initial network standard before handover, and the network standard obtained after each handover before obtaining the best network standard. The optimal network standard is the corresponding network standard when the mobile terminal switches to the last second network standard, and the last second network standard can enable the mobile terminal to perform its services normally. The process of switching from the cell of the first network standard to the cell of the second network standard may occur multiple times until the last second network standard enables the mobile terminal to normally perform network communication functions and realize its services. That is, when the mobile terminal switches the first network standard to the second network standard for the first time, the obtained second network standard is not the best network standard, so the mobile terminal will continue to use the second network standard as the new first network standard. network standard, repeat the steps of judging whether frequent ping-pong handovers occur in the serving cell or whether the signal value of the serving cell continues to be at the set signal level for a long time, until the mobile terminal obtains a network standard that can meet the normal needs of its business. The network standard is the last second network standard.
在一个实施例中,如图5所示,网络切换方法还包括:In one embodiment, as shown in FIG. 5 , the network switching method further includes:
步骤S502,获取服务小区的标识,所述服务小区的当前网络为第一网络制式。Step S502: Acquire an identifier of a serving cell, where the current network of the serving cell is the first network standard.
步骤S504,根据所述服务小区的标识确定所述服务小区的切换路径。Step S504: Determine the handover path of the serving cell according to the identifier of the serving cell.
步骤S506,判断所述切换路径是否为乒乓切换。Step S506, determine whether the handover path is a ping-pong handover.
如果判断切换路径为乒乓切换,执行步骤S508,确定所述乒乓切换的次数。If it is determined that the handover path is a ping-pong handover, step S508 is executed to determine the number of times of the ping-pong handover.
当根据所述切换路径判定不是乒乓切换时,执行步骤S50,记录当前预设周期的服务小区的标识和信号值,直到下一个预设周期才会继续获取一个新的服务小区的标识和信号值。When it is determined according to the handover path that it is not a ping-pong handover, step S50 is performed to record the identification and signal value of the serving cell in the current preset period, and will continue to acquire the identification and signal value of a new serving cell until the next preset period .
在步骤S508之后,执行步骤S510,校验乒乓切换次数是否达到设定次数。当所述乒乓切换的次数达到设定次数时,执行步骤S52,获取第二网络制式信息。After step S508, step S510 is executed to verify whether the number of ping-pong handovers reaches the set number of times. When the number of times of the ping-pong handover reaches the set number, step S52 is executed to acquire the second network standard information.
在前述的设定的记录范围阈值内,如果乒乓切换的次数未达到设定次数,终端将判定发生的不是频繁的乒乓切换,将执行步骤S50,记录当前预设周期的服务小区的标识和信号值,直到下一个预设周期才会继续获取一个新的服务小区的标识和信号值。Within the aforementioned set recording range threshold, if the number of ping-pong handovers does not reach the set number of times, the terminal will determine that frequent ping-pong handovers do not occur, and will perform step S50 to record the identity and signal of the serving cell of the current preset period value, and will not continue to acquire the identity and signal value of a new serving cell until the next preset period.
在步骤S510之后,执行步骤S52,根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。After step S510, step S52 is executed to switch from the first network standard to the second network standard according to the second network standard information.
同时,在步骤S50之后,同步执行步骤S512,根据所述信号值和预设等级阈值,确定信号质量等级。Meanwhile, after step S50, step S512 is performed synchronously, and the signal quality level is determined according to the signal value and the preset level threshold.
步骤S514,校验服务小区的信号值处于设定信号质量等级的持续时间是否大于预设时长。Step S514, check whether the duration of the signal value of the serving cell at the set signal quality level is greater than the preset duration.
当所述信号值处于设定信号质量等级的持续时间大于预设时长时,执行步骤S52,获取第二网络制式信息;其中,设定信号质量等级包括最差信号质量等级。When the duration of the signal value at the set signal quality level is greater than the preset duration, step S52 is performed to obtain second network standard information; wherein the set signal quality level includes the worst signal quality level.
当所述信号值处于设定信号质量等级的持续时间不大于预设时长时,将执行步骤S50,记录当前预设周期的服务小区的标识和信号值,直到下一个预设周期才会继续获取一个新的服务小区的标识和信号值。When the duration of the signal value at the set signal quality level is not longer than the preset duration, step S50 will be executed to record the identity and signal value of the serving cell in the current preset period, and will not continue to acquire until the next preset period The identity and signal value of a new serving cell.
在步骤S52之后,执行步骤S54,根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。After step S52, step S54 is executed to switch from the first network standard to the second network standard according to the second network standard information.
在本实施例中,使切换网络制式的渠道有多种,移动终端可以通过判定乒乓切换次数是否达到设定次数,或信号值处于设定信号质量等级的持续时间是否大于预设时长,确定是否需要获取第二网络制式信息,进而将第一网络制式切换至第二网络制式。触发移动终 端获取第二网络制式的方式更多,也方便移动终端更快地实现网络制式的切换,提高网络制式的切换效率。In this embodiment, there are various channels for switching network standards, and the mobile terminal can determine whether the number of ping-pong switching reaches the set number, or whether the duration of the signal value at the set signal quality level is greater than the preset duration. The information of the second network standard needs to be acquired, and then the first network standard is switched to the second network standard. There are more ways to trigger the mobile terminal to acquire the second network standard, and it is also convenient for the mobile terminal to realize the switching of the network standard more quickly and improve the switching efficiency of the network standard.
应该理解的是,虽然上述实施例涉及的各流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述实施例涉及的各流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. Alternatively, the order of execution of the stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in the other steps.
在一个实施例中,如图6所示,提供了一种网络切换装置,包括:小区信息获取模块602、网络制式获取模块604和网络制式切换模块606,其中:In one embodiment, as shown in FIG. 6, a network switching apparatus is provided, including: a cell
小区信息获取模块602,用于获取服务小区的标识,所述服务小区的当前网络为第一网络制式。The cell
乒乓切换次数确定模块604,用于根据所述服务小区的标识确定乒乓切换的次数;A ping-pong handover
网络制式获取模块606,用于当所述乒乓切换的次数达到设定次数时,获取第二网络制式信息。The network
网络制式切换模块608,用于根据所述获取第二网络制式信息,从第一网络制式切换至第二网络制式。The network
在另一个实施例中,网络制式获取模块,包括:In another embodiment, the network standard acquisition module includes:
切换路径确定模块,用于根据所述服务小区的标识确定所述服务小区的切换路径;a handover path determination module, configured to determine the handover path of the serving cell according to the identity of the serving cell;
切换次数获取模块,用于判断所述切换路径是否为乒乓切换,并确定所述乒乓切换的次数。The handover times acquisition module is used for judging whether the handover path is a ping-pong handover, and determining the times of the ping-pong handover.
在一个实施例中,网络切换装置,包括:In one embodiment, the network switching device includes:
小区信息获取模块,还用于获取所述服务小区的信号值;a cell information acquisition module, further configured to acquire the signal value of the serving cell;
信号质量等级确定模块,用于根据所述信号值和预设等级阈值,确定信号质量等级;a signal quality level determination module, configured to determine the signal quality level according to the signal value and the preset level threshold;
网络制式获取模块,还用于当所述信号值处于设定信号质量等级的持续时间大于预设时长时,获取第二网络制式信息;其中,设定信号质量等级包括最差信号质量等级;The network standard obtaining module is further configured to obtain the second network standard information when the duration of the signal value at the set signal quality level is longer than a preset duration; wherein, the set signal quality level includes the worst signal quality level;
网络制式切换模块,用于根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。The network standard switching module is used for switching from the first network standard to the second network standard according to the second network standard information.
在一个实施例中,网络制式获取模块,还包括:In one embodiment, the network standard acquisition module further includes:
小区信息记录模块,用于每间隔一预设周期获取所述服务小区的标识和信号值,并记录所述服务小区的标识和信号值。The cell information recording module is configured to acquire the identity and signal value of the serving cell every preset period, and record the identity and signal value of the serving cell.
在一个实施例中,网络切换装置,还包括:网络制式信息校验模块,In one embodiment, the network switching device further includes: a network standard information verification module,
网络制式信息校验模块,用于根据存储的已使用的网络制式,校验所述第二网络制式是否为未使用过的网络制式;a network standard information verification module, configured to verify whether the second network standard is an unused network standard according to the stored used network standard;
根据所述第二网络制式在各网络制式中的优先级顺序,校验所述第二网络制式的优先级是否优先于所述第一网络制式;According to the priority order of the second network standard in each network standard, verifying whether the priority of the second network standard is prior to the first network standard;
如果所述第二网络制式未使用过,或者所述第二网络制式的优先级优先于所述第一网络制式,则执行根据所述获取第二网络制式信息,从第一网络制式切换至第二网络制式的步骤。If the second network standard has not been used, or the priority of the second network standard is higher than that of the first network standard, execute switching from the first network standard to the second network standard according to the obtained second network standard information. Two network standard steps.
关于网络切换装置的具体限定可以参见上文中对于网络切换方法的限定,在此不再赘述。上述网络切换装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the network switching apparatus, reference may be made to the limitation on the network switching method above, which will not be repeated here. Each module in the above-mentioned network switching device may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种网络切换方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 7 . The computer equipment includes a processor, memory, a communication interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies. The computer program implements a network switching method when executed by the processor. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
获取服务小区的标识,所述服务小区的当前网络为第一网络制式;acquiring an identifier of a serving cell, where the current network of the serving cell is the first network standard;
根据所述服务小区的标识确定乒乓切换的次数;Determine the number of ping-pong handovers according to the identity of the serving cell;
当所述乒乓切换的次数达到设定次数时,获取第二网络制式信息;When the number of times of the ping-pong handover reaches a set number of times, acquiring the second network standard information;
根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。Switching from the first network standard to the second network standard according to the second network standard information.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
根据所述服务小区的标识确定所述服务小区的切换路径;determining the handover path of the serving cell according to the identity of the serving cell;
判断所述切换路径是否为乒乓切换,并确定所述乒乓切换的次数。It is judged whether the handover path is a ping-pong handover, and the number of times of the ping-pong handover is determined.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
获取所述服务小区的信号值;obtaining the signal value of the serving cell;
根据所述信号值和预设等级阈值,确定信号质量等级;determining the signal quality level according to the signal value and the preset level threshold;
当所述信号值处于设定信号质量等级的持续时间大于预设时长时,获取第二网络制式信息;其中,设定信号质量等级包括最差信号质量等级;When the duration of the signal value at the set signal quality level is greater than the preset duration, acquiring the second network standard information; wherein the set signal quality level includes the worst signal quality level;
根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。Switching from the first network standard to the second network standard according to the second network standard information.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:每间隔一预设周期获取所述服务小区的标识和信号值,并记录所述服务小区的标识和信号值。In one embodiment, the processor further implements the following steps when executing the computer program: acquiring the identity and signal value of the serving cell every preset period, and recording the identity and signal value of the serving cell.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
在所述获取第二网络制式信息之后,还包括:After the acquiring the second network standard information, the method further includes:
根据存储的已使用的网络制式,校验所述第二网络制式是否为未使用过的网络制式;According to the stored used network standard, verify whether the second network standard is an unused network standard;
根据所述第二网络制式在各网络制式中的优先级顺序,校验所述第二网络制式的优先级是否优先于所述第一网络制式;According to the priority order of the second network standard in each network standard, verifying whether the priority of the second network standard is prior to the first network standard;
如果所述第二网络制式未使用过,或者所述第二网络制式的优先级优先于所述第一网络制式,则执行根据所述获取第二网络制式信息,从第一网络制式切换至第二网络制式的步骤。If the second network standard has not been used, or the priority of the second network standard is higher than that of the first network standard, execute switching from the first network standard to the second network standard according to the obtained second network standard information. Two network standard steps.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取服务小区的标识,所述服务小区的当前网络为第一网络制式;acquiring an identifier of a serving cell, where the current network of the serving cell is the first network standard;
根据所述服务小区的标识确定乒乓切换的次数;Determine the number of ping-pong handovers according to the identity of the serving cell;
当所述乒乓切换的次数达到设定次数时,获取第二网络制式信息;When the number of times of the ping-pong handover reaches a set number of times, acquiring the second network standard information;
根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。Switching from the first network standard to the second network standard according to the second network standard information.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
根据所述服务小区的标识确定所述服务小区的切换路径;determining the handover path of the serving cell according to the identity of the serving cell;
判断所述切换路径是否为乒乓切换,并确定所述乒乓切换的次数。It is judged whether the handover path is a ping-pong handover, and the number of times of the ping-pong handover is determined.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
获取所述服务小区的信号值;obtaining the signal value of the serving cell;
根据所述信号值和预设等级阈值,确定信号质量等级;determining the signal quality level according to the signal value and the preset level threshold;
当所述信号值处于设定信号质量等级的持续时间大于预设时长时,获取第二网络制式信息;其中,设定信号质量等级包括最差信号质量等级;When the duration of the signal value at the set signal quality level is greater than the preset duration, acquiring the second network standard information; wherein the set signal quality level includes the worst signal quality level;
根据所述第二网络制式信息,从第一网络制式切换至第二网络制式。Switching from the first network standard to the second network standard according to the second network standard information.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
每间隔一预设周期获取所述服务小区的标识和信号值,并记录所述服务小区的标识和信号值。Acquire the identity and signal value of the serving cell every preset period, and record the identity and signal value of the serving cell.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
在所述获取第二网络制式信息之后,还包括:After the acquiring the second network standard information, the method further includes:
根据存储的已使用的网络制式,校验所述第二网络制式是否为未使用过的网络制式;According to the stored used network standard, verify whether the second network standard is an unused network standard;
根据所述第二网络制式在各网络制式中的优先级顺序,校验所述第二网络制式的优先级是否优先于所述第一网络制式;According to the priority order of the second network standard in each network standard, verifying whether the priority of the second network standard is prior to the first network standard;
如果所述第二网络制式未使用过,或者所述第二网络制式的优先级优先于所述第一网络制式,则执行根据所述获取第二网络制式信息,从第一网络制式切换至第二网络制式的步骤。If the second network standard has not been used, or the priority of the second network standard is higher than that of the first network standard, execute switching from the first network standard to the second network standard according to the obtained second network standard information. Two network standard steps.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
Claims (11)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011423478.7A CN112689310B (en) | 2020-12-08 | 2020-12-08 | Network switching method and device, computer equipment and storage medium |
| CN202011423478.7 | 2020-12-08 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022121315A1 true WO2022121315A1 (en) | 2022-06-16 |
Family
ID=75446368
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/107075 Ceased WO2022121315A1 (en) | 2020-12-08 | 2021-07-19 | Network handover method and apparatus, computer device, and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112689310B (en) |
| WO (1) | WO2022121315A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115767480A (en) * | 2022-11-03 | 2023-03-07 | 中车长江车辆有限公司 | Vehicle-mounted mobile terminal communication method, system, equipment and medium |
| CN116090406A (en) * | 2023-04-07 | 2023-05-09 | 湖南国科微电子股份有限公司 | Random verification method and device for ping-pong configuration circuit, upper computer and storage medium |
| CN117062171A (en) * | 2023-09-04 | 2023-11-14 | 深圳市乔安科技有限公司 | Automatic switching method, system and device for SIM card of terminal and storage medium |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112689310B (en) * | 2020-12-08 | 2022-11-15 | 深圳市广和通无线股份有限公司 | Network switching method and device, computer equipment and storage medium |
| CN113473559B (en) * | 2021-06-11 | 2024-12-20 | 青岛大学附属医院 | A 5G-based dedicated line network switching protection method |
| CN113873629B (en) * | 2021-12-01 | 2022-04-29 | 深圳市优克联新技术有限公司 | Communication mode adjusting method and device, application terminal and storage medium |
| CN114501573A (en) * | 2022-03-14 | 2022-05-13 | 北京小米移动软件有限公司 | Cell handover method, device, device and storage medium |
| CN114928866B (en) * | 2022-05-31 | 2024-12-06 | 展讯半导体(成都)有限公司 | Cell switching control method and communication device |
| CN115811768A (en) * | 2022-08-31 | 2023-03-17 | 合肥移瑞通信技术有限公司 | A network standard switching method, terminal, server and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080096560A1 (en) * | 2006-10-24 | 2008-04-24 | Nortel Networks Limited | System and method for ensuring handoffs across heterogeneous networks |
| CN101227705A (en) * | 2007-01-17 | 2008-07-23 | 华为技术有限公司 | Method and system for switching terminal to macro cell, terminal, access node and gateway |
| CN105517080A (en) * | 2015-11-28 | 2016-04-20 | 广东欧珀移动通信有限公司 | Network standard switching method and device and terminal |
| CN108650692A (en) * | 2018-05-07 | 2018-10-12 | 广东小天才科技有限公司 | Network system switching method and device and intelligent wearable device |
| CN112689310A (en) * | 2020-12-08 | 2021-04-20 | 深圳市广和通无线股份有限公司 | Network switching method and device, computer equipment and storage medium |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111148166B (en) * | 2019-03-14 | 2021-11-05 | 广东小天才科技有限公司 | A wearable device-based network optimization method and wearable device |
-
2020
- 2020-12-08 CN CN202011423478.7A patent/CN112689310B/en active Active
-
2021
- 2021-07-19 WO PCT/CN2021/107075 patent/WO2022121315A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080096560A1 (en) * | 2006-10-24 | 2008-04-24 | Nortel Networks Limited | System and method for ensuring handoffs across heterogeneous networks |
| CN101227705A (en) * | 2007-01-17 | 2008-07-23 | 华为技术有限公司 | Method and system for switching terminal to macro cell, terminal, access node and gateway |
| CN105517080A (en) * | 2015-11-28 | 2016-04-20 | 广东欧珀移动通信有限公司 | Network standard switching method and device and terminal |
| CN108650692A (en) * | 2018-05-07 | 2018-10-12 | 广东小天才科技有限公司 | Network system switching method and device and intelligent wearable device |
| CN112689310A (en) * | 2020-12-08 | 2021-04-20 | 深圳市广和通无线股份有限公司 | Network switching method and device, computer equipment and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| HUAWEI: "(TP for SON BL CR for TS 38.423): Clarification to Inter-system ping- pong", 3GPP DRAFT; R3-200673, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. RAN WG3, no. E-Meeting; 20200224 - 20200306, 14 February 2020 (2020-02-14), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051854165 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115767480A (en) * | 2022-11-03 | 2023-03-07 | 中车长江车辆有限公司 | Vehicle-mounted mobile terminal communication method, system, equipment and medium |
| CN116090406A (en) * | 2023-04-07 | 2023-05-09 | 湖南国科微电子股份有限公司 | Random verification method and device for ping-pong configuration circuit, upper computer and storage medium |
| CN116090406B (en) * | 2023-04-07 | 2023-07-14 | 湖南国科微电子股份有限公司 | Random verification method and device for ping-pong configuration circuit, upper computer and storage medium |
| CN117062171A (en) * | 2023-09-04 | 2023-11-14 | 深圳市乔安科技有限公司 | Automatic switching method, system and device for SIM card of terminal and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112689310B (en) | 2022-11-15 |
| CN112689310A (en) | 2021-04-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022121315A1 (en) | Network handover method and apparatus, computer device, and storage medium | |
| CN110557778B (en) | Power consumption control method and device of terminal and storage medium | |
| CN112533227B (en) | Method and communication device for quality of experience measurement | |
| CN102448187B (en) | The method of automatic access Wi-Fi network and terminal | |
| US9374776B2 (en) | Cell search control method, cell search control apparatus, mobile communication terminal, computer program and storage medium | |
| US11134405B2 (en) | Measurement method and user equipment | |
| US20130331100A1 (en) | Method and system of providing small cell information to user equipments in a heterogeneous network environment | |
| CN110636593A (en) | Connection mode control method, terminal and storage medium | |
| CN102333326A (en) | Method and device for processing measurement configuration and recording of wireless communication system | |
| CN111800842B (en) | Mobility measurement method and device in RRC idle or inactive state | |
| WO2024007959A1 (en) | Mobility control method, terminal, and network side device | |
| CN113329422B (en) | Network connection control method, terminal device and storage medium | |
| WO2023071208A1 (en) | Operator network switching method and apparatus, communication module, terminal, and storage medium | |
| WO2015062072A1 (en) | Heterogeneous system measurement method, terminal and network device | |
| CN113329458A (en) | Method, device and equipment for controlling cell residence and computer storage medium | |
| WO2020132905A1 (en) | Cell signal quality measurement method and apparatus, device, and system | |
| CN110677869A (en) | Network connection control method, terminal and storage medium | |
| CN114698035A (en) | Neighbor cell measurement triggering method and device and computer readable storage medium | |
| JP7385059B2 (en) | Wireless resource management measurement methods, terminal equipment and network equipment | |
| CN111405579A (en) | Network optimization method and device, storage medium and electronic equipment | |
| CN108200618A (en) | Cell switching control method, device, storage medium and mobile terminal | |
| CN113316205B (en) | Cell switching method, device, electronic equipment and computer readable storage medium | |
| CN112399515B (en) | Communication processing method and device | |
| CN115088290B (en) | Apparatus and method for wireless communication, and computer-readable storage medium | |
| CN112714465B (en) | Neighborhood measurement method, device, equipment, and storage medium |
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: 21902026 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: 21902026 Country of ref document: EP Kind code of ref document: A1 |