CN104123075B - The method of control terminal and device - Google Patents

The method of control terminal and device Download PDF

Info

Publication number
CN104123075B
CN104123075B CN201410284086.5A CN201410284086A CN104123075B CN 104123075 B CN104123075 B CN 104123075B CN 201410284086 A CN201410284086 A CN 201410284086A CN 104123075 B CN104123075 B CN 104123075B
Authority
CN
China
Prior art keywords
angle
value
axis
terminal
preset
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
CN201410284086.5A
Other languages
Chinese (zh)
Other versions
CN104123075A (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 CN201410284086.5A priority Critical patent/CN104123075B/en
Publication of CN104123075A publication Critical patent/CN104123075A/en
Application granted granted Critical
Publication of CN104123075B publication Critical patent/CN104123075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure is directed to method and the device of control terminal, described method comprises: whether the heeling condition parameter of sense terminals meets the tilt condition preset; When described heeling condition parameter meets described tilt condition, identify whether described terminal rotates around an axle; When identifying described terminal around an axle rotation, triggering described terminal and performing the operation preset.Due to can identify terminal rotate for user enable time, triggering terminal perform preset operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, which thereby enhance the accuracy of terminal control and operation.

Description

The method of control terminal and device
Technical field
The disclosure relates to communication technical field, particularly relates to method and the device of control terminal.
Background technology
Along with the development of intelligent terminal and universal, gravity sensor (G-sensor is provided with in major part intelligent terminal, Gravity-sensor), gravity sensor can perception terminal in accelerator, such as rock, fall, rise, lower degradation, act on the change of the accelerating force in terminal, thus various control can be carried out according to the change of accelerating force to terminal.More common a kind of control mode is that, when terminal is in dormant state, user rocks terminal, and now gravity sensor senses that accelerating force changes, then terminal can be waken up from dormant state.
But, due to terminal various vibrations and rotate gravity sensor all can be made to sense the change of accelerating force, therefore terminal rock into non-user enable time, terminal also can receive the accelerating force change information that gravity sensor senses, cause terminal produce maloperation.
Summary of the invention
The disclosure provides method and the device of control terminal, to solve in correlation technique when gravity sensor senses the enable accelerating force change information of non-user, easily makes terminal produce the problem of maloperation.
According to the first aspect of disclosure embodiment, provide a kind of method of control terminal, described method comprises:
Whether the heeling condition parameter of sense terminals meets the tilt condition preset;
When described heeling condition parameter meets described tilt condition, identify whether described terminal rotates around an axle;
When identifying described terminal around an axle rotation, triggering described terminal and performing the operation preset.
Optionally, whether the heeling condition parameter of described sense terminals meets the tilt condition preset, and comprising:
The direction value as the heeling condition parameter of described terminal and angle value is obtained in three-dimensional cartesian coordinate system;
Judge described direction value whether within the scope of the direction value preset, and described angle value is whether within the scope of the angle value preset;
When described direction value preset direction value within the scope of, and described angle value preset angle value within the scope of time, determine that the heeling condition parameter of described terminal meets default tilt condition.
Optionally, described direction value is within the scope of the direction value preset, and described angle value is within the scope of the angle value preset, and comprising:
The direction value of Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset.
Optionally, the direction value of described Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset, and comprising:
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is less than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °.
Optionally, described acquisition, as the direction value of the heeling condition parameter of described terminal and angle value, comprising:
The direction value as described heeling condition parameter is obtained by gravity sensor;
The angle value as described heeling condition parameter is obtained by angular transducer.
Optionally, whether the described terminal of described identification rotates around an axle, comprising:
Obtain the first angle of rotation;
After postponing prefixed time interval, obtain the second angle of rotation;
Calculate the angle of rotation difference of described second angle of rotation and described first angle of rotation;
Judge described angle of rotation difference whether in the rotation difference range preset;
When described angle of rotation difference is in described rotation difference range, determine that described terminal is rotated around an axle.
Optionally, describedly judge that whether described angle of rotation difference comprises in the rotation difference range preset:
When described first angle of rotation and described second angle of rotation are roll angle, judge that the roll angle difference of the first roll angle and the second roll angle is whether in the roll angle difference range preset;
When described first angle of rotation and described second angle of rotation are the angle of pitch, judge that the angle of pitch difference of first angle of pitch and second angle of pitch is whether in the angle of pitch difference range preset;
When described first angle of rotation and described second angle of rotation are the accumulated angle of roll angle and the angle of pitch, judge that the accumulated angle difference of the first accumulated angle and the second accumulated angle is whether in the accumulated angle difference range preset.
Optionally, described when described angle of rotation difference is in described rotation difference range, determine that described terminal is rotated around an axle, comprising:
When described roll angle difference is between roll angle difference range 2 ° to 20 °, determine that described terminal is around Z axis left-right rotation;
When described angle of pitch difference is between angle of pitch difference range 20 ° to 45 °, determine that described terminal is rotated before and after Y-axis;
When the roll angle difference component in described accumulated angle difference is between corner difference range 2 ° to 20 °, and angle of pitch difference component between angle of pitch difference range 20 ° to 45 ° time, determine that described terminal is rotated around the synthesis axle of Z axis and Y-axis.
Optionally, described default operation comprises an at least following operation: unlock terminal screen, switch song, enter screening-mode, rotate terminal demonstration interface.
According to the second aspect of disclosure embodiment, provide a kind of device of control terminal, described device comprises:
Detecting unit, whether the heeling condition parameter for sense terminals meets the tilt condition preset;
Recognition unit, for when described heeling condition parameter meets described tilt condition, identifies whether described terminal rotates around an axle;
Trigger element, for when identifying described terminal around an axle rotation, triggering described terminal and performing the operation preset.
Optionally, described detecting unit comprises:
First parameter acquiring subelement, for obtaining direction value as the heeling condition parameter of described terminal and angle value in three-dimensional cartesian coordinate system;
First scope judgment sub-unit, for judging described direction value whether within the scope of the direction value preset, and whether described angle value is within the scope of the angle value preset;
First detect determine subelement, for when described direction value preset direction value within the scope of, and described angle value preset angle value within the scope of time, determine that the heeling condition parameter of described terminal meets default tilt condition.
Optionally, described direction value is within the scope of the direction value preset, and described angle value comprises within the scope of the angle value preset:
The direction value of Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset.
Optionally, the direction value of described Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis comprises within the scope of the roll angle preset:
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is less than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °.
Optionally, described first parameter acquiring subelement comprises:
Direction value acquisition module, for obtaining the direction value as described heeling condition parameter by gravity sensor;
Angle value acquisition module, for obtaining the angle value as described heeling condition parameter by angular transducer.
Optionally, described recognition unit comprises:
Angle of rotation obtains subelement, for obtaining the first angle of rotation, and after postponing prefixed time interval, obtains the second angle of rotation;
Mathematic interpolation subelement, for calculating the angle of rotation difference of described second angle of rotation and described first angle of rotation;
Difference judgment sub-unit, for judging described angle of rotation difference whether in the rotation difference range preset;
Subelement is determined in identification, for when described angle of rotation difference is in described rotation difference range, determines that described terminal is rotated around an axle.
Optionally, described difference judgment sub-unit comprises:
Roll angle difference judge module, for when described first angle of rotation and described second angle of rotation are roll angle, judges that the roll angle difference of the first roll angle and the second roll angle is whether in the roll angle difference range preset;
Angle of pitch difference judge module, for when described first angle of rotation and described second angle of rotation are the angle of pitch, judges that the angle of pitch difference of first angle of pitch and second angle of pitch is whether in the angle of pitch difference range preset;
Accumulated angle difference judge module, for when described first angle of rotation and described second angle of rotation are the accumulated angle of roll angle and the angle of pitch, judges that the accumulated angle difference of the first accumulated angle and the second accumulated angle is whether in the accumulated angle difference range preset.
Optionally, described identification determines that subelement comprises:
Z axis rotates identification module, for when described roll angle difference is between roll angle difference range 2 ° to 20 °, determines that described terminal is around Z axis left-right rotation;
Y-axis rotates identification module, for when described angle of pitch difference is between angle of pitch difference range 20 ° to 45 °, determines that described terminal is rotated before and after Y-axis;
Synthesis axle rotates identification module, for when roll angle difference component in described accumulated angle difference is between corner difference range 2 ° to 20 °, and angle of pitch difference component between angle of pitch difference range 20 ° to 45 ° time, determine that described terminal is rotated around the synthesis axle of Z axis and Y-axis.
Optionally, described default operation comprises an at least following operation: unlock terminal screen, switch song, enter screening-mode, rotate terminal demonstration interface.
According to the third aspect of disclosure embodiment, a kind of device of control terminal is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Whether the heeling condition parameter of sense terminals meets the tilt condition preset;
When described heeling condition parameter meets described tilt condition, identify whether described terminal rotates around an axle;
When identifying described terminal around an axle rotation, triggering described terminal and performing the operation preset.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Whether the disclosure meets the tilt condition preset by the heeling condition parameter of sense terminals, judge whether terminal is placed in the hand of user, thus when user's hand held terminal, whether rotated around an axle by identification terminal, judge whether to be rotated by user's enabled terminals, and then trigger the operation preset.Due to can identify terminal rotate for user enable time, triggering terminal perform preset operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, which thereby enhance the accuracy of terminal control and operation.
The disclosure also by different heeling condition parameters, comprises the combination of direction and angle, and projector distance, judges the heeling condition of terminal, therefore can be applicable in multiple terminal or plurality of application scenes as required flexibly; And above-mentioned heeling condition parameter can obtain based on the gravity sensor generally arranged in terminal and direction sensor, and therefore implementation procedure is simple, and detection efficiency is higher.
The disclosure is considered in actual applications, when terminal is placed in desktop or pocket, terminal is in plumbness or horizontality usually, therefore the disclosure eliminates level or vertical situation of placing terminal by arranging slant range, and can determine that terminal is held by user, user is by hand held terminal and rotate and trigger default process, reduces because rocking desktop or user movement causes terminal in pocket to rock the maloperation of generation with this.
The slant range that the disclosure provides and rotation difference range, more meet the inclined degree of terminal when general user holds terminal, and rotate terminal time terminal rotation amplitude, therefore when more accurately determining that terminal is held by user, the rotation of terminal is by the enable rotation of user, but not the terminal that general external force causes is rotated, therefore now trigger the wish that default operation more meets user, it is more accurate to operate.
The disclosure can trigger multiple different operation by rotating terminal, can be applicable to multiple application and different application scenarioss, better user experience.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the method flow diagram of a kind of control terminal of the disclosure according to an exemplary embodiment.
Fig. 2 is the method flow diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment.
Fig. 3 A is a kind of terminal heeling condition schematic diagram of the disclosure according to an exemplary embodiment.
Fig. 3 B is the another kind of terminal heeling condition schematic diagram of the disclosure according to an exemplary embodiment.
Fig. 3 C is the another kind of terminal heeling condition schematic diagram of the disclosure according to an exemplary embodiment.
Fig. 3 D is the another kind of terminal heeling condition schematic diagram of the disclosure according to an exemplary embodiment.
Fig. 3 E is that a kind of user of the disclosure according to an exemplary embodiment holds terminal schematic diagram.
Fig. 3 F is that the another kind of user of the disclosure according to an exemplary embodiment holds terminal schematic diagram.
Fig. 3 G is that the another kind of user of the disclosure according to an exemplary embodiment holds terminal schematic diagram.
Fig. 3 H is that the another kind of user of the disclosure according to an exemplary embodiment holds terminal schematic diagram.
Fig. 3 I is that a kind of user of the disclosure according to an exemplary embodiment rotates terminal schematic diagram.
Fig. 3 J is that the another kind of user of the disclosure according to an exemplary embodiment rotates terminal schematic diagram.
Fig. 3 K is that the another kind of user of the disclosure according to an exemplary embodiment rotates terminal schematic diagram.
Fig. 3 L is that the another kind of user of the disclosure according to an exemplary embodiment rotates terminal schematic diagram.
Fig. 4 is the device block diagram of a kind of control terminal of the disclosure according to an exemplary embodiment.
Fig. 5 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment.
Fig. 6 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment.
Fig. 7 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment.
Fig. 8 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment.
Fig. 9 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment.
Figure 10 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment.
Figure 11 is the structural representation of a kind of device for control terminal of the disclosure according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure." one ", " described " and " being somebody's turn to do " of the singulative used in disclosure and the accompanying claims book is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the disclosure, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
In correlation technique, carry out the corresponding operating of triggering terminal by gravity sensor sense acceleration, but the acceleration produced in some scenarios not the acceleration produced by user's enabled terminals.Such as, terminal vertical is inserted in pocket, when user runs, terminal can produce the acceleration in vertical direction, and based on the operation of this acceleration triggering terminal, but the acceleration that this acceleration non-user enabled terminals produce, therefore triggered operation is actual is maloperation.In the disclosure, after being held by user by the inclined degree determination terminal of sense terminals, whether identification terminal rotates around an axle further again, thus determine that terminal is in the enable lower rotation of user, now triggering terminal performs corresponding operation again, terminal maloperation can be avoided, improve the accuracy of control terminal.
As shown in Figure 1, Fig. 1 is the process flow diagram of the method for a kind of control terminal according to an exemplary embodiment, and the method may be used for, in terminal, comprising the following steps:
In a step 101, whether the heeling condition parameter of sense terminals meets the tilt condition preset, and if so, then performs step 102; Otherwise, then current process is terminated.
Terminal in disclosure embodiment can comprise: mobile phone, panel computer PAD etc. are convenient to the terminal that user holds, when user's hand held terminal, terminal is usually in heeling condition in three dimensions, therefore in this step, whether the tilt condition preset is met by the heeling condition parameter of sense terminals, whether can detect that terminal is current to be held by user, the rotation of only holding lower terminal user is only by the enable rotation of user, and the terminal operation of corresponding triggering is only and operates accurately.
In an optional implementation, the heeling condition parameter of terminal can comprise direction value and the angle value of terminal:
Three-dimensional cartesian coordinate system in usual three dimensions is by the Y-axis in vertical direction, and the Z axis on longitudinal direction, and the X-axis composition in horizontal direction, wherein, the angle rotated relative to Y-axis is defined as the angle of pitch, and the angle rotated relative to Z axis is defined as roll angle.When terminal is placed in three-dimensional cartesian coordinate system, the direction value of terminal in disalignment can be obtained by gravity sensor, obtain the angle value of terminal in disalignment by angular transducer; Then judge that the direction value of terminal is whether within the scope of the direction value preset, and the angle value of terminal is whether within the scope of the angle value preset, and can determine the inclined degree of terminal thus more exactly; When described direction value preset direction value within the scope of, and described angle value preset angle value within the scope of time, can think that the heeling condition parameter of described terminal meets default tilt condition, can determine that terminal is arranged in the hand of user thus.
Because the profile of terminal is generally rectangular parallelepiped, adjacent two faces are mutually vertical.Therefore in above-mentioned implementation, the direction value of two axles and the inclined degree of angle value determination terminal can be passed through, namely when the direction value of Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis preset roll angle within the scope of time, just can determine that terminal is arranged in the hand of user.
In another optional implementation, the heeling condition parameter of terminal can comprise projector distance value:
Now can obtain the projector distance of linear projection in three-dimensional cartesian coordinate system on each axle between two reference point default in described terminal; Judge that described projector distance as the heeling condition parameter of described terminal is whether within the scope of the projector distance preset; When described projector distance is within the scope of described projector distance, determine that the heeling condition parameter of described terminal meets default tilt condition.
In a step 102, identify whether described terminal rotates around an axle, if so, then performs step 103; Otherwise, terminate current process.
In this step, detecting that terminal meets certain tilt condition, when namely determining that terminal is held by user, more whether identification terminal rotates around an axle further, thus judge that the rotation of this terminal is enable by user, so that accurate triggering terminal carries out the operation preset.
When whether identification terminal rotates around an axle, can first obtain the first angle of rotation, and after delay prefixed time interval, obtain the second angle of rotation; Calculate the angle of rotation difference of described second angle of rotation and described first angle of rotation; Judge described angle of rotation difference whether in the rotation difference range preset; When described angle of rotation difference is in described rotation difference range, determine that described terminal is rotated around an axle.Wherein, when described first angle of rotation and described second angle of rotation are roll angle, can judge that the roll angle difference of the first roll angle and the second roll angle is whether in the roll angle difference range preset; When described first angle of rotation and described second angle of rotation are the angle of pitch, can judge that the angle of pitch difference of first angle of pitch and second angle of pitch is whether in the angle of pitch difference range preset; When described first angle of rotation and described second angle of rotation are the accumulated angle of roll angle and the angle of pitch, can judge that the accumulated angle difference of the first accumulated angle and the second accumulated angle is whether in the accumulated angle difference range preset.
In step 103, trigger described terminal and perform the operation preset, terminate current process.
In the present embodiment, the operation that the different heeling condition parameters that meet predetermined inclination condition are corresponding different can be pre-set, or, operations corresponding different when disalignment is rotated, or, the operation that different heeling condition parameter is corresponding different with the combination of rotating around disalignment, so that user is under terminal is in different heeling condition, performs different predetermined registration operation by different rotating manner triggering terminal.These predetermined registration operation can comprise: unlock terminal screen, switch song, enter screening-mode, rotate terminal demonstration interface etc.
As seen from the above-described embodiment, whether this embodiment meets the tilt condition preset by the heeling condition parameter of sense terminals, judge whether terminal is placed in the hand of user, thus when user's hand held terminal, whether rotated around an axle by identification terminal, judge whether to be rotated by user's enabled terminals, and then trigger the operation preset.Due to can identify terminal rotate for user enable time, triggering terminal perform preset operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, which thereby enhance the accuracy of terminal control and operation.
As shown in Figure 2, Fig. 2 is the process flow diagram of the method for a kind of control terminal according to an exemplary embodiment, and the method may be used for, in terminal, comprising the following steps:
In step 201, in three-dimensional cartesian coordinate system, obtain the direction value as the heeling condition parameter of terminal and angle value.
Terminal in disclosure embodiment can comprise: mobile phone, panel computer PAD etc. are convenient to the terminal that user holds, when user's hand held terminal, terminal is usually in heeling condition in three dimensions, therefore in this step, first in three-dimensional cartesian coordinate system, the direction value as the heeling condition parameter of terminal and angle value is obtained, to judge whether terminal is held by user according to above-mentioned value further.
Three-dimensional cartesian coordinate system in usual three dimensions is by the Y-axis in vertical direction, and the Z axis on longitudinal direction, and the X-axis composition in horizontal direction, wherein, the angle rotated relative to Y-axis is defined as the angle of pitch, and the angle rotated relative to Z axis is defined as roll angle.See Fig. 3 A to Fig. 3 D, show the three-dimensional cartesian coordinate system of disclosure embodiment, and terminal is in the schematic diagram of horizontality and plumbness in three-dimensional cartesian coordinate system.Wherein, shown in Fig. 3 A and Fig. 3 B, when end level is placed, if the main-vision surface of terminal down in Fig. 3 A, then the angle of Z-direction is 0 °, and the angle of Y direction is 90 °; If the main-vision surface of terminal upward in Fig. 3 B, then the angle of Z-direction is 0 °, and the angle of Y direction is-90 °.Shown in Fig. 3 C and Fig. 3 D, when terminal vertical is placed, if the main-vision surface of terminal is towards a left side in Fig. 3 C, then the angle of Z-direction is 90 °, and the angle of Y direction is 0 °; If the main-vision surface of terminal is towards the right side in Fig. 3 D, then the angle of Z-direction is-90 °, and the angle of Y direction is 0 °.
When terminal is placed in three-dimensional cartesian coordinate system, the direction value of terminal in disalignment can be obtained by gravity sensor, obtain the angle value of terminal in disalignment by angular transducer.See Fig. 3 E to Fig. 3 H, show the heeling condition of terminal when common four kinds of users hold terminal: wherein, Fig. 3 E shows user's right hand and holds terminal, and terminal main-vision surface upward time, terminal presents left-leaning heeling condition of facing upward; Fig. 3 F shows user's left hand and holds terminal, and terminal main-vision surface upward time, terminal presents the heeling condition of Right deviation of facing upward; Fig. 3 G shows user's right hand and holds terminal, and terminal main-vision surface down time, terminal presents left-leaning heeling condition of bowing; Fig. 3 H shows user's left hand and holds terminal, and terminal depending on facing down time, terminal presents the heeling condition of Right deviation of bowing.In this step, no matter user adopts which kind of mode above-mentioned to hold terminal, the direction value of terminal in Y-axis and the direction value at Z axis can be obtained by gravity sensor, and obtain the angle of pitch of terminal relative to Y-axis and the roll angle relative to Z axis by angular transducer.
Step 202: judge described direction value whether within the scope of the direction value preset, and whether described angle value is within the scope of the angle value preset, and if so, then performs step 203; Otherwise, terminate current process.
In the present embodiment, the difference of posture custom when holding terminal according to different user, setting direction value scope and angle value scope, above-mentioned direction value scope and angle value scope guarantee generally to contain direction value when user holds terminal and angle value.Therefore, after the direction value obtaining terminal and angle value, by direction value and the direction value scope preset are compared, and angle value and the angle value scope preset can be compared, to judge whether terminal is held by user.
In the present embodiment, to face upward left-leaning heeling condition corresponding to terminal when user holds in Fig. 3 E, the direction value of Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; The heeling condition of Right deviation of facing upward corresponding to terminal when user holds in Fig. 3 F, the direction value of Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °; Corresponding to left-leaning heeling condition that terminal when user holds in Fig. 3 G is bowed, the direction value of Y-axis is greater than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Corresponding to the heeling condition of Right deviation that terminal when user holds in Fig. 3 H is bowed, the direction value of described Y-axis is less than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °.
In step 203, obtain the first angle of rotation, and after postponing prefixed time interval, obtain the second angle of rotation.
In the present embodiment, can by judging that terminal angle of rotation difference is in a certain time interval carried out identification terminal and whether rotated around an axle.Wherein, angle of rotation can be roll angle, the angle of pitch, or the mixing angle of roll angle and the angle of pitch.The scope of usual prefixed time interval can between 200 milliseconds to 500 milliseconds.
In step 204, the angle of rotation difference of described second angle of rotation and described first angle of rotation is calculated.
In step 205, judge described angle of rotation difference whether in the rotation difference range preset, if so, then perform step 206; Otherwise, terminate current process.
In the present embodiment, the amplitude of rotating terminal when holding terminal according to different user is different, and setting party rotates difference range, and above-mentioned rotation difference range guarantees generally to contain the rotational angle difference of rotating terminal generation when user holds terminal.Therefore after calculating the angle of rotation difference before and after prefixed time interval, can according to angle of rotation whether rotate determine terminal in difference range rotation whether by the rotation that user is enable.Wherein, when described first angle of rotation and described second angle of rotation are roll angle, can judge that the roll angle difference of the first roll angle and the second roll angle is whether in the roll angle difference range preset; When described first angle of rotation and described second angle of rotation are the angle of pitch, can judge that the angle of pitch difference of first angle of pitch and second angle of pitch is whether in the angle of pitch difference range preset; When described first angle of rotation and described second angle of rotation are the accumulated angle of roll angle and the angle of pitch, can judge that the accumulated angle difference of the first accumulated angle and the second accumulated angle is whether in the accumulated angle difference range preset.
See Fig. 3 I and Fig. 3 J, be schematic diagram during user's left-right rotation terminal, wherein, Fig. 3 I is that terminal is in the right hand and holds, left-leaning state of facing upward, and Fig. 3 J is that terminal is in left hand and holds Right deviation state of facing upward.For left-right rotation, obtain a roll angle, after delay 500 milliseconds, then obtain a roll angle, if when the difference of two roll angles is between the roll angle difference range 2 ° to 20 ° arranged, can determine that terminal is around Z axis left-right rotation.Now, if roll angle difference is lower than 2 °, then illustrate that the unhappy and angle of velocity of rotation is little, even rotate terminal by user, this rotation also and non-user wants the rotation triggering predetermined registration operation; If roll angle difference is higher than 20 °, then illustrate that terminal may be in violent rollover states, this rotation equally also and non-user want to trigger the rotation of predetermined registration operation.
See Fig. 3 K and Fig. 3 L, for rotating schematic diagram during terminal before and after user, wherein, Fig. 3 K is that terminal is in the right hand and holds, left-leaning state of facing upward, and Fig. 3 L is that terminal is in left hand and holds Right deviation state of facing upward.Front and back are rotated, obtains an angle of pitch, after delay 500 milliseconds, then obtain an angle of pitch, if when the difference of two angles of pitch is between the angle of pitch difference range 20 ° to 45 ° arranged, can determine that described terminal is rotated before and after Y-axis.Now, if angle of pitch difference is lower than 20 °, then illustrate that the unhappy and angle of velocity of rotation is little, even rotate terminal by user, this rotation also and non-user wants the rotation triggering predetermined registration operation; If angle of pitch difference is higher than 45 °, then illustrate that terminal may be in violent rollover states, this rotation equally also and non-user want to trigger the rotation of predetermined registration operation.
In addition, usual user is when rotating terminal, possible also non-fully is around Z axis, or Y-axis rotates, but rotate around the synthesis axle of Z axis and Y-axis, therefore can decompose user and be coiled into Z axis roll angle difference component when axle rotates, with Y-axis angle of pitch difference component, when roll angle difference component is between corner difference range 2 ° to 20 °, and angle of pitch difference component between angle of pitch difference range 20 ° to 45 ° time, then can determine that terminal is rotated around the synthesis axle of Z axis and Y-axis.
In step 206, trigger described terminal and perform the operation preset, terminate current process.
In the present embodiment, the operation that the different heeling condition parameters that meet predetermined inclination condition are corresponding different can be pre-set, or, operations corresponding different when disalignment is rotated, or, the operation that different heeling condition parameter is corresponding different with the combination of rotating around disalignment, so that user is under terminal is in different heeling condition, performs different predetermined registration operation by different rotating manner triggering terminal.These predetermined registration operation can comprise: unlock terminal screen, switch song, enter screening-mode, rotate terminal demonstration interface etc., then this repeats no longer one by one.
Several application the present embodiment triggering terminal is described below and performs predetermined registration operation example:
In one example, user winter out of doors or particular surroundings band gloves time, when terminal is in the lock state, if then user rotates terminal under certain tilt condition, the right hand holds left-right rotation terminal as shown in fig. 31, just can automatically skip screen locking after triggering terminal start and wait for interface, thus avoid user to take the gloves off sliding screen operation;
In another example, when the inconvenient touch terminal screen of user, then can after power-on, identify user and rotate terminal under certain tilt condition, thus enter appointment application or trigger specific operation, such as user under water time, terminal can be contained in totally enclosed transparent gum cover, when the right hand holds left-right rotation terminal as shown in fig. 31, triggering terminal enters exposal model, when left hand rotates terminal before and after holding as shown in figure 3j, triggering terminal enters image pickup mode, as shown in Fig. 3 K, the right hand rotates before and after holding, triggering terminal enters front-facing camera self-timer mode, left and right is rotated before and after holding and is entered post-positioned pick-up head normal photographing mode as shown in figure 3l.
In another example, user listens song by terminal in walking about or running, and can hold left-right rotation at the right hand, be switched to next song, and under normal circumstances, when terminal is vertically placed in pocket, or when top is oppositely placed downwards, jolt in any case also can not trigger and change song operation; Further, under difference holds state, volume can also be controlled by different rotating manners and becomes large, or diminish, or repeat playing song etc.
In another example, can control terminal direct Rotation screen when tilting, but recognizing when user rotates this terminal again according to gravity direction Rotation screen, thus gravity sensing also can be able to be utilized screen rotation operation is triggered when user lies on one's side, avoid being fixed setting to screen rotation.
As seen from the above-described embodiment, whether the tilt condition preset is met by the heeling condition parameter of sense terminals, judge whether terminal is placed in the hand of user, thus when user's hand held terminal, whether rotated around an axle by identification terminal, judge whether to be rotated by user's enabled terminals, and then trigger the operation preset.Due to can identify terminal rotate for user enable time, triggering terminal perform preset operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, which thereby enhance the accuracy of terminal control and operation; And by different heeling condition parameters, comprise the combination of direction and angle, the heeling condition of terminal is judged, therefore can be applicable in multiple terminal or plurality of application scenes as required flexibly, above-mentioned heeling condition parameter can obtain based on the gravity sensor generally arranged in terminal and direction sensor, therefore implementation procedure is simple, and detection efficiency is higher; And the slant range that this embodiment provides and rotation difference range, more meet the inclined degree of terminal when general user holds terminal, and rotate terminal time terminal rotation amplitude, therefore when more accurately determining that terminal is held by user, the rotation of terminal is by the enable rotation of user, but not the terminal that general external force causes is rotated, therefore now trigger the wish that default operation more meets user, it is more accurate to operate; Finally, this embodiment can trigger multiple different operation by rotating terminal, can be applicable to multiple application and different application scenarioss, better user experience.
Corresponding with the embodiment of the method for aforementioned control terminal, the disclosure additionally provides the device of control terminal and the embodiment of terminal.
As shown in Figure 4, Fig. 4 is the device block diagram of a kind of control terminal of the disclosure according to an exemplary embodiment, and described device comprises: detecting unit 41, recognition unit 42 and trigger element 43.
Wherein, described detecting unit 41, whether the heeling condition parameter being configured to sense terminals meets the tilt condition preset;
Described recognition unit 42, is configured to when described heeling condition parameter meets described tilt condition, identifies whether described terminal rotates around an axle;
Described trigger element 43, is configured to, when identifying described terminal around an axle rotation, trigger described terminal and perform the operation preset.
In above-described embodiment, whether the tilt condition preset is met by the heeling condition parameter of sense terminals, judge whether terminal is placed in the hand of user, thus when user's hand held terminal, whether rotated around an axle by identification terminal, judge whether to be rotated by user's enabled terminals, and then trigger the operation preset.Due to can identify terminal rotate for user enable time, triggering terminal perform preset operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, which thereby enhance the accuracy of terminal control and operation.
As shown in Figure 5, Fig. 5 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, described detecting unit 41 can comprise: the first parameter acquiring subelement 411, first scope judgment sub-unit 412, first detects determines subelement 413.
Wherein, the first parameter acquiring subelement 411, is configured in three-dimensional cartesian coordinate system, obtain the direction value as the heeling condition parameter of described terminal and angle value;
First scope judgment sub-unit 412, is configured to judge described direction value whether within the scope of the direction value preset, and whether described angle value is within the scope of the angle value preset;
First detect determine subelement 413, be configured to when described direction value preset direction value within the scope of, and described angle value preset angle value within the scope of time, determine that the heeling condition parameter of described terminal meets default tilt condition.
In an optional implementation, described direction value is within the scope of the direction value preset, and described angle value comprises within the scope of the angle value preset: the direction value of Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset.
Further, the direction value of described Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis can comprise within the scope of the roll angle preset: the direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or the direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °; Or the direction value of described Y-axis is greater than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or the direction value of described Y-axis is less than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °.
In above-described embodiment, by different heeling condition parameters, comprise the combination of direction and angle, the heeling condition of terminal is judged, therefore can be applicable in multiple terminal or plurality of application scenes as required flexibly; And above-mentioned heeling condition parameter can obtain based on the gravity sensor generally arranged in terminal and direction sensor, and therefore implementation procedure is simple, and detection efficiency is higher.
As shown in Figure 6, Fig. 6 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described first parameter acquiring subelement 411 can comprise: direction value acquisition module 4111 and angle value acquisition module 4112.
Wherein, direction value acquisition module 4111, is configured to by the direction value of gravity sensor acquisition as described heeling condition parameter;
Angle value acquisition module 4112, is configured to by the angle value of angular transducer acquisition as described heeling condition parameter.
As shown in Figure 7, Fig. 7 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described detecting unit 41 can comprise: subelement 416 is determined in the second parameter acquiring subelement 414, second scope judgment sub-unit 415 and the second detection.
Wherein, the second parameter acquiring subelement 414, is configured to obtain the projector distance of linear projection in three-dimensional cartesian coordinate system on each axle between two reference point default in described terminal;
Second scope judgment sub-unit 415, is configured to judge that described projector distance as the heeling condition parameter of described terminal is whether within the scope of the projector distance preset;
Subelement 416 is determined in second detection, is configured to when described projector distance is within the scope of described projector distance, determines that the heeling condition parameter of described terminal meets default tilt condition.
In above-described embodiment, judged by the heeling condition of projector distance to terminal, therefore can be applicable in multiple terminal or plurality of application scenes as required flexibly; And above-mentioned heeling condition parameter can obtain based on the gravity sensor generally arranged in terminal and direction sensor, and therefore implementation procedure is simple, and detection efficiency is higher.
As shown in Figure 8, Fig. 8 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described recognition unit 42 can comprise: angle of rotation obtains subelement 421, mathematic interpolation subelement 422, difference judgment sub-unit 423 and identification and determines subelement 424.
Wherein, angle of rotation obtains subelement 421, is configured to acquisition first angle of rotation, and after postponing prefixed time interval, obtains the second angle of rotation;
Mathematic interpolation subelement 422, is configured to the angle of rotation difference calculating described second angle of rotation and described first angle of rotation;
Difference judgment sub-unit 423, is configured to judge described angle of rotation difference whether in the rotation difference range preset;
Subelement 424 is determined in identification, is configured to, when described angle of rotation difference is in described rotation difference range, determine that described terminal is rotated around an axle.
It should be noted that, the structure of the recognition unit 42 in the device embodiment shown in above-mentioned Fig. 8 also can be included in any one device embodiment of earlier figures 5 to Fig. 7, does not limit this disclosure.
The slant range provided in above-described embodiment and rotation difference range, more meet the inclined degree of terminal when general user holds terminal, and rotate terminal time terminal rotation amplitude, therefore when more accurately determining that terminal is held by user, the rotation of terminal is by the enable rotation of user, but not the terminal that general external force causes is rotated, therefore now trigger the wish that default operation more meets user, it is more accurate to operate.
As shown in Figure 9, Fig. 9 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 8, and described difference judgment sub-unit 423 can comprise at least one following module: roll angle difference judge module 4231, angle of pitch difference judge module 4232 and accumulated angle difference judge module 4233.
Wherein, roll angle difference judge module 4231, is configured to when described first angle of rotation and described second angle of rotation are roll angle, judges that the roll angle difference of the first roll angle and the second roll angle is whether in the roll angle difference range preset;
Angle of pitch difference judge module 4232, is configured to when described first angle of rotation and described second angle of rotation are the angle of pitch, judges that the angle of pitch difference of first angle of pitch and second angle of pitch is whether in the angle of pitch difference range preset;
Accumulated angle difference judge module 4233, is configured to when described first angle of rotation and described second angle of rotation are the accumulated angle of roll angle and the angle of pitch, judges that the accumulated angle difference of the first accumulated angle and the second accumulated angle is whether in the accumulated angle difference range preset.
As shown in Figure 10, Figure 10 is the device block diagram of the another kind of control terminal of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 9, and described identification determines that subelement 424 can comprise at least one following module: Z axis rotates identification module 4241, Y-axis rotates identification module 4242 and synthesis axle rotates identification module 4243.
Wherein, Z axis rotates identification module 4241, is configured to, when described roll angle difference is between roll angle difference range 2 ° to 20 °, determine that described terminal is around Z axis left-right rotation;
Y-axis rotates identification module 4242, is configured to, when described angle of pitch difference is between angle of pitch difference range 20 ° to 45 °, determine that described terminal is rotated before and after Y-axis;
Synthesis axle rotates identification module 4243, be configured to when the roll angle difference component in described accumulated angle difference is between corner difference range 2 ° to 20 °, and angle of pitch difference component between angle of pitch difference range 20 ° to 45 ° time, determine that described terminal is rotated around the synthesis axle of Z axis and Y-axis.
In addition, in above-mentioned each device embodiment, the operation preset can comprise an at least following operation: unlock terminal screen, switch song, enter screening-mode, rotation terminal demonstration interface.As can be seen here, disclosure embodiment rotates terminal by user can trigger multiple different operation, can be applicable to multiple application and different application scenarioss, better user experience.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
As shown in figure 11, Figure 11 is the disclosure a kind of another structural representation for safety control 1100 according to an exemplary embodiment.Such as, device 1100 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 11, device 1100 can comprise following one or more assembly: processing components 1102, storer 1104, power supply module 1106, multimedia groupware 1108, audio-frequency assembly 1110, the interface 1112 of I/O (I/O), sensor module 1114, and communications component 1116.
The integrated operation of the usual control device 1100 of processing components 1102, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1102 can comprise one or more processor 1120 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1102 can comprise one or more module, and what be convenient between processing components 1102 and other assemblies is mutual.Such as, processing components 1102 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1108 and processing components 1102.
Storer 1104 is configured to store various types of data to be supported in the operation of device 1100.The example of these data comprises for any application program of operation on device 1100 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1104 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 1106 is device 1100 provide electric power.Power supply module 1106 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1100 and be associated.
Multimedia groupware 1108 is included in the screen providing an output interface between described device 1100 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1108 comprises a front-facing camera and/or post-positioned pick-up head.When device 1100 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1110 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1110 comprises a microphone (MIC), and when device 1100 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1104 further or be sent via communications component 1116.In certain embodiments, audio-frequency assembly 1110 also comprises a loudspeaker, for output audio signal.
I/O interface 1112 is for providing interface between processing components 1102 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 1114 comprises one or more sensor, for providing the state estimation of various aspects for device 1100.Such as, sensor module 1114 can detect the opening/closing state of device 1100, the relative positioning of assembly, such as described assembly is display and the keypad of device 1100, the position of all right pick-up unit 1100 of sensor module 1114 or device 1100 assemblies changes, the presence or absence that user contacts with device 1100, the temperature variation of device 1100 orientation or acceleration/deceleration and device 1100.Sensor module 1114 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1114 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1114 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer, microwave remote sensor or temperature sensor.
Communications component 1116 is configured to the communication being convenient to wired or wireless mode between device 1100 and other equipment.Device 1100 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1116 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1116 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1100 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 1104 of instruction, above-mentioned instruction can perform said method by the processor 1120 of device 1100.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A device for control terminal, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Whether the heeling condition parameter of sense terminals meets the tilt condition preset;
When described heeling condition parameter meets described tilt condition, identify whether described terminal rotates around an axle;
When identifying described terminal around an axle rotation, triggering described terminal and performing the operation preset.
Described processor can also be configured to:
Whether the heeling condition parameter of described sense terminals meets the tilt condition preset, and comprising:
The direction value as the heeling condition parameter of described terminal and angle value is obtained in three-dimensional cartesian coordinate system;
Judge described direction value whether within the scope of the direction value preset, and described angle value is whether within the scope of the angle value preset;
When described direction value preset direction value within the scope of, and described angle value preset angle value within the scope of time, determine that the heeling condition parameter of described terminal meets default tilt condition.
Described processor can also be configured to:
Described direction value is within the scope of the direction value preset, and described angle value is within the scope of the angle value preset, and comprising:
The direction value of Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset.
Described processor can also be configured to:
The direction value of described Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset, and comprising:
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is less than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °.
Described processor can also be configured to:
Described acquisition, as the direction value of the heeling condition parameter of described terminal and angle value, comprising:
The direction value as described heeling condition parameter is obtained by gravity sensor;
The angle value as described heeling condition parameter is obtained by angular transducer.
Described processor can also be configured to:
Whether the described terminal of described identification rotates around an axle, comprising:
Obtain the first angle of rotation;
After postponing prefixed time interval, obtain the second angle of rotation;
Calculate the angle of rotation difference of described second angle of rotation and described first angle of rotation;
Judge described angle of rotation difference whether in the rotation difference range preset;
When described angle of rotation difference is in described rotation difference range, determine that described terminal is rotated around an axle.
Described processor can also be configured to:
Describedly judge that whether described angle of rotation difference comprises in the rotation difference range preset:
When described first angle of rotation and described second angle of rotation are roll angle, judge that the roll angle difference of the first roll angle and the second roll angle is whether in the roll angle difference range preset;
When described first angle of rotation and described second angle of rotation are the angle of pitch, judge that the angle of pitch difference of first angle of pitch and second angle of pitch is whether in the angle of pitch difference range preset;
When described first angle of rotation and described second angle of rotation are the accumulated angle of roll angle and the angle of pitch, judge that the accumulated angle difference of the first accumulated angle and the second accumulated angle is whether in the accumulated angle difference range preset.
Described processor can also be configured to:
Described when described angle of rotation difference is in described rotation difference range, determine that described terminal is rotated around an axle, comprising:
When described roll angle difference is between roll angle difference range 2 ° to 20 °, determine that described terminal is around Z axis left-right rotation;
When described angle of pitch difference is between angle of pitch difference range 20 ° to 45 °, determine that described terminal is rotated before and after Y-axis;
When the roll angle difference component in described accumulated angle difference is between corner difference range 2 ° to 20 °, and angle of pitch difference component between angle of pitch difference range 20 ° to 45 ° time, determine that described terminal is rotated around the synthesis axle of Z axis and Y-axis.
Described processor can also be configured to:
Described default operation comprises an at least following operation: unlock terminal screen, switch song, enter screening-mode, rotate terminal demonstration interface.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The disclosure is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (17)

1. a method for control terminal, is characterized in that, described method comprises:
Whether the heeling condition parameter of sense terminals meets the tilt condition preset;
When described heeling condition parameter meets described tilt condition, identify whether described terminal rotates around an axle;
When identifying described terminal around an axle rotation, triggering described terminal and performing the operation preset;
Whether the heeling condition parameter of described sense terminals meets the tilt condition preset, and comprising:
The direction value as the heeling condition parameter of described terminal and angle value is obtained in three-dimensional cartesian coordinate system;
Judge described direction value whether within the scope of the direction value preset, and described angle value is whether within the scope of the angle value preset;
When described direction value preset direction value within the scope of, and described angle value preset angle value within the scope of time, determine that the heeling condition parameter of described terminal meets default tilt condition.
2. method according to claim 1, is characterized in that, described direction value is within the scope of the direction value preset, and described angle value is within the scope of the angle value preset, and comprising:
The direction value of Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset.
3. method according to claim 2, it is characterized in that, the direction value of described Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset, and comprising:
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is less than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °.
4. method according to claim 1, is characterized in that, described acquisition, as the direction value of the heeling condition parameter of described terminal and angle value, comprising:
The direction value as described heeling condition parameter is obtained by gravity sensor;
The angle value as described heeling condition parameter is obtained by angular transducer.
5. method according to claim 1, is characterized in that, whether the described terminal of described identification rotates around an axle, comprising:
Obtain the first angle of rotation;
After postponing prefixed time interval, obtain the second angle of rotation;
Calculate the angle of rotation difference of described second angle of rotation and described first angle of rotation;
Judge described angle of rotation difference whether in the rotation difference range preset;
When described angle of rotation difference is in described rotation difference range, determine that described terminal is rotated around an axle.
6. method according to claim 5, is characterized in that, describedly judges that whether described angle of rotation difference comprises in the rotation difference range preset:
When described first angle of rotation and described second angle of rotation are roll angle, judge that the roll angle difference of the first roll angle and the second roll angle is whether in the roll angle difference range preset;
When described first angle of rotation and described second angle of rotation are the angle of pitch, judge that the angle of pitch difference of first angle of pitch and second angle of pitch is whether in the angle of pitch difference range preset;
When described first angle of rotation and described second angle of rotation are the accumulated angle of roll angle and the angle of pitch, judge that the accumulated angle difference of the first accumulated angle and the second accumulated angle is whether in the accumulated angle difference range preset.
7. method according to claim 6, is characterized in that, described when described angle of rotation difference is in described rotation difference range, determines that described terminal is rotated around an axle, comprising:
When described roll angle difference is between roll angle difference range 2 ° to 20 °, determine that described terminal is around Z axis left-right rotation;
When described angle of pitch difference is between angle of pitch difference range 20 ° to 45 °, determine that described terminal is rotated before and after Y-axis;
When the roll angle difference component in described accumulated angle difference is between corner difference range 2 ° to 20 °, and angle of pitch difference component between angle of pitch difference range 20 ° to 45 ° time, determine that described terminal is rotated around the synthesis axle of Z axis and Y-axis.
8., according to the arbitrary described method of claim 1 to 7, it is characterized in that, described default operation comprises an at least following operation: unlock terminal screen, switch song, enter screening-mode, rotation terminal demonstration interface.
9. a device for control terminal, is characterized in that, described device comprises:
Detecting unit, whether the heeling condition parameter for sense terminals meets the tilt condition preset;
Recognition unit, for when described heeling condition parameter meets described tilt condition, identifies whether described terminal rotates around an axle;
Trigger element, for when identifying described terminal around an axle rotation, triggering described terminal and performing the operation preset;
Described detecting unit comprises:
First parameter acquiring subelement, for obtaining direction value as the heeling condition parameter of described terminal and angle value in three-dimensional cartesian coordinate system;
First scope judgment sub-unit, for judging described direction value whether within the scope of the direction value preset, and whether described angle value is within the scope of the angle value preset;
First detect determine subelement, for when described direction value preset direction value within the scope of, and described angle value preset angle value within the scope of time, determine that the heeling condition parameter of described terminal meets default tilt condition.
10. device according to claim 9, is characterized in that, described direction value is within the scope of the direction value preset, and described angle value comprises within the scope of the angle value preset:
The direction value of Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis is within the scope of the roll angle preset.
11. devices according to claim 10, it is characterized in that, the direction value of described Y-axis is within the scope of the Y direction value preset, and the direction value of Z axis is within the scope of the Z-direction value preset, and the angle of pitch of Y-axis is in the pitch range preset, and the roll angle of Z axis comprises within the scope of the roll angle preset:
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of described Z axis is greater than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °; Or
The direction value of described Y-axis is greater than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope 10 ° to 40 °; Or
The direction value of described Y-axis is less than 0, and the direction value of Z axis is less than 0, and the angle of pitch of described Y-axis is between pitch range-80 ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 ° to-10 °.
12. devices according to claim 9, is characterized in that, described first parameter acquiring subelement comprises:
Direction value acquisition module, for obtaining the direction value as described heeling condition parameter by gravity sensor;
Angle value acquisition module, for obtaining the angle value as described heeling condition parameter by angular transducer.
13. devices according to claim 9, is characterized in that, described recognition unit comprises:
Angle of rotation obtains subelement, for obtaining the first angle of rotation, and after postponing prefixed time interval, obtains the second angle of rotation;
Mathematic interpolation subelement, for calculating the angle of rotation difference of described second angle of rotation and described first angle of rotation;
Difference judgment sub-unit, for judging described angle of rotation difference whether in the rotation difference range preset;
Subelement is determined in identification, for when described angle of rotation difference is in described rotation difference range, determines that described terminal is rotated around an axle.
14. devices according to claim 13, is characterized in that, described difference judgment sub-unit comprises:
Roll angle difference judge module, for when described first angle of rotation and described second angle of rotation are roll angle, judges that the roll angle difference of the first roll angle and the second roll angle is whether in the roll angle difference range preset;
Angle of pitch difference judge module, for when described first angle of rotation and described second angle of rotation are the angle of pitch, judges that the angle of pitch difference of first angle of pitch and second angle of pitch is whether in the angle of pitch difference range preset;
Accumulated angle difference judge module, for when described first angle of rotation and described second angle of rotation are the accumulated angle of roll angle and the angle of pitch, judges that the accumulated angle difference of the first accumulated angle and the second accumulated angle is whether in the accumulated angle difference range preset.
15. devices according to claim 14, is characterized in that, described identification determines that subelement comprises:
Z axis rotates identification module, for when described roll angle difference is between roll angle difference range 2 ° to 20 °, determines that described terminal is around Z axis left-right rotation;
Y-axis rotates identification module, for when described angle of pitch difference is between angle of pitch difference range 20 ° to 45 °, determines that described terminal is rotated before and after Y-axis;
Synthesis axle rotates identification module, for when roll angle difference component in described accumulated angle difference is between corner difference range 2 ° to 20 °, and angle of pitch difference component between angle of pitch difference range 20 ° to 45 ° time, determine that described terminal is rotated around the synthesis axle of Z axis and Y-axis.
16. according to the arbitrary described device of claim 9 to 15, and it is characterized in that, described default operation comprises an at least following operation: unlock terminal screen, switch song, enter screening-mode, rotation terminal demonstration interface.
The device of 17. 1 kinds of control terminals, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Whether the heeling condition parameter of sense terminals meets the tilt condition preset;
When described heeling condition parameter meets described tilt condition, identify whether described terminal rotates around an axle;
When identifying described terminal around an axle rotation, triggering described terminal and performing the operation preset;
Described processor is also configured to:
Whether the heeling condition parameter of described sense terminals meets the tilt condition preset, and comprising:
The direction value as the heeling condition parameter of described terminal and angle value is obtained in three-dimensional cartesian coordinate system;
Judge described direction value whether within the scope of the direction value preset, and described angle value is whether within the scope of the angle value preset;
When described direction value preset direction value within the scope of, and described angle value preset angle value within the scope of time, determine that the heeling condition parameter of described terminal meets default tilt condition.
CN201410284086.5A 2014-06-23 2014-06-23 The method of control terminal and device Active CN104123075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410284086.5A CN104123075B (en) 2014-06-23 2014-06-23 The method of control terminal and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410284086.5A CN104123075B (en) 2014-06-23 2014-06-23 The method of control terminal and device

Publications (2)

Publication Number Publication Date
CN104123075A CN104123075A (en) 2014-10-29
CN104123075B true CN104123075B (en) 2016-03-30

Family

ID=51768506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410284086.5A Active CN104123075B (en) 2014-06-23 2014-06-23 The method of control terminal and device

Country Status (1)

Country Link
CN (1) CN104123075B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539838A (en) * 2014-12-02 2015-04-22 厦门美图移动科技有限公司 Method and device for rapidly opening mobile phone camera for performing video recording
US9715283B2 (en) * 2015-02-26 2017-07-25 Motorola Mobility Llc Method and apparatus for gesture detection in an electronic device
CN105072271A (en) * 2015-08-04 2015-11-18 广东欧珀移动通信有限公司 Flashlight control method and device
CN105182766A (en) * 2015-08-12 2015-12-23 小米科技有限责任公司 Equipment control method and apparatus
CN105718290A (en) * 2016-01-22 2016-06-29 合肥联宝信息技术有限公司 Starting method and device for different modes of mini-computer
CN106406741B (en) * 2016-09-30 2019-08-20 维沃移动通信有限公司 A kind of operation processing method and mobile terminal of mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213509A (en) * 2005-07-08 2008-07-02 三菱电机株式会社 Touch panel display device and portable apparatus
CN101751214A (en) * 2008-12-02 2010-06-23 索尼株式会社 Information processing apparatus and information processing method
CN102156555A (en) * 2011-03-08 2011-08-17 惠州Tcl移动通信有限公司 Page browsing method and electronic equipment using same
CN103376984A (en) * 2012-04-28 2013-10-30 宇龙计算机通信科技(深圳)有限公司 Application selection method and communication terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101213509A (en) * 2005-07-08 2008-07-02 三菱电机株式会社 Touch panel display device and portable apparatus
CN101751214A (en) * 2008-12-02 2010-06-23 索尼株式会社 Information processing apparatus and information processing method
CN102156555A (en) * 2011-03-08 2011-08-17 惠州Tcl移动通信有限公司 Page browsing method and electronic equipment using same
CN103376984A (en) * 2012-04-28 2013-10-30 宇龙计算机通信科技(深圳)有限公司 Application selection method and communication terminal

Also Published As

Publication number Publication date
CN104123075A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN104123075B (en) The method of control terminal and device
CN104035559A (en) Method and device for controlling mobile terminal
CN104182173A (en) Camera switching method and device
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint
CN103841264A (en) Method and device for protecting terminal equipment and terminal equipment
CN106547663B (en) Key management method and device
CN104035662A (en) Interface display method, device and terminal
CN104613959A (en) Navigation method and device for wearable device and electronic equipment
CN104034309A (en) Angle measurement method, angle measurement device and terminal
CN104065883B (en) Image pickup method and device
CN103995666A (en) Method and device for setting work mode
CN106201310A (en) The display packing of notification message, device and terminal
CN104244045B (en) The method that control video pictures presents and device
CN105068632A (en) Terminal charging method and device and terminal
CN105094318A (en) Mode switching method and apparatus
CN105224171A (en) icon display method, device and terminal
CN105516587A (en) Method for switching cameras and mobile terminal
CN107102801A (en) Terminal screen spinning solution and device
CN104090655A (en) Terminal and terminal control method and device.
CN105472157A (en) Method and device for monitoring terminal motion state
CN104991752A (en) Method and device for controlling screen to rotate
CN104010072A (en) Electric quantity prompt method and device
CN105159496A (en) Touch event response method and mobile terminal
CN104243829A (en) Self-shooting method and self-shooting device
CN103942047A (en) User instruction execution method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model