Summary of the invention
The technical problem to be solved in the present invention is, for the deficiencies in the prior art, a kind of mobile terminal awakening method based on touch-screen and system are provided, pass through this method, it can solve existing mobile terminal power key and easily damage, and the complicated power consumption of existing mobile terminal wake-up mode is high, easy false triggering, the problem of waste electricity.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is as follows:
Based on a mobile terminal awakening method for touch-screen, wherein, said method comprising the steps of:
S1, mobile terminal pre-set basic point, angle upper threshold and angle upper threshold for waking touch-screen up;
S2, when mobile terminal sleep, detect and touch the sliding trajectory of touch-screen, obtain starting point and terminal point coordinate;
The relation of S3, the angle judging starting point and basic point line and terminal and basic point line and angle threshold value, if met the requirements, then wakes mobile terminal up.
The described mobile terminal awakening method based on touch-screen, wherein, in described step S1, described basic point is in the coordinate of mobile terminal touch screen corner one.
The described mobile terminal awakening method based on touch-screen, wherein, in described step S1, described angle upper threshold is expressed as ah, described angle lower threshold is expressed as al, and ah and al meets, 90 degree of >ah>al>0 degree.
The described mobile terminal awakening method based on touch-screen, wherein, described step S2 also comprises:
S21, detect the touch-screen whether dormancy of mobile terminal, if touch-screen is updated to the second firmware by dormancy.
The described mobile terminal awakening method based on touch-screen, wherein, in described step S21, described second firmware is the firmware detecting touch-screen wake operation for mobile terminal in the dormant state.
The described mobile terminal awakening method based on touch-screen, wherein, described step S3 specifically comprises:
S31, detection mobile terminal touch touch screen operation in the dormant state, judge to touch the starting point of touch-screen and the relation of terminal and basic point line angle and angle threshold value, if met the requirements, then wake touch-screen up;
S32, when waking touch-screen up, touch-screen is updated to the first firmware, described first firmware is the firmware normally using touch-screen for mobile terminal at wake-up states.
The described mobile terminal awakening method based on touch-screen, wherein, in described step S3, the angle of described starting point and basic point line and terminal and basic point line and the pass of angle threshold value are: the angle of starting point and basic point line and terminal and basic point line is greater than angle lower threshold, and is less than angle upper threshold.
Based on the mobile terminal waken system of touch-screen, wherein, described system comprises:
Pre-set module, for pre-setting basic point, angle upper threshold and the angle upper threshold for waking touch product up on mobile terminals;
Detection module, for when mobile terminal sleep, detects the sliding trajectory touching touch-screen, obtains starting point and terminal point coordinate;
Mobile terminal wake module, for the relation of the angle and angle threshold value that judge starting point and basic point line and terminal and basic point line, if met the requirements, then wakes mobile terminal up.
The described mobile terminal waken system based on touch-screen, described in pre-set module and comprise:
Basic point pre-sets module, for arranging basic point coordinate under touch-screen wake-up states;
Angle threshold value arranges module, for having angle upper threshold and angle lower threshold at touch-screen wake-up states.
The described mobile terminal waken system based on touch-screen, described mobile terminal wake module comprises: firmware update module, for during touch-screen dormant state, touch-screen is updated to the second firmware, during touch-screen wake-up states, touch-screen is updated to the first firmware.
Beneficial effect: compared with prior art, mobile terminal awakening method based on touch-screen provided by the present invention and system, first basic point and angle threshold value are set, when touch-screen is dormant state, touch-screen is updated to the second firmware, mobile terminal touch screen induction touch trajectory, obtain corresponding starting point and terminal point coordinate, judge the angle of starting point and basic point line and terminal and basic point line and the relation of angle threshold value, if met the requirements, then wake mobile terminal up; Make user can after mobile terminal extinguishes display screen, by waking touch-screen at touch-screen up sliding, thus accurately waking mobile terminal up, decreasing the number of times that power key is pressed, avoiding false triggering.Meanwhile, when touch-screen is dormant state, touch-screen is updated to the second firmware, it is only for detecting touch-screen wake operation, and it participates in detecting without the need to central processing unit, plays the effect of saving and detecting energy consumption.
Embodiment
The invention provides the mobile terminal awakening method based on touch-screen and system, for making object of the present invention, technical scheme and effect clearly, clearly, the present invention is described in more detail below.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Below in conjunction with accompanying drawing, by the description to embodiment, summary of the invention is described further.
Refer to Fig. 1, Fig. 1 is the process flow diagram of the mobile terminal awakening method preferred embodiment that the present invention is based on touch-screen.As shown in the figure, said method comprising the steps of:
S100, mobile terminal pre-set basic point, angle upper threshold and angle upper threshold for waking touch-screen up;
S200, when mobile terminal sleep, detect and touch the sliding trajectory of touch-screen, obtain starting point and terminal point coordinate;
The relation of S300, the angle judging starting point and basic point line and terminal and basic point line and angle threshold value, if met the requirements, then wakes mobile terminal up.
Below in conjunction with specific embodiment, above-mentioned steps is described in detail.
In the step s 100, basic point, angle upper threshold and angle upper threshold is pre-set on mobile terminals.Specifically, described mobile terminal can be the mobile terminal such as mobile phone, panel computer.Described mobile terminal there is touch-screen and display screen, this is prior art, no longer describes in detail herein.Described basic point is one or more in mobile terminal touch screen four angle point, such as: be the touch-screen of tpw*tpl for resolution, choosing mobile terminal touch screen lower left point is true origin, set up coordinate system XY, so the whole screen of mobile phone is all positioned at coordinate system XY first quartile, and so the coordinate of touch-screen four angle point can be designated as: (0,0), (0, tpl), (tpw, 0), (tpw, tpl); So basic point coordinate can be matched and be: one or more in (0,0), (0, tpl), (tpw, 0), (tpw, tpl).
In the present embodiment, described basic point is chosen for 1, and its coordinate is designated as (x0, y0), and so basic point (x0, y0) coordinate can be in (0,0), (0, tpl), (tpw, 0), (tpw, tpl) one, please refer to Fig. 2.
Further, described angle upper threshold and angle upper threshold are what preset, and its span is: 90 degree of >ah>al>0 degree.
Particularly, in the present embodiment, described angle upper threshold can be 60, and described angle lower threshold can be 40
In step s 200, when mobile terminal sleep, detect the sliding trajectory touching touch-screen, obtain starting point and terminal point coordinate.Existing mobile terminal, after display screen dormancy, cannot touch touch-screen, or needs to wake touch-screen up by the operation of complexity.The present invention then adopts after mobile terminal sleep, mobile terminal touch screen is updated to the second firmware, and described second firmware is used for mobile terminal and detects touch-screen wake operation in the dormant state.Described second firmware detects the sliding trajectory touching touch-screen, and wherein sliding trajectory is 1.Obtain first the touch point coordinate p1 touching touch-screen, its coordinate is designated as (x1, y1), last touch point coordinate p2 before release touch-screen is obtained when user discharges touch-screen, its coordinate is designated as (x2, y2)), p2 on the sliding trajectory taking p1 as starting point, the terminal of p2 sliding trajectory for this reason.Further, described sliding trajectory can be many, such as 2,3.
In step S300, judge the angle of starting point and basic point line and terminal and basic point line and the relation of angle threshold value, if met the requirements, then wake mobile terminal up.Specifically, when obtaining starting point p1(x1 in step S200, y1), terminal point coordinate p2(x2, y2) after, in this step, calculate by basic point p(x0, y0) and starting point (x1, y1) straight line with pass through basic point p(x0, and terminal (x2 y0), if the angle a of straight line y2), judges the relation between angle a and angle upper threshold ah and angle lower threshold al, afterwards ah>a>al, so wake touch-screen up, and touch-screen is updated to the first firmware; If a does not meet relational expression ah>a>al, so stop waking touch-screen up, touch-screen is the second firmware.The present invention, by such setting, makes user can after mobile terminal extinguishes display screen, by waking touch-screen at touch-screen up sliding, thus accurately waking mobile terminal up, decreasing the number of times that power key is pressed, avoiding false triggering.Meanwhile, when touch-screen is dormant state, touch-screen is updated to the second firmware, it is only for detecting touch-screen wake operation, and it participates in detecting without the need to central processing unit, plays the effect of saving and detecting energy consumption.Further, described basic point can be selected multiple, such as two, zequin and the terminal angle by the straight line of same basic point can be distinguished, so just obtain two angles, be designated as a1 and a2, judge the relation of a1, a2 and ah and al respectively, if meet ah>a1>al and ah>a2>al, then wake touch-screen up.The accuracy waking touch-screen up can be provided like this, avoid false triggering further, the service time of battery of mobile terminal is provided.When basic point be 3 or 4 time, identical method can be adopted to judge, can provide the accuracy waking touch-screen up further, not limit here for basic point number, above is only provide object lesson to be described.
Particularly, in the present embodiment, angle a can be, but not limited to adopt following computation process as, first calculate by basic point p(x0, y0) and the slope k 1 of straight line of starting point (x1, y1),
k1=(y1-y0)/(x1-x0);
Secondly calculate by basic point p(x0, y0) and the slope k 2 of straight line of terminal (x2, y2),
k2=(y2-y0)/(x2-x0);
Finally calculate angle a,
a=arctan|(k1-k2)/(1+k1*k2)|。
To sum up, please refer to Fig. 3, Fig. 3 is the process flow diagram of the mobile terminal awakening method specific embodiment that the present invention is based on touch-screen, and it comprises the following steps:
S10, when mobile terminal is wake-up states, pre-set basic point coordinate (x0, y0), angle upper threshold ah and angle lower threshold al;
S20, when mobile terminal is switched to dormant state by wake-up states, touch-screen is updated to the second firmware;
S30, when mobile terminal is in dormant state, if detect that user touches touch-screen, obtain first touch point coordinate, if coordinate is (x1, y1), last the touch point coordinate before release touch-screen is obtained, if coordinate is (x2, y2) when user discharges touch-screen;
S40, according to coordinate (x1, y1), (x2, y2) and the coordinate (x0 that pre-sets, y0), (x0, y0), (x1 is calculated, y1) the angle a that links of line and (x0, y0), (x2, y2);
S50, judge a whether in the scope pre-set, i.e. the relation of a and ah and al;
If S60 a meets ah>a>al, then wake mobile terminal up, namely mobile terminal switches to bright screen wake-up states by dormant state, touch-screen is updated to the first firmware; If a does not meet ah>a>al, jump to step S30, wait for and touching next time.
The invention provides another specific embodiment, user uses two fingers to slide on mobile terminal touch screen, pre-sets basic point p(x0, y0), angle Upper threshold ah, angle Lower Threshold al; Detect the user when not being touched and touch the touch point of touch-screen, be designated as starting point 1 and starting point 2, and start of record 1 coordinate is P1(x1, y1), the coordinate of starting point 2 is P2(x2, y2); By p1(x1, y1) and p2(x2, y2) give p3(x3, y3), p4(x4, y4);
The angle aa of the line of zequin 1 and basic point p and the line of terminal 1 and basic point p, the angle ab of the line of starting point 2 and basic point p and the line of terminal 2 and basic point p.
The relatively relation of aa, ab and angle thresholding ah and al, if aa and ab is satisfied, ah>aa>al, ah>ab>al, then wake touch-screen up, otherwise stop waking touch-screen up.
Here, when obtaining starting point, terminal point coordinate, choosing mobile phone screen lower left point is true origin, sets up coordinate system XY, and so the whole screen of mobile phone is all positioned at coordinate system XY first quartile, namely the horizontal stroke of horizontal, the ordinate value of starting point and terminal, ordinate value be on the occasion of.
In the present embodiment, the computation process of aa, ab is specifically as follows:
First calculate by basic point p(x0, y0) and the slope k 1 of straight line of starting point (x1, y1),
k1=(y1-y0)/(x1-x0);
Secondly calculate by basic point p(x0, y0) and the slope k 2 of straight line of terminal (x2, y2),
k2=(y2-y0)/(x2-x0);
Finally calculate angle aa,
aa=arctan|(k1-k2)/(1+k1*k2)|。
First calculate by basic point p(x0, y0) and the slope k 3 of straight line of starting point (x3, y3),
K3=(y3-y0)/(x3-x0);
Secondly calculate by basic point p(x0, y0) and the slope k 4 of straight line of terminal (x4, y4),
K4=(y4-y0)/(x4-x0);
Finally calculate angle ab,
ab=arctan|(k3-k4)/(1+k3*k4)|。
Present invention also offers the mobile terminal waken system based on touch-screen, please refer to Fig. 4, wherein, described system comprises:
Pre-set module, for pre-setting basic point, angle upper threshold and angle upper threshold on mobile terminals;
Detection module, for when mobile terminal sleep, detects the sliding trajectory touching touch-screen, obtains starting point and terminal point coordinate;
Mobile terminal wake module, for the relation of the angle and angle threshold value that judge starting point and basic point line and terminal and basic point line, if met the requirements, then wakes mobile terminal up.
The described mobile terminal awakening method system based on touch-screen, described in pre-set module and comprise:
Basic point pre-sets module, for arranging basic point coordinate under touch-screen wake-up states;
Angle threshold value arranges module, for having angle upper threshold and angle lower threshold at touch-screen wake-up states.
The described mobile terminal awakening method system based on touch-screen, described mobile terminal wake module comprises: firmware update module, for during touch-screen dormant state, touch-screen is updated to the second firmware, during touch-screen wake-up states, touch-screen is updated to the first firmware.
In sum, a kind of mobile terminal awakening method based on touch-screen provided by the invention and system, by pre-setting basic point, angle upper threshold and angle upper threshold on mobile terminals; When mobile terminal sleep, touch-screen is updated to the second firmware, the second firmware detects the sliding trajectory touching touch-screen, obtains starting point and terminal point coordinate; Judge the angle of starting point and basic point line and terminal and basic point line and the relation of angle threshold value, if met the requirements, then wake mobile terminal up; And touch-screen is updated to the first firmware; Effectively prevent mobile terminal display screen by false triggering, mobile terminal is made accurately to receive the touch operation of user thus accurately to wake mobile terminal up, accurately mobile terminal can be waken up by touching touch-screen after mobile terminal extinguishes display screen, decrease the number of times that power key is pressed, bring to user and facilitate greatly.Meanwhile, when touch-screen is dormant state, touch-screen is updated to the second firmware, it is only for detecting touch-screen wake operation, and it participates in detecting without the need to central processing unit, plays the effect of saving and detecting energy consumption.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.