CN111343036B - Data buffering method applied to terminal and terminal - Google Patents

Data buffering method applied to terminal and terminal Download PDF

Info

Publication number
CN111343036B
CN111343036B CN201811561465.9A CN201811561465A CN111343036B CN 111343036 B CN111343036 B CN 111343036B CN 201811561465 A CN201811561465 A CN 201811561465A CN 111343036 B CN111343036 B CN 111343036B
Authority
CN
China
Prior art keywords
terminal
network speed
buffer
preset
buffering
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
CN201811561465.9A
Other languages
Chinese (zh)
Other versions
CN111343036A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201811561465.9A priority Critical patent/CN111343036B/en
Publication of CN111343036A publication Critical patent/CN111343036A/en
Application granted granted Critical
Publication of CN111343036B publication Critical patent/CN111343036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9063Intermediate storage in different physical parts of a node or terminal
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a data buffering method applied to a terminal and the terminal, when the terminal is in an environment with relatively poor network speed, the data buffered in advance can be used, the situation of network surfing blockage is effectively avoided, and user experience is improved. The method in the embodiment of the application comprises the following steps: acquiring the network speed in a preset time period; responding to a preset operation acted on the terminal, and starting an advance buffering mode; and if the network speed is greater than or equal to a preset threshold value, buffering unloaded data related to the application programs in the buffer list.

Description

Data buffering method applied to terminal and terminal
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a data buffering method applied to a terminal and a terminal.
Background
With the continuous development of the current communication technology and intelligent terminals, the use of terminals to surf the internet has been deep into every corner of people's daily life, and great inconvenience is brought to users if the users can not surf the internet at any time and any place by using the terminals.
However, the user cannot be in an environment with good network conditions at any time, for example, the user leaves the environment with a router from home, the terminal has a network card pause condition due to poor network for a period of time in the network switching process, and the terminal cannot load data quickly when the network conditions are poor, which affects the user experience.
Disclosure of Invention
The embodiment of the application provides a data buffering method applied to a terminal and the terminal, when the terminal is in an environment with a relatively poor network speed, data buffered in advance can be used, the situation of network surfing blockage is effectively avoided, and user experience is improved.
In view of this, a first aspect of the embodiments of the present application provides a data buffering method applied to a terminal, including:
acquiring the network speed in a preset time period;
starting an advance buffer mode in response to a preset operation acting on the terminal;
and if the network speed is greater than or equal to a preset threshold value, buffering unloaded data related to the application programs in the buffer list.
In the embodiment, the terminal can perform network monitoring, and on the premise that the terminal starts the advanced buffering mode according to the operation of the user, if the network speed is greater than or equal to the preset threshold, the current network condition is better, the terminal can buffer the unloaded data of the application program in advance, so that when the terminal is in an environment with a poorer network speed, the data which is buffered in advance can be used, the situation of network jamming is effectively avoided, and the user experience is improved.
Optionally, in some possible embodiments, if the network speed is less than the preset threshold, a target prompt is displayed, where the target prompt is used to prompt a user whether to select to start the early buffering mode.
In the embodiment, when the terminal is in an environment with stable network, the terminal surfs the internet smoothly and does not need to buffer data in advance, and if the current network is unstable, the terminal can prompt the user whether to select to start the advance buffering mode or not so as to help the user to deal with the possible situation of surf the internet jamming in advance and further improve the user experience.
Optionally, in some possible embodiments, the buffer list includes applications running on the terminal, and the method may further include:
and responding to an editing instruction input by a user, and adding and/or deleting the application programs in the buffer list.
In the embodiment, the application program in the buffer list is the running application program, and in addition, the user can manually add and/or delete the application program in the buffer list, that is, the user can customize the buffer list, so that the flexibility of the scheme is improved.
Optionally, in some possible embodiments, the obtaining the network speed within the preset time period includes:
acquiring flow in a preset time period;
and calculating the ratio of the flow to the duration of the preset time period to obtain the network speed.
In the embodiment, a specific implementation mode for monitoring the network speed by the terminal is provided, and the realizability of the scheme is improved.
Optionally, in some possible embodiments, the preset operation includes at least one of an operation of shaking the terminal, an operation of continuously clicking the terminal screen, or an operation of long-pressing the terminal screen.
In the embodiment, several possible implementation modes of the preset operation are provided, and the expansibility of the scheme is improved.
A second aspect of the embodiments of the present application provides a terminal, including:
the network monitoring unit is used for acquiring the network speed in a preset time period;
a mode switch unit for opening an advance buffer mode in response to a preset operation acting on the terminal;
and the buffer management unit is used for buffering unloaded data related to the application programs in the buffer list if the network speed is greater than or equal to a preset threshold value.
Optionally, in some possible embodiments, the buffer management unit is further configured to:
and if the network speed is less than the preset threshold value, displaying a target prompt, wherein the target prompt is used for prompting a user whether to start the advanced buffer mode.
Optionally, in some possible embodiments, the buffer list includes an application program in operation on the terminal, and the buffer management unit is further configured to:
and responding to an editing instruction input by a user, and adding and/or deleting the application programs in the buffer list.
Optionally, in some possible embodiments, the network monitoring unit is specifically configured to:
acquiring flow in a preset time period;
and calculating the ratio of the flow to the duration of the preset time period to obtain the network speed.
Alternatively, in some possible embodiments,
the preset operation comprises at least one of an operation of shaking the terminal, an operation of continuously clicking the terminal screen or an operation of long-pressing the terminal screen.
A third aspect of the embodiments of the present application provides a terminal, including:
a touch screen, wherein the touch screen comprises a touch sensitive surface and a display;
one or more processors;
a memory;
a plurality of application programs;
and one or more programs, wherein the one or more programs are stored in the memory, the one or more programs including instructions which, when executed by the terminal, cause the terminal to perform the steps of:
acquiring the network speed in a preset time period;
responding to a preset operation acted on the terminal, and starting an advance buffering mode;
and if the network speed is greater than or equal to a preset threshold value, buffering unloaded data related to the application programs in the buffer list.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the instructions cause the computer to execute a process in the method for arranging icons on a terminal interface according to the first aspect.
A fifth aspect of the embodiments of the present application provides a computer program product, which when running on a computer, causes the computer to execute the procedures in the method for arranging icons on the terminal interface in the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
in the embodiment of the application, the terminal acquires the network speed within the preset time period and detects the preset operation acting on the terminal, then the terminal responds to the preset operation and starts the advanced buffering mode, and if the terminal judges that the network speed is greater than or equal to the preset threshold, the terminal buffers unloaded data related to the application program in the buffer list. Through the mode, the terminal can carry out network monitoring, on the premise that the terminal starts the advanced buffering mode according to the operation of a user, if the network speed is greater than or equal to the preset threshold value, the current network condition is better, the terminal can buffer the unloaded data of the application program in advance, and therefore when the terminal is in the environment with the poorer network speed, the data buffered in advance can be used, the situation that the internet is jammed is effectively avoided, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile phone;
fig. 2 is a schematic diagram of an embodiment of a data buffering method applied to a terminal in the embodiment of the present application;
fig. 3 is a schematic diagram of another embodiment of a data buffering method applied to a terminal in the embodiment of the present application;
FIG. 4 is a schematic diagram of an embodiment of a terminal in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a data buffering method applied to a terminal and the terminal, when the terminal is in an environment with a relatively poor network speed, data buffered in advance can be used, the situation of network surfing blockage is effectively avoided, and user experience is improved.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The terminal in this embodiment of the application may be a mobile phone, a tablet computer, a wearable device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and other user devices having a shooting function, and this is not limited in this embodiment of the application.
Taking the terminal as a mobile phone as an example, as shown in fig. 1, the mobile phone 100 includes: radio Frequency (RF) circuitry 110, memory 120, input unit 130, one or more sensors 140, processor 150, power supply 160, display unit 170, audio circuitry 180, and the like. Those skilled in the art will appreciate that the handset configuration shown in fig. 1 is not intended to be limiting and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The functional components of the mobile phone 100 are described below:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 150; in addition, uplink data is transmitted to the base station. In general, the RF circuit 110 is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 120 may be used to store software programs and modules, and the processor 150 executes various functional applications and data processing of the mobile phone 100 by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an Application (APP) required by at least one function, and the like, such as a sound playing function, an image playing function, and the like; the storage data area may store data (such as audio data, image data, a phonebook, etc.) created according to the use of the cellular phone 100, and the like. Further, the memory 120 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 input unit 130 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the cellular phone 100. Specifically, the input unit 130 may include a touch screen 131 and other input devices 132. The touch screen 131, also referred to as a touch panel, may collect touch operations of a user (e.g., operations of the user on the touch screen 131 or near the touch screen 131 using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch screen 131 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by 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 150, and can receive and execute commands sent by the processor 150. In addition, the touch screen 131 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch screen 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The sensor 140 includes a sensor for performing biometric recognition, such as a fingerprint recognition sensor, a face recognition sensor, and an iris recognition sensor. Taking a fingerprint identification sensor as an example, the fingerprint identification sensor can collect fingerprint information of a user and report the collected fingerprint information to the processor 150, and the processor 150 identifies the user according to the fingerprint information.
The sensor 140 further includes a gravity sensor (gravity sensor), which can detect the acceleration of the mobile phone in each direction (generally three axes), detect the gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like.
The handset 100 may also include other sensors, such as light sensors. In particular, the light sensor may include an ambient light sensor and a proximity light sensor. The ambient light sensor can adjust the brightness of the touch screen 131 according to the brightness of ambient light; the proximity light sensor may detect whether an object is near or touching the phone, and may turn off the touch screen 131 and/or the backlight when the phone 100 is moved to the ear. The mobile phone 100 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which will not be described herein.
The display unit 170 may be used to display information input by or provided to the user and various menus of the mobile phone 100. The Display unit 170 may include a Display panel 171, and optionally, the Display panel 171 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch screen 131 can cover the display panel 171, and when the touch screen 131 detects a touch operation on or near the touch screen 131, the touch screen is transmitted to the processor 150 to determine the type of the touch event, and then the processor 150 provides a corresponding visual output on the display panel 171 according to the type of the touch event. Although in fig. 1 the touch screen 131 and the display panel 171 are shown as two separate components to implement the input and output functions of the cell phone 100, in some embodiments the touch screen 131 and the display panel 171 may be integrated to implement the input and output functions of the cell phone 100.
The audio circuitry 180, speaker 181, microphone 182 can provide an audio interface between a user and the handset 100. The audio circuit 180 may transmit the electrical signal converted from the received audio data to the speaker 181, and the electrical signal is converted into a sound signal by the speaker 181 and output; on the other hand, the microphone 182 converts the collected sound signals into electrical signals, which are received by the audio circuit 180 and converted into audio data, which are then output to the RF circuit 110 for transmission to, for example, another cell phone, or to the memory 120 for further processing.
The processor 150 is a control center of the mobile phone 100, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Alternatively, processor 150 may include one or more processing units; alternatively, the processor 150 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 150.
The handset 100 also includes a power supply 160 (e.g., a battery) for powering the various components, optionally logically connected to the processor 150 via a power management system, so as to manage charging, discharging, and power consumption via the power management system.
Although not shown, the handset 100 may also include an antenna, a Wireless-Fidelity (WiFi) module, a Near Field Communication (NFC) module, a bluetooth module, a speaker, an accelerometer, a gyroscope, and the like.
When the user uses the terminal, the user can not be in a stable network environment anytime and anywhere, for example, the user uses WiFi at home to surf the internet, something suddenly needs to go out, a WiFi signal far away from the router becomes weak, and in the process of switching WiFi into flow, data which the user needs to access the internet cannot be loaded temporarily because the network is poor, so that the user experience is influenced.
In order to solve the foregoing problem, an embodiment of the present application provides a data buffering method applied to a terminal, and specifically, the embodiment of the present application takes a mobile phone as an example for description.
Referring to fig. 2, fig. 2 is a diagram illustrating an embodiment of a data buffering method applied to a terminal according to an embodiment of the present disclosure.
201. And acquiring the network speed in a preset time period.
In this embodiment, the mobile phone may monitor the network status in real time and obtain the network speed within the preset time period. It can be understood that the network monitoring is a background service, an Application Programming Interface (API) responsible for providing network monitoring may be provided in the system of the mobile phone to provide a traffic statistics function, and the current network speed may be obtained by calculating a ratio of traffic within a preset time period to a preset duration.
Specifically, the implementation code for acquiring the traffic may be as follows:
Figure BDA0001912070880000061
202. and responding to preset operation acted on the terminal, and starting an advance buffering mode.
In this embodiment, the mobile phone may detect a preset operation acting on the screen, the key, or the fingerprint identifier in real time, and then start the advance buffering mode in response to the preset operation. Specifically, a mode switch is provided for a user in a setting item of the mobile phone, and the user can select whether to turn on the advanced buffering mode according to needs, that is, if the mobile phone detects that the user performs a preset operation of turning on the mode switch, the mobile phone turns on the advanced buffering mode.
It should be noted that the preset operation may further include an operation of shaking the mobile phone, an operation of continuously clicking a screen of the mobile phone, an operation of long-pressing the screen of the mobile phone, and the like, and various possible implementation manners of the preset operations are further described below with reference to an actual application scenario.
Optionally, the preset operation is an operation of shaking the mobile phone, that is, the user holds the mobile phone by hand and shakes the mobile phone, for example, the mobile phone detects shaking of the mobile phone by the sensing device, and then triggers to start the advance buffering mode, or the mobile phone detects shaking of the mobile phone by the sensing device, and then pops up an option frame for prompting the user whether to open the advance buffering mode, and if the user selects to open the advance buffering mode, the mobile phone can be triggered to start the advance buffering mode.
Optionally, the preset operation is an operation of continuously clicking a screen of the mobile phone, for example, the mobile phone detects that the user continuously taps the screen 3 times in a black screen or bright screen state, and then triggers to start the advanced buffer mode, or the mobile phone detects that the user continuously taps the screen 3 times in the black screen or bright screen state, and then pops up an option box for prompting the user whether to open the advanced buffer mode, and if the user selects to open the advanced buffer mode, the mobile phone may be triggered to start the advanced buffer mode.
Optionally, the preset operation is an operation of pressing a screen of the mobile phone for a long time, for example, the mobile phone detects that a user presses the screen of the mobile phone for a long time in a black screen state or a bright screen state, and then triggers to start the advanced buffering mode, or the mobile phone detects that the user presses the screen of the mobile phone for a long time in a black screen state or a bright screen state, and then pops up an option box for prompting the user whether to start the advanced buffering mode, and if the user selects to start the advanced buffering mode, the mobile phone can be triggered to start the advanced buffering mode.
It should be noted that the above listed interaction operations between the user and the mobile phone may support various scenes such as floating touch, a black screen gesture, and a bright screen gesture, and in addition, the preset operations in practical applications include, but are not limited to, the above listed various implementation manners.
203. And if the network speed is greater than or equal to the preset threshold value, buffering unloaded data related to the application programs in the buffer list.
In this embodiment, the mobile phone sets a threshold of the network speed in advance, and if the mobile phone detects that the current network speed is greater than or equal to the preset threshold, and on the premise that the advanced buffering mode is already started, the mobile phone will buffer the unloaded data related to the application program in the buffer list. Specifically, when the mobile phone detects that the current network speed is greater than or equal to the preset threshold value, whether the advanced buffer mode is started or not is further judged, and only when the conditions that the network speed is greater than or equal to the preset threshold value and the advanced buffer mode is started are met, the mobile phone starts to buffer data.
It should be noted that the buffering data in this embodiment refers to a process of downloading data that has not been loaded by the mobile phone from the server onto the local memory or the local disk. Specifically, the mobile phone may send a buffering command or broadcast to the application program in the buffer list, and the application program may determine whether the application program is in the running state after receiving the buffering command or broadcast, and execute the corresponding buffering task if the application program is in the running state.
It is understood that the preset threshold value related to the wire speed can be defined by the user, and the specific value of the preset threshold value is not limited herein.
It should be noted that, in addition to the currently running application, the application in the buffer list may also be added and/or deleted by the user according to the needs of the user, specifically, the mobile phone may provide a setting item for the buffer list for the user, and the user may customize the application in the buffer list, for example, although the user opens the browser and the music player, the user currently uses the traffic data and does not want to consume too much traffic, and the user may remove the application of the music player in the buffer list, and then the mobile phone removes the corresponding application in the buffer list in response to an edit instruction input by the user.
It should be noted that, in addition to being implemented by the entire system service of the mobile phone as described above, the data buffering method in this embodiment may also implement the data buffering function in the application program alone. For example, a network monitoring service and a cache type switch are arranged in the browser, so that the function of advanced caching can be realized in the browser.
Optionally, if the mobile phone detects that the current network speed is less than the preset threshold and the advance buffering mode is not currently started, the mobile phone displays a target prompt for prompting the user whether to start the advance buffering mode. Specifically, when the mobile phone detects that the network speed is lower than the preset threshold, it is further determined whether the advanced buffering mode is started, and if not, the mobile phone may display a prompt box to prompt the user to select to start the advanced buffering mode.
It should be noted that, in this embodiment, there is no fixed timing relationship between step 201 and step 202, and step 201 may be executed first, or step 202 may be executed first, or both step 201 and step 202 are executed, which is not limited herein. For example, the user has actively started the advance buffering mode in advance, and then the mobile phone monitors and detects that the network speed is greater than or equal to the preset threshold value through the network, and the mobile phone can start to buffer data. Or the advanced buffer mode is not started, when the mobile phone detects that the network speed is less than the preset threshold value through network monitoring, the mobile phone prompts a user to select to start the advanced buffer mode, and the data starts to be buffered after the advanced buffer mode is started.
In the embodiment of the application, the terminal acquires the network speed in the preset time period and detects the preset operation acted on the terminal, then the terminal responds to the preset operation and starts the advanced buffering mode, and if the terminal judges that the network speed is greater than or equal to the preset threshold, the terminal buffers unloaded data related to the application program in the buffering list. Through the mode, the terminal can carry out network monitoring, on the premise that the terminal starts the advanced buffering mode according to the operation of a user, if the network speed is greater than or equal to the preset threshold value, the current network condition is better, the terminal can buffer the unloaded data of the application program in advance, and therefore when the terminal is in the environment with the poorer network speed, the data buffered in advance can be used, the situation that the internet is jammed is effectively avoided, and the user experience is improved. In addition, if the network speed is less than the preset threshold value, which indicates that the current network is unstable, the terminal may prompt the user to select to start a forward buffer mode to deal with the possible situation of internet jamming in advance, thereby further improving the user experience.
The following further describes a complete flow of the data buffering method applied to the terminal in the embodiment of the present application:
referring to fig. 3, fig. 3 is a diagram illustrating another embodiment of a data buffering method applied to a terminal according to an embodiment of the present application.
301. The network status is monitored.
In this embodiment, the mobile phone may monitor the network state in real time and test the current network speed, where a specific implementation manner of obtaining the current network speed by the mobile phone is similar to step 201 in the embodiment shown in fig. 2, and details are not repeated here.
302. And judging whether the network speed is greater than or equal to a preset threshold value.
After the mobile phone obtains the current network speed, whether the network speed is greater than or equal to a preset threshold value is further judged. The embodiment introduces the judgment of the current network speed, and executes subsequent operations based on the judgment result so as to realize that resources are buffered as much as possible when the network condition is good.
303. It is determined whether the early buffer mode is enabled, if not, go to step 304, and if so, go to step 306.
In this embodiment, after the mobile phone finishes determining the current network speed, whether the current network speed is greater than or equal to the preset threshold, the mobile phone further determines whether the advanced buffering mode is started, where an operation of triggering the mobile phone to start the advanced buffering mode is similar to step 202 in the embodiment shown in fig. 2, and is not described here again.
304. And displaying the target prompt.
In this embodiment, if the current network speed is less than the preset threshold and the advanced buffering mode is not started yet, the mobile phone displays a target prompt for prompting the user whether to start the advanced buffering mode. Specifically, when the mobile phone detects that the network speed is lower than the preset threshold, it is further determined whether the advanced buffering mode is started, and if not, the mobile phone may display a prompt box to prompt the user to select to start the advanced buffering mode.
305. The settings are updated according to the user's selection.
In this embodiment, after the target prompt is displayed, the mobile phone further updates the setting according to the selection of the user based on the target prompt, that is, if the user selects to open the advanced buffering mode, the mobile phone executes a corresponding instruction to open the advanced buffering mode, and if the user does not select to open the advanced buffering mode, the mobile phone maintains the current state.
306. The unloaded data associated with the applications in the buffer list is buffered.
In this embodiment, if the current network speed is greater than or equal to the preset threshold and the advanced buffering mode is already started, the mobile phone will buffer the unloaded data related to the application program in the buffering list. The implementation of the buffered data is similar to the related description of step 203 in the embodiment shown in fig. 2, and is not described here again.
It should be noted that the buffering tasks are also distinguished according to different application types, for example, for an application program of a browser type, first obtain a loading content of a current page, if the current web page content is not loaded yet, start to load a remaining content (for example, a part of content that is not displayed yet in a downward page turning process), and obtain a hyperlink in the current web page, and perform a pre-loading according to a web page content pointed by the hyperlink, specifically, an address pointed by the hyperlink in the web page may be obtained by using a regular expression matching the hyperlink and a Uniform Resource Locator (URL), and then a web page request may be sent to the corresponding address, so as to determine whether to continue to parse the hyperlink of the newly obtained web page in a customized manner. For an application program of an audio/video player, resources that have not been played in the playlist may be buffered, if there are more audio/video resources that are currently played, only the current resources may be buffered, and if there are fewer audio/video resources that are currently played, other resources in the playlist may also be buffered, which is not limited herein.
The data buffering method in the embodiment of the present application is further described below with reference to a specific application scenario:
for example, when a user is sitting on a train to listen to songs on line, because the train needs to frequently enter and exit a tunnel, network signals are unstable, and the mobile phone detects that the current network speed is lower than a preset threshold value after the train enters the tunnel, the mobile phone prompts the user whether to select to start the early buffering mode or not, if the user selects to start, the mobile phone responds to a trigger instruction of a user to start a pre-buffering mode, then the network returns to normal after the train runs out of the tunnel, the mobile phone detects that the current network speed is greater than or equal to a preset threshold value, based on the pre-buffering mode, the mobile phone pre-buffers songs which are not played in a song play list, after the current song is played, the train can enter the tunnel again, and at the moment, because the mobile phone has buffered the next song in advance, even if the current network condition is poor, the user can still listen to songs on line normally, and the use experience of the user is guaranteed.
The above describes the data buffering method applied to the terminal in the embodiment of the present application, and the following describes the terminal in the embodiment of the present application:
referring to fig. 4, an embodiment of a terminal in the embodiment of the present application includes:
a network monitoring unit 401, configured to obtain a network speed in a preset time period;
a mode switching unit 402 for turning on an advance buffering mode in response to a preset operation acting on the terminal;
a buffering management unit 403, configured to buffer unloaded data related to the applications in the buffering list if the network speed is greater than or equal to a preset threshold.
Optionally, the buffer management unit 403 is further configured to:
and if the network speed is less than the preset threshold value, displaying a target prompt, wherein the target prompt is used for prompting a user whether to start the advanced buffer mode.
Optionally, the buffer list includes an application program in operation on the terminal, and the buffer management unit 403 is further configured to:
and responding to an editing instruction input by a user, and adding and/or deleting the application programs in the buffer list.
Optionally, the network monitoring unit is specifically configured to:
acquiring flow in a preset time period;
and calculating the ratio of the flow to the duration of the preset time period to obtain the network speed.
Optionally, the preset operation includes at least one of an operation of shaking the terminal, an operation of continuously clicking the terminal screen, or an operation of long-pressing the terminal screen.
In this embodiment, the network monitoring unit 401 obtains the network speed in the preset time period and detects the preset operation acting on the terminal, and then the mode switch unit 402 responds to the preset operation to start the advanced buffering mode, and if the network speed is greater than or equal to the preset threshold, the buffer management unit 403 buffers the unloaded data related to the application program in the buffer list. By the method, the terminal can perform network monitoring, on the premise that the terminal starts the advanced buffering mode according to the operation of the user, if the network speed is greater than or equal to the preset threshold value, the current network condition is better, the terminal can buffer the unloaded data of the application program in advance, so that when the terminal is in an environment with poorer network speed, the data buffered in advance can be used, the situation of network blockage is effectively avoided, and the user experience is improved. In addition, if the network speed is less than the preset threshold value, which indicates that the current network is unstable, the terminal may prompt the user to select to start a forward buffer mode to deal with the possible situation of internet jamming in advance, thereby further improving the user experience.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application, where the terminal may include: touch screen 131 (which may specifically include touch sensitive surface 131-1 and display screen 131-2), processor 132, memory 133, power supply 134, and may also include one or more communication buses 135 connecting the aforementioned components. The terminal in the embodiment of the present application may be configured to perform each method in the above embodiments.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A data buffering method applied to a terminal is characterized by comprising the following steps:
acquiring the network speed in a preset time period;
if the network speed is less than a preset threshold value, displaying a target prompt, wherein the target prompt is used for prompting a user whether to start an advance buffer mode;
responding to a preset operation acted on the terminal, and starting the advanced buffer mode;
if the network speed is greater than or equal to the preset threshold value, buffering unloaded data related to the application programs in the buffer list so as to download the unloaded data to a local memory or a local disk.
2. The method of claim 1, wherein the buffer list includes applications running on the terminal, the method further comprising:
and responding to an editing instruction input by a user, and adding and/or deleting the application program in the buffer list.
3. The method of claim 1, wherein obtaining the wire speed within a preset time period comprises:
acquiring flow in a preset time period;
and calculating the ratio of the flow to the duration of the preset time period to obtain the network speed.
4. The method according to claim 1, wherein the preset operation comprises at least one of an operation of shaking the terminal, an operation of continuously clicking the terminal screen, or an operation of long-pressing the terminal screen.
5. A terminal, comprising:
the network monitoring unit is used for acquiring the network speed in a preset time period;
the buffer management unit is used for displaying a target prompt if the network speed is less than a preset threshold, wherein the target prompt is used for prompting a user whether to start an advance buffer mode;
a mode switch unit for responding to a preset operation acting on the terminal and starting the advanced buffering mode;
and the buffer management unit is used for buffering unloaded data related to the application programs in the buffer list if the network speed is greater than or equal to the preset threshold value, so as to download the unloaded data to a local memory or a local disk.
6. The terminal of claim 5, wherein the buffer list includes applications running on the terminal, and wherein the buffer management unit is further configured to:
and responding to an editing instruction input by a user, and adding and/or deleting the application program in the buffer list.
7. The terminal according to claim 5, wherein the network monitoring unit is specifically configured to:
acquiring flow in a preset time period;
and calculating the ratio of the flow to the duration of the preset time period to obtain the network speed.
8. The terminal according to claim 5, wherein the preset operation comprises at least one of an operation of shaking the terminal, an operation of continuously clicking the terminal screen, or an operation of long-pressing the terminal screen.
9. A terminal, comprising:
a touch screen, wherein the touch screen comprises a touch sensitive surface and a display;
one or more processors;
a memory;
a plurality of application programs;
and one or more programs, wherein the one or more programs are stored in the memory, the one or more programs including instructions which, when executed by the terminal, cause the terminal to perform the steps of:
acquiring the network speed in a preset time period;
if the network speed is less than a preset threshold value, displaying a target prompt, wherein the target prompt is used for prompting a user whether to start an advance buffer mode;
responding to a preset operation acted on the terminal, and starting the advanced buffer mode;
if the network speed is greater than or equal to the preset threshold value, buffering unloaded data related to the application programs in the buffer list so as to download the unloaded data to a local memory or a local disk.
10. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1 to 4.
CN201811561465.9A 2018-12-19 2018-12-19 Data buffering method applied to terminal and terminal Active CN111343036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811561465.9A CN111343036B (en) 2018-12-19 2018-12-19 Data buffering method applied to terminal and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811561465.9A CN111343036B (en) 2018-12-19 2018-12-19 Data buffering method applied to terminal and terminal

Publications (2)

Publication Number Publication Date
CN111343036A CN111343036A (en) 2020-06-26
CN111343036B true CN111343036B (en) 2022-05-31

Family

ID=71185378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811561465.9A Active CN111343036B (en) 2018-12-19 2018-12-19 Data buffering method applied to terminal and terminal

Country Status (1)

Country Link
CN (1) CN111343036B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361071A (en) * 2014-11-12 2015-02-18 沈文策 Page preloading method and device
CN105224250A (en) * 2015-09-28 2016-01-06 互联网域名系统北京市工程研究中心有限公司 High-performance domain name mapping disposal route and device
CN105657523A (en) * 2016-01-28 2016-06-08 腾讯科技(深圳)有限公司 Video preloading method and device
CN106027492A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Data transmission terminal and method
CN106792815A (en) * 2016-12-20 2017-05-31 深圳市万普拉斯科技有限公司 Data load method and device
CN107066632A (en) * 2017-06-05 2017-08-18 厦门美柚信息科技有限公司 The method and device that a kind of info web is preloaded

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658049B (en) * 2016-12-31 2019-08-30 深圳市优必选科技有限公司 A kind of video playing way to play for time and system
CN108259975B (en) * 2018-02-01 2020-11-06 广州市百果园信息技术有限公司 Video playing method, storage medium and terminal
CN108776599B (en) * 2018-05-21 2022-04-08 Oppo广东移动通信有限公司 Management method and device for preloaded application, storage medium and intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104361071A (en) * 2014-11-12 2015-02-18 沈文策 Page preloading method and device
CN105224250A (en) * 2015-09-28 2016-01-06 互联网域名系统北京市工程研究中心有限公司 High-performance domain name mapping disposal route and device
CN105657523A (en) * 2016-01-28 2016-06-08 腾讯科技(深圳)有限公司 Video preloading method and device
CN106027492A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Data transmission terminal and method
CN106792815A (en) * 2016-12-20 2017-05-31 深圳市万普拉斯科技有限公司 Data load method and device
CN107066632A (en) * 2017-06-05 2017-08-18 厦门美柚信息科技有限公司 The method and device that a kind of info web is preloaded

Also Published As

Publication number Publication date
CN111343036A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
WO2019210754A1 (en) Network search control method and device, and mobile terminal
CN108322599B (en) Network access method and mobile terminal
CN108900231B (en) Dynamic antenna adjustment method and related product
CN108334272B (en) Control method and mobile terminal
CN109284144B (en) Fast application processing method and mobile terminal
CN111371705B (en) Download task execution method and electronic device
CN108958593B (en) Method for determining communication object and mobile terminal
WO2015131768A1 (en) Video processing method, apparatus and system
CN108111676B (en) Application program control method, mobile terminal and computer readable storage medium
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN109683768B (en) Application operation method and mobile terminal
CN111666009A (en) Interface display method and electronic equipment
CN108009031B (en) Application program control method and mobile terminal
CN110418003B (en) Brightness adjusting method, brightness adjusting device and mobile terminal
CN108810261B (en) Antenna switching method in call and related product
CN110769303A (en) Playing control method and device and mobile terminal
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN107885423B (en) Picture processing method and mobile terminal
CN110312995B (en) Application program accelerated starting method and device and terminal
CN107040658B (en) Mobile terminal and method and device for controlling screen thereof
CN106934003B (en) File processing method and mobile terminal
CN109947323B (en) Terminal display method and terminal
CN111694536A (en) Audio control method, electronic device and computer-readable storage medium
CN108170360B (en) Control method of gesture function and mobile terminal
CN108600906B (en) Playing control method and device for multiple sound boxes

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