Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide the method and system of switching remote controller and use pattern according to the current use scenes of TV, the pattern that is intended to solve remote controller touch pad is switched inconvenient problem.
For reaching above-mentioned purpose, the invention provides following technical scheme:
The method of switching remote controller use pattern according to TV use scenes, comprises the following steps:
A, setting remote controller use pattern and TV use scenes and remote controller are used to pattern association;
B, obtain current TV use scenes;
C, obtain the remote controller associated with current TV use scenes and use pattern and generate corresponding switching command and be sent to remote controller;
D, remote controller receive switching command response.
The described method of switching remote controller and use pattern according to TV use scenes, wherein, described steps A specifically comprises:
A100, setting remote controller use pattern, described remote controller use pattern comprises four-dimensional key pattern, touch-screen pattern and mouse mode, wherein, and described four-dimensional key pattern, call remote controller Trackpad, the four-dimensional key value up and down that identification is corresponding with touching operating gesture; Described touch-screen pattern, calls remote controller Trackpad, and identification touches touch screen data corresponding to operation, and described touch data comprises one or more of letter, numeral, word and symbol; Described mouse mode, calls remote controller Trackpad, and identification touches the mouse data of operation;
A200, by valid function be select operation TV use scenes and four-dimensional key pattern association, the TV use scenes that the TV use scenes that is input operation by valid function and touch-screen pattern association are browse operation by valid function is associated with mouse mode.
The described method of switching remote controller and use pattern according to TV use scenes, wherein, described step B is specially:
B100, obtain the stack top application program of application task stack;
B200, obtain the use scenes of described stack top application program, the use scenes of stack top application program is current TV use scenes.
The described method of switching remote controller and use pattern according to TV use scenes, wherein, described step C specifically comprises:
C100, obtain the remote controller associated with current TV use scenes and use pattern;
C200, generation switch to current remote controller use pattern the switching command of the remote controller use pattern associated with current TV use scenes;
C300, by USB dongle, described switching command is sent to remote controller.
The described method of switching remote controller and use pattern according to TV use scenes, wherein, described step D specifically comprises:
D100, remote controller receive switching command;
D200, remote controller switch to the remote controller associated with current TV use scenes according to switching command by current remote controller use pattern and use pattern.
The described method of switching remote controller and use pattern according to TV use scenes, wherein, also comprises before described step B:
Identify current TV use scenes and whether change, if so, perform step B.
Corresponding with said method, the present invention also provides TV use scenes to switch the system of remote controller use pattern, and described system comprises:
Set and relating module, use pattern and TV use scenes and remote controller are used to pattern association for setting remote controller;
Current scene acquisition module, for obtaining current TV use scenes;
Mode decision and instruction generation module, be sent to remote controller for obtaining the remote controller use pattern associated with current TV use scenes and generating corresponding switching command;
Receive and respond module, receive switching command response for remote controller.
Described TV use scenes switches the system of remote controller use pattern, and wherein, described setting and relating module further comprise:
Pattern setting module, uses pattern for setting remote controller, and described remote controller use pattern comprises four-dimensional key pattern, touch-screen pattern and mouse mode, wherein, described four-dimensional key pattern, calls remote controller Trackpad, the four-dimensional key value up and down that identification is corresponding with touching operating gesture; Described touch-screen pattern, calls remote controller Trackpad, and identification touches touch screen data corresponding to operation, and described touch data comprises one or more of letter, numeral, word and symbol; Described mouse mode, calls remote controller Trackpad, and identification touches the mouse data of operation;
Relating module, being used for valid function is TV use scenes and the four-dimensional key pattern association of selecting operation, the TV use scenes that the TV use scenes that is input operation by valid function and touch-screen pattern association are browse operation by valid function is associated with mouse mode.
Described TV use scenes switches the system of remote controller use pattern, and wherein, described current scene acquisition module further comprises:
Current application acquisition module, for obtaining the stack top application program of application task stack;
Scene acquisition module, for obtaining the use scenes of described stack top application program, the use scenes of stack top application program is current TV use scenes.
Described TV use scenes switches the system of remote controller use pattern, and wherein, described mode decision and instruction generation module further comprise:
Acquisition module, uses pattern for obtaining the remote controller associated with current TV use scenes;
Instruction generation module, for generating the switching command that current remote controller use pattern is switched to the remote controller use pattern associated with current TV use scenes;
Sending module, for being sent to remote controller by USB dongle by described switching command.
Described TV use scenes switches the system of remote controller use pattern, and wherein, described reception and respond module further comprise:
Receiver module, receives switching command for remote controller;
Respond module, switches to current TV use scenes associated remote controller according to switching command by current remote controller use pattern for remote controller and uses pattern.
Described TV use scenes switches the system of remote controller use pattern, wherein, also comprises:
Whether pattern recognition judge module, change for identifying current TV use scenes.
The method and system of switching remote controller use pattern according to the current use scenes of TV provided by the present invention, the use scenes automatic switchover remote controller current according to television set uses pattern, remote controller is automatically switched to the use pattern that meets current scene most, simultaneously, also saved the remote controller Trackpad pattern switching menu in Trackpad mode switching key and the television system on remote controller, without user's manual switchover, use pattern is switched simple and convenient.
Embodiment
The invention provides the method and system of switching remote controller use pattern according to the current use scenes of TV, for making object of the present invention, technical scheme and effect clearer, clear and definite, referring to accompanying drawing examples, the present invention is described in more detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the method flow diagram that switches remote controller use pattern according to TV use scenes of the present invention.As shown in Figure 1, the method for switching remote controller use pattern according to TV use scenes of the present invention, comprising:
Step 101, setting remote controller use pattern and TV use scenes and remote controller are used to pattern association.
Described step 101, specifically comprises following two steps:
The first step, setting remote controller use pattern, and described remote controller use pattern comprises four-dimensional key pattern, touch-screen pattern and mouse mode.
Described four-dimensional key pattern, calls remote controller Trackpad, the four-dimensional key value up and down that identification is corresponding with touching operating gesture.Specifically refer to Fig. 3, Fig. 3 is that the four-dimensional key pattern described in one embodiment of the invention operates according to touching the principle schematic of obtaining key assignments.As shown in Figure 3, obtain key assignments according to touching operation: first obtain the original position that touches operation, final position, then calculate the angle between original position and final position line and horizontal X axle or vertical Y-axis, near X-axis, generate left/right key assignments, near Y-axis, generate up/down key assignments, as the touch operation trace 303 in Fig. 3 and touch operation trace 304, both tracks are all from bottom to top, but because gradient difference, produce two kinds of key assignments, touch operation trace 303 and be less than 45 degree with X-axis negative sense angle, near X-axis, generate left button value, touch operation trace 304 and generate upper key assignments, for another example, touching operation trace 301 and touching 302, two tracks of operation trace is all from left to right, but because of gradient difference, touches operation trace 302 and generate lower key assignments, touches operation trace 301 and generates right button value.
Described touch-screen pattern, calls remote controller Trackpad, and identification touches touch screen data corresponding to operation, and described touch data comprises one or more of letter, numeral, word and symbol.Touch-screen pattern, also can be described as hand-written pattern, is to operate input data by touch.Which is prior art, repeats no more.
Described mouse mode, calls remote controller Trackpad, and identification touches the mouse data of operation.Which is to obtain the touch operation trace that touches operation on touch pad, generates mouse data, and cursor is moved according to touching operation trace.For prior art, repeat no more.
Second step, by valid function be select operation TV use scenes and four-dimensional key pattern association, the TV use scenes that the TV use scenes that is input operation by valid function and touch-screen pattern association are browse operation by valid function is associated with mouse mode.TV use scenes refers to the image content of the current demonstration of television set, in image content, comprise a lot, as selectable object, the dialog box that can input etc., valid function refers to the operation of carrying out after operation, select operation as being effectively operating as, only have and select or exit selection just can be performed, for another example valid function is input operation, only have input or exit input and just can be performed, if valid function is browse operation, user only has browse operation or exits just and can be performed, the operation that described browse operation moves displaying contents while referring to user's browse displays content.
Step 102, obtain current TV use scenes.
Described step 102, specifically comprises following two steps:
The first step, obtain the stack top application program of application task stack.In application task stack, comprise the application program being arranged in order, stack top application program is the application program of carrying out, and the operation that the application program of carrying out receives is valid function.Specifically refer to Fig. 4, Fig. 4 is the application program sequence of application task stack.As shown in Figure 4, APP1 (401) is stack top application program, and APP2 (402) is to the application program of APPn (402) for having started.The method of the invention is applied to Android, Android is applied in system that to start be with the form storage of stack, Android application is to be all stored in application task stack by boot sequence, and at the bottom of the application program (App) starting is the earliest in stack, the application using is recently in stack top.
Second step, obtain the use scenes of described stack top application program, the use scenes of stack top application program is current TV use scenes.The displaying contents that use scenes is made up of several application programs, the application program that comprises stack top application program must be current TV use scenes.
Step 103, obtain the remote controller associated with current TV use scenes and use pattern and generate corresponding switching command and be sent to remote controller.
Described step 103, specifically comprises following four steps:
The first step, obtain the remote controller associated with current TV use scenes and use pattern; Set in advance TV use scenes and remote controller and used pattern association, between TV use scenes and remote controller use pattern, many-one is associated, can obtain the remote controller associated with current TV use scenes and uses pattern having obtained after current TV use scenes.
Second step, generation switch to current remote controller use pattern the switching command of the remote controller use pattern associated with current TV use scenes; Here there are two kinds of situations, the one, current remote controller uses pattern to use pattern consistent with the remote controller associated with current TV use scenes, still original pattern after switch mode; The 2nd, current remote controller uses pattern to use pattern inconsistent with the remote controller associated with current TV use scenes, switches.It should be noted that, no matter unanimously whether, all generate switching command and switch, after switching while being consistent, do not change.
The 3rd step, by USB dongle, described switching command is sent to remote controller.System for TV set of the present invention is Android; The system that realizes the method for the invention comprises television set, USB dongle and remote controller, and wherein, USB dongle is arranged on television set, with remote controller radio communication.Generating after switching command, by USB dongle, described switching command is sent to remote controller.
Step 104, remote controller receive switching command response.
Described step 104, specifically comprises following two steps:
The first step, remote controller receive switching command; Prior art, repeats no more.
Second step, remote controller switch to the remote controller associated with current TV use scenes according to switching command by current remote controller use pattern and use pattern.Remote controller switches remote controller according to switching command and uses pattern.
The described not identification to TV use scenes of method of switching remote controller use pattern according to TV use scenes, need the current TV use scenes of Real-time Obtaining, generate corresponding switching command, take processor, for improving said method, a preferred version is provided, an identification step was set before step 102: identify current TV use scenes and whether change, if so, perform step 102.Pattern recognition judge module is set in system for TV set, identifies current TV use scenes and whether change, if so, obtain current TV use scenes.
Refer to Fig. 2, Fig. 2 is the system construction drawing that switches remote controller use pattern according to TV use scenes of the present invention.As shown in Figure 2, the system of switching remote controller use pattern according to TV use scenes of the present invention, comprising:
Set and relating module 201, use pattern and TV use scenes and remote controller are used to pattern association for setting remote controller, as detailed above;
Current scene acquisition module 202, for obtaining current TV use scenes, as detailed above;
Mode decision and instruction generation module 203, be sent to remote controller for obtaining the remote controller use pattern associated with current TV use scenes and generating corresponding switching command, as detailed above;
Receive and respond module 204, receive switching command response for remote controller, as detailed above.
Described TV use scenes switches the system of remote controller use pattern, and wherein, described setting and relating module further comprise:
Pattern setting module, uses pattern for setting remote controller, and described remote controller use pattern comprises four-dimensional key pattern, touch-screen pattern and mouse mode, wherein, described four-dimensional key pattern, calls remote controller Trackpad, the four-dimensional key value up and down that identification is corresponding with touching operating gesture; Described touch-screen pattern, calls remote controller Trackpad, and identification touches touch screen data corresponding to operation, and described touch data comprises one or more of letter, numeral, word and symbol; Described mouse mode, calls remote controller Trackpad, and identification touches the mouse data of operation, as detailed above;
Relating module, being used for valid function is TV use scenes and the four-dimensional key pattern association of selecting operation, the TV use scenes that the TV use scenes that is input operation by valid function and touch-screen pattern association are browse operation by valid function is associated with mouse mode, as detailed above.
Described TV use scenes switches the system of remote controller use pattern, and wherein, described current scene acquisition module further comprises:
Current application acquisition module, for obtaining the stack top application program of application task stack, as detailed above;
Scene acquisition module, for obtaining the use scenes of described stack top application program, the use scenes of stack top application program is current TV use scenes, as detailed above.
Described TV use scenes switches the system of remote controller use pattern, and wherein, described mode decision and instruction generation module further comprise:
Acquisition module, uses pattern for obtaining the remote controller associated with current TV use scenes, as detailed above;
Instruction generation module, for generating the switching command that current remote controller use pattern is switched to the remote controller use pattern associated with current TV use scenes, as detailed above;
Sending module, for being sent to remote controller by USB dongle by described switching command, as detailed above.
Described TV use scenes switches the system of remote controller use pattern, and wherein, described reception and respond module further comprise:
Receiver module, receives switching command for remote controller, as detailed above;
Respond module, switches to current TV use scenes associated remote controller according to switching command by current remote controller use pattern for remote controller and uses pattern, as detailed above.
Described TV use scenes switches the system of remote controller use pattern, preferred, also comprises: whether pattern recognition judge module, change for identifying current TV use scenes, as detailed above.
In sum, the method and system of switching remote controller use pattern according to the current use scenes of TV provided by the present invention, the use scenes automatic switchover remote controller current according to television set uses pattern, remote controller is automatically switched to the use pattern that meets current scene most, simultaneously, also saved the remote controller Trackpad pattern switching menu in Trackpad mode switching key and the television system on remote controller, without user's manual switchover, use pattern is switched simple and convenient.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection range of claims of the present invention.