Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of method of controlling operation thereof and electronic equipment, and to improve user to the dirigibility of the input operation of touch sensible equipment and convenience, technical scheme is as follows:
The application provides a kind of method of controlling operation thereof, be applied to an electronic equipment, described electronic equipment at least comprises the first state and second state different from described the first state, described electronic equipment has an instruction set, when described electronic equipment is during in described the first state, described electronic equipment can be carried out the first subset of instructions in described instruction set, when described electronic equipment is during in described the second state, described electronic equipment can be carried out the second subset of instructions in described instruction set, wherein, the number of described the first subset of instructions is less than the number of described the second subset of instructions, described electronic equipment has a sensing unit, described method of controlling operation thereof comprises:
The movement locus of generation while utilizing described sensing unit to obtain operating body described electronic equipment is carried out to input operation;
Whether the number of times that judges described movement locus generation flex point is not less than preset value, obtains a judged result;
When obtaining described movement locus and produce the number of times of flex point and be not less than the judged result of preset value, control described electronic equipment and switch to the second state from the first state.
Preferably, whether the described number of times that judges that described movement locus produces flex point is not less than preset value, is specially:
Judge that whether described movement locus number of times through described sensing unit in default duration is not less than preset value, obtains a judged result.
Preferably, the process that whether the described number of times that judges that described movement locus produces flex point is not less than preset value is specially:
Whether the number that judges the intersection point that described movement locus produces is not less than the first preset value, obtains a judged result.
Preferably, the process that whether the described number of times that judges that described movement locus produces flex point is not less than preset value is specially:
Whether the number that the curvature that judges described movement locus is greater than threshold value is not less than the first preset value, obtains a judged result.
Preferably, described the first state is lock-out state, and described the second state is unlock state.
The application also provides a kind of electronic equipment, described electronic equipment has the first state and the second state, described electronic equipment has an instruction set, when described electronic equipment is during in described the first state, described electronic equipment can be carried out the first subset of instructions in described instruction set, when described electronic equipment is during in described the second state, described electronic equipment can be carried out the second subset of instructions in described instruction set, wherein, the number of described the first subset of instructions is less than the number of described the second subset of instructions, and described electronic equipment also comprises:
Sensing unit, the movement locus of generation while described electronic equipment being carried out to input operation for acquisition operations body;
Judging unit, for judging that whether the number of times of described movement locus generation flex point is not less than preset value, obtains a judged result;
Performance element, for when obtaining described movement locus and produce the number of times of flex point and be not less than the judged result of preset value, controls described electronic equipment and switches to the second state from the first state.
Preferably, described judging unit specifically for: judge that described movement locus is in default duration, through the number of times of described sensing unit, whether be not less than preset value, obtain a judged result.
Preferably, described judging unit specifically for: whether the number that judges the intersection point that described movement locus produces is not less than the first preset value, obtains a judged result.
Preferably, described judging unit specifically for: whether the number that the curvature that judges described movement locus is greater than threshold value is not less than the first preset value, obtains with judged result.
Preferably, described sensing unit is touch-screen.
The technical scheme being provided from above the embodiment of the present application, described method of controlling operation thereof and electronic equipment, the movement locus of generation while described electronic equipment being carried out to input operation by sensing unit acquisition operations body, when the number of times of described movement locus generation flex point is not less than preset value, control described electronic equipment and be converted to the second state from the first state, the concrete gesture of the movement locus that this kind of method of controlling operation thereof do not limit operating body while carrying out input operation, as long as the number of times that operating body moves back and forth on described sensing unit meets the demands, can control electronic equipment and carry out state switching, dirigibility and the convenience of user's operation have been improved, and, be more conducive to user electronic equipment is carried out to one-handed performance, user can be hold by one hand electronic equipment, under this gripping state, utilizes the thumb that is beneficial to input most to carry out at the induction region of described sensing unit the state conversion that reciprocal input can realize electronic equipment.
Embodiment
In order to make those skilled in the art person understand better the technical scheme in the application, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all should belong to the scope of the application's protection.
Refer to Fig. 1, show a kind of schematic flow sheet of method of controlling operation thereof, described method of controlling operation thereof is applied to electronic equipment, described electronic equipment at least comprises the first state and second state different from described the first state, simultaneously, described electronic equipment has an instruction set, and when described electronic equipment is during in the first state, electronic equipment is carried out the first subset of instructions in described instruction set; When in the second state, described electronic equipment is carried out the second subset of instructions in described instruction set.Wherein, the number of described the first subset of instructions is less than the number of described the second subset of instructions.Described electronic equipment also has a sensing unit.
Described method of controlling operation thereof comprises the following steps:
S101, the movement locus of generation while utilizing described sensing unit to obtain operating body described electronic equipment is carried out to input operation.
During concrete enforcement, while carrying out input operation on the sensing unit of operating body at described electronic equipment, can produce the movement locus corresponding with the input operation of described operating body, this step is used for obtaining described movement locus.Described sensing unit can be touch pad or touch-screen.
S102, judges whether the number of times of described movement locus generation flex point is not less than preset value, obtains a judged result.
During concrete enforcement, whether the described movement locus that detects previous step acquisition is the operating body track that to-and-fro movement produces on sensing unit, when movement locus produces flex point, thinks that the input operation of operating body on sensing unit is to-and-fro movement operation.Concrete, whether the angle that can form the adjacent two strip line segments in the sub-line segment of movement locus by judgement is not more than preset angles judges whether described movement locus produces flex point.Described preset angles can be for being greater than 0 °, and be less than the angle of 180 °, and preferred, described preset angles is to be greater than the acute angle of 0 °.
And whether the number of times that judges described movement locus generation flex point is not less than a certain preset value.
S103, when obtaining described movement locus and produce the number of times of flex point and be not less than the judged result of preset value, controls described electronic equipment and switches to the second state from the first state.
When described movement locus being detected and produce the number of times of flex point and be not less than a certain preset value, trigger electronic equipment and switch to another state by a state, trigger a certain event.Such as, when the number of times of movement locus generation flex point is not less than preset value, trigger described electronic equipment release, now, the first state is lock-out state, the second state is unlock state; Or, when the number of times of movement locus generation flex point is not less than preset value, trigger the camera function of described electronic equipment, now, the first state is holding state, the second state is shooting state.
The method of controlling operation thereof that the present embodiment provides, the movement locus of generation when obtaining operating body described electronic equipment is carried out to input operation by described sensing unit, when described movement locus being detected and produce the number of times of flex point and be not less than preset value, control described electronic equipment and switch to the second state from the first state.The concrete gesture of the movement locus that this kind of method of controlling operation thereof do not limit operating body while carrying out input operation, as long as the number of times that operating body moves back and forth on described sensing unit meets the demands, can control electronic equipment and carry out state switching, improve dirigibility and the convenience of user's operation; And, this kind of method of controlling operation thereof is more conducive to user electronic equipment carried out to one-handed performance, user can be hold by one hand electronic equipment, under this gripping state, utilize the thumb that is beneficial to input most to carry out at the induction region of described sensing unit the state conversion that reciprocal input can realize electronic equipment.
Refer to Fig. 2, show the schematic flow sheet of another kind of method of controlling operation thereof, described method of controlling operation thereof is applied to electronic equipment, described electronic equipment at least comprises the first state and second state different from described the first state, simultaneously, described electronic equipment has an instruction set, and when described electronic equipment is during in the first state, electronic equipment is carried out the first subset of instructions in described instruction set; When in the second state, described electronic equipment is carried out the second subset of instructions in described instruction set.Wherein, the number of described the first subset of instructions is less than the number of described the second subset of instructions.Described electronic equipment also has a sensing unit.
Described method of controlling operation thereof comprises:
S201, the movement locus of generation when obtaining operating body described electronic equipment is carried out to input operation by described sensing unit.
S202, judges that whether described movement locus number of times through sensing unit in default duration is not less than preset value, obtains a judged result.
During concrete enforcement, detect described movement locus and whether reach preset value at the reciprocating number of times of described sensing unit.Specifically as shown in Figure 3, show a kind of concrete shape schematic diagram of movement locus, in figure, curve is theraw movement locus 2 of travelling backwards movable property on thesensing unit 1 of operating body electronic equipment.To be operating bodies in default duration do not stop to move back and forth the movement locus obtaining to thismovement locus 2 in the region in the lower left corner ofsensing unit 1, as shown in the figure, the starting point of describedmovement locus 2 is the end points shown in A point, terminal is the end points shown in B point, between 2 of A and B, reciprocal line segment has four, therefore, thismovement locus 2 is four times through the number of times of described sensing unit, suppose that preset value is three times, obtain describedmovement locus 2 and in default duration, through the number of times of sensing unit, be not less than the judged result of preset value.
S203, when obtaining described movement locus be not less than the judged result of preset value through the number of times of sensing unit in default duration, controls described electronic equipment and switches to unlock state from lock-out state.
The method of controlling operation thereof that the present embodiment provides, the movement locus of generation when obtaining operating body carrying out input operation on sensing unit, by judging that whether described movement locus number of times through sensing unit in default duration is not less than preset value, determines whether to control electronic equipment and carries out state switching.When described operating body is during the moving back and forth of sensing unit, the movement locus producing just can reach preset value through the number of times of sensing unit, the more favourable user of this mode of operation carries out one-handed performance to electronic equipment, user can be hold by one hand electronic equipment, under this gripping state, utilize the thumb be beneficial to input most to carry out reciprocal input at the induction region of described sensing unit and can control electronic equipment release, flexible operation, facility.
Refer to Fig. 4, show the schematic flow sheet of another kind of method of controlling operation thereof, described method of controlling operation thereof is applied to electronic equipment, described electronic equipment at least comprises the first state and second state different from described the first state, simultaneously, described electronic equipment has an instruction set, and when described electronic equipment is during in the first state, electronic equipment is carried out the first subset of instructions in described instruction set; When in the second state, described electronic equipment is carried out the second subset of instructions in described instruction set.Wherein, the number of described the first subset of instructions is less than the number of described the second subset of instructions.Described electronic equipment also has a sensing unit.
The method comprises the following steps:
S401, the movement locus of generation when obtaining operating body described electronic equipment is carried out to input operation by described sensing unit.
S402, whether the number that the curvature that judges described movement locus is greater than threshold value is not less than the first preset value, obtains a judged result.
During concrete enforcement, the value of described threshold value can show that described movement locus produces larger bending, and in the present embodiment, not limiting described threshold value is a certain occurrence.
When described movement locus mean curvature is greater than threshold value, show the generation bending of described movement locus, also show that the moving direction of operating body changes.
Suppose that the corresponding track of point that the curvature of movement locus from starting point to movement locus is greater than threshold value is for the first time that operating body carries out once the movement locus that the motion of " past " produces, from starting point to curvature, being greater than for the second time track between the point of threshold value is that operating body carries out once the movement locus that the motion of " back and forth " produces.
Specifically as shown in Figure 5, operating body carries out inmovement locus 2 that input operation produces onsensing unit 1, the starting point that A point is movement locus, suppose that the curvature that B, C, D, E, F inmovement locus 2 are ordered is all greater than threshold value, segment of curve AB represents that operating body carries out once the movement locus of the motion correspondence of " past ", the curvature that C is ordered is greater than threshold value, and segment of curve BC is the movement locus that operating body carries out once the motion correspondence of " returning ", shows that operating body has completed once " back and forth " motion.The number that this step is greater than threshold value by judgement movement locus mean curvature comes decision operation body to carry out reciprocal number of times.
It should be noted that, Fig. 5 is only a kind of concrete shape of movement locus, and certainly, movement locus can also be other form, such as being the curve of one section of coincidence.
S403, during judged result when obtaining the curvature of described movement locus and be greater than the number of threshold value and be not less than the first preset value, controls described electronic equipment and switches to unlock state from lock-out state.
The method of controlling operation thereof that the present embodiment provides, the movement locus of generation when obtaining operating body carrying out input operation on sensing unit, by judging that whether the number that the curvature of described movement locus is greater than threshold value is not less than preset value, determines whether to control electronic equipment switching state.When the curvature of described movement locus is greater than threshold value, show that operating body moves back and forth on sensing unit, the more favourable user of this mode of operation carries out one-handed performance to electronic equipment, user can be hold by one hand electronic equipment, under this gripping state, utilize the thumb be beneficial to input most to carry out reciprocal input at the induction region of described sensing unit and can control electronic equipment release, flexible operation, facility.
Refer to Fig. 6, show the schematic flow sheet of another kind of method of controlling operation thereof, described method of controlling operation thereof is applied to electronic equipment, described electronic equipment at least comprises the first state and second state different from described the first state, simultaneously, described electronic equipment has an instruction set, and when described electronic equipment is during in the first state, electronic equipment is carried out the first subset of instructions in described instruction set; When in the second state, described electronic equipment is carried out the second subset of instructions in described instruction set.Wherein, the number of described the first subset of instructions is less than the number of described the second subset of instructions.Described electronic equipment also has a sensing unit.
The method comprises the following steps:
S601, the movement locus of generation when obtaining operating body described electronic equipment is carried out to input operation by described sensing unit.
S602, judges whether the number of the intersection point that described movement locus produces is not less than the first preset value, obtains a judged result.
Concrete, inmovement locus 2 as shown in Figure 7a, starting point is A point, terminal is F point, and wherein, B point is the intersection point of line segment AB and line segment BC, C point is the intersection point of line segment BC and line segment CD, and D point is the intersection point of line segment CD and line segment DE, and E point is the intersection point of line segment DE and line segment EF.Wherein, line segment AB represents that operating body carries out once the movement locus of the motion correspondence of " past ", and line segment BC represents to operate the movement locus of the motion correspondence of carrying out once " returning "; When there is intersection point inmovement locus 2, can think the turning point producing when operating body moves back and forth, like this, the number of the intersection point producing byjudgement movement locus 2 is determined the number of times that operating body moves back and forth, when the number of described intersection point reaches the first preset value, think and meet the condition that the state of electronic equipment switches.
In addition, as shown in Figure 7b, show the another kind of concrete shape of described movement locus, as shown in the figure, the operatingbody movement locus 2 that to-and-fro movement produces onsensing unit 1, the starting point of describedmovement locus 2 is A point, terminal is D point, in figure, e, 2 of f are the intersection points ofmovement locus 2, by the existence of judgement intersection point e, and then can judgemovement locus 2 generation flex point B; In like manner, by the existence of judgement intersection point f, and then can judgemovement locus 2 generation flex point C.Whenmovement locus 2 produces flex point, show that the input operation of operating body on sensingunit 1 is to-and-fro movement, therefore, the number of the intersection point that can produce byjudgement movement locus 2 is determined the reciprocating number of times of operating body, when the number of described intersection point reaches the first preset value, think and meet the condition that the state of electronic equipment switches.
S603, when obtaining the number of the intersection point that described movement locus produces and be not less than the judged result of the first preset value, controls described electronic equipment and switches to unlock state from lock-out state.
The method of controlling operation thereof that the present embodiment provides, the movement locus of generation when obtaining operating body carrying out input operation on sensing unit, by judging that whether the number of the intersection point that described movement locus produces is not less than the first preset value, determines whether to control electronic equipment switching state.When described movement locus produces intersection point, can think that operating body moves back and forth on sensing unit, the more favourable user of this mode of operation carries out one-handed performance to electronic equipment, user can be hold by one hand electronic equipment, under this gripping state, utilize the thumb be beneficial to input most to carry out reciprocal input at the induction region of described sensing unit and can control electronic equipment release, flexible operation, facility.
Corresponding to above-mentioned method of controlling operation thereof, the application also provides a kind of electronic equipment.
Refer to the structural representation that Fig. 8 shows a kind of electronic equipment, described electronic equipment has the first state and the second state, described electronic equipment has an instruction set, when described electronic equipment is during in described the first state, described electronic equipment can be carried out the first subset of instructions in described instruction set, when described electronic equipment is during in described the second state, described electronic equipment can be carried out the second subset of instructions in described instruction set, wherein, the number of described the first subset of instructions is less than the number of described the second subset of instructions.Concrete, described electronic equipment comprises: sensingunit 100, judgingunit 200,performance element 300.
Sensing unit 100, the movement locus of generation while described electronic equipment being carried out to input operation for acquisition operations body.
While carrying out input operation on the sensing unit of operating body at described electronic equipment, can produce the movement locus corresponding with the input operation of described operating body, this sensing unit is specifically for obtaining described movement locus.This sensing unit is specifically as follows touch pad or touch-screen.
Judgingunit 200, for judging that whether the number of times of described movement locus generation flex point is not less than preset value, obtains a judged result.
Whether the described movement locus that detects describedsensing unit 100 acquisitions repeats on sensing unit, and whether the number of times of judgement generation flex point is not less than a certain preset value.
Concrete, described judgingunit 200 can judge whether the number of times of described movement locus generation flex point reaches preset value by following three kinds of modes:
1) judge whether described movement locus number of times through sensing unit in default duration is not less than preset value;
When operating body moves back and forth on sensing unit; the movement locus producing can repeat through described sensing unit; by detecting described movement locus reciprocating number of times at described sensing unit in default duration, whether reach preset value, judge that described movement locus produces the number of times of flex point.
2) whether the number that the curvature that judges described movement locus is greater than threshold value is not less than the first preset value;
Suppose that the corresponding track of point that the curvature of movement locus from starting point to movement locus is greater than threshold value is for the first time that operating body carries out once the movement locus that the motion of " past " produces, from starting point to curvature, being greater than for the second time track between the point of threshold value is that operating body carries out once the movement locus that the motion of " back and forth " produces.The number that is greater than threshold value by judgement movement locus mean curvature comes decision operation body to carry out reciprocal number of times, and movement locus produces the number of times of flex point.
4) whether the number that judges the intersection point that described movement locus produces is not less than the first preset value.
When there is intersection point in movement locus, can think the turning point producing when operating body moves back and forth, like this, the number of the intersection point producing by judgement movement locus is determined the number of times that operating body moves back and forth, when the number of described intersection point reaches the first preset value, think and meet the condition that the state of electronic equipment switches.
Performance element 300, for when obtaining described movement locus and produce the number of times of flex point and be not less than the judged result of preset value, controls described electronic equipment and switches to the second state from the first state.
When described movement locus being detected and produce the number of times of flex point and be not less than a certain preset value, trigger electronic equipment and switch to another state by a state, trigger a certain event.Such as, when the number of times of movement locus generation flex point is not less than preset value, trigger described electronic equipment release, now, the first state is lock-out state, the second state is unlock state; Or, when the number of times of movement locus generation flex point is not less than preset value, trigger the camera function of described electronic equipment, now, the first state is holding state, the second state is shooting state.
The electronic equipment that the present embodiment provides, the movement locus of generation while electronic equipment being carried out to input operation by sensing unit acquisition operations body, judging unit judges whether the number of times of described movement locus generation flex point is not less than preset value, when described movement locus being detected and produce the number of times of flex point and be not less than a certain preset value, trigger electronic equipment and switch to another state by a state, this kind of mode of operation is more conducive to user electronic equipment carried out to one-handed performance, user can be hold by one hand electronic equipment, under this gripping state, utilize the thumb that is beneficial to input most to carry out at the induction region of described sensing unit the state conversion that reciprocal input can realize electronic equipment.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.
The above is only the application's embodiment; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection domain.