A kind of multi-mode remote controller and method thereof
Technical field
The present invention relates to remote controller technical field, particularly relate to a kind of multi-mode remote controller and method thereof.
Background technology
Along with the progress of science and technology, household appliances equipment gets more and more, and domestic space area is the most increasing,
Major part electric equipment is required for using remote controller to be controlled, former due to electric equipment putting position
Cause, generally requires remote controller and can pass through obstacle and be controlled electric equipment.Along with living space
Increasing, large scale telescreen is also increasingly entering family, and this just requires the remote control distance of remote controller
Increase.
But effective remote control distance of existing IR remote controller is short, and passes through the ability of obstacle.And
And existing IR remote controller is too big if the deviation from angle, then there will be the phenomenon that remote control is malfunctioning.Therefore,
Prior art often uses installs multiple infrared receiver port on television set and other electric equipments,
Multiple infrared emission port is installed on remote controller, overcomes drawbacks described above, but this can cause the increasing of cost
Add.
2.4G technology is to carry out signal transmission by 2.4GHz radio wave, the merit having due to electromagnetic wave
Rate is big, the transmission that it can realize at a distance, non-angular limits and direction limits, and it can pass through
Barrier, the control instruction therefore using 2.4G technology to realize between remote controller and electric equipment is transmitted then
Can solve that existing IR remote controller remote control distance is short, cannot pass through barrier and the limit of remote control angle
System.
Due to increasing of household appliances equipment, generally require the same remote controller of use and control multiple electric equipments.
But, some electric equipment only possesses infrared receiver port, and some environment there is no 2.4G wireless network,
Therefore the remote control appliance remaining a need for the multiple electric equipment of this control is red for retaining while 2.4G distant control function
Emission function.
Therefore, how remote controller realizes working under various circumstances and how to control possessing respectively different distant
The multiple electric equipment of control receiving port becomes technical problem urgently to be resolved hurrily.
Summary of the invention
In view of this, it is an object of the invention to provide a kind of multi-mode remote controller and method thereof, it can be real
Work the most under various circumstances, and the multiple electrical equipment controlling to possess respectively different remote control reception port sets
Standby.
For achieving the above object, the present invention provides technical scheme as follows:
The present invention provides a kind of multi-mode remote controller, and described remote controller is operated in infrared mode or 2.4G
Under pattern, described remote controller includes:
Command reception module, for receiving and preserve the input instruction of user;
Microprocessor, for when described remote controller is operated under infrared mode, according to described input instruction
Produce the first operational order;When described remote controller is operated under 2.4G pattern, according to described input instruction
Produce the second operational order;
Infrared sending module, for when described remote controller is operated under infrared mode, utilizes infrared mode
Send described first operational order;
2.4G sending module, for when described remote controller is operated under 2.4G pattern, utilizes 2.4G to carry
Ripple sends described second operational order.
Further, remote controller of the present invention includes a mode selecting key, and user selects according to described pattern
Select remote controller described in key control to be operated under infrared mode or 2.4G pattern.
Further, remote controller of the present invention includes:
Infrared receiving module, for receiving the infrared signal that electric equipment sends;
2.4G receiver module, for receiving the 2.4G signal that electric equipment sends;
Mode selection module, controls for the signal intensity according to described infrared signal and described 2.4G signal
Described remote controller is operated under infrared mode or 2.4G pattern.
Further, remote controller of the present invention includes:
Output module, for exporting according to described infrared signal or described 2.4G signal.
Further, remote controller of the present invention also includes:
Power management module, under the control of described microprocessor, is operated according to described remote controller
Infrared mode or 2.4G pattern control the power supply of described remote controller and send out infrared sending module and 2.4G
Send the power supply of module;
When described remote controller is operated in infrared mode, the power supply controlling described remote controller supplies electricity to described infrared
Transmitter module, does not supply electricity to described 2.4G sending module;Under described remote controller is operated in 2.4G pattern
Time, the power supply controlling described remote controller supplies electricity to described 2.4G sending module, does not supply electricity to described infrared
Penetrate module.
Further, power management module of the present invention is switch element, the control of described switch element
End connects described microprocessor, when described remote controller is operated in infrared mode, and described microprocessor controls institute
State switch element, make composition path between the power supply of described remote controller and described infrared transmission module, described
Open circuit is constituted between power supply and the described 2.4G sending module of remote controller;When described remote controller is operated in 2.4G
Pattern, described microprocessor controls described switch element, makes the power supply of described remote controller and described 2.4G send out
Send composition path between module, between power supply and the described infrared transmission module of described remote controller, constitute open circuit.
The present invention also provides for a kind of multimode remote control method, and the remote controller of described method application is operated in infrared
Under pattern or 2.4G pattern, described method includes:
Receive and preserve the input instruction of user;
When described remote controller is operated under infrared mode, produces the first operation according to described input instruction and refer to
Order;When described remote controller is operated under 2.4G pattern, produces the second operation according to described input instruction and refer to
Order;
When described remote controller is operated under infrared mode, utilizes infrared mode to send described first operation and refer to
Order, when described remote controller is operated under 2.4G pattern, utilizes 2.4G carrier wave to send described second operation
Instruction.
Further, the method for the invention also includes: control the work of described remote controller according to user instruction
Under infrared mode or 2.4G pattern.
Further, the method for the invention also includes:
Receive infrared signal and 2.4G signal that electric equipment sends;
Signal intensity according to described infrared signal and described 2.4G signal controls described remote controller and is operated in
Under infrared mode or 2.4G pattern.
Further, the method for the invention also includes:
Export according to described infrared signal or described 2.4G signal.
Remote controller provided by the present invention is owing to having infrared sending module and 2.4G sending module, when this
Bright remote controller is operated under infrared mode, it is possible to use infrared sending module sends the first operational order;When
Remote controller is operated under 2.4G pattern, it is possible to use 2.4G sending module sends the second operational order;Cause
This, remote controller provided by the present invention both can utilize 2.4G carrier wave, it is achieved remote control electrical appliance the most easily
Equipment;It is also possible to use infrared mode to send operational order to electric equipment, control electric equipment
Operation.So, the present invention is achieved that have 2.4G network and do not having the environment of 2.4G network
The most all can work, it is also possible to control is respectively provided with 2.4G receiving port and infrared receiver port is many
Plant electric equipment.
Accompanying drawing explanation
Fig. 1 is the structural representation of the remote controller of the embodiment of the present invention one;
Fig. 2 is the schematic appearance of remote controller of the present invention;
Fig. 3 is the structural representation of the remote controller of the embodiment of the present invention three;
Fig. 4 is the structural representation of the remote controller of the embodiment of the present invention four;
Fig. 5 A is the switch element schematic diagram that remote controller is operated in infrared mode;
Fig. 5 B is the switch element schematic diagram that remote controller is operated in 2.4G pattern;
Fig. 6 is the flow chart of remote control thereof of the present invention.
Detailed description of the invention
Remote controller of the present invention is operated under infrared mode, produces the first operational order, profit according to input instruction
The first operational order is sent with infrared mode;Remote controller is operated under 2.4G pattern, produces according to input instruction
Raw second operational order, utilizes 2.4G carrier wave to send the second operational order.Owing to 2.4G carrier wave is anti-dry
The advantage of immunity, maximum transmission distance and power consumption so that remote controller of the present invention is operated in 2.4G pattern
Time lower, it is not necessary to consider the putting position of electric equipment, the angle of remote control and remote controller and electric equipment
Distance, thus realize remote-control electrical equipment the most easily.Remote controller of the present invention also can be operated in infrared mould
Formula, throws away employing infrared mode and sends operational order to electric equipment, control the operation of electric equipment.Therefore,
The present invention can be implemented in and controls multiple electric equipment under varying environment.
Further illustrate the present invention below in conjunction with concrete the drawings and specific embodiments to realize.
Embodiment one
The present invention provides a kind of multi-mode remote controller, and remote controller is operated in infrared mode or 2.4G pattern
Under.When remote controller of the present invention is operated in infrared mode, behaviour can be sent by infrared mode to electric equipment
Instruct, control the operation of electric equipment.When remote controller of the present invention is operated in 2.4G pattern, can pass through
2.4G carrier wave sends operational order to electric equipment, controls the operation of electric equipment.Due to 2.4G pattern
Being to carry out signal transmission by 2.4GHz radio wave, the power having due to electromagnetic wave is big, and it is permissible
Realize transmission remote, that non-angular limits and direction limits, and it can pass through barrier, its
The reliability sending operational order is better than infrared mode.
Referring to Fig. 1, remote controller 1 includes:
Command reception module 11, for receiving and preserve the input instruction of user.
The user input instruction that command reception module 11 receives includes that key-press input instruction, mouse input refer to
Make, touch screen input instructs and trace ball input instruction.User is referred to by remote controller input user
Order, the command reception module 11 of remote controller 1 receives the input instruction of user, and the input of user is instructed
It is saved in the internal memory of remote controller 1.
Microprocessor 12, for being operated under infrared mode when remote controller 1, according to input instruction generation the
One operational order;Under remote controller 1 is operated in 2.4G pattern, produces the second operation according to input instruction and refer to
Order.
Further, microprocessor 12 includes:
Resolution unit, is used for resolving input instruction, produces control instruction.Specifically, refer to when user's input
Make and instructing for key-press input, the analogue signal that microprocessor 12 receives according to I/O port, carry out analog digital conversion,
Obtain key code value, and produce the control instruction that this key code value is corresponding.
Transmitting element, for being operated under infrared mode when remote controller 1, generates first according to control instruction
Operational order is sent to infrared sending module 13;Under remote controller 1 is operated in 2.4G pattern, according to control
System instruction generates the second operational order and is sent to 2.4G sending module 14.
When remote controller 1 is operated under infrared mode, and control instruction is carried out infrared coding by microprocessor 12,
I.e. form the binary code of a string 0 and 1 composition, generate the first operational order.Infrared coding mode is led to
Frequently with existing pulse width modulating technology.
Under remote controller 1 is operated in 2.4G pattern, control instruction is modulated by microprocessor 12, adds
Being downloaded in 2.4G carrier frequency, modulation technique can use existing minimum shift keying (MSK-
Minimum Shift Keying).
Infrared sending module 13, under remote controller is operated in infrared mode, utilizes infrared mode to send
First operational order.
First operational order is sent to electric equipment by infrared sending module 13, makes remote controller 1 realize electricity
The control of device equipment.Specifically, infrared sending module 13 usually infrarede emitting diode.
2.4G sending module 14, under remote controller is operated in 2.4G pattern, utilizes 2.4G carrier wave to send out
Send the second operational order.
Second operational order is sent to electric equipment by 2.4G sending module 14, makes remote controller 1 realize right
The control of electric equipment.Specifically, 2.4G sending module 14 usually RF(radio frequency) antenna.
When remote controller of the present invention is operated under 2.4G pattern, it is not necessary to consider the putting position of electric equipment, distant
The angle of control and remote controller and the distance of electric equipment, thus realize remote control electrical appliance the most easily and set
Standby.Remote controller of the present invention also can be operated in infrared mode, throws away employing infrared mode and sends behaviour to electric equipment
Instruct, control the operation of electric equipment.Therefore, control many under the present invention can be implemented in varying environment
Plant electric equipment.
Embodiment two
Further, referring to Fig. 2, remote controller of the present invention includes a mode selecting key, and user selects according to pattern
Select key control remote controller to be operated under infrared mode or 2.4G pattern.
Specifically, this mode selecting key can be a button, and when this button is pressed, remote controller works
In infrared mode, button is pressed again, and remote controller is operated under 2.4G pattern.By user to button
Operation, it is achieved infrared mode and the switching of 2.4G pattern.
Specifically, this mode selecting key can also be a slide key, when this slide key slides into one end, distant
Control device is operated in infrared mode, and slide key slides into other end, and remote controller is operated under 2.4G pattern.
By user's operation to slide key, it is achieved infrared mode and the switching of 2.4G pattern.
Embodiment three
Further, referring to Fig. 3, remote controller 1 also includes:
Infrared receiving module 15, for receiving the infrared signal that electric equipment sends.
Infrared receiving module 15 receives the infrared signal that electric equipment sends, specifically, infrared receiving module
15 is infrared receiver port.
2.4G receiver module 16, for receiving the 2.4G signal that electric equipment sends.
2.4G receiver module 16 receives the 2.4G signal that electric equipment sends, and specifically, 2.4G receives mould
Block 16 is 2.4G receiving port.
Mode selection module 17, controls remote control for the signal intensity according to infrared signal and 2.4G signal
Device is operated under infrared mode or 2.4G pattern.
Only send infrared signal such as electric equipment, mode selection module 17 can select to control remote controller and be operated in
Infrared mode;Only send 2.4G signal such as electric equipment, mode selection module 17 can select to control remote control
Device is operated under 2.4G pattern.
As same electric equipment sends infrared signal and 2.4G signal, remote controller 1 can receive infrared signal
With 2.4G signal, mode selection module 17 compares and receives infrared signal and the signal intensity of 2.4G signal.
If infrared signal intensity is big, mode selection module 17 can select to control remote controller and be operated in infrared mode,
If 2.4G signal intensity is big, mode selection module 17 can select to control remote controller and be operated in 2.4G pattern
Under.
Further, remote controller 1 of the present invention also includes output module 18, for according to infrared signal or 2.4G
Signal exports.
When can not find remote controller 1, electric equipment is made to send infrared signal or 2.4G signal to remote controller
1, remote controller 1 exports, and reminds the position at user remote controller place.Generally output module 18 is
Luminous tube or Audio Players.
Embodiment four
Further, referring to Fig. 4, remote controller 1 also includes:
Power management module 18, under the control of microprocessor 12, is operated according to remote controller 1
Infrared mode or 2.4G pattern control the power supply of remote controller 1 and send out infrared sending module 13 and 2.4G
Send the power supply of module 14.
When remote controller 1 is operated in infrared mode, and the power supply controlling remote controller 1 supplies electricity to infrared transmission module
13, do not supply electricity to 2.4G sending module 14;Under remote controller 1 is operated in 2.4G pattern, control remote control
The power supply of device 1 supplies electricity to 2.4G sending module 14, does not supply electricity to infrared transmission module 13.
The control signal that power management module 18 sends according to the microprocessor 12 of remote controller 1, controls
The power supply of remote controller 1 gives the power supply of infrared sending module 13 and 2.4G sending module 14.When remote controller 1
Being operated in infrared mode, the power supply controlling remote controller 1 supplies electricity to infrared transmission module 13, does not supply electricity to 2.4G
Sending module 14.So, when remote controller 1 is operated in infrared mode, 2.4G sending module 14 power-off,
Remote controller 1 will not send any operational order by 2.4G sending module 14.When remote controller 1 is operated in
Under 2.4G pattern, the power supply controlling remote controller 1 supplies electricity to 2.4G sending module 14, does not supply electricity to infrared
Transmitter module 13.So, when remote controller 1 is operated in 2.4G pattern, infrared transmission module 13 power-off,
Remote controller 1 will not send any operational order by infrared transmission module 13.Thus, save remote controller
Power consumption, avoids sending the electric equipment maloperation that operational order mistake causes simultaneously.
Further, power management module is switch element, and switch element is two-way key switch, switch
The control end of unit connects microprocessor.
Referring to Fig. 5 A, when remote controller is operated in infrared mode, the GPIO(universal input of microprocessor is defeated
Outgoing interface) control switch element telegraph key Guan Bi end closing direction.When the GPIO of microprocessor exports
Electronegative potential, makes between the power supply of remote controller and infrared transmission module composition path, the power supply of remote controller and
Open circuit is constituted between 2.4G sending module.
Referring to Fig. 5 B, when remote controller is operated in 2.4G pattern, it is single that the GPIO of microprocessor controls switch
The closing direction of the telegraph key Guan Bi end of unit.When the GPIO of microprocessor exports high potential, make remote controller
Constitute path between power supply and 2.4G sending module, constitute between power supply and the infrared transmission module of remote controller
Open circuit.
Switch element is in addition to using two-way key switch, it is also possible to use other switching devices, such as
COMS pipe etc..
Embodiment five
Seeing Fig. 6, corresponding to above-mentioned remote controller, the present invention also provides for a kind of multimode remote control method, side
The remote controller of method application is operated under infrared mode or 2.4G pattern.
Method includes:
601, receive and preserve user input instruction.
The user input instruction received includes that key-press input instruction, mouse input instruction, touch screen input refer to
Order and trace ball input instruction.
602, under remote controller is operated in infrared mode, the first operational order is produced according to input instruction.
603, under remote controller is operated in infrared mode, infrared mode is utilized to send the first operational order.
Under remote controller is operated in infrared mode, remote controller produces the first operational order according to input instruction,
And utilize infrared mode to send the first operational order.
Step 602 farther includes:
Resolve input instruction, produce control instruction.Such as, when user input instruction is key-press input instruction,
The analogue signal that the microprocessor of remote controller receives according to I/O port, carries out analog digital conversion, it is thus achieved that key set code
Value, and produce the control instruction that this key code value is corresponding.
Under remote controller is operated in infrared mode, generate the first operational order according to control instruction.Specifically,
Under remote controller is operated in infrared mode, control instruction is carried out infrared coding by the microprocessor of remote controller,
I.e. form the binary code of a string 0 and 1 composition, generate the first operational order.
604, under remote controller is operated in 2.4G pattern, the second operational order is produced according to input instruction.
605, under remote controller is operated in 2.4G pattern, 2.4G carrier wave is utilized to send the second operational order.
Under remote controller is operated in 2.4G pattern, remote controller produces the second operational order according to input instruction,
And utilize 2.4G mode to send the second operational order.
Step 604 farther includes:
Resolve input instruction, produce control instruction.Such as, when user input instruction is key-press input instruction,
The analogue signal that microprocessor 12 receives according to I/O port, carries out analog digital conversion, it is thus achieved that key code value, and
Produce the control instruction that this key code value is corresponding.
Under remote controller is operated in 2.4G pattern, generate the second operational order according to control instruction.Specifically,
Under remote controller is operated in 2.4G pattern, control instruction is modulated by the microprocessor of remote controller, loads
In 2.4G carrier frequency, generate the second operational order.
Step 602 and step 603 are operated under infrared mode the step performed for remote controller;Step 604
The step performed it is operated under 2.4G pattern for remote controller with step 605.Step 602, step 603 and
Temporal precedence relationship is there is no between step 604, step 605.
Further, method also includes: according to user instruction control remote controller be operated in infrared mode or
Under 2.4G pattern.
Remote controller can be operated under infrared mode or 2.4G pattern according to the selection of user.User passes through
The mode selecting key of remote controller completes infrared mode or the selection of 2.4G pattern.
Further, method also includes:
Receive infrared signal and 2.4G signal that electric equipment sends.
Signal intensity according to infrared signal and 2.4G signal control remote controller be operated in infrared mode or
Under 2.4G pattern.
As same electric equipment sends infrared signal and 2.4G signal, remote controller can receive infrared signal and
2.4G signal, compares and receives infrared signal and the signal intensity of 2.4G signal.If infrared signal is strong
Degree greatly, selects to control remote controller and is operated in infrared mode, if 2.4G signal intensity is big, selects control distant
Control device is operated under 2.4G pattern.
Further, method also includes:
Export according to infrared signal or 2.4G signal.
When can not find remote controller, electric equipment is made to send infrared signal or 2.4G signal to remote controller,
Remote controller exports, and reminds the position at user remote controller place.
These are only presently preferred embodiments of the present invention, not in order to limit the present invention, all in the present invention
Spirit and principle within, any modification, equivalent substitution and improvement etc. done, should be included in this
Within the scope of bright protection.