A kind of remote control thereof and remote controler
Technical field
The present invention relates to Infrared Ray Remote Control Technology field, more particularly to a kind of remote control thereof and remote controler.
Background technology
Remote controler is a kind of device for remote control electrical equipment, modern remote controler, mainly by integrated circuit
Battery plate and (definition in dissemination to message is for producing different messages:It is made of one group of significant symbol that is mutually related,
Can express the information of certain complete meaning) button formed.Due in daily life many electrical equipments using infrared
Line is remotely controlled, and therefore, most common remote controler is IR remote controller on the market.
The main element of common IR remote controller is infrared light-emitting diode, it is a special light emitting diode,
Since its internal material is different from common light emitting diode, thus in its both ends application certain voltage, what it just sent is red
Outside line rather than visible ray.The characteristics of infrared remote control is not influence surrounding enviroment, usually do not disturb other electrical equipments.Due to red
Outside line can not penetrate wall, therefore general remote controler not can be used to be interfered with each other without producing for the household electrical appliance of chummery;Electricity
Road debugging is simple, generally without any debugging to devote oneself to work as long as errorless by given circuit connection;Encoding and decoding are easy, can
Carry out Multi-way remote control.
The radiating circuit of infrared remote control sends the infrared waves through ovennodulation using infrared light-emitting diode;Infrared receiver
Circuit is made of infrared receiving diode, triode or silicon photocell, they are converted to the infrared light that infrared transmitter is launched
Corresponding electric signal, then send post amplifier.Transmitter is generally by instruction key (or operation lever), instruction coding system, modulation electricity
A few part compositions such as road, drive circuit, radiating circuit.When pressing instruction key or promoting operation lever, instruction encoding circuit produces
Required instruction encoding signal, instruction encoding signal are modulated carrier wave, then by drive circuit carry out power amplification after by sending out
Transmit-receive radio road outwards launches modulated fixed instruction encoding signal.Under the instruction encoding signal that receiving circuit sends transmitter receives
Come, and demodulator circuit is sent after being amplified, demodulator circuit demodulates brewed instruction encoding signal to come, that is, is reduced to encode
Signal.Encoded command signals into row decoding, are finally driven execution circuit to realize various fingers by command decoder by drive circuit
The operation control (mechanism) of order
Since each manufacturer produces a large amount of infrared remote control application-specific integrated circuits, when needing to use by figure rope
Thoroughbred horse.Infrared remote control is closely widely used in household electrical appliance, interior (less than 10 meters) in remote control.Multi-channel control
Infrared emission part generally have many buttons, represent different control functions, when transmitting terminal presses a certain button, correspondingly
There is different output states in receiving terminal.
In the prior art, when being controlled using IR remote controller to electrical equipment, if a small range there are it is multiple can
During the electrical equipment of infrared remote control, it is necessary to wherein one or more in the case of putting more air-conditionings at the same time such as in meeting room
Platform is remotely controlled, and the cross-interference issue between more air-conditionings easily occurs, and can not fast and effectively be switched remote control.
The content of the invention
The present invention provides a kind of remote control thereof and remote controler, existing in the prior art to more infrared equipments to solve
The problem of easily being interfered with each other when being remotely controlled, realizes and more infrared equipments is carried out with quickly and efficiently switching remote control
Purpose.
The present invention provides a kind of remote control thereof, including:
Step A:Launch the infrared acquisition line of induction, judge in itself infrared remote control induction range with the presence or absence of remote-controlled
First infrared induction equipment;
Step B:If there is the first remote-controlled infrared induction equipment, then sent to the first infrared induction equipment red
Outer connection request, and infrared connection is established with it according to the response message that the first infrared induction equipment returns;
Step C:The brand and type information of the first infrared induction equipment are obtained, judges whether remote controler itself stores
Have and the first infrared induction equipment brand and the corresponding remote control coding information of type information;
Step D:According to remote control demand and store corresponding with the first infrared induction equipment brand and type information
Remote control coding information, generation telecommand simultaneously to the first infrared induction equipment send.
Some beneficial effects of the embodiment of the present invention can include:
Before being remotely controlled to infrared induction equipment, first determine whether infrared induction equipment whether in itself remote-controlled sensing
In the range of, when in itself remote-controlled scope, infrared connection is established with the infrared induction equipment, and it is red by obtaining this
The brand and type information of outer sensing apparatus, call itself store in the corresponding remote control coding information of above- mentioned information, and then
Telecommand is generated, ensure that in remote control process, carry out infrared connection that can in time, effectively, safe and telecommand
Send.
In one embodiment, further include:
Step E:When the controlled infrared induction equipment of switching, send cancellation remote control to the first infrared induction equipment and refer to
Make and disconnect infrared connection;
Step F:Infrared connection request is sent to the second infrared induction equipment to be controlled, is set according to second infrared induction
The standby response message returned establishes infrared connection with it;
Step G:According to remote control demand and store corresponding distant with the second infrared induction equipment brand and type information
Coding information is controlled, telecommand is generated and is sent to the second infrared induction equipment.
The method when embodiment mainly switches over remote control to multiple remote-controlled infrared induction equipment is illustrated,
When needing to switch the infrared induction equipment of remote control, the infrared company with the current infrared induction equipment being remotely controlled is first turned off
Connect, then establish infrared connection with infrared induction equipment to be remotely controlled again, and call the infrared induction equipment to be remotely controlled after switching
Remote control coding information, generation telecommand simultaneously be sent to infrared induction equipment be remotely controlled, ensure that switch be remotely-controlled it is red
Promptness, validity and security during outer sensing apparatus.
In one embodiment, the step B includes:
Infrared connection request is sent to the first infrared induction equipment, and judges whether that receiving the first infrared induction sets
The standby confirmation connectivity request message returned;
Confirmation connectivity request message according to receiving judges whether the first infrared induction equipment is multiple, and establishes
The identification code of the identification code of itself and all first infrared induction equipment;
If the first infrared induction equipment is 1, directly set by infrared induction and first infrared induction
It is standby to establish infrared connection.
In the embodiment, primarily directed to the situation for there was only an infrared induction equipment in remote-controlled scope, need first
Judge whether there are multiple infrared induction equipment in remote-controlled scope, if it is judged that for 1, then directly with the infrared induction
Equipment carries out infrared connection, without carrying out other steps, simplifies when there was only an infrared induction equipment in remote-controlled scope
Remote control process, improves remote control efficiency.
In one embodiment, the step B is further included:
If the first infrared induction equipment is multiple, remote control indication signal is sent, it is described to be remotely controlled in indication signal
Include the identification code of infrared induction equipment to be remotely controlled;
The response message returned according to the corresponding infrared induction equipment of the identification code, is established red with the infrared induction equipment
Outer connection.
In the embodiment, primarily directed to the situation for having multiple infrared induction equipment in remote-controlled scope, it is necessary first to
Judge whether there are multiple infrared induction equipment in remote-controlled scope, if it is judged that being multiple, then need to be remotely controlled by sending
The form of indication signal, the infrared induction equipment with needing to be remotely controlled establish infrared connection, which includes treating distant
The identification code of the infrared induction equipment of control, when the corresponding infrared induction equipment of the identification code receives remote control indication signal, meeting
Corresponding response message is returned to, remote controler end is established with corresponding infrared induction equipment according to response message and connected, ensure that
In the case of multiple infrared induction equipment are simultaneous, the accuracy of specific infrared induction equipment to be remotely controlled is selected.
In one embodiment, the step C is specifically included:
Believe if itself be stored with the first infrared induction equipment brand and the corresponding remote control coding of type information
Breath, then directly transfer the coding information;
If itself is not stored and the first infrared induction equipment brand and the corresponding remote control coding of type information
Information, then send decoding protocol solicited message to the first infrared induction equipment, included in the decoding protocol solicited message
Obtain the request of the remote signal decoding protocol of the first infrared induction equipment;
Itself the remote signal decoding protocol returned according to the first infrared induction equipment, generation and the remote signal
The corresponding remote control coding information of decoding protocol;
The brand of the first infrared induction equipment and type information and corresponding remote control coding information are stored in this
Simultaneously transferred on ground.
In the embodiment, further restriction is carried out to the step of calling remote control coding information, when remote controler end is stored with
During corresponding remote control coding information, coding information can be directly transferred, the remote control time is saved, improves remote control efficiency;When distant
, it is necessary to obtain decoding protocol to infrared induction equipment to be remotely controlled when control device end does not store corresponding remote control coding information,
After obtaining decoding protocol, according to the decoding protocol, corresponding remote control coding information is generated, and by itself and the equipment product of itself
Board, type information are stored, and during so as to be remotely controlled to the infrared induction equipment next time, can directly be transferred remote control and being compiled
Code information generation telecommand, saves the working time, improves work efficiency.
A kind of remote controler, including:
Infrared detection module, for launching the infrared acquisition line of induction, judge in itself infrared remote control induction range whether
There are the first remote-controlled infrared induction equipment;
First link block, for if there is the first remote-controlled infrared induction equipment, then to the described first infrared sense
Answer equipment to send infrared connection request, and infrared company is established with it according to the response message that the first infrared induction equipment returns
Connect;
Code verification module, for obtaining the brand and type information of the first infrared induction equipment, judges remote controler
Itself whether it is stored with and the first infrared induction equipment brand and the corresponding remote control coding information of type information;
First remote control module, for according to remote control demand and store with the first infrared induction equipment brand and model
The corresponding remote control coding information of information, generates telecommand and is sent to the first infrared induction equipment.
In one embodiment, further include:
Module is cancelled in remote control, for when the controlled infrared induction equipment of switching, being sent out to the first infrared induction equipment
Send cancellation telecommand and disconnect infrared connection;
Second link block, for sending infrared connection request to the second infrared induction equipment to be controlled, according to described the
The response message that two infrared induction equipment return establishes infrared connection with it;
Second remote control module, for according to remote control demand and store with the second infrared induction equipment brand and type information
Corresponding remote control coding information, generates telecommand and is sent to the second infrared induction equipment.
In one embodiment, first link block specifically includes:
Connection request submodule, for sending infrared connection request to the first infrared induction equipment, and judges whether
Receive the confirmation connectivity request message of the first infrared induction equipment return;
Equipment judging submodule, for judging that first infrared induction is set according to the confirmation connectivity request message received
Whether standby be multiple, and establish itself identification code and all first infrared induction equipment identification code;
Be directly connected to submodule, if for the first infrared induction equipment be 1, directly by infrared induction with
The first infrared induction equipment establishes infrared connection.
In one embodiment, first link block specifically further includes:
Remote control instruction submodule, if being multiple for the first infrared induction equipment, sends remote control indication signal,
The remote control indication signal includes the identification code of infrared induction equipment to be remotely controlled;
Response connection submodule, for the response message returned according to the corresponding infrared induction equipment of the identification code, with
The infrared induction equipment establishes infrared connection.
In one embodiment, the code verification module specifically includes:
Submodule directly is transferred, if for itself being stored with and the first infrared induction equipment brand and type information
Corresponding remote control coding information, then directly transfer the coding information;
Agreement request submodule, believes if do not stored for itself with the first infrared induction equipment brand and model
The corresponding remote control coding information of manner of breathing, then send decoding protocol solicited message, the decoding to the first infrared induction equipment
The request for the remote signal decoding protocol for obtaining the first infrared induction equipment is included in agreement request information;
Coding generation submodule, itself remote signal for being returned according to the first infrared induction equipment decode association
View, generation and the corresponding remote control coding information of the remote signal decoding protocol;
Submodule is transferred in storage, for by the brand of the first infrared induction equipment and type information and corresponding distant
Control coding information is stored in local and is transferred.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Attached drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention
Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of remote control thereof in the embodiment of the present invention;
Fig. 2 is the flow chart of another remote control thereof of the embodiment of the present invention;
Fig. 3 is the flow chart of the step S102 of remote control thereof in the embodiment of the present invention a kind of;
Fig. 4 is another flow chart of the step S102 of remote control thereof in the embodiment of the present invention a kind of;
Fig. 5 is the flow chart of the step S103 of remote control thereof in the embodiment of the present invention a kind of;
Fig. 6 is a kind of block diagram of remote controler in the embodiment of the present invention;
Fig. 7 is a kind of block diagram of the first link block 62 of remote controler in the embodiment of the present invention;
Fig. 8 is a kind of block diagram of the code verification module 63 of remote controler in the embodiment of the present invention.
Embodiment
The preferred embodiment of the present invention is illustrated below in conjunction with attached drawing, it will be appreciated that described herein preferred real
Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is a kind of flow chart of remote control thereof in the embodiment of the present invention, as shown in Figure 1, this method comprises the following steps
S101-S104:
Step S101:Launch the infrared acquisition line of induction, judge in itself infrared remote control induction range with the presence or absence of can be distant
First infrared induction equipment of control;
Step S102:If there is the first remote-controlled infrared induction equipment, then sent out to the first infrared induction equipment
Send infrared connection to ask, and infrared connection is established with it according to the response message that the first infrared induction equipment returns;
Step S103:The brand and type information of the first infrared induction equipment are obtained, whether judges remote controler itself
It is stored with and the first infrared induction equipment brand and the corresponding remote control coding information of type information;
The infrared induction equipment of different brands and model is remotely controlled, it is necessary to this store it is corresponding different distant
Control coding information.
Step S104:According to remote control demand and store opposite with the first infrared induction equipment brand and type information
The remote control coding information answered, generates telecommand and is sent to the first infrared induction equipment.
The technical solution of the embodiment of the present invention, before being remotely controlled to infrared induction equipment, first determines whether that infrared induction is set
For whether in itself remote-controlled induction range, when in itself remote-controlled scope, established with the infrared induction equipment
Infrared connection, and by obtaining the brand and type information of the infrared induction equipment, call itself store in above- mentioned information
Corresponding remote control coding information, and then generate telecommand, ensure that in remote control process, can in time, effectively, it is safe
Carry out the transmission of infrared connection and telecommand.
The flow chart of another remote control thereof of the embodiment of the present invention is illustrated in figure 2, as shown in Fig. 2, the remote control thereof
Including:
Step S105:When the controlled infrared induction equipment of switching, it is distant to send cancellation to the first infrared induction equipment
Control instructs and disconnects infrared connection;
Step S106:Infrared connection request is sent to the second infrared induction equipment to be controlled, according to the described second infrared sense
The response message that equipment returns is answered to establish infrared connection with it;
Step S107:According to remote control demand and store corresponding with the second infrared induction equipment brand and type information
Remote control coding information, generates telecommand and is sent to the second infrared induction equipment.
The method when embodiment mainly switches over remote control to multiple remote-controlled infrared induction equipment is illustrated,
When needing to switch the infrared induction equipment of remote control, the infrared company with the current infrared induction equipment being remotely controlled is first turned off
Connect, then establish infrared connection with infrared induction equipment to be remotely controlled again, and call the infrared induction equipment to be remotely controlled after switching
Remote control coding information, generation telecommand simultaneously be sent to infrared induction equipment be remotely controlled, ensure that switch be remotely-controlled it is red
Promptness, validity and security during outer sensing apparatus.
In one embodiment, as shown in figure 3, step S102 can be embodied as following steps S301-S303:
Step S301:Infrared connection request is sent to the first infrared induction equipment, and judges whether to receive first
The confirmation connectivity request message that infrared induction equipment returns;
Step S302:Confirmation connectivity request message according to receiving judges whether the first infrared induction equipment is more
It is a, and establish itself identification code and all first infrared induction equipment identification code;
Step S303:If the first infrared induction equipment is 1, directly red by infrared induction and described first
Outer sensing apparatus establishes infrared connection.
In the embodiment, primarily directed to the situation for there was only an infrared induction equipment in remote-controlled scope, need first
Judge whether there are multiple infrared induction equipment in remote-controlled scope, if it is judged that for 1, then directly with the infrared induction
Equipment carries out infrared connection, without carrying out other steps, simplifies when there was only an infrared induction equipment in remote-controlled scope
Remote control process, improves remote control efficiency.
In one embodiment, as shown in figure 4, the further comprising the steps of S304-S305 of step S102:
Step S304:If the first infrared induction equipment is multiple, remote control indication signal is sent, the remote control refers to
Show that signal includes the identification code of infrared induction equipment to be remotely controlled;
Step S305:The response message returned according to the corresponding infrared induction equipment of the identification code, with the infrared induction
Equipment establishes infrared connection.
In the embodiment, primarily directed to the situation for having multiple infrared induction equipment in remote-controlled scope, it is necessary first to
Judge whether there are multiple infrared induction equipment in remote-controlled scope, if it is judged that being multiple, then need to be remotely controlled by sending
The form of indication signal, the infrared induction equipment with needing to be remotely controlled establish infrared connection, which includes treating distant
The identification code of the infrared induction equipment of control, when the corresponding infrared induction equipment of the identification code receives remote control indication signal, meeting
Corresponding response message is returned to, remote controler end is established with corresponding infrared induction equipment according to response message and connected, ensure that
In the case of multiple infrared induction equipment are simultaneous, the accuracy of specific infrared induction equipment to be remotely controlled is selected.
In one embodiment, as shown in figure 5, step S103 is embodied as following steps S501-S504:
Step S501:If itself it is stored with corresponding distant with the first infrared induction equipment brand and type information
Coding information is controlled, then directly transfers the coding information;
Step S502:If itself do not store corresponding with the first infrared induction equipment brand and type information
Remote control coding information, then send decoding protocol solicited message, the decoding protocol request letter to the first infrared induction equipment
The request for the remote signal decoding protocol for obtaining the first infrared induction equipment is included in breath;
Step S503:Itself the remote signal decoding protocol returned according to the first infrared induction equipment, generation and institute
State the corresponding remote control coding information of remote signal decoding protocol;
Step S504:By the brand of the first infrared induction equipment and type information and corresponding remote control coding information
It is stored in local and is transferred.
In the embodiment, further restriction is carried out to the step of calling remote control coding information, when remote controler end is stored with
During corresponding remote control coding information, coding information can be directly transferred, the remote control time is saved, improves remote control efficiency;When distant
, it is necessary to obtain decoding protocol to infrared induction equipment to be remotely controlled when control device end does not store corresponding remote control coding information,
After obtaining decoding protocol, according to the decoding protocol, corresponding remote control coding information is generated, and by itself and the equipment product of itself
Board, type information are stored, and during so as to be remotely controlled to the infrared induction equipment next time, can directly be transferred remote control and being compiled
Code information generation telecommand, saves the working time, improves work efficiency.
A kind of remote control thereof provided corresponding to above-described embodiment, the embodiment of the present invention also provide a kind of remote controler, such as Fig. 6
It is shown, including:
Infrared detection module 61, for launching the infrared acquisition line of induction, judge be in itself infrared remote control induction range
It is no that there are the first remote-controlled infrared induction equipment;
First link block 62, it is for if there is the first remote-controlled infrared induction equipment, then infrared to described first
Sensing apparatus sends infrared connection request, and is established with it according to the response message that the first infrared induction equipment returns infrared
Connection;
Code verification module 63, for obtaining the brand and type information of the first infrared induction equipment, judges to be remotely controlled
Whether device itself is stored with and the first infrared induction equipment brand and the corresponding remote control coding information of type information;
First remote control module 64, for according to remote control demand and store with the first infrared induction equipment brand and type
Number corresponding remote control coding information of information, generation telecommand are simultaneously sent to the first infrared induction equipment.
Module 65 is cancelled in remote control, for when the controlled infrared induction equipment of switching, to the first infrared induction equipment
Send cancellation telecommand and disconnect infrared connection;
Second link block 66, for sending infrared connection request to the second infrared induction equipment to be controlled, according to described
The response message that second infrared induction equipment returns establishes infrared connection with it;
Second remote control module 67, for according to remote control demand and storage with the second infrared induction equipment brand and model letter
The corresponding remote control coding information of manner of breathing, generates telecommand and is sent to the second infrared induction equipment.
The technical solution of the embodiment of the present invention, before being remotely controlled to infrared induction equipment, first determines whether that infrared induction is set
For whether in itself remote-controlled induction range, when in itself remote-controlled scope, established with the infrared induction equipment
Infrared connection, and by obtaining the brand and type information of the infrared induction equipment, call itself store in above- mentioned information
Corresponding remote control coding information, and then generate telecommand, ensure that in remote control process, can in time, effectively, it is safe
Carry out the transmission of infrared connection and telecommand.
In one embodiment, as shown in fig. 7, first link block 62 specifically includes:
Connection request submodule 621, for sending infrared connection request to the first infrared induction equipment, and judgement is
The no confirmation connectivity request message for receiving the return of the first infrared induction equipment;
Equipment judging submodule 622, for judging the described first infrared sense according to the confirmation connectivity request message received
Answer whether equipment is multiple, and establish itself identification code and all first infrared induction equipment identification code;
Submodule 623 is directly connected to, if being 1 for the first infrared induction equipment, directly passes through infrared sense
Infrared connection should be established with the first infrared induction equipment.
Remote control instruction submodule 624, if being multiple for the first infrared induction equipment, sends remote control instruction letter
Number, the remote control indication signal includes the identification code of infrared induction equipment to be remotely controlled;
Response connection submodule 625, for the response message returned according to the corresponding infrared induction equipment of the identification code,
Infrared connection is established with the infrared induction equipment.
In one embodiment, as shown in figure 8, the code verification module 63 specifically includes:
Submodule 631 directly is transferred, if for itself being stored with and the first infrared induction equipment brand and model
The corresponding remote control coding information of information, then directly transfer the coding information;
Agreement request submodule 632, if do not stored and the first infrared induction equipment brand and type for itself
Number corresponding remote control coding information of information, then send decoding protocol solicited message to the first infrared induction equipment, described
The request for the remote signal decoding protocol for obtaining the first infrared induction equipment is included in decoding protocol solicited message;
Coding generation submodule 633, for itself remote signal decoding returned according to the first infrared induction equipment
Agreement, generation and the corresponding remote control coding information of the remote signal decoding protocol;
Submodule 634 is transferred in storage, for by the brand and type information and correspondence of the first infrared induction equipment
Remote control coding information be stored in local and transferred.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The shape for the computer program product that usable storage medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided
The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a square frame or multiple square frames.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these modification and variations.