CN104123075A - Method and device for controlling terminal - Google Patents

Method and device for controlling terminal Download PDF

Info

Publication number
CN104123075A
CN104123075A CN201410284086.5A CN201410284086A CN104123075A CN 104123075 A CN104123075 A CN 104123075A CN 201410284086 A CN201410284086 A CN 201410284086A CN 104123075 A CN104123075 A CN 104123075A
Authority
CN
China
Prior art keywords
angle
axis
default
terminal
pitch
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.)
Granted
Application number
CN201410284086.5A
Other languages
Chinese (zh)
Other versions
CN104123075B (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.)
Beijing Xiaomi Technology Co Ltd
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 invention relates to a method and device for controlling a terminal. The method comprises the steps that whether the tilting state parameter of the terminal meets a preset tilting condition or not is detected; when the tilting state parameter of the terminal meets the tilting condition, whether the terminal rotates around a shaft or not is recognized; when the fact that the terminal rotates around the shaft is recognized, the terminal is triggered to carry out preset operation. Due to the fact that when rotation of the terminal is recognized to be user enabling, the terminal is triggered to carry out preset operation, so that misoperation to the terminal due to the fact that the acceleration variation of the terminal is only judged is reduced, and the accuracy of controlling the terminal and operation is improved.

Description

The method of control terminal and device
Technical field
The disclosure relates to communication technical field, relates in particular to method and the device of control terminal.
Background technology
Along with the development of intelligent terminal and universal, in most of intelligent terminal, be provided with gravity sensor (G-sensor, Gravity-sensor), gravity sensor can perception terminal in accelerator, such as rocking, fall, rising, lower degradation, act on the variation of the accelerating force in terminal, thereby can carry out various control to terminal according to the variation of accelerating force.More common a kind of control mode is, in terminal, during in dormant state, user rocks terminal, and now gravity sensor senses that accelerating force changes, and can wake terminal up from dormant state.
But, because various vibrations and the rotation of terminal all can make gravity sensor sense the variation of accelerating force, therefore rock while enabling for non-user in terminal, terminal also can receive the accelerating force change information that gravity sensor senses, causes terminal to produce maloperation.
Summary of the invention
The disclosure provides method and the device of control terminal, to solve in correlation technique in the time that gravity sensor senses the accelerating force change information that non-user enables, easily makes terminal produce the problem of maloperation.
According to the first aspect of disclosure embodiment, a kind of method of control terminal is provided, described method comprises:
Whether the heeling condition parameter of sense terminals meets default tilt condition;
In the time that described heeling condition parameter meets described tilt condition, identify described terminal and whether rotate around an axle;
Identifying described terminal in the time that an axle rotates, trigger described terminal and carry out default operation.
Optionally, whether the heeling condition parameter of described sense terminals meets default tilt condition, comprising:
In three-dimensional cartesian coordinate system, obtain direction value and angle value as the heeling condition parameter of described terminal;
Judge that described direction value is whether within the scope of default direction value, and described angle value is whether within the scope of default angle value;
When described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value time, determines that the heeling condition parameter of described terminal meets default tilt condition.
Optionally, described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value, comprising:
The direction value of Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle.
Optionally, the direction value of described Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle, 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° to-10 °.
Optionally, described in obtain direction value and the angle value as the heeling condition parameter of described terminal, comprising:
Obtain the direction value as described heeling condition parameter by gravity sensor;
Obtain the angle value as described heeling condition parameter by angular transducer.
Optionally, whether the described terminal of described identification rotates around an axle, comprising:
Obtain the first angle of rotation;
Postpone, behind Preset Time interval, to obtain the second angle of rotation;
Calculate the angle of rotation difference of described the second angle of rotation and described the first angle of rotation;
Judge that described angle of rotation difference is whether in default rotation difference range;
In the time that described angle of rotation difference is in described rotation difference range, determine that described terminal rotates around an axle.
Optionally, describedly judge whether described angle of rotation difference comprises in default rotation difference range:
In the time that described the first angle of rotation and described the 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 default roll angle difference range;
In the time that described the first angle of rotation and described the 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 default angle of pitch difference range;
In the time that described the first angle of rotation and described the 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 default accumulated angle difference range.
Optionally, described in the time that described angle of rotation difference is in described rotation difference range, determine that described terminal rotates around an axle, comprising:
When described roll angle difference is between 2 ° to 20 ° of roll angle difference range time, determine that described terminal is around Z axis left-right rotation;
When described angle of pitch difference is between 20 ° to 45 ° of the angle of pitch difference range time, determine that described terminal rotates before and after Y-axis;
When the roll angle difference component in described accumulated angle difference is between 2 ° to 20 ° of corner difference range, and angle of pitch difference component is between 20 ° to 45 ° of the angle of pitch difference range time, determines that described terminal rotates around the synthetic axle of Z axis and Y-axis.
Optionally, described default operation comprises an at least following operation: release terminal screen, switch song, enter screening-mode, rotation terminal display interface.
According to the second aspect of disclosure embodiment, a kind of device of control terminal is provided, described device comprises:
Whether detecting unit, meet default tilt condition for detection of the heeling condition parameter of terminal;
Whether recognition unit, in the time that described heeling condition parameter meets described tilt condition, identify described terminal and rotate around an axle;
Trigger element, for identifying described terminal in the time that an axle rotates, triggers described terminal and carries out default operation.
Optionally, described detecting unit comprises:
The first parameter acquiring subelement, for obtaining direction value and the angle value as the heeling condition parameter of described terminal at three-dimensional cartesian coordinate system;
The first scope judgment sub-unit, for judging that described direction value is whether within the scope of default direction value, and whether described angle value is within the scope of default angle value;
First detects and determines subelement, and for when described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value time, determines that the heeling condition parameter of described terminal meets default tilt condition.
Optionally, described direction value is within the scope of default direction value, and described angle value comprises within the scope of default angle value:
The direction value of Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle.
Optionally, the direction value of described Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis comprises within the scope of default roll angle:
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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° to-10 °.
Optionally, described the 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 postpones, behind Preset Time interval, to obtain the second angle of rotation;
Difference computation subunit, for calculating the angle of rotation difference of described the second angle of rotation and described the first angle of rotation;
Difference judgment sub-unit, for judging that described angle of rotation difference is whether in default rotation difference range;
Subelement is determined in identification, in the time that described angle of rotation difference is in described rotation difference range, determines that described terminal rotates around an axle.
Optionally, described difference judgment sub-unit comprises:
Roll angle difference judge module, in the time that described the first angle of rotation and described the 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 default roll angle difference range;
Angle of pitch difference judge module, in the time that described the first angle of rotation and described the 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 default angle of pitch difference range;
Accumulated angle difference judge module, in the time that described the first angle of rotation and described the 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 default accumulated angle difference range.
Optionally, described identification determines that subelement comprises:
Z axis rotates identification module, for when described roll angle difference is between 2 ° to 20 ° of roll angle difference range time, determines that described terminal is around Z axis left-right rotation;
Y-axis is rotated identification module, for when described angle of pitch difference is between 20 ° to 45 ° of the angle of pitch difference range time, determines the rotation before and after Y-axis of described terminal;
Synthetic axle rotates identification module, the roll angle difference component that is used for working as described accumulated angle difference is between 2 ° to 20 ° of corner difference range, and angle of pitch difference component is between 20 ° to 45 ° of the angle of pitch difference range time, determine that described terminal rotates around the synthetic axle of Z axis and Y-axis.
Optionally, described default operation comprises an at least following operation: release terminal screen, switch song, enter screening-mode, rotation terminal display interface.
According to the third aspect of disclosure embodiment, a kind of device of control terminal is provided, 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 default tilt condition;
In the time that described heeling condition parameter meets described tilt condition, identify described terminal and whether rotate around an axle;
Identifying described terminal in the time that an axle rotates, trigger described terminal and carry out default operation.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Whether the disclosure meets default tilt condition by the heeling condition parameter of sense terminals, judge whether terminal is placed in user's hand, thereby the in the situation that of user's hand held terminal, whether rotate around an axle by identification terminal, judge whether to be rotated by user's enabled terminals, and then trigger default operation.Owing to rotating while enabling for user identifying terminal, triggering terminal is carried out default operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, has improved the accuracy of terminal control and operation thus.
The disclosure also, by different heeling condition parameters, comprises the combination of direction and angle, and projector distance, and the heeling condition of terminal is judged, therefore can be applicable to flexibly as required in multiple terminal or plurality of application scenes; And above-mentioned heeling condition parameter can gravity sensor and direction sensor based on generally arranging in terminal obtain, and therefore implementation procedure is simple, and detection efficiency is higher.
The disclosure is considered in actual applications, in the time that terminal is placed in desktop or pocket, terminal is conventionally in plumbness or horizontality, therefore the situation that the disclosure has been got rid of level or vertically placed terminal by slant range is set, and can determine that terminal held by user, user is by hand held terminal and rotate and trigger default processing, reduces because rocking desktop or user movement and causes terminal in pocket to rock the maloperation of generation with this.
The slant range that the disclosure provides and rotation difference range, the inclined degree of terminal when more meeting general user and holding terminal, and rotate the rotation amplitude of terminal when terminal, therefore in the time can more accurately determining that terminal is held by user, the rotation of terminal is the rotation being enabled by user, but not therefore the terminal rotation that general external force causes now triggers 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 are hereinafter described, and can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in instructions and forms the part of this instructions, shows and meets embodiment of the present disclosure, and be used from and explain principle of the present disclosure with instructions one.
Fig. 1 is that the disclosure is according to the method flow diagram of a kind of control terminal shown in an exemplary embodiment.
Fig. 2 is that the disclosure is according to the method flow diagram of the another kind of control terminal shown in an exemplary embodiment.
Fig. 3 A is that the disclosure is according to a kind of terminal heeling condition schematic diagram shown in an exemplary embodiment.
Fig. 3 B is that the disclosure is according to the another kind of terminal heeling condition schematic diagram shown in an exemplary embodiment.
Fig. 3 C is that the disclosure is according to the another kind of terminal heeling condition schematic diagram shown in an exemplary embodiment.
Fig. 3 D is that the disclosure is according to the another kind of terminal heeling condition schematic diagram shown in an exemplary embodiment.
Fig. 3 E is that the disclosure is held terminal schematic diagram according to a kind of user shown in an exemplary embodiment.
Fig. 3 F is that the disclosure is held terminal schematic diagram according to the another kind of user shown in an exemplary embodiment.
Fig. 3 G is that the disclosure is held terminal schematic diagram according to the another kind of user shown in an exemplary embodiment.
Fig. 3 H is that the disclosure is held terminal schematic diagram according to the another kind of user shown in an exemplary embodiment.
Fig. 3 I is that the disclosure is rotated terminal schematic diagram according to a kind of user shown in an exemplary embodiment.
Fig. 3 J is that the disclosure is rotated terminal schematic diagram according to the another kind of user shown in an exemplary embodiment.
Fig. 3 K is that the disclosure is rotated terminal schematic diagram according to the another kind of user shown in an exemplary embodiment.
Fig. 3 L is that the disclosure is rotated terminal schematic diagram according to the another kind of user shown in an exemplary embodiment.
Fig. 4 is that the disclosure is according to the device block diagram of a kind of control terminal shown in an exemplary embodiment.
Fig. 5 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in an exemplary embodiment.
Fig. 6 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in an exemplary embodiment.
Fig. 7 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in an exemplary embodiment.
Fig. 8 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in an exemplary embodiment.
Fig. 9 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in an exemplary embodiment.
Figure 10 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in an exemplary embodiment.
Figure 11 is that the disclosure is according to the structural representation of a kind of device for control terminal shown in an exemplary embodiment.
Embodiment
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings 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 are only and the example of apparatus and method as consistent in some aspects that described in detail in appended claims, of the present disclosure.
The term using in the disclosure is only for describing the object of specific embodiment, but not is intended to limit the disclosure." one ", " described " and " being somebody's turn to do " of the singulative using in disclosure and the accompanying claims book are also intended to comprise most forms, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more projects of listing that are associated any or all may combine.
Although should be appreciated that in the disclosure and may adopt term first, second, third, etc. to describe various information, 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.For example, in the situation that 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, as used in this word " if " can be construed as into " ... time " or " when ... time " or " in response to determine ".
In correlation technique, can carry out by gravity sensor sense acceleration the corresponding operating of triggering terminal, but the acceleration producing not the acceleration being produced by user's enabled terminals under some scene.For example, terminal is vertically inserted in pocket, in the time that user runs, terminal can produce the acceleration in vertical direction, and operation based on this acceleration triggering terminal, but this acceleration is not the acceleration that user's enabled terminals produces, and the operation that therefore triggered is actual is maloperation.In the disclosure, after determining that by the inclined degree of sense terminals terminal is held by user, further whether identification terminal rotates around an axle again, thereby determine that terminal enables lower rotation user, now triggering terminal is carried out corresponding operation again, can avoid terminal maloperation, improve the accuracy of control terminal.
As shown in Figure 1, Fig. 1 is according to the process flow diagram of the method for a kind of control terminal shown in an exemplary embodiment, and the method can, in terminal, comprise the following steps:
In step 101, whether the heeling condition parameter of sense terminals meets default tilt condition, if so, performs step 102; Otherwise, finish current flow process.
Terminal in disclosure embodiment can comprise: mobile phone, panel computer PAD etc. is convenient to the terminal that user holds, in the time of user's hand held terminal, terminal in three dimensions conventionally in heeling condition, therefore in this step, whether the heeling condition parameter by sense terminals meets default tilt condition, can detect whether terminal is current is held by user, the rotation of only holding lower terminal user is only the rotation being enabled by user, and the terminal operation of corresponding triggering is only operation accurately.
In an optional implementation, the heeling condition parameter of terminal can comprise direction value and the angle value of terminal:
Conventionally the three-dimensional cartesian coordinate system in three dimensions is by the Y-axis in vertical direction, and the Z axis on longitudinal direction, and X-axis composition in horizontal direction, wherein, be defined as the angle of pitch with respect to the angle of Y-axis rotation, is defined as roll angle with respect to the angle of Z axis rotation.In the time that terminal is placed in to three-dimensional cartesian coordinate system, can obtain the direction value of terminal in disalignment by gravity sensor, obtain the angle value of terminal in disalignment by angular transducer; Whether the direction value that then judges terminal is within the scope of default direction value, and whether the angle value of terminal is within the scope of default angle value, can determine more exactly thus the inclined degree of terminal; When described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value time, can think that the heeling condition parameter of described terminal meets default tilt condition, can determine that thus terminal is arranged in user's hand.
Because the profile of terminal is generally rectangular parallelepiped, adjacent two faces are mutually vertical.Therefore in above-mentioned implementation, can determine by the direction value of two axles and angle value the inclined degree of terminal, the direction value of working as Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle time, just can determine that terminal is arranged in user's hand.
In another optional implementation, the heeling condition parameter of terminal can comprise projector distance value:
Now can obtain in described terminal linear projection between two default reference point to the projector distance on each axle in three-dimensional cartesian coordinate system; Judge as the described projector distance of the heeling condition parameter of described terminal whether within the scope of default projector distance; In the time that 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 step 102, identify described terminal and whether rotate around an axle, if so, perform step 103; Otherwise, finish current flow process.
In this step, meet certain tilt condition detecting terminal, determine when terminal is held by user, more further whether identification terminal rotates around an axle, thereby the rotation of judging this terminal is enabled by user, so that the operation that accurately triggering terminal is preset.
, can first obtain the first angle of rotation, and postpone, behind Preset Time interval, to obtain the second angle of rotation whether in the time that an axle rotates at identification terminal; Calculate the angle of rotation difference of described the second angle of rotation and described the first angle of rotation; Judge that described angle of rotation difference is whether in default rotation difference range; In the time that described angle of rotation difference is in described rotation difference range, determine that described terminal rotates around an axle.Wherein, in the time that described the first angle of rotation and described the 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 default roll angle difference range; In the time that described the first angle of rotation and described the 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 default angle of pitch difference range; In the time that described the first angle of rotation and described the 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 default accumulated angle difference range.
In step 103, trigger described terminal and carry out default operation, finish current flow process.
In the present embodiment, can set in advance operation corresponding to different heeling condition parameters that meets default tilt condition, or, the different operation of correspondence in the time that disalignment is rotated, or, different heeling condition parameters and the operation corresponding to combination of rotating around disalignment, so as user in terminal under different heeling conditions, carry out different predetermined registration operation by different rotating manner triggering terminal.These predetermined registration operation can comprise: release terminal screen, switch song, enter screening-mode, rotation terminal display interface etc.
As seen from the above-described embodiment, whether this embodiment meets default tilt condition by the heeling condition parameter of sense terminals, judge whether terminal is placed in user's hand, thereby the in the situation that of user's hand held terminal, whether rotate around an axle by identification terminal, judge whether to be rotated by user's enabled terminals, and then trigger default operation.Owing to rotating while enabling for user identifying terminal, triggering terminal is carried out default operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, has improved the accuracy of terminal control and operation thus.
As shown in Figure 2, Fig. 2 is according to the process flow diagram of the method for a kind of control terminal shown in an exemplary embodiment, and the method can, in terminal, comprise the following steps:
In step 201, in three-dimensional cartesian coordinate system, obtain direction value and angle value as the heeling condition parameter of terminal.
Terminal in disclosure embodiment can comprise: mobile phone, panel computer PAD etc. is convenient to the terminal that user holds, in the time of user's hand held terminal, terminal in three dimensions conventionally in heeling condition, therefore in this step, first in three-dimensional cartesian coordinate system, obtain direction value and angle value as the heeling condition parameter of terminal, to further judge according to above-mentioned value whether terminal is held by user.
Conventionally the three-dimensional cartesian coordinate system in three dimensions is by the Y-axis in vertical direction, and the Z axis on longitudinal direction, and X-axis composition in horizontal direction, wherein, be defined as the angle of pitch with respect to the angle of Y-axis rotation, is defined as roll angle with respect to the angle of Z axis rotation.Referring to Fig. 3 A to Fig. 3 D, show the three-dimensional cartesian coordinate system of disclosure embodiment, and terminal schematic diagram in horizontality and plumbness in three-dimensional cartesian coordinate system.Wherein, shown in Fig. 3 A and Fig. 3 B, when terminal horizontal positioned, if the main-vision surface of terminal down in Fig. 3 A, 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, 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 is vertically placed, if the main-vision surface of terminal is towards a left side in Fig. 3 C, 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, the angle of Z-direction is-90 °, and the angle of Y direction is 0 °.
In the time that terminal is placed in to three-dimensional cartesian coordinate system, can obtain the direction value of terminal in disalignment by gravity sensor, obtain the angle value of terminal in disalignment by angular transducer.Referring to Fig. 3 E to Fig. 3 H, the heeling condition of terminal when showing common four kinds of users and holding terminal: wherein, Fig. 3 E shows user's right hand and holds terminal, and terminal main-vision surface is upward time, and terminal presents the left-leaning heeling condition of facing upward; Fig. 3 F shows user's left hand and holds terminal, and terminal main-vision surface is upward time, and terminal presents the heeling condition of the Right deviation of facing upward; Fig. 3 G shows user's right hand and holds terminal, and terminal main-vision surface is down time, and terminal presents the left-leaning heeling condition of bowing; Fig. 3 H shows user's left hand and holds terminal, and terminal when facing down, terminal presents the heeling condition of the Right deviation of bowing.In this step, no matter user adopts above-mentioned which kind of mode to hold terminal, can obtain terminal in the direction value of Y-axis with in the direction value of Z axis by gravity sensor, and obtain terminal with respect to the angle of pitch of Y-axis with respect to the roll angle of Z axis by angular transducer.
Step 202: judge that described direction value is whether within the scope of default direction value, and described angle value is whether within the scope of default angle value, if so, performs step 203; Otherwise, finish current flow process.
In the present embodiment, the difference of posture custom while holding terminal according to different user, setting party is to value scope and angle value scope, and above-mentioned direction value scope and angle value scope guarantee direction value and the angle value of general encompasses users while holding terminal.Therefore, obtaining after the direction value and angle value of terminal, can be by direction value and default direction value scope are compared, and angle value and default angle value scope are compared, to judge whether terminal is held by user.
In the present embodiment, terminal when user holds in Fig. 3 E left-leaning heeling condition of facing upward, 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 angle of pitch scope-80 ° are to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; The face upward heeling condition of Right deviation of 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 angle of pitch scope-80 ° are to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° to-10 °; The left-leaning heeling condition of bowing in terminal when user holds in Fig. 3 G, 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; The heeling condition of the Right deviation of bowing in the terminal when user holds in Fig. 3 H, 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 angle of pitch scope-80 ° are to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° to-10 °.
In step 203, obtain the first angle of rotation, and postpone, behind Preset Time interval, to obtain the second angle of rotation.
In the present embodiment, can be by judging that terminal angle of rotation difference in a certain time interval carrys out identification terminal and whether rotate 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.Conventionally the scope at Preset Time interval can be between 200 milliseconds to 500 milliseconds.
In step 204, calculate the angle of rotation difference of described the second angle of rotation and described the first angle of rotation.
In step 205, judge that described angle of rotation difference whether in default rotation difference range, if so, performs step 206; Otherwise, finish current flow process.
In the present embodiment, rotate the amplitude difference of terminal according to different user while holding terminal, setting party rotates difference range, and above-mentioned rotation difference range guarantees to rotate when general encompasses users is held terminal the rotational angle difference of terminal generation.Therefore calculating after the angle of rotation difference of front and back, Preset Time interval the rotation that can whether whether be enabled by user in the rotation of rotating definite terminal in difference range according to angle of rotation.Wherein, in the time that described the first angle of rotation and described the 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 default roll angle difference range; In the time that described the first angle of rotation and described the 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 default angle of pitch difference range; In the time that described the first angle of rotation and described the 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 default accumulated angle difference range.
Referring to Fig. 3 I and Fig. 3 J, the schematic diagram during for user's left-right rotation terminal, wherein, Fig. 3 I is that terminal is held in the right hand, the left-leaning state of facing upward, Fig. 3 J is that terminal holds in left hand the Right deviation state of facing upward.For left-right rotation, obtain a roll angle, postponing after 500 milliseconds, then obtaining a roll angle, if the difference of two roll angles between 2 ° to 20 ° of roll angle difference range arranging time, can determine that terminal is around Z axis left-right rotation.Now, if roll angle difference lower than 2 °, illustrates that velocity of rotation is unhappy and angle is little, even rotate terminal by user, this rotation is not the rotation that user wants to trigger predetermined registration operation yet; If roll angle difference higher than 20 °, illustrates that terminal may be in violent rollover states, this rotation is not equally the rotation that user wants to trigger predetermined registration operation yet.
Referring to Fig. 3 K and Fig. 3 L, the schematic diagram while rotating terminal for user front and back, wherein, Fig. 3 K is that terminal is held in the right hand, the left-leaning state of facing upward, Fig. 3 L is that terminal holds in left hand the Right deviation state of facing upward.Rotate for front and back, obtain an angle of pitch, postponing after 500 milliseconds, then obtaining an angle of pitch, rotate before and after Y-axis if the difference of two angles of pitch between 20 ° to 45 ° of angle of pitch difference range arranging time, can be determined described terminal.Now, if angle of pitch difference lower than 20 °, illustrates that velocity of rotation is unhappy and angle is little, even rotate terminal by user, this rotation is not the rotation that user wants to trigger predetermined registration operation yet; If angle of pitch difference higher than 45 °, illustrates that terminal may be in violent rollover states, this rotation is not equally the rotation that user wants to trigger predetermined registration operation yet.
In addition, conventionally user is in the time rotating terminal, may not be completely around Z axis, or Y-axis rotation, but around the synthetic axle rotation of Z axis and Y-axis, therefore can decompose the Z axis roll angle difference component of user when being coiled into axle and rotating, with Y-axis angle of pitch difference component, when roll angle difference component is between 2 ° to 20 ° of corner difference range, and angle of pitch difference component is between 20 ° to 45 ° of the angle of pitch difference range time, can determine that terminal rotates around the synthetic axle of Z axis and Y-axis.
In step 206, trigger described terminal and carry out default operation, finish current flow process.
In the present embodiment, can set in advance operation corresponding to different heeling condition parameters that meets default tilt condition, or, the different operation of correspondence in the time that disalignment is rotated, or, different heeling condition parameters and the operation corresponding to combination of rotating around disalignment, so as user in terminal under different heeling conditions, carry out different predetermined registration operation by different rotating manner triggering terminal.These predetermined registration operation can comprise: release terminal screen, switch song, enter screening-mode, rotation terminal display interface etc., then this repeats no longer one by one.
Several application the present embodiment triggering terminal are described below and carry out predetermined registration operation example:
In one example, user winter is out of doors or when particular surroundings band gloves, when terminal is in the lock state, if user rotates terminal under certain tilt condition, as shown in Fig. 3 I, the right hand holds left-right rotation terminal, just can after triggering terminal start, automatically skip screen locking wait interface, slide screen operation thereby avoid user to take the gloves off;
In another example, in the time of the inconvenient touch terminal screen of user, can be after power-on, identify user and rotate terminal under certain tilt condition, specify application or trigger specific operation thereby enter, such as user under water time, terminal can be contained in totally enclosed transparent gum cover, when as shown in Fig. 3 I, the right hand holds left-right rotation terminal, triggering terminal enters exposal model, when as shown in Fig. 3 J, left hand rotates terminal before and after holding, 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, as shown in Fig. 3 L, left and right is rotated and is entered post-positioned pick-up head normal photographing mode before and after holding.
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, in the time that terminal is vertically placed in pocket, or when oppositely place downwards on top, jolt in any case also can not trigger and change song operation; Further, can also, under difference is held state, become large by different rotating manner control volumes, or diminish, or repeat playing song etc.
In another example, direct Rotation screen while can control terminal inclination, but in the time recognizing user and rotate this terminal again according to gravity direction Rotation screen, thereby can in the time that user lies on one's side, also can utilize gravity sensing to trigger screen rotation operation, avoid screen rotation to be fixed setting.
As seen from the above-described embodiment, whether the heeling condition parameter by sense terminals meets default tilt condition, judge whether terminal is placed in user's hand, thereby the in the situation that of user's hand held terminal, whether rotate around an axle by identification terminal, judge whether to be rotated by user's enabled terminals, and then trigger default operation.Owing to rotating while enabling for user identifying terminal, triggering terminal is carried out default operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, has improved the accuracy of terminal control and operation thus; And by different heeling condition parameters, comprise the combination of direction and angle, heeling condition to terminal judges, therefore can be applicable to flexibly as required in multiple terminal or plurality of application scenes, above-mentioned heeling condition parameter can gravity sensor and direction sensor based on generally arranging in terminal obtain, therefore implementation procedure is simple, and detection efficiency is higher; And the slant range that this embodiment provides and rotation difference range, the inclined degree of terminal when more meeting general user and holding terminal, and rotate the rotation amplitude of terminal when terminal, therefore in the time can more accurately determining that terminal is held by user, the rotation of terminal is the rotation being enabled by user, but not therefore the terminal rotation that general external force causes now triggers 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 also provides the device of control terminal and the embodiment of terminal.
As shown in Figure 4, Fig. 4 be the disclosure according to the device block diagram of a kind of control terminal shown in an exemplary embodiment, described device comprises: detecting unit 41, recognition unit 42 and trigger element 43.
Wherein, described detecting unit 41, whether the heeling condition parameter that is configured to sense terminals meets default tilt condition;
Whether described recognition unit 42, is configured in the time that described heeling condition parameter meets described tilt condition, identify described terminal and rotate around an axle;
Described trigger element 43, is configured to, identifying described terminal in the time that an axle rotates, trigger described terminal and carry out default operation.
In above-described embodiment, whether the heeling condition parameter by sense terminals meets default tilt condition, judge whether terminal is placed in user's hand, thereby the in the situation that of user's hand held terminal, whether rotate around an axle by identification terminal, judge whether to be rotated by user's enabled terminals, and then trigger default operation.Owing to rotating while enabling for user identifying terminal, triggering terminal is carried out default operation, therefore can reduce and only judge that terminal acceleration change causes right terminal maloperation, has improved the accuracy of terminal control and operation thus.
As shown in Figure 5, Fig. 5 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in 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, the first scope judgment sub-unit 412, the first detect and determine subelement 413.
Wherein, the first parameter acquiring subelement 411, is configured to obtain direction value and the angle value as the heeling condition parameter of described terminal in three-dimensional cartesian coordinate system;
The first scope judgment sub-unit 412, is configured to judge that described direction value is whether within the scope of default direction value, and whether described angle value is within the scope of default angle value;
First detects and determines subelement 413, be configured to when described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value time, determines that the heeling condition parameter of described terminal meets default tilt condition.
In an optional implementation, described direction value is within the scope of default direction value, and described angle value comprises within the scope of default angle value: the direction value of Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle.
Further, the direction value of described Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis can comprise within the scope of default roll angle: 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 angle of pitch scope-80 ° are to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° 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 to flexibly as required in multiple terminal or plurality of application scenes; And above-mentioned heeling condition parameter can gravity sensor and direction sensor based on generally arranging in terminal obtain, and therefore implementation procedure is simple, and detection efficiency is higher.
As shown in Figure 6, Fig. 6 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described the 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 obtain the direction value as described heeling condition parameter by gravity sensor;
Angle value acquisition module 4112, is configured to obtain the angle value as described heeling condition parameter by angular transducer.
As shown in Figure 7, Fig. 7 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described detecting unit 41 can comprise: the second parameter acquiring subelement 414, the second scope judgment sub-unit 415 and second detect determines subelement 416.
Wherein, the second parameter acquiring subelement 414, is configured to obtain in described terminal linear projection between two default reference point to the projector distance on each axle in three-dimensional cartesian coordinate system;
Whether the second scope judgment sub-unit 415, be configured to judge as the described projector distance of the heeling condition parameter of described terminal within the scope of default projector distance;
Second detects definite subelement 416, is configured in the time that 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, by projector distance, the heeling condition of terminal is judged, therefore can be applicable to flexibly as required in multiple terminal or plurality of application scenes; And above-mentioned heeling condition parameter can gravity sensor and direction sensor based on generally arranging in terminal obtain, and therefore implementation procedure is simple, and detection efficiency is higher.
As shown in Figure 8, Fig. 8 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in 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, difference computation subunit 422, difference judgment sub-unit 423 and identification and determines subelement 424.
Wherein, angle of rotation obtains subelement 421, is configured to obtain the first angle of rotation, and postpones, behind Preset Time interval, to obtain the second angle of rotation;
Difference computation subunit 422, is configured to calculate the angle of rotation difference of described the second angle of rotation and described the first angle of rotation;
Difference judgment sub-unit 423, is configured to judge that described angle of rotation difference is whether in default rotation difference range;
Subelement 424 is determined in identification, is configured in the time that described angle of rotation difference is in described rotation difference range, determines that described terminal rotates 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 earlier figures 5 to Fig. 7 any one device embodiment, and this disclosure is not limited.
The slant range providing in above-described embodiment and rotation difference range, the inclined degree of terminal when more meeting general user and holding terminal, and rotate the rotation amplitude of terminal when terminal, therefore in the time can more accurately determining that terminal is held by user, the rotation of terminal is the rotation being enabled by user, but not therefore the terminal rotation that general external force causes now triggers the wish that default operation more meets user, it is more accurate to operate.
As shown in Figure 9, Fig. 9 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in 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 in the time that described the first angle of rotation and described the 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 default roll angle difference range;
Angle of pitch difference judge module 4232, is configured in the time that described the first angle of rotation and described the 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 default angle of pitch difference range;
Accumulated angle difference judge module 4233, is configured in the time that described the first angle of rotation and described the 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 default accumulated angle difference range.
As shown in figure 10, Figure 10 is that the disclosure is according to the device block diagram of the another kind of control terminal shown in 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 synthetic axle rotates identification module 4243.
Wherein, Z axis rotates identification module 4241, is configured to, when described roll angle difference is between 2 ° to 20 ° of roll angle difference range time, determine that described terminal is around Z axis left-right rotation;
Y-axis is rotated identification module 4242, is configured to, when described angle of pitch difference is between 20 ° to 45 ° of the angle of pitch difference range time, determine the rotation before and after Y-axis of described terminal;
Synthetic axle rotates identification module 4243, be configured to when the roll angle difference component in described accumulated angle difference is between 2 ° to 20 ° of corner difference range, and angle of pitch difference component is between 20 ° to 45 ° of the angle of pitch difference range time, determine that described terminal rotates around the synthetic axle of Z axis and Y-axis.
In addition, in above-mentioned each device embodiment, default operation can comprise an at least following operation: release terminal screen, switch song, enter screening-mode, rotation terminal display 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 is referring to the part explanation of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of module wherein to realize the object of disclosure scheme.Those of ordinary skill in the art, in the situation that not paying creative work, are appreciated that and implement.
As shown in figure 11, Figure 11 is that the disclosure is according to a kind of another structural representation for safety control 1100 shown in an exemplary embodiment.For example, device 1100 can be mobile phone, computing machine, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, 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 processing components 1102 common control device 1100, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Processing components 1102 can comprise that one or more processors 1120 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1102 can comprise one or more modules, is convenient to mutual between processing components 1102 and other assemblies.For example, processing components 1102 can comprise multi-media module, to facilitate mutual 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.
Power supply module 1106 provides electric power for installing 1100 various assemblies.Power supply module 1106 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for device 1100.
Multimedia groupware 1108 is included in the screen that an output interface is provided 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 that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.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 output and/or input audio signal.For example, 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 receiving can be further stored in storer 1104 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 sensors, is used to device 1100 that the state estimation of various aspects is provided.For example, sensor module 1114 can detect the opening/closing state of device 1100, the relative positioning of assembly, for example described assembly is display and the keypad of device 1100, the position of all right pick-up unit 1100 of sensor module 1114 or 1100 assemblies of device changes, user is with device 1100 existence that contact or do not have 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 be convenient to the communication of wired or wireless mode between device 1100 and other equipment.Device 1100 wireless networks that can access based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1116 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, described communications component 1116 also comprises near-field communication (NFC) module, to promote junction service.For example, can be 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 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, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the storer 1104 of instruction, above-mentioned instruction can have been carried out said method by the processor 1120 of device 1100.For example, described non-provisional computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment 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 default tilt condition;
In the time that described heeling condition parameter meets described tilt condition, identify described terminal and whether rotate around an axle;
Identifying described terminal in the time that an axle rotates, trigger described terminal and carry out default operation.
Described processor can also be configured to:
Whether the heeling condition parameter of described sense terminals meets default tilt condition, comprising:
In three-dimensional cartesian coordinate system, obtain direction value and angle value as the heeling condition parameter of described terminal;
Judge that described direction value is whether within the scope of default direction value, and described angle value is whether within the scope of default angle value;
When described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value time, determines 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 default direction value, and described angle value is within the scope of default angle value, comprising:
The direction value of Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle.
Described processor can also be configured to:
The direction value of described Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle, 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° to-10 °.
Described processor can also be configured to:
Described direction value and the angle value obtaining as the heeling condition parameter of described terminal, comprising:
Obtain the direction value as described heeling condition parameter by gravity sensor;
Obtain the angle value as described heeling condition parameter 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;
Postpone, behind Preset Time interval, to obtain the second angle of rotation;
Calculate the angle of rotation difference of described the second angle of rotation and described the first angle of rotation;
Judge that described angle of rotation difference is whether in default rotation difference range;
In the time that described angle of rotation difference is in described rotation difference range, determine that described terminal rotates around an axle.
Described processor can also be configured to:
Describedly judge whether described angle of rotation difference comprises in default rotation difference range:
In the time that described the first angle of rotation and described the 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 default roll angle difference range;
In the time that described the first angle of rotation and described the 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 default angle of pitch difference range;
In the time that described the first angle of rotation and described the 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 default accumulated angle difference range.
Described processor can also be configured to:
Described in the time that described angle of rotation difference is in described rotation difference range, determine that described terminal rotates around an axle, comprising:
When described roll angle difference is between 2 ° to 20 ° of roll angle difference range time, determine that described terminal is around Z axis left-right rotation;
When described angle of pitch difference is between 20 ° to 45 ° of the angle of pitch difference range time, determine that described terminal rotates before and after Y-axis;
When the roll angle difference component in described accumulated angle difference is between 2 ° to 20 ° of corner difference range, and angle of pitch difference component is between 20 ° to 45 ° of the angle of pitch difference range time, determines that described terminal rotates around the synthetic axle of Z axis and Y-axis.
Described processor can also be configured to:
Described default operation comprises an at least following operation: release terminal screen, switch song, enter screening-mode, rotation terminal display interface.
Those skilled in the art, considering instructions and putting into practice after 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 undocumented common practise or the conventional techniques means in the art of the disclosure.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 amendments and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (19)

1. a method for control terminal, is characterized in that, described method comprises:
Whether the heeling condition parameter of sense terminals meets default tilt condition;
In the time that described heeling condition parameter meets described tilt condition, identify described terminal and whether rotate around an axle;
Identifying described terminal in the time that an axle rotates, trigger described terminal and carry out default operation.
2. method according to claim 1, is characterized in that, whether the heeling condition parameter of described sense terminals meets default tilt condition, comprising:
In three-dimensional cartesian coordinate system, obtain direction value and angle value as the heeling condition parameter of described terminal;
Judge that described direction value is whether within the scope of default direction value, and described angle value is whether within the scope of default angle value;
When described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value time, determines that the heeling condition parameter of described terminal meets default tilt condition.
3. method according to claim 2, is characterized in that, described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value, comprising:
The direction value of Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle.
4. method according to claim 3, it is characterized in that, the direction value of described Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle, 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° to-10 °.
5. method according to claim 2, is characterized in that, described in obtain direction value and the angle value as the heeling condition parameter of described terminal, comprising:
Obtain the direction value as described heeling condition parameter by gravity sensor;
Obtain the angle value as described heeling condition parameter by angular transducer.
6. 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;
Postpone, behind Preset Time interval, to obtain the second angle of rotation;
Calculate the angle of rotation difference of described the second angle of rotation and described the first angle of rotation;
Judge that described angle of rotation difference is whether in default rotation difference range;
In the time that described angle of rotation difference is in described rotation difference range, determine that described terminal rotates around an axle.
7. method according to claim 6, is characterized in that, describedly judges whether described angle of rotation difference comprises in default rotation difference range:
In the time that described the first angle of rotation and described the 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 default roll angle difference range;
In the time that described the first angle of rotation and described the 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 default angle of pitch difference range;
In the time that described the first angle of rotation and described the 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 default accumulated angle difference range.
8. method according to claim 7, is characterized in that, described in the time that described angle of rotation difference is in described rotation difference range, determines that described terminal rotates around an axle, comprising:
When described roll angle difference is between 2 ° to 20 ° of roll angle difference range time, determine that described terminal is around Z axis left-right rotation;
When described angle of pitch difference is between 20 ° to 45 ° of the angle of pitch difference range time, determine that described terminal rotates before and after Y-axis;
When the roll angle difference component in described accumulated angle difference is between 2 ° to 20 ° of corner difference range, and angle of pitch difference component is between 20 ° to 45 ° of the angle of pitch difference range time, determines that described terminal rotates around the synthetic axle of Z axis and Y-axis.
9. according to the arbitrary described method of claim 1 to 8, it is characterized in that, described default operation comprises an at least following operation: release terminal screen, switch song, enter screening-mode, rotation terminal display interface.
10. a device for control terminal, is characterized in that, described device comprises:
Whether detecting unit, meet default tilt condition for detection of the heeling condition parameter of terminal;
Whether recognition unit, in the time that described heeling condition parameter meets described tilt condition, identify described terminal and rotate around an axle;
Trigger element, for identifying described terminal in the time that an axle rotates, triggers described terminal and carries out default operation.
11. devices according to claim 10, is characterized in that, described detecting unit comprises:
The first parameter acquiring subelement, for obtaining direction value and the angle value as the heeling condition parameter of described terminal at three-dimensional cartesian coordinate system;
The first scope judgment sub-unit, for judging that described direction value is whether within the scope of default direction value, and whether described angle value is within the scope of default angle value;
First detects and determines subelement, and for when described direction value is within the scope of default direction value, and described angle value is within the scope of default angle value time, determines that the heeling condition parameter of described terminal meets default tilt condition.
12. devices according to claim 11, is characterized in that, described direction value is within the scope of default direction value, and described angle value comprises within the scope of default angle value:
The direction value of Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis is within the scope of default roll angle.
13. devices according to claim 12, it is characterized in that, the direction value of described Y-axis is within the scope of default Y direction value, and the direction value of Z axis is within the scope of default Z-direction value, and the angle of pitch of Y-axis is within the scope of the default angle of pitch, and the roll angle of Z axis comprises within the scope of default roll angle:
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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between 10 ° to 40 ° of roll angle scopes; 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 angle of pitch scope-80 are ° to-40 °, and the roll angle of described Z axis is between roll angle scope-40 are ° to-10 °.
14. devices according to claim 11, is characterized in that, described the 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.
15. devices according to claim 10, is characterized in that, described recognition unit comprises:
Angle of rotation obtains subelement, for obtaining the first angle of rotation, and postpones, behind Preset Time interval, to obtain the second angle of rotation;
Difference computation subunit, for calculating the angle of rotation difference of described the second angle of rotation and described the first angle of rotation;
Difference judgment sub-unit, for judging that described angle of rotation difference is whether in default rotation difference range;
Subelement is determined in identification, in the time that described angle of rotation difference is in described rotation difference range, determines that described terminal rotates around an axle.
16. devices according to claim 15, is characterized in that, described difference judgment sub-unit comprises:
Roll angle difference judge module, in the time that described the first angle of rotation and described the 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 default roll angle difference range;
Angle of pitch difference judge module, in the time that described the first angle of rotation and described the 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 default angle of pitch difference range;
Accumulated angle difference judge module, in the time that described the first angle of rotation and described the 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 default accumulated angle difference range.
17. devices according to claim 16, is characterized in that, described identification determines that subelement comprises:
Z axis rotates identification module, for when described roll angle difference is between 2 ° to 20 ° of roll angle difference range time, determines that described terminal is around Z axis left-right rotation;
Y-axis is rotated identification module, for when described angle of pitch difference is between 20 ° to 45 ° of the angle of pitch difference range time, determines the rotation before and after Y-axis of described terminal;
Synthetic axle rotates identification module, the roll angle difference component that is used for working as described accumulated angle difference is between 2 ° to 20 ° of corner difference range, and angle of pitch difference component is between 20 ° to 45 ° of the angle of pitch difference range time, determine that described terminal rotates around the synthetic axle of Z axis and Y-axis.
18. according to claim 10 to 17 arbitrary described devices, it is characterized in that, described default operation comprises an at least following operation: release terminal screen, switch song, enter screening-mode, rotation terminal display interface.
The device of 19. 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 default tilt condition;
In the time that described heeling condition parameter meets described tilt condition, identify described terminal and whether rotate around an axle;
Identifying described terminal in the time that an axle rotates, trigger described terminal and carry out default operation.
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 true CN104123075A (en) 2014-10-29
CN104123075B 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)

Cited By (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
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
CN105929936A (en) * 2015-02-26 2016-09-07 摩托罗拉移动有限责任公司 Method And Apparatus For Gesture Detection In Electronic Device
CN106406741A (en) * 2016-09-30 2017-02-15 维沃移动通信有限公司 Operation processing method of mobile terminal and 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

Cited By (7)

* 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
CN105929936A (en) * 2015-02-26 2016-09-07 摩托罗拉移动有限责任公司 Method And Apparatus For Gesture Detection In 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
CN106406741A (en) * 2016-09-30 2017-02-15 维沃移动通信有限公司 Operation processing method of mobile terminal and mobile terminal
CN106406741B (en) * 2016-09-30 2019-08-20 维沃移动通信有限公司 A kind of operation processing method and mobile terminal of mobile terminal

Also Published As

Publication number Publication date
CN104123075B (en) 2016-03-30

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
CN104034309A (en) Angle measurement method, angle measurement device and terminal
CN104035662A (en) Interface display method, device and terminal
CN103841264A (en) Method and device for protecting terminal equipment and terminal equipment
CN104244045B (en) The method that control video pictures presents and device
CN103970500A (en) Method and device for displaying picture
CN104613959A (en) Navigation method and device for wearable device and electronic equipment
CN104270565A (en) Image shooting method and device and equipment
CN107102801A (en) Terminal screen spinning solution and device
CN105068632A (en) Terminal charging method and device and terminal
JP2018501672A (en) Camera device positioning control method, positioning control apparatus, camera device, computer program, and computer-readable storage medium
CN104182313A (en) Photographing delay method and device
CN104065883B (en) Image pickup method and device
CN105959545A (en) Camera and camera control method and device
CN103995666A (en) Method and device for setting work mode
CN105204808A (en) Picture projection method and device and terminal equipment
CN105069426A (en) Similar picture determining method and apparatus
CN104090655A (en) Terminal and terminal control method and device.
CN104243829A (en) Self-shooting method and self-shooting device
CN104010072A (en) Electric quantity prompt method and device
CN104936039A (en) Image processing method and device
CN105224171A (en) icon display method, device and terminal

Legal Events

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