Embodiment
For further setting forth the present invention, realize technological means and the effect that predetermined goal of the invention is taked, below in conjunction with accompanying drawing and preferred embodiment, the control method of intelligent terminal and the embodiment of control device, structure, feature and effect thereof to proposing according to the present invention, be described in detail as follows.
The process flow diagram of the control method of the intelligent terminal that Fig. 1 provides for first embodiment of the invention.Above-mentioned control method for example runs in a control device, and control device is for example intelligent remote controller, the smart mobile phone that remote control application is installed, panel computer etc.
As shown in Figure 1, this control method comprises:
Step S110, detect and acceleration A x, the Ay of recording control apparatus on three orthogonal directionss and the data sequence of Az; Consult Fig. 2, Ax is for example the acceleration in X-direction, and Ay is for example the acceleration in Y direction, and Az is for example the acceleration in Z-direction.Acceleration (gravity) sensor (Sensor.TYPE ACCELEROMETER) of Android system of take is example, and under intelligent terminal stationary state, the acceleration of each axle is 10m/s^2.In general brandish normally and shake the acceleration change that operation can bring 4m/s^2.By obtain the output of primary acceleration sensor at interval of a period of time, can obtain the data sequence of each axle acceleration.
Step S120, according to the data sequence of this Ax, Ay and Az, generate corresponding gesture; For example, in the present embodiment, if Ax is less than the first threshold values, and Ay, Az are less than | and 10-Ax|/2 o'clock are first gesture (brandishing left); If Ax is greater than the second threshold values, and Ay, Az are less than | 10-Ax|/2 o'clock are the second gesture (brandishing to the right); Az is greater than the 3rd threshold values, and Ax, Ay are less than | and 10-Az|/2 o'clock are the 3rd gesture (upwards brandishing); If Az is less than the 4th threshold values, and Ax, Ay are less than | 10-Az|/2 o'clock are the 4th gesture (brandishing downwards); If successively occur that Ax is less than the first threshold values, Ax is greater than the second threshold values in the given time, and Ay, Az are less than within this schedule time | 10-Ax|/2 o'clock are the 5th gesture (rocking from side to side); And if priority occurs that Az is less than the 4th threshold values, Az is greater than the first threshold values in the given time, and Ax, Ay are less than within this schedule time | 10-Az|/2 o'clock are the 6th gesture (fluctuating).First to fourth threshold values for example can be respectively 6m/s^2,14m/s^2,14m/s^2,6m/s^2.The schedule time is for example for being less than 500 milliseconds.
It should be noted that and in step S120, only defined gesture, the but also undefined operation corresponding with gesture.In addition, above gesture is only signal, can also define the gesture of any amount.
Step S130, obtain the steering order of application to be controlled and the mapping relations of gesture of current operation in intelligent terminal; Intelligent terminal, such as can be digital TV set-top box, internet multimedia receiving terminal, PC etc., can move various application in it, such as video playback application, picture browsing application, web page browsing application etc.Be appreciated that, heterogeneity based on application, the control operation mode of each application is all not identical yet, and the gesture defining in step S120 is determined, therefore to realize and adopt the gesture defining in step S120 to control the application in intelligent terminal, need to first set up the mapping relations between steering order and gesture.Refer to table 1 to table 3, it has enumerated the steering orders of three kinds of typical case's application and the mapping relations of gesture.
The conventional control operation of table 1 video playback and gesture mapping relations
First gesture (brandishing left) |
Fast reverse play |
The second gesture (brandishing to the right) |
Fast-forward play |
The 3rd gesture (upwards brandishing) |
Heighten volume |
The 4th gesture (brandishing downwards) |
Turn down volume |
The 5th gesture (rocking from side to side) |
Exit broadcasting |
The 6th gesture (fluctuating) |
Suspend, or play |
The conventional control operation of table 2 picture browsing and gesture mapping relations
First gesture (brandishing left) |
Last |
The second gesture (brandishing to the right) |
Latter one |
The 3rd gesture (upwards brandishing) |
Amplification is browsed |
The 4th gesture (brandishing downwards) |
Dwindle and browse |
The 5th gesture (rocking from side to side) |
Exit photograph album or return |
The 6th gesture (fluctuating) |
Be switched to automatic play mode |
The conventional control operation of table 3 web page browsing and gesture mapping relations
First gesture (brandishing left) |
Last link |
The second gesture (brandishing to the right) |
Next link |
The 3rd gesture (upwards brandishing) |
Content scrolls up |
The 4th gesture (brandishing downwards) |
Content is rolled downwards |
The 5th gesture (rocking from side to side) |
Return to the last page |
The 6th gesture (fluctuating) |
Open web page interlinkage |
These mapping relations can be for example that the mode with configuration file is stored in the storer in control device or in the storage server in high in the clouds.In addition, be appreciated that these mapping relations are only signal, those of ordinary skills can redefine or change.For example, for the difference in functionality (operation) of every kind of application, set the gesture different from above-mentioned example.Further, go back the gesture of definable except six kinds of above-mentioned gestures, but be appreciated that the quantity regardless of gesture, by setting the mapping relations between gesture and function (operation), can carry out according to the mode of the present embodiment the control of far-end application.
Therefore, correspondingly, step S130 for example can comprise:
To this intelligent terminal request and receive the identifier of the application to be controlled of its current operation; And
According to this identifier, obtain this mapping relations reading configuration file.
For example, in intelligent terminal, just when displaying video, intelligent terminal returns to corresponding identifier to control device, and control device can the corresponding mapping relations that read table 1.
Step S140, according to this gesture and this mapping relations, generate corresponding steering order.After in step S120, definite gesture and the mapping relations in step S130 are determined, also with regard to the corresponding instruction that is under control.For example, the current picture browse application of moving of intelligent terminal, in step S120, definite gesture is first gesture, the steering order generating is " last ".Be appreciated that this steering order can be by one or more numerals, character representation.
Step S150, this steering order is sent to this intelligent terminal.Control device for example can be connected steering order is sent to intelligent terminal by infrared, bluetooth or WLAN (wireless local area network) (WIFI), completes thus the once control operation to intelligent terminal.
In the control method of the intelligent terminal of the present embodiment, for intelligent terminal, its existing hardware structure and application architecture need not be changed, and the control that the gesture operation based on acceleration transducer adopting in control device completes various application can be realized; And for control device, the gesture operation based on acceleration transducer can complete by one hand under the situation of control device screen shutdown, easy to operate and can save the electric power of control device.
The structured flowchart of the control device of the intelligent terminal that Fig. 3 provides for second embodiment of the invention.Control device is such as can be intelligent remote controller, the smart mobile phone that remote control application is installed, panel computer etc.As shown in Figure 3, control device 200 comprises acceleration module 210, gesture generation module 220, mapping relations module 230, steering order generation module 240 and steering order sending module 250.
Acceleration module 210 for detection of and record acceleration A x, the Ay of intelligent terminal on three orthogonal directionss and the data sequence of Az; Gesture generation module 220 is for generating corresponding gesture according to the data sequence of this Ax, Ay and Az; Mapping relations module 230 is for obtaining the steering order of the application to be controlled of current operation and the mapping relations of gesture in intelligent terminal; Steering order generation module 240 is for generating corresponding steering order according to this gesture and this mapping relations; Steering order sending module 250 is for being sent to this intelligent terminal by this steering order.
Gesture generation module 220 for example generates corresponding gesture in the following manner according to the data sequence of this Ax, Ay and Az: if Ax is less than the first threshold values, and Ay, Az are less than | and 10-Ax|/2 o'clock are first gesture; If Ax is greater than the second threshold values, and Ay, Az are less than | 10-Ax|/2 o'clock are the second gesture; If Az is greater than the 3rd threshold values, and Ax, Ay are less than | 10-Az|/2 o'clock are the 3rd gesture; If Az is less than the 4th threshold values, and Ax, Ay are less than | 10-Az|/2 o'clock are the 4th gesture; If successively occur that Ax is less than the first threshold values, Ax is greater than the second threshold values in the given time, and Ay, Az are less than within this schedule time | 10-Ax|/2 o'clock are the 5th gesture; And if priority occurs that Az is less than the 4th threshold values, Az is greater than the first threshold values in the given time, and Ax, Ay are less than within this schedule time | 10-Az|/2 o'clock are the 6th gesture.First to fourth threshold values is for example respectively 6m/s^2,14m/s^2,14m/s^2,6m/s^2.The schedule time is for example for being less than 500 milliseconds.
Mapping relations module 230 comprises that request unit 231 is with configuration reading unit 232.Wherein request unit 231 is for the identifier of the application to be controlled to this its current operation of intelligent terminal request; Configuration reading unit 232 obtains this mapping relations for reading configuration file according to this identifier in the machine.
And about other details of acceleration module 210, gesture generation module 220, mapping relations module 230, steering order generation module 240 and steering order sending module 250, also can enter to consult Fig. 1 to Fig. 3 and associated description.
In the control device of the intelligent terminal of the present embodiment, for intelligent terminal, its existing hardware structure and application architecture need not be changed, and the control that the gesture operation based on acceleration transducer adopting in control device completes various application can be realized; And for control device, the gesture operation based on acceleration transducer can complete by one hand under the situation of control device screen shutdown, easy to operate and can save the electric power of control device.
In addition, the embodiment of the present invention also provides a kind of computer-readable recording medium, is stored with computer executable instructions, and above-mentioned computer-readable recording medium is for example for example CD, hard disk or flash memory of nonvolatile memory.
Above-mentioned computer executable instructions is used for allowing control device complete following operation:
Detect and record acceleration A x, the Ay of intelligent terminal on three orthogonal directionss and the data sequence of Az; According to the data sequence of this Ax, Ay and Az, generate corresponding gesture; Obtain the steering order of application to be controlled and the mapping relations of gesture of current operation in intelligent terminal; According to this gesture and this mapping relations, generate corresponding steering order; And this steering order is sent to this intelligent terminal.
Further, if generate corresponding gesture according to the data sequence of this Ax, Ay and Az, comprise that Ax is less than the first threshold values, and Ay, Az being less than | 10-Ax|/2 o'clock are first gesture; If Ax is greater than the second threshold values, and Ay, Az are less than | 10-Ax|/2 o'clock are the second gesture; If Az is greater than the 3rd threshold values, and Ax, Ay are less than | 10-Az|/2 o'clock are the 3rd gesture; If Az is less than the 4th threshold values, and Ax, Ay are less than | 10-Az|/2 o'clock are the 4th gesture; If successively occur that Ax is less than the first threshold values, Ax is greater than the second threshold values in the given time, and Ay, Az are less than within this schedule time | 10-Ax|/2 o'clock are the 5th gesture; And if priority occurs that Az is less than the 4th threshold values, Az is greater than the first threshold values in the given time, and Ax, Ay are less than within this schedule time | 10-Az|/2 o'clock are the 6th gesture.
Further, first to fourth threshold values is respectively 6m/s^2,14m/s^2,14m/s^2,6m/s^2.
Further, this schedule time is less than 500 milliseconds.
Further, obtaining the steering order of application to be controlled and the mapping relations of gesture of current operation in intelligent terminal comprises: to the identifier of the application to be controlled of this its current operation of intelligent terminal request; And according to this identifier, in the machine, read configuration file and obtain this mapping relations.
By above-mentioned computer executable instructions, can make intelligent terminal need not change its existing hardware structure and application architecture, and can realize the control that the gesture operation based on acceleration transducer adopting in control device completes various application; And for control device, the gesture operation based on acceleration transducer can complete by one hand under the situation of control device screen shutdown, easy to operate and can save the electric power of control device.
The above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, yet not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be not depart from technical solution of the present invention content, any brief introduction of above embodiment being done according to technical spirit of the present invention is revised, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.