CN106445841A - Control method and device of data transmission - Google Patents

Control method and device of data transmission Download PDF

Info

Publication number
CN106445841A
CN106445841A CN201610860194.1A CN201610860194A CN106445841A CN 106445841 A CN106445841 A CN 106445841A CN 201610860194 A CN201610860194 A CN 201610860194A CN 106445841 A CN106445841 A CN 106445841A
Authority
CN
China
Prior art keywords
buffer
frequency
upload frequencies
target
data
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.)
Granted
Application number
CN201610860194.1A
Other languages
Chinese (zh)
Other versions
CN106445841B (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610860194.1A priority Critical patent/CN106445841B/en
Publication of CN106445841A publication Critical patent/CN106445841A/en
Application granted granted Critical
Publication of CN106445841B publication Critical patent/CN106445841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a control method and device of data transmission; the control method of the data transmission comprises the following steps: determining a target application of the current enabling target sensor, and then determining target uploading frequency of uploading data of a buffer corresponding to the target sensor given to a processor and required to be reached according to frequency setting information of the target application, and judging whether the uploading frequency of uploading data of the current buffer given to the processor is equal to the target uploading frequency or not, if not, adjusting depth information of the buffer to make the uploading frequency equal to the target uploading frequency. By adopting the scheme, the depth information of the buffer can be adjusted according to frequency requirements of different applications, so that the frequency of stored data uploaded to the processor reaches the frequency requirement of the application, furthermore, compared with the prior art, the data transmission rate can be effectively controlled to lower power consumption of a terminal.

Description

A kind of data transfer control method and device
Technical field
The present invention relates to field of terminal technology, more particularly, to a kind of data transfer control method and device.
Background technology
Development with internet and the development of mobile communications network, the also disposal ability along with terminal and storage simultaneously The fast development of ability, the application of magnanimity has obtained rapid propagation and use.Often there are multiple clock zones in the semiconductor element, FIFO (First Input First Output, First Input First Output) caching, as a kind of effective method, widely should In the data transfer of cross clock domain.
At present, fifo mode all supported by a lot of sensors, the data Cun Chudao FIFO buffer that can obtain sensor In, after FIFO buffer is filled with, then data is uploaded to processor.However, different application requires to data upload frequencies Difference, and in existing terminal, the depth of FIFO buffer is fixing, does not change with application scenarios and changes, if requiring to upload frequency Rate is relatively low, and actual upload frequencies are higher than required upload frequencies, then can increase system burden, lead to power consumption of terminal larger.
Understand, in prior art, there is the larger technical problem of power consumption of terminal.
Content of the invention
The embodiment of the present invention provides a kind of data transfer control method and device, can solve power consumption of terminal in prior art Larger technical problem.
The embodiment of the present invention provides a kind of data transfer control method, including:
Determine the current intended application enabling sensor of interest;
According to the set of frequency information of described intended application, determine that the corresponding buffer of described sensor of interest uploads data To the target upload frequencies reaching needed for processor;
Judge that presently described buffer uploads whether data is equal to described target upload to the upload frequencies of described processor Frequency;
If it is not, then adjusting the depth information of described buffer, so that described upload frequencies are equal to described target and upload frequency Rate.
Correspondingly, embodiments provide a kind of data transfer controller, including:
Application determining module, for determining the current intended application enabling sensor of interest;
Frequency determining module, for the set of frequency information according to described intended application, determines described sensor of interest pair The buffer answered uploads data to the target upload frequencies reaching needed for processor;
First judge module, for judge presently described buffer upload data to described processor upload frequencies whether Equal to described target upload frequencies;
Adjusting module, for when the first judge module is judged to no, adjusting the depth information of described buffer, so that Described upload frequencies are equal to described target upload frequencies.
The embodiment of the present invention currently enables the intended application of sensor of interest using determining, then, according to intended application Set of frequency information, determines that the corresponding buffer of sensor of interest uploads data and uploads frequency to the target reaching needed for processor Rate, and judge that current buffer uploads whether data is equal to target upload frequencies to the upload frequencies of processor, if it is not, then adjusting The depth information of buffer, so that upload frequencies are equal to target upload frequencies;The program can be according to the frequency of different application Require the depth information of adjustment buffer, so that the frequency that the data of storage is uploaded to processor reaches the frequency of this application Require, in terms of existing technologies, power consumption of terminal can be reduced with effective control message transmission rate.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings Figure.
Fig. 1 is the schematic flow sheet of the data transfer control method that the embodiment of the present invention one provides;
Fig. 2 is the schematic flow sheet of the data transfer control method that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of the first data transfer controller that the embodiment of the present invention three provides;
Fig. 4 is the structural representation of the second data transfer controller that the embodiment of the present invention three provides;
Fig. 5 is the structural representation of the third data transfer controller that the embodiment of the present invention three provides;
Fig. 6 is the structural representation of the terminal that the embodiment of the present invention four provides.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under the premise of not making creative work Example, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of data transfer control method and device.It is described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of data transfer controller, and this data transfer controller is specifically permissible Integrated in the terminal, this terminal can be the equipment such as smart mobile phone, panel computer.
A kind of data transfer control method, including:Determine the current intended application enabling sensor of interest;Should according to target Set of frequency information, determines that the corresponding buffer of sensor of interest uploads data and uploads to the target reaching needed for processor Frequency;Judge that current buffer uploads whether data is equal to target upload frequencies to the upload frequencies of processor;If it is not, then adjusting The depth information of buffer, so that upload frequencies are equal to target upload frequencies.
As shown in figure 1, data transfer control method, idiographic flow can be as follows:
101st, determine the current intended application enabling sensor of interest.
In some embodiments, it can be determined that current before determining the current intended application enabling sensor of interest Whether terminal system is in dormancy holding state, if in a dormant state, and then determines whether current goal sensor is enabled, Namely determine whether sensor of interest is in running order.If sensor of interest is in running order, and current system is in Resting state, in order to reduce power consumption of terminal, it is possible to reduce the wake-up times of system;Such as, it is possible to reduce data is transferred to process The number of times of device is to reduce the number of times of wake-up system.
Specifically, the data storage that sensor can be obtained in both the buffers, when data is passed by buffer full load again Transport to processor, therefore, it can the storage parameter by adjusting buffer, such as depth information, its memory space is adjusted to maximum, Upload the upload frequencies to processor for the data to reduce buffer, and then reduce power consumption of terminal.Such as, meter step class application call G- During the data of sensor (Gravity-sensor, acceleration transducer), larger unloading can be set (larger delaying is set Storage memory space) to reduce the number of times that buffer outputs data to processor, and then save power consumption of terminal.
When judging that present terminal system is not at resting state it may be determined that the target currently enabling sensor of interest should With, namely determine the intended application currently calling sensing data.
102nd, the set of frequency information according to intended application, determines that the corresponding buffer of sensor of interest uploads data to place The target upload frequencies reaching needed for reason device.
Specifically, can determine that the corresponding buffer of sensor of interest uploads number according to the frequency requirement of intended application setting According to the target upload frequencies reaching needed for processor, such as, the ginseng that this set of frequency information can carry in itself according to application Number determines.
Wherein, set of frequency information can be self-contained data upload frequencies of application program etc..Terminal can root According to the set of frequency information of this intended application, determine that buffer uploads the target upload frequencies that data needs to reach to processor.
In the present embodiment, buffer is specifically as follows FIFO (First In First Out, first in first out) buffer, its Comprise multiple important parameters, the depth (THE DEEPTH) of such as FIFO, the width (THE WIDTH) of FIFO, full scale will, empty mark Will etc..
In some embodiments, directly the depth of buffer can be believed in some application call sensing datas Breath is adjusted to preset value, and need not identify the frequency requirement of this application, to reduce power consumption of terminal further.And should for non-presetting With then needing to carry out the identification operation of frequency requirement;Namely after determining the intended application of current enable sensor of interest, determine Before sensor of interest corresponding buffer upload data is to the target upload frequencies reaching needed for processor, the method is acceptable Including:
Judge whether intended application is default application;
If it is not, then execution determines that the corresponding buffer of sensor of interest uploads data in the target reaching needed for processor The step passing frequency.
103 judge that current buffer uploads whether data is equal to target upload frequencies to the upload frequencies of processor;If so, Terminate flow process;If it is not, execution step 104.
Specifically, current buffer can be obtained and upload the upload frequencies to processor for the data, then, will currently upload frequency Rate is compared with target upload frequencies, to judge whether current upload frequencies are equal to target upload frequencies.
Wherein, target upload frequencies can be a frequency separation, and such as this frequency separation can be [a HZ, b HZ], If current upload frequencies are in this frequency separation, can be determined that current buffer uploads the upload frequencies to processor for the data Equal to target upload frequencies, otherwise judge that current buffer uploads data and is not equal to target upload frequency to the upload frequencies of processor Rate.
104th, adjust the depth information of buffer, so that upload frequencies are equal to target upload frequencies.
Specifically, upload data in judgement current buffer and be not equal to target upload frequencies to the upload frequencies of processor When, the depth information of adjustment buffer, so that upload frequencies are equal to target upload frequencies.Because the width of FIFO is usually solid Fixed, and the depth adjustable of FIFO, therefore, it can the depth information by adjusting FIFO, to change the amount of storage of FIFO, and then Adjust buffer and upload the upload frequencies to processor for the data.
In the present embodiment, adjustment buffer depth information mode can have multiple.It is alternatively possible to according to application Frequency requirement divide application level, and set up the corresponding relation between application level and FIFO depth, adjusted according to application level The depth information of whole buffer;That is, step " depth information of adjustment buffer " idiographic flow can be as follows:
Determine the application level of intended application according to target upload frequencies;
Adjust the depth information of buffer according to application level.
Specifically, it is determined that the application layer of intended application can have otherwise multiple, such as, can be by target upload frequencies The intended application being in a certain frequency separation is divided into the application level of same grade;That is, step is " according to target upload frequencies Determine the application level of intended application " specifically can include:
Judge whether target upload frequencies are in predeterminated frequency interval;
If so, then obtain the interval corresponding predeterminated frequency rank of predeterminated frequency;
Determine the application level of intended application according to predeterminated frequency rank.
Another alternatively, due in the case that the other specification of buffer is certain, the depth of FIFO is stored with buffer Amount is directly proportional, and is inversely proportional to upload frequencies.Therefore, it can be compared upload frequencies with target upload frequencies, according to comparing Result percentage regulation information.Such as, depth information can include depth value;Then step " depth information of adjustment buffer " is concrete Flow process can be as follows:
Judge whether upload frequencies are more than target upload frequencies;
If so, then increase the depth value of buffer;
If it is not, then reducing the depth value of buffer.
Specifically, when upload frequencies are more than target upload frequencies, by increasing the depth value of buffer, to reduce upload Frequency;When upload frequencies are less than target upload frequencies, by reducing the depth value of buffer, to increase upload frequencies.
From the foregoing, it will be observed that embodiments providing a kind of data transfer control method, by determining current enable target The intended application of sensor, then, according to the set of frequency information of intended application, determines on the corresponding buffer of sensor of interest Pass data to the target upload frequencies reaching needed for processor, and judge that current buffer uploads the upload frequency to processor for the data Whether rate is equal to target upload frequencies, if it is not, then adjusting the depth information of buffer, so that upload frequencies are equal to target and upload Frequency;The program can adjust the depth information of buffer according to the frequency requirement of different application, so that the data by storage The frequency being uploaded to processor reaches the frequency requirement of this application, in terms of existing technologies, can be passed with effective control data Defeated speed, reduces power consumption of terminal.
Embodiment two,
Citing is described in further detail by method according to described by embodiment one below.
In the present embodiment, will by this data transfer controller specifically integrated in the terminal as a example retouched in detail State.
As shown in Fig. 2 a kind of data transfer control method, idiographic flow can be as follows:
201st, mobile terminal determines the current intended application enabling sensor of interest.
In some embodiments, determine the intended application of current enable sensor of interest in mobile terminal before, permissible Judge whether present terminal system is in dormancy holding state, if in a dormant state, and then determine that current goal sensor is No be enabled, namely determine sensor of interest whether in running order.If sensor of interest is in running order, and it is currently Unite again in a dormant state, in order to reduce power consumption of terminal, it is possible to reduce the wake-up times of system;Such as, it is possible to reduce data passes It is defeated by the number of times of the processor number of times to reduce wake-up system.
Specifically, the data storage that sensor can be obtained in both the buffers, when data is passed by buffer full load again Transport to processor, therefore, it can the storage parameter by adjusting buffer, such as depth information, its memory space is adjusted to maximum, Upload the upload frequencies to processor for the data to reduce buffer, and then reduce power consumption of terminal.Such as, meter step class application call G- During the data of sensor, larger unloading can be set to reduce the number of times that buffer outputs data to processor, and then save Mobile terminal power consumption.
202nd, mobile terminal judges whether intended application is default application;If so, execution step 206;If it is not, execution step 203.
In the present embodiment, judge intended application be whether default application mode can have multiple, such as it can be determined that Whether there is the sample identification mated with this intended application in default logo collection;" judge that whether intended application is that is, step Default application " specifically can include:
Obtain the application identities of intended application;
Judge to whether there is the sample identification mated with this intended application in default logo collection;
If existing, judge intended application as default application;
If not existing, judge intended application not as default application.
203rd, mobile terminal, according to the set of frequency information of intended application, determines that the corresponding buffer of sensor of interest uploads Data is to the target upload frequencies reaching needed for processor.
Specifically, when judging intended application not as default application, according to the set of frequency information of intended application, determine slow Storage uploads the target upload frequencies that data reaches to needs during processor.
When specifically implementing, the corresponding caching of sensor of interest can be determined according to the frequency requirement of intended application setting Device uploads data to the target upload frequencies reaching needed for processor, and such as, this set of frequency information can be according to application itself The parameter determination carrying.
Wherein, set of frequency information can be self-contained data upload frequencies of application program etc..Terminal can root According to the set of frequency information of this intended application, determine that buffer uploads the target upload frequencies that data needs to reach to processor.
In the present embodiment, buffer is specifically as follows FIFO buffer, and it comprises multiple important parameters, the depth of such as FIFO Degree, the width of FIFO, full scale will, empty mark etc..
204th, mobile terminal judges that current buffer uploads whether data is equal to target upload to the upload frequencies of processor Frequency;If so, terminate flow process, if it is not, execution step 205.
Specifically, current buffer can be obtained and upload the upload frequencies to processor for the data, then, will currently upload frequency Rate is compared with target upload frequencies, to judge whether current upload frequencies are equal to target upload frequencies.
Wherein, target upload frequencies can be a frequency separation, and such as this frequency separation can be [a HZ, b HZ], If current upload frequencies are in this frequency separation, can be determined that current buffer uploads the upload frequencies to processor for the data Equal to target upload frequencies, otherwise judge that current buffer uploads data and is not equal to target upload frequency to the upload frequencies of processor Rate.
205th, mobile terminal adjusts the depth information of buffer, so that upload frequencies are equal to target upload frequencies.
Specifically, upload data in judgement current buffer and be not equal to target upload frequencies to the upload frequencies of processor When, the depth information of adjustment buffer, so that upload frequencies are equal to target upload frequencies.
In the present embodiment, adjustment buffer depth information mode can have multiple.It is alternatively possible to according to application Frequency requirement divide application level, and set up the corresponding relation between application level and FIFO depth, adjusted according to application level The depth information of whole buffer;That is, step " depth information of adjustment buffer " idiographic flow can be as follows:
Determine the application level of intended application according to target upload frequencies;
Adjust the depth information of buffer according to application level.
Specifically, it is determined that the application layer of intended application can have otherwise multiple, such as, can be by target upload frequencies The intended application being in a certain frequency separation is divided into the application level of same grade;That is, step is " according to target upload frequencies Determine the application level of intended application " specifically can include:
Judge whether target upload frequencies are in predeterminated frequency interval;
If so, then obtain the interval corresponding predeterminated frequency rank of predeterminated frequency;
Determine the application level of intended application according to predeterminated frequency rank.
Another alternatively, due in the case that buffer other specification is constant, the depth of FIFO and buffer amount of storage It is directly proportional, be inversely proportional to upload frequencies.Therefore, it can be compared upload frequencies with target upload frequencies, according to comparing knot Fruit percentage regulation information.Such as, depth information can include depth value;Then step " depth information of adjustment buffer " is concrete flows Journey can be as follows:
Judge whether upload frequencies are more than target upload frequencies;
If so, then increase the depth value of buffer;
If it is not, then reducing the depth value of buffer.
Specifically, when upload frequencies are more than target upload frequencies, by increasing the depth value of buffer, to reduce upload Frequency;When upload frequencies are less than target upload frequencies, by reducing the depth value of buffer, to increase upload frequencies.
206th, the depth value of buffer is adjusted to maximum by mobile terminal.
In some embodiments, can be in some application call sensing datas, directly by the depth value of buffer It is adjusted to maximum, and the frequency requirement of this application need not be identified, to reduce power consumption of terminal further.By in terms of step class apply and be The depth value of corresponding for G-sensor buffer directly can be adjusted to maximum, buffer unloading space is adjusted to by example Greatly, to reduce the data cached frequency outputting data to processor, and then reduce power consumption of terminal.
From the foregoing, it will be observed that embodiments providing a kind of data transfer control method, determined current by mobile terminal Enable the intended application of sensor of interest, and judge whether intended application is default application, if it is not, the then frequency according to intended application Rate configuration information, determines that the corresponding buffer of sensor of interest uploads data to the target upload frequencies reaching needed for processor, Judge whether current upload frequencies are equal to target upload frequencies again, if being not equal to, the depth information of adjustment buffer, so that Upload frequencies are equal to target upload frequencies;The program can adjust the depth letter of buffer according to the frequency requirement of different application Breath, so that the frequency that the data of storage is uploaded to processor reaches the frequency requirement of this application, with respect to prior art Speech, can reduce power consumption of terminal with effective control message transmission rate.
Embodiment three,
In order to preferably implement above method, the embodiment of the present invention also provides a kind of data transfer controller, this data Transmission control unit can integrated in the terminal, this terminal specifically can include mobile phone, panel computer, notebook computer etc. and set Standby.As shown in figure 3, this data transfer controller 300 can include applying determining module 301, frequency determining module 302, the One judge module 303 and adjusting module 304, as follows:
Application determining module 301, for determining the current intended application enabling sensor of interest;
Frequency determining module 302, for the set of frequency information according to intended application, determines that sensor of interest is corresponding slow Storage uploads data to the target upload frequencies reaching needed for processor;
First judge module 303, for judging whether current buffer upload data is equal to the upload frequencies of processor Target upload frequencies;
Adjusting module 304, for when the first judge module is judged to no, adjusting the depth information of buffer, so that Upload frequencies are equal to target upload frequencies.
In some embodiments, as shown in figure 4, adjusting module 304 can include:Determination sub-module 3041 and adjustment Module 3042;
Determination sub-module 3041, for determining the application level of described intended application according to target upload frequencies;
Adjustment submodule 3042, for adjusting the depth information of buffer according to application level.
In some embodiments, determination sub-module 3041, specifically can be used for:
Judge whether target upload frequencies are in predeterminated frequency interval;
If so, then obtain the interval corresponding predeterminated frequency rank of predeterminated frequency;
Determine the application level of intended application according to predeterminated frequency rank.
In some embodiments, this depth information includes depth value;Adjusting module 304, specifically can be used for:
Judge whether upload frequencies are more than target upload frequencies;
If so, then increase the depth value of described buffer;
If it is not, then reducing the depth value of described buffer.
In some embodiments, as shown in figure 5, this data transfer controller 300 can also include:Second judges mould Block 305;
Second judge module 305, for, after determining the intended application of current enable sensor of interest, determining that target passes The corresponding buffer of sensor uploads data to the target upload frequencies reaching needed for processor, before, whether judges intended application For default application;
Frequency determining module 302, specifically for when the second judge module 305 is judged to no, determining sensor of interest pair The buffer answered uploads data to the target upload frequencies reaching needed for processor.
From the foregoing, it will be observed that embodiments providing a kind of data transfer controller, by determining current enable target The intended application of sensor, then, according to the set of frequency information of intended application, determines on the corresponding buffer of sensor of interest Pass data to the target upload frequencies reaching needed for processor, and judge that current buffer uploads the upload frequency to processor for the data Whether rate is equal to target upload frequencies, if it is not, then adjusting the depth information of buffer, so that upload frequencies are equal to target and upload Frequency;The program can adjust the depth information of buffer according to the frequency requirement of different application, so that the data by storage The frequency being uploaded to processor reaches the frequency requirement of this application, in terms of existing technologies, can be passed with effective control data Defeated speed, reduces power consumption of terminal.
Example IV,
The present embodiment provides a kind of terminal, such as, refer to Fig. 6, this terminal 400 can include radio frequency (RF, Radio Frequency) circuit 401, the memory 402 including one or more computer-readable recording mediums, input block 403rd, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) module 407th, the parts such as processor 408 and the power supply 409 of or more than one processing core are included.Those skilled in the art It is appreciated that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 6, ratio can be included and illustrate more or less of portion Part, or combine some parts, or different part arrangements.
Radio circuit 401 can be used for receiving and sending messages, or the reception of signal and transmission in communication process, especially, by base station Downlink information receive after, transfer to one or more than one processor 408 processed;In addition, up data is activation will be related to To base station.Generally, radio circuit 401 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibration Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, LowNoiseAmplifier), duplexer etc..Additionally, radio circuit 401 can also by radio communication and network and Other equipment communicates.This radio communication can use arbitrary communication standard or agreement, including but not limited to global system for mobile telecommunications system System (GSM, Global System ofMobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division many Location (WCDMA, Wideband Code Division MultipleAccess), Long Term Evolution (LTE, Long TermEvolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 402 can be used for storing software program and module.Processor 408 is stored in memory 402 by operation Software program and module, thus executing various function application and data processing.Memory 402 can mainly include storing journey Sequence area and storage data field, wherein, storing program area can the intended application needed for storage program area, at least one function (compare As sound-playing function, image player function etc.) etc.;Storage data field can store according to terminal using the data being created (such as voice data, phone directory etc.) etc..Additionally, memory 402 can include high-speed random access memory, can also include Nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory 402 can also include Memory Controller, to provide processor 408 and input block 403 to memory 402 Access.
Input block 403 can be used for numeral or the character information of receives input, and produces and user setup and function Control relevant keyboard, mouse, action bars, optics or trace ball signal input.Specifically, in a specific embodiment In, input block 403 may include Touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touch Control plate, can collect user thereon or neighbouring touch operation (such as user use any suitable object such as finger, stylus or Operation on Touch sensitive surface or near Touch sensitive surface for the annex), and corresponding connection dress is driven according to formula set in advance Put.Optionally, Touch sensitive surface may include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus inspection Survey the touch orientation of user, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller from Receive touch information on touch detecting apparatus, and be converted into contact coordinate, then give processor 408, and can reception processing Order that device 408 is sent simultaneously is executed.Furthermore, it is possible to it is multiple using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes Touch sensitive surface.Except Touch sensitive surface, input block 403 can also include other input equipments.Specifically, other are defeated Enter equipment and can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One or more of mark, action bars, fingerprint recognition module etc..
Display unit 404 can be used for display and by the information of user input or is supplied to the information of user and the various of terminal Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display Unit 404 may include display floater, optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) are configuring display floater.Further , Touch sensitive surface can cover display floater, when Touch sensitive surface detects thereon or after neighbouring touch operation, sends process to Device 408, to determine the type of touch event, provides accordingly according to the type of touch event on a display panel with preprocessor 408 Visual output.Although in figure 6, Touch sensitive surface and display floater are to realize inputting as two independent parts and to input Function, but in some embodiments it is possible to will be integrated to Touch sensitive surface and display floater and realize input and output function.
Terminal may also include at least one sensor 405, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light The brightness to adjust display floater for the light and shade, proximity transducer can cut out display floater and/or the back of the body when terminal moves in one's ear Light.As one kind of motion sensor, Gravity accelerometer can detect (generally three axles) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used for identify mobile phone attitude application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Can also configure as terminal Gyroscope, barometer, hygrometer, thermometer, the other sensors such as infrared ray sensor, will not be described here.
Voicefrequency circuit 406 can provide the COBBAIF between user and terminal by loudspeaker, microphone.Voicefrequency circuit The voice data receiving can be converted into electric signal by 406, be transferred to loudspeaker, be converted to voice signal output by loudspeaker; On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio frequency number by voicefrequency circuit 406 after being received According to then after processing voice data output processor 408, through radio circuit 401 being sent to such as another terminal, or by sound Frequency data output is to memory 402 to process further.Voicefrequency circuit 406 is also possible that earphone jack, to provide peripheral hardware Earphone and the communication of terminal.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal can be helped by wireless fidelity module 407 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed. Although Fig. 6 shows wireless fidelity module 407, but it is understood that, it is simultaneously not belonging to must be configured into of terminal, completely may be used To omit in the scope of essence not changing invention as needed.
Processor 408 is the control centre of terminal, using the various pieces of various interfaces and the whole terminal of connection, leads to Cross and run or software program and/or module that execution is stored in memory 402, and call and be stored in memory 402 Data, the various functions of execution terminal and processing data, thus carry out integral monitoring to terminal.Optionally, processor 408 can wrap Include one or more processing cores;Preferably, processor 408 can integrated application processor and modem processor, wherein, should Mainly process operating system, user interface and intended application etc. with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 408.
Terminal also includes the power supply 409 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe Reason system is logically contiguous with processor 408, thus realizing management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 409 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal can also bag bluetooth module, shooting first-class, will not be described here.
Specifically in the present embodiment, the processor 408 in terminal can be according to following instruction, will be one or more The corresponding executable file of process of intended application is loaded in memory 402, and to be run by processor 408 and be stored in storage Intended application in device 402, thus realize various functions:
Determine the current intended application enabling sensor of interest, then, according to the set of frequency information of intended application, determine The corresponding buffer of sensor of interest uploads data to the target upload frequencies reaching needed for processor, and judges current buffer Whether the upload frequencies uploading data to processor are equal to target upload frequencies, if it is not, then adjusting the depth information of buffer, with Upload frequencies are made to be equal to target upload frequencies.
From the foregoing, it will be observed that embodiments providing a kind of terminal, this terminal is passed through to determine current enable sensor of interest Intended application, then, according to the set of frequency information of intended application, determine the corresponding buffer of sensor of interest upload data To the target upload frequencies reaching needed for processor, and judge current buffer upload data to processor upload frequencies whether Equal to target upload frequencies, if it is not, then adjusting the depth information of buffer, so that upload frequencies are equal to target upload frequencies; The program can adjust the depth information of buffer according to the frequency requirement of different application, so that the data of storage is uploaded to The frequency of processor reaches the frequency requirement of this application, in terms of existing technologies, can with effective control message transmission rate, Reduce power consumption of terminal.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completed with the hardware instructing correlation by program, this program can be stored in a computer-readable recording medium, storage Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, RandomAccess Memory), disk or CD etc..
A kind of the data transfer control method above embodiment of the present invention being provided and device are described in detail, this In literary composition, intended application specific case is set forth to the principle of the present invention and embodiment, and the explanation of above example is It is used to help understand the method for the present invention and its core concept;Simultaneously for those skilled in the art, according to the think of of the present invention Think, all will change in specific embodiment and intended application scope, in sum, this specification content should not be understood For limitation of the present invention.

Claims (10)

1. a kind of data transfer control method is it is characterised in that include:
Determine the current intended application enabling sensor of interest;
According to the set of frequency information of described intended application, determine that the corresponding buffer of described sensor of interest uploads data to place The target upload frequencies reaching needed for reason device;
Judge that presently described buffer uploads whether data is equal to described target upload frequencies to the upload frequencies of described processor;
If it is not, then adjusting the depth information of described buffer, so that described upload frequencies are equal to described target upload frequencies.
2. data transfer control method as claimed in claim 1 is it is characterised in that the depth of the described buffer of described adjustment is believed The step of breath, specifically includes:
Determine the application level of described intended application according to described target upload frequencies;
Adjust the depth information of described buffer according to described application level.
3. data transfer control method as claimed in claim 2 is it is characterised in that described true according to described target upload frequencies The step of the application level of fixed described intended application, specifically includes:
Judge whether described target upload frequencies are in predeterminated frequency interval;
If so, then obtain the interval corresponding predeterminated frequency rank of described predeterminated frequency;
Determine the application level of described intended application according to described predeterminated frequency rank.
4. data transfer control method as claimed in claim 1 is it is characterised in that described depth information includes depth value;Institute The step stating the depth information adjusting described buffer, specifically includes:
Judge whether described upload frequencies are more than described target upload frequencies;
If so, increase the depth value of described buffer;
If it is not, reducing the depth value of described buffer.
5. data transfer control method as claimed in claim 1 is it is characterised in that determining current enable sensor of interest After intended application, determine that the corresponding buffer of described sensor of interest uploads data and uploads to the target reaching needed for processor Before frequency, methods described also includes:
Judge whether described intended application is default application;
If it is not, then executing the set of frequency information according to described intended application, determine the corresponding buffer of described sensor of interest Upload the step to the target upload frequencies reaching needed for described processor for the data.
6. a kind of data transfer controller is it is characterised in that include:
Application determining module, for determining the current intended application enabling sensor of interest;
Frequency determining module, for the set of frequency information according to described intended application, determines that described sensor of interest is corresponding Buffer uploads data to the target upload frequencies reaching needed for processor;
First judge module, for judging whether presently described buffer upload data is equal to the upload frequencies of described processor Described target upload frequencies;
Adjusting module, for when the first judge module is judged to no, adjusting the depth information of described buffer, so that described Upload frequencies are equal to described target upload frequencies.
7. data transfer controller as claimed in claim 6 is it is characterised in that described adjusting module includes:
Determination sub-module, for determining the application level of described intended application according to described target upload frequencies;
Adjustment submodule, for adjusting the depth information of described buffer according to described application level.
8. data transfer controller as claimed in claim 7 is it is characterised in that described determination sub-module, specifically for sentencing It is interval whether described target upload frequencies of breaking are in predeterminated frequency;If so, then obtain described predeterminated frequency interval corresponding default Frequency rank;Determine the application level of described intended application according to described predeterminated frequency rank.
9. data transfer controller as claimed in claim 6 is it is characterised in that described depth information includes depth value;Institute State adjusting module, specifically for judging whether described upload frequencies are more than described target upload frequencies;If so, increase described caching The depth value of device;If it is not, reducing the depth value of described buffer.
10. data transfer controller as claimed in claim 6 is it is characterised in that described device also includes:
Second judge module, for, after determining the intended application of current enable sensor of interest, determining described target sensing Before device corresponding buffer upload data is to the target upload frequencies reaching needed for processor, whether judge described intended application For default application;
Described frequency determining module, specifically for when the second judge module is judged to no, according to the frequency of described intended application Configuration information, determines that the corresponding buffer of described sensor of interest uploads data and uploads frequency to the target reaching needed for processor Rate.
CN201610860194.1A 2016-09-27 2016-09-27 A kind of data transfer control method and device Active CN106445841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610860194.1A CN106445841B (en) 2016-09-27 2016-09-27 A kind of data transfer control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610860194.1A CN106445841B (en) 2016-09-27 2016-09-27 A kind of data transfer control method and device

Publications (2)

Publication Number Publication Date
CN106445841A true CN106445841A (en) 2017-02-22
CN106445841B CN106445841B (en) 2019-08-06

Family

ID=58169931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610860194.1A Active CN106445841B (en) 2016-09-27 2016-09-27 A kind of data transfer control method and device

Country Status (1)

Country Link
CN (1) CN106445841B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830653A (en) * 2019-11-05 2020-02-21 RealMe重庆移动通信有限公司 Sensor control method, sensor control device, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883046A (en) * 2010-06-21 2010-11-10 杭州开鼎科技有限公司 Data cache architecture applied to EPON terminal system
CN103064501A (en) * 2012-12-14 2013-04-24 华为终端有限公司 Control method, device and terminal for information input
CN103973407A (en) * 2014-05-28 2014-08-06 北京经纬恒润科技有限公司 Data transmission rate matching method and device of remote data transmission system
CN105204665A (en) * 2015-09-23 2015-12-30 青岛海信宽带多媒体技术有限公司 Wireless mouse data processing method and intelligent terminal
CN105337800A (en) * 2015-10-30 2016-02-17 小米科技有限责任公司 Polling frequency adjustment method and polling frequency adjustment device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883046A (en) * 2010-06-21 2010-11-10 杭州开鼎科技有限公司 Data cache architecture applied to EPON terminal system
CN103064501A (en) * 2012-12-14 2013-04-24 华为终端有限公司 Control method, device and terminal for information input
CN103973407A (en) * 2014-05-28 2014-08-06 北京经纬恒润科技有限公司 Data transmission rate matching method and device of remote data transmission system
CN105204665A (en) * 2015-09-23 2015-12-30 青岛海信宽带多媒体技术有限公司 Wireless mouse data processing method and intelligent terminal
CN105337800A (en) * 2015-10-30 2016-02-17 小米科技有限责任公司 Polling frequency adjustment method and polling frequency adjustment device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830653A (en) * 2019-11-05 2020-02-21 RealMe重庆移动通信有限公司 Sensor control method, sensor control device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN106445841B (en) 2019-08-06

Similar Documents

Publication Publication Date Title
WO2015090248A1 (en) Server overload protection method and device
CN104243671A (en) Volume adjustment method and device and electronic device
CN106357897A (en) Fall information acquiring method and device
CN104519485A (en) Communication method between terminals, devices and system
CN104301504A (en) Message viewing method and device and mobile terminal
CN104158506A (en) Method, device and terminal for adjusting volume
CN108112028B (en) Network searching method and equipment for international roaming
CN106358225B (en) A kind of processing method of network data, device and mobile terminal
CN104717341A (en) Message prompting method and terminal
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN104954159A (en) Network information statistics method and device
CN105307242A (en) Wi-Fi network application method and terminal
CN103068016B (en) The method of mobile terminal and reduction power consumption thereof
CN106412664A (en) Multimedia synchronous play method, device and system, and terminal
CN105094501A (en) Display method, device and system for messages in mobile terminal
CN106532876A (en) Power supply control method and device and computer equipment
CN105045372A (en) Method and equipment controlling wearable device
CN104346028A (en) Address bar display method, device and mobile terminal
CN104571778A (en) Lock screen picture setting method and device
CN110046032A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN104244448B (en) Reduce the method and system of data transmission delay
CN107302245A (en) A kind of charge control method and terminal
CN106445841A (en) Control method and device of data transmission
CN105224159A (en) The method of display window, device and terminal
CN104346176A (en) Method and device for starting browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant