CN105550034A - DDR control method and mobile terminal - Google Patents

DDR control method and mobile terminal Download PDF

Info

Publication number
CN105550034A
CN105550034A CN201510837559.4A CN201510837559A CN105550034A CN 105550034 A CN105550034 A CN 105550034A CN 201510837559 A CN201510837559 A CN 201510837559A CN 105550034 A CN105550034 A CN 105550034A
Authority
CN
China
Prior art keywords
ddr
mobile terminal
application program
auxiliary
data buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510837559.4A
Other languages
Chinese (zh)
Inventor
朱先鹏
向杨
刘铁峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Coolpad Software Technology Co Ltd
Original Assignee
Dongguan Coolpad Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Coolpad Software Technology Co Ltd filed Critical Dongguan Coolpad Software Technology Co Ltd
Priority to CN201510837559.4A priority Critical patent/CN105550034A/en
Publication of CN105550034A publication Critical patent/CN105550034A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention relates to the technical field of electronics, and discloses a DDR (Double Data Rate SDRAM) control method and a mobile terminal. The mobile terminal comprises a main DDR and an auxiliary DDR. The method comprises the following steps that: when detecting that one application program runs currently, the mobile terminal determines the application type of the application program and further judges whether the application type is a preset application type, if so, the mobile terminal starts the DDR, and caches data, generated when the application program runs, to the auxiliary DDR. In the embodiment of the invention, the mobile terminal is provided with two DDRs, the mobile terminal starts the auxiliary DDR only when the currently running application program belongs to video entertainment type applications, thus, fluency of the mobile terminal when running such type of application programs can be guaranteed, and user experience is improved.

Description

A kind of DDR control method and mobile terminal
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of Double Data Rate synchronous DRAM (DoubleDataRateSDRAM is called for short DDR) control method and mobile terminal.
Background technology
In electronic technology field, DDR is used for depositing the data produced in the operational process such as system, application program as the mobile terminal such as smart mobile phone, panel computer temporarily.In the actual moving process of mobile terminal, in order to prevent loss of data, each storage unit of DDR can periodically refresh (by regularly carrying out charging complete refreshing to the electric capacity of each storage unit of DDR), and DDR is once power down, and the data of preservation will full scale clearance.
The DDR capacity of existing mobile terminal is fixing, what produce when some application program (as game class or video class application program) is run is data cached more, if the capacity of DDR is less, so mobile terminal just may block because of DDR off-capacity time.
Summary of the invention
The embodiment of the invention discloses a kind of DDR control method and mobile terminal, the problem occurring that due to DDR off-capacity card pauses can be solved in prior art.
The embodiment of the invention discloses a kind of DDR control method, be applied to mobile terminal, described mobile terminal comprises main DDR and auxiliary DDR, and described main DDR is used for the data produced when mobile terminal operating system runs described in buffer memory, wherein:
Determine the application type of the application program of current operation;
Judge whether described application type is default application type;
When described application type is described default application type, start described auxiliary DDR, and the data buffer storage produced when described application program being run is to described auxiliary DDR.
As a kind of feasible embodiment, described method also comprises:
When described application type is not described default application type, obtain first residual capacity of described main DDR, and obtain the maximum data buffer memory produced when pre-recorded described application program is run;
Judge whether described first residual capacity is greater than described maximum data buffer memory;
When described first residual capacity is greater than described maximum data buffer memory, control described auxiliary DDR and keep closed condition, and the data buffer storage produced when described application program being run is to described main DDR.
As the embodiment that another kind is feasible, described method also comprises:
When described first residual capacity is less than or equal to described maximum data buffer memory, start described auxiliary DDR, and the data buffer storage produced when described application program being run is to described auxiliary DDR.
As the embodiment that another is feasible, described method also comprises:
When described first residual capacity is less than or equal to described maximum data buffer memory, the data buffer storage produced when described application program being run to described main DDR, and detects second residual capacity of described main DDR;
When described second residual capacity is less than preset capacity threshold value, start described auxiliary DDR, and described application program is run the data buffer storage of stylish generation to described auxiliary DDR.
As the embodiment that another is feasible, described method also comprises:
Detect described application program whether to terminate to run, if terminate, then close described auxiliary DDR.
Accordingly, the embodiment of the invention discloses a kind of mobile terminal, described mobile terminal comprises main DDR and auxiliary DDR, and described main DDR is used for the data produced when mobile terminal operating system runs described in buffer memory, and described mobile terminal also comprises:
Determining unit, for determining the application type of the application program of current operation;
Judging unit, for judging whether described application type is default application type;
Processing unit, for when described judging unit judges that described application type is described default application type, starts described auxiliary DDR, and the data buffer storage produced when described application program being run is to described auxiliary DDR.
As a kind of feasible embodiment, described mobile terminal also comprises:
Acquiring unit, during for judging described application type at described judging unit not for described default application type, obtains first residual capacity of described main DDR, and obtains the maximum data buffer memory produced when pre-recorded described application program is run;
Described judging unit, also for judging whether described first residual capacity is greater than described maximum data buffer memory;
Control module, during for judging that described first residual capacity is greater than described maximum data buffer memory at described judging unit, controlling described auxiliary DDR and keeping closed condition;
Buffer unit, time also for judging that described first residual capacity is greater than described maximum data buffer memory at described judging unit, the data buffer storage produced when described application program being run is to described main DDR.
As the embodiment that another kind is feasible, described processing unit, time also for judging that described first residual capacity is less than or equal to described maximum data buffer memory at described judging unit, start described auxiliary DDR, and the data buffer storage produced when described application program being run is to described auxiliary DDR.
As the embodiment that another is feasible, described buffer unit, time also for judging that described first residual capacity is less than or equal to described maximum data buffer memory at described judging unit, the data buffer storage produced when described application program being run is to described main DDR;
Described mobile terminal also comprises:
First detecting unit, for detecting second residual capacity of described main DDR;
Described processing unit, also for when described second residual capacity is less than preset capacity threshold value, starts described auxiliary DDR, and described application program is run the data buffer storage of stylish generation to described auxiliary DDR.
As the embodiment that another is feasible, described mobile terminal also comprises:
Whether the second detecting unit, terminate to run for detecting described application program;
Closing unit, during for detecting that at described second detecting unit described application program terminates to run, closes described auxiliary DDR.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, mobile terminal comprises main DDR and auxiliary DDR, when detecting that current operation has a certain application program, mobile terminal can determine the application type of this application program, and judge whether this application type is default application type, if so, just start auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR.By in the embodiment of the present invention, mobile terminal is provided with two DDR, if the application program of current operation belongs to the application of audio-visual amusement class, mobile terminal just can start auxiliary DDR, the fluency of mobile terminal when running this kind of application program can being ensured like this, promoting Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of DDR control method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of DDR control method disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of mobile terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of mobile terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the embodiment of the present invention another mobile terminal disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of DDR control method and mobile terminal, the fluency of mobile terminal when running the application of preset kind can being ensured.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of DDR control method disclosed in the embodiment of the present invention.Wherein, method shown in Fig. 1 can be applied to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palm PC, personal digital assistant (PersonalDigitalAssistant, PDA), the mobile terminal such as mobile internet device (MobileInternetDevice, MID) and Intelligent worn device.As shown in Figure 1, this DDR control method can comprise the following steps:
S101, mobile terminal determine the application type of the application program of current operation.
In the embodiment of the present invention, DDR is writing a Chinese character in simplified form of DDRSDRAM, is DoubleDataRateSynchronousDynamicRandomAccessMemory, Double Data Rate synchronous DRAM.Mobile terminal includes main DDR and auxiliary DDR, and wherein the quantity of auxiliary DDR can be one, and also can be multiple, the embodiment of the present invention mainly carries out expansion explanation with the mobile terminal comprising an auxiliary DDR.In the mobile terminal comprising main DDR and auxiliary DDR, main DDR is mainly used in the data produced when buffer memory mobile terminal operating system runs, and therefore, main DDR will start when mobile terminal is opened, and under normal circumstances, auxiliary DDR acquiescence is in closed condition.It should be noted that, the capacity of main DDR can be less than the capacity of auxiliary DDR, also can be greater than the capacity of auxiliary DDR, can also be equal with the capacity of auxiliary DDR, and the embodiment of the present invention does not limit.
In the embodiment of the present invention, when user opens a certain application program, mobile terminal will determine the application type of this application program.Wherein, application type can beautify class including but not limited to audio-visual amusement class, working and studying class, convenient life kind, trip navigation type, social communication class, utility class and shooting.
Optionally, mobile terminal can be the application type needing to determine this application program when running each application program, also can be that just determine the application type of this application program, the embodiment of the present invention does not limit only when running the application program of non-OS type.Wherein, the application program that the operating system that the application program of OS Type refers to mobile terminal carries, as the application program that the users such as clock, counter, mirror, calendar and p.m.entry can not manually unload, so non-OS type application program and be user downloads and installs from internet except this kind of application application.
S102, mobile terminal judge whether this application type is default application type, if so, perform step S103; If not, process ends.
In the embodiment of the present invention, mobile terminal, after determining the application type of this application program, can judge whether this application type is default application type further.This default application type can be user-defined, and also can be that mobile terminal is arranged, the embodiment of the present invention limit.
Wherein, this default application type can for needing jumbo DDR to carry out the application of data buffer storage when audio-visual amusement class etc. is run, and the application of audio-visual amusement class can comprise game class application, the application of video playback class, the application of music class, the embodiment of the present invention does not limit.
Therefore, when judging the application type of this application program for presetting application type, under the state that mobile terminal will be opened at main DDR, auxiliary DDR is started.And when judging the application type of this application program not for presetting application type, the data buffer storage produced when this application program can directly be run by mobile terminal is to main DDR.
S103, mobile terminal start auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR, and process ends.
In the embodiment of the present invention, when judging the application type of this application program for presetting application type, mobile terminal can start auxiliary DDR, and the data buffer storage produced when then this application program being run is to this auxiliary DDR.
In specific implementation, the concrete mode that mobile terminal starts auxiliary DDR can be: provide electric energy to auxiliary DDR, namely starts each storage unit in auxiliary DDR and refreshes, thus make auxiliary DDR in running order.
Optionally, whether mobile terminal when judging the application type of this application program for presetting application type, can also be connected with mobile network, and using this mobile network when determining that this application program is run further.If so, auxiliary DDR is just started; And if not, then the data buffer storage produced when can directly this application program be run to main DDR, and does not start auxiliary DDR.Such as, when mobile terminal detects that user is using a certain application program to watch video online, the data volume of the buffer memory that so may need is comparatively large, therefore, mobile terminal just can directly start auxiliary DDR, thus by the video data buffer memory of this application program to auxiliary DDR.And for example, when mobile terminal detects the music that user using a certain application program to play in local folders, so auxiliary DDR would not be started.
For example, when user plays mobile phone network game on mobile phone, mobile phone just can determine that the application type of the current application program used is audio-visual amusement class, so just can while providing electric energy to main DDR, there is provided electric energy also to auxiliary DDR, make auxiliary DDR in running order, so mobile terminal is when running this application program, in the data buffer storage that just this application program can be produced to auxiliary DDR.
Visible, in the method described by Fig. 1, mobile terminal comprises main DDR and auxiliary DDR, when detecting that current operation has a certain application program, mobile terminal can determine the application type of this application program, and judges whether this application type is default application type, if, just start auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR.By in the embodiment of the present invention, mobile terminal is provided with two DDR, if the application program of current operation belongs to the application of audio-visual amusement class, mobile terminal just can start auxiliary DDR, the fluency of mobile terminal when running this kind of application program can being ensured like this, promoting Consumer's Experience.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of DDR control method disclosed in the embodiment of the present invention.Wherein, the method shown in Fig. 2 can be applied to the mobile terminal such as smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palm PC, personal digital assistant, mobile internet device and Intelligent worn device.As shown in Figure 2, this DDR control method can comprise the following steps:
S201, mobile terminal determine the application type of the application program of current operation.
S202, mobile terminal judge whether this application type is default application type, if so, perform step S203; If not, step S204 ~ step S208 is performed.
In the embodiment of the present invention, when judging the application type of this application program for presetting application type, under the state that mobile terminal will be opened at main DDR, start auxiliary DDR.And when judging the application type of this application program not for presetting application type, mobile terminal can obtain first residual capacity of main DDR.
S203, mobile terminal start auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR.
First residual capacity of the main DDR of S204, acquisition for mobile terminal, and obtain the maximum data buffer memory produced when this pre-recorded application program is run.
In the embodiment of the present invention, for each application program, mobile terminal can be recorded in the historical data buffer memory of this application program when each run in preset time period, also can be recorded in the historical data buffer memory of this application program when each run in default number of run.Wherein, this preset time period can be one week, also can be several days, and to preset number of run can be 10 times, and also can be 5 inferior, the embodiment of the present invention limit.This first residual capacity is mobile terminal and is just starting this application program, and when judging the application type of this application program not for presetting application type, the residual capacity that main DDR is current.
For example, when mobile terminal is provided with application A, application program B and application program C, mobile terminal can be recorded within one week, the data volume produced when application A, application program B and application program C each run, and mobile terminal can upgrade data volume during each application program each run every day.
Therefore, mobile terminal is while the first residual capacity obtaining main DDR, can also from the data buffer storage amount of each pre-recorded application program, obtain the maximum data buffer memory of this application program, so that before the data buffer storage produced when this application program being run to main DDR, judge whether the residual capacity of main DDR meets maximum capacity demand when this application program is run.
Optionally, mobile terminal can not also determine whether starting auxiliary DDR according to the application type of the application program of current operation, and directly decides unlatching or the closedown of auxiliary DDR according to the residual capacity of main DDR.That is, if the data volume of buffer memory is more in main DDR, so just start auxiliary DDR, if and the data volume of buffer memory is few in main DDR, so still, continue to use main DDR to carry out data buffer storage, and auxiliary DDR keeps closed condition, in time the DDR capacity of mobile terminal can be expanded when main DDR capacity is inadequate like this, also can reduce the power consumption of DDR when capacity abundance.
S205, mobile terminal judge whether this first residual capacity is greater than this maximum data buffer memory, if so, perform step S206; If not, step S203 is performed.
In the embodiment of the present invention, mobile terminal is getting first residual capacity of main DDR, and after maximum data buffer memory when pre-recorded this application program is run, can compare this first residual capacity and this maximum data buffer memory further.If this first residual capacity is greater than this maximum data buffer memory, the data buffer storage produced when so this application program will be run by mobile terminal is to main DDR; And if this first residual capacity is less than or equal to this maximum data buffer memory, so mobile terminal just can start auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR.
As a kind of feasible embodiment, when mobile terminal judges that this first residual capacity is less than or equal to this maximum data buffer memory, mobile terminal can also perform following steps:
Step 11) data buffer storage that produces when this application program being run of mobile terminal to main DDR, and detects second residual capacity of this main DDR;
Step 12) when this second residual capacity is less than preset capacity threshold value, start auxiliary DDR, and this application program is run the data buffer storage of stylish generation to auxiliary DDR.
In specific implementation, mobile terminal is when judging that first residual capacity of main DDR is less than or equal to the maximum data buffer memory of this application program, the data buffer storage produced when this application program can also first be run by mobile terminal is to main DDR, then in this application program operational process, the residual capacity of this main DDR of real-time detection, i.e. the second residual capacity, and judge whether this second residual capacity is less than preset capacity threshold value, if be less than, just start and power to auxiliary DDR, and the data buffer storage this application program being run stylish generation is to auxiliary DDR.
It should be noted that, this preset capacity threshold value can be a less capability value, and can be also 0, the embodiment of the present invention limit.When preset capacity threshold value is a less capability value, be understandable that, mobile terminal is carrying out starting in the process of auxiliary DDR, can ensure that the residual capacity of main DDR can meet the demand of the data buffer storage amount of this application program in auxiliary DDR section start-up time.
Be understandable that, mobile terminal is after the auxiliary DDR of startup, the data buffer storage this application program being run stylish generation can be understood as to auxiliary DDR: mobile terminal be the data buffer storage that will produce when this application program is run after auxiliary DDR starts to auxiliary DDR, and the data that auxiliary DDR produces before starting still are buffered in main DDR.Can just start auxiliary DDR when the capacity of main DDR is inadequate in this way, the power consumption of DDR can be reduced so to a certain extent.
S206, mobile terminal control auxiliary DDR and keep closed condition, and the data buffer storage produced when this application program being run is to main DDR.
In the embodiment of the present invention, when judging that the first residual capacity is greater than the maximum data buffer memory of this application program, mobile terminal can control auxiliary DDR and keep closed condition, and the data buffer storage produced when this application program being run is to main DDR.When the capacity of main DDR is enough, only can starts main DDR, the power consumption of DDR in mobile terminal can be reduced like this.
As a kind of feasible embodiment, no matter be the auxiliary DDR that default application type starts at the application type of the application program judging current operation, or judge current operation application program application type for preset application type, but first residual capacity of this main DDR is less than the maximum data buffer memory of this pre-recorded application program and the auxiliary DDR started, or judge current operation application program application type for preset application type, but first residual capacity of this main DDR is less than the maximum data buffer memory of this pre-recorded application program, and the auxiliary DDR started when second residual capacity of main DDR is less than preset capacity threshold value, mobile terminal is after starting auxiliary DDR, following operation can also be performed:
Step 21) mobile terminal detect this application program whether terminate run;
Step 22) when detecting that this application program terminates to run, mobile terminal closes auxiliary DDR.
In specific implementation, whether this application program that detects mobile terminal terminates to run, and can be at the auxiliary DDR of startup, and the data buffer storage produced when this application program being run performs to auxiliary DDR, as long as detect that this application program terminates to run, this mobile terminal just can close auxiliary DDR.Concrete, the mode that mobile terminal closes auxiliary DDR is and stops providing electric energy to auxiliary DDR.Mobile terminal is after the auxiliary DDR of closedown, and in auxiliary DDR, the various data of buffer memory all can be cleared.
It should be noted that, mobile terminal just closes auxiliary DDR when detecting that this application program terminates operation, when the capacity of winner DDR can be enable like this to meet the schedule operation demand of mobile terminal, remain that auxiliary DDR is in closed condition, greatly reduce the power consumption of mobile terminal DDR.
Visible, in the method described by Fig. 2, mobile terminal presets the application program of application type running, or when the current residual capacity of main DDR can not meet the data buffer storage demand of the application program of current operation, start auxiliary DDR, and auxiliary DDR is closed when the residual capacity that main DDR is current can meet the data buffer storage demand of the application program of current operation, capacity extensions can be carried out neatly like this to the DDR of mobile terminal, ensure fluency during running of mobile terminal, the power consumption of DDR can also be reduced in the ordinary course of things, thus promote Consumer's Experience.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of mobile terminal disclosed in the embodiment of the present invention.Wherein, the mobile terminal 300 shown in Fig. 3 can include but not limited to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palm PC, personal digital assistant, mobile internet device and Intelligent worn device etc.As shown in Figure 3, this mobile terminal 300 can comprise with lower unit:
Determining unit 301, for determining the application type of the application program of the current operation of mobile terminal 300.
In the embodiment of the present invention, mobile terminal 300 includes main DDR and auxiliary DDR, and wherein the quantity of auxiliary DDR can be one, and also can be multiple, the embodiment of the present invention mainly carries out expansion explanation with the mobile terminal comprising an auxiliary DDR.In the mobile terminal 300 comprising main DDR and auxiliary DDR, the data that main DDR produces when being mainly used in buffer memory mobile terminal 300 operating system, therefore, main DDR will start when mobile terminal 300 is opened, and under normal circumstances, auxiliary DDR acquiescence is in closed condition.It should be noted that, the capacity of main DDR can be less than the capacity of auxiliary DDR, also can be greater than the capacity of auxiliary DDR, can also be equal with the capacity of auxiliary DDR, and the embodiment of the present invention does not limit.
In the embodiment of the present invention, when user opens a certain application program, determining unit 301 will determine the application type of this application program.Wherein, application type can beautify class including but not limited to audio-visual amusement class, working and studying class, convenient life kind, trip navigation type, social communication class, utility class and shooting.
Optionally, determining unit 301 can be the application type needing to determine this application program when running each application program, also can be that just determine the application type of this application program, the embodiment of the present invention does not limit only when running the application program of non-OS type.Wherein, the application program that the operating system that the application program of OS Type refers to mobile terminal 300 carries, as the application program that the users such as clock, counter, mirror, calendar and p.m.entry can not manually unload, so non-OS type application program and be user downloads and installs from internet except this kind of application application.
Judging unit 302, for judging whether this application type is default application type.
In the embodiment of the present invention, determining unit 301 is after determining the application type of this application program, and judging unit 302 can judge whether this application type is default application type further.This default application type can be user-defined, and also can be that mobile terminal 300 is arranged, the embodiment of the present invention limit.
Wherein, this default application type can for needing jumbo DDR to carry out the application of data buffer storage when audio-visual amusement class etc. is run, and the application of audio-visual amusement class can comprise game class application, the application of video playback class, the application of music class, the embodiment of the present invention does not limit.
Therefore, when judging the application type of this application program for presetting application type, under the state that processing unit 303 will be opened at main DDR, auxiliary DDR is started.And when judging the application type of this application program not for presetting application type, the data buffer storage produced when this application program can directly be run by mobile terminal 300 is to main DDR.
Processing unit 303, during for judging this application type at above-mentioned judging unit 302 for presetting application type, starts auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR.
In specific implementation, the concrete mode that processing unit 303 starts auxiliary DDR can be: provide electric energy to auxiliary DDR, namely starts each storage unit in auxiliary DDR and refreshes, thus make auxiliary DDR in running order.
Optionally, whether mobile terminal 300 when judging unit 302 judging the application type of this application program for presetting application type, can also be connected with mobile network, and using this mobile network when determining that this application program is run further.If so, processing unit 303 just starts auxiliary DDR; And if not, then the data buffer storage produced when can directly this application program be run to main DDR, and does not start auxiliary DDR.
Please Parameter Map 4, Fig. 4 is the structural representation of another kind of mobile terminal disclosed in the embodiment of the present invention in the lump.Wherein, the mobile terminal 300 shown in Fig. 4 optimizes to obtain on the basis of the mobile terminal 300 shown in Fig. 3.As shown in Figure 4, this mobile terminal 300 can also comprise:
Acquiring unit 304, during for judging this application type at above-mentioned judging unit 302 not for presetting application type, obtains first residual capacity of main DDR, and obtains the maximum data buffer memory produced when this pre-recorded application program is run.
Above-mentioned judging unit 302, also for judging whether this first residual capacity is greater than this maximum data buffer memory.
Control module 305, for when above-mentioned judging unit 302 judges that this first residual capacity is greater than this maximum data buffer memory, controls auxiliary DDR and keeps closed condition.
Buffer unit 306, for when above-mentioned judging unit 302 judges that this first residual capacity is greater than this maximum data buffer memory, the data buffer storage produced when this application program being run is to main DDR.
As a kind of feasible embodiment, above-mentioned processing unit 303, also for when above-mentioned judging unit 302 judges that this first residual capacity is less than or equal to this maximum data buffer memory, start auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR.
As the embodiment that another kind is feasible, above-mentioned buffer unit 306, also for when upper judging unit 302 judges that this first residual capacity is less than or equal to this maximum data buffer memory, the data buffer storage produced when this application program being run is to main DDR.
This mobile terminal 300 can also comprise:
First detecting unit 307, for the data buffer storage that produces when this application program is run by above-mentioned buffer unit 306 to after main DDR, detects second residual capacity of main DDR.
So above-mentioned processing unit 303, also for after above-mentioned first detecting unit 307 detects second residual capacity of main DDR, when this second residual capacity is less than preset capacity threshold value, start auxiliary DDR, and this application program is run the data buffer storage of stylish generation to auxiliary DDR.
As the embodiment that another is feasible, this mobile terminal 300 can also comprise:
Second detecting unit 308, whether for starting auxiliary DDR at processing unit 303, and the data buffer storage of the data produced when this application program being run or new generation is to auxiliary DDR, detect this application program and terminate to run.
Closing unit 309, during for detecting that at above-mentioned second detecting unit 308 this application program terminates to run, closes auxiliary DDR.
It should be noted that, second detecting unit 308 is when detecting that this application program terminates to run, closing unit 309 just closes auxiliary DDR, when the capacity of winner DDR can be enable like this to meet the schedule operation demand of mobile terminal 300, remain that auxiliary DDR is in closed condition, greatly reduce the power consumption of mobile terminal DDR.
Visible, in the mobile terminal described by Fig. 3 and Fig. 4, mobile terminal comprises main DDR and auxiliary DDR, mobile terminal presets the application program of application type running, or when the current residual capacity of main DDR can not meet the data buffer storage demand of the application program of current operation, start auxiliary DDR, and auxiliary DDR is closed when the residual capacity that main DDR is current can meet the data buffer storage demand of the application program of current operation, capacity extensions can be carried out neatly like this to the DDR of mobile terminal, ensure fluency during running of mobile terminal, the power consumption of DDR can also be reduced in the ordinary course of things, thus lifting Consumer's Experience.
Refer to Fig. 5, Fig. 5 is the structural representation of the embodiment of the present invention another mobile terminal disclosed.Wherein, the mobile terminal 500 shown in Fig. 5 can include but not limited to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palm PC, personal digital assistant, mobile internet device and Intelligent worn device etc.This mobile terminal 500 can comprise main DDR and auxiliary DDR, and wherein, the quantity of auxiliary DDR can be one, also can be multiple.This mobile terminal 500 can comprise at least one processor 501, as CPU, communication interface 502, storer 503 and at least one communication bus 504, storer 503 can be high-speed RAM storer, also can be nonvolatile memory (non-volatilememory), as at least one magnetic disk memory, optionally, storer 503 can also be that at least one is positioned at the memory storage away from aforementioned processor 501.Wherein:
Communication bus 504 is for realizing the connection communication between these assemblies such as processor 501, communication interface 502 and storer 503.
Communication interface 502 is for receiving the data of external unit transmission or the instruction according to processor 501, and external device sends data.
Store batch processing code in storer 503, and processor 501 is for calling the program code stored in storer 503, performs following operation:
Determine the application type of the application program of the current operation of mobile terminal 500;
Judge whether this application type is default application type;
When judging this application type for presetting application type, start auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR.
In the embodiment of the present invention, the data produced when main DDR is mainly used in buffer memory mobile terminal 500 operating system, therefore, main DDR will start when mobile terminal 500 is opened, and under normal circumstances, auxiliary DDR acquiescence is in closed condition.It should be noted that, the capacity of main DDR can be less than the capacity of auxiliary DDR, also can be greater than the capacity of auxiliary DDR, can also be equal with the capacity of auxiliary DDR, and the embodiment of the present invention does not limit.
In the embodiment of the present invention, when user opens a certain application program, processor 501 will determine the application type of this application program.Wherein, application type can beautify class including but not limited to audio-visual amusement class, working and studying class, convenient life kind, trip navigation type, social communication class, utility class and shooting.
Optionally, processor 501 can be the application type needing to determine this application program when running each application program, also can be that just determine the application type of this application program, the embodiment of the present invention does not limit only when running the application program of non-OS type.Wherein, the application program that the operating system that the application program of OS Type refers to mobile terminal 500 carries, as the application program that the users such as clock, counter, mirror, calendar and p.m.entry can not manually unload, so non-OS type application program and be user downloads and installs from internet except this kind of application application.
Wherein, this default application type can for needing jumbo DDR to carry out the application of data buffer storage when audio-visual amusement class etc. is run, and the application of audio-visual amusement class can comprise game class application, the application of video playback class, the application of music class, the embodiment of the present invention does not limit.
As a kind of feasible embodiment, processor 501 can also be used for calling the program code stored in storer 503, performs following operation:
When judging this application type not for presetting application type, obtain first residual capacity of main DDR, and obtain the maximum data buffer memory produced when this pre-recorded application program is run;
Judge whether this first residual capacity is greater than this maximum data buffer memory;
When this first residual capacity is greater than this maximum data buffer memory, controls auxiliary DDR and keep closed condition, and the data buffer storage produced when this application program being run is to main DDR.
As the embodiment that another kind is feasible, processor 501 can also be used for calling the program code stored in storer 503, performs following operation:
When this first residual capacity is less than or equal to this maximum data buffer memory, start auxiliary DDR, and the data buffer storage produced when this application program being run is to auxiliary DDR.
As the embodiment that another is feasible, processor 501 can also be used for calling the program code stored in storer 503, performs following operation:
When this first residual capacity is less than or equal to this maximum data buffer memory, the data buffer storage produced when this application program being run to main DDR, and detects second residual capacity of main DDR;
When this second residual capacity is less than preset capacity threshold value, start auxiliary DDR, and this application program is run the data buffer storage of stylish generation to auxiliary DDR.
As the embodiment that another is feasible, processor 501 can also be used for calling the program code stored in storer 503, performs following operation:
Whether at the auxiliary DDR of startup, and the data buffer storage of the data produced when this application program being run or new generation is to auxiliary DDR, detect this application program and terminate to run, if terminated, just close auxiliary DDR.
It should be noted that, processor 501 just cuts out auxiliary DDR when detecting that this application program terminates operation, when the capacity of winner DDR can be enable like this to meet the schedule operation demand of mobile terminal 500, remain that auxiliary DDR is in closed condition, greatly reduce the power consumption of mobile terminal DDR.
Visible, in the mobile terminal described by Fig. 5, mobile terminal comprises main DDR and auxiliary DDR, mobile terminal presets the application program of application type running, or when the current residual capacity of main DDR can not meet the data buffer storage demand of the application program of current operation, start auxiliary DDR, and auxiliary DDR is closed when the residual capacity that main DDR is current can meet the data buffer storage demand of the application program of current operation, capacity extensions can be carried out neatly like this to the DDR of mobile terminal, ensure fluency during running of mobile terminal, the power consumption of DDR can also be reduced in the ordinary course of things, thus lifting Consumer's Experience.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Step in embodiment of the present invention DDR control method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention mobile terminal can carry out merging, divide and deleting according to actual needs.
Unit described in the embodiment of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, special IC).
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above a kind of DDR control method disclosed in the embodiment of the present invention and mobile terminal are described in detail, apply instantiation herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a Double Data Rate synchronous DRAM DDR control method, be applied to mobile terminal, it is characterized in that, described mobile terminal comprises main DDR and auxiliary DDR, described main DDR is used for the data produced when mobile terminal operating system runs described in buffer memory, wherein:
Determine the application type of the application program of current operation;
Judge whether described application type is default application type;
When described application type is described default application type, start described auxiliary DDR, and the data buffer storage produced when described application program being run is to described auxiliary DDR.
2. method according to claim 1, is characterized in that, described method also comprises:
When described application type is not described default application type, obtain first residual capacity of described main DDR, and obtain the maximum data buffer memory produced when pre-recorded described application program is run;
Judge whether described first residual capacity is greater than described maximum data buffer memory;
When described first residual capacity is greater than described maximum data buffer memory, control described auxiliary DDR and keep closed condition, and the data buffer storage produced when described application program being run is to described main DDR.
3. method according to claim 2, is characterized in that, described method also comprises:
When described first residual capacity is less than or equal to described maximum data buffer memory, start described auxiliary DDR, and the data buffer storage produced when described application program being run is to described auxiliary DDR.
4. method according to claim 2, is characterized in that, described method also comprises:
When described first residual capacity is less than or equal to described maximum data buffer memory, the data buffer storage produced when described application program being run to described main DDR, and detects second residual capacity of described main DDR;
When described second residual capacity is less than preset capacity threshold value, start described auxiliary DDR, and described application program is run the data buffer storage of stylish generation to described auxiliary DDR.
5. the method according to claim 1,3 or 4, is characterized in that, described method also comprises:
Detect described application program whether to terminate to run, if terminate, then close described auxiliary DDR.
6. a mobile terminal, is characterized in that, described mobile terminal comprises main DDR and auxiliary DDR, and described main DDR is used for the data produced when mobile terminal operating system runs described in buffer memory, and described mobile terminal also comprises:
Determining unit, for determining the application type of the application program of current operation;
Judging unit, for judging whether described application type is default application type;
Processing unit, for when described judging unit judges that described application type is described default application type, starts described auxiliary DDR, and the data buffer storage produced when described application program being run is to described auxiliary DDR.
7. mobile terminal according to claim 6, is characterized in that, described mobile terminal also comprises:
Acquiring unit, during for judging described application type at described judging unit not for described default application type, obtains first residual capacity of described main DDR, and obtains the maximum data buffer memory produced when pre-recorded described application program is run;
Described judging unit, also for judging whether described first residual capacity is greater than described maximum data buffer memory;
Control module, during for judging that described first residual capacity is greater than described maximum data buffer memory at described judging unit, controlling described auxiliary DDR and keeping closed condition;
Buffer unit, time also for judging that described first residual capacity is greater than described maximum data buffer memory at described judging unit, the data buffer storage produced when described application program being run is to described main DDR.
8. mobile terminal according to claim 7, is characterized in that,
Described processing unit, time also for judging that described first residual capacity is less than or equal to described maximum data buffer memory at described judging unit, starts described auxiliary DDR, and the data buffer storage produced when described application program being run is to described auxiliary DDR.
9. mobile terminal according to claim 7, is characterized in that,
Described buffer unit, time also for judging that described first residual capacity is less than or equal to described maximum data buffer memory at described judging unit, the data buffer storage produced when described application program being run is to described main DDR;
Described mobile terminal also comprises:
First detecting unit, for detecting second residual capacity of described main DDR;
Described processing unit, also for when described second residual capacity is less than preset capacity threshold value, starts described auxiliary DDR, and described application program is run the data buffer storage of stylish generation to described auxiliary DDR.
10. the mobile terminal according to claim 6,8 or 9, is characterized in that, described mobile terminal also comprises:
Whether the second detecting unit, terminate to run for detecting described application program;
Closing unit, during for detecting that at described second detecting unit described application program terminates to run, closes described auxiliary DDR.
CN201510837559.4A 2015-11-26 2015-11-26 DDR control method and mobile terminal Pending CN105550034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510837559.4A CN105550034A (en) 2015-11-26 2015-11-26 DDR control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510837559.4A CN105550034A (en) 2015-11-26 2015-11-26 DDR control method and mobile terminal

Publications (1)

Publication Number Publication Date
CN105550034A true CN105550034A (en) 2016-05-04

Family

ID=55829231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510837559.4A Pending CN105550034A (en) 2015-11-26 2015-11-26 DDR control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105550034A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140223134A1 (en) * 2013-02-01 2014-08-07 Tencent Technology (Shenzhen) Company Limited Method, apparatus and terminal for releasing memory
CN104460941A (en) * 2014-12-03 2015-03-25 上海新储集成电路有限公司 Method for reducing power consumption of main memory under full load operation
CN104808953A (en) * 2015-05-07 2015-07-29 广东欧珀移动通信有限公司 Device and method for controlling data storage and mobile terminal
CN104881259A (en) * 2015-06-29 2015-09-02 联想(北京)有限公司 Data processing method and device and storage device
US20150293701A1 (en) * 2014-04-09 2015-10-15 Samsung Electronics Co., Ltd. Execution method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140223134A1 (en) * 2013-02-01 2014-08-07 Tencent Technology (Shenzhen) Company Limited Method, apparatus and terminal for releasing memory
US20150293701A1 (en) * 2014-04-09 2015-10-15 Samsung Electronics Co., Ltd. Execution method and apparatus
CN104460941A (en) * 2014-12-03 2015-03-25 上海新储集成电路有限公司 Method for reducing power consumption of main memory under full load operation
CN104808953A (en) * 2015-05-07 2015-07-29 广东欧珀移动通信有限公司 Device and method for controlling data storage and mobile terminal
CN104881259A (en) * 2015-06-29 2015-09-02 联想(北京)有限公司 Data processing method and device and storage device

Similar Documents

Publication Publication Date Title
KR102490908B1 (en) Resource scheduling method and terminal device
CN104866069A (en) Method and device for automatically cleaning background application program
US20150188324A1 (en) Systems and methods to increase and decrease charging current to battery
CN105468416A (en) Application program clearing method and terminal
CN101770385B (en) Device based on Linux system and method thereof for starting application
CN104166453A (en) Method and device for reducing power consumption of mobile terminal
CN105094282A (en) Management method for application programs and terminal
CN110262847B (en) Application program starting acceleration method and device and machine-readable storage medium
TW200611191A (en) Mobile communication terminal and data access control method
CN103324508A (en) Method and device for application starting
CN104808767A (en) Terminal control method
CN104394675A (en) Terminal
CN105528171A (en) Method and system for quickly starting application of intelligent terminal, and intelligent terminal
CN109936197A (en) A kind of charging method, mobile power source and computer storage medium
CN104808766A (en) Terminal
CN104994547A (en) Network access method and user terminal
CN101996096A (en) Method for modifying data of operation system and electronic device with multiple operation systems
CN104808953A (en) Device and method for controlling data storage and mobile terminal
CN103543982A (en) Clock frequency management method and mobile device
CN105550034A (en) DDR control method and mobile terminal
EP2618259B1 (en) Data erasable method of memory in smart card and smart card thereof
CN105490319B (en) A kind of information processing method and electronic equipment
WO2016110011A1 (en) Terminal, power saving method thereof, storage medium
CN109765986A (en) Power-saving control method, terminal device and computer readable storage medium
CN104035790A (en) Information processing device, information processing method, and recording medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504