CN110392405B - Method, device, terminal and storage medium for switching mobile data network - Google Patents

Method, device, terminal and storage medium for switching mobile data network Download PDF

Info

Publication number
CN110392405B
CN110392405B CN201910677971.2A CN201910677971A CN110392405B CN 110392405 B CN110392405 B CN 110392405B CN 201910677971 A CN201910677971 A CN 201910677971A CN 110392405 B CN110392405 B CN 110392405B
Authority
CN
China
Prior art keywords
terminal
data network
target data
state information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910677971.2A
Other languages
Chinese (zh)
Other versions
CN110392405A (en
Inventor
邹奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910677971.2A priority Critical patent/CN110392405B/en
Publication of CN110392405A publication Critical patent/CN110392405A/en
Application granted granted Critical
Publication of CN110392405B publication Critical patent/CN110392405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a method, a device, a terminal and a storage medium for switching a mobile data network, which belong to the technical field of computers, the embodiment of the application can be applied to terminals for transmitting data through at least two data networks, the terminal can acquire a target data network and state information of the terminal and store the corresponding relation between the target data network and the state information, when the terminal is in a state indicated by the state information and does not transmit data through the target data network, the terminal starts the target data network to transmit data, wherein the target data network is the data network with the strongest signal intensity when the terminal acquires the state information. The terminal can automatically transmit data through the target data network when being in the state indicated by the state information again, so that the terminal can automatically connect the mobile data network with stronger connection signals to receive and transmit data according to the historical connection condition, and the capability of selecting the adaptive mobile data network is enhanced.

Description

Method, device, terminal and storage medium for switching mobile data network
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, a terminal and a storage medium for switching a mobile data network.
Background
As the role of the mobile data network in daily life becomes more and more important, the terminal receives and transmits data through the mobile data network becomes a main function of the terminal.
In some possible scenarios, the terminal can simultaneously transmit and receive data through the mobile data networks corresponding to a plurality of user accounts. The signal strength provided by different mobile data networks may be different in the same geographical location. The user can select the mobile data network in use at present by the mode of manual switching.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a storage medium for switching a mobile data network. The technical scheme is as follows:
according to an aspect of the present application, there is provided a method for switching a mobile data network, which is applied to a terminal that transmits data through at least two data networks, the method including:
acquiring a target data network and state information of the terminal, wherein the state information is used for indicating an application condition operated in the terminal and/or a space-time condition of the terminal, and the target data network is one of the at least two data networks with the strongest signal strength;
storing the corresponding relation between the target data network and the state information;
and when the terminal is in the state indicated by the state information and does not transmit data through the target data network, enabling the target data network to transmit data.
According to another aspect of the present application, there is provided an apparatus for switching a mobile data network, which is applied to a terminal that transmits data through at least two data networks, the apparatus comprising:
an obtaining module, configured to obtain a target data network and state information of the terminal, where the state information is used to indicate an application situation of internal operation of the terminal and/or a time-space condition where the terminal is located, and the target data network is one of the at least two data networks with the strongest signal strength;
the storage module is used for storing the corresponding relation between the target data network and the state information;
and the starting module is used for starting the target data network to transmit data when the terminal is in the state indicated by the state information and does not transmit data through the target data network.
According to another aspect of the present application, there is provided a terminal comprising a processor and a memory, the memory having stored therein at least one instruction, the instruction being loaded and executed by the processor to implement the method for handing over a mobile data network as provided in the implementations of the present application.
According to another aspect of the present application, there is provided a computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to implement the method for handing over a mobile data network as provided in the implementations of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application can include:
the embodiment of the application can be applied to a terminal for transmitting data through at least two data networks, the terminal can acquire a target data network and state information of the terminal, the corresponding relation between the target data network and the state information is stored, and when the terminal is in the state indicated by the state information again and does not transmit data through the target data network, the terminal starts the target data network to transmit data, wherein the target data network is the data network with the strongest signal intensity when the terminal acquires the state information. The terminal can automatically transmit data through the target data network when being in the state indicated by the state information again, so that the terminal has strong learning capacity, can automatically connect the mobile data network with strong connection signals to receive and transmit data according to historical connection conditions, and enhances the capability of the terminal in selecting the adaptive mobile data network.
Drawings
In order to more clearly describe the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a block diagram of a terminal according to an exemplary embodiment of the present application;
fig. 2 is a flowchart of a method for handing over a mobile data network according to an exemplary embodiment of the present application;
fig. 3 is a flowchart of a method for handing over a mobile data network according to another exemplary embodiment of the present application;
fig. 4 is a block diagram illustrating an apparatus for handing over a mobile data network according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to 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.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In order to make the solution shown in the embodiments of the present application easy to understand, several terms appearing in the embodiments of the present application will be described below.
Mobile data network: in the art, the mobile data network may be provided by an operator. To facilitate charging and accounting of the user, the operator typically provides the user with a user account. The user logs on the user account on the terminal, and receives and transmits data through the mobile data network corresponding to the user account.
In one possible scenario, the terminal may log in to the user account via a SIM (Subscriber Identity Module) card. When two SIM cards are inserted in the terminal, the terminal can log in two user accounts simultaneously. When n SIM cards are inserted into the terminal, the terminal can log in n user accounts at the same time. Wherein n is a positive integer.
In another possible scenario, the terminal is also able to log in to a user account through a virtual SIM (abbreviated: eSIM) card.
Optionally, the terminal transmits data through at least two data networks, which means that the terminal has the right to access at least two data networks. The terminal can select one data network from at least two data networks as a network for transmitting data according to actual use requirements. Among the at least two data networks that the terminal can use, different operators may be included to provide the two data networks.
Alternatively, the user may transmit data through a terminal by using the mobile data network corresponding to the two user accounts at the same time for actual use requirements.
Target data network: the terminal is one of at least two data networks which can be used by the terminal, and the data network is one of the at least two data networks which is included by the terminal and has the strongest signal strength when the terminal acquires the state information.
State information: for indicating the applications running inside the terminal and/or the spatio-temporal conditions in which the terminal is located.
Optionally, the application condition is represented by an identification of an application running in the terminal at a specified time. In a possible implementation manner, the application conditions running inside the terminal include: an identification of an application currently running by the terminal, an identification of an application running in a first time period in the future, or an identification of an application running in a second time period in the past. It should be noted that the identifier may be an installation package name of the application.
Optionally, the spatio-temporal condition of the terminal includes a current system time of the terminal, and/or a current geographical location of the terminal. In detail, the spatiotemporal conditions may include the following three cases.
(1) The spatiotemporal conditions include the current system time of the terminal. Alternatively, the current system time of the terminal may be a time calibrated with the server through the mobile data network, and the time may enable the system time of the terminal and the system time of the server to keep synchronous.
(2) The spatiotemporal conditions include the geographic location where the terminal is currently located. The geographic location may be provided by a navigation satellite, which may be a satellite device provided by a designated navigation system. The specified Navigation System includes at least one of GPS (Global Positioning System, Chinese), Beidou (BeiDou Navigation Satellite System, abbreviation: BDS), Glonass (GLOBAL Navigation SATELLITE SYSTEM, abbreviation: GLONASS), or Galileo (Galileo Navigation System, abbreviation: Galileo).
Optionally, the terminal can also determine the current geographic location of the terminal based on the wifi signal and the base station location.
In one possible implementation, the terminal can use the geographic position data with the accuracy within 20 meters as the current geographic position of the terminal.
(3) The spatiotemporal conditions include a current system time of the terminal and a geographic location where the terminal is currently located.
The terminal's spatio-temporal conditions may also be the current system time and the geographic location where the terminal is currently located. The terminal acquires the two kinds of information at the same time, and the two kinds of information are used as the space-time conditions of the terminal.
With the change of wireless signals used by mobile data networks, a New generation of wireless communication technology will use a 5G New air interface (NR) system to transmit information, and the signals used by the system are based on millimeter wave frequency band signals, which have periodicity. For example, a period includes 10 beams in different states, and the terminal will sequentially present the 10 beams in different states in a designated order within the period. Therefore, the signal strength of the mobile data network will be correlated to the system time.
In addition, the current geographical location of the terminal can also affect the signal strength of the mobile data network. So that the measured signal strength may vary on different floors and in different rooms of a building.
The corresponding relation between the target data network and the state information is as follows: for indicating an association between the target data network and the status information. In one possible implementation, the correspondence may be represented by a table in a database. In another possible implementation, the correspondence may be stored by an array. For example, the target data network and the state information are combined into a binary array. Further, the terminal may also store the target data network, the state information, and the number of associations through a ternary array.
The association times are as follows: and the historical accumulated times for indicating that the terminal is in the target data network and the state information at the same time.
For example, the method for switching a mobile data network shown in the embodiment of the present application may be applied to a terminal, where the terminal has a display screen and a function of switching the mobile data network. The terminal may include a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal computer, a server, a workstation, a television, a set-top box, smart glasses, a smart watch, a digital camera, an MP4 player terminal, an MP5 player terminal, a learning machine, a point-and-read machine, an electronic book, an electronic dictionary, a vehicle-mounted terminal, or the like.
Referring to fig. 1, fig. 1 is a block diagram of a terminal according to an exemplary embodiment of the present application, and as shown in fig. 1, the terminal includes a processor 120 and a memory 140, where the memory 140 stores at least one instruction, and the instruction is loaded and executed by the processor 120 to implement a method for switching a mobile data network according to various method embodiments of the present application.
In the present application, the terminal 100 is an electronic device having a function of switching a mobile data network. When the terminal 100 includes at least two data networks for transmitting data, the terminal 100 can acquire a target data network and state information of the terminal, where the state information is used to indicate an application situation of the terminal in operation and/or a time-space condition of the terminal, the target data network is one of the at least two data networks with the strongest signal strength, store a corresponding relationship between the target data network and the state information, and enable the target data network to transmit data when the terminal is in a state indicated by the state information and does not transmit data through the target data network.
Processor 120 may include one or more processing cores. The processor 120 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 140 and calling data stored in the memory 140. Optionally, the processor 120 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 120 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 120, but may be implemented by a single chip.
The Memory 140 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 140 includes a non-transitory computer-readable medium. The memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data and the like referred to in the following respective method embodiments.
Optionally, when there are associated SIM cards in at least two data networks, a SIM card connection module may be further included in the terminal 100.
Referring to fig. 2, fig. 2 is a flowchart of a method for handing over a mobile data network according to an exemplary embodiment of the present application. The method for switching mobile data networks can be applied to the terminal shown in fig. 1, and the terminal transmits data through at least two data networks. In fig. 2, the method for switching the mobile data network includes:
step 210, a target data network and state information of the terminal are obtained, the state information is used for indicating an application condition running inside the terminal and/or a time-space condition where the terminal is located, and the target data network is one of at least two data networks with the strongest signal strength.
In the embodiment of the application, the terminal can acquire the target data network and the state information of the terminal.
In one possible approach, the terminal may obtain the target data network and status information of the terminal anytime and anywhere. For example, the terminal collects the target data network and the state information once in one second period.
In another possible approach, the energy consumption control of the terminal and the validity of the collected information are taken into account. The method and the device can acquire the target data network and the state information of the terminal in a special scene.
(1) When the terminal receives the operation of switching the data network, the terminal acquires the target data network and the state information of the terminal.
In the embodiment of the present application, when the terminal receives an operation of switching a data network, or when the terminal receives a network switching signal, the terminal acquires its own target data network and state information. The network switching information is used for indicating the terminal to switch from the currently used data network to other data networks.
(2) When the terminal continuously receives the input signal and the geographic position is kept unchanged, the terminal acquires the target data network and the state information of the terminal.
In the embodiment of the application, the terminal can acquire the target data network and the state information of the terminal when the terminal continuously receives the input signal and the geographical position of the terminal is kept unchanged. Wherein the input signal may be generated by an input component of the terminal. The input component of the terminal may include at least one of a touch screen, a physical key, a microphone, an infrared sensor, a distance sensor, a light sensor, a pressure sensor, and a camera.
In one possible mode, when the frequency of the terminal receiving the input signal is not less than the target frequency, the terminal confirms that the terminal continuously receives the input signal.
In a possible mode, when the geographic position of the terminal is within a preset range, the terminal confirms that the geographic position of the terminal is kept unchanged. Alternatively, the preset range may be a range of 5 square meters, 10 square meters, or 20 square meters, etc. Alternatively, the shape of the preset range may be a circle, a rectangle or other shapes, which is not limited in the embodiment of the present application.
(3) And when the power of the antenna assembly of the terminal exceeds a power threshold value, the terminal acquires the target data network and the state information of the terminal.
In the embodiment of the application, when the data network signal where the terminal is located is weak or unstable, the terminal increases the power of the antenna component to enhance the signal strength of the data network. In this scenario, the terminal transmits data under the influence, and the terminal essentially needs to switch the network to the data network with stronger signal strength. Therefore, the embodiment of the application acquires the target data network and the state information so as to improve the automatic switching capability when the network switching is required subsequently.
Step 220, storing the corresponding relationship between the target data network and the state information.
In the application, the terminal can store the corresponding relation between the acquired target data network and the state information. In one possible scenario, the terminal will store the target data network and state information while storing the correspondence.
For example, the terminal can store the target data network, the status information, and the corresponding relationship between the target data network and the status information in a table manner. Please refer to table one.
Watch 1
Figure BDA0002143899380000081
In the storage content shown in table one, the terminal stores the target data network and the status information in different groups.
In another application scenario, the state information may include only the application case, or only the spatio-temporal condition, in addition to both the application case and the spatio-temporal condition. For a specific example, please refer to the contents shown in table two and table three.
Watch two
Figure BDA0002143899380000082
In the storage contents shown in table two, the terminal associates application a1 with data network 1, application a4 with data network 2, and application a3 with data network 1. It should be noted that, in a possible implementation manner, one application can only maintain a corresponding relationship with one data network, and one data network can maintain a corresponding relationship with a plurality of applications.
It should be noted that, in the embodiment of the present application, the application situation running inside the terminal can be indicated by the application identifier. In a possible scenario, the application running inside the terminal is an application running in the foreground when the terminal acquires the target data network. For example, the terminal acquires the target data network and status information at 20191028071235, and the application a6 that the terminal is in the foreground at that time is determined to be an application running inside the terminal.
In another possible scenario, the application running inside the terminal is an application that is in the foreground to run in a future target time period when the terminal acquires a target data network, and the target time period is a time period with a specified duration. For example, the terminal acquires the target data network at a specified time, and the target time period is a time period within 30 seconds after the acquisition of the target data network. In this period, the terminal takes the identifier of the first application running in the foreground as the application condition running inside the terminal.
Optionally, the application running in the foreground may be an application that is switched from the background running state to the foreground running state, or an application that is switched from the closed state to the foreground running state.
Watch III
Figure BDA0002143899380000091
In the stored contents shown in table three, the terminal associates the location p1 with the data network 1, associates the location p4 with the data network 2, and associates the location p3 with the data network 1. It should be noted that, in a possible implementation manner, one location can only maintain a corresponding relationship with one data network, and one data network can maintain a corresponding relationship with a plurality of locations.
And step 230, when the terminal is in the state indicated by the state information and does not transmit data through the target data network, enabling the target data network to transmit data.
In the embodiment of the present application, step 210 and step 220 may constitute a process of storing the empirical data. After the terminal performs steps 210 and 220, the terminal can use the stored corresponding relationship between the target data network and the state information as experience data, when the terminal is in the state indicated by the state information again, the terminal can detect whether the data network used by the currently transmitted data is the target data network, and when the terminal transmits data through the target data network, the terminal will end the process of the application. When the data network of the terminal for transmitting data is not the target data network, the terminal enables the target data network to transmit data.
Optionally, the terminal may further detect whether the remaining traffic of the target data network exceeds a preset traffic threshold when performing this step. When the residual flow of the target data network exceeds the preset flow threshold, the terminal does not start the target data network to transmit data any more, but keeps the currently used data network to transmit data.
In summary, the method for switching a mobile data network according to this embodiment can enable a target data network to transmit data when a terminal has a capability of transmitting data through at least two data networks by obtaining the target data network and state information of the terminal and storing a corresponding relationship between the target data network and the state information, and when the terminal is in a state indicated by the state information and does not transmit data through the target data network. Therefore, the method provided by the embodiment of the application can enable the terminal to store the target data network with the strongest signal strength in the state indicated by the state information in advance, and when the terminal is in the state indicated by the state information again, the terminal transmits data by adopting the target data network again. Therefore, the method and the device for providing the data network can enhance the capacity of the terminal for intelligently selecting the data network, enable the terminal to automatically select the data network suitable for the self state, and improve the capacity of the terminal for providing the suitable data network for the current state.
Referring to fig. 3, fig. 3 is a flowchart of a method for handing over a mobile data network according to another exemplary embodiment of the present application. The method for switching the mobile data network can be applied to the terminal shown above. In fig. 3, the method for switching a mobile data network includes:
step 311, when the terminal completes the network switching operation, the target data network and the status information of the terminal are obtained.
In the embodiment of the application, when the terminal completes the network switching operation, the terminal acquires the target data network and the state information of the terminal.
It should be noted that, in a possible manner, the terminal may perform the network handover operation under a fixed mechanism of its own software. For example, a network switching logic is pre-stored in the terminal, and the terminal completes network switching under the action of the network switching logic.
In another possible mode, the terminal may complete the network switching operation under the operation of the user. For example, the terminal provides selection buttons for SIM card 1 and SIM card 2. If the terminal currently uses the data network provided by the SIM card 1, the user clicks the selection button of the SIM card 2, and the terminal completes the network switching operation of switching from the data network provided by the SIM card 1 to the data network corresponding to the SIM card 2. At this time, the terminal will acquire its own target data network and status information.
Step 312, when the terminal receives the second instruction, the target data network and the state information of the terminal are obtained, and the second instruction is an instruction generated when the target control is triggered.
In the embodiment of the application, when the terminal receives the second instruction, the target data network and the state information of the terminal are acquired. And the second instruction is an instruction generated when the target control is triggered.
In one possible approach, the target control is a target data network and status information specifically configured to receive the acquisition terminal. For example, the target control is named intelligent network optimization. The user can determine the button according to the name of the intelligent network optimization for optimizing the current data network of the terminal. If the data network used by the terminal is the target data network, the terminal keeps using the target data network to transmit data and acquires the target data network and the state information of the terminal. And if the data network used by the terminal is not the target data network, the terminal switches the data network to the target data network and acquires the target data network and the state information of the terminal.
In another possible approach, the target control may be a network switch button. When the data network used by the terminal is two data networks including a third data network and a fourth data network, the network switching button is used to switch between the third data network and the fourth data network.
Step 313, when the terminal is at the Point of Interest (POI), the target data network and the state information of the terminal are obtained.
In the embodiment of the application, when the terminal is at the specified point of interest (POI), the terminal acquires the target data network and the state information of the terminal. The point of interest POI may be a location automatically determined by the terminal, or a location issued by the server, or a location manually determined by the user.
In one possible approach, when the POI is a location that the terminal automatically determines, the terminal may make a judgment by the time attribute and the location attribute.
Alternatively, when the number of occurrences of a given place in a fixed period of time exceeds a preset threshold, the place is set as one POI. For example, the point p5 appears constantly between 7:40 am and 8:10 am on weekdays, and the accumulated number exceeds 5 times, the terminal sets the point p5 as one POI.
Optionally, when the accumulated time length of the terminal appearing at the specified place exceeds a preset time length threshold, the place is set as a POI. For example, the terminal sets the point p6 as one POI when the accumulated stay time of the terminal at the point p6 exceeds 200 hours.
Step 321, detecting whether the terminal has a corresponding relationship between the target data network and the status information.
In the embodiment of the application, the terminal can detect whether a corresponding relationship exists, wherein the corresponding relationship is the corresponding relationship between the target data network and the state information. It should be noted that the detection means may be one of ways of traversing, table lookup, keyword matching, and the like, and this is not limited in the embodiment of the present application.
Step 322, when the corresponding relation between the target data network and the state information does not exist in the terminal, establishing the corresponding relation between the target data network and the state information, and adding one to the association times.
In the embodiment of the application, the association times are historical accumulated times of the terminal in the target data network and the state information at the same time.
In a possible implementation manner, when the terminal does not retrieve the corresponding relationship between the target data network and the state information, the terminal establishes the corresponding relationship between the target data network and the state information, and adds one to the association times. It should be noted that the association coefficient may be stored together with the corresponding relationship. Please refer to table four, which shows a storage table of the corresponding relationship between the target data network and the status information.
Watch four
Figure BDA0002143899380000121
In the data shown in table four, the status information in the group 3 data and the target data network are information that does not exist in advance in the terminal. Therefore, the terminal establishes the corresponding relationship of the group and adds 1 to the association times.
Step 323, when the terminal has the corresponding relation between the target data network and the state information, adding one to the association times.
In the embodiment of the application, the association times are historical accumulated times of the terminal in the target data network and the state information at the same time. Please refer to table five, which shows another storage table of the corresponding relationship between the target data network and the status information.
Watch five
Figure BDA0002143899380000122
In the example shown in table five, when the terminal detects a correspondence relationship between the data network 1 and (the place p1, the application a3), the number of times of association of the correspondence relationship is increased by 1 so that the number of times is increased from the original 1 times to 2 times.
Step 331, when the terminal is in the state indicated by the state information, detecting whether the value of the association times is not less than a preset threshold value.
In the embodiment of the application, when the terminal is in the state indicated by the state information again, the terminal detects whether the value of the association times is smaller than the preset threshold value. For example, if the state information is the point p1 and the preset threshold is 3 times, when the terminal is located at the point p1, the terminal detects whether the number of associations in the correspondence relationship where the state information is located is less than 3 times.
In another possible implementation, if the state information is application a7 and the preset threshold is 5 times, when the foreground application is application a7, the terminal detects whether the number of associations in the corresponding relationship of the state information is less than 5 times.
And 332, when the value of the association times is not less than a preset threshold value and the terminal does not transmit data through the target data network, starting the target network to transmit the data.
In the embodiment of the application, when the terminal detects that the value of the association times is not less than the preset threshold value and the terminal does not transmit data through the target data network, the target network is enabled to transmit the data. For example, when the terminal stores the correspondence between the status information "location p 3" and the target data network "network 1", and the number of associations in the correspondence is 3, the number of associations exceeds a preset threshold. When the terminal is again at the location p3, the terminal will perform data transmission through the target data network "network 1" when it is confirmed that the association number exceeds the preset threshold. Wherein, if the terminal has transmitted data through the target data network currently, the terminal will not change the data network used by the terminal. And if the data network currently used by the terminal is not the target data network, the terminal switches the data network to the target data network and transmits data through the target data network.
Step 341, determining a first data network having a corresponding relationship with the application situation according to the application situation running inside the terminal.
And 342, determining a second data network corresponding to the space-time condition according to the space-time condition of the terminal.
Step 343, when the first data network and the second data network are data networks corresponding to different user accounts and do not transmit data through the second data network, enabling the second data network to transmit data.
In the embodiment of the application, the terminal can determine the first data network corresponding to the application situation according to the application situation running inside. Meanwhile, the terminal can also determine a second data network corresponding to the space-time condition according to the space-time condition. And when the first data network and the second data network correspond to different data networks of user accounts, the terminal transmits data through the second data network. Wherein the terminal will keep using the data network to transmit data if the terminal has transmitted data through the second data network. And if the terminal does not transmit data through the second data network, the terminal switches the data network to the second data network and transmits the data through the second data network.
And step 350, when the terminal is in the state indicated by the state information and receives the first instruction, deleting the corresponding relation between the target data network and the state information.
In an embodiment of the present application, the first instruction is an instruction for instructing the terminal to switch from the target data network to another data network.
Note that, when the terminal is in the state indicated by the state information, for example, please refer to an example shown in table six. When the terminal is at the location p1, a first instruction is received instructing the terminal to switch the data network to the data network 2. At this time, the terminal deletes the 1 st group of data, so that the association relationship between the target data network and the state information disappears. After the correspondence is deleted, the contents stored in the terminal are shown in table seven.
Watch six
Figure BDA0002143899380000141
Watch seven
Figure BDA0002143899380000142
To sum up, the embodiment of the application enables the terminal to directly transmit data through the target data network when knowing the respective target data networks of the application package name used by the foreground and the geographical position of the terminal, and the terminal operates the stored application package name on the foreground again and/or arrives at the geographical position again, so that the capability of the terminal to provide a proper network for the current state is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 4, fig. 4 is a block diagram illustrating a structure of an apparatus for handing over a mobile data network according to an exemplary embodiment of the present application. The means for switching the mobile data network may be implemented as all or part of the terminal in software, hardware or a combination of both. The device includes:
an obtaining module 410, configured to obtain a target data network and state information of the terminal, where the state information is used to indicate an application situation running inside the terminal and/or a time-space condition where the terminal is located, and the target data network is one of the at least two data networks with the strongest signal strength;
a storage module 420, configured to store a corresponding relationship between the target data network and the status information;
and an enabling module 430, configured to enable the target data network to transmit data when the terminal is in the state indicated by the state information and does not transmit data through the target data network.
In an optional embodiment, the storage module 420 is configured to detect whether a corresponding relationship between the target data network and the status information exists in the terminal; when the corresponding relation between the target data network and the state information does not exist in the terminal, establishing the corresponding relation between the target data network and the state information, and adding one to the association frequency, wherein the association frequency is the historical accumulated frequency of the terminal in the target data network and the state information at the same time; and when the corresponding relation between the target data network and the state information exists in the terminal, adding one to the association frequency, wherein the association frequency is the historical accumulated frequency of the terminal in the target data network and the state information at the same time.
In an optional embodiment, the enabling module 430 is configured to detect whether the value of the association times is not less than a preset threshold when the terminal is in the state indicated by the state information; and when the value of the association times is not less than a preset threshold value and the terminal does not transmit data through the target data network, enabling the target network to transmit data.
In an optional embodiment, the apparatus further includes a deleting module, configured to delete a correspondence between the target data network and the state information when the terminal is in a state indicated by the state information and receives a first instruction; wherein the first instruction is an instruction for instructing the terminal to switch from the target data network to another data network.
In an alternative embodiment, the spatio-temporal conditions under which the terminal is located include: the current system time of the terminal; and/or the current geographical position of the terminal.
In an optional embodiment, the application executed in the terminal includes: when the target data network is obtained, the application running in the foreground; and/or after the target data network is acquired, the application which is operated in the foreground in the future target time period, wherein the target time period is a time period with specified duration.
In an optional embodiment, the obtaining module 410 is configured to obtain the target data network and the status information of the terminal when the terminal completes a network handover operation; and/or when the terminal receives a second instruction, acquiring the target data network and the state information of the terminal, wherein the second instruction is an instruction generated when the target control is triggered; and/or when the terminal is at a specified point of interest (POI), acquiring the target data network and the state information of the terminal.
In an optional embodiment, the enabling module 430 is configured to determine, according to an application situation running inside the terminal, a first data network having a corresponding relationship with the application situation; determining a second data network corresponding to the space-time condition according to the space-time condition of the terminal; and when the first data network and the second data network are data networks corresponding to different user accounts and do not transmit data through the second data network, enabling the second data network to transmit data.
The present application further provides a computer-readable medium, which stores at least one instruction, where the at least one instruction is loaded and executed by the processor to implement the method for handing over a mobile data network according to the above embodiments.
It should be noted that: in the method for switching a mobile data network according to the above embodiment, only the division of the functional modules is described as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for switching a mobile data network and the method for switching a mobile data network provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
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.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the implementation of the present application and is not intended to limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. A method for switching a mobile data network, the method being applied to a terminal, the terminal transmitting data through at least two data networks, the method comprising:
acquiring a target data network and state information of the terminal, wherein the state information is used for indicating an application condition of internal operation of the terminal and a time-space condition of the terminal, the target data network is the one with the strongest signal intensity in the at least two data networks, and the time-space condition comprises the current system time of the terminal and the current geographic position of the terminal; the application condition of the internal operation of the terminal comprises the following steps: when the target data network is obtained, the application running in the foreground; and/or after the target data network is acquired, the application running in the foreground in a future target time period, wherein the target time period is a time period with specified duration; the foreground running application is an application switched from a background running state to a foreground running state, or the foreground running application is an application switched from a closed state to a foreground running state;
when the corresponding relation between the target data network and the state information does not exist in the terminal, establishing the corresponding relation between the target data network and the state information, and adding one to the association frequency, wherein the association frequency is the historical accumulated frequency of the terminal in the target data network and the state information at the same time;
when the corresponding relation between the target data network and the state information exists in the terminal, adding one to the association frequency, wherein the association frequency is the historical accumulated frequency of the terminal in the target data network and the state information at the same time;
when the terminal is in the state indicated by the state information, detecting whether the value of the association times is not less than a preset threshold value;
and when the value of the association times is not less than a preset threshold value and the terminal does not transmit data through the target data network, enabling the target network to transmit data.
2. The method of claim 1, further comprising:
when the terminal is in the state indicated by the state information and receives a first instruction, deleting the corresponding relation between the target data network and the state information;
wherein the first instruction is an instruction for instructing the terminal to switch from the target data network to another data network.
3. The method of claim 1, wherein the obtaining the target data network and the status information of the terminal comprises:
when the terminal finishes network switching operation, acquiring the target data network and the state information of the terminal;
and/or the presence of a gas in the gas,
when the terminal receives a second instruction, the target data network and the state information of the terminal are obtained, wherein the second instruction is generated when the target control is triggered;
and/or the presence of a gas in the gas,
and when the terminal is at a specified point of interest (POI), acquiring the target data network and the state information of the terminal.
4. The method of claim 1, wherein enabling the target data network to transmit data when the terminal is in the state indicated by the state information and does not transmit data through the target data network comprises:
determining a first data network corresponding to the application condition according to the application condition running in the terminal;
determining a second data network corresponding to the space-time condition according to the space-time condition of the terminal;
and when the first data network and the second data network are data networks corresponding to different user accounts and do not transmit data through the second data network, enabling the second data network to transmit data.
5. An apparatus for switching a mobile data network, wherein the apparatus is applied in a terminal, and the terminal transmits data through at least two data networks, the apparatus comprising:
an obtaining module, configured to obtain a target data network and state information of the terminal, where the state information is used to indicate an application situation of internal operation of the terminal and/or a time-space condition where the terminal is located, the target data network is one of the at least two data networks with the strongest signal strength, and the time-space condition includes a current system time of the terminal and a current geographic location of the terminal; the application condition of the internal operation of the terminal comprises the following steps: when the target data network is obtained, the application running in the foreground; and/or after the target data network is acquired, the application running in the foreground in a future target time period, wherein the target time period is a time period with specified duration; the foreground running application is an application switched from a background running state to a foreground running state, or the foreground running application is an application switched from a closed state to a foreground running state;
the storage module is used for establishing the corresponding relation between the target data network and the state information when the corresponding relation between the target data network and the state information does not exist in the terminal, and adding one to the number of association times, wherein the number of association times is the historical accumulated number of times that the terminal is in the target data network and the state information at the same time; when the corresponding relation between the target data network and the state information exists in the terminal, adding one to the association frequency, wherein the association frequency is the historical accumulated frequency of the terminal in the target data network and the state information at the same time;
the starting module is used for detecting whether the value of the association times is not less than a preset threshold value when the terminal is in the state indicated by the state information; and when the value of the association times is not less than a preset threshold value and the terminal does not transmit data through the target data network, enabling the target network to transmit data.
6. A terminal, characterized in that the terminal comprises a processor, a memory connected to the processor, and program instructions stored on the memory, which when executed by the processor implement the method of handing over a mobile data network according to any of claims 1 to 4.
7. A computer readable storage medium having stored thereon program instructions which, when executed by a processor, implement a method of handing over a mobile data network according to any of claims 1 to 4.
CN201910677971.2A 2019-07-25 2019-07-25 Method, device, terminal and storage medium for switching mobile data network Active CN110392405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910677971.2A CN110392405B (en) 2019-07-25 2019-07-25 Method, device, terminal and storage medium for switching mobile data network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910677971.2A CN110392405B (en) 2019-07-25 2019-07-25 Method, device, terminal and storage medium for switching mobile data network

Publications (2)

Publication Number Publication Date
CN110392405A CN110392405A (en) 2019-10-29
CN110392405B true CN110392405B (en) 2022-01-11

Family

ID=68287507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910677971.2A Active CN110392405B (en) 2019-07-25 2019-07-25 Method, device, terminal and storage medium for switching mobile data network

Country Status (1)

Country Link
CN (1) CN110392405B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006845A (en) * 2020-07-14 2022-02-01 芜湖美的厨卫电器制造有限公司 Control method and control device for household appliance, household appliance and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8933841B2 (en) * 2010-12-13 2015-01-13 The Governing Council Of The University Of Toronto System and method for localization
CN103024945B (en) * 2012-12-31 2016-03-30 广东欧珀移动通信有限公司 A kind of method and system of mobile phone automatic switchover data network
CN104125600B (en) * 2013-04-27 2016-03-02 腾讯科技(深圳)有限公司 The method for recognizing flux of mobile terminal and device
US10038968B2 (en) * 2013-07-17 2018-07-31 PlaceIQ, Inc. Branching mobile-device to system-namespace identifier mappings
US9648491B2 (en) * 2014-02-19 2017-05-09 Mediatek Inc. Method of selecting an active SIM from multiple SIMs and a wireless device utilizing the same
CN104717610B (en) * 2015-03-04 2018-05-08 惠州Tcl移动通信有限公司 A kind of radio data network automatic switching method and mobile terminal based on LBS
US9877275B2 (en) * 2016-01-05 2018-01-23 Blackberry Limited Method and apparatus for multi-SIM selection
CN107277880B (en) * 2017-07-26 2021-01-08 奇酷互联网络科技(深圳)有限公司 Method and device for switching data network and mobile terminal
CN109309943B (en) * 2017-07-28 2021-07-20 展讯通信(上海)有限公司 Multi-card multi-standby terminal, data card switching control method and device thereof, and storage medium
CN109495875B (en) * 2019-01-11 2021-03-12 Oppo广东移动通信有限公司 SIM card selection method and device, electronic equipment and storage medium
CN110035385B (en) * 2019-05-16 2020-12-22 深圳市沃特沃德股份有限公司 SIM card selection method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN110392405A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN111869264B (en) Method for returning to high-standard network from low-standard network and communication device
CN106888495B (en) Network access method and terminal
CN110022553B (en) User identity identification card management method and mobile terminal
CN108650699B (en) Network searching method of mobile terminal and mobile terminal
CN106961710B (en) Network access method and terminal
CN111372256B (en) Method for assisting installation of client terminal equipment and electronic equipment
CN113382363B (en) Method and device for sending messages based on different networks
CN116029719B (en) Payment service recommendation method, electronic device and storage medium
CN109195197B (en) Network selection method and device for dual-card dual-standby terminal, terminal equipment and storage medium
CN111010663A (en) Information sharing method and device, storage medium and computer equipment
CN109862607B (en) Network recommendation method and mobile terminal
CN110392405B (en) Method, device, terminal and storage medium for switching mobile data network
CN114007248A (en) Wi-Fi roaming method, electronic equipment and storage medium
CN105376839A (en) Mobile terminal and mobile network selection prompting method and system thereof
CN105306611A (en) Method and device for identifying attribution of short message port number
CN114466421B (en) Cell reselection method and device
CN105898825A (en) Network search device, mobile terminal and network search method
CN114489449B (en) Display method and electronic equipment
CN114554393A (en) Positioning method, positioning device, terminal, storage medium and program product
WO2019218787A1 (en) Network marking method and device, readable storage medium, and mobile terminal
CN110913454A (en) Cell determination method and terminal equipment
CN113938558B (en) Communication method, electronic device, and computer-readable storage medium
CN109195198B (en) Network selection method and device for dual-card dual-standby terminal, terminal equipment and storage medium
US20240089850A1 (en) Cell configuration determination method and apparatus, and storage medium
CN112543251B (en) Method, device and equipment for analyzing terminal short message and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant