CN114071627A - Network switching method, intelligent terminal and storage medium - Google Patents

Network switching method, intelligent terminal and storage medium Download PDF

Info

Publication number
CN114071627A
CN114071627A CN202111327569.5A CN202111327569A CN114071627A CN 114071627 A CN114071627 A CN 114071627A CN 202111327569 A CN202111327569 A CN 202111327569A CN 114071627 A CN114071627 A CN 114071627A
Authority
CN
China
Prior art keywords
network
switching
target application
application
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111327569.5A
Other languages
Chinese (zh)
Inventor
朱林宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Chuanyin Communication Technology Co ltd
Original Assignee
Chongqing Chuanyin Communication Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Chuanyin Communication Technology Co ltd filed Critical Chongqing Chuanyin Communication Technology Co ltd
Priority to CN202111327569.5A priority Critical patent/CN114071627A/en
Publication of CN114071627A publication Critical patent/CN114071627A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a network switching method, an intelligent terminal and a storage medium, wherein the processing method can be applied to the intelligent terminal and comprises the following steps: when the first network is determined or identified to be in a network congestion condition, acquiring a second network parameter of a second network; and inputting the second network parameters into a preset model, determining or generating that the second network meets the switching condition of the target application according to the preset model, and switching to the second network. According to the method and the device, the network parameters of the second network can be obtained under the condition that the first network is determined to be congested, and the network accessed by the intelligent terminal when the application is used is switched under the condition that the network parameters of the second network meet the network switching condition of a certain application, so that the network accessed can be optimized for a certain application, the operation of switching the network is simplified, the network switching efficiency is improved, and the user experience is improved.

Description

Network switching method, intelligent terminal and storage medium
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a network switching method, an intelligent terminal, and a storage medium.
Background
With the development of wireless communication technology and intelligent terminals, intelligent terminals such as mobile phones have become an indispensable part of people's daily life, and people can obtain various services through the intelligent terminals, thereby providing convenience for life. When people acquire part of services, such as browsing a webpage, downloading resources in the webpage, watching live broadcast and the like, the intelligent terminal needs to be accessed to a network. In some implementations, the smart terminal may access a wireless communication technology (WiFi) network to obtain services, and may also access a mobile cellular network to obtain services.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: when the network quality of a certain communication network accessed by the intelligent terminal is not good, a user is required to manually switch the network. For example, when a WiFi network accessed by the smart terminal is congested with data or the packet loss rate is too high, when a user uses an application needing to access the network, the user using the application through the WiFi network can only wait, and when the user waits for the application to be intolerable, the user manually switches from the WiFi network accessed by the smart terminal to access the mobile cellular data network, so as to continue browsing the web page. The method needs the user to manually switch the network, and has complex operation and low network switching efficiency.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a network switching method, an intelligent terminal, and a storage medium, which can optimize an access network for a certain application, simplify network switching operations, facilitate user operations, improve network switching efficiency, and improve user experience.
In order to solve the foregoing technical problem, in a first aspect, the present application provides a network switching method, optionally applied to an intelligent terminal, including:
when the first network is determined or identified to be in a network congestion condition, acquiring a second network parameter of a second network;
and inputting the second network parameters into a preset model, determining or generating that the second network meets the switching condition of the target application according to the preset model, and switching to the second network.
Optionally, the preset model is a classification model; determining or generating a switching condition that the second network meets the target application according to a preset model, wherein the switching condition comprises the following steps:
inputting the second network parameters into the classification model, and determining or generating a classification result according to the classification model, wherein the classification result is used for indicating that the second network meets the switching condition of the target application;
after switching to the second network, the method further comprises:
and acquiring data of the target application through the second network.
Optionally, the method further comprises:
determining or generating an application category of the target application;
inputting the second network parameter into the classification model, and determining or generating a classification result according to the classification model, wherein the classification result comprises the following steps:
inputting the application category and the second network parameter into the classification model, and outputting a classification result whether to switch the network;
and when the switching network is yes, determining or generating that the second network meets the switching condition of the target application.
Optionally, before obtaining the second network parameter of the second network, the method further includes:
acquiring a network switching list, wherein the network switching list is set by a user or an intelligent terminal;
the network switching list comprises a target application, and the network congestion condition of the first network is determined or generated.
Optionally, before obtaining the second network parameter of the second network, the method further includes:
displaying a user interface of a target application, and acquiring data of the target application through a first network;
determining or generating an application category of the target application;
acquiring a first network parameter of a first network and a preset threshold range corresponding to an application type;
and determining or identifying that the first network is in a network congestion condition when the first network parameter value is within the preset threshold range.
Optionally, the obtaining data of the target application through the first network includes:
acquiring a network access sequence of a target application;
and determining or identifying a first network ranked first in the network access sequence, and acquiring the data of the target application through the first network.
Optionally, after the obtaining the data of the target application through the second network, the method further includes:
obtaining a third network parameter of the first network at the current moment
And inputting the third network parameter into the classification model, determining or generating that the first network meets the switching condition according to the classification model, and switching to the first network.
Optionally, the first network is a wireless communication technology WiFi network, and the second network is a mobile cellular data network; the method further comprises the following steps:
counting or determining the data volume transmitted by the second network;
and outputting prompt information for prompting the user, wherein the prompt information comprises the data volume.
Optionally, the network access sequence is set by the intelligent terminal or by the user.
In a second aspect, the present application further provides a network switching apparatus, including:
the acquisition unit is used for acquiring a second network parameter of a second network when the first network is determined or identified to be in a network congestion condition;
and the processing unit is used for inputting the second network parameters into a preset model, determining or generating a switching condition that the second network meets the target application according to the preset model, and switching to the second network.
In addition, in this aspect, reference may be made to related matters of the first aspect for further alternative implementations of the network switching apparatus, and details are not described here.
The application also provides an intelligent terminal, including: a memory, a processor, wherein the memory has a network switching program stored thereon, and the network switching program, when executed by the processor, implements the steps of any of the methods described above.
The present application also provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, performs the steps of the method as set forth in any one of the above.
As described above, the network switching method of the present application, applied to an intelligent terminal, includes the steps of: when the first network is determined or identified to be in a network congestion condition, acquiring a second network parameter of a second network; and inputting the second network parameters into a preset model, determining or generating that the second network meets the switching condition of the target application according to the preset model, and switching to the second network. By the technical scheme, the network parameters of the second network can be acquired under the condition that the first network is determined to be congested, and the network accessed by the intelligent terminal when the application is used is switched under the condition that the network parameters of the second network meet the network switching condition of a certain application, so that the function of optimizing the accessed network for a certain application is realized, the problem of tedious operation that a user needs to manually switch the network is solved, the operation of switching the network is simplified, the efficiency of switching the network is improved, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware structure of an intelligent terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a network handover method according to a first embodiment;
fig. 4a is a timing diagram illustrating a network handover method according to the first embodiment;
fig. 4b is a schematic user interface diagram illustrating a network switching method according to the first embodiment;
fig. 5 is a flowchart illustrating a network handover method according to a second embodiment;
FIG. 6 is a schematic structural diagram of a decision tree model according to a second embodiment;
fig. 7 is a flowchart illustrating a network handover method according to a third embodiment;
fig. 8 is a user interface diagram showing a network switching method according to the third embodiment;
fig. 9 is a schematic structural diagram of a network switching apparatus according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
Depending on the context, the words "if" and "if" as used herein may be interpreted as "at … …
The time "or" when … … "or" in response to a determination "or" in response to a detection ". Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that, step numbers such as 301 and 302 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform 302 first and then 301 in specific implementation, but these should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The smart terminal may be implemented in various forms. For example, the smart terminal described in the present application may include smart terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), TDD-LTE (Time Division duplex-Long Term Evolution, Time Division Long Term Evolution), 5G, and so on.
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor that may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems (e.g. 5G), and the like.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
The network switching method, the intelligent terminal and the storage medium provided by the embodiment of the present application are further described in detail below. Referring to fig. 3, fig. 3 is a flowchart illustrating a network handover method according to a first embodiment. The network switching method shown in FIG. 3 includes 301-302. The method of the embodiment of the present application may be executed by the mobile terminal shown in fig. 1, or may be executed by a chip in the mobile terminal, and the mobile terminal may be applied to the communication network system shown in fig. 2. The method shown in fig. 3 is executed by a mobile terminal as an example. Wherein:
301. and when the first network is determined or identified to be in the network congestion condition, acquiring second network parameters of a second network.
In the embodiment of the Application, the mobile terminal can be provided with a plurality of different Applications (APPs), and the user can obtain different services through the plurality of APPs installed in the mobile terminal, so that convenience is provided for the life of the user. In some implementations, when a part of the APP provides a service for a user, network data of the APP needs to be acquired, so as to be displayed in a user interface of the mobile terminal. The mobile terminal can also receive operation input by the user, and obtain the network data of the APP again according to the interaction between the user and the mobile terminal. Before acquiring network data of the APP, the mobile terminal needs to access a certain network. Alternatively, the networks to which the mobile terminal accesses may be divided into two categories: WiFi networks and mobile Cellular networks (Cellular networks). By WiFi network is meant a wireless local area network, a network in which a signal transmitting device receives signals from a related device (i.e., a signal receiving device such as a mobile terminal) supporting its technology by converting wired network signals into wireless signals. The mobile cellular network is a network that connects a mobile terminal and a network device (such as a base station) through a wireless channel by using a cellular wireless networking mode.
In some implementations, the mobile terminal defaults to access the network, for example, the mobile terminal defaults to preferentially access the WiFi network, and after the mobile terminal accesses the WiFi network, all data transmission in the mobile terminal is implemented by the WiFi network by default. When the mobile terminal has network congestion and a large amount of packet loss in the accessed WiFi network, the time delay for loading network data of one APP is longer for the mobile terminal, and a user can manually close the accessed WiFi network and switch to access the mobile cellular network when waiting for too long and being impatient. In the mode, a user cannot determine whether the performance of the network accessed by the current mobile terminal is reduced in real time, and only after the network data of the cached APP is loaded, the new network data of the APP is downloaded slowly and can be switched.
Optionally, the user starts the target application, the mobile terminal displays a user interface of the target application, that is, the target application is displayed on a foreground of the mobile terminal, and the data of the target application is acquired through a first network to which the current mobile terminal is accessed, so that the user can use the service provided by the target application according to the acquired data of the target application. Optionally, the mobile terminal may determine an application type of the target application, and in this application, the handover to the network is accurate to the granularity of APP, so the mobile terminal may determine whether the state of the current network can meet the usage requirement of the target application currently in the foreground, and if so, may continue to use the network, and/or if not, may handover the network. It can be understood that the network switching for the target application of the foreground does not affect the network of other APPs in the background for acquiring data. After other APPs are switched to the foreground in the background, the access can be performed according to a default network or a preset network.
Alternatively, the mobile terminal may determine an application category of the target application, which may be, for example, a shopping-type application, a video-playing-type application, a game-type application, and so on. The mobile terminal may obtain a first network parameter of the first network and a preset threshold range corresponding to the application category. The first network parameter may be one network parameter or a plurality of network parameters, and the network parameter may be used to describe whether the network to which the mobile terminal is currently accessing (i.e., the first network) is congested.
For example, the mobile terminal may determine a network delay of the current mobile terminal connecting to the first network by using a network diagnostic tool (Packet Internet Groper, PING), and the first network parameter may be a delay of the first network delay. The mobile terminal may also detect Quality of Service (QoS) of the current first network to obtain network delay, packet loss rate, jitter, throughput, and the like of the current first network, that is, the first network parameter may include delay of network delay, packet loss rate, jitter data, throughput, and the like, which is not limited in this application, for example, the first network parameter may further include network parameters such as Received Signal Strength Indication (RSSI), Reference Signal Receiving Power (RSRP), Reference Signal Receiving Quality (RSRQ), and the like.
Optionally, the preset threshold range corresponding to the application category is used for determining whether a network congestion occurs in a network to which the mobile terminal is currently connected. It can be understood that the applications of different application categories have different requirements on the network performance, and therefore, the obtained preset threshold ranges are different. Optionally, taking the first network parameter as the time delay of the network delay as an example, the preset threshold range may be an interval greater than a certain time delay, and if the value of the first network parameter is within the preset threshold range, it is determined that the first network does not satisfy the network congestion condition, and if the first network is not in the network congestion condition, the handover is not performed. And/or if the value of the first network parameter is not within the preset threshold range, determining that the first network is in a network congestion condition, namely that the current first network is congested and needs to be switched to other networks.
Optionally, when the first network parameter includes a plurality of network parameters, the obtained preset threshold ranges may be multiple, and each network parameter corresponds to one preset threshold range. If each network parameter in the first network parameters is within the corresponding preset threshold range, determining that the first network is in a network congestion condition, or determining that the first network is in a network congestion condition under the condition that the number of the network parameters in the corresponding preset threshold range in the first network parameters is greater than the threshold, or determining that the first network is in a network congestion condition under the condition that the ratio of the number of the network parameters in the corresponding preset threshold range in the first network parameters to the number of the parameters of the first network parameters is greater than the threshold, which is not limited in the present application.
Optionally, under the condition that it is determined that the first network meets the network congestion condition, a second network parameter of a second network may be obtained, and it is determined whether the second network meets the switching condition of the target application according to the second network parameter, if so, it is determined that the network performance of the second network meets the usage requirement of the target application, and then the second network may be switched to continue to obtain the data of the target application.
302. And inputting the second network parameters into a preset model, determining or generating a switching condition that the second network meets the target application according to the preset model, and switching to the second network.
Optionally, the mobile terminal may obtain a network parameter of the second network to obtain the second network parameter. And the switching condition of the target application is that the second network parameter meets the network performance requirement of the target application, if the second network parameter meets the network performance requirement of the target application, the second network is switched to obtain the data of the target application, and/or if the second network parameter does not meet the network performance requirement of the target application, the network parameter of a third network can be obtained, and judgment is carried out again.
Optionally, part or all of the applications installed in the mobile terminal may start the network handover service, which may be specifically set by the user, set according to the user preference and the type of the APP, or set by default by the mobile terminal. The mobile terminal stores a network switching list, the network switching list comprises one or more APPs, and the APPs in the network switching list start network switching service, namely, when the situation that the accessed network is in network congestion is determined or identified, the network switching service can be switched to other networks. If the network switching list includes the target application, whether the currently accessed network is in a network congestion condition can be determined according to a preset threshold range corresponding to the application category of the target application, so that whether switching is performed or not is determined. And/or if the target application is not included in the network switching list, the target application switching network follows the switching of the system network.
Optionally, each APP for starting the network handover service may correspond to a network access sequence, and the mobile terminal may access the network according to the network access sequence, and store the first-ranked network and the APP in a corresponding manner, that is, may be understood as binding the first-ranked network and the APP in the network access sequence. For example, the network access sequence may be a WiFi network priority, and the sequence is sorted from high to low according to the RSSI of each WiFi network, and after the WiFi network, the sequence may be a mobile cellular network, and for the mobile cellular network, the sequence may be sorted according to different network standards, for example, access 5G may be prioritized over 4G, access 4G may be prioritized over 3G, and the like, which is not limited in this application.
Optionally, if the target application is an application in the network handover list, the mobile terminal determines or identifies that the first network ranked in the network access sequence of the target application is the first network, binds the first network with the target application, and when the foreground application is the target application, first accesses the first network to obtain data of the target application. Optionally, if the first network is in a network congestion condition, the mobile terminal may obtain a second network parameter of a second network ranked second in the network access sequence of the target application.
Optionally, the mobile terminal may input the application category of the target application and the second network parameter into a classification model, where the classification model may be pre-trained, and determine or generate whether the second network meets the handover condition of the target application according to the classification model, that is, determine whether the second network meets the network performance requirement of the target application according to the classification model, where the classification model may determine or generate a classification result, and output the classification result, where the classification result is used to indicate whether the second network meets the handover condition of the target application. If the classification result output by the classification model is yes, it is determined or generated that the second network meets the switching condition of the target application, and the mobile terminal can be switched to the second network and acquire the data of the target application through the second network. And/or if the classification result output by the classification model is negative, the mobile terminal determines or generates that the second network does not meet the switching condition of the target application, and the mobile terminal may input the network parameter of the third network and the application category of the target application into the classification model for judgment, where the third network may be a network ranked at the third position in the network switching sequence.
Optionally, the classification model may be a decision tree model, a random forest model, or other classification models, which is not limited in this application. The mobile terminal may train the classification model, or train the classification model by using other training devices, and the mobile terminal determines the second network parameter by using the trained classification model, which is not limited in the present application.
Referring to fig. 4a, fig. 4a is a timing diagram of a network handover method according to a first embodiment, as shown in fig. 4a, multiple APPs (e.g., APP1, APP2, APP3, APPn) may set a Process Id (PID) of the APP that starts the network handover at the time of installation, and the PID may be used to uniquely identify the APP. After an APPx in multiple APPs starts a network handover service, a mobile terminal may determine an application category and a network access sequence of the APPx, and may bind the APPx with a first network (a first network) in the network access sequence, and after moving the APPx, the mobile terminal accesses the bound network (the first network) first through a new work service (newwork service) to obtain data of the APPx. When the mobile terminal determines or recognizes that the first network is in a network congestion condition, acquiring a second network parameter of a second network (a second network) arranged in a network access sequence, inputting the second network parameter into an Artificial Intelligence (AI) engine (AI core) of the mobile terminal, wherein the AI engine can call a pre-trained classification model, determine whether the second network meets the switching condition of the APPx through the classification model called by the AI core, and if so, the mobile terminal switches to access the second network to acquire data of the APPx.
Referring to fig. 4b, fig. 4b is a schematic user interface diagram of a network switching method according to the first embodiment. As shown in fig. 4b, after the mobile terminal switches the first network to the second network to obtain the data of the target application, a prompt message for prompting the user to switch the network may be output. For example, as shown in fig. 4b, the mobile terminal displays a user interface of an APP, taking the first network as a WiFi network and the second network as a mobile cellular network as an example, when the user interface is switched to the second network, a prompt message of "switch to the mobile cellular network to improve the network" may be output.
Optionally, the mobile terminal may receive an operation of a user, switch the target application to the background, that is, the foreground may display a user interface of another APP, and then the mobile terminal may determine whether to start a network switching service according to the APP switched to the foreground, that is, determine whether the APP switched to the foreground is in a network switching list, and if it is determined that the APP switched to the foreground is in the network switching list, the mobile terminal accesses the first network to which the APP is bound, and acquires data of the APP through the first network. While the target application in the background may simply fetch the data through the second network. Optionally, when the target application is switched to the foreground again, the mobile terminal may obtain the data through the accessed second network.
In the method described in fig. 3, when determining or recognizing that the first network is in a network congestion condition, the mobile terminal obtains a second network parameter of the second network, inputs the second network parameter into a preset model, determines or generates, according to the preset model, that the second network satisfies a handover condition of a target application, and switches to the second network. Therefore, based on the method described in fig. 3, on one hand, the network accessed by a certain application can be optimized, and the networks accessed by other applications do not interfere with each other, so that the experience of the user in using each APP installed in the mobile terminal is improved, and network congestion is avoided after the network is switched; on the other hand, the operation of switching the network is simplified, the operation of the user is more convenient, and the efficiency of switching the network is improved.
Referring to fig. 5, fig. 5 is another flowchart illustrating a network handover method according to a second embodiment. The network switching method shown in FIG. 5 includes 501-503. The method of the embodiment of the present application may be executed by the mobile terminal shown in fig. 1, or may be executed by a chip in the mobile terminal, and the mobile terminal may be applied to the communication network system shown in fig. 2. The method shown in fig. 5 is executed by a mobile terminal as an example.
It should be noted that the same or similar parts between the various embodiments in this application may be referred to each other. In the embodiments and the implementation methods/implementation methods in the embodiments in the present application, unless otherwise specified or conflicting in logic, terms and/or descriptions between different embodiments and between various implementation methods/implementation methods in various embodiments have consistency and can be mutually cited, and technical features in different embodiments and various implementation methods/implementation methods in various embodiments can be combined to form new embodiments, implementation methods, or implementation methods according to the inherent logic relationships thereof. The above-described embodiments of the present application do not limit the scope of the present application. Wherein:
in this embodiment of the application, the mobile terminal may train a preset model, and the preset model is a classification model. The application takes a classification model as a random forest model for example for explanation. Optionally, the training of the random forest model by the mobile terminal may include steps 501 to 503: step 501, obtaining a training sample set. Step 502, at least one decision tree model is constructed according to each training sample in the training sample set. And 503, combining the at least one decision tree model to obtain a random forest model. The following will be described specifically:
501. a training sample set is obtained.
Optionally, the mobile terminal training classification model is taken as an example for explanation, the mobile terminal may obtain a training sample set of the classification model, and the classification model meeting the requirement is trained based on the training sample set. Optionally, the training mode may be a supervised learning mode, that is, each training sample in the training sample set may include a network parameter and an application type, each training sample may carry a label indicating whether a network performance requirement of an application in the application type is met, and the label is also used to indicate whether the network parameter meets a handover condition of the application of the type. That is, each training sample may carry network parameters, and the label of the training sample is a binary value indicating whether the APP of the application type satisfies the switching condition.
Optionally, each training sample in the training sample set may be obtained manually, and the label carried by each training sample may be determined manually, or may be obtained by cleaning after being obtained from a log of network connection of the mobile terminal, which is not limited in this application.
Optionally, each training sample in the training sample set is used to train the initial classification model, so as to obtain a pre-trained classification model. Optionally, the classification model may be a decision tree model, a random forest model, or other classification models, and this application explains the classification model as a random forest model. The mobile terminal can construct at least one decision tree model according to each training sample in the training sample set, and combine all constructed decision tree models to obtain a random forest model.
502. And constructing at least one decision tree model according to each training sample in the training sample set.
The decision tree model is a classifier, and the random forest is also a classifier in nature, but the random forest includes a plurality of classifiers, that is, classifiers formed by combining a plurality of decision tree models.
Optionally, before the decision tree model is constructed according to each training sample in the training sample set, the values of each network parameter may be divided into at least two types. For example, regarding the time delay, taking two categories as an example, the time delay greater than a first threshold may be divided into a first category, the time delay smaller than the first threshold may be divided into a second category, and the first category and the second category may be used as two branches of a certain node in a decision tree. Optionally, referring to fig. 6 together, fig. 6 is a schematic structural diagram of a decision tree model according to a second embodiment. Fig. 6 explains the decision tree model as a binary model, that is, each node may be divided into two branches, the first node that starts to split is a root node, and nodes after the root node are all leaf nodes. Optionally, the APP application category itself has a category, and the feature may not be divided. It can be understood that the number of application categories corresponds to the number of branches of the constructed decision tree at a certain node.
Optionally, after the partitioning is finished, the decision tree model may be constructed according to each training sample in the training sample set. The decision tree model may be constructed by determining the order of nodes in the decision tree (i.e., network parameters serving as root nodes and leaf nodes) based on an information gain algorithm, or may be constructed by determining parameters serving as root nodes and leaf nodes in the decision tree based on a kini (Gini) index branching algorithm, which is not limited in this application.
Optionally, the method based on information gain is taken as an example for explanation in the present application, and first, each training sample in the training sample set is divided into a positive sample and a negative sample, where the positive sample is a training sample with a carried label being yes, and vice versa. The information entropy of the training sample set may be determined, and the formula for calculating the information entropy may be as shown in formula 1:
Figure BDA0003347457150000141
in formula 1, ent (D) represents information entropy, D represents a training sample set, and K represents a total number of classes, for example, the training sample set includes two classes, i.e., a positive sample and a negative sample, K is 2, pk is a proportion of a current class sample, i.e., of the proportion of the positive sample in the training sample set and the proportion of the negative sample in the training sample set, K may have K values, and a proportion of the kth class.
Optionally, the information entropy of each network parameter or application category in the training sample set may also be calculated according to formula 1. For example, if a certain network parameter is divided into two classes, the information entropy of the network parameter (or application class) can be calculated by the ratio of the number of samples of each of the two classes to the total number of samples, and the information entropy of each of the network parameters (or application classes) is obtained. The mobile terminal may determine the information Gain (Gain) for the network parameter or application class based on the information entropy. Alternatively, the information gain of a certain network parameter (or application class) may be calculated as shown in equation 2:
Figure BDA0003347457150000142
in formula 2, Ent (D) represents information entropy, D represents a training sample set, K represents that the network parameter (or application class) a may have K classes, and DkRepresenting that the training sample set takes a value a on the network parameter (or application class) akThe number of samples. The root node and each leaf node in the decision tree are determined according to the information gain of each network parameter (or application class). Optionally, the process of determining the positions of the nodes in the decision tree of the respective network parameters or application categories is a process of training the decision tree model, and the purpose of determining the respective network parameters (or application categories) is to optimize the decision tree model so that the decision tree model has a better classification effect and higher accuracy.
Optionally, the information gain is used to indicate an influence on subsequent classification, and the larger the value of the information gain is, the larger the influence on the subsequent classification is, the purer the samples obtained by the subsequent classification are (that is, the larger the proportion of one sample in the positive sample or the negative sample is), the network parameters (or application categories) with the largest information gain may be sorted in the order from large to small according to the calculated values of the information gain, and the network parameters (or application categories) with the largest information gain are used as the root nodes.
Optionally, after the root node is selected, each branch of the root node continues to be divided. Similarly, the first branch of the root node is divided according to another network parameter (or application category), the network parameter (or application category) is calculated to serve as the information gain of the leaf node, the information gain of each network parameter (or application category) is calculated, the network parameter (or application category) of the leaf node is selected, and by analogy, when the fact that the division cannot be performed any more is known, the training of the decision tree is finished, and a decision tree model is obtained.
Optionally, the training sample set may be obtained sample data, or may be a training sample set obtained by performing replacement extraction on a predetermined number of training samples from an original training sample set, and then the replacement extraction may be performed for multiple times to obtain multiple training sample sets, and a decision tree model is constructed according to each of the multiple training sample sets to obtain at least one decision tree model.
503. And combining the at least one decision tree model to obtain a random forest model.
Optionally, the classification model may be a decision tree model, that is, the application category of the target application and the second network parameter are input into the pre-trained decision tree model, so as to obtain a classification result whether to switch the network, which is output by the decision tree, and if the classification result is yes, the mobile terminal determines or generates that the second network satisfies the switching condition of the target application.
In order to achieve a better classification effect, all decision tree models can be combined to obtain a random forest model. Optionally, because the random forest model includes a plurality of decision tree models, the input data may be input into each decision tree model to obtain a classification result output by each decision tree model, and the classification result of the random forest model is determined according to the classification result of each decision tree model. Optionally, the determining mode may be a voting method, that is, the classification result of most decision tree models is used as the classification result of the random forest model; and setting weights for the decision tree models, and taking the weights and the classification results of the decision tree models as the classification results of the random forest models, which is not limited in the application.
Illustratively, taking a voting method as an example, inputting the second network parameters and the application categories of the target application into a random forest model, classifying the second network parameters and the application categories of the target application through each decision tree model to obtain a plurality of classification results, if the classification results output by most decision tree models are yes, determining or generating that the second network meets the switching conditions of the target application, and if the classification results output by most decision tree models are no, determining or generating that the second network does not meet the switching conditions of the target application.
In the method described in fig. 5, the mobile terminal obtains the random forest model by obtaining the training sample set, constructing at least one decision tree model according to the training sample set, and combining the constructed decision tree models. And classifying the second network parameters and the application categories of the target application through the random forest model, so that the network can be switched when the network quality meets the requirements of the target application. Therefore, based on the method described in fig. 5, the network quality of the standby network can be pre-judged through the network parameters, and the standby network is kept smooth so as to be used for intelligent switching, thereby avoiding the problems of reaction lag and link waste vacancy, and improving the user experience.
Referring to fig. 7, fig. 7 is a flowchart illustrating a network handover method according to a third embodiment. The processing method shown in FIG. 7 includes steps 701-702. The method of the embodiment of the present application may be executed by the mobile terminal shown in fig. 1, or may be executed by a chip in the mobile terminal, and the mobile terminal may be applied to the communication network system shown in fig. 2. The method shown in fig. 7 is executed by a mobile terminal as an example.
It should be noted that the same or similar parts between the various embodiments in this application may be referred to each other. In the embodiments and the implementation methods/implementation methods in the embodiments in the present application, unless otherwise specified or conflicting in logic, terms and/or descriptions between different embodiments and between various implementation methods/implementation methods in various embodiments have consistency and can be mutually cited, and technical features in different embodiments and various implementation methods/implementation methods in various embodiments can be combined to form new embodiments, implementation methods, or implementation methods according to the inherent logic relationships thereof. The above-described embodiments of the present application do not limit the scope of the present application. Wherein:
701. and acquiring a third network parameter of the first network at the current moment.
Optionally, when the target application is finished being used, the third network parameter of the first network at the current time may be obtained, optionally, the first network may be a mobile cellular network, and the third network parameter may be the current time, that is, the time when the user exits the target application.
Optionally, the mobile terminal periodically obtains a third network parameter of the first network while displaying the user interface of the target application and accessing the second network, periodically inputs the classification model, determines or generates whether the first network meets the handover condition according to the classification model, and switches back to the first network if the classification result output by the classification model indicates that the first network meets the handover condition of the target application, and obtains the data of the target application through the first network.
Optionally, if the first network is a WiFi network and the second network is a mobile cellular network, when the user uses the target application, the mobile terminal may obtain a third network parameter of the WiFi network every 10 seconds after the mobile terminal is switched to the mobile cellular network to obtain data of the target application, and determine whether the WiFi network meets a requirement of network performance of the target application according to the third network parameter, that is, whether a handover condition of the target application is met, and if the handover condition is met, switch the mobile cellular network back to the WiFi network.
702. And inputting the third network parameter into the classification model, determining or generating that the first network meets the switching condition according to the classification model, and switching to the first network.
Optionally, the mobile terminal may input the third network parameter and the application category of the target application into the classification model, that is, input into the random forest model, to obtain a classification result output by the random forest model, if the classification result is used to indicate that the first network satisfies the handover condition of the target application, the mobile terminal may switch the second network back to the first network, and if the classification result is used to indicate that the first network does not satisfy the handover condition of the target application, the mobile terminal may continue to use the second network to obtain the data of the target application.
Optionally, the mobile terminal may also obtain network parameters of a third network, for example, other WiFi networks, and input the network parameters of the third network into the classification model, and determine or generate whether the handover condition of the target application is satisfied according to the classification model, so that the mobile terminal may handover the second network to the third network, and obtain data of the target application through the third network, or may continue to use the second network to obtain data of the target application.
Optionally, when the target application is used, the mobile terminal may count the data amount transmitted by the target application switched to the second network, and output a prompt message to the user, where the prompt message includes the data amount transmitted by the second network. Optionally, the prompting information may further include prompting the user for a next network access. For example, the user may be prompted to "next time the network is connected to WiFi, this time the mobile cellular network usage is X Mb" for the handover.
Optionally, a user starts a certain APP, the mobile terminal accesses a WiFi network to obtain data of the APP, the WiFi network also has mobile terminal access of other users, for example, other users are downloading large files using bit streams (BT), the mobile terminal obtains first network parameters of the WiFi network, determines whether the WiFi network is in a network congestion condition according to the first network parameters of the WiFi network, obtains second network parameters of a second network, such as second network parameters of a mobile cellular network, inputs the second network parameters into a classification model, determines or generates that the second network satisfies a handover condition of a target application according to the classification model, that is, determines or generates that the second network satisfies the handover condition of the APP, the mobile terminal accesses the mobile cellular network, such as Long Term Evolution (Long Term Evolution, LTE) system. Optionally, if the mobile terminal periodically monitors the WiFi network, the mobile terminal may access the WiFi network, count the amount of data transmitted by the current handover to the mobile cellular network access network, and output the prompt information to the user, where the prompt information includes the transmission amount, when the monitored WiFi network can meet the handover condition of the APP, that is, when the downloading of the BT large file of the mobile terminal of the other user is finished.
Optionally, if the mobile terminal accesses the WiFi network and downloads the large file by using the browser application, the mobile terminal may obtain a first network parameter of the current WiFi network, if it is determined or identified that the first network is in a network congestion condition according to the first network parameter, may obtain a second network parameter of the second network, such as a second network parameter of the mobile cellular network, input the second network parameter into the classification model, and if it is determined or generated according to the classification model that the second network satisfies a switching condition of the target application (i.e., the browser application), the mobile terminal accesses the second network and continues downloading the large file by using the browser application. If the browser application is used, that is, the large file is downloaded, the mobile terminal may monitor that the created object (object) for downloading the large file is released, and may switch to the WiFi network when the WiFi network meets the switching condition of the target application, and acquire other data of the browser application through the WiFi network.
Optionally, if the target application is switched from the foreground to the background, the mobile terminal does not periodically acquire the network parameters of the network for the target application, and optionally, the mobile terminal acquires the network parameters for the application switched to the foreground and determines the accessed network.
Referring to fig. 8, fig. 8 is a schematic user interface diagram illustrating a network switching method according to a third embodiment. As shown in fig. 8, if the first network is a WiFi network and the second network is a mobile cellular network, when the mobile terminal accesses the first network again after accessing the second network, the prompt information shown in fig. 8 may be output, where the prompt information may prompt a network to be used next time and prompt the usage amount of the network this time, that is, the amount of data to be transmitted. Optionally, the prompt message may be "start APP to connect to WiFi network next time, and the usage amount of the mobile cellular network for this time handover is X Mb".
In the method depicted in fig. 7, the mobile terminal obtains the third network parameter of the first network at the current time; and inputting the third network parameter into the classification model, determining a switching condition of the first network meeting the target application according to the classification model, and switching to the first network. Therefore, based on the method described in fig. 7, the operation of switching the network by the user is simplified, the target application can be accessed to a suitable network, the user can be ensured to smoothly use the network and the target application, and the user can be prompted in real time that the network is switched, so that the user experience is improved.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a network switching device 90 according to an embodiment of the present disclosure. The network switching apparatus 90 includes an acquisition unit 901, a processing unit 902, a display unit 903, a statistic unit 904, and an output unit 905. Wherein:
an obtaining unit 901, configured to obtain a second network parameter of a second network when it is determined or identified that the first network is in a network congestion condition;
the processing unit 902 is configured to input the second network parameter into the preset model, determine or generate a switching condition that the second network satisfies the target application according to the preset model, and switch to the second network.
Optionally, the preset model is a classification model; the processing unit 902 is specifically configured to:
inputting the second network parameters into a classification model, and determining or generating a classification result according to the classification model, wherein the classification result is used for indicating that the second network meets the switching condition of the target application;
an obtaining unit 901, further configured to: and acquiring data of the target application through the second network.
Optionally, the network switching apparatus 90 further includes:
a processing unit 902, further configured to determine or generate an application category of the target application;
the processing unit 902 is configured to input the second network parameter into the classification model, and determine or generate a classification result according to the classification model, and specifically configured to:
inputting the application category and the second network parameter into a classification model, and outputting a classification result of whether to switch the network;
and when the network switching result is yes, determining or generating that the second network meets the switching condition of the target application.
Optionally, the obtaining unit 901 is further configured to obtain a network switching list, where the network switching list is set by a user or an intelligent terminal;
the processing unit 902 is further configured to include the target application in the network handover list, and determine or generate a network congestion condition of the first network.
Optionally, the network switching apparatus 90 further includes:
a display unit 903, configured to display a user interface of a target application, and acquire data of the target application through a first network;
a processing unit 902, configured to determine or generate an application category of a target application;
an obtaining unit 901, further configured to obtain a first network parameter of the first network and a preset threshold range corresponding to the application category;
the processing unit 902 is configured to determine or identify that the first network is in a network congestion condition when the first network parameter value is within a preset threshold range.
Optionally, the obtaining unit 901 is specifically configured to:
acquiring a network access sequence of a target application;
and determining or identifying the first network as the first network ranked in the network access sequence, and acquiring the data of the target application through the first network.
Optionally, the obtaining unit 901 is further configured to obtain a third network parameter of the first network at the current time;
the switching unit 902 is further configured to input the third network parameter into the classification model, determine or generate a condition that satisfies the switching condition of the first network according to the classification model, and switch to the first network.
Optionally, the first network is a wireless communication technology WiFi network, and the second network is a mobile cellular data network; the network switching device 90 further includes:
a counting unit 904, configured to count an amount of data transmitted by the second network;
the output unit 905 is configured to output a prompt message for prompting a user, where the prompt message includes a data amount.
It should be noted that, for operations performed by the units of the apparatus shown in fig. 9, reference may be made to relevant contents of the method embodiment. And will not be described in detail herein. The respective units may be implemented in hardware, software or a combination of hardware and software.
The embodiment of the present application further provides an intelligent terminal, where the intelligent terminal includes a memory and a processor, and the memory stores a network switching program, and the network switching program is executed by the processor to implement the steps of the network switching method in any of the above embodiments.
An embodiment of the present application further provides a computer-readable storage medium, where a network switching program is stored on the computer-readable storage medium, and when the network switching program is executed by a processor, the steps of the network switching method in any of the above embodiments are implemented.
In the embodiments of the intelligent terminal and the computer-readable storage medium provided in the present application, all technical features of any one of the embodiments of the network switching method may be included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
It is to be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A method for network handover, the method comprising:
when the first network is determined or identified to be in a network congestion condition, acquiring a second network parameter of a second network;
and inputting the second network parameters into a preset model, determining or generating that the second network meets the switching condition of the target application according to the preset model, and switching to the second network.
2. The method of claim 1, wherein the predetermined model is a classification model;
the determining or generating that the second network meets the switching condition of the target application according to the preset model includes:
inputting the second network parameter into the classification model, and determining or generating a classification result according to the classification model, wherein the classification result is used for indicating that the second network meets the switching condition of the target application;
after the switching to the second network, the method further comprises:
and acquiring the data of the target application through the second network.
3. The method of claim 2, further comprising:
determining or generating an application category of the target application;
the inputting the second network parameter into the classification model, and determining or generating a classification result according to the classification model includes:
inputting the application category and the second network parameter into the classification model, and outputting a classification result of whether to switch networks;
and when the switching network result is yes, determining or generating that the second network meets the switching condition of the target application.
4. The method of claim 2, wherein after the obtaining data of the target application over the second network, the method further comprises:
acquiring a third network parameter of the first network at the current moment;
and inputting the third network parameter into the classification model, determining or generating that the first network meets the switching condition according to the classification model, and switching to the first network.
5. The method of claim 4, wherein the first network is a wireless communication technology (WiFi) network and the second network is a mobile cellular data network; the method further comprises the following steps:
counting or determining the data volume transmitted by the second network;
and outputting prompt information for prompting a user, wherein the prompt information comprises the data volume.
6. The method according to any of claims 1 to 5, wherein prior to said obtaining second network parameters for a second network, the method further comprises:
acquiring a network switching list, wherein the network switching list is set by a user or an intelligent terminal;
the network switching list comprises the target application, and the network congestion condition of the first network is determined or generated.
7. The method according to any of claims 1 to 5, wherein prior to said obtaining second network parameters for a second network, the method further comprises:
displaying a user interface of the target application, and acquiring data of the target application through the first network;
determining or generating an application category of the target application;
acquiring a first network parameter of the first network and a preset threshold range corresponding to the application type;
and when the first network parameter value is within the preset threshold value range, determining or identifying that the first network is in the network congestion condition.
8. The method of claim 7, wherein the obtaining data of the target application through the first network comprises:
acquiring a network access sequence of the target application;
and determining or identifying the first network ranked in the network access sequence, and acquiring the data of the target application through the first network.
9. An intelligent terminal, characterized in that, intelligent terminal includes: memory, a processor, optionally having a network handover program stored thereon, which when executed by the processor implements the steps of the network handover method according to any of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the network switching method according to any one of claims 1 to 8.
CN202111327569.5A 2021-11-10 2021-11-10 Network switching method, intelligent terminal and storage medium Pending CN114071627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111327569.5A CN114071627A (en) 2021-11-10 2021-11-10 Network switching method, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111327569.5A CN114071627A (en) 2021-11-10 2021-11-10 Network switching method, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114071627A true CN114071627A (en) 2022-02-18

Family

ID=80274649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111327569.5A Pending CN114071627A (en) 2021-11-10 2021-11-10 Network switching method, intelligent terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114071627A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679758A (en) * 2022-03-08 2022-06-28 维沃移动通信有限公司 Network switching method and device, electronic equipment and readable storage medium
CN114884898A (en) * 2022-04-29 2022-08-09 深圳传音控股股份有限公司 Control method, intelligent terminal and storage medium
CN116709368A (en) * 2022-10-17 2023-09-05 荣耀终端有限公司 Network acceleration method and device
CN116709442A (en) * 2022-10-17 2023-09-05 荣耀终端有限公司 Wireless network switching method and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679758A (en) * 2022-03-08 2022-06-28 维沃移动通信有限公司 Network switching method and device, electronic equipment and readable storage medium
CN114884898A (en) * 2022-04-29 2022-08-09 深圳传音控股股份有限公司 Control method, intelligent terminal and storage medium
CN116709368A (en) * 2022-10-17 2023-09-05 荣耀终端有限公司 Network acceleration method and device
CN116709442A (en) * 2022-10-17 2023-09-05 荣耀终端有限公司 Wireless network switching method and electronic equipment
CN116709368B (en) * 2022-10-17 2024-04-16 荣耀终端有限公司 Network acceleration method and device

Similar Documents

Publication Publication Date Title
CN114071627A (en) Network switching method, intelligent terminal and storage medium
CN114126015A (en) Power consumption control method, intelligent terminal and storage medium
CN113645345A (en) Data transmission method, mobile terminal and storage medium
CN109217909B (en) Antenna switching method, mobile terminal and computer storage medium
CN109522276B (en) Application icon management method, terminal and computer-readable storage medium
CN114786230A (en) Network link switching method, intelligent terminal and storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN112346824B (en) Screen projection application control method and device and computer readable storage medium
CN110069320B (en) Classification correction method, terminal, system and storage medium for application program
CN109740121B (en) Search method of mobile terminal, mobile terminal and storage medium
CN114025387A (en) Processing method, intelligent terminal and storage medium
CN113347676B (en) Processing method, mobile terminal and storage medium
CN112672203B (en) File transfer control method, mobile terminal and computer readable storage medium
CN112105013B (en) Method for managing device network mode, mobile terminal and computer readable storage medium
CN114040464A (en) Cell access method, intelligent terminal and storage medium
CN109856544B (en) Terminal electricity usage time analysis method, terminal and computer-readable storage medium
CN114900865B (en) Data processing method, intelligent terminal and storage medium
CN115002870B (en) Processing method, communication device, and storage medium
CN116095738B (en) Signal display method, intelligent terminal and storage medium
CN114630406A (en) Power consumption control method, intelligent terminal and storage medium
CN108170541B (en) Interface calling method and device and computer readable storage medium
CN114006979A (en) Task processing method, intelligent terminal and storage medium
CN115801934A (en) Antenna control method, intelligent terminal and storage medium
CN115643444A (en) Screen projection display method, intelligent terminal and storage medium
CN115145462A (en) Processing method, intelligent terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication