[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113645345A - Data transmission method, mobile terminal and storage medium - Google Patents

Data transmission method, mobile terminal and storage medium Download PDF

Info

Publication number
CN113645345A
CN113645345A CN202110903332.0A CN202110903332A CN113645345A CN 113645345 A CN113645345 A CN 113645345A CN 202110903332 A CN202110903332 A CN 202110903332A CN 113645345 A CN113645345 A CN 113645345A
Authority
CN
China
Prior art keywords
mobile terminal
data
wifi network
network
length
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
CN202110903332.0A
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 CN202110903332.0A priority Critical patent/CN113645345A/en
Publication of CN113645345A publication Critical patent/CN113645345A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Landscapes

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

Abstract

The application provides a data transmission method, a mobile terminal and a storage medium, wherein the method comprises the following steps: when the mobile terminal is detected to be connected to a WIFI network and a cellular network, judging whether a first QoS parameter of an application program currently running on the mobile terminal in the WIFI network meets a preset condition; if the first QoS parameter does not meet the preset condition, judging whether a second QoS parameter of an application program currently operated by the mobile terminal under the cellular network meets the preset condition; and if the second QoS parameter does not meet the preset condition, sending the data of the application program through the WIFI network and the cellular network. The data transmission method, the mobile terminal and the storage medium can improve the data transmission efficiency of the mobile terminal.

Description

Data transmission method, mobile terminal and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, a mobile terminal, and a storage medium.
Background
In some implementations, when the mobile terminal is located in both the WiFi network and the cellular network, the mobile terminal generally transmits data using the WiFi network, and in the course of designing and implementing the present application, the inventors have found that at least the following problems exist: when the mobile terminal transmits data using the WiFi network, the network quality of the WiFi network may be poor, so that the efficiency of the mobile terminal transmitting data through the WiFi network is low.
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 data transmission method, a mobile terminal, and a storage medium, which can improve the efficiency of transmitting data by the mobile terminal.
In order to solve the above technical problem, the present application provides a data transmission method, applied to a mobile terminal, including: when the mobile terminal is detected to be connected to a WIFI network and a cellular network, judging whether a first QoS parameter of an application program currently running on the mobile terminal in the WIFI network meets a preset condition;
if the first QoS parameter does not meet the preset condition, judging whether a second QoS parameter of an application program currently operated by the mobile terminal under the cellular network meets the preset condition;
and if the second QoS parameter does not meet the preset condition, sending the data of the application program through the WIFI network and the cellular network.
Optionally, the first QoS parameter includes a first packet loss rate of the mobile terminal in the WIFI network.
Optionally, the second QoS parameter includes a second packet loss rate of the mobile terminal in the cellular network.
Optionally, the sending data of the application program through the WIFI network and the cellular network includes:
determining a first length of a first sending window corresponding to the WIFI network according to the first packet loss rate; and/or determining a second length of a second sending window corresponding to the cellular network according to the second packet loss rate;
and transmitting data according to the first length of the first transmission window and/or the second length of the second transmission window.
Optionally, transmitting data according to the first length of the first transmission window and/or the second length of the second transmission window includes:
dividing the data into a first data packet sequence and/or a second data packet sequence according to the first length and/or the second length;
the first sequence of data packets is transmitted through a first transmission window and/or the second sequence of data packets is transmitted through a second transmission window.
Optionally, determining a first length of a first sending window corresponding to the WIFI network according to a first packet loss rate of the mobile terminal in the WIFI network, including:
when the first packet loss rate is larger than or equal to a preset threshold value, acquiring a second length of a first sending window when the mobile terminal sends data through the WIFI network last time;
and determining the ratio of the second length to the first preset value as the first length of the first sending window of the WIFI network.
Optionally, the sending data of the application program through the WIFI network and the cellular network includes:
judging whether the application program supports MPTCP (Multi Path TCP, multichannel Transmission control protocol);
and if so, sending the data of the application program through the WIFI network and the cellular network.
Optionally, the method further includes: and if the second QoS parameter meets the preset condition, switching the network of the mobile terminal from the WIFI network to a cellular network.
Optionally, after the data of the application program is transmitted through the WIFI network and the cellular network, the method further includes:
judging whether a third QoS parameter of an application program currently running by the mobile terminal in the WIFI network meets a preset condition or not;
and if so, restoring the network of the mobile terminal to the WIFI network.
The present application further provides a mobile terminal, which includes: the data transmission method comprises a memory and a processor, wherein the memory stores a data transmission program, and the data transmission program realizes the steps of the data transmission method when being executed by the processor.
The present application also provides a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the data transmission method as above.
The present application also provides a computer program product comprising computer program code to, when run on a computer, cause the computer to perform the steps of the data transmission method as above.
As described above, the data transmission method is applied to the mobile terminal, and when it is detected that the mobile terminal is connected to the WIFI network and the cellular network, whether the first QoS parameter of the application program currently running on the mobile terminal in the WIFI network meets the preset condition is judged; if the first QoS parameter does not meet the preset condition, judging whether a second QoS parameter of an application program currently operated by the mobile terminal under the cellular network meets the preset condition; and if the second QoS parameter does not meet the preset condition, sending the data of the application program through the WIFI network and the cellular network. By the method, the efficiency of the mobile terminal for sending data can be 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 hardware structure diagram of a mobile 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 first flowchart of a data transmission method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a second data transmission method according to an embodiment of the present application;
fig. 5 is a third flowchart of a data transmission method 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 various information may be described herein by the terms first, second, third, etc., 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, items, 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.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. 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 S401 and S402 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S402 and then perform S401 in the specific implementation, but these should be within the protection 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.
In the following description, a mobile terminal may be implemented in various forms. For example, the mobile terminal described in the present application may include mobile 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.
The mobile terminal to which the application relates will be described below with reference to fig. 1. Please refer to fig. 1.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application. As shown in fig. 1, 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 radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and optionally, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data packet 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), and TDD-LTE (Time Division duplex Long Term Evolution).
The mobile terminal can help the user to send e-mail, browse web pages, access streaming media and the like through WiFi provided by the WiFi module 102, and provides wireless broadband internet access for the user. Where WiFi belongs to a short-range wireless transmission technology, although fig. 1 shows the WiFi module 102, it is understood that it does not belong to an essential component of the mobile terminal, and it can be omitted entirely as needed within a scope that does not change the essence of the invention.
The audio output unit 103 may convert an audio data packet 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 Processing Unit 1041 Processing image data packets of still pictures or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture 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 can receive sounds (audio packets) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sounds into audio packets. The processed audio (voice) data packets may be converted to 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 rate 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 by 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 by 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 packet 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 from external devices (e.g., packet information, power, etc.) and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit packets between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data packets. The memory 109 may mainly include a program storage area and a data packet 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 packet storage area may store packets (such as audio packets, phone book, 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 packets by running or executing software programs and/or modules stored in the memory 109 and calling the data packets 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. Please refer to fig. 2.
Fig. 2 is a communication network system architecture diagram according to an embodiment of the present application. As shown in fig. 2, for example, when the communication Network system is an LTE system of the UMTS, 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 registers (not shown) and holds subscriber specific information about service characteristics, packet rates, etc. All user data packets may be sent through SGW2034, PGW2035 may provide IP address assignment and other functions for UE201, and PCRF2036 is a policy and charging control policy decision point for traffic data packet flows 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.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
In order to improve the efficiency of the mobile terminal in transmitting data, the inventor thinks that when the mobile terminal is located in both the WIFI network and the cellular network, the data is transmitted through the WIFI network and the cellular network, thereby improving the efficiency of the mobile terminal in transmitting data.
The following describes a data transmission method provided by the present application with reference to specific embodiments.
Fig. 3 is a first flowchart of a data transmission method according to an embodiment of the present application. As shown in fig. 3, the method includes:
s301, when it is detected that the mobile terminal is connected to a WIFI network and a cellular network, judging whether a first Quality of Service (QoS) parameter of an application program currently running on the mobile terminal in the WIFI network meets a preset condition.
The execution main body of the embodiment of the application may be a mobile terminal, or may also be a data transmission device provided in the mobile terminal, and the data transmission device may be implemented by a combination of software and/or hardware.
Alternatively, the cellular network may be 2G, 3G, 4G, 5G, etc.
The mobile terminal can communicate with the public equipment through the WIFI network, so that a first QoS parameter of an application program, which is sent by the public server and currently operated by the mobile terminal under the WIFI network, is obtained.
Alternatively, the public device may be a communication base station, or may be a server corresponding to an application program.
The first QoS parameter includes at least one of a network transmission rate, a transmission delay, a first packet loss rate, and the like of the mobile terminal in the WIFI network.
The number of parameters included in the first QoS parameter is greater than or equal to the number of parameters included in the preset condition.
Optionally, when the first QoS parameter includes a network transmission rate and a transmission delay, the preset condition may include the network transmission rate and/or the transmission delay.
The preset condition is the minimum requirement that the network adopted when the mobile terminal sends data must meet.
Optionally, when the packet loss rate in the preset condition is 0.001, if the first packet loss rate is greater than 0.001, the first QoS parameter does not satisfy the preset condition.
Optionally, when the network transmission rate in the preset condition is 2 kbit/s and the packet loss rate is 0.001, if the network transmission rate in the first QoS parameter is less than 2 kbit/s and the first packet loss rate is greater than 0.001, the first QoS parameter does not satisfy the preset condition.
Optionally, when the network transmission rate in the preset condition is 2 kbit/s, the packet loss rate is 0.001, and the transmission delay is 1 ms, if the network transmission rate in the first QoS parameter is less than 2 kbit/s, the first packet loss rate is greater than 0.001, and the transmission delay is greater than 1 ms, the first QoS parameter does not satisfy the preset condition.
S302, if the first QoS parameter does not meet the preset condition, whether a second QoS parameter of an application program currently operated by the mobile terminal under the cellular network meets the preset condition is judged.
The second QoS parameter includes at least one of a transmission rate, a transmission delay, a second packet loss rate, and the like of the mobile terminal network in the cellular network.
Optionally, the execution method of S302 is similar to the execution method of S301, and the execution process of S302 is not described herein again.
In practical application, since the priority of the WIFI network is usually higher than that of the cellular network, it is determined whether the first QoS parameter meets the preset condition, and then it is determined whether the second QoS parameter meets the preset condition.
Of course, it is also possible to first determine whether the second QoS parameter satisfies the predetermined condition, and then determine whether the first QoS parameter satisfies the predetermined condition.
And S303, if the second QoS parameter does not meet the preset condition, sending the data of the application program through the WIFI network and the cellular network.
Optionally, the data of the application program is sent to the server corresponding to the application program through the WIFI network and the cellular network, and further, the data fed back to the mobile terminal by the server corresponding to the application program can be received through the WIFI network and the cellular network.
In the data transmission method provided in the embodiment of fig. 3, when neither the first QoS parameter nor the second QoS parameter satisfies the preset condition, that is, when both the network quality of the WIFI network and the cellular network is poor, the data of the application program is transmitted through the WIFI network and the cellular network, so that the efficiency of the mobile terminal for transmitting the data is improved.
On the basis of the above embodiments, the data transmission method provided by the embodiments of the present application is further described in detail below with reference to fig. 4.
Fig. 4 is a flowchart illustrating a second method for sending data according to an embodiment of the present application. As shown in fig. 4, the method includes:
s401, detecting that the mobile terminal is connected to a WIFI network and a cellular network.
S402, judging whether a first QoS parameter of an application program currently running in the mobile terminal under the WIFI network meets a preset condition.
If so, perform S403, otherwise perform S404.
And S403, sending the data of the application program through the WIFI network.
S404, judging whether a second QoS parameter of the application program currently operated by the mobile terminal in the cellular network meets a preset condition.
If so, S405 is executed, otherwise, S406-S408 are executed.
S405, switching the network of the mobile terminal from the WIFI network to a cellular network, and sending data of the application program through the cellular network.
S406, determining a first length of a first sending window corresponding to the WIFI network according to the first packet loss rate; and/or determining a second length of a second sending window corresponding to the cellular network according to the second packet loss rate.
In one possible design, when the first packet loss rate is greater than or equal to a preset threshold value, acquiring a second length of a first sending window when the mobile terminal sends data through the WIFI network last time; and determining the ratio of the second length to the first preset value as the first length of the first sending window of the WIFI network.
Alternatively, the first length may be determined by the following equation 1:
Cr=Cr-1the/R formula 1;
wherein, CrDenotes a first length, Cr-1Representing the second length and R representing a preset threshold. Alternatively, R equals 2.
Optionally, for one-time data transmission, if the mobile terminal receives a confirmation character corresponding to one-time transmission, determining a square root of the number of networks used by the mobile terminal to transmit data at the current moment, and determining a first ratio of 1 to the square root; the second length and the sum of the first ratio and the second ratio of the second length are determined as the first length.
Alternatively, the first length may be determined by the following equation 2:
Figure BDA0003200598170000111
wherein, CrIs a first length, Cr-1Is the second length, N is the number of networks,
Figure BDA0003200598170000112
is the square root of the square,
Figure BDA0003200598170000113
the first ratio is a first ratio of the first ratio,
Figure BDA0003200598170000114
is the second ratio.
The preset threshold may be 0, and may be a value greater than 0 and smaller than the packet loss rate in the preset condition. The first preset value is 2, and can also be 3, 4, etc.
Optionally, for data sent once, after the mobile terminal sends the data using the WIFI network, the length (i.e., the second length) of the first sending window when the mobile terminal executes the data sending this time through the WIFI network is recorded, so that when the mobile terminal sends the data through the WIFI network next time, the last recorded length (i.e., the second length) of the first sending window can be obtained.
The method for determining the second length of the second transmission window corresponding to the cellular network according to the second packet loss rate is the same as the method for determining the first length of the first transmission window corresponding to the WIFI network according to the first packet loss rate, and details are not repeated here.
And S407, transmitting data according to the first length of the first transmission window and/or the second length of the second transmission window.
Alternatively, the data may be transmitted by the following methods 1, 2, 3.
Method 1, data is transmitted according to a first length of a first transmission window.
And 2, transmitting the data according to the second length of the second transmission window.
And 3, transmitting data according to the first length of the first transmission window and the second length of the second transmission window.
In one possible design, the data is divided into a first data packet sequence and/or a second data packet sequence according to the first length and/or the second length; the first sequence of data packets is transmitted through a first transmission window and/or the second sequence of data packets is transmitted through a second transmission window.
Corresponding to the method 1, optionally, the data is divided into a first data packet sequence according to the first length, and the first data packet sequence is transmitted through the first transmission window.
Corresponding to the method 2, optionally, the data is divided into a second data packet sequence according to the second length, and the second data packet sequence is transmitted through the second transmission window.
Corresponding to the method 3, optionally, dividing the data into a first data packet sequence according to the first length, and transmitting the first data packet sequence through the first transmission window; and dividing the data into a second data packet sequence according to the second length, and transmitting the second data packet sequence through a second transmission window.
The number of data packets included in the first sequence of data packets is equal to the first length. The number of data packets included in the second data packet is equal to the second length.
Optionally, the data includes 10 consecutive data packets, the first length is 3 and the second length is 7, the obtained first data packet sequence includes 3 consecutive data packets, the second data packet sequence includes 7 consecutive data packets, the 3 consecutive data packets are consecutive data packets 1 to 3, respectively, and the 7 consecutive data packets are consecutive data packets 1 to 7, respectively.
The data transmission method in the embodiment of fig. 4 is different from the prior art. In the prior art, when the network quality of the WiFi network is poor and the network quality of the cellular network is good, the mobile terminal cannot automatically switch the WiFi network to the cellular network, so in practical applications, when a user uses the mobile terminal to play game entertainment, if the mobile terminal sends data through the WiFi network with poor network quality, the game may be jammed, and the user experience may be reduced. In the application, when the network quality of the WiFi network is poor (that is, the first QoS parameter does not satisfy the preset condition), and the network quality of the cellular network is good (the second QoS parameter satisfies the preset condition), the mobile terminal may send data through the cellular network, so that the game jam is alleviated, and the user experience is improved.
Optionally, in some implementations, when the mobile terminal is located in both the WiFi network and the cellular network, the mobile terminal defaults to using the WiFi network to transmit data, and does not support transmitting data through both the WiFi network and the cellular network, so that the network quality in the WiFi network is poor, resulting in low efficiency of transmitting data by the mobile terminal. In the application, when the mobile terminal is located in the WiFi network and the cellular network at the same time, the data can be transmitted through the cellular network and the WiFi network at the same time, so that when the network quality of the WiFi network is poor, the efficiency of the mobile terminal for transmitting the data can be improved.
Optionally, in some implementations, when the mobile terminal is located in both the WiFi network and the cellular network, the mobile terminal defaults to using the WiFi network to transmit data, and thus the network quality in the WiFi network is poor, resulting in low efficiency of data transmission by the mobile terminal. In the application, when the first QoS parameter meets the preset condition, the data of the application program is sent through the WIFI network, and therefore the problem that the efficiency of sending the data by the mobile terminal is low when the network quality of the WIFI network is poor can be avoided.
Fig. 5 is a third flowchart of a data transmission method according to an embodiment of the present application. As shown in fig. 5, the method includes:
s501, when the mobile terminal is detected to be connected to a WIFI network and a cellular network, whether a first QoS parameter of an application program currently running on the mobile terminal in the WIFI network meets a preset condition is judged.
S502, if the first QoS parameter does not meet the preset condition, judging whether a second QoS parameter of an application program currently operated by the mobile terminal under the cellular network meets the preset condition.
S503, if the second QoS parameter does not satisfy the preset condition, determining whether the application program supports a Multi Path Transmission Control Protocol (MPTCP).
Optionally, it may be determined whether the application supports MPTCP according to the first identifier.
Alternatively, the first flag may be 0 or 1, 1 indicating that the application supports MPTCP, and 0 indicating that the application does not support MPTCP.
If the first identifier is 1, the application program supports MPTCP; if the first flag is 0, the application program does not support MPTCP.
Alternatively, the first identifier may be acquired by the following two methods.
In the mode 1, a mobile terminal sends a first request to a server, wherein the first request is used for requesting to acquire a first identifier, and the first identifier indicates whether MPTCP is supported or not; the server sends a first identifier to the mobile terminal according to the first request;
in the mode 2, the installation file of the application program comprises the first identifier, and the first identifier is written into the mobile terminal when the mobile terminal installs the application program according to the installation file.
And S504, if the data is supported, sending the data of the application program through the WIFI network and the cellular network.
It should be noted that, in the embodiment of fig. 5, when the application supports MPTCP, the data of the application may be transmitted through the WIFI network and the cellular network only through the above S406 to S408.
In the data transmission method implemented and provided in fig. 5, when neither the first QoS parameter nor the second QoS parameter satisfies the preset condition, that is, when the network quality of both the WIFI network and the cellular network is poor, the data of the application program can be transmitted through the WIFI network and the cellular network, so that the efficiency of the mobile terminal for transmitting the data can be improved. And when the application program supports MPTCP, the data of the application program is sent through the WIFI network and the cellular network, and protocol support is provided for the mobile terminal to send the data through the two networks.
Optionally, in S301 in the embodiment of fig. 3 or S402 in the embodiment of fig. 4, the following may also be performed: judging whether the application program supports MPTCP; and if the application program supports MPTCP, judging whether the first QoS parameter of the application program currently operated by the mobile terminal in the WIFI network meets a preset condition.
Optionally, S406 in the embodiment of fig. 4 may also be: judging whether the application program supports MPTCP; if so, determining a first length of a first sending window corresponding to the WIFI network according to a first packet loss rate included in the first QoS parameter.
On the basis of any of the above method embodiments, after the data of the application program is transmitted through the WIFI network and/or the cellular network, the method may further include:
judging whether a third QoS parameter of an application program currently running by the mobile terminal in the WIFI network meets a preset condition or not; and if the third QoS parameter meets the preset condition, restoring the network of the mobile terminal to be the WIFI network. And when data needing to be sent exist next time, sending the data through the WIFI network.
And the third QoS parameter is the parameter of the application program which is obtained again and currently operated by the mobile terminal under the WIFI network. The third QoS parameter includes at least one of a network transmission rate, a transmission delay, a packet loss rate, and the like of the mobile terminal in the WIFI network.
In the application, after the data of the application program is sent through the WIFI network and the cellular network or the cellular network, the network of the mobile terminal can be restored to the WIFI network, the data is sent through the WIFI network, so that the mobile terminal can flexibly determine that the data is sent through the cellular network and/or the WIFI network, and the flexibility of the mobile terminal in sending the data through different networks is improved under the condition of improving the data sending efficiency of the mobile terminal.
The application also provides a mobile terminal, which comprises a memory and a processor, wherein the memory is stored with a data sending program, and the data sending program realizes the steps of the data sending method in any embodiment when being executed by the processor.
The present application further provides a computer-readable storage medium, in which a data transmission program is stored, and when being executed by a processor, the data transmission program implements the steps of the data transmission method in any one of the embodiments.
In the embodiments of the mobile terminal and the computer-readable storage medium provided in the present application, all technical features of any one of the embodiments of the data transmission 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 mobile terminal (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 data transmission method is characterized by being applied to a mobile terminal and comprising the following steps:
when the mobile terminal is detected to be connected to a WIFI network and a cellular network, judging whether a first QoS parameter of an application program currently running on the mobile terminal in the WIFI network meets a preset condition;
if the first QoS parameter does not meet the preset condition, judging whether a second QoS parameter of an application program currently operated by the mobile terminal under the cellular network meets the preset condition;
and if the second QoS parameter does not meet the preset condition, sending the data of the application program through the WIFI network and the cellular network.
2. The method of claim 1, wherein the first QoS parameter comprises a first packet loss rate of the mobile terminal under the WIFI network, and/or wherein the second QoS parameter comprises a second packet loss rate of the mobile terminal under the cellular network.
3. The method of claim 2, wherein the sending the data for the application over the WIFI network and the cellular network comprises:
determining a first length of a first sending window corresponding to the WIFI network according to the first packet loss rate; and/or determining a second length of a second sending window corresponding to the cellular network according to the second packet loss rate;
and transmitting data according to the first length of the first transmission window and/or the second length of the second transmission window.
4. The method of claim 3, wherein the transmitting data according to the first length of the first transmission window and/or the second length of the second transmission window comprises:
dividing the data into a first data packet sequence and/or a second data packet sequence according to the first length and/or the second length;
the first sequence of data packets is transmitted through the first transmission window and/or the second sequence of data packets is transmitted through a second transmission window.
5. The method of claim 3, wherein the determining the first length of the first transmission window corresponding to the WIFI network according to the first packet loss rate comprises:
when the first packet loss rate is greater than or equal to a preset threshold value, acquiring a second length of a first sending window when the mobile terminal sends data through the WIFI network last time;
and determining the ratio of the second length to a first preset value as a first length of a first sending window of the WIFI network.
6. The method of any of claims 1-5, wherein sending the application's data over the WIFI network and the cellular network comprises:
judging whether the application program supports MPTCP;
and if so, sending the data of the application program through the WIFI network and the cellular network.
7. The method according to any one of claims 1 to 5, further comprising:
and if the second QoS parameter meets the preset condition, switching the network of the mobile terminal from the WIFI network to the cellular network.
8. The method of any of claims 1-5, wherein after the sending the data for the application over the WIFI network and the cellular network, the method further comprises:
judging whether a third QoS parameter of an application program currently running by the mobile terminal in the WIFI network meets a preset condition or not;
and if so, restoring the network of the mobile terminal to the WIFI network.
9. A mobile terminal, characterized in that the mobile terminal comprises: memory, processor, wherein the memory has stored thereon a data transmission program which, when executed by the processor, implements the steps of the data transmission method according to any one of claims 1 to 8.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the data transmission method according to any one of claims 1 to 8.
CN202110903332.0A 2021-08-06 2021-08-06 Data transmission method, mobile terminal and storage medium Pending CN113645345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110903332.0A CN113645345A (en) 2021-08-06 2021-08-06 Data transmission method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110903332.0A CN113645345A (en) 2021-08-06 2021-08-06 Data transmission method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113645345A true CN113645345A (en) 2021-11-12

Family

ID=78420039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110903332.0A Pending CN113645345A (en) 2021-08-06 2021-08-06 Data transmission method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113645345A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827983A (en) * 2022-03-31 2022-07-29 深圳市沃特沃德信息有限公司 Anti-addiction method, device, equipment and storage medium
CN114900865A (en) * 2022-05-26 2022-08-12 上海传英信息技术有限公司 Data processing method, intelligent terminal and storage medium
CN116233989A (en) * 2023-05-10 2023-06-06 荣耀终端有限公司 Control method and equipment for network connection
CN116390142A (en) * 2023-02-23 2023-07-04 荣耀终端有限公司 Network detection method and electronic equipment
WO2023124791A1 (en) * 2021-12-31 2023-07-06 华为技术有限公司 Control method for cellular network, and electronic device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023124791A1 (en) * 2021-12-31 2023-07-06 华为技术有限公司 Control method for cellular network, and electronic device
CN114827983A (en) * 2022-03-31 2022-07-29 深圳市沃特沃德信息有限公司 Anti-addiction method, device, equipment and storage medium
CN114827983B (en) * 2022-03-31 2024-05-03 深圳市沃特沃德信息有限公司 Anti-addiction method, device, equipment and storage medium
CN114900865A (en) * 2022-05-26 2022-08-12 上海传英信息技术有限公司 Data processing method, intelligent terminal and storage medium
CN114900865B (en) * 2022-05-26 2024-06-04 上海传英信息技术有限公司 Data processing method, intelligent terminal and storage medium
CN116390142A (en) * 2023-02-23 2023-07-04 荣耀终端有限公司 Network detection method and electronic equipment
CN116390142B (en) * 2023-02-23 2023-11-28 荣耀终端有限公司 Network detection method and electronic equipment
CN116233989A (en) * 2023-05-10 2023-06-06 荣耀终端有限公司 Control method and equipment for network connection
CN116233989B (en) * 2023-05-10 2023-09-22 荣耀终端有限公司 Control method and equipment for network connection

Similar Documents

Publication Publication Date Title
CN113645345A (en) Data transmission method, mobile terminal and storage medium
CN110784898A (en) Network switching method, mobile terminal and computer readable storage medium
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN112399215A (en) Screen projection parameter regulation and control method and device and computer readable storage medium
CN108600520B (en) Reception state control method, mobile terminal, and computer-readable storage medium
CN112822538A (en) Screen projection display method, screen projection device, terminal and storage medium
CN114126015A (en) Power consumption control method, intelligent terminal and storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN113805837A (en) Audio processing method, mobile terminal and storage medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN109062688B (en) Memory allocation method, server and mobile terminal
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN108183833B (en) Response processing method and device and computer readable storage medium
CN107404568B (en) Control switch management method and mobile terminal
CN114630406A (en) Power consumption control method, intelligent terminal and storage medium
CN109379719B (en) Application program broadcast processing method and device and computer readable storage medium
CN115086479A (en) Terminal control method, intelligent terminal and storage medium
CN114423041A (en) Communication method, intelligent terminal and storage medium
CN113329347A (en) Processing method of Bluetooth device, mobile terminal and storage medium
CN114095960A (en) Processing method, communication device, and storage medium
CN108304302B (en) Interface merging method, equipment and computer readable storage medium
CN110058761B (en) Copy selection method, mobile terminal and computer readable storage medium
CN113453326A (en) Terminal equipment power consumption optimization method and device and computer readable 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