The method of digital TV set-top box and remote control control thereof, remotely controlledTechnical field
The present invention relates to a kind of household remote technology that realizes that other domestic electrical equipment remote controller is controlled digital TV set-top box.
Background technology
Existing digital TV set-top box, comprise infrared signal receiver, final controlling element, the infrared signal of TV set-top box by launching to infrared signal receiver reception remote controller, and link to each other with television set by final controlling element after converting the signal of telecommunication to, transmit control signal to television set.
Along with popularizing of Digital Television, digital TV set-top box has become one of household electrical appliance commonly used, and digital TV set box remote control device frequency of utilization is higher; Frequent simultaneously use different remote is controlled multiple electrical equipment and has been brought inconvenience to the user.
Summary of the invention
Technical problem to be solved by this invention is, overcome in the existing digital TV set-top box and can only control by the digital TV set box remote control device, awkward problem, a kind of digital TV set-top box with other domestic electrical equipment remote controller key assignments of study is provided, and provide a kind of by other domestic electrical equipment remote controller also can the control figure TV set-top box method for remotely controlling and remotely controlled method.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, digital TV set-top box comprises infrared signal receiver, final controlling element, button translating equipment, and infrared signal receiver links to each other with final controlling element by the button translating equipment;
Infrared signal receiver is used for the infrared signal that the remote controller of receiving digital television set-top box remote controller or other household electrical appliances is launched;
The button translating equipment is used for the remote controller code value of other household electrical appliances is converted to the key value of digital TV set-top box;
Final controlling element is used for the key value to television set transmission digital TV set-top box;
The button translating equipment comprises systematic code detection module, remote controller key assignments enquiry module, remote controller key assignments modular converter, study module, memory module, the systematic code detection module links to each other with remote controller key assignments modular converter by remote controller key assignments enquiry module, remote controller key assignments enquiry module, remote controller key assignments modular converter also link to each other with memory module, and study module links to each other with systematic code detection module, memory module respectively;
The systematic code detection module, whether the systematic code that is used for detecting current infrared signal is default system sign indicating number or learning system sign indicating number; Remote controller key assignments enquiry module is used for the button value at the current remote controller of memory module inquiry; Remote controller key assignments modular converter is used for the key value that button value with current remote controller is converted to corresponding digital TV set-top box; Memory module is used to preserve other domestic electrical equipment remote controller key assignments, and corresponding with the key value of digital TV set-top box; Study module is used to realize the study of other domestic electrical equipment remote controller, with other domestic electrical equipment remote controller key assignments be kept in the memory module after the key value of digital TV set-top box is corresponding.
The present invention further provides a kind of digital TV set box remote control learning method, may further comprise the steps:
1) machines top box button changes mode of learning over to;
2) wait for remote controller key;
Whether 3) detect the remote manipulator system sign indicating number deposits; If, enter step 4), if not, the prompting input is invalid;
4) enter learning program, the remote controller key sign indicating number is corresponding one by one with the set-top box key set code;
5) whether learn to finish, if enter step 6); If not, get back to step 4);
6) storage remote controller key sign indicating number withdraws from mode of learning.
The present invention also provides a kind of digital TV set box remote control control method, may further comprise the steps:
A, wait remote controller key;
B, receiving and analyzing infrared signal judge whether the remote manipulator system sign indicating number is the default system sign indicating number, if enter step f; If not, enter step c;
C, judge whether the remote manipulator system sign indicating number is the remote manipulator system sign indicating number of having learnt; If enter steps d; If not, then invalid for input;
D, whether be effective button, if enter step e if searching current remote controller key sign indicating number; If not, then invalid for input;
E, convert key set code to corresponding set-top box button;
F, execution key commands.
Described default system sign indicating number is the systematic code of digital TV set box remote control device.
The invention has the beneficial effects as follows to have the digital TV set-top box of other remote controller code value of study, its control no longer is subjected to the constraint of this remote controller, and the remote controller of other electrical equipment also can play the effect identical with the digital TV set box remote control device, and is user-friendly.
The present invention will be further described below in conjunction with accompanying drawing and embodiment.
Description of drawings
Fig. 1 is the system block diagram of present embodiment;
Fig. 2 is the flow chart of digital TV set box remote control learning method;
Fig. 3 is the flow chart of digital TV set box remote control control method.
Embodiment
As shown in Figure 1, remote control system comprises digital TV set-top box, television set, remote controller.Remote controller comprises the digital TV set box remote control device of digital TV set-top box configuration itself and the remote controller of other household electrical appliances.Realize coming the control figure TV set-top box, need to have in the digital TV set-top box device of the key value that each electric appliance remote controller key assignments of conversion can discern for this digital TV set-top box with other domestic electrical equipment remote controller.Therefore digital TV set-top box is except that comprising existing infrared signal receiver, final controlling element, comprise the button translating equipment, infrared signal receiver links to each other with final controlling element by the button translating equipment, digital TV set-top box also includes the OSD unit in addition, is used to point out the user to carry out associative operation.
The button translating equipment includes systematic code detection module, remote controller key assignments enquiry module, remote controller key assignments modular converter, study module, memory module (flash), infrared signal receiver links to each other with the systematic code detection module, the systematic code detection module links to each other with remote controller key assignments modular converter by remote controller key assignments enquiry module, remote controller key assignments enquiry module, remote controller key assignments modular converter also link to each other with memory module, study module links to each other with systematic code detection module, memory module respectively, and study module also links to each other with the OSD unit.
At first, the user starts the remotely controlled pattern of digital TV set-top box; Secondly, according to the OSD prompting of digital TV set-top box on television set, the user stores the code value of other domestic electrical equipment remote controller in the digital TV set-top box FLASH into, and is corresponding one by one with keypress function definition in the digital TV set-top box; The 3rd, when other domestic electrical equipment remote controller sent infrared signal, digital TV set-top box was discerned its code value and to the corresponding key function, can be realized the control of other domestic electrical equipment remote controller to digital TV set-top box; Simultaneously on other domestic electrical equipment remote controller, defined a remote control mode operating key, determined it to control other household electrical appliances and digital TV set-top box simultaneously or only control other household electrical appliances.
Each module realizes its function by one or more functions in the button translating equipment.Also need define an array in addition, as k[M] [N], being used for preserving the key assignments that the user imports button, M represents the remote controller number of storable other household electrical appliances, N represents the button of corresponding learning remote control device.The learning remote control device refers to other domestic electrical equipment remote controller of may command digital TV set-top box.Wherein the value of N is more than or equal to the number of all effective efficiency buttons of digital TV set box remote control device, otherwise can't learn the button of all digital TV set box remote control devices, and button of the fixing expression of the value of each N, such as, the numerical key 1 of the corresponding digital TV set box remote control device of N=1; Definite key of the corresponding digital TV set box remote control device of N=20.Define several indexed variables in addition, be used for controlling and whether can learn, whether learn to finish.
When the user changes the set-top box button over to mode of learning, but if a new systematic code and the current learning state that is in, its learning process as shown in Figure 2:
Whether the systematic code detection module detects current remote manipulator system sign indicating number and deposits; If, enter learning program, if not, the prompting input is invalid;
Enter learning program, the study module of digital TV set-top box is imported corresponding button by OSD unit prompting user, the remote controller key sign indicating number is corresponding one by one with the set-top box key set code, and the user imports a button, and study module just is saved in key assignments the fixed position of array.Systematic code must be the systematic code of current learning remote control device in this process, otherwise does not preserve.If the study complement mark is true, represent to learn to finish, study module is preserved the button value of study in Flash, is about to array k[M] [N] preservation, withdraw from mode of learning.
As shown in Figure 3, after top box of digital machine is receiving infrared signal under the non-mode of learning, earlier carry out systematic code and detect, when systematic code is default system sign indicating number or the systematic code of having learnt, then change Normal Response Mode over to by the systematic code detection module:
If current systematic code is the default system sign indicating number, then this signal is directly delivered to Executive Module, if not, then further take a decision as to whether the systematic code of having learnt; Wherein the default system sign indicating number is the systematic code of digital TV set box remote control device;
If the systematic code of having learnt, then signal is delivered to remote controller key assignments modular converter, the preservation key assignments of remote controller key assignments modular converter by memory module is converted to the key value of corresponding digital TV set-top box with the button value of current remote controller, delivers to Executive Module.If not the systematic code of having learnt then is an invalid operation.
If detecting is the remote manipulator system sign indicating number of learning, then return several A (scope [0, M-1]), enter remote controller key assignments enquiry module again and carry out the button value inquiry of this learning remote control device, if the array k[A among the FLASH] [N] preserve this key assignments, be effective button, return the position N of this key assignments in array.If invalid button then is an invalid operation.
Because K[M] corresponding function of each N in [N], the value that from remote controller key assignments enquiry module, obtains inquiring about the N that returns, carry out the button conversion by remote controller key assignments modular converter, the value of N is converted to the keypress function that needs, be about to the key value that the remote controller code value is converted to digital TV set-top box.
Key value after transforming is delivered to Executive Module, so far, just finished the operation of response remote controller key.