CN109362103A - A kind of data cache method and terminal device - Google Patents

A kind of data cache method and terminal device Download PDF

Info

Publication number
CN109362103A
CN109362103A CN201811279549.3A CN201811279549A CN109362103A CN 109362103 A CN109362103 A CN 109362103A CN 201811279549 A CN201811279549 A CN 201811279549A CN 109362103 A CN109362103 A CN 109362103A
Authority
CN
China
Prior art keywords
data
duration
terminal device
target information
history
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
CN201811279549.3A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811279549.3A priority Critical patent/CN109362103A/en
Publication of CN109362103A publication Critical patent/CN109362103A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1263Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows
    • H04W72/1273Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows of downlink data flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1221Wireless traffic scheduling based on age of data to be sent

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of data cache method and terminal devices, are applied to field of communication technology, can solve the problem of data packet time-out existing in the prior art can not be sent.This method comprises: obtaining target information, target information includes the first duration, or including the first duration and history scheduling information, the duration of the first data packet of a length of caching, history scheduling information are used to indicate the history stock number that the network equipment is terminal device distribution when first;In the case where target information meets preset condition, the first data packet in caching is abandoned.This method is applied in the scene of data buffer storage.

Description

A kind of data cache method and terminal device
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of data cache methods and terminal device.
Background technique
It is universal with terminal technology, terminal device using more and more extensive.
When terminal device obtains data by internet, terminal device can send the data for being used for request data to base station Packet.Specifically, terminal device can cache these data packets, and the data volume (data i.e. to be sent of caching are reported to base station Amount), base station can be that terminal device distributes the resource for sending data packet according to the data volume for the caching that terminal device reports, After terminal device gets the resource, terminal device can on the resource, according to caching data packet sequence successively to base It stands and sends the data packet of caching, after the data packet for receiving terminal device transmission, base station can be returned to terminal device for base station The requested data of the data packet.
During above-mentioned terminal device obtains data, since the data packet commonly used in request data is answer-mode Data packet, therefore terminal device, before getting the resource for sending data packet, terminal device can cache always this kind of number According to packet, so if the resource of multiple terminal devices sharing base, it would be possible that base station is caused to distribute to each terminal device Resource is less, so that cached the terminal device of more data packet possibly can not send these data packets in time, to lead Cause data packet time-out.
Summary of the invention
The embodiment of the present invention provides a kind of data cache method and terminal device, to solve data existing in the prior art The problem of packet time-out can not be sent.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, providing a kind of data cache method, it is applied to terminal device, this method comprises: target information is obtained, Target information includes the first duration, or including the first duration and history scheduling information, the first data packet of a length of caching when first Duration, history scheduling information be used to indicate the network equipment be terminal device distribution history stock number;Meet in target information In the case where preset condition, the first data packet in caching is abandoned.
Second aspect provides a kind of terminal device, which includes: to obtain module and discard module;
Module is obtained, for obtaining target information, target information includes the first duration, or including the first duration and history Scheduling information, first when the first data packet of a length of caching duration, history scheduling information is used to indicate the network equipment and sets for terminal The history stock number that back-up is matched;Discard module abandons the in caching in the case where target information meets preset condition One data packet.
The third aspect provides a kind of terminal device, which includes processor, memory and be stored in the memory Computer program that is upper and can running on the processor, realizes such as first aspect when which is executed by the processor The step of described data cache method.
Fourth aspect provides a kind of computer readable storage medium, stores computer on the computer readable storage medium Program, the step of data cache method as described in relation to the first aspect is realized when which is executed by processor.
In embodiments of the present invention, available target information, target information include the first duration, or when including first Long and history scheduling information, the duration of the first data packet of a length of caching, history scheduling information are used to indicate the network equipment when first For the history stock number of terminal device distribution;In the case where target information meets preset condition, the first number in caching is abandoned According to packet.With this solution, since first in caching can be abandoned in the case where the target information of acquisition meets preset condition Data packet, thus terminal device will not data cached packet always, but the partial data packet in caching is abandoned, so that slow Depositing remaining data packet (abandoning remaining data packet after the first data packet) can send in time, to will not lead to these Remaining data packet time-out.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of data cache method schematic diagram one provided in an embodiment of the present invention;
Fig. 3 is a kind of data cache method schematic diagram two provided in an embodiment of the present invention;
Fig. 4 is a kind of data cache method schematic diagram three provided in an embodiment of the present invention;
Fig. 5 is a kind of data cache method schematic diagram four provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram one of terminal device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram two of terminal device provided in an embodiment of the present invention;
Fig. 8 is a kind of hardware schematic of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Term " first " and " second " in description and claims of this specification etc. are for distinguishing different pairs As, rather than it is used for the particular order of description object.For example, when the first duration and the second duration etc. are for distinguishing different It is long, rather than the particular order for describing duration.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be Android (Android) operating system can be ios operating system, can also be other possible operating systems, and the present invention is implemented Example is not especially limited.
Below by taking Android operation system as an example, introduce applied by data cache method provided in an embodiment of the present invention Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of data cache method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that The data cache method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal device can lead to It crosses and runs software program realization data cache method provided in an embodiment of the present invention in Android operation system.
The embodiment of the present invention provides a kind of data cache method, available target information, when target information includes first It is long, or include the first duration and history scheduling information, first when a length of duration for caching the first data packet, history scheduling information It is used to indicate the history stock number that the network equipment is terminal device distribution;In the case where target information meets preset condition, lose Abandon the first data packet in caching.With this solution, due to can in the case where the target information of acquisition meets preset condition, Abandon the first data packet in caching, thus terminal device will not data cached packet always, but by the partial data in caching Packet abandons, so that remaining data packet (abandoning remaining data packet after the first data packet) can be sent out in time in caching It send, so that these remaining data packet time-out will not be caused.
Terminal device in the embodiment of the present invention can be mobile terminal device, or immobile terminal equipment.It moves Dynamic terminal device can be mobile phone, tablet computer, laptop, palm PC, vehicle-mounted terminal equipment, wearable device, surpass Grade mobile personal computer (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal digital assistant, PDA) etc.;Immobile terminal equipment can be personal computer (personal Computer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention does not limit specifically It is fixed.
The executing subject of data cache method provided in an embodiment of the present invention can be (including the movement of above-mentioned terminal device Terminal device and immobile terminal equipment), or it can be realized the function mould of the data cache method in the terminal device Block and/or functional entity can specifically determine that the embodiment of the present invention is not construed as limiting according to actual use demand.Below with end For end equipment, data cache method provided in an embodiment of the present invention is illustratively illustrated.
As shown in Fig. 2, data cache method provided in an embodiment of the present invention includes the following steps 11 and step 12.
Step 11, terminal device obtain target information.
Wherein, above-mentioned target information includes the first duration, or including the first duration and history scheduling information, the first duration For the duration for caching the first data packet, history scheduling information is used to indicate the history resource that the network equipment is terminal device distribution Amount.
Optionally, in the case where target information includes the first duration, above-mentioned preset condition is that the first duration is greater than or waits In preset duration threshold value.
Optionally, in the case where target information includes the first duration and history scheduling information, above-mentioned preset condition is the It is long for the moment to be greater than or equal to preset duration threshold value, and history stock number is less than scheduling resource threshold.
Optionally, the data packet in the embodiment of the present invention all can be used for the data packet of request data, i.e., the present invention is real Apply data packet in example all can be answer-mode data packet.
Since data packet has certain life cycle, which can be according to the existence of data packet Period determines.
Optionally, the preset duration threshold value can be set to the existence week less than or equal to data packet in the embodiment of the present invention The duration of phase.
The embodiment of the present invention does not limit the specific setting of the preset time threshold, and it is pre- to be less than this with the cache-time of data packet If in the case where time threshold, subject to the data packet is not time out.
Optionally, it is terminal device distribution that history scheduling information, which is specifically used for instruction network equipment in first time period, History stock number, at the time of the finish time of first time period is earlier than scheduling information is obtained.
Optionally, at the time of the finish time of first time period can be to obtain history scheduling information.
Optionally, above-mentioned scheduling resource threshold is the money that the preset network equipment in the second duration is terminal device distribution Source amount, wherein the second duration is identical as the length of first time period.
Illustratively, it is assumed that first time period and the second duration are 10 seconds, and history scheduling information can be to obtain scheduling Before at the time of information in adjacent 10 seconds, the network equipment is the history stock number of terminal device distribution, above-mentioned scheduling resource threshold Value can be the stock number that the network equipment is terminal device distribution in preset 10 seconds.
The specific length of first time period and the second duration is not limited in the embodiment of the present invention, first time period and when second Long length can be configured according to the actual situation.
In the embodiment of the present invention, above-mentioned scheduling resource threshold can be according to the setting of the second duration and terminal device in practice It is configured using the case where resource, the embodiment of the present invention is not construed as limiting.
A length of 10 seconds when illustratively, with second, and terminal device usually guarantees the number for having 5000 bits in 10 seconds domestic demands For transfer resource, then above-mentioned scheduling resource threshold can be set in 10 seconds, 5000 bits.It is appreciated that scheduling money Source threshold value may be arranged as other situations, for example, in 20 seconds, 10000 bits;Alternatively, 20000 compare top grade in 30 seconds.
Step 12, terminal device abandon the first data packet in caching in the case where target information meets preset condition.
Optionally, step 12 includes following two situation:
The first situation: in the case where the first duration is greater than or equal to preset duration threshold value, first in caching is abandoned Data packet.
Second situation: it is greater than or equal to preset duration threshold value in the first duration, and history stock number is less than scheduling resource In the case where threshold value, the first data packet in caching is abandoned.
It should be noted that the data cached packet of terminal device specifically can be in terminal device in the embodiment of the present invention Caching in modulation /demodulation module (such as modem), usually can be by the online application module in terminal device (for example, answering With processor) data packet for being used for request data is generated, and the modem in terminal device is delivered a packet to, it modulates Demodulator, can be by data queue of the data pack buffer in modem before getting the resource for sending data packet In.
Optionally, above-mentioned preset duration threshold value specifically can store in the modem of terminal device.Optionally, it adjusts The preset duration threshold value stored in modulator-demodulator specifically can be the application processor in terminal device and be sent to modulatedemodulate mode transfer Block.Illustratively, which can be sent to tune by data-interface by the application processor in terminal device Demodulation module processed.
Data cache method provided in an embodiment of the present invention, available target information, target information include the first duration, Or including the first duration and history scheduling information, the duration of the first data packet of a length of caching, history scheduling information are used when first In the history stock number that the instruction network equipment is terminal device distribution;In the case where target information meets preset condition, abandon The first data packet in caching.With this solution, due to that can be lost in the case where the target information of acquisition meets preset condition Abandon the first data packet in caching, thus terminal device will not data cached packet always, but by the partial data packet in caching It abandons, so that remaining data packet (abandoning remaining data packet after the first data packet) can send in time in caching, To which these remaining data packet time-out will not be caused.
Optionally, in conjunction with Fig. 2, as shown in figure 3, before above-mentioned steps 11, data buffer storage provided in an embodiment of the present invention Method further includes following step 13 and step 14.
Step 13, terminal device obtain the first data volume.
Wherein, above-mentioned first data volume is the sum of the data volume of entire packet cached in caching.
Step 14, terminal device judge whether the first data volume is greater than the first data-quantity threshold.
In the embodiment of the present invention, above-mentioned step can be executed in the case where the first data volume is greater than the first data-quantity threshold Rapid 11.In the case where the first data volume is less than or equal to the first data-quantity threshold, terminate data provided in an embodiment of the present invention Caching method no longer executes other steps after above-mentioned steps 14.
Optionally, above-mentioned first data volume can be the data queue in the caching of the modem in terminal device Byte length.Above-mentioned first data-quantity threshold can be preset byte length.Optionally, the first data-quantity threshold can be set For any one byte length between 30000 bytes~100000 bytes.
In the embodiment of the present invention, above-mentioned steps 11 are executed in the case where the first data volume is greater than the first data-quantity threshold, Can according to the data volume in caching number determine whether packet discard, so as to spatial cache abundance in the case where The first data packet is not abandoned, the first data packet is abandoned in the case where spatial cache is less, so can utmostly be guaranteed not Packet loss.
Optionally, in conjunction with Fig. 3, as shown in figure 4, after step 14 in Fig. 3, it, can be in the first data before step 11 In the case that amount is greater than the first data-quantity threshold, following step 15 and step 16 are executed.
Step 15, terminal device judge whether the first data volume is greater than the second data-quantity threshold.
In the case where the first data volume is greater than the second data-quantity threshold, above-mentioned steps 11 and following step 16 are executed;? In the case that first data volume is less than or equal to the second data-quantity threshold, above-mentioned steps 11 are executed.
Step 16, terminal device stop data cached packet.
In the embodiment of the present invention, terminal device stops the specific modem that can be in terminal device of data cached packet Notice online application module does not retransmit data packet to modem.
Wherein, the second data-quantity threshold is greater than the first data-quantity threshold.
Above-mentioned second data-quantity threshold can be the preset byte length greater than the first data-quantity threshold.Optionally, Two data-quantity thresholds can be set to any one byte length between 10000 bytes~30000 bytes.
In the embodiment of the present invention, in the case where the first data volume is greater than the first data-quantity threshold, above-mentioned step is not only executed Rapid 11, and step 16 is executed so as to avoid the data packet of storing excess in caching.
Optionally, it in the embodiment of the present invention, can be executed primary in the case where terminal device one data packet of every caching Method flow as shown in Figure 3 or Figure 4.
Optionally, as shown in figure 5, after the step 16 in above-mentioned Fig. 4, data buffer storage side provided in an embodiment of the present invention Method may include following step 17 and step 18.
Step 17, terminal device reacquire the first data volume.
Step 18, terminal device are in the case where the first data volume of reacquisition is less than the first data-quantity threshold, again Start data cached packet.
Step 17 and step 18 shown in fig. 5 can be executed before step 12 or be executed after the step 12, this Send out inventive embodiments without limitation.
After above-mentioned steps 16, data packet may be sent in the caching of terminal device, so that in caching Data volume is reduced, therefore after reacquiring the first data volume after above-mentioned steps 16, can be in the first number of reacquisition In the case where measuring less than the first data-quantity threshold, restart data cached packet, so as to flexibly utilize spatial cache.
As shown in fig. 6, the embodiment of the present invention provides a kind of terminal device 130, which includes: acquisition module 131 and discard module 132.
Wherein, module 131 is obtained, for obtaining target information, target information includes the first duration, or when including first Long and history scheduling information, the duration of the first data packet of a length of caching, history scheduling information are used to indicate the network equipment when first For the history stock number of terminal device distribution.
Discard module 132 abandons in the case where for meeting preset condition in the target information for obtaining the acquisition of module 131 The first data packet in caching.
Optionally, in the case where target information includes the first duration, preset condition is that the first duration is greater than or equal in advance If duration threshold value;Alternatively, in the case where target information includes the first duration and history scheduling information, when preset condition is first It is long to be greater than or equal to preset duration threshold value, and history stock number is less than scheduling resource threshold.
Optionally, history scheduling information is specifically used for instruction in first time period, and the network equipment is terminal device distribution History stock number, finish time of first time period is at the time of obtaining history scheduling information;It is default for dispatching resource threshold In the second duration, the network equipment be terminal device distribution stock number;Wherein, the length of the second duration and first time period It is identical.
Optionally, module 131 is obtained, for obtaining the first data volume before obtaining target information, the first data volume is The sum of data volume of entire packet cached in caching;And module 131 is obtained, it is specifically used for big in first data volume In the case where the first data-quantity threshold, target information is obtained.
Optionally, in conjunction with Fig. 6, as shown in fig. 7, the terminal device further includes cache module 133.
Wherein, cache module 133, for stopping caching in the case where the first data volume is greater than the second data-quantity threshold Data packet, the second data-quantity threshold are greater than the first data-quantity threshold.
Optionally, module 131 is obtained, is also used to after cache module 133 stops data cached packet, reacquires first Data volume;Cache module 133 is also used in the case where the first data volume of reacquisition is less than the first data-quantity threshold, weight Newly start data cached packet.
Terminal device provided in an embodiment of the present invention can be realized each process shown in above method embodiment, to keep away Exempt to repeat, details are not described herein again.
The embodiment of the present invention provides a kind of terminal device, available target information, and target information includes the first duration, or Person includes the first duration and history scheduling information, first when the first data packet of a length of caching duration, history scheduling information is used for Indicate that the network equipment is the history stock number of terminal device distribution;In the case where target information meets preset condition, abandon slow The first data packet in depositing.With this solution, due to that can be abandoned in the case where the target information of acquisition meets preset condition The first data packet in caching, thus terminal device will not data cached packet always, but the partial data packet in caching is lost It abandons, so that remaining data packet (abandoning remaining data packet after the first data packet) can send in time in caching, from Without will lead to these remaining data packet time-out.
A kind of hardware schematic of Fig. 8 terminal device of each embodiment to realize the present invention, the terminal device 100 include But be not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display are single The components such as member 106, user input unit 107, interface unit 108, memory 109, processor 110, power supply 111.This field skill Art personnel are appreciated that terminal device structure shown in Fig. 8 does not constitute the restriction to terminal device, and terminal device can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.In the embodiment of the present invention In, terminal device includes but is not limited to mobile phone, tablet computer, laptop, palm PC, vehicle-mounted terminal equipment, wearable Equipment and pedometer etc..
Wherein, processor 110, for obtaining target information, target information includes the first duration, or including the first duration With history scheduling information, first when the first data packet of a length of caching duration, history scheduling information is used to indicate the network equipment and is The history stock number of terminal device distribution;In the case where target information meets preset condition, the first data in caching are abandoned Packet.
The embodiment of the present invention provides a kind of terminal device, and the embodiment of the present invention provides a kind of terminal device, available mesh Information is marked, target information includes the first duration, or includes the first duration and history scheduling information, and first when is a length of to cache first The duration of data packet, history scheduling information are used to indicate the history stock number that the network equipment is terminal device distribution;Believe in target In the case that breath meets preset condition, the first data packet in caching is abandoned.With this solution, due to can be in the target of acquisition In the case that information meets preset condition, the first data packet in caching is abandoned, therefore terminal device will not be data cached always Packet, but the partial data packet in caching is abandoned, so that remaining data packet is (after the first data packet of discarding in caching Remaining data packet) it can send in time, so that these remaining data packet time-out will not be caused.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Terminal device provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in fig. 8, touch panel 1071 and display Panel 1061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and modulatedemodulate is mediated It manages device (also symmetrical modem), wherein the main processing operation system of application processor, user interface and application program etc. are adjusted Demodulation processor processed mainly handles wireless communication, and application processor can be sent to modem processor in the embodiment of the present invention Data packet, modem processor can be cached after receiving data packet, and the data cache method of the embodiment of the present invention can With packet data cached suitable for modem processor.It is understood that above-mentioned modem processor can not also collect At into processor 110.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
The embodiment of the present invention also provides a kind of terminal device, which may include processor, memory and deposits The computer program that can be run on a memory and on a processor is stored up, which may be implemented when being executed by processor Each process that terminal device executes in above method embodiment, and identical technical effect can be reached, to avoid repeating, here It repeats no more.
A kind of computer readable storage medium of the embodiment of the present invention, which is characterized in that on the computer readable storage medium Computer program is stored, realizes that terminal device executes each in above method embodiment when which is executed by processor A process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter can for read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (13)

1. a kind of data cache method is applied to terminal device, which is characterized in that the described method includes:
Target information is obtained, the target information includes the first duration, or including first duration and history scheduling information, The duration of the first data packet of a length of caching when described first, it is the terminal that the history scheduling information, which is used to indicate the network equipment, The history stock number of equipment distribution;
In the case where the target information meets preset condition, first data packet in caching is abandoned.
2. the method according to claim 1, wherein
In the case where the target information includes first duration, the preset condition is that first duration is greater than or waits In preset duration threshold value;
Alternatively,
In the case where the target information includes first duration and the history scheduling information, the preset condition is institute The first duration is stated more than or equal to preset duration threshold value, and the history stock number is less than scheduling resource threshold.
3. according to the method described in claim 2, it is characterized in that,
It is terminal device distribution that the history scheduling information, which is specifically used for instruction network equipment in first time period, History stock number, finish time of the first time period is at the time of obtaining the history scheduling information;
The scheduling resource threshold is the resource that the preset network equipment described in the second duration is the terminal device distribution Amount;
Wherein, second duration is identical as the length of the first time period.
4. the method according to claim 1, wherein before the acquisition target information, the method also includes:
The first data volume is obtained, first data volume is the sum of the data volume of entire packet cached in caching;
The acquisition target information, comprising:
In the case where first data volume is greater than the first data-quantity threshold, the target information is obtained.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
In the case where first data volume is greater than the second data-quantity threshold, stop data cached packet;
Wherein, second data-quantity threshold is greater than first data-quantity threshold.
6. according to the method described in claim 5, it is characterized in that, the method is also wrapped after the data cached packet of stopping It includes:
Reacquire first data volume;
In the case where first data volume of reacquisition is less than first data-quantity threshold, restart data cached Packet.
7. a kind of terminal device characterized by comprising obtain module and discard module;
The acquisition module, for obtaining target information, the target information includes the first duration, or when including described first Long and history scheduling information, the duration of the first data packet of a length of caching, the history scheduling information are used to indicate when described first The network equipment is the history stock number of terminal device distribution;
The discard module abandons slow in the case that the target information for obtaining in the acquisition module meets preset condition First data packet in depositing.
8. terminal device according to claim 7, which is characterized in that in the target information include first duration In the case of, the preset condition is that first duration is greater than or equal to preset duration threshold value;
Alternatively,
In the case where the target information includes first duration and the history scheduling information, the preset condition is institute The first duration is stated more than or equal to preset duration threshold value, and the history stock number is less than scheduling resource threshold.
9. terminal device according to claim 8, which is characterized in that the history scheduling information is specifically used for instruction the The network equipment is the history stock number of terminal device distribution, the finish time of the first time period in one period At the time of to obtain the history scheduling information;
The scheduling resource threshold is the resource that the preset network equipment described in the second duration is the terminal device distribution Amount;
Wherein, second duration is identical as the length of the first time period.
10. terminal device according to claim 7, which is characterized in that
The acquisition module, for before obtaining target information, obtaining the first data volume, first data volume is in caching The sum of data volume of entire packet of caching;
The acquisition module is specifically used in the case where first data volume is greater than the first data-quantity threshold, described in acquisition Target information.
11. terminal device according to claim 10, which is characterized in that the terminal device further includes cache module;
The cache module, for stopping data cached in the case where first data volume is greater than the second data-quantity threshold Packet;
Wherein, second data-quantity threshold is greater than first data-quantity threshold.
12. terminal device according to claim 11, which is characterized in that
The acquisition module is also used to after the cache module stops data cached packet, reacquires first data Amount;
The cache module is also used to the case where first data volume of reacquisition is less than first data-quantity threshold Under, restart data cached packet.
13. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is executed by the processor Any one of described in data cache method the step of.
CN201811279549.3A 2018-10-30 2018-10-30 A kind of data cache method and terminal device Pending CN109362103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811279549.3A CN109362103A (en) 2018-10-30 2018-10-30 A kind of data cache method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811279549.3A CN109362103A (en) 2018-10-30 2018-10-30 A kind of data cache method and terminal device

Publications (1)

Publication Number Publication Date
CN109362103A true CN109362103A (en) 2019-02-19

Family

ID=65347313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811279549.3A Pending CN109362103A (en) 2018-10-30 2018-10-30 A kind of data cache method and terminal device

Country Status (1)

Country Link
CN (1) CN109362103A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981487A (en) * 2019-03-27 2019-07-05 北京邮电大学 A kind of data dispatching method, device, electronic equipment and readable storage medium storing program for executing
CN110290559A (en) * 2019-07-10 2019-09-27 维沃移动通信有限公司 A kind of data transmission method and terminal
CN116321285A (en) * 2023-05-19 2023-06-23 华安中云股份有限公司 Method, device, equipment and medium for reporting data volume based on satellite signals
CN117221958A (en) * 2020-09-16 2023-12-12 华为技术有限公司 Data caching method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045723A (en) * 2015-06-26 2015-11-11 深圳市腾讯计算机系统有限公司 Processing method, apparatus and system for cached data
CN105224252A (en) * 2015-09-28 2016-01-06 北京奇虎科技有限公司 Date storage method and device
CN106488505A (en) * 2015-08-24 2017-03-08 中兴通讯股份有限公司 A kind of data pack transmission method and device, communication system
CN107404443A (en) * 2017-08-03 2017-11-28 北京东土军悦科技有限公司 Queue cache resources control method and device, server and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045723A (en) * 2015-06-26 2015-11-11 深圳市腾讯计算机系统有限公司 Processing method, apparatus and system for cached data
CN106488505A (en) * 2015-08-24 2017-03-08 中兴通讯股份有限公司 A kind of data pack transmission method and device, communication system
CN105224252A (en) * 2015-09-28 2016-01-06 北京奇虎科技有限公司 Date storage method and device
CN107404443A (en) * 2017-08-03 2017-11-28 北京东土军悦科技有限公司 Queue cache resources control method and device, server and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981487A (en) * 2019-03-27 2019-07-05 北京邮电大学 A kind of data dispatching method, device, electronic equipment and readable storage medium storing program for executing
CN109981487B (en) * 2019-03-27 2020-10-27 北京邮电大学 Data scheduling method and device, electronic equipment and readable storage medium
CN110290559A (en) * 2019-07-10 2019-09-27 维沃移动通信有限公司 A kind of data transmission method and terminal
CN117221958A (en) * 2020-09-16 2023-12-12 华为技术有限公司 Data caching method and related device
CN116321285A (en) * 2023-05-19 2023-06-23 华安中云股份有限公司 Method, device, equipment and medium for reporting data volume based on satellite signals
CN116321285B (en) * 2023-05-19 2023-08-15 华安中云股份有限公司 Method, device, equipment and medium for reporting data volume based on satellite signals

Similar Documents

Publication Publication Date Title
CN108108007B (en) A kind of processing method and mobile terminal reducing power consumption
CN109699059A (en) A kind of residence reselecting and terminal device
CN109661016A (en) A kind of method for network access and terminal device
CN110149552A (en) A kind of processing method and terminal of video flowing frame data
CN109362103A (en) A kind of data cache method and terminal device
CN109743498A (en) A kind of shooting parameter adjustment method and terminal device
CN108491123A (en) A kind of adjusting application program image target method and mobile terminal
CN110058836A (en) A kind of output method and terminal device of audio signal
CN110062372A (en) A kind of SIM card control method and terminal device
CN109413726A (en) Power consumption control method and mobile terminal
CN108391123A (en) A kind of method and terminal generating video
CN109831359A (en) A kind of detection method and its terminal device of data network connection state
CN110069180A (en) A kind of function control method and terminal device
CN109635205A (en) Information-pushing method and terminal device
CN109639887A (en) A kind of control method and terminal device
CN110505279A (en) The method and apparatus of delay is set
CN110505660A (en) A kind of network rate method of adjustment and terminal device
CN110461031A (en) The control method and terminal device of terminal device
CN109831582A (en) Non- response events processing method and terminal
CN109756630A (en) A kind of screen control method and terminal device
CN109802945A (en) A kind of data transmission method and terminal device
CN109905851A (en) A kind of reminding method and terminal device
CN110167202A (en) Conversation processing method, device, terminal and medium
CN109582174A (en) A kind of touch-control input response method and terminal device
CN108955641A (en) A kind of depth camera method, depth camera equipment and mobile terminal

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190219