CN103400494A - Learning method for infrared signals - Google Patents

Learning method for infrared signals Download PDF

Info

Publication number
CN103400494A
CN103400494A CN2013103122453A CN201310312245A CN103400494A CN 103400494 A CN103400494 A CN 103400494A CN 2013103122453 A CN2013103122453 A CN 2013103122453A CN 201310312245 A CN201310312245 A CN 201310312245A CN 103400494 A CN103400494 A CN 103400494A
Authority
CN
China
Prior art keywords
infrared
control code
processor
signal
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.)
Granted
Application number
CN2013103122453A
Other languages
Chinese (zh)
Other versions
CN103400494B (en
Inventor
张宇科
吴曙斌
王剑峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tian Jia (shanghai) Mdt Infotech Ltd
Original Assignee
Tian Jia (shanghai) Mdt Infotech Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tian Jia (shanghai) Mdt Infotech Ltd filed Critical Tian Jia (shanghai) Mdt Infotech Ltd
Priority to CN201310312245.3A priority Critical patent/CN103400494B/en
Publication of CN103400494A publication Critical patent/CN103400494A/en
Priority to US14/902,440 priority patent/US10043383B2/en
Priority to PCT/CN2014/081143 priority patent/WO2015000391A1/en
Priority to PCT/CN2014/081378 priority patent/WO2015000399A1/en
Application granted granted Critical
Publication of CN103400494B publication Critical patent/CN103400494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a learning method for infrared signals. The learning method comprises the following steps of: step 1, receiving the infrared signals in an environment by an infrared receiving/transmitting module and outputting the received infrared signals to a processor; step 2, learning the received infrared signals by the processor to obtain a level state and a carrier frequency of an infrared control code; or the learning method comprises the following steps of: step 1, receiving the infrared signals in the environment by the infrared receiving/transmitting module and outputting the received infrared signals to the processor and a carrier filtering module; step 2, learning the received infrared signals by the processor to obtain the learned carrier frequency; step 3, converting the received infrared signals into an infrared control code by the carrier filtering module and outputting the infrared control code to the processor; and step 4, learning the level state of the infrared control code from the infrared control code converted by the carrier filtering module through the processor, wherein the sequences of the step 2 and the step 3 can be mutually exchanged. According to the learning method disclosed by the invention, the infrared control code and the carrier frequency can be obtained at the same time, so that the learning method is particularly suitable for a learning type infrared remote controller.

Description

The learning method of infrared signal
Technical field
The application relates to the learning method of a kind of learning type infrared remote-controller to infrared signal.
Background technology
Infrared remote controller (IR Remote Control) is that to utilize wavelength be the remote control equipment that infrared signal between 0.76~1.5 μ m is carried out the transfer control signal, being widely used of Industry Control, field of household appliances.Described infrared signal is converted by electric signal, for example with the having of infrared light, without representing respectively the high and low level of electric signal.And being infrared ray remotes control code, described electric signal is modulated to formed modulation signal on carrier wave.
Infrared ray remotes control code generally includes: preamble code, systematic code, numeric data code, systematic code complement code, numeric data code complement code, synchronous code etc.Wherein, systematic code and complement code thereof, numeric data code and complement code thereof are generally used for representing telecommand.See also Fig. 1, telecommand is a string binary digit, and infrared ray remotes control code represents telecommand with the combination of high and low level.For example NEC protocol format definition: the low level combination that the high level that in infrared ray remotes control code, duration is 0.5625ms and duration are 0.5625ms represents that the low level combination that high level that binary digit 0, one duration is 0.5625ms and duration are 1.6875ms represents binary digit 1.Carrier signal is square-wave signal.In pulse amplitude modulation (PAM) mode, telecontrol code is modulated on carrier wave and forms modulation signal.Pulse amplitude modulation refers to: the high and low level in infrared ray remotes control code represents with carrier wave square-wave signal, low level in modulation signal respectively.
In case learn following four features of infrared signal: the systematic code in the preamble code in infrared ray remotes control code and the level format of synchronous code, infrared ray remotes control code and complement code thereof and numeric data code and complement code thereof with the combination of what level represent systematic code in binary digit 0 and 1, infrared ray remotes control code and complement code and numeric data code and complement code thereof the actual level state, use the signal of known waveform as the carrier frequency of carrier signal, just can 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 the key semifinished product, can carve the key of arbitrary shape.As long as existing Infrared remote controller is aimed at learning type infrared remote-controller emission infrared signal, learning type infrared remote-controller just can be grasped this infrared signal (being called " study ") and have all functions of former telepilot.
Learning type infrared remote-controller is divided into two classes: fixed code form study with the study of waveform copy mode.The former need to collect the infrared signal of a large amount of existing Infrared remote controller in advance, and preserves the form of each infrared signal.When the infrared signal study to a certain Infrared remote controller, just find corresponding form and decode from the infrared signal of having preserved.Its shortcoming is to learn the infrared signal of having collected in advance.The latter need not collect the form of infrared signal in advance, and it when the infrared signal study to a certain Infrared remote controller, copies infrared signal fully, then judges voluntarily its form and preserves.Its advantage is to learn Infrared remote controller arbitrarily, but the processing power of hardware is had relatively high expectations.
Existing infrared learning type telepilot with waveform copy mode study infrared signal the time, directly filters out carrier wave wherein, only learns infrared ray remotes control code, thereby can't learn carrier frequency.This just causes infrared learning type telepilot when the infrared signal that emission is learnt, and also needing increases frequency carrier wave accurately by supplementary means, and the infrared ray remotes control code of learning is modulated on carrier wave and forms modulation signal.
Summary of the invention
The application's technical matters to be solved is to provide the learning method of a kind of Infrared remote controller to infrared signal, and the method belongs to the waveform copy mode, can learn infrared ray remotes control code, also can learn carrier frequency.
For solving the problems of the technologies described above, the learning method of the application's infrared signal comprises the steps:
The 1st step, the infrared signal in the infrared transceiver module reception environment, and the infrared signal after receiving to processor output;
In the 2nd step, processor obtains level state and the carrier frequency of infrared ray remotes control code by study from the infrared signal after reception.
The learning method of the another kind of infrared signal of the application comprises the steps:
The 1st step, the infrared signal in the infrared transceiver module reception environment, and the infrared signal after receiving to the output of processor and carrier wave filtering module;
In the 2nd step, obtain carrier frequency by study the infrared signal of processor after receiving;
In the 3rd step, the infrared signal after the carrier wave filtering module will receive is converted to infrared ray remotes control code, and exports to processor;
In the 4th step, processor is from its level state of infrared ray remotes control code learning of carrier wave filtering module conversion;
The order in the 2nd step of said method and the 3rd step can be exchanged.
The application has provided the learning method of two kinds of different infrared signals, be applicable to respectively with software mode from the infrared signal learning after receiving to infrared ray remotes control code, with hardware circuit from the swap out situation of infrared ray remotes control code of the infrared signal transfer after receiving.The application can obtain infrared ray remotes control code and two parameters of carrier frequency simultaneously, is specially adapted to learning type infrared remote-controller existing Infrared remote controller is learnt.
Description of drawings
Fig. 1 is the conversion of telecommand and infrared ray remotes control code and the schematic diagram that infrared ray remotes control code is modulated to carrier signal;
Fig. 2 is a kind of primary structure schematic diagram of study remote controller;
Fig. 3 is the process flow diagram of the first embodiment of the learning method of the application's infrared signal;
Fig. 4 be the application's infrared signal learning method the first embodiment the 1st the step signal schematic representation;
Fig. 5 is the 2nd step the first implementation schematic diagram of the first embodiment of the learning method of the application's infrared signal;
Fig. 6 is the 2nd step the second implementation schematic diagram of the first embodiment of the learning method of the application's infrared signal;
Fig. 7 is the primary structure schematic diagram of another kind of study remote controller;
Fig. 8 is the process flow diagram of the second embodiment of the learning method of the application's infrared signal;
Fig. 9 is the 4th step the first implementation schematic diagram of the second embodiment of the learning method of the application's infrared signal;
Figure 10 is the 4th step the second implementation schematic diagram of the second embodiment of the learning method of the application's infrared signal;
Figure 11 is the schematic diagram that there are nuance in the infrared ray remotes control code learnt of the application and original infrared ray remotes control code;
Figure 12 is that the application carries out the process flow diagram of shaping to the infrared ray remotes control code of being learnt.
Description of reference numerals in figure:
10 is infrared transceiver module; 20 is processor; 30 is the carrier wave filtering module.
Embodiment
See also Fig. 2, this is a kind of learning type infrared remote-controller, comprising:
---infrared transceiver module 10, the infrared signal in reception environment, and the infrared signal after receiving to processor 20 outputs.
---processor 20 obtains level state and the carrier frequency of infrared ray remotes control code by study the infrared signal after receiving.
This study remote controller can be realized by intelligent electronic device (as mobile phone).Infrared transceiver module 10 can be integrated in intelligent electronic device, and 20 of processors can be held a concurrent post by the CPU of intelligent electronic device.
See also Fig. 3, above-mentioned learning type infrared remote-controller comprises the steps: the learning method of infrared signal
The 1st step, the infrared signal Outside Carry Pulse In in infrared transceiver module 10 reception environments, and infrared signal (also claiming the carrier frequency read signal) the Carry Pulse In after receiving to processor 20 outputs.
See also Fig. 4, the infrared receiving sensor of TSMP77000 that described infrared transceiver module 10 for example adopts Vishay company.When infrared signal in environment (be in environment infrared signal be always low level) not detected, it exports high level all the time.When the infrared signal in the environment having been detected, infrared signal and the infrared signal in environment after the reception of its output are anti-phase.Therefore, the output of the infrared transceiver module 10 of this model (infrared signal after reception) is generally speaking anti-phase with input (infrared signal in environment).If adopt the infrared transceiver module 10 of other models, the infrared signal after receiving and the infrared signal in environment as a complete unit also may homophases.
In the 2nd step, processor 20 obtains level state (need first be adjusted into and original infrared ray remotes control code same-phase) and the carrier frequency of infrared ray remotes control code by study from the infrared signal Carry Pulse In after reception.
See also Fig. 5, this is said method the first implementation in the 2nd step, and infrared signal and the infrared signal in environment after receiving are anti-phase as example.Start the timer timing during first negative edge of the infrared signal after processor 20 detects reception, until next-door neighbour's rising edge just stops timing, and recording gauge duration t1.Processor 20 zero clearing timer and again start timing immediately when stopping timing, until next-door neighbour's negative edge just stops timing, and recording gauge duration t2.By that analogy, processor 20 record t3, t4 ...Until processor 20 does not detect next-door neighbour's negative edge yet after reaching upper limit time S after the n time beginning timing, t (n) 〉=S namely appears, show that the carrier wave square-wave signal in the infrared signal after reception finishes, high level of the infrared ray remotes control code that this expression is corresponding finishes.Described timer can be the timer of processor 20 inside, or the timer of peripheral hardware.Be used for the carrier signal of infrared remote control, its frequency within the specific limits.The dutycycle of supposing the carrier wave square-wave signal is R, and the minimum of carrier frequency is X, and mxm. is Y, and the value of upper limit time S is S〉(1-R)/X.The value of common R is between 10%~50%, so the value of upper limit time S is for example 1/X.
Processor 20 is added to t (n-1) from t1 and additionally adds the T.T. T1 of a t (n-2) as the carrier wave square-wave signal the infrared signal after receiving again, the T.T. of a high level of the infrared ray remotes control code that this expression is real (by the modulation of carrier wave square-wave signal).Processor 20 also deducts clocking value t (n) t (n-2) as the low level T.T. T2 in the infrared signal after receiving, the T.T. 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) expression drops on the high level part of an interval carrier wave square-wave signal of t (n), also can by t2, t4 ... or its mean value replaces.Processor 20, by recording high and low level order and the duration of real infrared ray remotes control code, has namely been learnt the level state of infrared ray remotes control code.
T1+t2=t3+t4=in theory ..., the cycle of Here it is carrier wave square-wave signal, thus its inverse be exactly the carrier wave square-wave signal frequency f=1/ (t1+t2)=1/ (t3+t4)=...But under actual environment, t1+t2 and t3+t4 have nuance about equally.Calculate a plurality of carrier frequencies and average and get final product this moment, namely carrier frequency f=(n-2)/2 * (t1+t2)+... + [t (n-3)+t (n-2)] }.N herein must be even number.
See also Fig. 6, this is said method the 2nd the second implementation in step, and is still anti-phase as example take infrared signal and the infrared signal in environment after receiving.Start the first timer timing during first negative edge of the infrared signal after processor 20 detects reception.Start the second timer timing during first rising edge of the infrared signal after processor 20 detects reception, until next-door neighbour's negative edge just stops the timing of second timer, and recording gauge duration t2.With preprocessor 20 zero clearing second timers, and again start the second timer timing when next rising edge being detected, until next-door neighbour's negative edge just stops timing, and recording gauge duration t4.By that analogy, processor 20 record t6, t8 ...Until processor 20 is when making second timer t (n) timing, reached upper limit time S but next-door neighbour's negative edge do not detected yet, be t (n) 〉=S, show that the square-wave signal of the infrared signal after reception finishes, high level of the infrared ray remotes control code that this expression is corresponding finishes.The negative edge of the infrared signal after the reception of the halt position of second timer t (n) timing, processor 20 makes first timer stop timing simultaneously, first timer recording gauge duration T.Two timers can be the timers of processor 20 inside, or the timer of peripheral hardware.Be used for the carrier signal of infrared remote control, its frequency within the specific limits.The dutycycle of supposing the carrier wave square-wave signal is R, and the minimum of carrier frequency is X, and mxm. is Y, and the value of upper limit time S is S〉(1-R)/X.The value of common R is between 10%~50%, so the value of upper limit time S is for example 1/X.
Processor 20 is used T-t (n)+t (n-2) as T.T. of the carrier wave square-wave signal in the infrared signal after receiving, the T.T. T1 of a high level of the infrared ray remotes control code that this expression is real (by the modulation of carrier wave square-wave signal).Processor 20 also with t (n)-t (n-2) as the low level T.T. in the infrared signal after receiving, the T.T. 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) expression drops on the high level part of an interval carrier wave square-wave signal of t (n), also can by t2, t4 ... or its mean value replaces.Processor 20, by recording high and low level order and the duration of real infrared ray remotes control code, has namely been learnt the level state of infrared ray remotes control code.
Comprised n carrier wave square-wave signal in the T.T. T1 of the carrier wave square-wave signal in the infrared signal after reception, thus the cycle of each square-wave signal be T1/n, it is got frequency f=n/T1 that inverse is exactly the carrier wave square-wave signal.
Two kinds of implementations that Fig. 5, said method the 2nd shown in Figure 6 go on foot, being all infrared signal after receiving and the infrared signal in environment anti-phase is example, and the infrared ray remotes control code that therefore according to the infrared signal after receiving, identifies also will be only real infrared ray remotes control code after anti-phase.If the infrared signal after receiving and the infrared signal homophase in environment, obviously principle is common, only the rising edge of the infrared signal after the reception of the starting point of various timing and destination county and negative edge exchange need to be got final product.What identify according to the infrared signal after receiving at this moment, is exactly real infrared ray remotes control code.
The first embodiment of the learning method of infrared signal shown in Figure 3 fully by processor 20 with the mode of pure software level state and the carrier frequency from the infrared signal learning infrared ray remotes control code after receiving, this arithmetic capability to processor 20 has proposed high requirement.Infrared signal after receiving is longer, for example during 500ms, processor 20 need to continue monitoring wherein rising edge and negative edge to start or stop timer.Processor 20 will be processed the multi-task usually simultaneously, may be interrupted monitor procedure in 500ms, and such as wanting responding system clock etc., the easy like this study to infrared signal causes interference, brings heavier burden for simultaneously processor 20.
, in order to alleviate the burden of processor 20, also can adopt another kind of learning type infrared remote-controller, as shown in Figure 7.It comprises:
---infrared transceiver module 10, the infrared signal in reception environment, and the infrared signal after receiving to 30 outputs of processor 20 and carrier wave filtering module.
---processor 20 obtains carrier frequency by study the infrared signal after receiving, also from its level state of infrared ray remotes control code learning.
---carrier wave filtering module 30 is converted to infrared ray remotes control code with the infrared signal after receiving, and exports to processor 20.
The Chinese utility model patent application that application number is 201320389091.3, the applying date is on July 2nd, 2013 discloses learning type infrared remote-controller shown in Figure 7, infrared receiving/transmission circuit wherein is equivalent to the infrared transceiver module 10 in the application, and the summation of carrier smoothing circuit and signal identification circuit wherein is equivalent to the carrier wave filtering module 30 in the application.
This study remote controller also can be realized by intelligent electronic device (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.
See also Fig. 8, above-mentioned learning type infrared remote-controller comprises the steps: the learning method of infrared signal
The 1st step, the infrared signal Outside Carry Pulse In in infrared transceiver module 10 reception environments, and infrared signal (also claiming the carrier frequency read signal) the Carry Pulse In after receiving to 30 outputs of processor 20 and carrier wave filtering module.
See also Fig. 4, the infrared receiving sensor of TSMP77000 that described infrared transceiver module 10 for example adopts Vishay company.When infrared signal in environment (be in environment infrared signal be always low level) not detected, it exports high level all the time.When the infrared signal in the environment having been detected, infrared signal and the infrared signal in environment after the reception of its output are anti-phase.Therefore, the output of the infrared transceiver module 10 of this model (infrared signal after reception) is generally speaking anti-phase with input (infrared signal in environment).If adopt the infrared transceiver module 10 of other models, the infrared signal after receiving and the infrared signal in environment as a complete unit also may homophases.
In the 2nd step, obtain carrier frequency by study the infrared signal Carry Pulse In of processor 20 after receiving.
See also Fig. 5, still anti-phase as example take infrared signal and the infrared signal in environment after receiving.Start the timer timing during first negative edge of the infrared signal after processor 20 detects reception, until next-door neighbour's rising edge just stops timing, and recording gauge duration t1.Processor 20 zero clearing timer and again start timing immediately when stopping timing, until next-door neighbour's negative edge just stops timing, and recording gauge duration t2.During all less than upper limit time S, t1+t2 is exactly the cycle of carrier wave square-wave signal as t1, t2, so its inverse is exactly the frequency f=1/ (t1+t2) of carrier wave square-wave signal.For guaranteeing accurately can also to carry out repeatedly timing by the same manner, and in the mode of averaging, obtain carrier frequency.
In the 3rd step, the infrared signal after carrier wave filtering module 30 will receive is converted to infrared ray remotes control code, and exports to processor 20.
Fig. 1 that application number is 201320389091.3, the applying date is the Chinese utility model patent application on July 2nd, 2013 discloses a kind of carrier wave filtering module 30 of realizing with hardware circuit, and it can be converted to carrier frequency read signal (infrared signal after namely receiving) Carry Pulse In Pulse In signal (i.e. infrared ray remotes control code after the conversion) output that characterizes infrared remote-controlled signal and have or not.Infrared ray remotes control code after this conversion and real infrared ray remotes control code are anti-phase as a complete unit.
The order in the 2nd step of said method and the 3rd step can be exchanged.
In the 4th step, processor 20 is from infrared ray remotes control code (need first be adjusted into and original infrared ray remotes control code same-phase, be called the infrared ray remotes control code that study is arrived) its level state of learning of carrier wave filtering module 30 conversions.
See also Fig. 9, this is said method the 4th the first implementation in step, and is anti-phase as example take the infrared ray remotes control code after conversion and real infrared ray remotes control code.Start the timer timing during first negative edge of the infrared ray remotes control code after processor 20 detects conversion, until next-door neighbour's rising edge just stops timing, and recording gauge duration T1.Processor 20 zero clearing timer and again start timing immediately when stopping timing, until next-door neighbour's negative edge just stops timing, and recording gauge duration T2.By that analogy, processor 20 record T3, T4 ...Described timer can be the timer of processor 20 inside, or the timer of peripheral hardware.T1, T3 ... be exactly the time of each high level of real infrared ray remotes control code, T2, T4 ... it is exactly each low level time of real infrared ray remotes control code.Processor 20, by recording high and low level order and the duration of real infrared ray remotes control code, has namely been learnt the level state of infrared ray remotes control code.
See also Figure 10, this is said method the 4th the second implementation in step, and is still anti-phase as example take the infrared ray remotes control code after conversion and real infrared ray remotes control code.Start the timer timing during first negative edge of the infrared ray remotes control code after processor 20 detects conversion, do not stop subsequently timing when processor 20 detect rising edge or negative edge, but all at that time clocking value T1, T2 of record ...Processor 20 deducts with the latter T (k) of adjacent two clocking value T (k-1), T (k) duration that namely obtains each high and low level of real infrared ray remotes control code by the former T (k-1).Processor 20, by recording high and low level order and the duration of real infrared ray remotes control code, has namely been learnt the level state of infrared ray remotes control code.
Two kinds of implementations in Fig. 9, the 4th step of said method shown in Figure 10, being all infrared ray remotes control code after changing and real infrared ray remotes control code anti-phase is example.If adopt the carrier wave filtering module 30 of other types, infrared ray remotes control code after changing and real infrared ray remotes control code be the possibility homophase also, learn the obvious principle of its level state this moment is common, only the rising edge of the infrared ray remotes control code after the conversion of the starting point of various timing and destination county and negative edge exchange need to be got final product.
The second embodiment of the learning method of infrared signal shown in Figure 8 is owing to having increased carrier wave filtering module 30, thereby makes that cost increases, design is complicated.But the infrared signal after newly-increased carrier wave filtering module 30 has been realized receiving by hardware circuit is converted to the work of infrared ray remotes control code, this makes 20 of the processors need to be from the infrared signal learning carrier frequency after receiving, thereby greatly alleviated the burden of processor 20, thereby the requirement of its computing power is reduced.
Fig. 3 and Fig. 8 have provided two embodiment of the learning method of the application's infrared signal, inevitably can there is nuance between infrared ray remotes control code that it is processed through software or hardware circuit is learnt (except anti-phase, homophase problem) and original infrared ray remotes control code, as shown in figure 11.This is that error, infrared signal due to infrared signal transmission circuit propagated the interference that runs into, infrared signal is introduced in receiving sensor interference etc. and caused in environment.For this reason, in the 2nd step of the first embodiment of the learning method of the application's infrared signal, in the 4th step of the second embodiment, preferably processor 20 first to institute learn (or change) to infrared ray remotes control code carry out shaping, then learn its level state.
The form of the infrared ray remotes control code by analyzing a large amount of existing Infrared remote controller, the applicant finds between the high level of infrared ray remotes control code of different-format, the width difference between low level is all more than 50%, therefore the application is that high level, low level all arrange a tolerance coefficient, and preferred span is 5%~20%.Different high level in the same infrared ray remotes control code of learning, different low level width difference are in described tolerance coefficient range, with its regular be high level, low level normal width, described normal width is averaged and is obtained by a plurality of high level, the low level of width difference in described tolerance coefficient range.
See also Figure 12, above-mentioned to study to the infrared ray remotes control code method of carrying out shaping be:
In the 1st step, processor 20 reads the width of first high level of learning the infrared ray remotes control code that arrives and next-door neighbour's low level width, and is recorded as the first signal kind;
In the 2nd step, subsequently, processor 20 reads the width of the next high level of learning the infrared ray remotes control code that arrives and next-door neighbour's low level width successively;
When the difference of the width of this high level and the width of the high level of any signal kinds that has recorded within the specific limits, and after this level, the difference of the low level width of next-door neighbour's low level width and this same signal kinds also within the specific limits, classifies as this signal kinds with this high level and next-door neighbour's low level; Simultaneously the high value of this signal kinds, low level value are changed respectively into the high level of all signals in this signal kinds, low level mean value; Described mean value comprises arithmetical mean, weighted arithmetic average etc.
Otherwise, this high level and next-door neighbour's low level is recorded as new signal kinds;
In the 3rd step, repeated for the 2nd step until read last level of learning the infrared ray remotes control code that arrives.
All signal kinds that obtain by said method just corresponding to the preamble code in infrared ray remotes control code, systematic code and complement code thereof and numeric data code and complement code thereof 0,1, synchronous code etc.
The 4th step, each signal in the infrared ray remotes control code that processor will be learnt (high level and next-door neighbour's low level combination) substitutes with the high value of a signal kinds having recorded and the combination of low level value, the most at last study to infrared ray remotes control code carry out Regularization.
By the infrared signal (modulation signal) of analyzing a large amount of existing Infrared remote controller, the applicant also finds that many infrared signals can repeat to send the infrared ray remotes control code that represents same telecommand, and this is infrared remote control agreement defined correspondingly normally., in order to reduce the memory space of study remote controller, preferably can carry out duplicate removal to the infrared ray remotes control code of being learnt, and then learn its level state and be kept in storer.Described duplicate removal can adopt existing KMP matching algorithm etc.
These are only the application's preferred embodiment, and be not used in restriction the application.For a person skilled in the art, the application can have various modifications and variations.All within the application's spirit and principle, any modification of doing, be equal to replacement, improvement etc., within all should being included in the application's protection domain.

Claims (10)

1. the learning method of an infrared signal, is characterized in that, comprises the steps:
The 1st step, the infrared signal in the infrared transceiver module reception environment, and the infrared signal after receiving to processor output;
In the 2nd step, processor obtains level state and the carrier frequency of infrared ray remotes control code by study from the infrared signal after reception.
2. the learning method of infrared signal according to claim 1, is characterized in that, level state and the carrier frequency of described the 2nd step of method learning infrared ray remotes control code adopt following means:
When the infrared signal after reception and the infrared signal in environment are anti-phase, start the timer timing during first negative edge of the infrared signal after processor detects reception, until next-door neighbour's rising edge just stops timing, and recording gauge duration t1; Processor zero clearing timer and again start timing immediately when stopping timing, until next-door neighbour's negative edge just stops timing, and recording gauge duration t2; By that analogy, processor for recording t3, t4, Until occur that t (n), more than or equal to upper limit time S, shows that the high level of the infrared ray remotes control code of learning finishes;
Infrared signal after reception and the same phase time of the infrared signal in environment, the rising edge, the negative edge that will start as timer, stop are changed mutually;
Processor is added to t (n-1) from t1 and additionally adds the T.T. of a t (n-2) as a high level of the infrared ray remotes control code of learning again; Processor also deducts clocking value t (n) the low level T.T. of t (n-2) as the infrared ray remotes control code of learning; Perhaps, t (n-2) by t2, t4 ... or its mean value replaces;
Carrier frequency f=1/ (t1+t2)=1/ (t3+t4)=
Perhaps, carrier frequency f=(n-2)/2 * (t1+t2)+... + [t (n-3)+t (n-2)] }.
3. the learning method of infrared signal according to claim 1, is characterized in that, level state and the carrier frequency of described the 2nd step of method learning infrared ray remotes control code adopt following means:
When the infrared signal after reception and the infrared signal in environment are anti-phase, start the first timer timing during first negative edge of the infrared signal after processor detects reception; Start the second timer timing during first rising edge of the infrared signal after processor detects reception, until next-door neighbour's negative edge just stops the timing of second timer, and recording gauge duration t2; With preprocessor zero clearing second timer, and again start the second timer timing when next rising edge being detected, until next-door neighbour's negative edge just stops timing, and recording gauge duration t4; By that analogy, processor for recording t6, t8, Until occur that t (n), more than or equal to upper limit time S, shows that the high level of the infrared ray remotes control code of learning finishes; At the negative edge of second timer t (n) timing halt, processor makes first timer stop simultaneously timing, first timer recording gauge duration T;
Infrared signal after reception and the same phase time of the infrared signal in environment, the rising edge, the negative edge that will start as timer, stop are changed mutually;
Processor is used the T.T. T1 of T-t (n)+t (n-2) as a high level of the infrared ray remotes control code of being learnt; Processor is also with the low level T.T. of t (n)-t (n-2) as the infrared ray remotes control code of learning; Perhaps, t (n-2) by t2, t4 ... or its mean value replaces;
Carrier frequency f=n/T1.
4. the learning method of according to claim 2 or 3 described infrared signals, is characterized in that, when the dutycycle of carrier wave square-wave signal is R, the minimum of carrier frequency span is X, when mxm. is Y, and the value of upper limit time S is S〉(1-R)/X.
5. the learning method of infrared signal according to claim 4, it is characterized in that, described method is in the 2nd step, the infrared ray remotes control code that processor will be learnt be adjusted into original infrared ray remotes control code same-phase after, processor first carries out shaping to it, then learns its level state;
Described to study to the infrared ray remotes control code method of carrying out shaping be:
In the 1st step, processor reads the width of first high level of learning the infrared ray remotes control code that arrives and next-door neighbour's low level width, and is recorded as the first signal kind;
In the 2nd step, subsequently, processor reads the width of the next high level of learning the infrared ray remotes control code that arrives and next-door neighbour's low level width successively;
When the difference of the width of this high level and the width of the high level of any signal kinds that has recorded within the specific limits, and after this level, the difference of the low level width of next-door neighbour's low level width and this same signal kinds also within the specific limits, classifies as this signal kinds with this high level and next-door neighbour's low level; Simultaneously the high value of this signal kinds, low level value are changed respectively into the high level of all signals in this signal kinds, low level mean value;
Otherwise, this high level and next-door neighbour's low level is recorded as new signal kinds;
In the 3rd step, repeated for the 2nd step until read last level of learning the infrared ray remotes control code that arrives;
In the 4th step, each signal in the infrared ray remotes control code that processor will be learnt substitutes with the high value of a signal kinds having recorded and the combination of low level value.
6. the learning method of an infrared signal, is characterized in that, comprises the steps:
The 1st step, the infrared signal in the infrared transceiver module reception environment, and the infrared signal after receiving to the output of processor and carrier wave filtering module;
In the 2nd step, obtain carrier frequency by study the infrared signal of processor after receiving;
In the 3rd step, the infrared signal after the carrier wave filtering module will receive is converted to infrared ray remotes control code, and exports to processor;
In the 4th step, processor is from its level state of infrared ray remotes control code learning of carrier wave filtering module conversion;
Perhaps, the order in described the 2nd step of method and the 3rd step is exchanged.
7. the learning method of infrared signal according to claim 6, is characterized in that, described the 2nd step of method learning carrier frequency adopts following means:
When the infrared signal after reception and the infrared signal in environment are anti-phase, start the timer timing during first negative edge of the infrared signal after processor detects reception, until next-door neighbour's rising edge just stops timing, and recording gauge duration t1; Processor zero clearing timer and again start timing immediately when stopping timing, until next-door neighbour's negative edge just stops timing, and recording gauge duration t2; As t1, t2 during all less than upper limit time S, carrier wave side's frequency f=1/ (t1+t2); Perhaps, with the same manner, carry out repeatedly timing, and in the mode of averaging, obtain carrier frequency;
Infrared signal after reception and the same phase time of the infrared signal in environment, the rising edge, the negative edge that will start as timer, stop are changed mutually.
8. the learning method of infrared signal according to claim 6, is characterized in that, the level state of described the 4th step of method learning infrared ray remotes control code adopts following means:
When the infrared ray remotes control code after conversion and real infrared ray remotes control code are anti-phase, start the timer timing during first negative edge of the infrared ray remotes control code after processor detects conversion, until next-door neighbour's rising edge just stops timing, and recording gauge duration T1; Processor zero clearing timer and again start timing immediately when stopping timing, until next-door neighbour's negative edge just stops timing, and recording gauge duration T2; By that analogy, processor for recording T3, T4,
T1, T3 ... the time of each high level of the infrared ray remotes control code of learning exactly;
T2, T4 ... the low level time of each of the infrared ray remotes control code of learning exactly;
Infrared signal after reception and the same phase time of the infrared signal in environment, the rising edge, the negative edge that will start as timer, stop are changed mutually.
9. the learning method of infrared signal according to claim 6, is characterized in that, the level state of described the 4th step of method learning infrared ray remotes control code adopts following means:
When the infrared ray remotes control code after conversion and real infrared ray remotes control code are anti-phase, start the timer timing during first negative edge of the infrared ray remotes control code after processor detects conversion, do not stop subsequently timing when processor detects rising edge or negative edge, but all the record at that time clocking value T1, T2, Processor deducts with the latter T (k) of adjacent two clocking value T (k-1), T (k) duration that namely obtains each high and low level of the infrared ray remotes control code of learning by the former T (k-1);
Infrared signal after reception and the same phase time of the infrared signal in environment, the rising edge, the negative edge that will start as timer, stop are changed mutually.
10. the learning method of infrared signal according to claim 6, is characterized in that, described method is in the 4th step, the infrared ray remotes control code of processor after to conversion be adjusted into original infrared ray remotes control code same-phase after, be called the infrared ray remotes control code that study is arrived; Processor first carries out shaping to it, then learns its level state;
Described to study to the infrared ray remotes control code method of carrying out shaping be:
In the 1st step, processor reads the width of first high level of learning the infrared ray remotes control code that arrives and next-door neighbour's low level width, and is recorded as the first signal kind;
In the 2nd step, subsequently, processor reads the width of the next high level of learning the infrared ray remotes control code that arrives and next-door neighbour's low level width successively;
When the difference of the width of this high level and the width of the high level of any signal kinds that has recorded within the specific limits, and after this level, the difference of the low level width of next-door neighbour's low level width and this same signal kinds also within the specific limits, classifies as this signal kinds with this high level and next-door neighbour's low level; Simultaneously the high value of this signal kinds, low level value are changed respectively into the high level of all signals in this signal kinds, low level mean value;
Otherwise, this high level and next-door neighbour's low level is recorded as new signal kinds;
In the 3rd step, repeated for the 2nd step until read last level of learning the infrared ray remotes control code that arrives;
In the 4th step, each signal in the infrared ray remotes control code that processor will be learnt substitutes with the high value of a signal kinds having recorded and the combination of low level value.
CN201310312245.3A 2013-07-02 2013-07-23 The learning method of infrared signal Active CN103400494B (en)

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 true CN103400494A (en) 2013-11-20
CN103400494B 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)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015000391A1 (en) * 2013-07-02 2015-01-08 恬家(上海)信息科技有限公司 Infrared transmitting and receiving circuit and implementation method thereof
CN104299402A (en) * 2014-08-15 2015-01-21 恬家(上海)信息科技有限公司 Infrared learning method using AD mode
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
CN104992553A (en) * 2015-07-29 2015-10-21 上海斐讯数据通信技术有限公司 Replication study method and system of infrared remote waveform of household appliances
CN105118283A (en) * 2015-09-21 2015-12-02 万科思自控信息(中国)有限公司 Infrared signal collection and conversion control method and device
WO2016107007A1 (en) * 2015-01-04 2016-07-07 中兴通讯股份有限公司 Infrared remote control circuit, method, and terminal
CN105894792A (en) * 2014-12-02 2016-08-24 无锡比益特科技有限公司 Studying and encoding method for efficient infrared remote control
CN106408924A (en) * 2016-09-27 2017-02-15 恬家(上海)信息科技有限公司 Infrared implementation device in electronic equipment and implementation method of infrared implementation device
CN107564266A (en) * 2017-08-25 2018-01-09 广东美的制冷设备有限公司 A kind of remote controller codes learning method and remote control 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
CN111240815A (en) * 2020-01-03 2020-06-05 杭州涂鸦信息技术有限公司 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609604A (en) * 2008-06-17 2009-12-23 上海创见电子有限公司 The control method of infrared learning
US20100141473A1 (en) * 2008-12-04 2010-06-10 Jiun-Chau Tzeng Intelligent appliance control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609604A (en) * 2008-06-17 2009-12-23 上海创见电子有限公司 The control method of infrared learning
US20100141473A1 (en) * 2008-12-04 2010-06-10 Jiun-Chau Tzeng Intelligent appliance control system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015000399A1 (en) * 2013-07-02 2015-01-08 恬家(上海)信息科技有限公司 Learning method for infrared signal
WO2015000391A1 (en) * 2013-07-02 2015-01-08 恬家(上海)信息科技有限公司 Infrared transmitting and receiving circuit and implementation method thereof
CN104299402A (en) * 2014-08-15 2015-01-21 恬家(上海)信息科技有限公司 Infrared learning method using AD mode
CN105894792A (en) * 2014-12-02 2016-08-24 无锡比益特科技有限公司 Studying and encoding method for efficient infrared remote control
WO2016107007A1 (en) * 2015-01-04 2016-07-07 中兴通讯股份有限公司 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
CN104992553A (en) * 2015-07-29 2015-10-21 上海斐讯数据通信技术有限公司 Replication study method and system of infrared remote waveform of household appliances
WO2017016107A1 (en) * 2015-07-29 2017-02-02 上海斐讯数据通信技术有限公司 Household appliances infrared remote waveform replication learning method and system
EP3301658A4 (en) * 2015-07-29 2018-06-27 Phicomm (Shanghai) Co., Ltd. Household appliances infrared remote waveform replication learning method and system
CN105118283A (en) * 2015-09-21 2015-12-02 万科思自控信息(中国)有限公司 Infrared signal collection and conversion control method and device
CN106408924A (en) * 2016-09-27 2017-02-15 恬家(上海)信息科技有限公司 Infrared implementation device in electronic equipment and implementation method of infrared implementation device
CN106408924B (en) * 2016-09-27 2019-07-26 恬家(上海)信息科技有限公司 Infrared realization device and its implementation in a kind of electronic equipment
CN107564266A (en) * 2017-08-25 2018-01-09 广东美的制冷设备有限公司 A kind of remote controller codes learning method and remote control 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
CN111240815A (en) * 2020-01-03 2020-06-05 杭州涂鸦信息技术有限公司 Infrared signal modulation method and system based on linux
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

Also Published As

Publication number Publication date
CN103400494B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN103400494A (en) Learning method for infrared signals
US7684475B2 (en) Control system methods and apparatus for inductive communication across an isolation barrier
US10958110B2 (en) Parallel voltage and current multiple amplitude shift key demodulation
CN102201960B (en) Baud rate adaptive method based on sequencing pulse width differential
CN104932762A (en) Concurrent Driving Capacitive Touch Sensing Device Capable Of Resending Drive Signals
CN105229964B (en) Signal processing apparatus
CN104332045A (en) Intelligent infrared remote controlsystem based on wireless network and method
CN107534548A (en) Clock and data recovery for more wired links based on pulse
Bordel et al. Plug-and-play transducers in cyber-physical systems for device-driven applications
CN105045743A (en) Multi-protocol conversion method capable of realizing priority scheduling
Monte et al. Normalizing transducer signals: An overview of a proposed standard
CN102833201A (en) Highway addressable remote transducer (HART) modem based on singlechip, and implementation method thereof
CN104717036B (en) A kind of Difference Manchester decoding circuit and decoding system
CN103488130B (en) The nuclear plant digital blind controller system of data polling method and use the method
US20220300019A1 (en) Fault communication in voltage regulator systems
US8213809B2 (en) Universal systems and methods for determining an incoming carrier frequency and decoding an incoming signal
Maykiv et al. Software–hardware method of serial interface controller implementation
CN103811021B (en) A kind of method and apparatus resolving waveform
Liu et al. Plug-and-play sensor platform for legacy industrial machine monitoring
Alizadeh et al. Human activity recognition and people count for a smart public transportation system
CN108696277A (en) Analog-digital converter
CN101520648A (en) Method and system for eliminating key jitter
US10897384B2 (en) HART FSK digital demodulator
WO2020146460A3 (en) Apparatus, system and method for developing industrial process solutions using artificial intelligence
WO2015000399A1 (en) Learning method for infrared signal

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