CN106445841B - A kind of data transfer control method and device - Google Patents

A kind of data transfer control method and device Download PDF

Info

Publication number
CN106445841B
CN106445841B CN201610860194.1A CN201610860194A CN106445841B CN 106445841 B CN106445841 B CN 106445841B CN 201610860194 A CN201610860194 A CN 201610860194A CN 106445841 B CN106445841 B CN 106445841B
Authority
CN
China
Prior art keywords
target
buffer
upload frequencies
application
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610860194.1A
Other languages
Chinese (zh)
Other versions
CN106445841A (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 kind of data transfer control method and devices;The data transfer control method is by determining the current target application for enabling sensor of interest, then, according to the set of frequency information of target application, determine that the corresponding buffer of sensor of interest uploads the target upload frequencies that data need to reach to processor, and judge that current buffer uploads data and whether is equal to target upload frequencies to the upload frequencies of processor, if it is not, the depth information of buffer is then adjusted, 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 frequency that the data of storage are uploaded to processor to be reached to the frequency requirement of the application, in terms of existing technologies, message transmission rate can be effectively controlled, power consumption of terminal is reduced.

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 methods and device.
Background technique
With the development of internet with the development of mobile communications network, while also along with the processing capacity of terminal and storage The application of the fast development of ability, magnanimity has obtained rapid propagation and use.Often there are multiple clock domains in the semiconductor element, FIFO (First Input First Output, First Input First Output) caching is used as a kind of effective method, is widely answered In the data transmission of cross clock domain.
Currently, many sensors all support fifo mode, the data storage that sensor can be obtained to FIFO buffer In, when FIFO buffer is filled with and then data are uploaded to processor.However, different application is to data upload frequencies requirement Difference, and the depth of FIFO buffer is fixed, the not variation with application scenarios variation in existing terminal, if it is desired to upload frequency Rate is lower, and practical upload frequencies are higher than required upload frequencies, then will increase system burden, cause power consumption of terminal larger.
It is found that the larger technical problem of power consumption of terminal exists in the prior art.
Summary 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 the prior art Larger technical problem.
The embodiment of the present invention provides a kind of data transfer control method, comprising:
Determine the target application of current enabled sensor of interest;
According to the set of frequency information of the target application, determine that the corresponding buffer of the sensor of interest uploads data To the target upload frequencies reached needed for processor;
Judge that presently described buffer uploads data and uploads to whether the upload frequencies of the processor are equal to the target Frequency;
If it is not, the depth information of the buffer is then adjusted, so that the upload frequencies, which are equal to the target, uploads frequency Rate.
Correspondingly, the embodiment of the invention provides a kind of data transfer controllers, comprising:
Using determining module, for determining the target application of current enabled sensor of interest;
Frequency determining module determines the sensor of interest pair for the set of frequency information according to the target application The buffer answered uploads data to the target upload frequencies reached needed for processor;
First judgment module, for judge presently described buffer upload data to the processor upload frequencies whether Equal to the target upload frequencies;
Module is adjusted, for adjusting the depth information of the buffer when first judgment module is determined as no, so that The upload frequencies are equal to the target upload frequencies.
The embodiment of the present invention is using the target application for determining current enabled sensor of interest, then, according to target application Set of frequency information determines that the corresponding buffer of sensor of interest uploads data and uploads frequency to the target reached needed for processor Rate, and judge that current buffer uploads data and whether 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 It is required that the depth information of adjustment buffer, so that the frequency that the data of storage are uploaded to processor to be reached to the frequency of the application It is required that in terms of existing technologies, can effectively control message transmission rate, reduce power consumption of terminal.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the flow diagram for the data transfer control method that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram of data transfer control method provided by Embodiment 2 of the present invention;
Fig. 3 is the structural schematic diagram for the first data transfer controller that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for second of data transfer controller that the embodiment of the present invention three provides;
Fig. 5 is the structural schematic diagram for the third data transfer controller that the embodiment of the present invention three provides;
Fig. 6 is the structural schematic diagram for the terminal that the embodiment of the present invention four provides.
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 only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of data transfer control method and device.It will be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of data transfer controller, which specifically can be with It integrates in the terminal, which can be the equipment such as smart phone, tablet computer.
A kind of data transfer control method, comprising: determine the target application of current enabled sensor of interest;It is answered according to target Set of frequency information determines that the corresponding buffer of sensor of interest uploads data and uploads to the target reached needed for processor Frequency;Judge that current buffer uploads data and whether 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, detailed process be can be such that
101, the target application of current enabled sensor of interest is determined.
In some embodiments, before the target application for determining current enabled sensor of interest, it can be determined that current Whether terminal system is in suspend mode standby mode, if in a dormant state, and then determine 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 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 are transferred to processing The number of device is to reduce the number of wake-up system.
Specifically, the data that sensor can be obtained store in both the buffers, when buffer full load again passes data Processor is transported to, therefore, its memory space can be adjusted to maximum by adjusting the storage parameter of buffer, such as depth information, Data are uploaded to the upload frequencies of processor to reduce buffer, and then reduce power consumption of terminal.For example, G- is called in the application of step counting class When the data of sensor (Gravity-sensor, acceleration transducer), biggish unloading can be set and (be arranged biggish slow Storage memory space) to reduce the number that buffer outputs data to processor, and then save power consumption of terminal.
When determining that present terminal system is not at dormant state, it can determine that the target of current enabled sensor of interest is answered With, namely determine the current target application for calling sensing data.
102, according to the set of frequency information of target application, determine that the corresponding buffer of sensor of interest uploads data to place The target upload frequencies reached needed for reason device.
Specifically, it can determine that the corresponding buffer of sensor of interest uploads number according to the frequency requirement that target application is arranged According to the target upload frequencies reached needed for processor, for example, the ginseng that the set of frequency information itself can be carried according to application Number determines.
Wherein, set of frequency information can be the self-contained data upload frequencies etc. of application program.Terminal can root According to the set of frequency information of the target application, determine that buffer uploads data and needs target upload frequencies to be achieved to processor.
In the present embodiment, buffer is specifically as follows FIFO (First In First Out, first in first out) buffer, Include multiple important parameters, such as the depth (THE DEEPTH) of 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 when sensing data is called in certain applications Breath is adjusted to preset value, without identifying the frequency requirement of the application, to be further reduced power consumption of terminal.And it is answered for non-default With, then need carry out frequency requirement identification operation;Namely it after the target application for determining current enabled sensor of interest, determines Before the corresponding buffer of sensor of interest uploads data to the target upload frequencies reached needed for processor, this method can be with Include:
Judge whether target application is default application;
If it is not, then executing the corresponding buffer of determining sensor of interest uploads data in the target reached needed for processor The step of passing frequency.
103 judge that current buffer uploads data and whether is equal to target upload frequencies to the upload frequencies of processor;If so, Terminate process;If it is not, executing step 104.
Specifically, available current buffer uploads data to the upload frequencies of processor, 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, for example the frequency separation can be [a HZ, b HZ], If current upload frequencies are in the frequency separation, it can be determined that current buffer uploads data to the upload frequencies of processor Equal to target upload frequencies, otherwise determine that current buffer uploads data and uploads frequency not equal to target to the upload frequencies of processor Rate.
104, the depth information of buffer is adjusted, so that upload frequencies are equal to target upload frequencies.
Specifically, data are uploaded in judgement current buffer and is not equal to target upload frequencies to the upload frequencies of processor When, the depth information of buffer is adjusted, so that upload frequencies are equal to target upload frequencies.Since the width of FIFO is usually solid Fixed, and the depth of FIFO is adjustable, it therefore, can be by adjusting the depth information of FIFO, to change the amount of storage of FIFO, in turn It adjusts buffer and uploads data to the upload frequencies of processor.
In the present embodiment, adjust the depth information of buffer mode can there are many.It is alternatively possible to according to application Frequency requirement divide application level, and the corresponding relationship between application level and FIFO depth is established, according to application level tune The depth information of whole buffer;That is, step " depth information of adjustment buffer " detailed process can be such that
The application level of target application is determined according to target upload frequencies;
The depth information of buffer is adjusted according to application level.
Specifically, it is determined that the application layer of target application otherwise can there are many, for example, can be by target upload frequencies Target application 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 target application " it can specifically include:
Judge whether target upload frequencies are in predeterminated frequency section;
If so, obtaining the corresponding predeterminated frequency rank in predeterminated frequency section;
The application level of target application is determined according to predeterminated frequency rank.
It is another optionally, due in the case where the other parameters of buffer are certain, the depth and buffer of FIFO is stored It measures directly proportional, is inversely proportional with upload frequencies.Therefore, upload frequencies can be compared with target upload frequencies, according to comparing As a result percentage regulation information.For example, depth information may include depth value;Then step " depth information of adjustment buffer " is specific Process can be such that
Judge whether upload frequencies are greater than target upload frequencies;
If so, increasing the depth value of buffer;
If it is not, then reducing the depth value of buffer.
Specifically, it when upload frequencies are greater than target upload frequencies, by increasing the depth value of buffer, is uploaded with reducing 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 the embodiment of the invention provides a kind of data transfer control method, by determining currently enabled target Then the target application of sensor according to the set of frequency information of target application, determines on the corresponding buffer of sensor of interest Data are passed to the target upload frequencies reached needed for processor, and judge the upload frequency that current buffer uploads data to processor Whether rate is equal to target upload frequencies, if it is not, the depth information of buffer is then adjusted, so that upload frequencies are uploaded equal to target Frequency;The program can adjust the depth information of buffer according to the frequency requirement of different application, so that by the data of storage The frequency for being uploaded to processor reaches the frequency requirement of the application, in terms of existing technologies, can effectively control data biography Defeated rate, reduces power consumption of terminal.
Embodiment two,
According to method described in embodiment one, citing is described in further detail below.
In the present embodiment, it will be retouched in detail so that the data transfer controller specifically integrates in the terminal as an example It states.
As shown in Fig. 2, a kind of data transfer control method, detailed process can be such that
201, mobile terminal determines the target application of current enabled sensor of interest.
It in some embodiments, can be with before the target application that mobile terminal determines current enabled sensor of interest Judge whether present terminal system is in suspend mode standby mode, if in a dormant state, and then determine that current goal sensor is It is no to be enabled, namely determine whether sensor of interest is in running order.If sensor of interest is in running order, and currently it is System 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 pass The number of processor is defeated by reduce the number of wake-up system.
Specifically, the data that sensor can be obtained store in both the buffers, when buffer full load again passes data Processor is transported to, therefore, its memory space can be adjusted to maximum by adjusting the storage parameter of buffer, such as depth information, Data are uploaded to the upload frequencies of processor to reduce buffer, and then reduce power consumption of terminal.For example, G- is called in the application of step counting class When the data of sensor, biggish unloading can be set to reduce the number that buffer outputs data to processor, and then save Mobile terminal power consumption.
202, mobile terminal judges whether target application is default application;If so, executing step 206;If it is not, executing step 203。
In the present embodiment, judge target application whether be default application mode can there are many, such as, it can be determined that It whether there is and the matched sample identification of the target application in default logo collection;That is, step " judge target application whether be Default application " can specifically include:
Obtain the application identities of target application;
Judge to whether there is and the matched sample identification of the target application in default logo collection;
If it exists, then determine that target application is default application;
If it does not exist, then determining target application not is default application.
203, mobile terminal determines that the corresponding buffer of sensor of interest uploads according to the set of frequency information of target application Data are to the target upload frequencies reached needed for processor.
It specifically, is default in application, being determined slow according to the set of frequency information of target application determining target application not Target upload frequencies to be achieved are needed when storage uploads data to processor.
When being specifically to implement, the corresponding caching of sensor of interest can be determined according to the frequency requirement that target application is arranged Device uploads data to the target upload frequencies reached needed for processor, for example, the set of frequency information can be according to using itself The parameter of carrying determines.
Wherein, set of frequency information can be the self-contained data upload frequencies etc. of application program.Terminal can root According to the set of frequency information of the target application, determine that buffer uploads data and needs target upload frequencies to be achieved to processor.
In the present embodiment, buffer is specifically as follows FIFO buffer, and it includes the depths of multiple important parameters, such as FIFO Degree, the width of FIFO, full scale will, empty mark etc..
204, mobile terminal judges that current buffer uploads data and uploads to whether the upload frequencies of processor are equal to target Frequency;If so, terminating process, if it is not, executing step 205.
Specifically, available current buffer uploads data to the upload frequencies of processor, 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, for example the frequency separation can be [a HZ, b HZ], If current upload frequencies are in the frequency separation, it can be determined that current buffer uploads data to the upload frequencies of processor Equal to target upload frequencies, otherwise determine that current buffer uploads data and uploads frequency not equal to target to the upload frequencies of processor Rate.
205, the depth information of mobile terminal adjustment buffer, so that upload frequencies are equal to target upload frequencies.
Specifically, data are uploaded in judgement current buffer and is not equal to target upload frequencies to the upload frequencies of processor When, the depth information of buffer is adjusted, so that upload frequencies are equal to target upload frequencies.
In the present embodiment, adjust the depth information of buffer mode can there are many.It is alternatively possible to according to application Frequency requirement divide application level, and the corresponding relationship between application level and FIFO depth is established, according to application level tune The depth information of whole buffer;That is, step " depth information of adjustment buffer " detailed process can be such that
The application level of target application is determined according to target upload frequencies;
The depth information of buffer is adjusted according to application level.
Specifically, it is determined that the application layer of target application otherwise can there are many, for example, can be by target upload frequencies Target application 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 target application " it can specifically include:
Judge whether target upload frequencies are in predeterminated frequency section;
If so, obtaining the corresponding predeterminated frequency rank in predeterminated frequency section;
The application level of target application is determined according to predeterminated frequency rank.
It is another optionally, due in the case where buffer other parameters are constant, the depth and buffer amount of storage of FIFO It is directly proportional, it is inversely proportional with upload frequencies.Therefore, upload frequencies can be compared with target upload frequencies, is tied according to comparing Fruit percentage regulation information.For example, depth information may include depth value;Then step " depth information of adjustment buffer " specific stream Journey can be such that
Judge whether upload frequencies are greater than target upload frequencies;
If so, increasing the depth value of buffer;
If it is not, then reducing the depth value of buffer.
Specifically, it when upload frequencies are greater than target upload frequencies, by increasing the depth value of buffer, is uploaded with reducing Frequency;When upload frequencies are less than target upload frequencies, by reducing the depth value of buffer, to increase upload frequencies.
206, the depth value of buffer is adjusted to maximum value by mobile terminal.
It in some embodiments, can be when sensing data be called in certain applications, directly by the depth value of buffer It is adjusted to maximum value, without identifying the frequency requirement of the application, to be further reduced power consumption of terminal.It is applied with step counting class and is Example, directly can be adjusted to maximum value for the G-sensor depth value for corresponding to buffer, buffer unloading space is adjusted to most Greatly, to reduce the data cached frequency for outputting data to processor, and then power consumption of terminal is reduced.
From the foregoing, it will be observed that being determined by mobile terminal current the embodiment of the invention provides a kind of data transfer control method The target application of enabled sensor of interest, and judge whether target application is default application, if it is not, then according to the frequency of target application Rate setting information determines that the corresponding buffer of sensor of interest uploads data to the target upload frequencies reached needed for processor, Judge whether current upload frequencies are equal to target upload frequencies again, if being not equal to, adjusts the depth information of buffer, so that Upload frequencies are equal to target upload frequencies;The depth that the program can adjust buffer according to the frequency requirement of different application is believed Breath so that the frequency that the data of storage are uploaded to processor to be reached to the frequency requirement of the application, compared with the existing technology and Speech, can effectively control message transmission rate, reduce power consumption of terminal.
Embodiment three,
In order to better implement above method, the embodiment of the present invention also provides a kind of data transfer controller, the data Transmission control unit can integrate in the terminal, which can specifically include mobile phone, tablet computer, laptop etc. and set It is standby.As shown in figure 3, the data transfer controller 300 may include using determining module 301, frequency determining module 302, the One judgment module 303 and adjustment module 304 are as follows:
Using determining module 301, for determining the target application of current enabled sensor of interest;
Frequency determining module 302 determines that sensor of interest is corresponding slow for the set of frequency information according to target application Storage uploads data to the target upload frequencies reached needed for processor;
Whether first judgment module 303 is equal to for judging that current buffer uploads data to the upload frequencies of processor Target upload frequencies;
Module 304 is adjusted, for adjusting the depth information of buffer when first judgment module is determined as no, so that Upload frequencies are equal to target upload frequencies.
In some embodiments, as shown in figure 4, adjustment module 304 may include: determining submodule 3041 and adjustment Module 3042;
Submodule 3041 is determined, for determining the application level of the target application according to target upload frequencies;
Adjusting submodule 3042, for adjusting the depth information of buffer according to application level.
In some embodiments, it determines submodule 3041, specifically can be used for:
Judge whether target upload frequencies are in predeterminated frequency section;
If so, obtaining the corresponding predeterminated frequency rank in predeterminated frequency section;
The application level of target application is determined according to predeterminated frequency rank.
In some embodiments, which includes depth value;Module 304 is adjusted, specifically can be used for:
Judge whether upload frequencies are greater than target upload frequencies;
If so, increasing the depth value of the buffer;
If it is not, then reducing the depth value of the buffer.
In some embodiments, as shown in figure 5, the data transfer controller 300 can also include: the second judgement mould Block 305;
Second judgment module 305, for determining that target passes after the target application for determining current enabled sensor of interest The corresponding buffer of sensor uploads data and whether judges target application before to the target upload frequencies reached needed for processor For default application;
Frequency determining module 302, specifically for determining sensor of interest pair when the second judgment module 305 is determined as no The buffer answered uploads data to the target upload frequencies reached needed for processor.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of data transfer controller, by determining currently enabled target Then the target application of sensor according to the set of frequency information of target application, determines on the corresponding buffer of sensor of interest Data are passed to the target upload frequencies reached needed for processor, and judge the upload frequency that current buffer uploads data to processor Whether rate is equal to target upload frequencies, if it is not, the depth information of buffer is then adjusted, so that upload frequencies are uploaded equal to target Frequency;The program can adjust the depth information of buffer according to the frequency requirement of different application, so that by the data of storage The frequency for being uploaded to processor reaches the frequency requirement of the application, in terms of existing technologies, can effectively control data biography Defeated rate, reduces power consumption of terminal.
Example IV,
The present embodiment provides a kind of terminals, for example, referring to FIG. 6, the terminal 400 may include radio frequency (RF, Radio Frequency) circuit 401, include one or more memory 402, the input unit of computer readable storage medium 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) module 407, the components such as processor 408 and the power supply 409 of processing core are included one or more than one.Those skilled in the art It is appreciated that the restriction of terminal structure shown in Fig. 6 not structure paired terminal, may include than illustrating more or fewer portions Part perhaps combines certain components or different component layouts.
Radio circuit 401 can be used for receiving and sending messages or communication process in signal send and receive, particularly, by base station Downlink information receive after, transfer to one or more than one processor 408 processing;In addition, the data for being related to uplink are sent To base station.In general, radio circuit 401 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillations Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, LowNoiseAmplifier), duplexer etc..In addition, radio circuit 401 can also by wireless communication with network and Other equipment communication.Any communication standard or agreement, including but not limited to global system for mobile telecommunications system can be used in the wireless communication Unite (GSM, Global System ofMobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more 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, thereby executing various function application and data processing.Memory 402 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of target application needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to terminal (such as audio data, phone directory etc.) etc..In addition, memory 402 may include high-speed random access memory, can also include Nonvolatile memory, for example, at least a 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 unit 403 to memory 402 Access.
Input unit 403 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment In, input unit 403 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 408, and can reception processing Order that device 408 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 403 can also include other input equipments.Specifically, other are defeated Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One of mark, operating stick, fingerprint recognition mould group etc. are a variety of.
Display unit 404 can be used for showing information input by user or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display Unit 404 may include display panel, optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to Device 408 is followed by subsequent processing device 408 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although touch sensitive surface and display panel are to realize input and input as two independent components in Fig. 6 Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs 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 sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or back when terminal is moved in one's ear Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 406 can provide the audio interface between user and terminal by loudspeaker, microphone.Voicefrequency circuit The audio data received 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 number after being received by voicefrequency circuit 406 According to then such as another terminal will be sent to through radio circuit 401 after audio data output processor 408 handles, or by sound Frequency is further processed according to output to memory 402.Voicefrequency circuit 406 is also possible that earphone jack, to provide peripheral hardware The communication of earphone and 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., it provides wireless broadband internet access for user. Although Fig. 6 shows wireless fidelity module 407, but it is understood that, and it is not belonging to must be configured into for terminal, completely may be used To omit within the scope of not changing the essence of the invention as needed.
Processor 408 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the software program and/or module being stored in memory 402, and call and be stored in memory 402 Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Optionally, processor 408 can wrap Include one or more processing cores;Preferably, processor 408 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and target application etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 408.
Terminal further includes the power supply 409 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe Reason system and processor 408 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.Power supply 409 can also include one or more direct current or AC power source, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal can also packet bluetooth module, camera etc., details are not described herein.
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 the process of target application is loaded into memory 402, and is run by processor 408 and be stored in storage Target application in device 402, to realize various functions:
It determines the target application of current enabled sensor of interest, then, according to the set of frequency information of target application, determines The corresponding buffer of sensor of interest uploads data to the target upload frequencies reached needed for processor, and judges current buffer It uploads data and whether is equal to target upload frequencies to the upload frequencies of processor, if it is not, the depth information of buffer is then adjusted, with So that upload frequencies are equal to target upload frequencies.
From the foregoing, it will be observed that the terminal is by determining currently enabled sensor of interest the embodiment of the invention provides a kind of terminal Target application then according to the set of frequency information of target application, determine that the corresponding buffer of sensor of interest uploads data To the target upload frequencies reached needed for processor, and judge current buffer upload data to processor upload frequencies whether Equal to target upload frequencies, if it is not, the depth information of buffer is then adjusted, 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 are uploaded to The frequency of processor reaches the frequency requirement of the application, in terms of existing technologies, can effectively control message transmission rate, Reduce power consumption of terminal.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, RandomAccess Memory), disk or CD etc..
It is provided for the embodiments of the invention a kind of data transfer control method above and device is described in detail, this A specific example illustrates the principle and implementation of the invention for target application in text, and the explanation of above embodiments is It is used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, think of according to the present invention Think, there will be changes in specific embodiment and target application range, in conclusion the content of the present specification should not be understood For limitation of the present invention.

Claims (9)

1. a kind of data transfer control method characterized by comprising
When determining that present terminal system is not at dormant state, the target application of current enabled sensor of interest is determined;
According to the set of frequency information of the target application, determine that the corresponding buffer of the sensor of interest uploads data to place The target upload frequencies reached needed for reason device;
Judge that presently described buffer uploads data and whether is equal to the target upload frequencies to the upload frequencies of the processor;
If it is not, then determining the application level of the target application according to the target upload frequencies;
The depth information of the buffer is adjusted according to the application level, so that the upload frequencies are equal in the target Pass frequency.
2. data transfer control method as described in claim 1, which is characterized in that described true according to the target upload frequencies It the step of application level of the fixed target application, specifically includes:
Judge whether the target upload frequencies are in predeterminated frequency section;
If so, obtaining the corresponding predeterminated frequency rank in the predeterminated frequency section;
The application level of the target application is determined according to the predeterminated frequency rank.
3. data transfer control method as described in claim 1, which is characterized in that the depth information includes depth value;Institute The step of stating the depth information for adjusting the buffer, specifically includes:
Judge whether the upload frequencies are greater than the target upload frequencies;
If so, increasing the depth value of the buffer;
If it is not, reducing the depth value of the buffer.
4. data transfer control method as described in claim 1, which is characterized in that determining current enabled sensor of interest After target application, determine that the corresponding buffer of the sensor of interest uploads data and uploads to the target reached needed for processor Before frequency, the method also includes:
Judge whether the target application is default application;
If it is not, then executing the set of frequency information according to the target application, the corresponding buffer of the sensor of interest is determined Upload the step of data are to the target upload frequencies reached needed for the processor.
5. a kind of data transfer controller characterized by comprising
Using determining module, for when determining that present terminal system is not at dormant state, determining currently enabled target sensing The target application of device;
Frequency determining module determines that the sensor of interest is corresponding for the set of frequency information according to the target application Buffer uploads data to the target upload frequencies reached needed for processor;
Whether first judgment module is equal to for judging that presently described buffer uploads data to the upload frequencies of the processor The target upload frequencies;
Submodule is determined, for determining the target according to the target upload frequencies when first judgment module is determined as no The application level of application;
Adjusting submodule, for adjusting the depth information of the buffer according to the application level, so that upload frequency Rate is equal to the target upload frequencies.
6. data transfer controller as claimed in claim 5, which is characterized in that the determining submodule, specifically for sentencing Whether the target upload frequencies of breaking are in predeterminated frequency section;If so, it is corresponding default to obtain the predeterminated frequency section Frequency rank;The application level of the target application is determined according to the predeterminated frequency rank.
7. data transfer controller as claimed in claim 5, which is characterized in that the depth information includes depth value;Institute Adjustment module is stated, specifically for judging whether the upload frequencies are greater than the target upload frequencies;If so, increasing the caching The depth value of device;If it is not, reducing the depth value of the buffer.
8. data transfer controller as claimed in claim 5, which is characterized in that described device further include:
Second judgment module, for determining the target sensing after the target application for determining current enabled sensor of interest Before the corresponding buffer of device uploads data to the target upload frequencies reached needed for processor, whether the target application is judged For default application;
The frequency determining module, specifically for when the second judgment module is determined as no, according to the frequency of the target application Setting information determines that the corresponding buffer of the sensor of interest uploads data and uploads frequency to the target reached needed for processor Rate.
9. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, described instruction be suitable for processor into Row load requires the step in 1 to 4 described in any item data transfer control methods with perform claim.
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 CN106445841A (en) 2017-02-22
CN106445841B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830653B (en) * 2019-11-05 2021-07-13 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

Also Published As

Publication number Publication date
CN106445841A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106357897B (en) The acquisition methods and device of drop information
US10033920B2 (en) Method for controlling cameras, non-transitory storage medium and terminal
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
CN104243671B (en) Volume adjusting method, device and electronic equipment
WO2015090248A1 (en) Server overload protection method and device
KR101794397B1 (en) Method and device, computer-readable storage medium for enlarging displayed font
US10657347B2 (en) Method for capturing fingerprint and associated products
CN104834529A (en) Method and device for optimizing performance of application
US20150121295A1 (en) Window displaying method of mobile terminal and mobile terminal
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
US10324134B2 (en) Method and device for ascertaining required charging time
WO2015070769A1 (en) Data transfer method and apparatus
TW201541337A (en) Method, device and system for displaying messages in mobile terminal
WO2014166266A1 (en) File scanning method and system, client and server
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN109660445B (en) Message processing method, device and storage medium
CN104244448B (en) Reduce the method and system of data transmission delay
CN104346128B (en) The execution method and apparatus of sound event
CN109062643A (en) A kind of display interface method of adjustment, device and terminal
CN106454953B (en) Flow control method, device and terminal
CN106445841B (en) A kind of data transfer control method and device
CN105159655B (en) Behavior event playing method and device
CN103079047B (en) A kind of method of parameter adjustment and terminal
CN108924357A (en) A kind of method, apparatus and terminal that adjustment terminal desktop is shown
CN108269223B (en) Webpage graph drawing method and terminal

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant