CN104035559B - Control the method and device of mobile terminal - Google Patents

Control the method and device of mobile terminal Download PDF

Info

Publication number
CN104035559B
CN104035559B CN201410244805.0A CN201410244805A CN104035559B CN 104035559 B CN104035559 B CN 104035559B CN 201410244805 A CN201410244805 A CN 201410244805A CN 104035559 B CN104035559 B CN 104035559B
Authority
CN
China
Prior art keywords
axis
preset
value
axle
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410244805.0A
Other languages
Chinese (zh)
Other versions
CN104035559A (en
Inventor
周志农
唐明勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410244805.0A priority Critical patent/CN104035559B/en
Publication of CN104035559A publication Critical patent/CN104035559A/en
Application granted granted Critical
Publication of CN104035559B publication Critical patent/CN104035559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure is directed to a kind of method and devices for controlling mobile terminal, for realizing more accurate control mobile terminal.The described method includes: whether the heeling condition numerical value of detection local terminal meets preset slant range;When the heeling condition numerical value of local terminal meets preset slant range, whether the acceleration for detecting local terminal is greater than preset acceleration rate threshold;When the acceleration of local terminal is greater than preset acceleration rate threshold, preset processing is triggered.

Description

Control the method and device of mobile terminal
Technical field
This disclosure relates to communicate and computer disposal field, more particularly to the method and device of control mobile terminal.
Background technique
With the development of electronic technology, mobile terminal is commonly used, and it is very fast to update.Mobile terminal from The keyboard input most started, inputs to touch screen, then to more advanced various sensor controls, so that the mistake of control mobile terminal Journey is more and more simple and convenient.Mobile terminal provides various services for people, such as takes pictures and play music.For example, controlling When taking pictures, it can click and take pictures button to take pictures, can also be taken pictures by " taking pictures " this voice to control.It is broadcasting Sing song when, can be controlled by clicking button and play next song, can also be by rocking mobile terminal (i.e. using gravity Induction) to control broadcasting, next is sung.
The disclosure inventors have found that in the related technology, if being only through gravity sensing to control mobile terminal, It may cause maloperation in some cases.For example, mobile terminal is placed in knapsack, knapsack running, this time shift are then carried Dynamic terminal can shake with the process of running, and then generate some operations, and the operation is that user is undesirable Operation.Therefore, how mobile terminal is more accurately controlled, be a problem to be solved.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of method and device for controlling mobile terminal.
According to the first aspect of the embodiments of the present disclosure, a kind of method controlling mobile terminal is provided, comprising:
Whether the heeling condition numerical value of detection local terminal meets preset slant range;
When the heeling condition numerical value of local terminal meets preset slant range, detect local terminal acceleration whether be greater than it is default Acceleration rate threshold;
When the acceleration of local terminal is greater than preset acceleration rate threshold, preset processing is triggered.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment combination heeling condition And acceleration, determined whether to trigger preset processing according to these two aspects information.Reduction judges whether because single according to acceleration Mistake processing caused by triggering processing.Improve the accuracy of control and processing.
The heeling condition numerical value includes direction value and angle value;Alternatively, including projector distance value;
The slant range includes preset direction scope and angular range;Alternatively, including preset projector distance range.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment provides two kinds of judgements Foundation, one is the combinations in direction and angle, and one is be based on projector distance.Two ways may be incorporated for determining mobile terminal Inclined degree, be applicable to a variety of mobile terminals or plurality of application scenes.
The heeling condition numerical value includes the direction value of the first axle in three-dimensional cartesian coordinate system and the direction value of the second axis, And first axle and the corresponding angle value of the second axis;The preset direction scope includes in three-dimensional cartesian coordinate system The direction scope of the direction scope of one axis and the second axis, the preset angular range include that first axle and the second axis respectively correspond Angular range;
It is described when the heeling condition numerical value of local terminal meets preset slant range, whether the acceleration for detecting local terminal is greater than Preset acceleration rate threshold, comprising: meet the direction of preset first axle and the second axis in the direction value of first axle and the second axis Range and first axle and the corresponding angle value of the second axis meet preset first axle and the corresponding angle model of the second axis When enclosing, local terminal is detected in the acceleration of third axis direction and whether is greater than preset acceleration rate threshold.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment can pass through two axis Direction determine the inclined degree of mobile terminal, the data volume in detection process can be reduced, improve detection efficiency.Cooperate third again The acceleration detection of axis direction can get accurate testing result, and data volume needed for entire detection process is less, inspection It is higher to survey efficiency.
The projector distance value obtains in the following manner:
By the linear projection between preset two reference points into three-dimensional cartesian coordinate system on each axis;
The length value of projection on each axis is determined as to project distance value on each axis.
The technical scheme provided by this disclosed embodiment can include the following benefits: present embodiments provide projection away from Acquisition pattern from value, can determine the inclined degree of mobile terminal based on this reference quantity of projector distance value, realize process compared with To be simple, detection efficiency is higher.
The direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes big in first axle It is greater than on 0 ° and the range less than 90 ° and the second axis in range, the second axis in -90 ° and less than 0 ° and is greater than -90 ° and less than 0 ° Range;Or
The direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than 0 ° and the range less than 90 ° in range and the second axis in -90 ° and less than 0 °;Or
The direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than -90 ° and the range less than 0 ° in range and the second axis in -90 ° and less than 0 °.
The technical scheme provided by this disclosed embodiment can include the following benefits: the slant range in the present embodiment The case where eliminating horizontally or vertically holding movable terminal.In actual conditions, generally mobile terminal is placed in desktop or packet It just will appear horizontally or vertically situation.It is difficult horizontally or vertically situation occur when being held in the hand inner, therefore can be true by slant range Determining mobile terminal is in the hand of user, and user triggers preset processing by rocking mobile terminal.It reduces because shaking table Face or the mistake shaking packet and generating are handled.
The direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes big in first axle It is in -80 ° and greater than -40 ° and small on 10 ° and the range less than 40 ° and the second axis less than being greater than on -40 ° of range, the second axis In -10 ° of range;Or
The direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than 10 ° and the range less than 40 ° in range and the second axis in -80 ° and less than -40 °;Or
The direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than -40 ° and the range less than -10 ° in range and the second axis in -80 ° and less than -40 °.
The technical scheme provided by this disclosed embodiment can include the following benefits: inclination model provided in this embodiment Enclose the inclined degree of mobile terminal when more meeting general hand-held mobile terminal, can accurate determining mobile terminal be located at user Hand in.The acceleration generated at this time can be identified as being that user shakes mobile terminal consciously and generates.At this time triggering is pre- If processing more meet the wish of user, it is more accurate to handle.
The direction value is obtained by the gravity sensor of local terminal;
The angle value is obtained by the direction sensor of local terminal;
The projector distance value is obtained by the gravity sensor of local terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits: present embodiments providing one kind and obtains The scheme for obtaining each skewed state value, can be realized by sensor existing in mobile terminal.
The preset slant range be it is multiple, different slant ranges corresponds to different processing;
When the acceleration in local terminal is greater than preset acceleration rate threshold, preset processing is triggered, comprising: in local terminal When acceleration is greater than preset acceleration rate threshold, processing corresponding to the corresponding slant range of the heeling condition numerical value is triggered.
The technical scheme provided by this disclosed embodiment can include the following benefits: different inclination journeys in the present embodiment Degree can trigger different processing, that is to say, that many processing can be triggered by shaking mobile terminal, and control mode is more Flexibly, a variety of user demands can be met.
The method also includes: detection local terminal is placed in left hand or the right hand;
Whether the heeling condition numerical value of the detection local terminal meets preset slant range, comprising: detects the inclination of local terminal Whether status values meet the corresponding preset direction of the hand detected and angular range.
The technical scheme provided by this disclosed embodiment can include the following benefits: a kind of inclination journey of mobile terminal Degree, by the shake of different right-hand men, can trigger different processing, control mode is more flexible, can meet a variety of user demands.
The preset processing include: solve lock screen, switching song, into one in screening-mode and rotary interface or It is multinomial.
The technical scheme provided by this disclosed embodiment can include the following benefits: the present embodiment is by shaking movement Terminal can trigger a variety of processing, suitable for a variety of applications and different application scenarios.
According to the second aspect of an embodiment of the present disclosure, a kind of device controlling mobile terminal is provided, comprising:
Whether tilt detection module, the heeling condition numerical value for detecting local terminal meet preset slant range;
Acceleration detection module, for detecting local terminal when the heeling condition numerical value of local terminal meets preset slant range Acceleration whether be greater than preset acceleration rate threshold;
Trigger module triggers preset processing when being greater than preset acceleration rate threshold for the acceleration in local terminal.
The heeling condition numerical value includes direction value and angle value;Alternatively, including projector distance value;
The slant range includes preset direction scope and angular range;Alternatively, including preset projector distance range.
The heeling condition numerical value includes the direction value of the first axle in three-dimensional cartesian coordinate system and the direction value of the second axis, And first axle and the corresponding angle value of the second axis;The preset direction scope includes in three-dimensional cartesian coordinate system The direction scope of the direction scope of one axis and the second axis, the preset angular range include that first axle and the second axis respectively correspond Angular range;
The acceleration detection module includes:
First acceleration unit, for meeting preset first axle and the second axis in the direction value of first axle and the second axis Direction scope and first axle and the corresponding angle value of the second axis meet preset first axle and the corresponding angle of the second axis When spending range, local terminal is detected in the acceleration of third axis direction and whether is greater than preset acceleration rate threshold.
Described device further include:
Projection module, for by the linear projection between preset two reference points into three-dimensional cartesian coordinate system each axis On;
Spacing module projects distance value on each axis for being determined as the length value of the projection on each axis.
The direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes big in first axle It is greater than on 0 ° and the range less than 90 ° and the second axis in range, the second axis in -90 ° and less than 0 ° and is greater than -90 ° and less than 0 ° Range;Or
The direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than 0 ° and the range less than 90 ° in range and the second axis in -90 ° and less than 0 °;Or
The direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than -90 ° and the range less than 0 ° in range and the second axis in -90 ° and less than 0 °.
The direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes big in first axle It is in -80 ° and greater than -40 ° and small on 10 ° and the range less than 40 ° and the second axis less than being greater than on -40 ° of range, the second axis In -10 ° of range;Or
The direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than 10 ° and the range less than 40 ° in range and the second axis in -80 ° and less than -40 °;Or
The direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than -40 ° and the range less than -10 ° in range and the second axis in -80 ° and less than -40 °.
The direction value is obtained by the gravity sensor of local terminal;
The angle value is obtained by the direction sensor of local terminal;
The projector distance value is obtained by the gravity sensor of local terminal.
The preset slant range be it is multiple, different slant ranges corresponds to different processing;
The trigger module triggers the heeling condition numerical value when the acceleration of local terminal is greater than preset acceleration rate threshold Processing corresponding to corresponding slant range.
Described device further include:
Right-hand man's detection module is placed in left hand or the right hand for detecting local terminal;
The tilt detection module includes:
First tilt detection unit, it is corresponding pre- whether the heeling condition numerical value for detecting local terminal meets the hand detected If direction and angular range.
The preset processing include: solve lock screen, switching song, into one in screening-mode and rotary interface or It is multinomial.
According to the third aspect of an embodiment of the present disclosure, a kind of device controlling mobile terminal is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Whether the heeling condition numerical value of detection local terminal meets preset slant range;
When the heeling condition numerical value of local terminal meets preset slant range, detect local terminal acceleration whether be greater than it is default Acceleration rate threshold;
When the acceleration of local terminal is greater than preset acceleration rate threshold, preset processing is triggered.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of method for controlling mobile terminal shown according to an exemplary embodiment.
Fig. 2 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Fig. 3 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Fig. 4 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Fig. 5 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Fig. 6 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Fig. 7 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Fig. 8 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Fig. 9 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 10 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 11 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 12 A is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 12 B is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 13 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 14 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 15 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 16 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 17 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 18 is a kind of schematic diagram of heeling condition shown according to an exemplary embodiment.
Figure 19 is a kind of flow chart of method for controlling mobile terminal shown according to an exemplary embodiment.
Figure 20 is a kind of flow chart of method for controlling mobile terminal shown according to an exemplary embodiment.
Figure 21 is a kind of block diagram of device for controlling mobile terminal shown according to an exemplary embodiment.
Figure 22 is a kind of block diagram of acceleration detection module shown according to an exemplary embodiment.
Figure 23 is a kind of block diagram of device for controlling mobile terminal shown according to an exemplary embodiment.
Figure 24 is a kind of block diagram of device for controlling mobile terminal shown according to an exemplary embodiment.
Figure 25 is a kind of block diagram of tilt detection module shown according to an exemplary embodiment.
Figure 26 is a kind of block diagram of device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
In the related technology, some processing can be triggered by detection acceleration.But the acceleration generated in some scenarios Degree is not as user and shakes mobile terminal and generate.For example, mobile terminal is vertically inserted in the pocket of knapsack, carrying When knapsack is run, mobile terminal can generate the acceleration in vertical direction, will be based on some processing of detection above-mentioned measurement triggering. But at this moment user does not shake mobile terminal, it is undesirable to triggering processing.The processing triggered at this time is accidentally to handle.It is asked to solve this Topic, the present embodiment determine the acceleration that mobile terminal is located in the hand of user, generates at this time by the inclined degree of mobile terminal The acceleration that degree generates for user's shake mobile terminal, the processing at this moment triggered more meet the wish of user, handle subject to more Really.
Fig. 1 is a kind of flow chart of method for controlling mobile terminal shown according to an exemplary embodiment, such as Fig. 1 institute Show, this method can be realized by mobile terminal, comprising the following steps:
In a step 101, whether the heeling condition numerical value for detecting local terminal meets preset slant range.In the inclination of local terminal When status values meet preset slant range, continues step 102, otherwise terminate this process, step 101 can be continued.
In a step 102, whether the acceleration for detecting local terminal is greater than preset acceleration rate threshold.It is big in the acceleration of local terminal When preset acceleration rate threshold, continues step 103, otherwise terminate this process, step 101 can be continued.
In step 103, preset processing is triggered.
The present embodiment judges whether mobile terminal is placed in user by the way that whether heeling condition meets preset slant range Hand in, in the case where user holds mobile terminal, then by acceleration judge whether user shakes mobile terminal.Meeting In above-mentioned two situation, preset processing is triggered, realizes and triggers preset processing when user shakes mobile terminal.Compared to simple Judgement based on acceleration triggers preset processing and is determined whether in conjunction with heeling condition and acceleration according to these two aspects information Trigger preset processing.It can reduce and judge whether that the mistake caused by triggering processing is handled according to acceleration because single.Improve control With the accuracy of processing.
In one embodiment, the heeling condition numerical value includes direction value and angle value;Alternatively, including projector distance Value.Correspondingly, the slant range includes preset direction scope and angular range;Alternatively, including preset projector distance model It encloses.That is, present embodiments providing the implementation of two kinds of determining heeling conditions.Mode A1 is true by direction and angle Determine heeling condition.Mode A2 is to determine heeling condition by projector distance.
In mode A1, acceptable there are many implementations, such as mode B1 and mode B2.
In mode B1, mobile terminal is placed in three-dimensional cartesian coordinate system, passes through the gravity sensor in mobile terminal And direction sensor, it can get direction value and angle value of the mobile terminal on three axis (X, Y, Z axis).It can be by three axis Direction value and angle value can accurate determining mobile terminal inclined degree.When on three axis direction value and angle value it is equal When meeting corresponding preset direction scope and angular range, determine that mobile terminal is located in the hand of user.It detects again mobile whole Whether the acceleration at end is greater than preset acceleration rate threshold, that is, judges whether the shaking of mobile terminal reaches certain journey Degree reduces the mistake processing that weak vibrations generate.When acceleration is greater than acceleration rate threshold, preset processing is triggered.It detects herein Acceleration can be the acceleration of any direction.
Acceleration in the present embodiment can be linear acceleration, be also possible to acceleration of gravity, be also possible to linearly add Speed and acceleration of gravity and, total acceleration.Which kind of acceleration detected.From orientation angle, acceleration includes X-direction Acceleration, the acceleration of Y direction and the acceleration of Z-direction, can also be the resultant acceleration of three axis directions.Detection The acceleration in which direction.
In mode B2, since the shape of mobile terminal is generally cuboid, two neighboring face is mutually perpendicular to.Therefore, may be used It is the inclined degree that can determine mobile terminal to pass through the direction value and angle value of two axis, reduces the data volume of detection, improve Detection efficiency.Then, the heeling condition numerical value includes the direction value of the first axle in three-dimensional cartesian coordinate system and the side of the second axis To value and first axle and the corresponding angle value of the second axis;The preset direction scope includes three-dimensional cartesian coordinate system In first axle direction scope and the second axis direction scope, the preset angular range includes first axle and the second axis point Not corresponding angular range.
Therefore, in a step 102, meet the side of preset first axle and the second axis in the direction value of first axle and the second axis Meet preset first axle and the corresponding angle of the second axis to range and first axle and the corresponding angle value of the second axis When range, local terminal is detected in the acceleration of third axis direction and whether is greater than preset acceleration rate threshold.For example, first axle is Y-axis (vertical direction), the second axis are Z axis (longitudinal direction), and third axis is X-axis (horizontal direction).
It can detecte the acceleration in any one direction in a step 102.But according to the holding mobile terminal of user Habit, and the habit of mobile terminal is shaken, it is larger compared to the acceleration in other directions in the acceleration of third axis direction and logical Crossing gravity sensor can be easier to obtain the acceleration of axis direction.Therefore pass through the acceleration of detection third axis direction in mode B2 It can the accurate testing result of acquisition faster.
Acceleration mentioned above can be obtained by gravity sensor.If having baroceptor in mobile terminal, and air pressure Sensor is sensitive enough, the variation of height above sea level can also be obtained by the variation for the air pressure that baroceptor detects, in turn Obtain the acceleration of mobile terminal.
For example, may lie against on desktop if mobile terminal is not interposing in the hand of user, or found the pocket in knapsack In.Shown in referring to figs. 2 and 3, when mobile terminal is lain against on desktop, if the main view of mobile terminal is face-down, Z-direction Angle is 0 °, and the angle of Y direction is 90 °;If the main view of mobile terminal is face-up, the angle of Z-direction is 0 °, Y-axis side To angle be -90 °.Referring to fig. 4 and shown in Fig. 5, when mobile terminal is stood in the pocket of knapsack, if the main-vision surface of mobile terminal Towards a left side, then the angle of Z-direction is 90 °, and the angle of Y direction is 0 °;If the main-vision surface of mobile terminal is towards the right side, Z-direction Angle be -90 °, the angle of Y direction is 0 °.
Therefore, in order to exclude Fig. 2-situation shown in fig. 5, in one embodiment, the direction scope includes first axle Greater than 0 and second axis be greater than 0 when, the angular range includes being greater than -90 ° and the range less than 0 ° in first axle, on the second axis It is greater than -90 ° and the range less than 0 ° in range and the second axis greater than 0 ° and less than 90 °.Alternatively, the direction scope includes the One axis be greater than 0 and second axis less than 0 when, the angular range include in first axle be greater than -90 ° and the range less than 0 ° and second It is greater than 0 ° and the range less than 90 ° on axis.Alternatively, the direction scope include first axle less than 0 and second axis less than 0 when, institute Stating angular range includes being greater than on -90 ° and the range less than 0 ° and the second axis to be greater than -90 ° and the range less than 0 ° in first axle.
Angular range can be suitably reduced in order to improve the accuracy of detection according to the habit that user holds mobile terminal.Such as In one embodiment, the direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes the Be greater than greater than 10 ° in range, the second axis on one axis greater than -80 ° and less than -40 ° and on the range less than 40 ° and the second axis - 40 ° and the range less than -10 °.Alternatively, the direction scope include first axle be greater than 0 and second axis less than 0 when, the angle Range includes being greater than on -80 ° and the range less than -40 ° and the second axis to be greater than 10 ° and the range less than 40 ° in first axle.Or Person, the direction scope include first axle less than 0 and second axis less than 0 when, the angular range include be greater than in first axle- It is greater than -40 ° on 80 ° and the range less than -40 ° and the second axis and is less than -10 ° of range.
For example, with reference to shown in Fig. 6-Fig. 9.When the common 4 kinds of holdings mobile terminal of user is shown, mobile terminal Heeling condition.The moving direction of mobile terminal when direction arrow in figure indicates to shake mobile terminal, that is, generate acceleration Direction.
Fig. 6 shows the right hand and holds mobile terminal, and mobile terminal main view it is face-up when, mobile terminal presentation is faced upward a left side The heeling condition inclined.That is, mobile terminal is greater than 0 and direction of the Z axis greater than 0 towards Y-axis.Since everyone posture habit is different, So the range of tilt angles in Y-axis is greater than -80 ° and to be less than -40 °, shown in Figure 10, the tilt angle on Z axis Range be greater than 10 ° and less than 40 °, it is shown in Figure 11.Wherein, 1001 direction of the mobile terminal in Y-axis, the direction are indicated Substantially consistent with the positive direction of Y-axis.1101 indicate direction of the mobile terminals on Z axis, the direction substantially with the positive direction of Z axis one It causes.
Fig. 7 shows left-handed mobile terminal, and mobile terminal main view it is face-up when, mobile terminal presentation is faced upward the right side The heeling condition inclined.That is, mobile terminal is greater than 0 and direction of the Z axis greater than 0 towards Y-axis, since everyone posture habit is different, So the range of tilt angles in Y-axis is greater than -80 ° and to be less than -40 °, the range of tilt angles on Z axis is greater than -40 ° And it is less than -10 °.
Fig. 8 shows the right hand and holds mobile terminal, and mobile terminal main view it is face-down when, mobile terminal is presented and is bowed a left side The heeling condition inclined.That is, mobile terminal is greater than 0 and direction of the Z axis less than 0 towards Y-axis, since everyone posture habit is different, So the range of tilt angles in Y-axis is greater than -80 ° and to be less than -40 °, the range of tilt angles on Z axis is greater than 10 ° And less than 40 °.
Fig. 9 shows left-handed mobile terminal, and mobile terminal main view it is face-down when, the right side of bowing is presented in mobile terminal The heeling condition inclined.That is, mobile terminal towards Y-axis less than 0 and direction of the Z axis less than 0, since everyone posture habit is different, So the range of tilt angles in Y-axis is greater than -80 ° and to be less than -40 °, the range of tilt angles on Z axis is greater than -40 ° And it is less than -10 °.
In mode A2, the projector distance value obtains in the following manner: will be between preset two reference points Linear projection into three-dimensional cartesian coordinate system on each axis;The length value of projection on each axis is determined as in each axis Upper projection distance value.Drop shadow effect is as illustrated in fig. 12.
Reference point in the present embodiment can be the point of any two on mobile terminal, for example, with reference to shown in Figure 12 B, with a Point and b point are reference point.A point is placed on the origin in three-dimensional cartesian coordinate system.The coordinate of the point of a in this way is (0,0,0).B point X, y and z in coordinate (x, y, z) are respectively the projector distance value on X, Y and Z axis.The advantages of handling in this way is can to reduce really The calculation amount for determining projector distance value can directly determine projector distance value according to the coordinate value of b point.
For example, the distance of a, b point-to-point transmission be 9 millimeters, that is to say, that mobile terminal with a thickness of 9 millimeters.As shown in figure 13, When mobile terminal is horizontal positioned and main view is face-up, b point coordinate is (0,9,0).As shown in figure 14, mobile terminal it is horizontal positioned and When main view is face-down, b point coordinate is (0, -9,0).As shown in figure 15, vertical positive (head-up) placement of mobile terminal and main view When facing direction of the Z axis less than 0, b point coordinate is (0,0, -9).As shown in figure 16, mobile terminal is reversely put (upside down) vertically Set and main-vision surface towards Z axis be greater than 0 direction when, b point coordinate be (0,0,9).As shown in figure 17, the vertical positive (head of mobile terminal It places upward) and when direction of the main-vision surface towards X-axis less than 0, b point coordinate is (0,0, -9).As shown in figure 18, mobile terminal is vertical When forward direction (head-up) is placed and main-vision surface is greater than 0 direction towards X-axis, b point coordinate is (0,0,9).
In order to avoid situation shown in Figure 13-Figure 18, b point coordinate value is less than 9.The open interval (0,9) is to project Distance range.
In order to more meet the habit that user holds mobile terminal, more suitable throwing can be calculated according to angular range above-mentioned Shadow distance range, if Y axis coordinate range is (5,8), Z axis coordinate range is (Isosorbide-5-Nitrae).
By b point coordinate determine meet projector distance range after, can further detect mobile terminal acceleration whether Greater than preset acceleration rate threshold.Acceleration herein can be the acceleration on any direction.For example, using X-direction Acceleration.
It forgoing describes different hands and holds mobile terminal, the slant range of mobile terminal is different, still by detection left hand The right hand holds mobile terminal, can reduce determining slant range.For example, in one embodiment, the method also includes steps D1.In step D1, detection local terminal is placed in left hand or the right hand.Then in a step 101, the heeling condition numerical value for detecting local terminal is It is no to meet the corresponding preset direction of hand (left or right hand) detected and angular range.
Wherein, step D1 can incude and sell for example, there is sensor in the side of mobile terminal there are many implementation The contact area of finger.By taking Fig. 6 as an example, the area of the left contact finger of mobile terminal is greater than right side, it is determined that holds for the right hand Mobile terminal.It can be identified as left-handed mobile terminal on the contrary.For another example, for user when holding mobile terminal, finger may be with touching Screen contact is touched, can determine the area of contact finger by touch screen.Or by taking Fig. 6 as an example, the left contact finger of mobile terminal Area be greater than right side, it is determined that for the right hand hold mobile terminal.It can be identified as left-handed mobile terminal on the contrary.
Either mode A1 or mode A2, effect are for detecting that mobile terminal is located in user hand.Then Gone out by acceleration detection is that user is shaking mobile terminal.It can trigger a variety of processing by shaking mobile terminal.
For the ease of triggering various processing, in one embodiment, the preset slant range be it is multiple, different inclines Oblique range corresponds to different processing.Then in step 103, when the acceleration of local terminal is greater than preset acceleration rate threshold, triggering Processing corresponding to the corresponding slant range of the heeling condition numerical value.
For example, the preset processing includes: solution lock screen, switching song, into screening-mode and rotary interface It is one or more.It can also include other processing, a different citing herein.For example, song is currently played in mobile terminal, it is preceding Platform is currently running player application.The shake triggering switching song shown in fig. 6 faced upward under left-leaning state, plays next.Fig. 7 Shown in face upward under Right deviation state shake triggering turn volume down.The shake triggering bowed under left-leaning state on shown in Fig. 8 tunes up Volume.Shake triggering under Right deviation of bowing on shown in Fig. 9 state repeats playing current song.
The corresponding processing of slant range can be configured by user flexibility, or use default configuration.
One slant range can an only corresponding processing.In order in the limited situation of slant range increase can trigger Processing can trigger not in the case where determining slant range according to right-hand man's difference in conjunction with the detection in step D1 to right-hand man Same processing.
The realization process of control mobile terminal is discussed in detail below by several embodiments.
Figure 19 is a kind of flow chart of method for controlling mobile terminal shown according to an exemplary embodiment, such as Figure 19 institute Show, this method can be realized by mobile terminal, comprising the following steps:
In step 1901, the direction value and angle value of local terminal are obtained.
In step 1902, whether the direction value and angle value of the first axle and the second axis that detect local terminal meet preset direction Range and angular range.When the direction value and angle value of local terminal meet preset direction scope and angular range, continue step 1903, otherwise terminate this process, step 1901 can be continued.
In step 1903, acceleration of the local terminal on third axis is obtained.
In step 1904, detect whether acceleration of the local terminal on third axis is greater than preset acceleration rate threshold.At this When the acceleration at end is greater than preset acceleration rate threshold, continues step 1905, otherwise terminate this process, step can be continued 1901。
In step 1905, the direction scope and the corresponding processing of angular range of satisfaction are triggered.
Figure 20 is a kind of flow chart of method for controlling mobile terminal shown according to an exemplary embodiment, such as Figure 20 institute Show, this method can be realized by mobile terminal, comprising the following steps:
In step 2001, the coordinate of the reference point of local terminal is obtained.
In step 2002, whether the coordinate value of detection local terminal reference point meets preset projector distance range.In local terminal When coordinate value meets preset projector distance range, continues step 2003, otherwise terminate this process, step 2001 can be continued.
In step 2003, linear acceleration of the local terminal in X-axis is obtained.
In step 2004, detect whether linear acceleration of the local terminal in X-axis is greater than preset linear acceleration threshold value. When the linear acceleration of local terminal is greater than preset linear acceleration threshold value, continues step 2005, otherwise terminate this process, it can Continue step 2001.
In step 2005, the corresponding processing of projector distance range of satisfaction is triggered.
By the realization process described above for having understood control mobile terminal, which is realized by mobile terminal, below needle The internal structure and function of the equipment are introduced.
Figure 21 is a kind of schematic device for controlling mobile terminal shown according to an exemplary embodiment.Reference Figure 21, The device includes: tilt detection module 2101, acceleration detection module 2102 and trigger module 2103.
Whether tilt detection module 2101, the heeling condition numerical value for detecting local terminal meet preset slant range.
Acceleration detection module 2102, for detecting when the heeling condition numerical value of local terminal meets preset slant range Whether the acceleration of local terminal is greater than preset acceleration rate threshold.
Trigger module 2103 triggers preset processing when being greater than preset acceleration rate threshold for the acceleration in local terminal.
In one embodiment, the heeling condition numerical value includes direction value and angle value;Alternatively, including projector distance Value.Correspondingly, the slant range includes preset direction scope and angular range;Alternatively, including preset projector distance model It encloses.
In one embodiment, the heeling condition numerical value include the first axle in three-dimensional cartesian coordinate system direction value and The direction value and first axle and the corresponding angle value of the second axis of second axis;The preset direction scope includes three-dimensional The direction scope of the direction scope of first axle in rectangular coordinate system and the second axis, the preset angular range includes first axle Angular range corresponding with the second axis.
As shown in figure 22, the acceleration detection module 2102 includes: the first acceleration unit 21021.
First acceleration unit 21021, for meeting preset first axle and in the direction value of first axle and the second axis The direction scope and first axle and the corresponding angle value of the second axis of two axis meet preset first axle and the second axis is right respectively When the angular range answered, local terminal is detected in the acceleration of third axis direction and whether is greater than preset acceleration rate threshold.
In one embodiment, as shown in figure 23, described device further include: projection module 2104 and spacing module 2105.
Projection module 2104, for the linear projection between preset two reference points is each into three-dimensional cartesian coordinate system On a axis.
Spacing module 2105, for the length value of the projection on each axis to be determined as the projector distance on each axis Value.
In one embodiment, the direction scope include first axle be greater than 0 and second axis be greater than 0 when, the angle model It encloses and is greater than in 0 ° and range and the second axis less than 90 ° in -90 ° and range less than 0 °, the second axis including being greater than in first axle Range greater than -90 ° and less than 0 °.
Alternatively, the direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range include first It is greater than on -90 ° and the range less than 0 ° and the second axis on axis and is greater than 0 ° and the range less than 90 °.
Alternatively, the direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes first It is greater than on -90 ° and the range less than 0 ° and the second axis on axis and is greater than -90 ° and the range less than 0 °.
In one embodiment, the direction scope include first axle be greater than 0 and second axis be greater than 0 when, the angle model It encloses including being greater than -80 ° in first axle and range less than -40 °, being greater than 10 ° and range and the second axis less than 40 ° on the second axis The upper range greater than -40 ° and less than -10 °.
Alternatively, the direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range include first It is greater than on -80 ° and the range less than -40 ° and the second axis on axis and is greater than 10 ° and the range less than 40 °.
Alternatively, the direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes first It is greater than the range for being greater than -40 ° on -80 ° and the range less than -40 ° and the second axis and being less than -10 ° on axis.
In one embodiment, the direction value is obtained by the gravity sensor of local terminal;The angle value is logical Cross the direction sensor acquisition of local terminal;The projector distance value is obtained by the gravity sensor of local terminal.
In one embodiment, the preset slant range is multiple, and different slant ranges corresponds to different processing,
The trigger module 2103 triggers the heeling condition when the acceleration of local terminal is greater than preset acceleration rate threshold Processing corresponding to the corresponding slant range of numerical value.
In one embodiment, as shown in figure 24, described device further include: right-hand man's detection module 2106.
Right-hand man's detection module 2106 is placed in left hand or the right hand for detecting local terminal.
As shown in figure 25, the tilt detection module 2101 includes: the first tilt detection unit 21011.
Whether the first tilt detection unit 21011, the heeling condition numerical value for detecting local terminal meet the hand pair detected The preset direction answered and angular range.
In one embodiment, the preset processing includes: solution lock screen, switching song, into screening-mode and rotation Turn one or more in interface.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Figure 26 is shown according to an exemplary embodiment a kind of for controlling the block diagram of the device 2600 of mobile terminal.Example Such as, device 2600 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, and plate is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Figure 26, device 2600 may include following one or more components: processing component 2602, memory 2604, Power supply module 2606, multimedia component 2608, audio component 2610, the interface 2612 of input/output (I/O), sensor module 2614 and communication component 2616.
The integrated operation of the usual control device 2600 of processing component 2602, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 2602 may include one or more processors 2620 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 2602 may include one or more moulds Block, convenient for the interaction between processing component 2602 and other assemblies.For example, processing component 2602 may include multi-media module, To facilitate the interaction between multimedia component 2608 and processing component 2602.
Memory 2604 is configured as storing various types of data to support the operation in equipment 2600.These data Example includes the instruction of any application or method for operating on device 2600, contact data, telephone book data, Message, picture, video etc..Memory 2604 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 2606 provides electric power for the various assemblies of device 2600.Electric power assembly 2606 may include power management System, one or more power supplys and other with for device 2600 generate, manage, and distribute the associated component of electric power.
Multimedia component 2608 includes the screen of one output interface of offer between described device 2600 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 2608 includes a front camera and/or rear camera.When equipment 2600 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 2610 is configured as output and/or input audio signal.For example, audio component 2610 includes a wheat Gram wind (MIC), when device 2600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 2604 or via communication Component 2616 is sent.In some embodiments, audio component 2610 further includes a loudspeaker, is used for output audio signal.
I/O interface 2612 provides interface, above-mentioned peripheral interface module between processing component 2602 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 2614 includes one or more sensors, and the state for providing various aspects for device 2600 is commented Estimate.For example, sensor module 2614 can detecte the state that opens/closes of equipment 2600, the relative positioning of component, such as institute The display and keypad that component is device 2600 are stated, sensor module 2614 can be with detection device 2600 or device 2600 The position change of one component, the existence or non-existence that user contacts with device 2600,2600 orientation of device or acceleration/deceleration and The temperature change of device 2600.Sensor module 2614 may include proximity sensor, be configured in not any object It is detected the presence of nearby objects when reason contact.Sensor module 2614 can also include optical sensor, as CMOS or ccd image are passed Sensor, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 2616 is configured to facilitate the communication of wired or wireless way between device 2600 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 2600,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 2616 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 2616 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 2600 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 2604 of instruction, above-metioned instruction can be executed by the processor 2620 of device 2600 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of device controlling mobile terminal, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Whether the heeling condition numerical value of detection local terminal meets preset slant range;
When the heeling condition numerical value of local terminal meets preset slant range, detect local terminal acceleration whether be greater than it is default Acceleration rate threshold;
When the acceleration of local terminal is greater than preset acceleration rate threshold, preset processing is triggered.
The processor can be additionally configured to:
The heeling condition numerical value includes direction value and angle value;Alternatively, including projector distance value;
The slant range includes preset direction scope and angular range;Alternatively, including preset projector distance range.
The processor can be additionally configured to:
The heeling condition numerical value includes the direction value of the first axle in three-dimensional cartesian coordinate system and the direction value of the second axis, And first axle and the corresponding angle value of the second axis;The preset direction scope includes in three-dimensional cartesian coordinate system The direction scope of the direction scope of one axis and the second axis, the preset angular range include that first axle and the second axis respectively correspond Angular range;
It is described when the heeling condition numerical value of local terminal meets preset slant range, whether the acceleration for detecting local terminal is greater than Preset acceleration rate threshold, comprising: meet the direction of preset first axle and the second axis in the direction value of first axle and the second axis Range and first axle and the corresponding angle value of the second axis meet preset first axle and the corresponding angle model of the second axis When enclosing, local terminal is detected in the acceleration of third axis direction and whether is greater than preset acceleration rate threshold.
The processor can be additionally configured to:
The projector distance value obtains in the following manner:
By the linear projection between preset two reference points into three-dimensional cartesian coordinate system on each axis;
The length value of projection on each axis is determined as to project distance value on each axis.
The processor can be additionally configured to:
The direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes big in first axle It is greater than on 0 ° and the range less than 90 ° and the second axis in range, the second axis in -90 ° and less than 0 ° and is greater than -90 ° and less than 0 ° Range;Or
The direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than 0 ° and the range less than 90 ° in range and the second axis in -90 ° and less than 0 °;Or
The direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than -90 ° and the range less than 0 ° in range and the second axis in -90 ° and less than 0 °.
The processor can be additionally configured to:
The direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes big in first axle It is in -80 ° and greater than -40 ° and small on 10 ° and the range less than 40 ° and the second axis less than being greater than on -40 ° of range, the second axis In -10 ° of range;Or
The direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than 10 ° and the range less than 40 ° in range and the second axis in -80 ° and less than -40 °;Or
The direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than -40 ° and the range less than -10 ° in range and the second axis in -80 ° and less than -40 °.
The processor can be additionally configured to:
The direction value is obtained by the gravity sensor of local terminal;
The angle value is obtained by the direction sensor of local terminal;
The projector distance value is obtained by the gravity sensor of local terminal.
The processor can be additionally configured to:
The preset slant range be it is multiple, different slant ranges corresponds to different processing;
When the acceleration in local terminal is greater than preset acceleration rate threshold, preset processing is triggered, comprising: in local terminal When acceleration is greater than preset acceleration rate threshold, processing corresponding to the corresponding slant range of the heeling condition numerical value is triggered.
The processor can be additionally configured to:
The method also includes: detection local terminal is placed in left hand or the right hand;
Whether the heeling condition numerical value of the detection local terminal meets preset slant range, comprising: detects the inclination of local terminal Whether status values meet the corresponding preset direction of the hand detected and angular range.
The processor can be additionally configured to:
The preset processing include: solve lock screen, switching song, into one in screening-mode and rotary interface or It is multinomial.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that mobile terminal is able to carry out a kind of method for controlling mobile terminal, which comprises
Whether the heeling condition numerical value of detection local terminal meets preset slant range;
When the heeling condition numerical value of local terminal meets preset slant range, detect local terminal acceleration whether be greater than it is default Acceleration rate threshold;
When the acceleration of local terminal is greater than preset acceleration rate threshold, preset processing is triggered.
Instruction in the storage medium can also include:
The heeling condition numerical value includes direction value and angle value;Alternatively, including projector distance value;
The slant range includes preset direction scope and angular range;Alternatively, including preset projector distance range.
Instruction in the storage medium can also include:
The heeling condition numerical value includes the direction value of the first axle in three-dimensional cartesian coordinate system and the direction value of the second axis, And first axle and the corresponding angle value of the second axis;The preset direction scope includes in three-dimensional cartesian coordinate system The direction scope of the direction scope of one axis and the second axis, the preset angular range include that first axle and the second axis respectively correspond Angular range;
It is described when the heeling condition numerical value of local terminal meets preset slant range, whether the acceleration for detecting local terminal is greater than Preset acceleration rate threshold, comprising: meet the direction of preset first axle and the second axis in the direction value of first axle and the second axis Range and first axle and the corresponding angle value of the second axis meet preset first axle and the corresponding angle model of the second axis When enclosing, local terminal is detected in the acceleration of third axis direction and whether is greater than preset acceleration rate threshold.
Instruction in the storage medium can also include:
The projector distance value obtains in the following manner:
By the linear projection between preset two reference points into three-dimensional cartesian coordinate system on each axis;
The length value of projection on each axis is determined as to project distance value on each axis.
Instruction in the storage medium can also include:
The direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes big in first axle It is greater than on 0 ° and the range less than 90 ° and the second axis in range, the second axis in -90 ° and less than 0 ° and is greater than -90 ° and less than 0 ° Range;Or
The direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than 0 ° and the range less than 90 ° in range and the second axis in -90 ° and less than 0 °;Or
The direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than -90 ° and the range less than 0 ° in range and the second axis in -90 ° and less than 0 °.
Instruction in the storage medium can also include:
The direction scope includes that first axle is greater than 0 and second axis when being greater than 0, and the angular range includes big in first axle It is in -80 ° and greater than -40 ° and small on 10 ° and the range less than 40 ° and the second axis less than being greater than on -40 ° of range, the second axis In -10 ° of range;Or
The direction scope include first axle be greater than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than 10 ° and the range less than 40 ° in range and the second axis in -80 ° and less than -40 °;Or
The direction scope include first axle less than 0 and second axis less than 0 when, the angular range includes big in first axle It is greater than -40 ° and the range less than -10 ° in range and the second axis in -80 ° and less than -40 °.
Instruction in the storage medium can also include:
The direction value is obtained by the gravity sensor of local terminal;
The angle value is obtained by the direction sensor of local terminal;
The projector distance value is obtained by the gravity sensor of local terminal.
Instruction in the storage medium can also include:
The preset slant range be it is multiple, different slant ranges corresponds to different processing;
When the acceleration in local terminal is greater than preset acceleration rate threshold, preset processing is triggered, comprising: in local terminal When acceleration is greater than preset acceleration rate threshold, processing corresponding to the corresponding slant range of the heeling condition numerical value is triggered.
Instruction in the storage medium can also include:
The method also includes: detection local terminal is placed in left hand or the right hand;
Whether the heeling condition numerical value of the detection local terminal meets preset slant range, comprising: detects the inclination of local terminal Whether status values meet the corresponding preset direction of the hand detected and angular range.
Instruction in the storage medium can also include:
The preset processing include: solve lock screen, switching song, into one in screening-mode and rotary interface or It is multinomial.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (11)

1. a kind of method for controlling mobile terminal characterized by comprising
Detection local terminal is placed in left hand or the right hand;
Whether the heeling condition numerical value of detection local terminal meets the corresponding preset direction of the hand detected and angular range;
When the heeling condition numerical value of local terminal meets preset slant range, whether the acceleration for detecting local terminal is greater than preset add Threshold speed;
When the acceleration of local terminal is greater than preset acceleration rate threshold, preset processing is triggered;
Wherein, the heeling condition numerical value includes direction value and angle value;Alternatively, including projector distance value;
The slant range includes preset direction scope and angular range;Alternatively, including preset projector distance range;
When the heeling condition numerical value includes direction value and angle value, and the slant range includes preset direction scope and angle When spending range, the heeling condition numerical value includes the direction value of the first axle in three-dimensional cartesian coordinate system and the direction of the second axis Value and first axle and the corresponding angle value of the second axis;The preset direction scope includes in three-dimensional cartesian coordinate system First axle direction scope and the second axis direction scope, the preset angular range include first axle and the second axis difference Corresponding angular range;
It is described when the heeling condition numerical value of local terminal meets preset slant range, detect local terminal acceleration whether be greater than it is default Acceleration rate threshold, comprising: meet the direction scope of preset first axle and the second axis in the direction value of first axle and the second axis, And first axle and the second axis corresponding angle value be when meeting preset first axle and the corresponding angular range of the second axis, It detects local terminal and whether is greater than preset acceleration rate threshold in the acceleration of third axis direction;
The three-dimensional cartesian coordinate system further includes third axis, wherein second axis and the third axis constitute the three-dimensional straight The horizontal plane of angular coordinate system, the third axis and the first axle constitute a vertical plane of the three-dimensional cartesian coordinate system, institute The positive direction for stating the second axis is direction in paper.
2. it is according to claim 1 control mobile terminal method, which is characterized in that the projector distance value be by with What under type obtained:
Line between preset two reference points is projected in three-dimensional cartesian coordinate system on each axis;
The length value of projection on each axis is determined as to project distance value on each axis.
3. the method for control mobile terminal according to claim 1, which is characterized in that the direction value is by local terminal What gravity sensor obtained;
The angle value is obtained by the direction sensor of local terminal;
The projector distance value is obtained by the gravity sensor of local terminal.
4. the method for control mobile terminal according to claim 1, which is characterized in that the preset slant range is more A, different slant ranges corresponds to different processing;
When the acceleration in local terminal is greater than preset acceleration rate threshold, preset processing is triggered, comprising: in the acceleration of local terminal When degree is greater than preset acceleration rate threshold, processing corresponding to the corresponding slant range of the heeling condition numerical value is triggered.
5. the method for control mobile terminal according to claim 1, which is characterized in that the preset processing includes: solution Lock screen, switching song, into one or more in screening-mode and rotary interface.
6. a kind of device for controlling mobile terminal characterized by comprising
Right-hand man's detection module is placed in left hand or the right hand for detecting local terminal;
Tilt detection module includes:
First tilt detection unit, it is corresponding preset whether the heeling condition numerical value for detecting local terminal meets the hand detected Direction and angular range;
Acceleration detection module, for when the heeling condition numerical value of local terminal meets preset slant range, detecting adding for local terminal Whether speed is greater than preset acceleration rate threshold;
Trigger module triggers preset processing when being greater than preset acceleration rate threshold for the acceleration in local terminal;The inclination Status values include direction value and angle value;Alternatively, including projector distance value;
The slant range includes preset direction scope and angular range;Alternatively, including preset projector distance range;
Wherein, when the heeling condition numerical value includes direction value and angle value, and the slant range includes preset direction model When enclosing with angular range, the heeling condition numerical value includes the direction value and the second axis of the first axle in three-dimensional cartesian coordinate system Direction value and first axle and the corresponding angle value of the second axis;The preset direction scope includes three-dimensional rectangular coordinate The direction scope of the direction scope of first axle in system and the second axis, the preset angular range include first axle and the second axis Corresponding angular range;
The acceleration detection module includes:
First acceleration unit, for meeting the direction of preset first axle and the second axis in the direction value of first axle and the second axis Range and first axle and the corresponding angle value of the second axis meet preset first axle and the corresponding angle model of the second axis When enclosing, local terminal is detected in the acceleration of third axis direction and whether is greater than preset acceleration rate threshold;
The three-dimensional cartesian coordinate system further includes third axis, wherein second axis and the third axis constitute the three-dimensional straight The horizontal plane of angular coordinate system, the third axis and the first axle constitute a vertical plane of the three-dimensional cartesian coordinate system, institute The positive direction for stating the second axis is direction in paper.
7. the device of control mobile terminal according to claim 6, which is characterized in that described device further include:
Projection module, for the line between preset two reference points to be projected to each axis in three-dimensional cartesian coordinate system;
Spacing module projects distance value on each axis for being determined as the length value of the projection on each axis.
8. the device of control mobile terminal according to claim 6, which is characterized in that the direction value is by local terminal What gravity sensor obtained;
The angle value is obtained by the direction sensor of local terminal;
The projector distance value is obtained by the gravity sensor of local terminal.
9. the device of control mobile terminal according to claim 6, which is characterized in that the preset slant range is more A, different slant ranges corresponds to different processing;
It is corresponding to trigger the heeling condition numerical value when the acceleration of local terminal is greater than preset acceleration rate threshold for the trigger module Slant range corresponding to processing.
10. the device of control mobile terminal according to claim 6, which is characterized in that the preset processing includes: solution Lock screen, switching song, into one or more in screening-mode and rotary interface.
11. a kind of device for controlling mobile terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Detection local terminal is placed in left hand or the right hand;
Whether the heeling condition numerical value of detection local terminal meets the corresponding preset direction of the hand detected and angular range;
When the heeling condition numerical value of local terminal meets preset slant range, whether the acceleration for detecting local terminal is greater than preset add Threshold speed;
When the acceleration of local terminal is greater than preset acceleration rate threshold, preset processing is triggered;
Wherein, the heeling condition numerical value includes direction value and angle value;Alternatively, including projector distance value;
The slant range includes preset direction scope and angular range;Alternatively, including preset projector distance range;
When the heeling condition numerical value includes direction value and angle value, and the slant range includes preset direction scope and angle When spending range, the heeling condition numerical value includes the direction value of the first axle in three-dimensional cartesian coordinate system and the direction of the second axis Value and first axle and the corresponding angle value of the second axis;The preset direction scope includes in three-dimensional cartesian coordinate system First axle direction scope and the second axis direction scope, the preset angular range include first axle and the second axis difference Corresponding angular range;
It is described when the heeling condition numerical value of local terminal meets preset slant range, detect local terminal acceleration whether be greater than it is default Acceleration rate threshold, comprising: meet the direction scope of preset first axle and the second axis in the direction value of first axle and the second axis, And first axle and the second axis corresponding angle value be when meeting preset first axle and the corresponding angular range of the second axis, It detects local terminal and whether is greater than preset acceleration rate threshold in the acceleration of third axis direction.
CN201410244805.0A 2014-06-04 2014-06-04 Control the method and device of mobile terminal Active CN104035559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410244805.0A CN104035559B (en) 2014-06-04 2014-06-04 Control the method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410244805.0A CN104035559B (en) 2014-06-04 2014-06-04 Control the method and device of mobile terminal

Publications (2)

Publication Number Publication Date
CN104035559A CN104035559A (en) 2014-09-10
CN104035559B true CN104035559B (en) 2019-08-06

Family

ID=51466359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410244805.0A Active CN104035559B (en) 2014-06-04 2014-06-04 Control the method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN104035559B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828493B (en) 2015-01-06 2018-09-11 中强光电股份有限公司 Lighting system and its multi-mode lamps and lanterns
CN104615921B (en) * 2015-01-29 2018-02-09 深圳市金立通信设备有限公司 A kind of terminal
CN106062679B (en) 2015-02-15 2019-10-25 华为技术有限公司 A kind of method, apparatus and terminal controlling display screen
CN104978028B (en) * 2015-06-23 2018-09-04 广东欧珀移动通信有限公司 A kind of control method and mobile terminal of mobile terminal
CN105677343A (en) * 2016-01-04 2016-06-15 上海斐讯数据通信技术有限公司 Mobile terminal convenient operation method and mobile terminal
CN105791563B (en) * 2016-02-26 2020-08-21 惠州Tcl移动通信有限公司 Bluetooth visibility control method of mobile terminal and mobile terminal
CN106021008B (en) * 2016-05-23 2019-07-26 维沃移动通信有限公司 A kind of control method and terminal
CN106125906B (en) * 2016-06-13 2019-03-29 广东小天才科技有限公司 A kind of Single-hand control method and wearable device of wearable device
CN107643908A (en) * 2016-07-20 2018-01-30 中兴通讯股份有限公司 Voice application trigger control method, device and terminal
CN106354494B (en) * 2016-08-23 2020-02-28 宇龙计算机通信科技(深圳)有限公司 Method and system for quickly starting application program
CN106403917B (en) * 2016-09-06 2019-02-01 青岛海信移动通信技术股份有限公司 Wall sag detection method and device
CN106339107A (en) * 2016-11-14 2017-01-18 福建中金在线信息科技有限公司 Page Control Method and System
CN108089729A (en) * 2016-11-23 2018-05-29 中兴通讯股份有限公司 Terminal and its method for realizing reading posture detection
CN107247554B (en) * 2017-04-14 2020-09-25 Tcl移动通信科技(宁波)有限公司 Terminal, method for realizing control based on multiple modes and storage device thereof
CN107483713B (en) * 2017-06-27 2018-09-21 惠州学院 A kind of method and its system returning to default desktop
CN107566620A (en) * 2017-08-22 2018-01-09 维沃移动通信有限公司 A kind of voice frequency regulating method, mobile terminal and computer-readable recording medium
CN107589988A (en) * 2017-08-29 2018-01-16 中国移动通信集团公司 Control method, device and the computer-readable storage medium of application function
CN107831984A (en) * 2017-10-31 2018-03-23 努比亚技术有限公司 A kind of switching method, terminal and the computer-readable recording medium of singlehanded pattern
WO2019090570A1 (en) * 2017-11-09 2019-05-16 深圳市柔宇科技有限公司 Flexible mobile phone bending radian control method and flexible mobile phone
CN109529320B (en) * 2018-12-29 2022-04-12 网易(杭州)网络有限公司 Steering control method and device in game

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980516A (en) * 2010-10-26 2011-02-23 浙江大学 Method for locking and unlocking screen of mobile phone with Android system
CN102299996A (en) * 2011-08-19 2011-12-28 华为终端有限公司 Handheld device operating mode distinguishing method and handheld device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060232573A1 (en) * 2005-04-19 2006-10-19 Sharp Kabushiki Kaisha Display description format providing device, method of controlling same, communications network system, display control device, method of controlling same, display system, program for controlling display description format providing device, program for controlling display control device and storage mediun storing program
CN102736853A (en) * 2012-05-17 2012-10-17 北京三星通信技术研究有限公司 Screen unlocking method, screen locking method and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980516A (en) * 2010-10-26 2011-02-23 浙江大学 Method for locking and unlocking screen of mobile phone with Android system
CN102299996A (en) * 2011-08-19 2011-12-28 华为终端有限公司 Handheld device operating mode distinguishing method and handheld device

Also Published As

Publication number Publication date
CN104035559A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN104035559B (en) Control the method and device of mobile terminal
CN106055098B (en) Every empty gesture operation method and device
US11200022B2 (en) Method and apparatus of playing audio data
CN106155504B (en) Mould group awakening method and device
CN104866199B (en) Button operation processing method and processing device under singlehanded mode, electronic equipment
CN106547663B (en) Key management method and device
CN106412706B (en) Control method, device and its equipment of video playing
JP2019537285A (en) Method and apparatus for preventing terminal erroneous contact
KR20170058051A (en) Portable apparatus and method for controlling a screen
CN104034309A (en) Angle measurement method, angle measurement device and terminal
CN103995666A (en) Method and device for setting work mode
CN104123075B (en) The method of control terminal and device
CN105554255B (en) Method of controlling operation thereof and device for terminal device
CN106547466A (en) Display control method and device
CN106775525A (en) Control the method and device of projecting apparatus
CN107102801A (en) Terminal screen spinning solution and device
CN104301610A (en) Image shooting control method and device
CN109151296A (en) Electronic equipment, switching method and device, computer readable storage medium
CN106603835A (en) Method and device for adjusting position of target object
CN105159496A (en) Touch event response method and mobile terminal
WO2016095395A1 (en) Method and device for activating operation state of mobile terminal
CN106127132B (en) The reminding method and device, electronic equipment of slidingtype typing fingerprint
CN106534658A (en) Method and apparatus for controlling shooting of camera and mobile terminal
CN108509127B (en) Method and device for starting screen recording task and computer equipment
CN104615327B (en) For the window display method and device in game process

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant