[summary of the invention]
The technical problem to be solved in the present invention is to provide a kind of set-top box to discern the method for remote controller, and the user comes the manipulator top box after can discerning to set-top box with any remote controller in the family.Lose or user when thinking directly to use remote controller in the family to come the manipulator top box at remote controller, can realize easily by the present invention.
The present invention is achieved in that a kind of method of set-top box identification remote controller, it is characterized in that: may further comprise the steps:
Step 10, a memory headroom that is used to store up the value of remote controller is set in the flash memory;
The teleswitch type of step 20, definition set-top box remote controller comprises numerical key: 0 to 9; Directionkeys: upper and lower, left and right; Function key: F1 is to F12; Key is set: menu, withdraw from, power supply, sound channel, state, information, listing, quiet, channel is reviewed, mail, like; The channel selection key: select, program+, program-, page turning+, page turning-, Radio/TV switches; Color key: red, green, yellow, blue; Reserve key: 0 to 5; And with these type programmings in set-top-box chip;
The panel button of step 30, use set-top box is combined into remote controller the interface is set, and is provided with at set-top box remote controller to occur described teleswitch type in the interface, enters the remote controller recognition mode after the user is by the panel acknowledgement key;
Step 40, when the user selects in the remote controller certain button, set-top box is noted the waveform of this button with digital mode, input needs the button of identification once more, the set-top box program compares data automatic and that last registration is got off, judge whether the same, be then to point out to re-enter remote control keys, otherwise note with digital mode;
Step 50, discerned the teleswitch type of all definition after, withdraw from recognition mode, the set-top box program writes the remote controller digital value of all collections in the described memory headroom;
Step 60, when the user imports remote controller key, the set-top box program is compared according to the digital value of the waveform of remote controller key and the digital value that is stored in described memory headroom, finds to return to the set-top box program with its corresponding key value and carry out.
The advantage that the present invention has is: earlier with the teleswitch type programming of remote controller in set-top-box chip, enter the remote controller recognition mode of set-top box then, when the user selects in the remote controller certain button, set-top box is noted the waveform of this button with digital mode, after having discerned the teleswitch type of all definition, just can realize of the operation of this remote controller to set-top box.The user comes the manipulator top box after can discerning to set-top box with any remote controller in the family, and the user no longer is subject to a kind of remote controller, and reduces production costs greatly.
[embodiment]
The present invention is further illustrated in conjunction with the embodiments below with reference to Fig. 1:
The present invention adopts the technology of top box identification remote controller, earlier with the teleswitch type programming of remote controller in set-top-box chip, enter the remote controller recognition mode of set-top box then, discern, too many modular device need not be set in set-top box.
A kind of method of set-top box identification remote controller may further comprise the steps:
Step 10, a memory headroom that is used to store up the value of remote controller is set in the flash memory;
The teleswitch type of step 20, definition set-top box remote controller comprises numerical key: 0 to 9; Directionkeys: upper and lower, left and right; Function key: F1 is to F12; Key is set: menu, withdraw from, power supply, sound channel, state, information, listing, quiet, channel is reviewed, mail, like; The channel selection key: select, program+, program-, page turning+, page turning-, Radio/TV switches; Color key: red, green, yellow, blue; Reserve key: 0 to 5; And with these type programmings in set-top-box chip;
The panel button of step 30, use set-top box is combined into remote controller the interface is set, and is provided with at set-top box remote controller to occur described teleswitch type in the interface, enters the remote controller recognition mode after the user is by the panel acknowledgement key;
Step 40, when the user selects in the remote controller certain button, set-top box is noted the waveform of this button with digital mode, input needs the button of identification once more, the set-top box program compares data automatic and that last registration is got off, judge whether the same, otherwise prompting please be re-entered remote control keys, is then to note with digital mode;
Step 50, discerned the teleswitch type of all definition after, withdraw from recognition mode, the set-top box program writes the remote controller digital value of all collections in the described memory headroom;
Step 60, when the user imports remote controller key, the set-top box program is compared according to the digital value of the waveform of remote controller key and the digital value that is stored in described memory headroom, finds to return to the set-top box program with its corresponding key value and carry out.
Wherein the teleswitch type can increase corresponding push-button type (as: buttons such as navigation, information guide, stock, recreation) as required, the remote controller key digital value of storing multiple sets simultaneously in flash store memory space, select for the user, by set-top box panel button or Macintosh select use which cover remote controller during selection operation this moment.
What deserves to be mentioned is: the teleswitch type of definition set-top box remote controller, with numerical key: 0 to 9 can be defined as: GUI_VK_0, GUI_VK_1, GUI_VK_2, GUI_VK_3, GUI_VK_4, GUI_VK_5, GUI_VK_6, GUI_VK_7, GUI_VK_8, GUI_VK_9; Directionkeys: upper and lower, left and right may be defined as: GUI_VK_UP, GUI_VK_DOWN, GUI_VK_LEFT, GUI_VK_RIGHT; Function key: F1 may be defined as to F12: GUI_VK_F1, GUI_VK_F2, GUI_VK_F3, GUI_VK_F4, GUI_VK_F5, GUI_VK_F6, GUI_VK_F7, GUI_VK_F8, GUI_VK_F9, GUI_VK_F10, GUI_VK_F11, GUI_VK_F12; Key is set: menu, withdraw from, power supply, sound channel, state, information, listing, quiet, channel is reviewed, mail, like may be defined as: GUI_VK_MENU, GUI_VK_EXIT, GUI_VK_POWER, GUI_VK_TRACK, GUI_VK_STATE, GUI_VK_INFO, GUI_VK_PROGTABLE, GUI_VK_MUTE, GUI_VK_RECALL, GUI_VK_MAIL, GUI_VK_FAV; The channel selection key: select, program+, program-, page turning+, page turning-, Radio/TV switches and may be defined as: GUI_VK_SELECT, GUI_VK_C_UP, GUI_VK_C_DOWN, GUI_VK_P_UP, GUI_VK_P_DOWN, GUI_VK_RadioORTV; Color key: red, green, yellow, blueness may be defined as: GUI_VK_RED, GUI_VK_GREEN, GUI_VK_YELLOW, GUI_VK_BLUE; Reserve key: 0 may be defined as to 5: GUI_VK_RES_0, GUI_VK_RES_2, GUI_VK_RES_3, GUI_VK_RES_4, GUI_VK_RES_5; Also can define according to other mode.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.