Network switching control method and apparatus
Through the control method of switching from a high-standard network to a low-standard network in a micro-motion or static state in a mobile communication scenario, and returning to the high-standard network when appropriate, the terminal's service lags and drops when the network quality is poor are solved. It solves online problems and improves the stability and user experience of network switching.
Patent Information
- Application Number
- PCT/CN2023/132571
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-24
- Filing Date
- 2023-11-20
- Publication Date
- 2024-08-29
AI Technical Summary
In mobile communication scenarios, network switching by terminals when the network quality is poor may cause service lags or disconnections. There is room for improvement in the existing network switching function.
Provide a control method for network switching. The terminal switches from a high-standard network to a low-standard network in a micro-motion or static state, and attempts to return to the high-standard network after exiting these states. It prevents frequent states through delayed message processing and timer mechanisms. Switch to ensure that network switching has minimal impact on business.
It reduces the negative impact of network switching on delay-sensitive services, improves the stability of the network environment and user experience, and reduces lags and disconnections caused by frequent switching.
Smart Images

Figure CN2023132571_29082024_PF_FP_ABST
Abstract
Description
Network switching control method and device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 24, 2023, with application number 202310207428.2 and invention name “Network Switching Control Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a method and device for controlling network switching. Background Art
[0003] In a mobile communication scenario, a terminal implements services based on a wireless mobile network. If the quality of the network the terminal accesses is poor, the terminal switches to another network.
[0004] The current network switching function still has room for improvement.
[0005] Summary of the Invention
[0006] The present application provides a method and apparatus, the purpose of which is to solve the problem of how to improve the network selection function of a terminal.
[0007] In order to achieve the above objectives, this application provides the following technical solutions:
[0008] The first aspect of the present application provides a network switching control method, which is applied to a terminal that supports at least a first wireless communication network and a second wireless communication network, wherein the communication standard of the first wireless communication network is higher than the communication standard of the second wireless communication network. The network switching control method includes the following steps: using the first wireless communication network to operate a service, switching from the first wireless communication network to the second wireless communication network during the operation of the service, maintaining the state of operating the service using the second wireless communication network in a micro-motion or static state, and attempting to return to the first wireless communication network after exiting the micro-motion or static state or stopping the service. Because the first wireless communication network is used to operate the service, it indicates that the quality of the first wireless communication network can meet the service requirements. Since the position of the terminal changes little in the micro-motion or static state, maintaining the state of operating the service using the second wireless communication network can meet the service requirements and can also reduce the possibility of service lag or even disconnection caused by network switching. After exiting the micro-motion or static state, it is possible that the network quality does not meet the requirements, so attempting to return to the first wireless communication network can obtain better network quality.
[0009] In some implementations, a micro-motion or stationary state is a designated state, and the process of monitoring a terminal in the designated state includes: based on sensor data, monitoring the terminal entering the designated state, processing a designated state entry delay message, and updating the terminal's state to enter the designated state, wherein the designated state entry delay message is processed after a first time delay from the time it was sent. Thus, after monitoring entry into the designated state, the state update is delayed for a period of time to prevent frequent state switching.
[0010] In some implementations, a process for updating a terminal's state to enter a specified state by processing a "delayed entry into a specified state" message includes: if no "delayed entry into a specified state" message exists, sending a "delayed entry into a specified state" message and setting a first delay duration; if a "delayed entry into a specified state" message exists, updating the terminal's state to enter the specified state after the delay of the "delayed entry into a specified state" message expires. If a "delayed entry into a specified state" message exists, the message is not sent repeatedly, thereby ensuring accurate state updates and reducing jitter in entering the specified state.
[0011] In some implementations, after monitoring that the terminal enters the specified state, the method further includes: deleting the specified state exit delay message to ensure that the latest monitored state covers the previous state, thereby improving the accuracy of the state update result.
[0012] In some implementations, the process of monitoring for exiting a micro-motion or inactivity state includes: monitoring, based on sensor data, detecting that the terminal has exited a specified state; processing an exit-specified-state delay message; and updating the terminal's state to exit the specified state. The exit-specified-state delay message is processed after a second time delay from when it was sent. After monitoring for exiting the specified state, the state update is delayed for a period of time to prevent frequent state switching.
[0013] In some implementations, the first duration is shorter than the second duration. The first duration is the duration of entering the micro-motion or stationary state, and the second duration is the duration of exiting the micro-motion or stationary state. The first duration is shorter than the second duration, indicating that entering the micro-motion or stationary state is updated more frequently. Therefore, entering the micro-motion or stationary state has a higher priority than exiting the micro-motion or stationary state, so as to minimize the negative impact of network switching on services.
[0014] In some implementations, the process of updating the terminal status to the exit specified state by processing the exit specified state delay message includes: if there is no exit specified state delay message, sending the exit specified state delay message and setting a second delay time; if there is already an exit specified state delay message, after the delay of the specified state delay message ends, updating the terminal status to the exit specified state. This can ensure accurate status update and reduce jitter when exiting the specified state.
[0015] In some implementations, after monitoring that the terminal exits the specified state, the method further includes: deleting a message delaying entry into the specified state, and promptly deleting messages that are inconsistent with the latest monitored state to improve the accuracy of the updated state.
[0016] In some implementations, a terminal includes an application processor and a modem. Before maintaining a service on a second wireless communication network while in a micro-motion or stationary state, the terminal further includes: the application processor sending a message to the modem to suppress the first wireless communication network, starting a suppression timer for the first wireless communication network, and monitoring the expiration of the first wireless communication network timer. The timer is configured to suppress the network for a period of time before returning to the first wireless communication network. Expiration of the timer indicates the expiration of the suppression period, thereby avoiding unlimited suppression.
[0017] In some implementations, the process of attempting to return to the first wireless communication network includes: the application processor sending a message to the modem to release the suppression of the first wireless communication network, and the modem attempting to return to the first wireless communication network. The application processor and the modem collaborate to implement the network switch, thereby balancing the service's network needs.
[0018] In some implementations, a process for switching from a first wireless communication network to a second wireless communication network includes: an application processor sending a message to a modem requesting a switch from the first wireless communication network to the second wireless communication network, and the modem switching from the first wireless communication network to the second wireless communication network. The application processor collaborates with the modem to implement the network switch, thereby balancing service requirements for the network.
[0019] The second aspect of the present application provides a terminal, comprising: a memory and at least one processor; the memory is used to store application programs, and the at least one processor is used to execute application programs to implement the network switching control method provided in the first aspect of the present application.
[0020] A third aspect of the present application provides a computer storage medium for storing a computer program. When the computer program is executed, it is used to implement the network switching control method provided in the first aspect of the present application.
[0021] A fourth aspect of the present application provides a computer program product. When the computer program product is run on a computer, the computer executes the network switching control method provided in the first aspect of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is an example diagram of a scene of a real-time battle game running on a mobile phone;
[0023] FIG2 is a diagram illustrating a structure of a terminal according to an embodiment of the present application;
[0024] FIG3 is a diagram illustrating a terminal framework according to an embodiment of the present application;
[0025] FIG4 is a flow chart of a network switching control method provided by an embodiment of the present application;
[0026] FIG5 is a flow chart of the status of a monitoring terminal provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship.
[0028] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0029] The "multiple" involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first" and "second" are only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance or order.
[0030] For the sake of convenience, the technical terms involved in the embodiments of this application are first explained:
[0031] A wireless communication system can be understood as a system including terminals and a network (wireless communication network).
[0032] Wireless communication systems include, but are not limited to, Global System of Mobile Communication (GSM) systems, Code Division Multiple Access (CDMA) systems, Wideband Code Division Multiple Access (WCDMA) systems, Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD) systems, Universal Mobile Telecommunication System (UMTS), and Fifth Generation Mobile Communication Systems (5G).
[0033] The GSM system is also known as the second-generation communication system, or 2G. The CDMA and WCDMA systems are also known as the third-generation communication systems, or 3G. LTE systems, such as LTE TDD systems, are also known as the fourth-generation communication systems, or 4G. 5G networks include 5G standalone (SA) networks.
[0034] Terminals include but are not limited to mobile phones, tablet computers, desktops, laptops, notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, netbooks, personal digital assistants (PDAs), wearable electronic devices, smart watches and other electronic devices that can support wireless communication.
[0035] The terminal may also be called terminal equipment (Terminal Equipment), user equipment (User Equipment), mobile station (Mobile Station, MS), mobile terminal (Mobile Terminal), etc.
[0036] Descendant (high) standards and predecessor (low) standards: The sequence is obtained according to the development order of network standards: 2G, 3G, 4G, 5G. The earlier (low) standards in the sequence are called the predecessor standards of the later (high) standards, and the later (high) standards are called the descendant standards of the earlier (low) standards. For example, 5G is the descendant standard of 2G, 3G and 4G, 3G is the descendant standard of 2G, and 3G is the predecessor standard of 4G.
[0037] Figure 1 shows an example of a mobile phone running a game app over a wireless communication network. In Figure 1, the mobile phone is running a game app that currently displays a real-time battle interface. Users can control the mobile phone interface to play against other users in real time.
[0038] Understandably, real-time gaming is a latency-sensitive service (i.e., a latency-sensitive service). This high latency sensitivity translates to a higher demand for lower latency. In other words, increased latency between the wireless network and the phone will significantly negatively impact latency-sensitive services. For example, in the scenario shown in Figure 1, if the user is playing a real-time game and the current 5G network quality is poor, the game will freeze or even disconnect.
[0039] To mitigate the negative impact of poor wireless network quality on services, mobile phones that support multiple wireless network standards can switch networks. For example, in the scenario shown in Figure 1, a mobile phone is running a real-time gaming game on a 5G network. If the phone measures the signal strength of a 5G cell below a threshold, the phone switches from the 5G network to the 4G network. After a period of time, the phone returns to the 5G network.
[0040] During the research process, the inventors found that switching of wireless communication network standards may have a negative impact on the business, such as causing business jams. In combination with the scenario shown in Figure 1, after a mobile phone switches from a 5G network to a 4G network for a period of time, it will switch from a 4G network to a 5G network, which may cause jams or even disconnections in real-time battles. In response to the above problems, an embodiment of the present application provides a network switching control method, the purpose of which is to set conditions for switching of wireless communication networks in delay-sensitive business scenarios, and only allow the wireless communication network to switch when the conditions are met. If the conditions are not met, the switching of the wireless communication network is suppressed to reduce the negative impact of the switching of the wireless communication network on delay-sensitive businesses.
[0041] An embodiment of the present application discloses a network switching control method, which is applied to a terminal in a wireless communication system.
[0042] Taking a mobile phone as an example, as shown in FIG2 , the terminal includes a processor 310 , an external memory interface 320 , an internal memory 321 , a display screen 330 , a camera 340 , an antenna 1 , an antenna 2 , a mobile communication module 350 , and a wireless communication module 360 .
[0043] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal. In other embodiments, the terminal may include more or fewer components than shown, or some components may be combined or separated, or arranged differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0044] The processor 310 may include one or more processing units. For example, the processor 310 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0045] It is understood that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation. In other embodiments of the present application, different interface connection methods or a combination of multiple interface connection methods in the above embodiments may also be adopted.
[0046] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0047] The mobile communication module 350 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the terminal. The mobile communication module 350 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 350 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 350 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 350 can be set in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 350 can be set in the same device as at least some of the modules of the processor 310.
[0048] In some embodiments, the terminal initiates or receives a call request through the mobile communication module 350 and the antenna 1 .
[0049] The wireless communication module 360 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied on the terminal. The wireless communication module 360 can be one or more devices integrating at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 3, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310. The wireless communication module 360 can also receive the signal to be sent from the processor 310, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0050] An operating system runs on the above components (such as the application processor), such as the iOS operating system, the Android operating system, and the Windows operating system. Application programs can be installed and run on the operating system.
[0051] The operating system includes a layered structure, an example of which is included in FIG3 .
[0052] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0053] The application layer can include a series of application packages. As shown in Figure 3, the application package can include applications such as camera, gallery, call, map, and navigation.
[0054] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 3, the application framework layer may include a window manager, a content provider, a phone manager, etc. The application framework layer also includes a network switching control module that executes the network switching control method provided in the embodiments of the present application. The network switching control module includes a status monitoring module for monitoring the status of the terminal, which will be described in detail in conjunction with Figure 5.
[0055] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0056] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0057] The phone manager is used to provide terminal communication functions, such as call status management (including answering, hanging up, etc.).
[0058] The Android Runtime consists of a core library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system. The core library consists of two parts: one for the Java language's callable functions and the other for the Android core library.
[0059] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0060] The system library can include multiple functional modules, such as the surface manager and media libraries.
[0061] The kernel layer is the layer between hardware and software. Taking Figure 3 as an example, the kernel layer includes modem drivers and sensor drivers.
[0062] FIG3 also illustrates the hardware layer, which includes a modem and sensors as an example. The hardware in the hardware layer communicates with the software modules via corresponding drivers in the kernel layer. Sensors relevant to this application include, but are not limited to, gyroscopes, quick-break sensors, and accelerometers. Sensors relevant to this application may also be improved upon the aforementioned sensors, capable of sensing the user's state, such as when the user is stationary, slightly moving, walking, running, cycling, riding in a car, or riding in an elevator.
[0063] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to terminals based on operating systems such as iOS and Windows.
[0064] In an embodiment of the present application, the terminal supports at least a first network and a second network, and the first network and the second network are wireless communication networks of different standards in a wireless communication system. In the following embodiments, it is assumed that the first network is a high-standard wireless communication network, such as a 5G SA network (hereinafter referred to as the SA network), and the second network is a low-standard wireless communication network, such as a 4G network. The "high standard" and "low standard" described here are relative concepts. It can be understood that compared with the second network, the communication standard of the first network is higher than the communication standard of the second network, and the network with a high communication standard is the descendant network of the network with a low communication standard.
[0065] It is understandable that the network switching control method provided in this application is applicable to, but not limited to, delay-sensitive services running in a terminal. In the following embodiments, a real-time battle game is used as an example of a delay-sensitive service.
[0066] FIG4 is a flow chart of a method for controlling network switching of the terminal shown in FIG2 and FIG3 , which is executed by the network switching control module shown in FIG3 . As shown in FIG4 , the network switching control module runs in the application processor.
[0067] Figure 4 includes the following steps:
[0068] S101. Based on SA network parameters, a message is sent to the modem to switch from the SA network to the 4G network.
[0069] Parameters include but are not limited to: latency and signal strength.
[0070] It is understandable that, assuming that before S1, the terminal is connected to the SA network, that is, when the terminal needs to perform a service, the SA network is used to perform the service. The network switching module can obtain the parameters of the SA network and / or the performance parameters of the service (which can reflect the performance of the service), and trigger the measurement-based network switching based on the parameters of the SA network and / or the performance parameters of the service (that is, trigger the switching when the parameters reflect that the quality of the SA network is poor), that is, send a message to the modem to switch from the SA network to the 4G network, instructing the modem to switch from the SA network to the 4G network.
[0071] After receiving the message, the modem attempts to switch from the SA network to the 4G network. In this embodiment, it is assumed that the switch from the SA network to the 4G network is successful.
[0072] It can be understood that the network switching control module receives network parameters and sends a message to the modem based on the framework shown in FIG3 .
[0073] S102: Send a suppress SA message to the modem and start a suppress SA timer.
[0074] The purpose of suppressing the SA message is to prohibit switching from the 4G network to the SA network. The purpose of suppressing the SA timer is to set the duration of prohibiting switching from the 4G network to the SA network. It can be understood that the purpose of S102 is to prevent frequent network switching in a short period of time, that is, to prevent network jitter.
[0075] In some implementations, the suppress SA message includes an identifier of the 4G network but not an identifier of the SA network, indicating that access to the SA network is not allowed.
[0076] In some implementations, the suppress SA timer is a forward timer, for example, starting from 0. In other implementations, the suppress SA timer is a countdown timer, for example, counting down from a first duration to 0. The first duration may be pre-configured in the terminal.
[0077] It is understandable that the order of S101 and S102 is not a limitation.
[0078] S103: It is monitored that the SA suppression timer times out.
[0079] In some implementations, the SA timer is suppressed from timing out when the counting duration exceeds a first duration. In other implementations, the SA timer is suppressed from timing out when the counting duration begins at an initial value, such as 0, and ends at an end value, such as 0.
[0080] It is understandable that based on the role of suppressing SA messages and suppressing the SA timer, after the SA suppression timer times out, the suppression of SA network switching should be released. However, in this embodiment, in order to prevent the real-time battle game from being stuck or even disconnected due to network switching, the following steps are performed:
[0081] S104: Determine whether the terminal is in a specified state and in a real-time game.
[0082] The specified state includes a micro-motion or static state.
[0083] Stillness refers to absolute stillness, which can be understood as the position and posture (abbreviated as posture) of the terminal not changing.
[0084] Micro-motion refers to relative stillness, which can be understood as the user's position remaining unchanged while using the terminal. For example, if a user is using a terminal to play games in a fixed location, the terminal is in micro-motion. In other words, the user's position remains unchanged. Although the terminal's posture changes during operation, from the user's perspective, the terminal does not move from the user's current location to another location.
[0085] In some implementations, whether the terminal is in a micro-motion or static state is determined based on data collected by sensors in the terminal. A specific implementation is shown in FIG5 . In other implementations, the latest status is obtained from a status monitoring module as the basis for determining whether the terminal is in a specified state. The specific monitoring process of the status monitoring module is illustrated in FIG5 .
[0086] In some implementations, different interfaces in the game are configured with unique identifiers, for example, the main interface is identified as 0, the real-time battle interface is identified as 1, and the battle result display interface is identified as 2. In this case, the identifier of the game interface is used to determine whether the game is in a real-time battle game.
[0087] It is understandable that the order of determining whether the game is in a designated state and determining whether the game is in a real-time competitive game is not limited.
[0088] If the terminal is in a real-time battle game, because the real-time battle game has a high demand for lower latency, and on the one hand, the network switching process will cause service jamming or even disconnection, on the other hand, although the SA network has a lower latency under normal circumstances, as mentioned above, it has switched from the SA network to the 4G network, indicating that the SA network quality may still be poor. Therefore, in order to reduce the negative impact of the real-time battle game caused by network switching, it is necessary to suppress the terminal from switching from the 4G network to the SA network, so execute S105.
[0089] If the terminal is in the specified state, it means that the user who is using the terminal has not moved. Because the quality of the 4G network can support switching from the 5G network to the 4G network, it means that the quality of the 4G network at the location of the terminal (the location of the user) is better. Therefore, in order to reduce the negative impact of real-time battle games caused by network switching, it is necessary to suppress the terminal from switching from the 4G network to the SA network, so S105 is executed.
[0090] If the terminal is not in a real-time game, it means that the current service is not sensitive to delay, so there is no need to suppress the switching to the 4G network SA network, so S107 is executed.
[0091] If the terminal is not in the specified state, it means that the user who is using the terminal is moving. Therefore, it is possible that the network signal at the location where the user moves is poor and affects the business, so it is necessary to release the switch from the 4G network to the SA network, that is, execute S107.
[0092] S105: Monitor the terminal status and service status to obtain monitoring results.
[0093] In some implementations, the receiving sensor monitors the terminal's status based on sensor data transmitted by the framework shown in Figure 3. In other implementations, the monitoring result of the status monitoring module is called.
[0094] Based on the identifier of the interface displayed in the terminal, monitor the business status running in the terminal.
[0095] S106: Determine whether the monitoring result is to exit the specified state or end the real-time battle game. If yes, execute S107; if not, execute S105.
[0096] S107: Send a message to the modem to suppress SA.
[0097] In some implementations, the message for releasing the suppression of SA indicates the identifier of SA, indicating that the SA network can be accessed.
[0098] It is understandable that when the modem receives the message to release the suppression of SA, it can try to return to the SA network. Returning to the SA network can be understood as switching to the SA network (such as a scenario where business is running), or accessing the SA network (such as a scenario where the desktop is displayed and no business is running in the background).
[0099] As can be seen from the process shown in Figure 4, when a terminal user plays a real-time battle game or a game that is sensitive to network delay on a high-standard network and encounters a large application delay, weak signal, etc., resulting in game lag, it is generally believed that the SA network environment is poor or the signal is weak during the game, while the 4G network environment is good. The network performance is improved by changing the standard (S101), and when it is detected that the user is in a real-time battle game and is in a micro-motion or static state (S104-S105), after the standard is downgraded, the game will no longer switch the network standard until the user exits the micro-motion or static state, or ends the real-time battle game, and then the inhibition of returning to the high-standard network will be released (S106-S107). It can be seen that the process described in this embodiment is optimized in combination with the scenario in which the terminal user is located, which can greatly improve the performance of the network environment, and can also reduce the multiple freezes caused by the possibility of triggering multiple standard switches, thereby improving the gaming experience of the terminal user.
[0100] FIG5 is a flow chart of a monitoring state disclosed in an embodiment of the present application.
[0101] To facilitate understanding, the concepts to be used and the preprocessing process are first explained.
[0102] Sensor data is data collected by sensors on the terminal, including but not limited to gyroscopes and accelerometers.
[0103] The sensor data includes a first parameter and a second parameter. The first parameter indicates micro-movement and / or stillness, and the second parameter indicates exit or entry. It is understood that the sensor data at the same moment may include multiple first parameters, and these multiple first parameters may include values indicating both micro-movement and stillness. The value indicating micro-movement (the value of the first parameter) is referred to as micro-movement state data, and the value indicating stillness (the value of the first parameter) is referred to as static state data.
[0104] Before executing the process shown in FIG5 , it is necessary to first register the micro-motion state data and the static state data (i.e., a pre-processing process). In some implementations, when the terminal screen is on, the state monitoring module obtains and stores the micro-motion state data and the static state data from the sensor to identify the micro-motion state data and the static state data during the execution of the process shown in FIG5 .
[0105] The "Enter Inching Delay" message indicates the inching state. After being sent, its processing is delayed for a first duration. The "Exit Inching Delay" message indicates the exit from the inching state. After being sent, its processing is delayed for a second duration. The "Enter Static State Delay" message indicates the static state. After being sent, its processing is delayed for a first duration. The "Exit Static State Delay" message indicates the exit from the static state. After being sent, its processing is delayed for a second duration.
[0106] After being sent, the above message is stored in a pre-configured storage space and processed by the status monitoring module after the delay time is reached.
[0107] The following steps are included in Figure 5:
[0108] S201 : Based on received sensor data, a micro-motion state is monitored.
[0109] In some implementations, monitoring the micro-motion state data is equivalent to monitoring the micro-motion state.
[0110] S202, determine whether to enter the inching state or exit the inching state, if it is to exit the inching state, execute S203, if it is to enter the inching state, execute S208.
[0111] As described above, whether to enter or exit is determined based on the second parameter in the sensor data.
[0112] S203: Determine whether there is a message of entering the micro-motion delay. If not, execute S204; if yes, execute S206.
[0113] S204: Determine whether there is an exit micro-motion delay message. If not, execute S205; if yes, execute S207.
[0114] S205: Send an exit inching delay message and set the delay to 10 seconds.
[0115] The 10-second delay means that the message is processed 10 seconds after being sent. It is understandable that 10 seconds is the aforementioned second time length.
[0116] S206: Delete the message of entering the inching delay. After S206, execute S204.
[0117] S207 , after the delay ends, the latest status is updated to exit the micro-motion.
[0118] As can be seen from S201-S207, after monitoring the exit inching state, it is first determined whether there is an entry inching delay message. If so, it indicates that it was previously sent. After monitoring the exit inching state, the message is deleted and the monitored state is updated in a timely manner. If there is no entry inching delay message, it is determined whether there is an exit inching delay message. If so, it indicates that the exit inching delay message has been sent previously and does not need to be sent again. Instead, the previously sent exit inching delay message is updated to the latest state after the delay expires. If there is no exit inching delay message, the exit inching delay message is sent and a delay is set. After the delay expires, the latest state is updated to exit inching.
[0119] After detecting the inching, execute S208-S212:
[0120] S208: Determine whether there is an exit jog delay message. If not, execute S211; if yes, execute S209.
[0121] S209: Determine whether there is a message to enter the inching delay. If not, execute S210; if yes, execute S212.
[0122] S210: Send an inching delay message and set the delay to 5 seconds.
[0123] A 5-second delay means processing the message for 5 seconds after it's sent. It's understood that 5 seconds is the first duration mentioned above. The purpose of having the first duration be shorter than the second duration is to shorten the delay for incoming nudge delay messages, thereby enabling faster processing of incoming nudge delay messages. In other words, incoming nudges have a higher priority than exiting nudges, better ensuring the stability of real-time services.
[0124] S211, delete the exit jog delay message. After S211, execute S209.
[0125] S212: After the delay ends, the latest state is updated to enter the inching state.
[0126] As can be seen from S208-S212, after monitoring the inching state, the system first determines whether there is an exit inching delay message. If so, it indicates that the previously sent message is inconsistent with the currently monitored state. The previously sent message is then deleted, thereby promptly updating the monitored state. If there is no exit inching delay message, the system then determines whether there is an entry inching delay message. If so, it indicates that an entry inching delay message has already been sent. There is no need to resend it, but instead waits for the previously sent entry inching delay message to expire, and the latest state is updated to entry inching. If there is no entry inching delay message, the entry inching delay message is sent and a delay is set. After the delay expires, the latest state is updated to entry inching.
[0127] As mentioned above, it is possible to monitor both the micro-motion state and the static state. The process of monitoring the static state is as follows:
[0128] S213: Based on the received sensor data, a stationary state is detected.
[0129] In some implementations, monitoring the stationary state data is equivalent to monitoring the stationary state.
[0130] S214: Determine whether to enter or exit the stationary state. If exiting the stationary state, execute S215; if entering the stationary state, execute S220.
[0131] As described above, whether to enter or exit is determined based on the second parameter in the sensor data.
[0132] S215: Determine whether there is a message of entering into static delay. If not, execute S218; if yes, execute S216.
[0133] S216: Determine whether there is a message to exit the static delay. If not, execute S217; if yes, execute S219.
[0134] S217: Send an exit stillness delay message and set the delay to 10 seconds.
[0135] The 10-second delay means that the message is processed 10 seconds after being sent. It is understandable that 10 seconds is the aforementioned second time length.
[0136] S218: Delete the message of entering into static delay. After S218, execute S216.
[0137] S219: After the delay ends, the latest state is updated to exit the static state.
[0138] As can be seen from S213-S219, after monitoring the exit from the static state, if there is a previously sent message to enter static delay, the message is deleted and the monitored state is updated in a timely manner. If there is no enter static delay message, it is determined whether there is an exit static delay message. If there is, it indicates that the exit static delay message has been sent before, and there is no need to send it again. Instead, the previously sent exit static delay message is waited for after the delay ends, and the latest state is updated to exit static. If there is no exit static delay message, the exit static delay message is sent and a delay is set. After the delay ends, the latest state is updated to exit static.
[0139] After detecting that the device is in standby mode, execute S220-S224:
[0140] S220: Determine whether there is an exit static delay message. If not, execute S221; if yes, execute S223.
[0141] S221. Determine whether there is a message for entering into static delay. If not, execute S222; if yes, execute S224.
[0142] S222: Send a message to enter a standstill delay, and set the delay to 5 seconds.
[0143] A 5-second delay means that the message processing is delayed for 5 seconds after it is sent. It should be understood that 5 seconds is the first duration mentioned above. The purpose of making the first duration shorter than the second duration is to shorten the delay of the Entering Inactivity Delay message, thereby enabling faster processing of the Entering Inactivity Delay message. In other words, Entering Inactivity has a higher priority than Exiting Inactivity, thereby better ensuring the stability of real-time services.
[0144] S223: Delete the message for exiting the static delay. After S223, execute S221.
[0145] S224: After the delay ends, the latest state is updated to enter static state.
[0146] From S220 to S222, it can be seen that after the static state is detected, it is first determined whether there is an exit static delay message. If so, it means that the previously sent message is contrary to the current monitored state, and the previously sent message is deleted, thereby updating the monitored state in time.
[0147] If a Delayed Inactivity message has already been sent, there is no need to send it again. Instead, the system waits for the previously sent Delayed Inactivity message to expire and then updates the state to Inactivity. If a Delayed Inactivity message has not been sent, a Delayed Inactivity message is sent and a delay is set. After the delay expires, the system updates the state to Inactivity.
[0148] It can be seen from the process shown in FIG5 that the hedging method is adopted to judge the micro-motion and static states, which is beneficial to improving the stability of the micro-motion and static state judgment results.
[0149] Taking entering the micro-motion as an example, the state of entering the micro-motion represented by the sensor data hedges the exit micro-motion delay message sent within the previous 10 seconds, and the entry micro-motion delay message sent within the previous 5 seconds hedges the state of entering the micro-motion represented by the sensor data. Processing based on the hedge and obtaining the latest state is conducive to avoiding frequent state switching (i.e., state jitter) and thus obtaining a more stable state.
[0150] It is understandable that, based on the process shown in FIG5 , taking the monitoring of the inching state as an example, after S211, compared with the process shown in FIG5 , an alternative solution is: after executing S211, in addition to continuing to execute S209, the latest state is updated to the inching state based on the monitored inching state. In other words, regardless of whether the inching delay message already exists, the latest state is first updated to the inching state. Therefore, the latest state is more synchronized with the monitored result, that is, the update is more real-time. In this case, after the delay of the inching delay message (either existing or generated in S210) ends, the latest state is again updated to the inching state. It can be seen that this alternative solution has higher real-time performance.
[0151] An embodiment of the present application further provides a computer storage medium for storing a computer program. When the computer program is executed, it is used to implement the network switching control method shown in FIG4 .
Claims
1. A network switching control method, It is characterized in that Applied in a terminal, the terminal supports at least a first wireless communication network and a second wireless communication network, the communication standard of the first wireless communication network is higher than the communication standard of the second wireless communication network, the method includes: operating a service using the first wireless communication network; During operation of the service, switching from the first wireless communication network to the second wireless communication network; In a micro-motion or stationary state, maintaining a state of using the second wireless communication network to run the service; After exiting the micro-motion or static state or stopping the service, an attempt is made to return to the first wireless communication network.
2. The method according to claim 1, It is characterized in that The micro-motion or static state is a specified state; The process of monitoring that the terminal is in the specified state includes: Based on the sensor data, monitoring that the terminal enters the specified state; The state of the terminal is updated to enter the designated state by processing the designated state entry delay message, wherein the designated state entry delay message is processed after a first time period is delayed from being sent.
3. The method according to claim 2, It is characterized in that The updating the state of the terminal to enter the specified state by processing the entry-into-specified-state delay message comprises: In the absence of the message for delaying entering the specified state, sending the message for delaying entering the specified state and setting the first delay time; In the case where the designated state entry delay message already exists, after the designated state entry delay message ends, the state of the terminal is updated to enter the designated state.
4. The method according to claim 2 or 3, It is characterized in that After monitoring that the terminal enters the specified state, the method further includes: Delete the exit specified state delay message.
5. The method according to claim 2, It is characterized in that Monitoring the exit from the micro-motion or static state includes: Based on the sensor data, monitoring that the terminal exits the specified state; The state of the terminal is updated to exit the specified state by processing the exit-specified-state-delay message, wherein the exit-specified-state-delay message is processed after a second time period is delayed from being sent.
6. The method according to claim 5, It is characterized in that The first duration is shorter than the second duration.
7. The method according to claim 5 or 6, It is characterized in that The updating the state of the terminal to exit the specified state by processing the exit specified state delay message comprises: In the case where there is no exit-designated-state delay message, sending the exit-designated-state delay message and setting the second time length to delay; In the case where the designated state exit delay message already exists, after the designated state delay message ends, the state of the terminal is updated to exit the designated state.
8. The method according to any one of claims 5 to 7, It is characterized in that After monitoring that the terminal exits the specified state, the method further includes: The delay message for entering the specified state is deleted.
9. The method according to any one of claims 1 to 8, It is characterized in that The terminal includes an application processor and a modem; Before maintaining the state of using the second wireless communication network to run the service in the micro-motion or static state, the method further includes: The application processor sends a message to the modem to suppress the first wireless communication network, and starts a timer to suppress the first wireless communication network; It is monitored that the timer of the first wireless communication network times out.
10. The method according to claim 9, It is characterized in that The attempting to return to the first wireless communication network comprises: The application processor sends a message to the modem to release the suppression of the first wireless communication network; The modem attempts to return to the first wireless communication network.
11. The method according to claim 9 or 10, It is characterized in that The switching from the first wireless communication network to the second wireless communication network includes: The application processor sends a message to the modem to switch from the first wireless communication network to the second wireless communication network; The modem switches from the first wireless communication network to the second wireless communication network.
12. A terminal, It is characterized in that include: memory and at least one processor; The memory is used to store an application program, and the at least one processor is used to execute the application program to implement the network switching control method according to any one of claims 1 to 11.
13. A computer storage medium for storing a computer program, wherein when the computer program is executed, it is used to implement the network switching control method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Wireless communication method and wireless terminal
CN104969616A
Business initiating method and device, terminal and storage medium
CN112243280A
Network switching method and device and electronic equipment
CN112533261A
SNR-based blind fast return to LTE after a CSFB or srvcc call
US20170034753A1
