Summary of the invention
For the problems referred to above, the present invention provides a kind of keypress function method to set up and device, existing to solve
In technology, remote controller can only control the household electrical appliances matched with it, it is impossible to reuses the money that this remote controller causes
The problem of source waste.
Technical scheme is as follows:
Based on an aspect of of the present present invention, the present invention provides a kind of keypress function method to set up, including:
Identify the infrared code that in the first remote controller, button is corresponding;
According to described infrared code, adjust button and the corresponding relation of described infrared code in the second remote controller, obtain
Button and the corresponding relation of described infrared code in described second remote controller after adjustment;
According to button in described second remote controller after adjusting and the corresponding relation of described infrared code, institute is set
State the function of button in the second remote controller.
Preferably, described according to described infrared code, adjust button and described infrared code in the second remote controller
Corresponding relation, button and the corresponding relation bag of described infrared code in described second remote controller after being adjusted
Include:
Determine that described first remote controller and the second remote controller belong to same type of remote controller;
According to each button respective operations in described first remote controller, determine in described second remote controller with institute
State the button that operation corresponding to each button in the first remote controller is identical;
By infrared code corresponding for each button in described first remote controller, as in described second remote controller with
The infrared code of the identical button of operation that each button is corresponding in described first remote controller, and obtain described the
Button and the corresponding relation of described infrared code in two remote controllers.
Preferably, described according to described infrared code, adjust button and described infrared code in the second remote controller
Corresponding relation, button and the corresponding relation bag of described infrared code in described second remote controller after being adjusted
Include:
Determine that described first remote controller and the second remote controller belong to different types of remote controller;
Judge whether the quantity of described second remote controller key is not less than the number of described first remote controller key
Amount;
If the quantity of described second remote controller key is not less than the quantity of described first remote controller key;
Determine the use frequency of described second remote controller key and the use frequency of the first remote controller key respectively
Priority orders;
By infrared code corresponding for described first remote controller key, according to the use of described first remote controller key
The priority orders of frequency, as the infrared code of described first remote controller key being in equal order, and
Obtain button and the corresponding relation of described infrared code in described second remote controller.
Preferably, described determine that described first remote controller and the second remote controller belong to different types of remote controller
After, also include:
Judge the quantity quantity less than described first remote controller key of described second remote controller key;
Determine the quantity number not less than described first remote controller basis button of described second remote controller key
Amount;
Choose the infrared code of the basic button of described first remote controller;
By the infrared code of the basic button of described first remote controller, red as described second remote controller key
Outer code, and obtain button and the corresponding relation of described infrared code in described second remote controller.
Preferably, the quantity of described second remote controller key of described judgement is less than described first remote controller key
Quantity after, also include:
Determine the quantity quantity less than described first remote controller basis button of described second remote controller key;
Selected identical with the quantity of described second remote controller key, and described first remote controller basis button
Frequency is used to be in the first remote controller basis button of preferential position;
By the infrared code of described the first remote controller basis button determined, as described second remote controller key
Infrared code, and obtain the corresponding relation of button and described infrared code in described second remote controller.
Based on another aspect of the present invention, the present invention provides a kind of keypress function to arrange device, including:
Recognition unit, for identifying the infrared code that the first remote controller key is corresponding;
Corresponding relation signal generating unit, for according to described infrared code, adjusts button and institute in the second remote controller
State the corresponding relation of infrared code, button and described infrared code in described second remote controller after being adjusted
Corresponding relation;
Keypress function arranges unit, for red with described according to button in described second remote controller after adjusting
The corresponding relation of outer code, arranges the function of button in described second remote controller.
Preferably, described corresponding relation signal generating unit includes:
First determines unit, is used for determining that described first remote controller and the second remote controller belong to same type of
Remote controller;
Second determines unit, for according to each button respective operations in described first remote controller, determines institute
State the button that operation corresponding with each button in described first remote controller in the second remote controller is identical;
First corresponding relation signal generating unit, for by corresponding for each button in described first remote controller infrared
Code is identical as operation corresponding with each button in described first remote controller in described second remote controller
The infrared code of button, and obtain button and the corresponding relation of described infrared code in described second remote controller.
Preferably, described corresponding relation signal generating unit includes:
3rd determines unit, is used for determining that described first remote controller and the second remote controller belong to different types of
Remote controller;
First judging unit, for judging that the quantity of described second remote controller key is whether not less than described the
The quantity of one remote controller key;
Priority orders signal generating unit, if for the quantity of described second remote controller key not less than described the
The quantity of one remote controller key;Determine use frequency and first remote control of described second remote controller key respectively
The priority orders of the use frequency of device button;
Second corresponding relation signal generating unit, for by infrared code corresponding for described first remote controller key, presses
According to the priority orders of the use frequency of described first remote controller key, as being in described in equal order
The infrared code of the first remote controller key, and obtain the right of button and described infrared code in described second remote controller
Should be related to.
Preferably, also include:
Second judging unit, judges the quantity of described second remote controller key for described first judging unit
Quantity less than described first remote controller key, it is judged that the quantity of described second remote controller key is the least
Quantity in described first remote controller basis case;
First selects unit, for judging that the quantity of described second remote controller key is first distant not less than described
The quantity of control device basis case, chooses the infrared code of the basic button of described first remote controller;
3rd corresponding relation signal generating unit, for the infrared code by the basic button of described first remote controller,
As the infrared code of described second remote controller key, and it is red with described to obtain button in described second remote controller
The corresponding relation of outer code.
Preferably, also include:
Second selects unit, for judging that the quantity of described second remote controller key is less than described first remote control
The quantity of device basis case is selected identical with the quantity of described second remote controller key and described first distant
The use frequency of control device basis button is in the first remote controller basis button of preferential position;
4th corresponding relation signal generating unit, infrared for by described the first remote controller basis button determined
Code, as the infrared code of described second remote controller key, and obtains button and institute in described second remote controller
State the corresponding relation of infrared code.
Application technique scheme, the present invention is to provide a kind of keypress function method to set up, can by identifying
The infrared code corresponding to obtain button in the first remote controller, and according to this infrared code, adjust the second remote controller
Middle button and the corresponding relation of described infrared code, red with described finally according to button in described second remote controller
The corresponding relation of outer code, arranges the function of button in described second remote controller, as such, it is possible to distant by second
The infrared code that in control device, button is corresponding is set to the infrared code that the first remote controller key is corresponding, uses the second remote control
The first remote controller replaced by device, it is achieved the recycling of the second remote controller, and in solution prior art, remote controller is not
The problem of the wasting of resources that can reuse and cause.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
Embodiments provide a kind of keypress function method to set up, to solve remote controller in prior art
The household electrical appliances matched with it can only be controlled, it is impossible to the problem reusing the wasting of resources that this remote controller causes.
See Fig. 1, keypress function method to set up disclosed in the embodiment of the present invention, including:
S101, identify the infrared code that in the first remote controller, button is corresponding;
Herein it should be noted that each button of remote controller is to there being unique infrared code, by knowing
The most infrared code may determine that the button corresponding with this infrared code.
S102, according to described infrared code, adjust button in the second remote controller corresponding with described infrared code close
System, button and the corresponding relation of described infrared code in described second remote controller after being adjusted;
Concrete, the infrared code of button in described second remote controller is adjusted to the red of the first remote controller key
Outer code, so, the button of the second remote controller can replace the button on the first remote controller.
Button and the corresponding relation of described infrared code in described second remote controller after S103, foundation adjustment,
The function of button in described second remote controller is set.
Concrete, the infrared code of the button of the second remote controller is adjusted to button infrared of the first remote controller
After Ma, by the function setting of button in the second remote controller be with in this second remote controller button adjust after
Function corresponding to infrared code.
Keypress function method to set up disclosed in the embodiment of the present invention, can obtain the first remote controller by identifying
The infrared code that middle button is corresponding, and according to this infrared code, adjust button in the second remote controller infrared with described
The corresponding relation of code, finally according to the corresponding relation of button in described second remote controller Yu described infrared code,
The function of button in described second remote controller is set, as such, it is possible to by corresponding for button in the second remote controller
Infrared code is set to the infrared code that the first remote controller key is corresponding, replaces the first remote controller with the second remote controller,
Realizing the recycling of the second remote controller, solving remote controller in prior art can not reuse and cause
The problem of the wasting of resources.
The different ways of realization of step S102 disclosed in corresponding above-described embodiment, another embodiment of the present invention is also
Disclose a kind of keypress function method to set up, see Fig. 2, including step:
S201, identify the infrared code that in the first remote controller, button is corresponding;
S202, determine that described first remote controller and the second remote controller belong to same type of remote controller;
Concrete, after identifying the infrared code of the first remote controller key, first identify described first remote controller
Type, and, also identify the type of the second remote controller.Wherein it is possible to by the first remote controller and second
The mark of remote controller identifies the type of remote controller.
Illustrate below in conjunction with an example.
Assume that the first remote controller is TV remote controller, the referred to as first TV remote controller;Second remote controller is simultaneously
Also it is TV remote controller, the referred to as second TV remote controller, now determine the first remote controller and the second remote controller
For same type of remote controller.
S203, according to each button respective operations in described first remote controller, determine described second remote controller
In the identical button of the operation corresponding with each button in described first remote controller;
Concrete, owing to the first remote controller and the second remote controller are TV remote controller, two remote controller bags
Include the button of equal number, and operation corresponding to button is the most identical, such as: the first TV remote controller includes
0-9 has 10 numeral keys altogether, and the second TV remote controller also includes that 0-9 has 10 numeral keys altogether.
S204, by infrared code corresponding for each button in described first remote controller, as described second remote control
The infrared code of the button that operation corresponding with each button in described first remote controller in device is identical, and obtain
Button and the corresponding relation of described infrared code in described second remote controller.
Concrete, owing to the first TV remote controller and the second TV remote controller are same type of remote controller,
The data of the button that two TV remote controller include and operation corresponding to each button are the most identical, now,
By the infrared code of first each button of TV remote controller, as the second TV remote controller each with the first TV
The infrared code of the corresponding button of each button of remote controller.Such as: by the 0-9 of the first TV remote controller altogether
The infrared code of 10 numeral keys, has the infrared code of 10 numeral keys altogether as the 0-9 of the second TV remote controller.
Button and the corresponding relation of described infrared code in described second remote controller after S205, foundation adjustment,
The function of button in described second remote controller is set.
Concrete, after arranging the infrared code of described second TV remote controller key, to arranging by infrared code
The function of the button of described second TV remote controller.
Another embodiment of the present invention also discloses a kind of keypress function method to set up, sees Fig. 3, including step:
S301, identify the infrared code that in the first remote controller, button is corresponding;
S302, determine that described first remote controller and the second remote controller belong to different types of remote controller;
Illustrate also in conjunction with an example.
Assuming that the first remote controller is air-conditioning remote control, the second remote controller is TV remote controller, now, first
Remote controller and the second remote controller are not same type of remote controllers.
S303, judge that the quantity of described second remote controller key is whether not less than described first remote controller key
Quantity;
If the quantity of described second remote controller key is not less than the quantity of described first remote controller key, then hold
Row S304, the use frequency determining described second remote controller key respectively and the use of the first remote controller key
The priority orders of frequency;
Concrete, generally, the quantity of the button of TV remote controller is more than the button of air-conditioning remote control
Quantity.Now, determine TV remote controller and the use frequency of each button of air-conditioning remote control respectively,
Priority orders to the use frequency of button.
Wherein it is possible to the making of each button in detection a period of time TV remote controller and air-conditioning remote control in advance
By situation, it is calculated the use frequency of TV remote controller and each button of air-conditioning remote control successively, and presses
Arrange according to the order using frequency size, obtain the priority orders of the use frequency of button.
Such as: the priority orders of the use frequency of the TV remote controller key obtained is: the plus key of channel,
Channel subtract key, the plus key of volume, volume subtract key, on & off switch etc..
The priority orders of the use frequency of the air-conditioning remote control button obtained is: the plus key of temperature, temperature
Subtract key, on & off switch, mode key, wind speed key etc..
S305, by infrared code corresponding for described first remote controller key, according to described first remote controller key
The priority orders of use frequency, as described first remote controller key infrared being in equal order
Code, and obtain button and the corresponding relation of described infrared code in described second remote controller.
Concrete, by air-conditioning remote control button and the button of TV remote controller, according to air-conditioning remote control button
The priority orders of use frequency and the button of TV remote controller use the correspondence of priority orders of frequency
Relation, obtains the button of TV remote controller and the corresponding relation of described infrared code.
Such as: using the infrared code of the plus key of the temperature of air-conditioning remote control as the plus key of TV remote controller channel
Infrared code, the infrared code subtracting key of the temperature of air-conditioning remote control is subtracted key as TV remote controller channel
Infrared code, the infrared code of described other buttons of air-conditioning remote control successively according to priority orders arrange.
Button and the corresponding relation of described infrared code in described second remote controller after S306, foundation adjustment,
The function of button in described second remote controller is set.
Another embodiment of the present invention also discloses a kind of keypress function method to set up, sees Fig. 4, including step:
S401, identify the infrared code that in the first remote controller, button is corresponding;
S402, determine that described first remote controller and the second remote controller belong to different types of remote controller;
S403, judge that the quantity of described second remote controller key is whether not less than described first remote controller key
Quantity;
If the quantity of described second remote controller key is less than the quantity of described first remote controller key, then perform
S404, determine the quantity of the described second remote controller key number not less than described first remote controller basis button
Amount;
Concrete, when the quantity judging the second remote controller key is less than the quantity of the first remote controller key,
Now, the button of the first remote controller all can not be replaced by the button of the second remote controller, in order to meet first
Remote controller can be used, so judging that whether the quantity of the second remote controller key is less than the first remote controller
The quantity of basis button.
Further, the basic button of described first remote controller has been the button of the first remote controller basic operation,
Such as: the basic button of TV remote controller includes: the add-substract key of volume, the add-substract key of channel, on & off switch,
Determine key.It is, of course, also possible to set the basic button of the first remote controller according to actual needs.
S405, by infrared code corresponding for described first remote controller key, according to described first remote controller key
The priority orders of use frequency, as described first remote controller key infrared being in equal order
Code, and obtain button and the corresponding relation of described infrared code in described second remote controller.
Button and the corresponding relation of described infrared code in described second remote controller after S406, foundation adjustment,
The function of button in described second remote controller is set.
Another embodiment of the present invention also discloses a kind of keypress function method to set up, sees Fig. 5, including step:
S501, identify the infrared code that in the first remote controller, button is corresponding;
S502, determine that described first remote controller and the second remote controller belong to different types of remote controller;
S503, judge that the quantity of described second remote controller key is whether not less than described first remote controller key
Quantity;If the quantity of described second remote controller key is less than the quantity of described first remote controller key, then
Perform S504, determine that the quantity of described second remote controller key is less than described first remote controller basis button
Quantity;
S505, selected identical with the quantity of described second remote controller key, and described first remote controller is basic
The use frequency of button is in the first remote controller basis button of preferential position;
Concrete, when the quantity of described second remote controller key is less than described first remote controller basis button
During quantity, can only ensure that the second remote controller key replaces the part basis button of the first remote controller, now want
Replace the basic button that the use frequency of the first remote controller is higher.
S506, by the infrared code of described the first remote controller basis button determined, as described second remote control
The infrared code of device button, and obtain button and the corresponding relation of described infrared code in described second remote controller.
Button and the corresponding relation of described infrared code in described second remote controller after S507, foundation adjustment,
The function of button in described second remote controller is set.
Another embodiment of the present invention also discloses a kind of keypress function and arranges device, as shown in Figure 6, and including:
Recognition unit 101, for identifying the infrared code that the first remote controller key is corresponding;
Corresponding relation signal generating unit 102, for according to described infrared code, adjust in the second remote controller button with
The corresponding relation of described infrared code, button and described infrared code in described second remote controller after being adjusted
Corresponding relation;
Keypress function arranges unit 103, and in described second remote controller after foundation adjusts, button is with described
The corresponding relation of infrared code, arranges the function of button in described second remote controller.
Disclosed in the present embodiment, keypress function arranges device, is identified by recognition unit 101 and can obtain the
The infrared code that in one remote controller, button is corresponding, corresponding relation signal generating unit 102, according to this infrared code, adjusts
Button and the corresponding relation of described infrared code in second remote controller, last keypress function arranges unit 103
According to the corresponding relation of button in described second remote controller Yu described infrared code, arrange in described second remote controller
The function of button, as such, it is possible to be set to the first remote control by infrared code corresponding for button in the second remote controller
The infrared code that device button is corresponding, replaces the first remote controller with the second remote controller, it is achieved the weight of the second remote controller
Multiple utilize, solve remote controller in prior art and can not reuse and the problem of the wasting of resources that causes.
Concrete, keypress function disclosed in the present embodiment arranges the specific works process of device all parts please
Seeing the embodiment of corresponding diagram 1, here is omitted.
Another embodiment of the present invention also discloses a kind of keypress function and arranges device, as it is shown in fig. 7, comprises:
Recognition unit 201, for identifying the infrared code that the first remote controller key is corresponding;
First determines unit 202, is used for determining that described first remote controller and the second remote controller belong to same kind
Remote controller;
Second determines unit 203, for according to each button respective operations in described first remote controller, determines
The button that operation corresponding with each button in described first remote controller in described second remote controller is identical;
First corresponding relation signal generating unit 204, for by corresponding for each button in described first remote controller red
Outer code is identical as operation corresponding with each button in described first remote controller in described second remote controller
The infrared code of button, and obtain the corresponding relation of button and described infrared code in described second remote controller;
Keypress function arranges unit 205, and in described second remote controller after foundation adjusts, button is with described
The corresponding relation of infrared code, arranges the function of button in described second remote controller.
Concrete, keypress function disclosed in the present embodiment arranges the specific works process of device all parts please
Seeing the embodiment of corresponding diagram 2, here is omitted.
Another embodiment of the present invention also discloses a kind of keypress function and arranges device, as shown in Figure 8, and including:
Recognition unit 301, for identifying the infrared code that the first remote controller key is corresponding;
3rd determines unit 302, is used for determining that described first remote controller and the second remote controller belong to dissimilar
Remote controller;
First judging unit 303, for judging that whether the quantity of described second remote controller key is not less than described
The quantity of the first remote controller key;
Priority orders signal generating unit 304, if the quantity for described second remote controller key is not less than described
The quantity of the first remote controller key;Determine the use frequency of described second remote controller key and first distant respectively
The priority orders of the use frequency of control device button;
Second corresponding relation signal generating unit 305, is used for infrared code corresponding for described first remote controller key,
According to the priority orders of the use frequency of described first remote controller key, as the institute being in equal order
State the infrared code of the first remote controller key, and obtain button and described infrared code in described second remote controller
Corresponding relation;
Keypress function arranges unit 306, and in described second remote controller after foundation adjusts, button is with described
The corresponding relation of infrared code, arranges the function of button in described second remote controller.
Concrete, keypress function disclosed in the present embodiment arranges the specific works process of device all parts please
Seeing the embodiment of corresponding diagram 3, here is omitted.
Preferably, disclosed in above-described embodiment, keypress function arranges device, also includes:
Second judging unit, judges the quantity of described second remote controller key for described first judging unit
Quantity less than described first remote controller key, it is judged that the quantity of described second remote controller key is the least
Quantity in described first remote controller basis case;
First selects unit, for judging that the quantity of described second remote controller key is first distant not less than described
The quantity of control device basis case, chooses the infrared code of the basic button of described first remote controller;
3rd corresponding relation signal generating unit, for the infrared code by the basic button of described first remote controller,
As the infrared code of described second remote controller key, and it is red with described to obtain button in described second remote controller
The corresponding relation of outer code.
The specific works process of above-mentioned all parts refers to the embodiment of corresponding diagram 4, and here is omitted.
Preferably, disclosed in above-described embodiment, keypress function arranges device, also includes:
Second selects unit, for judging that the quantity of described second remote controller key is less than described first remote control
The quantity of device basis case is selected identical with the quantity of described second remote controller key and described first distant
The use frequency of control device basis button is in the first remote controller basis button of preferential position;
4th corresponding relation signal generating unit, infrared for by described the first remote controller basis button determined
Code, as the infrared code of described second remote controller key, and obtains button and institute in described second remote controller
State the corresponding relation of infrared code.
The specific works process of above-mentioned all parts refers to the embodiment of corresponding diagram 5, and here is omitted.
It should be noted that each embodiment in this specification all uses the mode gone forward one by one to describe, each
What embodiment stressed is all the difference with other embodiments, identical similar between each embodiment
Part see mutually.For device class embodiment, due to the basic phase of itself and embodiment of the method
Seemingly, so describe is fairly simple, relevant part sees the part of embodiment of the method and illustrates.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like
It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires
Or imply relation or the order that there is any this reality between these entities or operation.And, art
Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, thus
Make to include that the process of a series of key element, method, article or equipment not only include those key elements, and
Also include other key elements being not expressly set out, or also include for this process, method, article or
The key element that person's equipment is intrinsic.In the case of there is no more restriction, by statement " including ... "
The key element limited, it is not excluded that also deposit in including the process of described key element, method, article or equipment
In other identical element.
Above a kind of keypress function method to set up provided by the present invention and device are described in detail,
Principle and the embodiment of the present invention are set forth by specific case used herein, above example
Explanation be only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for this area
Those skilled in the art, according to the thought of the present invention, the most all have and change
In place of change, in sum, this specification content should not be construed as limitation of the present invention.