Detailed description of the invention
For further setting forth that the present invention realizes technological means and effect that predetermined goal of the invention is taked, below in conjunction with accompanying drawing and preferred embodiment, to the control method of the intelligent terminal proposed according to the present invention and control the detailed description of the invention of device, structure, feature and effect thereof, describe in detail as after.
The flow chart of the control method of the intelligent terminal that Fig. 1 provides for first embodiment of the invention.Above-mentioned control method such as runs on one and controls in device, and controls device such as intelligent remote controller, the installation smart mobile phone of remote control application, panel computer etc..
As it is shown in figure 1, this control method includes:
The data sequence of step S110, detection recording control apparatus acceleration A x in three orthogonal directions, Ay and Az;Consulting Fig. 2, Ax is such as the acceleration in X-direction, and Ay is such as the acceleration in Y direction, and Az is such as the acceleration in Z-direction.For acceleration (gravity) sensor (Sensor.TYPEACCELEROMETER) of android system, under intelligent terminal's resting state, the acceleration of each axle is 10m/s^2.In general brandish normally and shake operation and can bring the acceleration change of 4m/s^2.By obtaining the output of primary acceleration sensor at interval of a period of time, the data sequence of each axle acceleration can be obtained.
Step S120, generate corresponding gesture according to the data sequence of this Ax, Ay and Az;Such as, in the present embodiment, if Ax is less than the first threshold values, and Ay, Az less than | 10-Ax |/2 time be first gesture (brandishing to the left);If Ax is more than the second threshold values, and Ay, Az less than | 10-Ax |/2 time be second gesture (brandishing to the right);Az more than the 3rd threshold values, and Ax, Ay less than | 10-Az |/2 time be the 3rd gesture (upwards brandishing);If Az is less than the 4th threshold values, and Ax, Ay less than | 10-Az |/2 time be the 4th gesture (brandishing downwards);If successively occur in the given time Ax less than the first threshold values, Ax more than the second threshold values, and be the 5th gesture (rocking from side to side) when within this scheduled time, Ay, Az are less than | 10-Ax |/2;And if successively occur in the given time Az less than the 4th threshold values, Az more than the first threshold values, and be the 6th gesture (fluctuating) when within this scheduled time, Ax, Ay are less than | 10-Az |/2.First to fourth threshold values such as can respectively 6m/s^2,14m/s^2,14m/s^2,6m/s^2.The scheduled time is such as less than 500 milliseconds.
It should be noted that and step S120 only defines gesture, but and the undefined operation corresponding with gesture.Additionally, above gesture is only signal, it is also possible to define any number of gesture.
The control instruction of application to be controlled currently running in step S130, acquisition intelligent terminal and the mapping relations of gesture;Intelligent terminal can be such as DTV STB, internet multimedia reception terminal, PC etc., can run various application, for instance video playback application, picture browsing application, web page browsing application etc. in it.It is appreciated that, heterogeneity based on application, the control mode of operation of each application also all differs, and what the gesture defined in step S120 determined that, therefore to realize adopting the gesture of definition in step S120 to control the application in intelligent terminal, it is necessary to first set up the mapping relations between control instruction and gesture.Refer to the mapping relations of table 1 to table 3, its control instruction listing three kinds of typical case's application and gesture.
Table 1 video playback is conventional controls operation and gesture mapping relations
| First gesture (is brandished) to the left |
Fast reverse play |
| Second gesture (is brandished to the right) |
Fast-forward play |
| 3rd gesture (upwards brandishing) |
Heighten volume |
| 4th gesture (brandishing downwards) |
Turn down volume |
| 5th gesture (rocking from side to side) |
Exit broadcasting |
| 6th gesture (fluctuating) |
Suspend, or play |
Table 2 picture browsing is conventional controls operation and gesture mapping relations
| First gesture (is brandished) to the left |
Previous |
| Second gesture (is brandished to the right) |
Latter one |
| 3rd gesture (upwards brandishing) |
Amplification browses |
| 4th gesture (brandishing downwards) |
Reduce and browse |
| 5th gesture (rocking from side to side) |
Exit photograph album or return |
| 6th gesture (fluctuating) |
It is switched to automatic play mode |
Table 3 web page browsing is conventional controls operation and gesture mapping relations
| First gesture (is brandished) to the left |
Last link |
| Second gesture (is brandished to the right) |
Next link |
| 3rd gesture (upwards brandishing) |
Content scrolls up |
| 4th gesture (brandishing downwards) |
Content scrolls down through |
| 5th gesture (rocking from side to side) |
Return the last page |
| 6th gesture (fluctuating) |
Open web page interlinkage |
These mapping relations can be such as to be stored in the memorizer controlled in device in the way of configuration file or in the storage server in high in the clouds.Furthermore, it is to be understood that these mapping relations are only signal, those of ordinary skill in the art can redefine or change.Such as, the gesture different from above-mentioned example is set for the difference in functionality (operation) of every kind of application.Further, go back definable gesture except six kinds of above-mentioned gestures, it is to be understood that, regardless of the quantity of gesture, by setting the mapping relations between gesture and function (operation), the control of far-end application can be carried out according to the mode of the present embodiment.
Therefore, correspondingly, step S130 such as may include that
Ask and receive the identifier of its currently running application to be controlled to this intelligent terminal;And
This mapping relations are obtained at reading configuration file according to this identifier.
Such as, when playing video in intelligent terminal, intelligent terminal returns corresponding identifier to controlling device, then control device and can read the mapping relations of table 1 accordingly.
Step S140, generate corresponding control instruction according to this gesture and these mapping relations.After the mapping relations in the gesture determined in step S120 and step S130 are determined, be also just under control instruction accordingly.Such as, intelligent terminal is currently running picture browsing application, and the gesture determined in step S120 is first gesture, then the control instruction generated is " previous ".It is appreciated that this control instruction can by one or more numerals, character representation.
Step S150, this control instruction is sent to this intelligent terminal.Control device such as to be connected control instruction transmission to intelligent terminal by infrared, bluetooth or WLAN (WIFI), thus complete once the control of intelligent terminal to be operated.
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 adopting the gesture operation based on acceleration transducer controlled in device to complete various application can be realized;And for control device, based on acceleration transducer gesture operation can control device screen shutdown when one hand complete, easy to operate and can save control device electric power.
The structured flowchart controlling device of the intelligent terminal that Fig. 3 provides for second embodiment of the invention.Control device can be such as intelligent remote controller, the smart mobile phone of remote control application, panel computer etc. are installed.As it is shown on figure 3, control device 200 to include acceleration module 210, gesture generation module 220, mapping relations module 230, control instruction generation module 240 and control instruction sending module 250.
Acceleration module 210 is for detecting and record the data sequence of intelligent terminal acceleration A x in three orthogonal directions, Ay and Az;Gesture generation module 220 generates corresponding gesture for the data sequence according to this Ax, Ay and Az;Mapping relations module 230 is for obtaining the control instruction of application to be controlled currently running in intelligent terminal and the mapping relations of gesture;Control instruction generation module 240 is for generating corresponding control instruction according to this gesture with these mapping relations;Control instruction sending module 250 is for sending this control instruction to this intelligent terminal.
Gesture generation module 220 such as 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 less than | 10-Ax |/2 time be first gesture;If Ax is more than the second threshold values, and Ay, Az less than | 10-Ax |/2 time be second gesture;If Az is more than the 3rd threshold values, and Ax, Ay less than | 10-Az |/2 time be the 3rd gesture;If Az is less than the 4th threshold values, and Ax, Ay less than | 10-Az |/2 time be the 4th gesture;If successively occur in the given time Ax less than the first threshold values, Ax more than the second threshold values, and be the 5th gesture when within this scheduled time, Ay, Az are less than | 10-Ax |/2;And if successively occur in the given time Az less than the 4th threshold values, Az more than the first threshold values, and be the 6th gesture when within this scheduled time, Ax, Ay are less than | 10-Az |/2.First to fourth threshold values such as respectively 6m/s^2,14m/s^2,14m/s^2,6m/s^2.The scheduled time is such as less than 500 milliseconds.
Mapping relations module 230 includes request unit 231 to configure reading unit 232.Wherein request unit 231 for asking the identifier of its currently running application to be controlled to this intelligent terminal;Configuration is read unit 232 and is obtained 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, control instruction generation module 240 and control instruction 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 adopting the gesture operation based on acceleration transducer controlled in device to complete various application can be realized;And for control device, based on acceleration transducer gesture operation can control device screen shutdown when one hand complete, easy to operate and can save control device electric power.
Additionally, the embodiment of the present invention also provides for a kind of computer-readable recording medium, being stored with computer executable instructions, above-mentioned computer-readable recording medium is such as nonvolatile memory such as CD, hard disk or flash memory.
Above-mentioned computer executable instructions is used for allowing control device complete following operation:
Detect and record the data sequence of intelligent terminal acceleration A x in three orthogonal directions, Ay and Az;Data sequence according to this Ax, Ay and Az generates corresponding gesture;Obtain the control instruction of application to be controlled currently running in intelligent terminal and the mapping relations of gesture;Corresponding control instruction is generated with these mapping relations according to this gesture;And this control instruction is sent to this intelligent terminal.
Further, if generating corresponding gesture according to the data sequence of this Ax, Ay and Az to include Ax less than the first threshold values, and Ay, Az less than | 10-Ax |/2 time be first gesture;If Ax is more than the second threshold values, and Ay, Az less than | 10-Ax |/2 time be second gesture;If Az is more than the 3rd threshold values, and Ax, Ay less than | 10-Az |/2 time be the 3rd gesture;If Az is less than the 4th threshold values, and Ax, Ay less than | 10-Az |/2 time be the 4th gesture;If successively occur in the given time Ax less than the first threshold values, Ax more than the second threshold values, and be the 5th gesture when within this scheduled time, Ay, Az are less than | 10-Ax |/2;And if successively occur in the given time Az less than the 4th threshold values, Az more than the first threshold values, and be the 6th gesture when within this scheduled time, Ax, Ay are less than | 10-Az |/2.
Further, first to fourth threshold values respectively 6m/s^2,14m/s^2,14m/s^2,6m/s^2.
Further, this scheduled time is less than 500 milliseconds.
Further, obtain the control instruction of application to be controlled currently running in intelligent terminal to include with the mapping relations of gesture: to the identifier of the application to be controlled that this intelligent terminal asks it currently running;And obtain this mapping relations according to this identifier at the machine reading configuration file.
The computer executable instructions of above, can make intelligent terminal need not change its existing hardware structure and application architecture, and can realize the control adopting the gesture operation based on acceleration transducer controlled in device to complete various application;And for control device, based on acceleration transducer gesture operation can control device screen shutdown when one hand complete, easy to operate and can save control device electric power.
The above, it it is only presently preferred embodiments of the present invention, not the present invention is done any pro forma restriction, although the present invention discloses as above with preferred embodiment, but it is not limited to the present invention, any those skilled in the art, without departing within the scope of technical solution of the present invention, when the technology contents of available the disclosure above makes a little change or is modified to the Equivalent embodiments of equivalent variations, in every case it is without departing from technical solution of the present invention content, according to any brief introduction amendment that above example is made by the technical spirit of the present invention, equivalent variations and modification, all still fall within the scope of technical solution of the present invention.