CN103400494B - The learning method of infrared signal - Google Patents
The learning method of infrared signal Download PDFInfo
- Publication number
- CN103400494B CN103400494B CN201310312245.3A CN201310312245A CN103400494B CN 103400494 B CN103400494 B CN 103400494B CN 201310312245 A CN201310312245 A CN 201310312245A CN 103400494 B CN103400494 B CN 103400494B
- Authority
- CN
- China
- Prior art keywords
- infrared
- control code
- signal
- processor
- infrared ray
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Selective Calling Equipment (AREA)
Abstract
This application discloses the learning method of a kind of infrared signal: the 1st step, infrared transceiver module receives the infrared signal in environment, and the infrared signal after processor output receives;2nd step, obtains level state and the carrier frequency of infrared ray remotes control code by study processor infrared signal after receiving.Or it is: the 1st step that infrared transceiver module receives the infrared signal in environment, and exports the infrared signal after receiving to processor and carrier wave filtering module;2nd step, processor obtains carrier frequency by study the infrared signal after receiving;3rd step, the infrared signal after carrier wave filtering module will receive is converted to infrared ray remotes control code, and exports to processor;4th step, its level state of infrared ray remotes control code learning that processor is changed from carrier wave filtering module;The order of described method the 2nd step and the 3rd step can be exchanged.The application can obtain infrared ray remotes control code and carrier frequency simultaneously, is particularly well-suited to learning type infrared remote-controller.
Description
Technical field
The application relates to a kind of learning type infrared remote-controller learning method to infrared signal.
Background technology
IR remote controller (IR Remote Control) be utilize wavelength be the infrared signal between 0.76~1.5 μm come
Transmit the remote control equipment of control signal, Industry Control, being widely used of field of household appliances.Described infrared signal is by the signal of telecommunication
Convert, such as having, without representing the high and low level of the signal of telecommunication respectively with infrared light.And the described signal of telecommunication is infrared
Control code modulates the modulated signal formed on carrier wave.
Infrared ray remotes control code generally includes: guidance code, systematic code, numeric data code, systematic code complement code, numeric data code complement code, synchronization
Code etc..Wherein, systematic code and complement code, numeric data code and complement code thereof are generally used for representing telecommand.Refer to Fig. 1,
Telecommand is a string binary digit, and infrared ray remotes control code represents telecommand with the combination of high and low level.Such as NEC
Protocol format defines: in infrared ray remotes control code, persistent period is the high level of 0.5625ms and a persistent period is
The low level combination of 0.5625ms represents binary digit 0, and a persistent period is the high level and of 0.5625ms
The individual persistent period is that the low level combination of 1.6875ms represents binary digit 1.Carrier signal is square-wave signal.With arteries and veins
Reconstitute width (PAM) mode and telecontrol code is modulated formation modulated signal on carrier wave.Pulse amplitude modulation refers to: infrared control
High and low level in code processed represents with the carrier wave square-wave signal in modulated signal, low level respectively.
Once learn the following four feature of infrared signal: guidance code in infrared ray remotes control code and the level format of synchronous code,
Systematic code in infrared ray remotes control code and complement code thereof and numeric data code and complement code thereof represent binary digit 0 He with what level combinations
1, the systematic code in infrared ray remotes control code and complement code and numeric data code and complement code thereof actual level state, with known waveform
Signal is as the carrier frequency of carrier signal, it is possible to intactly grasp this infrared signal.
Learning type infrared remote-controller (Self-Learning IR Remote Control) can be used to simulate existing infrared
Remote controller.It is equivalent to key semifinished product, can carve the key of arbitrary shape.As long as existing IR remote controller is directed at
Learning type infrared remote-controller launches infrared signal, then learning type infrared remote-controller just can grasp (referred to as " of this infrared signal
Practise ") and there are all functions of former remote controller.
Learning type infrared remote-controller is divided into two classes: that fixed code form learns and the study of waveform copy mode.The former needs
Collect the infrared signal of a large amount of existing IR remote controller in advance, and preserve the form of each infrared signal.To a certain
When planting the infrared signal study of IR remote controller, from the infrared signal preserved, just find corresponding form be decoded.
Its shortcoming is can only to learn the infrared signal collected in advance.The latter need not collect the form of infrared signal in advance,
It, when to the infrared signal study of a certain IR remote controller, by infrared signal complete copy, judges its lattice the most voluntarily
Formula also preserves.Its advantage is to learn arbitrary IR remote controller, but requires higher to the disposal ability of hardware.
Existing infrared learning type remote controller, when with waveform copy mode study infrared signal, directly filters out load therein
Ripple, only learns infrared ray remotes control code, thus cannot learn carrier frequency.This results in infrared learning type remote controller and is launching institute
During the infrared signal learnt, in addition it is also necessary to increase frequency carrier wave accurately, and the infrared control that will be learnt by supplementary means
Code modulation forms modulated signal on carrier wave.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of IR remote controller learning method to infrared signal, the method
Belong to waveform copy mode, infrared ray remotes control code can be learnt, also can learn carrier frequency.
For solving above-mentioned technical problem, the learning method of the application infrared signal comprises the steps:
1st step, infrared transceiver module receives the infrared signal in environment, and the infrared signal after processor output receives;
2nd step, processor from receive after infrared signal by study obtain infrared ray remotes control code level state and
Carrier frequency.
The learning method of the application another kind infrared signal comprises the steps:
1st step, infrared transceiver module receives the infrared signal in environment, and connects to processor and the output of carrier wave filtering module
Infrared signal after receipts;
2nd step, processor obtains carrier frequency by study the infrared signal after receiving;
3rd step, the infrared signal after carrier wave filtering module will receive is converted to infrared ray remotes control code, and exports to processor;
4th step, its level state of infrared ray remotes control code learning that processor is changed from carrier wave filtering module;
The order of said method the 2nd step and the 3rd step can be exchanged.
The application gives the learning method of two kinds of different infrared signals, is respectively suitable for software mode after receiving
Infrared signal learning is to infrared ray remotes control code, swap out infrared ray remotes control code with hardware circuit infrared signal transfer after receiving
Situation.The application can obtain infrared ray remotes control code and two parameters of carrier frequency simultaneously, is particularly well-suited to learning-oriented infrared distant
Existing IR remote controller is learnt by control device.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that telecommand and the conversion of infrared ray remotes control code and infrared ray remotes control code modulate carrier signal;
Fig. 2 is the primary structure schematic diagram of a kind of study remote controller;
Fig. 3 is the flow chart of the first embodiment of the learning method of the application infrared signal;
Fig. 4 is the 1st step signal schematic representation of the first embodiment of the learning method of the application infrared signal;
Fig. 5 is the first implementation schematic diagram of the 2nd step of the first embodiment of the learning method of the application infrared signal;
Fig. 6 is the 2nd step the second implementation schematic diagram of the first embodiment of the learning method of the application infrared signal;
Fig. 7 is the primary structure schematic diagram of another kind of study remote controller;
Fig. 8 is the flow chart of the second embodiment of the learning method of the application infrared signal;
Fig. 9 is the first implementation schematic diagram of the 4th step of the second embodiment of the learning method of the application infrared signal;
Figure 10 is the 4th step the second implementation schematic diagram of the second embodiment of the learning method of the application infrared signal;
Figure 11 is the schematic diagram that the infrared ray remotes control code that learnt of the application and original infrared ray remotes control code exist nuance;
Figure 12 is the flow chart that the application infrared ray remotes control code to being learnt carries out shaping.
Description of reference numerals in figure:
10 is infrared transceiver module;20 is processor;30 is carrier wave filtering module.
Detailed description of the invention
Referring to Fig. 2, this is a kind of learning type infrared remote-controller, including:
Infrared transceiver module 10, receives the infrared signal in environment, and infrared after processor 20 output receives
Signal.
Processor 20, obtains level state and the carrier wave of infrared ray remotes control code by study the infrared signal after receiving
Frequency.
This study remote controller can be realized by intelligent electronic device (such as mobile phone).Infrared transceiver module 10 can be integrated
In intelligent electronic device, processor 20 then can be held a concurrent post by the CPU of intelligent electronic device.
Referring to Fig. 3, the learning method of infrared signal is comprised the steps: by above-mentioned learning type infrared remote-controller
1st step, infrared transceiver module 10 receives the infrared signal Outside Carry Pulse In in environment, and to
Infrared signal (also referred to as carrier frequency reading signal) Carry Pulse In after processor 20 output reception.
Referring to Fig. 4, described infrared transceiver module 10 passes for example with the TSMP77000 infrared receiver of Vishay company
Sensor.When infrared signal (i.e. infrared signal in environment is always low level) being not detected by environment, it begins
Output high level eventually.When in the infrared signal after the infrared signal detected in environment, the reception of its output with environment
Infrared signal is anti-phase.Therefore, the output (infrared signal after reception) of the infrared transceiver module 10 of this model and input
(infrared signal in environment) is generally speaking anti-phase.If using the infrared transceiver module 10 of other models, then connect
Infrared signal after receipts is likely to homophase as a complete unit with the infrared signal in environment.
2nd step, processor 20 obtains infrared control by study the infrared signal Carry Pulse In after receiving
The level state (need to first be adjusted to and original infrared ray remotes control code same phase) of code and carrier frequency.
Referring to Fig. 5, this is the first implementation of said method the 2nd step, with the infrared signal after receiving and environment
In infrared signal anti-phase as a example by.Start when first trailing edge of the infrared signal after processor 20 detects reception
Intervalometer timing, until the rising edge of next-door neighbour just stops timing, and recording gauge duration t1.Processor 20 is stopping timing
While reset intervalometer immediately and start again at timing, until next-door neighbour trailing edge just stop timing, and recording gauge duration
t2.By that analogy, processor 20 records t3, t4 ....Until processor 20 reaches after n-th starts timing
Still it is not detected by the trailing edge of next-door neighbour after upper limit time S, t (n) >=S i.e. occurs, then shows in the infrared signal after receiving
Carrier wave square-wave signal be over, this represents that the high level of corresponding infrared ray remotes control code is over.Described intervalometer can
To be the intervalometer within processor 20, or the intervalometer of peripheral hardware.For the carrier signal of infrared remote control, its frequency
Rate is within the specific limits.The dutycycle assuming carrier wave square-wave signal is R, and the minimum of carrier frequency is X, and peak is Y,
Then the value of upper limit time S is S > (1-R)/X.The value of generally R between 10%~50%, therefore upper limit time S
Value for example, 1/X.
Processor 20 is added to t (n-1) from t1 and the most additionally adds a t (n-2) as the load the infrared signal after receiving
The total time T1 of ripple square-wave signal, a high level (being modulated by carrier wave square-wave signal) of the infrared ray remotes control code that this expression is real
Total time.Processor 20 also clocking value t (n) is deducted t (n-2) as receive after infrared signal in low level
Total time T2, the total time of a low level (modulation of carrierfree square-wave signal) of the infrared ray remotes control code that this expression is real.
T (n-2) represents to fall the high level part at interval for t (n) carrier wave square-wave signal, it is possible to by t2, t4 ... or
Its meansigma methods replaces.Processor 20 by record real infrared ray remotes control code high and low level order and the persistent period,
I.e. learn the level state of infrared ray remotes control code.
T1+t2=t3+t4=in theory ..., here it is the cycle of carrier wave square-wave signal, therefore its inverse is exactly carrier wave square wave
Frequency f=1/ (t1+t2)=1/ (t3+t4) of signal=....But under practical circumstances, t1+t2 Yu t3+t4 may be
Roughly equal and there is nuance.Now calculate multiple carrier frequency to average, i.e. carrier frequency f=(n-2)/2
×{(t1+t2)+…+[t(n-3)+t(n-2)]}.N herein must be even number.
Referring to Fig. 6, this is the second implementation of said method the 2nd step, still with the infrared signal after receiving and ring
As a example by infrared signal in border is anti-phase.Open when first trailing edge of the infrared signal after processor 20 detects reception
Dynamic first timer timing.Second is started when first rising edge of the infrared signal after processor 20 detects reception
Intervalometer timing, until the trailing edge of next-door neighbour just stops the timing of second timer, and recording gauge duration t2.With post processing
Device 20 resets second timer, and is again started up second timer timing when next rising edge being detected, until tightly
Adjacent trailing edge just stops timing, and recording gauge duration t4.By that analogy, processor 20 records t6, t8 ....
Until processor 20 is when making second timer t (n) timing, reaches upper limit time S but still be not detected by under next-door neighbour
Fall edge, i.e. t (n) >=S, then show that the square-wave signal of the infrared signal after receiving is over, this represents the infrared of correspondence
The high level of control code is over.Infrared signal after the reception of the halt position of second timer t (n) timing
Trailing edge, processor 20 makes first timer stop timing, first timer recording gauge duration T simultaneously.Two intervalometers
Can be the intervalometer within processor 20, or the intervalometer of peripheral hardware.For the carrier signal of infrared remote control, its
Frequency is within the specific limits.The dutycycle assuming carrier wave square-wave signal is R, and the minimum of carrier frequency is X, peak
For Y, then the value of upper limit time S is S > (1-R)/X.Generally the value of R is between 10%~50%, therefore during the upper limit
Between the value for example, 1/X of S.
Processor 20 using T-t (n)+t (n-2) as the infrared signal after receiving in total time of carrier wave square-wave signal, this
Represent the total time T1 of a high level (being modulated by carrier wave square-wave signal) of real infrared ray remotes control code.Processor 20
Also using t (n)-t (n-2) as the low level total time in the infrared signal after reception, the infrared control that this expression is real
The total time of one low level (modulation of carrierfree square-wave signal) of code.T (n-2) represents to fall in the load that t (n) is interval
The high level part of ripple square-wave signal, it is possible to replaced by t2, t4 ... or its meansigma methods.Processor 20 passes through record
The high and low level order of real infrared ray remotes control code and persistent period, i.e. learn the level state of infrared ray remotes control code.
Total time T1 of the carrier wave square-wave signal in infrared signal after the receipt contains n carrier wave square-wave signal,
The cycle of the most each square-wave signal is T1/n, and inverted to it is exactly frequency f=n/T1 of carrier wave square-wave signal.
Two kinds of implementations of said method the 2nd step shown in Fig. 5, Fig. 6, are all with the infrared signal after receiving and ring
As a example by infrared signal in border is anti-phase, the infrared ray remotes control code therefore identified according to the infrared signal after receiving also to pass through
Real infrared ray remotes control code it is only after anti-phase.If the infrared signal after Jie Shouing and the infrared signal homophase in environment, it is clear that
Principle is common, it is only necessary to by rising edge and the decline of the infrared signal after the reception at the beginning and end of various timing
Along exchanging.Now, according to after receiving infrared signal identified is exactly real infrared ray remotes control code.
The first embodiment of the learning method of the infrared signal shown in Fig. 3 completely by processor 20 in the way of pure software from
The level state of the infrared signal learning infrared ray remotes control code after reception and carrier frequency, this computing energy to processor 20
Power proposes high requirement.Infrared signal after receiving is longer, such as, during 500ms, processor 20 needs persistently to supervise
Control rising edge therein and trailing edge to start or stop timer.Processor 20 generally to process the multi-task simultaneously,
Monitoring process, system clock to be responded etc., the so easily study to infrared signal may be interrupted in 500ms
Interfere, bring heavier burden to processor 20 simultaneously.
In order to alleviate the burden of processor 20, it is possible to use another kind of learning type infrared remote-controller, as shown in Figure 7.Its
Including:
Infrared transceiver module 10, receives the infrared signal in environment, and to processor 20 and carrier wave filtering module 30
Infrared signal after output reception.
Processor 20, obtains carrier frequency by study, also from infrared ray remotes control code the infrared signal after receiving
Learn its level state.
Carrier wave filtering module 30, the infrared signal after receiving is converted to infrared ray remotes control code, and exports to processor
20。
Application No. 201320389091.3, the Chinese utility model patent application in filing date on July 2nd, 2013 are just
Disclosing the learning type infrared remote-controller shown in Fig. 7, infrared receiving/transmission circuit therein is equivalent to the infrared receiving/transmission in the application
Module 10, carrier smoothing circuit therein is equivalent to the carrier wave filtering module in the application with the summation of signal recognition circuit
30。
This study remote controller also can be realized by intelligent electronic device (such as mobile phone).Infrared transceiver module 10, carrier wave
Filtering module 30 can be integrated in intelligent electronic device, and processor 20 can be served as by the CPU of intelligent electronic device.
Referring to Fig. 8, the learning method of infrared signal is comprised the steps: by above-mentioned learning type infrared remote-controller
1st step, infrared transceiver module 10 receives the infrared signal Outside Carry Pulse In in environment, and to
Infrared signal (also referred to as carrier frequency reading signal) Carry after processor 20 and carrier wave filtering module 30 output reception
Pulse In。
Referring to Fig. 4, described infrared transceiver module 10 passes for example with the TSMP77000 infrared receiver of Vishay company
Sensor.When infrared signal (i.e. infrared signal in environment is always low level) being not detected by environment, it begins
Output high level eventually.When in the infrared signal after the infrared signal detected in environment, the reception of its output with environment
Infrared signal is anti-phase.Therefore, the output (infrared signal after reception) of the infrared transceiver module 10 of this model and input
(infrared signal in environment) is generally speaking anti-phase.If using the infrared transceiver module 10 of other models, then connect
Infrared signal after receipts is likely to homophase as a complete unit with the infrared signal in environment.
2nd step, processor 20 obtains carrier frequency by study the infrared signal Carry Pulse In after receiving.
Refer to Fig. 5, as a example by still the infrared signal after receiving is anti-phase with the infrared signal in environment.When processor 20
Intervalometer timing is started, until the rising edge of next-door neighbour just stops when first trailing edge of the infrared signal after reception being detected
Timing, and recording gauge duration t1.Processor 20 resets intervalometer immediately and starts again at timing while stopping timing,
Until the trailing edge of next-door neighbour just stops timing, and recording gauge duration t2.When t1, t2 are respectively less than upper limit time S, t1+t2
Being exactly the cycle of carrier wave square-wave signal, therefore its inverse is exactly frequency f=1/ (t1+t2) of carrier wave square-wave signal.For guaranteeing
Accurately, it is also possible to the same manner carries out repeatedly timing, and obtains carrier frequency in the way of averaging.
3rd step, the infrared signal after carrier wave filtering module 30 will receive is converted to infrared ray remotes control code, and exports to processing
Device 20.
Application No. 201320389091.3, the Chinese utility model patent application in filing date on July 2nd, 2013
Fig. 1 discloses a kind of carrier wave filtering module 30 realized with hardware circuit, and carrier frequency can be read signal and (i.e. connect by it
Infrared signal after receipts) Carry Pulse In is converted to characterize Pulse In signal with presence or absence of infrared remote-controlled signal (i.e.
Infrared ray remotes control code after conversion) output.Infrared ray remotes control code after this conversion with real infrared ray remotes control code is as a complete unit
Anti-phase.
The order of said method the 2nd step and the 3rd step can be exchanged.
4th step, infrared ray remotes control code that processor 20 is changed from carrier wave filtering module 30 (need to first be adjusted to red with original
Outer control code same phase, referred to as learns the infrared ray remotes control code arrived) its level state of learning.
Referring to Fig. 9, this is the first implementation of said method the 4th step, with the infrared ray remotes control code after conversion with true
As a example by positive infrared ray remotes control code is anti-phase.When first trailing edge of the infrared ray remotes control code after processor 20 detects conversion
Start intervalometer timing, until the rising edge of next-door neighbour just stops timing, and recording gauge duration T1.Processor 20 is stopping
Reset intervalometer while timing immediately and start again at timing, until the trailing edge of next-door neighbour just stops timing, and recording gauge
Duration T2.By that analogy, processor 20 records T3, T4 ....Described intervalometer can be that processor 20 is internal
Intervalometer, or the intervalometer of peripheral hardware.T1, T3 ... are exactly each high level of real infrared ray remotes control code
Time, T2, T4 ... are exactly each low level time of real infrared ray remotes control code.Processor 20 passes through record
The high and low level order of real infrared ray remotes control code and persistent period, i.e. learn the level state of infrared ray remotes control code.
Referring to Figure 10, this is the second implementation of said method the 4th step, still with conversion after infrared ray remotes control code with
As a example by real infrared ray remotes control code is anti-phase.First trailing edge of the infrared ray remotes control code after processor 20 detects conversion
Shi Qidong intervalometer timing, does not stop timing subsequently when processor 20 detects rising edge or trailing edge, but all remembers
Record clocking value T1 at that time, T2 ....Processor 20 is by adjacent two clocking value T (k-1), the latters of T (k)
T (k) deducts the persistent period of each the high and low level i.e. obtaining real infrared ray remotes control code by the former T (k-1).Processor
20, by recording high and low level order and the persistent period of real infrared ray remotes control code, have i.e. learnt the electricity of infrared ray remotes control code
Level state.
Two kinds of implementations of said method the 4th step shown in Fig. 9, Figure 10, be all with conversion after infrared ray remotes control code with
As a example by real infrared ray remotes control code is anti-phase.If using other kinds of carrier wave filtering module 30, then the infrared control after conversion
Code processed and real infrared ray remotes control code are likely to homophase, and it is common for now learning the obvious principle of its level state, it is only necessary to
The rising edge of the infrared ray remotes control code after the conversion at the beginning and end of various timing and trailing edge are exchanged.
Second embodiment of the learning method of the infrared signal shown in Fig. 8 is owing to adding carrier wave filtering module 30, thus makes
Obtain cost to increase, design complexity.But newly-increased carrier wave filtering module 30 is achieved by hardware circuit will red after reception
External signal is converted to the work of infrared ray remotes control code, and this makes processor 20 have only to the infrared signal learning after receiving
Carrier frequency, thus significantly reduce the burden of processor 20, thus the requirement to its computing capability reduces.
Fig. 3 and Fig. 8 gives two embodiments of the learning method of the application infrared signal, and it is through software processes or hard
Between infrared ray remotes control code that part circuit is learnt (in addition to anti-phase, homophase problem) and original infrared ray remotes control code not
Can there is nuance with avoiding, as shown in figure 11.This is the error due to infrared signal transmission circuit, infrared letter
Number propagate the interference that runs in the environment, interference etc. that infrared signal introduces in receiving sensor causes.To this end, this
In 2nd step of the first embodiment of the learning method of application infrared signal, in the 4th step of the second embodiment, preferably it is located in
Reason device 20 first to being learnt (or conversion) to infrared ray remotes control code carry out shaping, then learn its level state.
By analyzing the form of the infrared ray remotes control code of a large amount of existing IR remote controllers, it is found by the applicant that different-format is infrared
Width difference between the high level of control code, between low level is all more than 50%, and therefore the application is high level, low
Level is respectively provided with a tolerance coefficient, and preferred span is 5%~20%.When the same infrared ray remotes control code that study is arrived
In different high level, different low level width difference in described tolerance coefficient range, then by its regular for high level,
Low level normal width, described normal width is by the width difference multiple high level in described tolerance coefficient range, low
Level is averaged and is obtained.
Refer to Figure 12, above-mentioned to study to infrared ray remotes control code carry out the method for shaping and be:
1st step, processor 20 reads width and the low electricity of next-door neighbour of first high level of the infrared ray remotes control code that study is arrived
Flat width, and it is recorded as the first signal kinds;
2nd step, subsequently, processor 20 be successively read the next high level of infrared ray remotes control code that study is arrived width and
The low level width of next-door neighbour;
When this high level width and the width of the high level of any signal kinds recorded difference within the specific limits,
And after this level the difference of the low level width of low level width and this same signal kinds of next-door neighbour also necessarily
In the range of, then the low level of this high level Yu next-door neighbour is classified as this signal kinds;Simultaneously by the high level of this signal kinds
Value, low level value change the high level of all signals in this signal kinds, low level meansigma methods respectively into;Described meansigma methods
Including arithmetical average, weighted arithmetic mean etc..
Otherwise, the low level of this high level Yu next-door neighbour is recorded as new signal kinds;
3rd step, repeats the 2nd step until reading last level of the infrared ray remotes control code that study is arrived.
Guidance code, systematic code and the benefit thereof that all signal kinds obtained by said method then correspond in infrared ray remotes control code
Code and numeric data code and the 0 of complement code, 1, synchronous code etc..
4th step, processor by study to infrared ray remotes control code in each signal (low electricity of high level and next-door neighbour
Flat combination) all substitute with the combination of low level value with the high value of a signal kinds recorded, learn the most at last
The infrared ray remotes control code practised carries out Regularization.
By analyzing the infrared signal (modulated signal) of a large amount of existing IR remote controllers, applicant further found that many infrared
Signal can repeat to send the infrared ray remotes control code representing same telecommand, and this is typically correspondingly infrared remote control agreement and is advised
Fixed.In order to reduce the amount of storage of study remote controller, preferably the infrared ray remotes control code learnt can be carried out duplicate removal,
Learn its level state the most again and preserve in memory.Described duplicate removal can use existing KMP matching algorithm etc..
These are only the preferred embodiment of the application, be not used to limit the application.For a person skilled in the art,
The application can have various modifications and variations.All within spirit herein and principle, any amendment of being made, equivalent
Replacement, improvement etc., within should be included in the protection domain of the application.
Claims (7)
1. a learning method for infrared signal, is characterized in that, comprises the steps:
1st step, infrared transceiver module receives the infrared signal in environment, and the infrared signal after processor output receives;
2nd step, processor from receive after infrared signal by study obtain infrared ray remotes control code level state and
Carrier frequency;
The level state of described method the 2nd step learning infrared ray remotes control code and the carrier frequency following means of employing:
When infrared signal after the receipt is anti-phase with the infrared signal in environment, the infrared letter after processor detects reception
Number first trailing edge time start intervalometer timing, until next-door neighbour rising edge just stop timing, and recording gauge duration t1;
Processor resets intervalometer immediately and starts again at timing while stopping timing, until the trailing edge of next-door neighbour just stops meter
Time, and recording gauge duration t2;By that analogy, processor record t3, t4 ...;Until occur t (n) more than or etc.
In upper limit time S, then show that the high level of learnt infrared ray remotes control code is over;
Infrared signal after the receipt and the same phase time of infrared signal in environment, the rising that will start as intervalometer, stop
Edge, trailing edge are exchanged mutually;
Processor is added to t (n-1) from t1, and the most additionally to add t (n-2) high as of the infrared ray remotes control code learnt
The total time of level;It is low as of the infrared ray remotes control code learnt that clocking value t (n) is also deducted t (n-2) by processor
The total time of level;Or, t (n-2) is replaced by t2, t4 ... or its meansigma methods;
Carrier frequency f=1/ (t1+t2)=1/ (t3+t4)=...;
Or, carrier frequency f=(n-2)/2 × (t1+t2)+...+[t (n-3)+t (n-2)] };
Or, the level state of described method the 2nd step learning infrared ray remotes control code and the carrier frequency following means of employing:
When infrared signal after the receipt is anti-phase with the infrared signal in environment, the infrared letter after processor detects reception
Number first trailing edge time start first timer timing;First of infrared signal after processor detects reception
Second timer timing is started, until the trailing edge of next-door neighbour just stops the timing of second timer, and recording gauge during rising edge
Duration t2;Reset second timer with preprocessor, and be again started up second timer when next rising edge being detected
Timing, until the trailing edge of next-door neighbour just stops timing, and recording gauge duration t4;By that analogy, processor record t6,
t8、……;Until t (n) occurring more than or equal to upper limit time S, then show the high level of learnt infrared ray remotes control code
It is over;At the trailing edge of second timer t (n) timing halt, processor makes first timer stop timing simultaneously,
First timer recording gauge duration T;
Infrared signal after the receipt and the same phase time of infrared signal in environment, the rising that will start as intervalometer, stop
Edge, trailing edge are exchanged mutually;
Processor is using T-t (n)+t (n-2) as the total time T1 of a high level of the infrared ray remotes control code learnt;Process
Device also using t (n)-t (n-2) as low level total time of the infrared ray remotes control code learnt;Or, t (n-2) by
T2, t4 ... or its meansigma methods replace;
Carrier frequency f=n/T1.
The learning method of infrared signal the most according to claim 1, is characterized in that, when accounting for of carrier wave square-wave signal
Empty ratio is R, and when the minimum of carrier frequency span is X, peak is Y, the value of upper limit time S is
S>(1-R)/X。
The learning method of infrared signal the most according to claim 2, is characterized in that, in described method the 2nd step, and place
Reason device by study to infrared ray remotes control code be adjusted to original infrared ray remotes control code same phase after, it is first carried out whole by processor
Shape, then learn its level state;
Described to study to infrared ray remotes control code carry out the method for shaping and be:
The first step, processor reads the width of first high level of the infrared ray remotes control code that study is arrived and the low level of next-door neighbour
Width, and it is recorded as the first signal kinds;
Second step, subsequently, processor is successively read width and the next-door neighbour of the next high level of the infrared ray remotes control code that study is arrived
Low level width;
When this high level width and the width of the high level of any signal kinds recorded difference within the specific limits,
And after this level the difference of the low level width of low level width and this same signal kinds of next-door neighbour also necessarily
In the range of, then the low level of this high level Yu next-door neighbour is classified as this signal kinds;Simultaneously by the high level of this signal kinds
Value, low level value change the high level of all signals in this signal kinds, low level meansigma methods respectively into;
Otherwise, the low level of this high level Yu next-door neighbour is recorded as new signal kinds;
3rd step, repeats second step until reading last level of the infrared ray remotes control code that study is arrived;
4th step, processor by study to infrared ray remotes control code in each signal with the signal kinds recorded
The combination of high value and low level value substitute.
4. a learning method for infrared signal, is characterized in that, comprises the steps:
1st step, infrared transceiver module receives the infrared signal in environment, and connects to processor and the output of carrier wave filtering module
Infrared signal after receipts;
2nd step, processor obtains carrier frequency by study the infrared signal after receiving;
3rd step, the infrared signal after carrier wave filtering module will receive is converted to infrared ray remotes control code, and exports to processor;
4th step, its level state of infrared ray remotes control code learning that processor is changed from carrier wave filtering module;
Or, the order of described method the 2nd step and the 3rd step is exchanged;
In described method the 4th step, the infrared ray remotes control code after conversion is adjusted to and original infrared ray remotes control code homophase by processor
After Wei, referred to as learn the infrared ray remotes control code arrived;Processor first carries out shaping to it, then learns its level state;
Described to study to infrared ray remotes control code carry out the method for shaping and be:
The first step, processor reads the width of first high level of the infrared ray remotes control code that study is arrived and the low level of next-door neighbour
Width, and it is recorded as the first signal kinds;
Second step, subsequently, processor is successively read width and the next-door neighbour of the next high level of the infrared ray remotes control code that study is arrived
Low level width;
When this high level width and the width of the high level of any signal kinds recorded difference within the specific limits,
And after this level the difference of the low level width of low level width and this same signal kinds of next-door neighbour also necessarily
In the range of, then the low level of this high level Yu next-door neighbour is classified as this signal kinds;Simultaneously by the high level of this signal kinds
Value, low level value change the high level of all signals in this signal kinds, low level meansigma methods respectively into;
Otherwise, the low level of this high level Yu next-door neighbour is recorded as new signal kinds;
3rd step, repeats second step until reading last level of the infrared ray remotes control code that study is arrived;
4th step, processor by study to infrared ray remotes control code in each signal with the signal kinds recorded
The combination of high value and low level value substitute.
The learning method of infrared signal the most according to claim 4, is characterized in that, described method the 2nd step middle school
The habit carrier frequency following means of employing:
When infrared signal after the receipt is anti-phase with the infrared signal in environment, the infrared letter after processor detects reception
Number first trailing edge time start intervalometer timing, until next-door neighbour rising edge just stop timing, and recording gauge duration t1;
Processor resets intervalometer immediately and starts again at timing while stopping timing, until the trailing edge of next-door neighbour just stops meter
Time, and recording gauge duration t2;When t1, t2 are respectively less than upper limit time S, carrier frequency f=1/ (t1+t2);Or,
Carry out repeatedly timing in the same fashion, and in the way of averaging, obtain carrier frequency;
Infrared signal after the receipt and the same phase time of infrared signal in environment, the rising that will start as intervalometer, stop
Edge, trailing edge are exchanged mutually.
The learning method of infrared signal the most according to claim 4, is characterized in that, described method the 4th step middle school
The level state following means of employing of habit infrared ray remotes control code:
When infrared ray remotes control code after conversion and real infrared ray remotes control code are anti-phase, infrared after processor detects conversion
Intervalometer timing is started, until the rising edge of next-door neighbour just stops timing, and during recording gauge during first trailing edge of control code
Value T1;Processor resets intervalometer immediately and starts again at timing while stopping timing, until the trailing edge of next-door neighbour is
Stop timing, and recording gauge duration T2;By that analogy, processor record T3, T4 ...;
The time of each high level of the infrared ray remotes control code that T1, T3 ... are learnt exactly;
The each low level time of the infrared ray remotes control code that T2, T4 ... are learnt exactly;
Infrared signal after the receipt and the same phase time of infrared signal in environment, the rising that will start as intervalometer, stop
Edge, trailing edge are exchanged mutually.
The learning method of infrared signal the most according to claim 4, is characterized in that, described method the 4th step middle school
The level state following means of employing of habit infrared ray remotes control code:
When infrared ray remotes control code after conversion and real infrared ray remotes control code are anti-phase, infrared after processor detects conversion
Intervalometer timing is started, subsequently when processor detects rising edge or trailing edge not during first trailing edge of control code
Stop timing, but all record clocking value T1 at that time, T2 ...;Processor by two adjacent clocking value T (k-1),
Latter T (k) of T (k) deducts each the high and low level i.e. obtaining learnt infrared ray remotes control code by the former T (k-1)
Persistent period;
Infrared signal after the receipt and the same phase time of infrared signal in environment, the rising that will start as intervalometer, stop
Edge, trailing edge are exchanged mutually.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310312245.3A CN103400494B (en) | 2013-07-23 | 2013-07-23 | The learning method of infrared signal |
US14/902,440 US10043383B2 (en) | 2013-07-02 | 2014-06-30 | Infrared emission and reception circuit and method of implementing the same |
PCT/CN2014/081143 WO2015000391A1 (en) | 2013-07-02 | 2014-06-30 | Infrared transmitting and receiving circuit and implementation method thereof |
PCT/CN2014/081378 WO2015000399A1 (en) | 2013-07-02 | 2014-07-01 | Learning method for infrared signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310312245.3A CN103400494B (en) | 2013-07-23 | 2013-07-23 | The learning method of infrared signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103400494A CN103400494A (en) | 2013-11-20 |
CN103400494B true CN103400494B (en) | 2016-12-28 |
Family
ID=49564103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310312245.3A Active CN103400494B (en) | 2013-07-02 | 2013-07-23 | The learning method of infrared signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103400494B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10043383B2 (en) * | 2013-07-02 | 2018-08-07 | Tianjia (Shanghai) Info Tech Co., Ltd. | Infrared emission and reception circuit and method of implementing the same |
CN104299402B (en) * | 2014-08-15 | 2017-05-24 | 恬家(上海)信息科技有限公司 | Infrared learning method using AD mode |
CN105894792A (en) * | 2014-12-02 | 2016-08-24 | 无锡比益特科技有限公司 | Studying and encoding method for efficient infrared remote control |
CN104574931A (en) * | 2015-01-04 | 2015-04-29 | 中兴通讯股份有限公司 | Infrared remote control circuit, method and terminal |
CN104751622A (en) * | 2015-03-24 | 2015-07-01 | 深圳市探索果科技有限公司 | Remote controller for transmitting data based on mobile phone flash lamp and method of remote controller |
CN104835310A (en) * | 2015-04-29 | 2015-08-12 | 广东欧珀移动通信有限公司 | Infrared remote control system, infrared remote control terminal, and infrared remote control signal receiving terminal |
CN104992553B (en) * | 2015-07-29 | 2018-05-01 | 上海斐讯数据通信技术有限公司 | The duplication learning method and system of a kind of household electrical appliances infrared remote control waveform |
CN105118283A (en) * | 2015-09-21 | 2015-12-02 | 万科思自控信息(中国)有限公司 | Infrared signal collection and conversion control method and device |
CN106408924B (en) * | 2016-09-27 | 2019-07-26 | 恬家(上海)信息科技有限公司 | Infrared realization device and its implementation in a kind of electronic equipment |
CN107564266B (en) * | 2017-08-25 | 2021-05-14 | 广东美的制冷设备有限公司 | Remote controller code learning method and remote controller learning device |
CN110164117A (en) * | 2019-05-24 | 2019-08-23 | 珠海多士科技有限公司 | A kind of IR remote controller signal compression storage method |
CN110223499A (en) * | 2019-06-18 | 2019-09-10 | 广州中安电工高新科技股份有限公司 | A kind of infrared decoding method and device |
CN111240815B (en) * | 2020-01-03 | 2023-09-26 | 杭州涂鸦信息技术有限公司 | Infrared signal modulation method and system based on linux |
CN114495477A (en) * | 2020-11-11 | 2022-05-13 | 西安诺瓦星云科技股份有限公司 | Infrared learning method, device and system and computer readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609604A (en) * | 2008-06-17 | 2009-12-23 | 上海创见电子有限公司 | The control method of infrared learning |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201023655A (en) * | 2008-12-04 | 2010-06-16 | Advanpower Internat Ltd | Intelligent home appliance control system |
-
2013
- 2013-07-23 CN CN201310312245.3A patent/CN103400494B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609604A (en) * | 2008-06-17 | 2009-12-23 | 上海创见电子有限公司 | The control method of infrared learning |
Also Published As
Publication number | Publication date |
---|---|
CN103400494A (en) | 2013-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103400494B (en) | The learning method of infrared signal | |
CN111712835B (en) | Channel modeling in a data transmission system | |
US8831145B2 (en) | Hart transmitter/receiver systems | |
CN103744411A (en) | Control method related to ZigBee technology for realizing smart home | |
CN105229964B (en) | Signal processing apparatus | |
CN104332045A (en) | Intelligent infrared remote controlsystem based on wireless network and method | |
CN104299402B (en) | Infrared learning method using AD mode | |
Feng et al. | Sequential fusion filtering for multi‐rate multi‐sensor time‐varying systems–a Krein‐space approach | |
EP2140552B1 (en) | Method and apparatus for analog-to-digital conversion using asynchronous sigma-delta modulation | |
CN102014216B (en) | Method and device for detecting transmission delay of channels of public switched telephone network | |
CN205210868U (en) | Many task assignment based on multinuclear CPU | |
CN103888331A (en) | General high speed bus device for distribution terminal and data interaction method | |
US10897384B2 (en) | HART FSK digital demodulator | |
WO2015000399A1 (en) | Learning method for infrared signal | |
CN105959095B (en) | The synchronous method of driving and response system in a kind of chaos-based secure communication | |
CN201965746U (en) | Remote control encoding circuit based on FPGA (Field Programmable Gate Array) | |
CN102916681B (en) | Pulse width-adjustable NRZ/ RZ (Non-return-to-zero/return-to-zero) code converting device | |
CN101795137A (en) | Method for adjusting wave form of Manchester code | |
CN105527918B (en) | A kind of method that one way single-wire communication between two PLC is realized by I/O ports | |
CN209591070U (en) | A kind of temperature data transmitting device | |
CN103825324A (en) | Battery module group numbering system and method | |
CN102254418A (en) | Method for learning infrared code | |
CN204595845U (en) | A kind of one-way communication control device based on dual-wire bus | |
RU2785898C1 (en) | Automated device for control of the mutual influence of signals | |
CN108768909A (en) | A kind of 2FSK symbol timing synchronization methods and system based on minimum variance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |