CN110347439A - Processor awakening method, device, terminal and storage medium - Google Patents
Processor awakening method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN110347439A CN110347439A CN201910662357.9A CN201910662357A CN110347439A CN 110347439 A CN110347439 A CN 110347439A CN 201910662357 A CN201910662357 A CN 201910662357A CN 110347439 A CN110347439 A CN 110347439A
- Authority
- CN
- China
- Prior art keywords
- display screen
- processor
- touch
- interrupt signal
- touch display
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3243—Power saving in microcontroller unit
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present application provides a kind of processor awakening method, device, terminal and storage medium.Whether this method is applied in the touch display screen of terminal, this method comprises: being changed when touch display screen is in the first scanning mode with the touch parameter value of first frequency monitoring touch display screen;When the touch parameter value for detecting touch display screen changes, the first interrupt signal is generated;The first interrupt signal is sent to the processor of terminal, the first interrupt signal switches to wake-up states by dormant state for triggering processor.Technical solution provided by the embodiments of the present application, processor in a dormant state is waken up in advance, subsequent touch interrupt signal arrive when, eliminate waiting for CPU from dormant state switch to wake-up states needed for the time, and then improve processor response touch operation efficiency.
Description
Technical field
The invention relates to field of terminal technology, in particular to a kind of processor awakening method, device, terminal and deposit
Storage media.
Background technique
Currently, user realizes the human-computer interaction with terminal by touch display screen, the physical button of terminal.
In the related technology, touch display screen is after detecting touch event, to central processing unit (Central
Processing Unit, CPU) touch interrupt signal is sent, the corresponding touch of touch event is carried in the touch interrupt signal
Data (such as touch coordinate, touch duration etc.).
Summary of the invention
The embodiment of the present application provides a kind of processor awakening method, device, terminal and storage medium.The technical solution packet
It includes:
On the one hand, the embodiment of the present application provides processor awakening method, and the method is applied to the touch display screen of terminal
In, which comprises
When the touch display screen is in the first scanning mode, the touch of the touch display screen is monitored with first frequency
Whether parameter value changes;
When the touch parameter value for monitoring the touch display screen changes, the first interrupt signal is generated;
First interrupt signal is sent to the processor of the terminal, first interrupt signal is for triggering the place
It manages device and wake-up states is switched to by dormant state.
On the one hand, the embodiment of the present application provides a kind of processor Rouser, and the touch that described device is applied to terminal is aobvious
In display screen, described device includes:
Parameter value monitoring modular, for being monitored with first frequency when the touch display screen is in the first scanning mode
Whether the touch parameter value of the touch display screen changes;
Signal generation module generates for when the touch parameter value for monitoring the touch display screen changes
One interrupt signal;
Signal transmitting module, for sending first interrupt signal to the processor of the terminal, described first is interrupted
Signal switches to wake-up states by dormant state for triggering the processor.
Another aspect, the embodiment of the present application provide a kind of terminal, and the terminal includes processor and memory, the storage
Device is stored with computer program, and the computer program is loaded by the processor and executed to realize above-mentioned processor wake-up side
Method.
In another aspect, the embodiment of the present application provides a kind of computer readable storage medium, which is characterized in that the computer
Computer program is stored in readable storage medium storing program for executing, the computer program is loaded by processor and executed to realize above-mentioned processing
Device awakening method.
Technical solution provided by the embodiments of the present application can be brought the following benefits:
By generating the first interrupt signal at once when touch display screen detects that touching parameter value changes, and to
Processor sends the first interrupt signal, and not waits until that touch display screen is sent to processor again after calculating touch coordinate and touch
Interrupt signal (namely the interrupt signal for carrying touch information) is touched, is called out so that processor in a dormant state can shift to an earlier date
Wake up, subsequent touch interrupt signal arrive when, eliminate waiting for CPU from dormant state switch to wake-up states needed for the time, into
And improve the efficiency of processor response touch operation.
Detailed description of the invention
Fig. 1 is the schematic diagram for the time shaft that the relevant technologies provide;
Fig. 2 is the schematic diagram for the time shaft that the application one embodiment provides;
Fig. 3 is the flow chart for the processor awakening method that the application one embodiment provides;
Fig. 4 is the flow chart for the processor awakening method that another embodiment of the application provides;
Fig. 5 is the flow chart for the processor awakening method that another embodiment of the application provides;
Fig. 6 is the flow chart for the processor awakening method that another embodiment of the application provides;
Fig. 7 is the block diagram for the processor Rouser that the application one embodiment provides;
Fig. 8 is the block diagram for the terminal that the application one embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party
Formula is described in further detail.
CPU during idle time it is long reach certain threshold value after, dormant state can be entered.In the related technology, when CPU enters suspend mode shape
It after state, is interrupted if touch display screen sends to touch to CPU, CPU first switches to wake-up states from dormant state at this time, reprocesses
Above-mentioned touch is interrupted, which takes a long time.
In conjunction with reference Fig. 1, it illustrates the schematic diagrames for the time shaft that the relevant technologies are related to.
(1) at the t0 moment, touch display screen detects touch event;
(2) at the t1 moment, touch display screen calculates the corresponding touch coordinate of the touch event;
(3) at the t2 moment, touch display screen is sent to CPU touches interrupt signal, which carries to touch and sit
The touch datas such as mark and touch duration;
(4) at the t3 moment, CPU switches to wake-up states from dormant state;
(5) in t4 moment, the above-mentioned touch interrupt signal of CPU processing.
Technical solution provided by the embodiments of the present application, by detecting that touching parameter value (such as capacitance) changes
When, interrupt signal is sent to processor at once, without retransmiting interrupt signal after touch display screen calculates touch signal,
So that the time advance that processor is waken up, when subsequent touch interrupt signal arrives, eliminates waiting for CPU and switches from dormant state
Time needed for wake-up states, and then improve the efficiency of processor response touch operation.
In conjunction with reference Fig. 2, it illustrates the schematic diagrames for the time shaft that the application one embodiment is related to.
(1) at the t0 moment, touch display screen detects that touching parameter value changes;
(2) at the t1 moment, touch display screen sends aerial break signal to CPU, which does not carry effective information;
(3) at the t2 moment, CPU switches to wake-up states from dormant state;
It should be noted that the embodiment of the present application is not construed as limiting the opportunity for calculating touch coordinate, it can be at the t1 moment
Any time between the t2 moment.Illustratively, the embodiment of the present application only calculates touch at the t1 moment with touch display screen and sits
It is designated as example to be explained, namely sends aerial break signal and calculate touch coordinate parallel processing;
(4) at the t3 moment, CPU processing touches interrupt signal.
Referring to FIG. 3, it illustrates the flow charts of processor awakening method provided by the embodiments of the present application.This method application
In the touch display screen of terminal, this method comprises the following steps (step 301~303).
Step 301, when touch display screen is in the first scanning mode, with the touch of first frequency monitoring touch display screen
Whether parameter value changes.
First scanning mode is also referred to as idle state (low power consumpting state).When touching is not detected in touch display screen in preset duration
When touching parameter value and changing, into the first scanning mode.When touch display screen is in the first scanning mode, swept with first frequency
Whether the touch parameter value for retouching touch display screen changes, and first frequency is usually smaller, can to avoid touch display screen with
Family does not have touch whether parameter value is changed happens when operational requirements with upper frequency scanning, saves power consumption of terminal.
First frequency can be set by touch display screen or processor, and the embodiment of the present application is not construed as limiting this.
Touching parameter value can determine according to the type of touch display screen.When touch display screen is that Capacitive touch is shown
Screen, then touching parameter value is capacitance;When touch display screen is resistive touch display screen, touch parameter value is resistance value.
In the embodiment of the present application, it is only illustrated so that touch display screen is Capacitive touch display screen as an example, namely touches parameter value
For resistance value.
Step 302, when the touch parameter value for detecting touch display screen changes, the first interrupt signal is generated.
First interrupt signal switches to wake-up states by dormant state for triggering processor.In the embodiment of the present application,
Effective information (such as touch information) is not carried in first interrupt signal.Optionally, step 302 can implement are as follows: will touch
The value for touching the register of touch chip in display screen is assigned a value of preset value, obtains the first interrupt signal, and the first interrupt signal carries
Preset value.
Above-mentioned preset value can be preset by processor or touch display screen, and the embodiment of the present application is not construed as limiting this.
Illustratively.Preset value is Null (sky).Touch display screen usually exists two layers (being set as x layers and y layers), when touch display screen not
When being pressed, y layers of pin is high level, and when touch display screen has been pressed, x layers and y layers are contacted, and y layers due to connecing
Ground switches to low level from high level, generates interrupt signal at this time.In the embodiment of the present application, touch display screen is to touch chip
In register assignment be preset value, such that due to carry above-mentioned preset value in the interrupt signal for touching and generating, so
To the first interrupt signal.
Optionally, when touch display screen monitors that touching parameter value changes, touch display screen can also be switched
Whether change to the second scanning mode, and with the touch parameter value of second frequency monitoring touch display screen.
Second scanning mode is also referred to as active state (full speed operation state).When touch display screen detects in preset duration
When touch parameter value changes, into the second scanning mode.When touch display screen is in the second scanning mode, with second frequency
Whether the touch parameter value of scanning touch display screen changes, and second frequency is usually larger, can exist to avoid touch display screen
There are scan to touch existing terminal response touch behaviour when whether parameter value changes with lower frequency when operational requirements by user
Time larger problem needed for making, duration needed for reducing terminal response touch operation, promotes response efficiency.Second frequency can
To be not construed as limiting by touch display screen or processor setting, the embodiment of the present application to this.Second frequency is greater than first frequency.
Optionally, touch display screen can also interrupt in transmission first and believe when monitoring that touching parameter value changes
Number while, according to the information such as parameter value calculation touch coordinate are touched, so that touch information can be sent to processor in time.
Promote response efficiency.
Step 303, the first interrupt signal is sent to the processor of terminal.
When contacting there are object (such as finger) and touch display screen, touching parameter value can change.It is shown when touching
When screen detects that touching parameter value changes, the first interrupt signal is sent to processor at once, and not waits until to touch display
Shield to send to processor again after calculating touch coordinate and touches interrupt signal (namely the interrupt signal for carrying touch information), with
Processor in a dormant state is waken up in advance, subsequent touch interrupt signal arrive when, eliminate waiting for CPU from
Time needed for dormant state switches to wake-up states, and then improve the efficiency of processor response touch operation.
Optionally, touch display screen is sending the first interrupt signal, and after calculating the touch informations such as touch coordinate, to place
It manages device and sends touch interrupt signal, which carries touch coordinate, touches the touch informations such as duration.Processor is called out
After waking up, above-mentioned touch interrupt signal can be handled in time, and make a response to touch event.
In a specific example, in conjunction with reference Fig. 4, it illustrates the processors shown in the application one embodiment to call out
The flow chart for method of waking up.Touch display screen is in the first scanning mode, scans (also referred to as idle scanning) capacitance with lower frequency
Whether change, when touch display screen is detected from appearance variation, switches to the second scanning mode, (also referred to as with upper frequency
Active scanning) whether scanning capacitance value change, and sends aerial break signal to processor, preprocessor judge whether
In a dormant state, if processor in a dormant state, exits dormant state, and above-mentioned aerial break signal is handled, if processing
Device is not in dormant state, then directly handles above-mentioned dormant state.It should be noted that touch display screen is sending aerial disconnected letter
After number, touch coordinate is calculated according to capacitance variations value, after calculating touch coordinate, is sent to processor and carries touch coordinate
Interrupt signal.
In conclusion technical solution provided by the embodiments of the present application, by detecting touch parameter value in touch display screen
When changing, the first interrupt signal is generated at once, and send the first interrupt signal to processor, and not wait until to touch display
Shield to send to processor again after calculating touch coordinate and touches interrupt signal (namely the interrupt signal for carrying touch information), with
Processor in a dormant state is waken up in advance, subsequent touch interrupt signal arrive when, eliminate waiting for CPU from
Time needed for dormant state switches to wake-up states, and then improve the efficiency of processor response touch operation.
Referring to FIG. 5, it illustrates the flow chart of processor awakening method provided by the embodiments of the present application, this method application
In the touch display screen of terminal, this method comprises the following steps (step 501~step 505):
Step 501, when touch display screen is in the first scanning mode, with the touch of first frequency monitoring touch display screen
Whether parameter value changes.
Step 502, when the touch parameter value for monitoring touch display screen changes, the touch of touch display screen is detected
Whether parameter value variation amount is greater than first threshold.
Touching parameter value variation amount is the difference touched between parameter value touched before parameter value and variation after variation
Absolute value.First threshold can be set according to actual needs, and the embodiment of the present application is not construed as limiting this.
Due to other than user, when other objects (such as knapsack, pocket) and touch display screen contact, it is also possible to cause
The touch parameter value of touch display screen changes.When different objects and touch display screen contact, caused touch parameter value
Variable quantity is not identical.For example, it is usually larger to touch parameter variation value variable quantity when touch display screen and user's finger contacts;
For another example it is usually smaller to touch parameter value variation amount when the inanimates such as knapsack, pocket and touch display screen contact.
In the embodiment of the present application, touch display screen, can also be further when detecting the presence of touch parameter value variation
Detection touches whether parameter value variation amount is greater than first threshold.When touching parameter value variation amount more than or equal to first threshold,
Then think that touching parameter value variation is caused by user's finger is contacted with touch display screen, touch display screen executes subsequent step at this time
Rapid 503, alternatively, executing subsequent step 504.When touching parameter value variation amount less than first threshold, then it is assumed that touch parameter value
Variation is not caused by user's finger is contacted with touch display screen, and touch display screen does not execute subsequent step at this time, and terminates to flow
Journey.
By the above-mentioned means, part false triggering can be screened out, the case where touch display screen is by false triggering is avoided
Shift to an earlier date wake-up processor down, the process resource of terminal can be saved.
Step 503, whether detection touch display screen is less than to the nearest time interval that processor sends the second interrupt signal
Second threshold.
Second interrupt signal refers to the interrupt signal for carrying touch information, is usually to detect touching by touch display screen
Touch event, and get the corresponding touch data of the touch event it is rear to processor send.
Nearest time interval refer to touch display screen to processor last time send the second interrupt signal timestamp with
Interval between current time stamp.Illustratively, touch display screen to processor last time send the second interrupt signal when
Between stamp for 11 when 59 divide 23 seconds, 59 divide 56 seconds when current time stamp is 11, then nearest time interval is 33 seconds.
Free time length needed for second threshold can switch to dormant state as wake-up states according to processor is practical determining.
Optionally, second threshold that is to say free time length needed for processor switches to dormant state as wake-up states.In other possibility
Implementation in, processor is corresponding with different grades of dormant state, and free time is longer, then dormant state higher grade,
Time needed for waking up the dormant state is longer.At this point, second threshold can be the dormant state corresponding free time of any grade
Duration.If the high-grade corresponding free time length of dormant state can be determined as to the it is expected that terminal consumes the less energy
Two threshold values;If the corresponding free time length of the dormant state of inferior grade can be determined as it is expected that the response speed of terminal is faster
Second threshold.
When the timestamp that touch display screen sends the second interrupt signal to processor last time is closer apart from current time
When, since processor needs to handle second interrupt signal, then processor is in wake-up states certainly at this time, aerial without sending
Break signal carrys out wake-up processor.
In the embodiment of the present application, by comparing nearest time of the touch display screen to processor the second interrupt signal of transmission
The size relation at interval and second threshold, if nearest time interval is less than second threshold, it is determined that processor has been in wake-up
State, touch display screen does not execute the step of sending first terminal signal at this time, and terminates process, if nearest time interval is big
In or equal to second threshold, it is determined that processor is not in wake-up states, and touch display screen executes subsequent step 505 at this time.
By the above-mentioned means, can be to avoid still the first interrupt signal is sent in the case where processor is in wake-up states the case where
Occur, saves the process resource of terminal.
Step 504, the first interrupt signal is generated.
Step 505, the first interrupt signal is sent to the processor of terminal.
In conclusion technical solution provided by the embodiments of the present application, by detect the presence of touch parameter value variation when,
It can also further detect and touch whether parameter value variation amount is greater than first threshold.It is greater than or equal to when touching parameter value variation amount
When first threshold, then it is assumed that touching parameter value variation is to touch display at this time caused by user's finger is contacted with touch display screen
Screen executes subsequent step;When touching parameter value variation amount less than first threshold, then it is assumed that touching parameter value variation is not user
Caused by finger is contacted with touch display screen, touch display screen does not execute subsequent step at this time, and terminates process;It can be by part
False triggering screens out, and avoids touch display screen by wake-up processor in advance in the case where false triggering, can save terminal
Process resource.
Also by comparing nearest time interval and second threshold of the touch display screen to processor the second interrupt signal of transmission
Size relation, if nearest time interval is less than second threshold, it is determined that processor has been in wake-up states, touches at this time aobvious
Display screen does not execute the step of sending first terminal signal, and terminates process, if nearest time interval is greater than or equal to the second threshold
Value, it is determined that processor is not in wake-up states, and touch display screen executes subsequent step at this time;It can be in avoid in processor
Still the case where the first interrupt signal is sent under wake-up states generation, saves the process resource of terminal.
Referring to FIG. 6, it illustrates the flow chart of processor awakening method provided by the embodiments of the present application, this method application
In the touch display screen of terminal, this method comprises the following steps (step 601~step 605):
Step 601, when touch display screen is in the first scanning mode, with the touch of first frequency monitoring touch display screen
Whether parameter value changes.
Step 602, when the touch parameter value for detecting touch display screen changes, touch display screen is detected to processing
Whether the nearest time interval that device sends the second interrupt signal is less than second threshold.
In the embodiment of the present application, by comparing nearest time of the touch display screen to processor the second interrupt signal of transmission
The size relation at interval and second threshold, if nearest time interval is less than second threshold, it is determined that processor has been in wake-up
State, touch display screen does not execute the step of sending first terminal signal at this time, and terminates process, if nearest time interval is big
In or be equal to second threshold, it is determined that processor is not in wake-up states, at this time touch display screen execute subsequent step 603 or
604。
Step 603, whether the touch parameter value variation amount for detecting touch display screen is greater than first threshold.
In the embodiment of the present application, touch display screen, can also be further when detecting the presence of touch parameter value variation
Detection touches whether parameter value variation amount is greater than first threshold.When touching parameter value variation amount more than or equal to first threshold,
Then think that touching parameter value variation is caused by user's finger is contacted with touch display screen, touch display screen executes subsequent step at this time
Rapid 604.When touching parameter value variation amount less than first threshold, then it is assumed that touching parameter value variation is not user's finger and touches
Caused by display screen contacts, touch display screen does not execute subsequent step at this time, and terminates process.
Step 604, the first interrupt signal is generated.
Step 605, the first interrupt signal is sent to the processor of terminal.
Currently, terminal is usually that there are multiple processors in multi-core processor framework namely terminal, and make to touch operation
Responding out only needs a processor.Process to the processor for how determining in multiple processors response touch operation below
It is explained.
In an alternative embodiment based on Fig. 3, Fig. 5, embodiment illustrated in fig. 6 offer, in step 303 or step
505 or step 605 after, which further includes following steps:
Step 701, the response message of at least one processor return is received.
Response message is used to indicate processed first interrupt signal of processor.In the embodiment of the present application, touch display screen
The first interrupt signal is sent to each processor, each processor, can be to touch display screen after handling the first interrupt signal
Returning response information, touch display screen can determine that processor has been waken up according to the response message.
Step 702, the processor of earliest returning response information is determined as target processor.
In one possible implementation, terminal receives the response message that each processor returns, and records each place
The timestamp for managing device returning response information, above-mentioned timestamp is arranged in order, and timestamp ordering is true near preceding processor
It is set to the processor namely target processor of earliest returning response information.
In alternatively possible implementation, terminal, will after the processor for receiving first returning response information
The processor of the first returning response information is determined as the processor namely target processor of earliest returning response information.It needs
It is noted that this kind of implementation can shift to an earlier date the time that touch display screen sends third interrupt signal significantly, Jin Erti
The efficiency of high terminal response touch operation.
Step 703, third interrupt signal is sent to target processor.
Touch coordinate, the touching that touch display screen is calculated according to touch parameter value variation amount are carried in third interrupt signal
Touch the information such as duration.Target processor reads above-mentioned touch information after receiving third interrupt signal, and believes above-mentioned touch
Breath makes a response.
In conclusion technical solution provided by the embodiments of the present application, is corresponded to by will return at first in multiple processors
The processor of the response message of first interrupt signal is determined as target processor, and interrupts letter by target processor processing third
Number, the efficiency of terminal response touch operation can be improved.
Following is the application Installation practice, can be used for executing the application embodiment of the method.It is real for the application device
Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Referring to FIG. 7, the block diagram of the processor Rouser provided it illustrates the application one embodiment.The device is answered
For in the touch display screen of terminal, which can be by hardware reality with the realization exemplary function of the above method, the function
It is existing, corresponding software realization can also be executed by hardware.The apparatus may include: described device includes:
Parameter value monitoring modular 710, for being supervised with first frequency when the touch display screen is in the first scanning mode
Whether the touch parameter value for surveying the touch display screen changes.
Signal generation module 720, for generating when the touch parameter value for detecting the touch display screen changes
First interrupt signal.
Signal transmitting module 730, for sending first interrupt signal to the processor of the terminal, in described first
Break signal switches to wake-up states by dormant state for triggering the processor.
In conclusion technical solution provided by the embodiments of the present application, by detecting touch parameter value in touch display screen
When changing, the first interrupt signal is generated at once, and send the first interrupt signal to processor, and not wait until to touch display
Shield to send to processor again after calculating touch coordinate and touches interrupt signal (namely the interrupt signal for carrying touch information), with
Processor in a dormant state is waken up in advance, subsequent touch interrupt signal arrive when, eliminate waiting for CPU from
Time needed for dormant state switches to wake-up states, and then improve the efficiency of processor response touch operation.
In the alternative embodiment provided based on embodiment illustrated in fig. 7, the signal generation module 702, being used for will
The value of the register of touch chip is assigned a value of preset value in the touch display screen, obtains first interrupt signal, and described
One interrupt signal carries the preset value.
In the alternative embodiment provided based on embodiment illustrated in fig. 7, described device further include: first detection module
(Fig. 7 is not shown)
Whether first detection module, the touch parameter value variation amount for detecting the touch display screen are greater than the first threshold
Value.
The signal generation module 720, if the touch parameter value variation amount for the touch display screen is greater than or equal to
The first threshold, then the step of executing the first interrupt signal of the generation.
The signal generation module 720, if the touch parameter value variation amount for the touch display screen is less than described the
One threshold value, then the step of not executing the first interrupt signal of the generation.
Optionally, described device further include: the second detection module (Fig. 7 is not shown).
Second detection module, if the touch parameter value variation amount for the touch display screen is greater than or equal to described first
Threshold value detects the touch display screen to the processor and whether sends the nearest time interval of the second interrupt signal less than second
Threshold value.
The signal generation module 720 does not execute institute if being less than the second threshold for the nearest time interval
State the step of generating the first interrupt signal.
The signal generation module 720 is held if being greater than or equal to the second threshold for the nearest time interval
The step of row the first interrupt signal of the generation.
In the alternative embodiment provided based on embodiment illustrated in fig. 7,
Second detection module sends the second interrupt signal to the processor for detecting the touch display screen
Whether nearest time interval is less than second threshold.
The signal generation module 720 does not execute institute if being less than the second threshold for the nearest time interval
State the step of generating the first interrupt signal.
The signal generation module 720 is held if being greater than or equal to the second threshold for the nearest time interval
The step of row the first interrupt signal of the generation.
Optionally,
The first detection module detects if being greater than or equal to the second threshold for the nearest time interval
Whether the touch parameter value variation amount of the touch display screen is greater than first threshold.
The signal generation module 720, if the touch parameter value variation amount for the touch display screen is greater than or equal to
The first threshold, then the step of executing the first interrupt signal of the generation.
The signal generation module 720, if the touch parameter value variation amount for the touch display screen is less than described the
One threshold value, then the step of not executing the first interrupt signal of the generation.
In the alternative embodiment provided based on embodiment illustrated in fig. 7, described device further include: state switching module
(not shown).
State switching module will be described for when the touch parameter value for monitoring the touch display screen changes
Whether touch display screen switches to the second scanning mode, and sent out with the touch parameter value that second frequency monitors the touch display screen
Changing;Wherein, the second frequency is greater than the first frequency.
In the alternative embodiment provided based on embodiment illustrated in fig. 7, described device further include: information receiving module
With processor determining module.
Information receiving module, the response message returned for receiving at least one described processor, the response message are used
In instruction processed first interrupt signal of processor;
Processor determining module, for the processor for returning to the response message earliest to be determined as target processing
Device.
The signal transmitting module 730, for sending third interrupt signal to the target processor, the third is interrupted
Signal carries touch information.
It should be noted that device provided by the above embodiment is when realizing its function, only with above-mentioned each functional module
It divides and carries out for example, can according to need in practical application and be completed by different functional modules above-mentioned function distribution,
The internal structure of equipment is divided into different functional modules, to complete all or part of the functions described above.In addition,
Apparatus and method embodiment provided by the above embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, this
In repeat no more.
With reference to Fig. 8, it illustrates the structural block diagrams for the terminal that one exemplary embodiment of the application provides.The terminal can
To be such as smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer
III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio
Layer IV, dynamic image expert's compression standard audio level 4) player etc..
Terminal in the application may include one or more such as lower component: processor 810, memory 820 and touch are aobvious
Display screen.
Processor 810 may include one or more processing core.Processor 810 utilizes various interfaces and connection
Various pieces in entire terminal, by running or executing the instruction being stored in memory 820, program, code set or instruction
Collection, and the data being stored in memory 820 are called, execute the various functions and processing data of terminal.Optionally, processor
810 can use Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array
(Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic
Array, PLA) at least one of example, in hardware realize.Processor 810 can integrating central processor (Central
Processing Unit, CPU) and one or more of modem etc. combination.Wherein, the main processing operation system of CPU
System and application program etc.;Modem is for handling wireless communication.It is understood that above-mentioned modem can not also
It is integrated into processor 810, is realized separately through chip piece.
Optionally, above-mentioned each embodiment of the method mentions under realizing when processor 810 executes the program instruction in memory 820
The processor awakening method of confession.
Memory 820 may include random access memory (Random Access Memory, RAM), also may include read-only
Memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non-
transitory computer-readable storage medium).Memory 820 can be used for store instruction, program, generation
Code, code set or instruction set.Memory 820 may include storing program area and storage data area, wherein storing program area can store
Instruction for realizing operating system, the instruction at least one function, for realizing the finger of above-mentioned each embodiment of the method
Enable etc.;Storage data area, which can be stored, uses created data etc. according to terminal.
Touch display screen is for showing UI (User Interface, user interface).The UI may include figure, text,
Icon, video and its their any combination.When touch display screen is touch display screen, also there is touch display screen acquisition to exist
The ability of the touch signal on the surface or surface of touch display screen.The touch signal can be used as control signal and be input to place
Reason device 810 is handled.At this point, touch display screen can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button
And/or soft keyboard.In some embodiments, touch display screen can be one, and the front panel of terminal 800 is arranged;At other
In embodiment, touch display screen can be at least two, be separately positioned on the different surfaces of terminal 800 or in foldover design;?
In still other embodiments, touch display screen can be flexible display screen, be arranged on the curved surface of terminal 800 or fold plane
On.Even, touch display screen can also be arranged to non-rectangle irregular figure, namely abnormity screen.Touch display screen can adopt
With LCD (Liquid Crystal Display, liquid crystal display), (Organic Light-Emitting Diode, has OLED
Machine light emitting diode) etc. materials preparation.
The structure of above-mentioned terminal is only illustrative, and in actual implementation, terminal may include more or fewer components,
Such as: CCD camera assembly etc., the present embodiment is not construed as limiting this.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 800 of structure shown in Fig. 8, can wrap
It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
In the exemplary embodiment, a kind of computer readable storage medium, the computer-readable storage medium are additionally provided
Computer program is stored in matter, the computer program is loaded by the processor of terminal and executed to realize that the above method is implemented
Each step in example.
In the exemplary embodiment, a kind of computer program product is additionally provided, when the computer program product is performed
When, for realizing the function of each step in above method embodiment.
It should be understood that referenced herein " multiple " refer to two or more."and/or", description association
The incidence relation of object indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A
And B, individualism B these three situations.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
The foregoing is merely the exemplary embodiments of the application, all in spirit herein not to limit the application
Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.
Claims (11)
1. a kind of processor awakening method, which is characterized in that the method is applied in the touch display screen of terminal, the method
Include:
When the touch display screen is in the first scanning mode, the touch parameter of the touch display screen is monitored with first frequency
Whether value changes;
When the touch parameter value for monitoring the touch display screen changes, the first interrupt signal is generated;
First interrupt signal is sent to the processor of the terminal, first interrupt signal is for triggering the processor
Wake-up states are switched to by dormant state.
2. the method according to claim 1, wherein the first interrupt signal of the generation, comprising:
The value of the register of touch chip in the touch display screen is assigned a value of preset value, obtains first interrupt signal,
First interrupt signal carries the preset value.
3. the method according to claim 1, wherein before the first interrupt signal of the generation, further includes:
Whether the touch parameter value variation amount for detecting the touch display screen is greater than first threshold;
If the touch parameter value variation amount of the touch display screen is greater than or equal to the first threshold, executes and described generate the
The step of one interrupt signal;
If the touch parameter value variation amount of the touch display screen is less than the first threshold, described generate in first is not executed
The step of break signal.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the touch parameter value variation amount of the touch display screen is greater than or equal to the first threshold, the touch display is detected
Shield to whether the nearest time interval that the processor sends the second interrupt signal is less than second threshold, second interrupt signal
Carry touch information;
If the step of nearest time interval is less than the second threshold, does not execute the first interrupt signal of the generation;
If the nearest time interval is greater than or equal to the second threshold, the step for generating the first interrupt signal is executed
Suddenly.
5. the method according to claim 1, wherein before the first interrupt signal of the generation, further includes:
It detects the touch display screen and whether sends the nearest time interval of the second interrupt signal less than second to the processor
Threshold value;
If the step of nearest time interval is less than the second threshold, does not execute the first interrupt signal of the generation;
If the nearest time interval is greater than or equal to the second threshold, the step for generating the first interrupt signal is executed
Suddenly.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
If the nearest time interval is greater than or equal to the second threshold, the touch parameter value of the touch display screen is detected
Whether variable quantity is greater than first threshold;
If the touch parameter value variation amount of the touch display screen is greater than or equal to the first threshold, executes and described generate the
The step of one interrupt signal;
If the touch parameter value variation amount of the touch display screen is less than the first threshold, described generate in first is not executed
The step of break signal.
7. method according to any one of claims 1 to 6, which is characterized in that the method also includes:
When the touch parameter value for monitoring the touch display screen changes, the touch display screen is switched to second and is swept
State is retouched, and whether is changed with the touch parameter value that second frequency monitors the touch display screen;Wherein, second frequency
Rate is greater than the first frequency.
8. method according to any one of claims 1 to 6, which is characterized in that the processor be it is multiple, it is described to described
The processor of terminal is sent after first interrupt signal, further includes:
The response message that at least one described processor returns is received, it is processed that the response message is used to indicate the processor
First interrupt signal;
The processor for returning to the response message earliest is determined as target processor;
Third interrupt signal is sent to the target processor, the third interrupt signal carries touch information.
9. a kind of processor Rouser, which is characterized in that described device is applied in the touch display screen of terminal, described device
Include:
Parameter value monitoring modular, for when the touch display screen is in the first scanning mode, monitored with first frequency described in
Whether the touch parameter value of touch display screen changes;
Signal generation module, for generating in first when the touch parameter value for monitoring the touch display screen changes
Break signal;
Signal transmitting module, for sending first interrupt signal, first interrupt signal to the processor of the terminal
Wake-up states are switched to by dormant state for triggering the processor.
10. a kind of terminal, which is characterized in that the terminal includes processor and memory, and the memory is stored with computer
Program, the computer program are loaded by the processor and are executed to realize processing as claimed in any one of claims 1 to 8
Device awakening method.
11. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program, the computer program are loaded by processor and are executed to realize that processor as claimed in any one of claims 1 to 8 is called out
Awake method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910662357.9A CN110347439A (en) | 2019-07-22 | 2019-07-22 | Processor awakening method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910662357.9A CN110347439A (en) | 2019-07-22 | 2019-07-22 | Processor awakening method, device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110347439A true CN110347439A (en) | 2019-10-18 |
Family
ID=68179761
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910662357.9A Pending CN110347439A (en) | 2019-07-22 | 2019-07-22 | Processor awakening method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347439A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045738A (en) * | 2019-11-29 | 2020-04-21 | RealMe重庆移动通信有限公司 | Electronic device control method and device, electronic device and storage medium |
CN113360016A (en) * | 2020-03-06 | 2021-09-07 | 北京小米移动软件有限公司 | Information control method and device, and storage medium |
WO2021197199A1 (en) * | 2020-03-31 | 2021-10-07 | 比亚迪半导体股份有限公司 | Touch key scanning circuit, low power mode exiting method, and device |
CN114327344A (en) * | 2020-01-06 | 2022-04-12 | Oppo广东移动通信有限公司 | Method and device for controlling display frequency of display screen and electronic equipment |
CN114706469A (en) * | 2022-04-13 | 2022-07-05 | 晟矽微电子(南京)有限公司 | Awakening method and device of touch key module, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102999291A (en) * | 2012-09-25 | 2013-03-27 | 广东欧珀移动通信有限公司 | Method for waking up mobile terminal in standby state |
CN107454955A (en) * | 2017-06-15 | 2017-12-08 | 深圳市汇顶科技股份有限公司 | A kind of screen awakening method, device and terminal device |
CN108681467A (en) * | 2018-03-27 | 2018-10-19 | 维沃移动通信有限公司 | A kind of system wake-up method, terminal |
EP3469468A1 (en) * | 2016-08-01 | 2019-04-17 | Samsung Electronics Co., Ltd. | Method and electronic device for recognizing touch |
-
2019
- 2019-07-22 CN CN201910662357.9A patent/CN110347439A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102999291A (en) * | 2012-09-25 | 2013-03-27 | 广东欧珀移动通信有限公司 | Method for waking up mobile terminal in standby state |
EP3469468A1 (en) * | 2016-08-01 | 2019-04-17 | Samsung Electronics Co., Ltd. | Method and electronic device for recognizing touch |
CN107454955A (en) * | 2017-06-15 | 2017-12-08 | 深圳市汇顶科技股份有限公司 | A kind of screen awakening method, device and terminal device |
CN108681467A (en) * | 2018-03-27 | 2018-10-19 | 维沃移动通信有限公司 | A kind of system wake-up method, terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045738A (en) * | 2019-11-29 | 2020-04-21 | RealMe重庆移动通信有限公司 | Electronic device control method and device, electronic device and storage medium |
CN111045738B (en) * | 2019-11-29 | 2023-12-29 | RealMe重庆移动通信有限公司 | Electronic equipment control method and device, electronic equipment and storage medium |
CN114327344A (en) * | 2020-01-06 | 2022-04-12 | Oppo广东移动通信有限公司 | Method and device for controlling display frequency of display screen and electronic equipment |
CN113360016A (en) * | 2020-03-06 | 2021-09-07 | 北京小米移动软件有限公司 | Information control method and device, and storage medium |
WO2021197199A1 (en) * | 2020-03-31 | 2021-10-07 | 比亚迪半导体股份有限公司 | Touch key scanning circuit, low power mode exiting method, and device |
CN114706469A (en) * | 2022-04-13 | 2022-07-05 | 晟矽微电子(南京)有限公司 | Awakening method and device of touch key module, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110347439A (en) | Processor awakening method, device, terminal and storage medium | |
CN108512695B (en) | Method and device for monitoring application blockage | |
US20180365086A1 (en) | Method for Processing Data Collected by Touch Panel, and Terminal Device | |
CN104156171B (en) | Method and device for preventing touch key misoperations in landscape screen state of mobile terminal | |
KR101242620B1 (en) | Method for processing a touch signal by the touch sensor controller and apparatus thereof | |
KR101892315B1 (en) | Touch event anticipation in a computing device | |
US20130024869A1 (en) | Picture loading method and terminal | |
US9086749B2 (en) | System and method for improved processing of touch sensor data | |
US20140184519A1 (en) | Adapting user interface based on handedness of use of mobile computing device | |
CN103713829B (en) | System switching method, device and electronic equipment | |
CN105518587B (en) | Terminal device display methods and terminal device | |
CN107850974A (en) | Identify the method and electronic equipment of mistaken touch operation | |
CN108008896B (en) | Display control method and related product | |
CN109284041A (en) | A kind of application interface switching method and mobile terminal | |
CN112947825A (en) | Display control method, display control device, electronic device, and medium | |
CN104657689A (en) | Touch screen operation control method and touch screen operation control device for mobile terminal | |
CN108885775A (en) | A kind of display methods and terminal | |
CN109243376A (en) | A kind of method and apparatus of the refreshed image on ink screen | |
CN106406494B (en) | A kind of method and terminal of processor scheduling | |
CN111078108A (en) | Screen display method and device, storage medium and mobile terminal | |
CN109634487B (en) | Information display method, device and storage medium | |
CN109803360A (en) | WiFi dormancy control method, device, electronic equipment and storage medium | |
CN108021416B (en) | Media resource loading method and terminal | |
CN111338745B (en) | Deployment method and device of virtual machine and intelligent device | |
CN105095259B (en) | Waterfall flow object display method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |
|
RJ01 | Rejection of invention patent application after publication |