CN106448129A - Method and device for removing interference pulse in infrared remote control data - Google Patents

Method and device for removing interference pulse in infrared remote control data Download PDF

Info

Publication number
CN106448129A
CN106448129A CN201610945387.7A CN201610945387A CN106448129A CN 106448129 A CN106448129 A CN 106448129A CN 201610945387 A CN201610945387 A CN 201610945387A CN 106448129 A CN106448129 A CN 106448129A
Authority
CN
China
Prior art keywords
pulse
code section
disturbing
width
carrier
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.)
Withdrawn
Application number
CN201610945387.7A
Other languages
Chinese (zh)
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics Co 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201610945387.7A priority Critical patent/CN106448129A/en
Publication of CN106448129A publication Critical patent/CN106448129A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Optical Communication System (AREA)

Abstract

The invention discloses a method and a device for removing interference pulse in infrared remote control data, and relates to the technical field of infrared remote control. The method includes the steps: determining a plurality of logic code segments in effective data pulse; determining interference pulse in target logic code segments when pulse width in the target logic code segments is unequal to a carrier pulse standard width defined by a protocol; removing the interference pulse in the target logic code segments to obtain effective carrier pulses. The interference pulse in the effective data pulses can be judged, the interference pulse is removed to obtain the effective carrier pulses, decoding is performed, so that decoding accuracy of the infrared remote control data is improved, and stability and user experience of infrared remote control products are further improved.

Description

The removing method of disturbing pulse and device in a kind of infrared remote control data
Technical field
The present invention relates to Infrared Ray Remote Control Technology field is and in particular to a kind of elimination to disturbing pulse in infrared remote control data Method and apparatus.
Background technology
During infrared remote control receiving terminal return pulse signal, pulse width is measured using input capture mode, that is, according to upper Rise edge and trailing edge detection.As:When capturing high level pulse, it is set to rising edge detection, records after rising edge is detected The value in current first moment, then the capture of setting trailing edge, records the value in current second moment after trailing edge is detected, and second The difference of the value in moment and the first moment is exactly the pulsewidth of high level;The value in current 3rd moment is recorded after rising edge is detected, 3rd moment was exactly the low level duration with the difference of the value in the second moment.With this, each pulse is recorded and is protected Deposit, then according to pulse width instantaneous decoding, so improve decoding efficiency.
But because infrared remote control system is highly susceptible to the interference of extraneous infrared signal, such as infrared touch panel, fluorescent lamp With the place of some strong electromagnetics, infrared remote control receiving terminal receive comprise extraneous Infrared jamming signal and remote-transmitter end transmitting Normal burst signal, because infrared remote control system can not be identified to Infrared jamming signal well and rejects, so adopt Instantaneous decoding method can lead to decode unsuccessfully, and impact user normally uses.
For example:When being mixed into the normal burst sequence of remote-transmitter end transmitting from the external world with the infrared signal of wave band, distant Control receiving terminal receives pulse signal.If Infrared jamming signal is mixed in high level pulse, after two Signal averaging, still for height Level, will not impact to pulse.If but Infrared jamming signal is mixed in low level, can lead to be continuously low electricity Flat place, captures a high level pulse suddenly, as shown in figure 1, remote control reception end cannot judge that pulse signal is derived from remote-transmitter End is still derived from extraneous Infrared jamming signal, and then cannot judge the information that pulse signal carries, and now adopts instantaneous decoding side Formula will be unable to be correctly decoded, strong influence product stability and reduce Consumer's Experience.
For this reason, proposing a kind of method of anti-interference infrared remote control decoding in correlation technique it is considered to the impact of external interference, lead to Cross intercepting valid data pulse in the pulse train comprise infrared remote control data, and repair algorithm using data and it is repaiied Multiple process, is decoded after obtaining decoding data again.But it is that valid data pulse is carried out according to data complement in said method Reparation, if complement code is disturbed, repair after obtain decoding data be also mistake.
It is, therefore, desirable to provide a kind of method that disturbing pulse in infrared remote control data can be eliminated, so that obtaining The decoding accuracy of infrared remote control data greatly improve.
Content of the invention
Embodiments of the invention provide a kind of dry in infrared remote control protocol-encoded data pulse for receiving to receiving terminal Disturb removing method and the device of pulse, can solve the problem that in above-mentioned correlation technique because infrared remote control system can not identify simultaneously well Reject the Infrared jamming pulse being mixed in the normal burst sequence of remote-transmitter end transmitting, lead to infrared distant to receiving terminal reception Control data decodes the problem of failure.
For reaching above-mentioned purpose, the embodiment of the present invention be employed technical scheme comprise that:
In a first aspect, offer is a kind of disappearing for receiving terminal is received with disturbing pulse in infrared remote control protocol-encoded data pulse Except method, comprise the following steps:
Determine multiple logic code sections in valid data pulse;
When pulse width is not equal to the carrier pulse normal width that agreement specifies in target logic code section, determine that described target is patrolled Collect in code section and comprise disturbing pulse;
Reject disturbing pulse in described target logic code section and obtain effective carrier pulse.
Second aspect, provides a kind of being used for disturbing pulse in receiving terminal reception infrared remote control protocol-encoded data pulse Cancellation element, including with lower unit:
Valid data pulse determining unit, for determining multiple logic code sections in valid data pulse;
Disturbing pulse determining unit, for when in target logic code section pulse width be not equal to the carrier pulse standard that agreement specifies During width, determine in described target logic code section and comprise disturbing pulse;
Disturbing pulse culling unit, obtains effective carrier pulse for rejecting disturbing pulse in described target logic code section.
The present invention first passes through the multiple logic code sections determining in valid data pulse;Then judge in valid data pulse Whether the pulse width in each target logic code section is not equal to the carrier pulse normal width that agreement specifies, if being not equal to, Determine in described target logic code section and comprise disturbing pulse;Again the disturbing pulse comprising in described target logic code section is rejected Fall, thus obtaining effective carrier pulse.
Repair disturbed valid data pulsion phase ratio with adopting data complement in correlation technique, the present invention can be according to having Imitate the difference between the carrier pulse normal width that the pulse width in each logic code section in data pulse and agreement specify, sentence Break and the disturbing pulse comprising in valid data pulsed logic code section, then reject the disturbing pulse in logic code section, had It is decoded after effect carrier pulse, overcome in correlation technique and " lead to adopt number due to not identifying that complement code is also disturbed again The deficiency of the decoding data mistake according to obtaining after complement code reparation valid data pulse ", thus the solution of infrared remote control data can be improved Code accuracy, improves infrared remote control product stability and Consumer's Experience further.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The present invention can be limited.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below Accompanying drawing be briefly described it should be apparent that, drawings in the following description are some embodiments of the present invention, for this For the those of ordinary skill of field, on the premise of not paying creative work, can also be obtained other according to these accompanying drawings Accompanying drawing.
Fig. 1 is the schematic diagram being mixed into disturbing pulse at low level.
Fig. 2 be standard NEC agreement in send the schematic diagram of a frame data pulse.
Fig. 3 is the schematic diagram of duplication code pulse in NEC agreement.
Fig. 4 is the schematic diagram comprising duplication code sequence in pulse train.
Fig. 5 is the schematic diagram of logical one and logical zero pulse in NEC agreement.
Fig. 6 be standard SIRC agreement in send the schematic diagram of a frame data pulse.
Fig. 7 is the schematic diagram of logical one and logical zero pulse in SIRC agreement.
Fig. 8 is that one kind that the embodiment of the present invention one provides is used for receiving infrared remote control protocol-encoded data arteries and veins to receiving terminal The removing method schematic flow sheet of disturbing pulse in punching.
Fig. 9 is the detailed process schematic diagram of step S11 shown in Fig. 8.
Figure 10 is the detailed process schematic diagram of step S12 shown in Fig. 8.
Figure 11 is disturbing pulse schematic diagram.
Figure 12 is the schematic diagram of another kind of disturbing pulse.
Figure 13 is the part disturbing pulse schematic diagram overlapping with high level pulse.
Figure 14 is the continuous schematic diagram occurring of disturbing pulse.
Figure 15 is that one kind that the embodiment of the present invention two provides is used for receiving infrared remote control protocol-encoded data to receiving terminal The schematic diagram of the cancellation element of disturbing pulse in pulse.
Figure 16 is the schematic diagram of the determining unit part of valid data pulse shown in Figure 15.
Figure 17 is the schematic diagram of the part of disturbing pulse determining unit shown in Figure 15.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The all other embodiment being obtained on the premise of not making creative work, broadly falls into the scope of protection of the invention.
Infrared remote control system is not only used in the domestic environment such as TV, video recorder, air-conditioning, is also widely used in height Under the industrial environments such as pressure, radiation, dust, for reliably being controlled to equipment.
Infrared remote control system sends and receives two parts.Transmitting terminal produces instruction code, warp by special chip Drive infrared transmitter part after carrier modulation, and then launch infrared signal;The instruction code of infrared signal is binary code, compiles Code modulation is completed by special chip, the method for coding have multiple, the coding method of different chips and code length different.Connect After receiving end receives infrared remote-controlled signal, amplified, detection, shaping, obtain the code signal of Transistor-Transistor Logic level, then give decoding circuit, Decoded and execute, go to control specified object, thus realizing distant control function.
However, in infrared remote control transmitting terminal sending signal, also including infrared signal composition in external environment optical signal, For example:When sunlight irradiates, ambient light mid-infrared signal component is higher;The infrared letter that infrared touch panel transmitting sends when pipe is worked Number;Some high-intensity magnetic fields in infrared signal etc..These infrared signals can to infrared remote control receiving terminal receipt signal when cause pole Big interference, leads to IR remote controller cannot be correctly decoded, and then cannot judge the information that pulse signal carries, strong influence Product stability and reduce Consumer's Experience.
Accordingly, it is considered to external environment mid-infrared signal pulse width typically within 10us, the embodiment of the present invention provides A kind of method and apparatus that the disturbing pulse in infrared remote control data can be eliminated, according in valid data pulse, each is patrolled Collect the difference between the carrier pulse normal width that the pulse width in code section and agreement specify, can determine valid data pulse In the disturbing pulse that is mixed into, disturbed valid data pulse being carried out rejecting interference further with processing, then is decoded, such as This can improve the decoding accuracy of infrared remote control data, thus keeping infrared remote control product to have good stability and raising Consumer's Experience.
It should be noted that present invention embodiment presented below preferably in the industry frequently with NEC agreement and SIRC association It is described in detail as a example view, but the embodiment of the present invention can also be applied in other infrared remote-controlled signal host-host protocols, For example:Philip company adopts Manchester to encode(Reversal phase coding mode)RC-5 standard, its without prejudice to present invention realize, Do not interfere with the real protection scope of the present invention, the embodiment of the present invention is not restricted to this.
Hereinafter this NEC agreement is briefly described:
NEC agreement adopts pulse position to encode(PPM code), represent that binary system is believed with the time interval between two trains of pulse Breath.Fig. 2 be standard NEC agreement in send the schematic diagram of a frame data pulse, as shown in Fig. 2 NEC agreement one frame number of standard According to inclusion guidance code(AGC synchronization burst), 8 bit address codes, 8 order of the bit codes, wherein address and order data can respectively by Transmission twice, transmits a data radix-minus-one complement mode second(As:1111 0000 radix-minus-one complement is 0,000 1111), to strengthen reliability Property.
Agreement regulation starts to send from low level, situation as shown in Figure 2, and that send first is the AGC of 9ms(Automatic gain Control)High level pulse, for adjusting the gain of infrared receiver end, is followed by the low level of 4.5ms, and both combines is exactly above-mentioned Guidance code;Followed by 8 bit address codes, the radix-minus-one complement of 8 bit address codes, it is then 8 order of the bit codes, the radix-minus-one complement of 8 order of the bit codes, totally 32 Position, each of which position is all to be represented with Binary Zero or 1.
Additionally, after pressing infrared remote control button, corresponding valid data pulse can only send once, if pinning infrared always Remote keying, transmission is then duplication code with 110ms as cycle, duplication code be by the AGC high level of 9ms, 2.25ms low The high level composition of level and a 0.56ms, as shown in Figure 3.The rising edge of the guidance code before valid data pulse is to repetition The burst length of the rising edge of AGC of code is also 110ms, and this is same with the cycle phase of duplication code, as shown in Figure 4.
NEC agreement is according to high-low level time length proportional representation logical one and logical zero.Fig. 5 is the NEC association of standard The schematic diagram of logical one and logical zero pulse in view, as shown in figure 5, the logical one pulse period is 2.25ms(The high electricity of 0.56ms Gentle 1.680ms low level), the logical zero pulse period is 1.12ms(0.56ms high level and 0.56ms low level).Above-mentioned The carrier frequency through 38KHz for 32 binary codes that " 0 " and " 1 " forms carries out secondary modulation to improve emission effciency, reduces electricity The purpose of source power consumption.
Hereinafter SIRC agreement is briefly described:
Sony Corporation's SIRC agreement, using pulsewidth coding(PWM code), this agreement has 12,15 and 20 Three models, here Introduce 12 bit patterns.Fig. 6 be standard SIRC agreement in send the schematic diagram of a frame data pulse, as shown in fig. 6, standard SIRC agreement one frame data include start bit, command code and address code.Wherein, command code 7, address code 5.
In this SIRC agreement, start bit is made up of the high level of 2.4ms and the low level of 0.6ms.Fig. 7 is in SIRC agreement Logical one and the schematic diagram of logical zero pulse, as shown in fig. 7, the logical one pulse period is 1.8ms(1.2ms high level and 0.6ms low level), the logical zero pulse period is 1.2ms(0.6ms high level and 0.6ms low level).Above-mentioned " 0 " and " 1 " group The carrier frequency through 40KHz for 12 binary codes becoming carries out secondary modulation to improve emission effciency.
The embodiment present invention being provided below in conjunction with NEC agreement and SIRC agreement is described in detail:
Embodiment one
Fig. 8 is used for receiving terminal is received in infrared remote control protocol-encoded data pulse for one kind that the embodiment of the present invention one provides The removing method schematic flow sheet of disturbing pulse.For solving in above-mentioned correlation technique because infrared remote control system can not be known well And reject the Infrared jamming pulse being mixed in the normal burst sequence of remote-transmitter end transmitting, do not lead to receiving terminal is received is red Outer remote-control data decodes the problem of failure, and the embodiment of the present invention provides one kind to compile for receiving infrared remote control agreement to receiving terminal The removing method of disturbing pulse in code data pulse, as shown in figure 8, the method may comprise steps of:
Step S11:Determine multiple logic code sections in valid data pulse;
Wherein, the code section that described valid data pulse is made up of multiple logical zeroes and logical one.
Optionally, the data of described valid data pulse specifically can comprise frame data of infrared remote control transmitting terminal transmission In address code and command code it is also possible to comprise the radix-minus-one complement of address code and command code, its without prejudice to present invention realize, do not interfere with The real protection scope of the present invention.
In this step, according to time order and function order, the pulse width in each logic code section can be caught using input Obtain pattern to measure, specifically can carry out pulsewidth counting to the pulse train of input.For example:NEC agreement shown in Fig. 5 and Fig. 7 High level pulse in logical one and logical zero code section in shown SIRC agreement can be measured using input capture pattern Its pulse width.
On the basis of above-mentioned Fig. 8, the embodiment of the invention also discloses step S11 detailed process schematic diagram, as Fig. 9 institute Show, step S11 may comprise steps of:
Step S111:Receive all pulse trains comprising infrared remote control data, wherein, described pulse train includes pilot pulse With valid data pulse, described valid data pulse is after described pilot pulse;
Wherein, pilot pulse is the start-up portion of a remote control code pulse, as the priming pulse of receiving data.
Step S112:Identify the described pilot pulse in described pulse train, have described in after intercepting described pilot pulse Effect data pulse.
Wherein, valid data pulse is after pilot pulse, no other pulses between the two.
Exemplary, taking NEC agreement as a example, described pulse train comprises NEC consensus standard one frame data, specifically comprises to draw Leading code, address code, address code radix-minus-one complement, command code and command code radix-minus-one complement;Described pilot pulse comprises guidance code;Valid data pulse Comprise address code and command code, address code and command code send twice, and send for second is radix-minus-one complement, the letter receiving for checking The accuracy of breath.Because every radix-minus-one complement all sending once it, the overall transmission time is constant(Send every time When, either 1 or 0, the time of transmission is all that it and it radix-minus-one complement sends temporal summation), therefore guidance code can be intercepted by this And thereafter one intersegmental every interior address code and command code.
Further, the standard time length of the valid data pulse being specified according to NEC agreement, intercepts described pilot pulse Described valid data pulse afterwards.For example:Theoretical total time length of address code and command code pulse is (2.25+1.12) × 8 × 2=53.92ms, judges whether the time of described valid data pulse is equal to theoretical total time 53.92ms;If described significant figure Time according to pulse is equal to 53.92ms, then intercept this valid data pulse.
Step S113:Determine the described valid data pulse in described pulse train.
Step S12:When in target logic code section, pulse width is not equal to the carrier pulse normal width that agreement specifies, really Disturbing pulse is comprised in fixed described target logic code section;
It should be noted that " the carrier pulse normal width that agreement specifies " that the present embodiment refers to is infrared remote control system adopting During different infrared remote-controlled signal host-host protocol, the width of carrier pulse specified in agreement.For different infrared remote control letters Number host-host protocol, the width of its carrier pulse is also different;For same infrared remote-controlled signal host-host protocol, in each logic code section Carrier pulse width also not necessarily identical, should not be construed the restriction to the embodiment of the present invention herein.For example:NEC assists Carrier pulse normal width in regulation logical one and logical zero code section in view is all 0.56ms, and in SIRC agreement, regulation is patrolled The carrier pulse normal width collected in " 1 " and logical zero code section is 1.2ms, 0.6ms respectively.
The carrier pulse normal width that agreement specifies can be specific numerical value;But due to there is systematic error, such as adopt When MCU timer calculates burst length sequence, timer error is fixing systematic error, and it can also be a numerical value model Enclose, that is, setting one is fault-tolerant, and this number range is between positive and negative fault-tolerant value.The embodiment of the present invention is not restricted to this.
It should be noted that it is high level that infrared remote control transmitting terminal sends during carrier pulse signal, when not having pulse signal It is low level;Infrared remote control receiving terminal, in order to improve receiving sensitivity, is high level when not having pulse signal, is receiving carrier wave It is low level during pulse signal.
Because the carrier pulse that the disturbing pulse in external environmental light is sent with infrared remote control transmitting terminal is all high level, red Outer remote control reception terminates the time receiving, is both changed into low level, disturbing pulse only can affect carrier pulse so in decoding process Judgement.Therefore, the carrier pulse normal width that described agreement specifies can be used for judging in valid data pulse each patrol Whether disturbed collect code section, when in target logic code section, pulse width is not equal to the carrier pulse normal width that agreement specifies, Can determine that described target logic code section is disturbed, thus separating the interference data in valid data pulse and valid data.
On the basis of above-mentioned Fig. 8, the embodiment of the invention also discloses step S12 detailed process schematic diagram, such as Figure 10 Shown, step S12 may comprise steps of:
Step S121:Judge the carrier pulse standard width that in described target logic code section, whether pulse width specifies less than agreement Degree;If it is, execution step S122;If it is not, then execution step S123;
Step S122:When the carrier pulse normal width that pulse width in described target logic code section specifies less than agreement, really Described pulse in the logic code that sets the goal section is disturbing pulse;
Step S123:When the carrier pulse normal width that pulse width in described target logic code section specifies more than agreement, really Described pulse in the logic code that sets the goal section is the carrier pulse carrying disturbing pulse.
Specifically, after judging that logic code section in valid data pulse is disturbed, continue to judge.If valid data pulse During the carrier pulse normal width that the pulse width in interior described target logic code section specifies less than agreement, determine target logic code Described pulse in section is disturbing pulse;If more than it is determined that the described pulse in target logic code section is to carry disturbing pulse Carrier pulse.
Below, by instantiation, the method shown in Fig. 8 and Figure 10 is described in detail.
Exemplary, taking NEC agreement as a example it is briefly described:
In this example, described pulse train comprises NEC consensus standard one frame data, specifically comprises guidance code, address code, address Code radix-minus-one complement, command code and command code radix-minus-one complement;Described pilot pulse comprises guidance code;Described valid data pulse comprise address code, Address code radix-minus-one complement, command code and command code radix-minus-one complement.Carrier pulse in logical one specified in NEC agreement and logical zero code section Normal width is all 0.56ms.The pulse that interior each yard of section of described valid data pulse comprises is logical one and logical zero code section Interior high level pulse.
In view of external environment mid-infrared signal pulse width it is assumed here that extraneous Infrared jamming arteries and veins typically within 10us The width of punching is 8us.
First, it is determined that whether the pulse width in each yard of section in valid data pulse is not equal to the load that NEC agreement specifies Wave impulse normal width.It is 0.56ms when the high-level pulse width in a code section in valid data pulse is detected, its etc. In the carrier pulse normal width 0.56ms that NEC agreement specifies it is determined that the high-level pulse width in this yard of section is infrared distant The carrier pulse that control transmitting terminal sends.It is 8us when the high-level pulse width in a code section in valid data pulse is detected, It is not equal to the carrier pulse normal width 0.56ms that NEC agreement specifies it is determined that comprising in external environmental light in this yard of section Disturbing pulse.
Further, after determining the disturbing pulse that described in valid data pulse, code section comprises in external environmental light, continue Judge the carrier pulse normal width the 0.56ms whether pulse width in described code section specifies less than NEC agreement.
Figure 11 is disturbing pulse schematic diagram, as shown in figure 11, when the height in a code section in valid data pulse is detected Level pulse widths are 8us, and its carrier pulse normal width 0.56ms specifying less than NEC agreement is it is determined that bag in this yard of section The high level pulse containing is disturbing pulse, and now disturbing pulse is fully mixed in the low level in this yard of section, and and infrared remote control The high level pulse that transmitting terminal sends is not close to.
Figure 12 is the schematic diagram of another kind of disturbing pulse, as shown in figure 12, when a code in valid data pulse is detected High-level pulse width in section is 0.568ms, its carrier pulse normal width 0.56ms specifying more than NEC agreement, then really The high level pulse comprising in fixed this yard of section is the carrier pulse carrying disturbing pulse, and now disturbing pulse next-door neighbour infrared remote control is sent out The high level pulse that sending end sends.
Additionally, Figure 13 is the part disturbing pulse schematic diagram overlapping with high level pulse, as shown in figure 13, external environmental light In interference signal can also with infrared remote control transmitting terminal send high level pulse partly overlap, for example:Significant figure is detected It is 0.564ms according to the high-level pulse width in a code section in pulse, wherein disturbing pulse has half and high level pulse weight Folded.
It should be noted that because the infrared signal interference in external environmental light is random, so disturbing pulse is permissible It is to occur once in a code section, occur a code section in repeatedly, as shown in figure 14 as shown in FIG. 11 and 12 or continuously The continuous schematic diagram occurring of disturbing pulse, its without prejudice to present invention realizes, and does not interfere with the real protection scope of the present invention.
Exemplary, taking SIRC agreement as a example it is briefly described:
In this example, described pulse train comprises SIRC consensus standard one frame data, specifically comprise start bit, address code and Command code;Described pilot pulse comprises start bit;Described valid data pulse comprises address code and command code.Advise in SIRC agreement Carrier pulse normal width in fixed logical one and logical zero code section is 1.2ms, 0.6ms respectively.Described valid data arteries and veins The pulse that interior each yard of section of punching comprises is the high level pulse in logical one and logical zero code section.
In view of external environment mid-infrared signal pulse width typically within 10us, here it is still assumed that the external world is infrared dry The width disturbing pulse is 8us.
First, it is determined that whether the pulse width in each yard of section in valid data pulse is not equal to the load that SIRC agreement specifies Wave impulse normal width.When detect the high-level pulse width in a code section in valid data pulse be 1.2ms or 0.6ms, its carrier pulse normal width 1.2ms or 0.6ms specifying equal to SIRC agreement are it is determined that high level in this yard of section Pulse width is the carrier pulse that infrared remote control transmitting terminal sends.High electric in a code section in valid data pulse when detecting Pulse-width is 8us, and it is not equal to carrier pulse normal width 1.2ms or 0.6ms that SIRC agreement specifies it is determined that this code The disturbing pulse in external environmental light is comprised in section.
Further, after determining the disturbing pulse that described in valid data pulse, code section comprises in external environmental light, continue Judge carrier pulse width 1.2ms or the 0.6ms whether pulse width in described code section specifies less than SIRC agreement.
It is 8us when the high-level pulse width in a code section in valid data pulse is detected, it is less than SIRC agreement Regulation carrier pulse normal width 1.2ms or 0.6ms it is determined that the high level pulse comprising in this yard of section is disturbing pulse, Now disturbing pulse is fully mixed in the low level in this yard of section, and not tight with the high level pulse that infrared remote control transmitting terminal sends Adjacent.
It is 0.608ms when the high-level pulse width in a code section in valid data pulse is detected, it is more than SIRC The carrier pulse normal width 0.6ms that agreement specifies, or, when the high level in a code section in valid data pulse is detected Pulse width is 1.208ms, and its carrier pulse normal width 1.2ms specifying more than SIRC agreement is it is determined that bag in this yard of section The high level pulse containing is the carrier pulse carrying disturbing pulse, and now disturbing pulse is close to the height that infrared remote control transmitting terminal sends Level pulse.Additionally, the high level pulse portion that the interference signal in external environmental light can also be sent with infrared remote control transmitting terminal Divide overlap, for example:The high-level pulse width detecting in a code section in valid data pulse is 0.604ms, wherein disturbs Pulse has half overlapping with the high level pulse in logical zero code section.
It should be noted that because the infrared signal interference in external environmental light is random, so disturbing pulse is permissible It is to occur once or continuously occur repeatedly in a code section its without prejudice to present invention in a code section to realize, Bu Huiying Ring the real protection scope of the present invention.
Step S13:Reject disturbing pulse in described target logic code section and obtain effective carrier pulse.
Specifically, after determining the disturbing pulse comprising in valid data pulse, can be by described target in valid data pulse Disturbing pulse in logic code section is rejected, and is decoded after obtaining effective carrier pulse again, can obtain control information, executes phase The control answered.The code of 0 and 1 composition in numeric data code section can be known according to pulse width, corresponding according to the code known Know to execute control.Wherein, the control of execution can be specifically the frequency selecting specific channel, return last time to watch Road, it is turned on and off remotely-controlled equipment etc..
The disturbing pulse removing method being provided using the embodiment of the present invention one, is first passed through in determination valid data pulse Multiple logic code sections;Then judge whether the pulse width in each target logic code section in valid data pulse is not equal to agreement The carrier pulse normal width of regulation, if be not equal to it is determined that comprising disturbing pulse in described target logic code section;Again will be described The disturbing pulse comprising in target logic code section weeds out, thus obtaining effective carrier pulse.
Repair disturbed valid data pulsion phase ratio with adopting data complement in correlation technique, the present invention can be according to having Imitate the difference between the carrier pulse normal width that the pulse width in each logic code section in data pulse and agreement specify, sentence Break and the disturbing pulse comprising in valid data pulsed logic code section, then reject the disturbing pulse in logic code section, had It is decoded after effect carrier pulse, overcome in correlation technique and " lead to adopt number due to not identifying that complement code is also disturbed again The deficiency of the decoding data mistake according to obtaining after complement code reparation valid data pulse ", thus the solution of infrared remote control data can be improved Code accuracy, improves infrared remote control product stability and Consumer's Experience further.
Embodiment two
According to the above-mentioned removing method that receiving terminal is received with disturbing pulse in infrared remote control protocol-encoded data pulse, the present invention Embodiment also provides a kind of elimination dress for receiving terminal is received with disturbing pulse in infrared remote control protocol-encoded data pulse Put, below the elimination system of disturbing pulse in infrared remote control protocol-encoded data pulse is received to receiving terminal with regard to the present invention Embodiment is described in detail.
Figure 15 is used for receiving infrared remote control protocol-encoded data to receiving terminal for one kind that the embodiment of the present invention two provides The schematic diagram of the cancellation element of disturbing pulse in pulse.As shown in figure 15, this device can include:Valid data pulse determines single Unit 21, disturbing pulse determining unit 22, disturbing pulse culling unit 23.
Valid data pulse determining unit 21, for determining multiple logic code sections in valid data pulse;
Wherein, the code section that described valid data pulse is made up of multiple logical zeroes and logical one.
Optionally, the data of described valid data pulse specifically can comprise frame data of infrared remote control transmitting terminal transmission In address code and command code it is also possible to comprise the radix-minus-one complement of address code and command code, its without prejudice to present invention realize, do not interfere with The real protection scope of the present invention.
In this step, the pulse width in each logic code section can specifically may be used using input capture pattern to measure Pulsewidth counting is carried out with the pulse train to input.For example:Logic in NEC agreement shown in Fig. 5 and the SIRC agreement shown in Fig. 7 High level pulse in " 1 " and logical zero code section can measure its pulse width using input capture pattern.
Figure 17 is the schematic diagram of the determining unit part of valid data pulse shown in Figure 15.Specifically, valid data pulse is true Order unit 21 includes:Receiving unit 211 and recognition unit 212.
Receiving unit 211, for receiving all pulse trains comprising infrared remote control data, wherein, described pulse train Including pilot pulse and valid data pulse, described valid data pulse is after described pilot pulse;
Wherein, pilot pulse is the start-up portion of a remote control code pulse, as the priming pulse of receiving data.
Recognition unit 212, for identifying the described pilot pulse in described pulse train, and after intercepting described pilot pulse Described valid data pulse.
Wherein, valid data pulse is after pilot pulse, no other pulses between the two.
Specifically, taking NEC agreement as a example, described pulse train comprises NEC consensus standard one frame data, specifically comprises to guide Code, address code, address code radix-minus-one complement, command code and command code radix-minus-one complement;Described pilot pulse comprises guidance code;Valid data pulse bag Containing address code and command code, address code and command code send twice, and send for second is radix-minus-one complement, the information receiving for checking Accuracy.Because every radix-minus-one complement all sending once it, the overall transmission time is constant(When sending every time, Either 1 or 0, the time of transmission is all that it and it radix-minus-one complement sends temporal summation), therefore can by this intercept guidance code and its Afterwards one intersegmental every interior address code and command code.
Further, the standard time length of the valid data pulse being specified according to NEC agreement, intercepts described pilot pulse Described valid data pulse afterwards.For example:Theoretical total time length of address code and command code pulse is (2.25+1.12) × 8 × 2=53.92ms, judges whether the time of described valid data pulse is equal to theoretical total time 53.92ms;If described significant figure Time according to pulse is equal to 53.92ms, then intercept this valid data pulse.
Disturbing pulse determining unit 22, for when in target logic code section pulse width be not equal to the carrier wave arteries and veins that agreement specifies When rushing normal width, determine in described target logic code section and comprise disturbing pulse;
It should be noted that " the carrier pulse normal width that agreement specifies " that the present embodiment refers to is infrared remote control system adopting During different infrared remote-controlled signal host-host protocol, the width of carrier pulse specified in agreement.For different infrared remote control letters Number host-host protocol, the width of its carrier pulse is also different;For same infrared remote-controlled signal host-host protocol, in each logic code section Carrier pulse width also not necessarily identical, should not be construed the restriction to the embodiment of the present invention herein.For example:NEC assists Carrier pulse normal width in regulation logical one and logical zero code section in view is all 0.56ms, and in SIRC agreement, regulation is patrolled The carrier pulse normal width collected in " 1 " and logical zero code section is 1.2ms, 0.6ms respectively.
The carrier pulse normal width that agreement specifies can be specific numerical value;But due to there is systematic error, such as adopt When MCU timer calculates burst length sequence, timer error is fixing systematic error, and it can also be a numerical value model Enclose, that is, setting one is fault-tolerant, and this number range is between positive and negative fault-tolerant value.The embodiment of the present invention is not restricted to this.
It should be noted that it is high level that infrared remote control transmitting terminal sends during carrier pulse signal, when not having pulse signal It is low level;Infrared remote control receiving terminal, in order to improve receiving sensitivity, is high level when not having pulse signal, is receiving carrier wave It is low level during pulse signal.
Because the carrier pulse that the disturbing pulse in external environmental light is sent with infrared remote control transmitting terminal is all high level, red Outer remote control reception terminates the time receiving, is both changed into low level, disturbing pulse only can affect carrier pulse so in decoding process Judgement.Therefore, the carrier pulse normal width that described agreement specifies can be used for judging in valid data pulse each patrol Whether disturbed collect code section, when in target logic code section, pulse width is not equal to the carrier pulse normal width that agreement specifies, Can determine that described target logic code section is disturbed, thus separating the interference data in valid data pulse and valid data.
Figure 17 is the schematic diagram of the part of disturbing pulse determining unit shown in Figure 15.Specifically, disturbing pulse determining unit 22 Including:Judging unit 221, the first determining unit 222 and the second determining unit 223.
Judging unit 221, for judging the carrier wave that in described target logic code section, whether pulse width specifies less than agreement Pulse normal width;
First determining unit 222, for the carrier pulse mark specifying less than agreement when pulse width in described target logic code section During quasi- width, determine that the described pulse in target logic code section is disturbing pulse;
Second determining unit 223, for the carrier pulse mark specifying more than agreement when pulse width in described target logic code section During quasi- width, determine that the described pulse in target logic code section is the carrier pulse carrying disturbing pulse.
Wherein, after disturbing pulse determining unit 22 judges that logic code section in valid data pulse is disturbed, continue to sentence Disconnected.If the carrier pulse normal width that the pulse width in described target logic code section in valid data pulse specifies less than agreement When, determine that the described pulse in target logic code section is disturbing pulse;If being more than the described arteries and veins it is determined that in target logic code section Punching is the carrier pulse carrying disturbing pulse.
Disturbing pulse culling unit 23, obtains effective carrier wave arteries and veins for rejecting disturbing pulse in described target logic code section Punching.
Specifically, after disturbing pulse culling unit 23 determines the disturbing pulse comprising in valid data pulse, can be by effectively Disturbing pulse in described target logic code section in data pulse is rejected, and is decoded after obtaining effective carrier pulse again, permissible Obtain control information, execution is corresponding to be controlled.The code of 0 and 1 composition in numeric data code section can be known according to pulse width, Know to the control executing according to the code known accordingly.Wherein, the control of execution specifically can be select specific channel, Return last time watch channel, be turned on and off remotely-controlled equipment etc..
The disturbing pulse cancellation element that the embodiment of the present invention two provides, valid data pulse determining unit first passes through determination Multiple logic code sections in valid data pulse;Then disturbing pulse determining unit judges that in valid data pulse, each target is patrolled Whether the pulse width in volume code section is not equal to the carrier pulse normal width that agreement specifies, if being not equal to it is determined that described mesh Disturbing pulse is comprised in mark logic code section;The disturbing pulse that disturbing pulse culling unit will comprise in described target logic code section again Weed out, thus obtaining effective carrier pulse.
Repair disturbed valid data pulsion phase ratio with adopting data complement in correlation technique, the present invention can be according to having Imitate the difference between the carrier pulse normal width that the pulse width in each logic code section in data pulse and agreement specify, sentence Break and the disturbing pulse comprising in valid data pulsed logic code section, then reject the disturbing pulse in logic code section, had It is decoded after effect carrier pulse, overcome in correlation technique and " lead to adopt number due to not identifying that complement code is also disturbed again The deficiency of the decoding data mistake according to obtaining after complement code reparation valid data pulse ", thus the solution of infrared remote control data can be improved Code accuracy, improves infrared remote control product stability and Consumer's Experience further.
More explanations of the disturbing pulse cancellation element providing with regard to the embodiment of the present invention two may be referred to above-described embodiment The specific descriptions of the disturbing pulse removing method of one offer, it is realized, and principle is similar with beneficial effect, and here no longer describes in detail.
Embodiment three
The present embodiment provides a kind of display receiving terminal, and this display receiving terminal can include:Infrared remote-receiver and figure The elimination dress for receiving terminal is received with disturbing pulse in infrared remote control protocol-encoded data pulse described in 15-17 embodiment Put, wherein, after described infrared remote-receiver receives infrared remote control protocol-encoded data pulse, described cancellation element is to infrared Disturbing pulse in Remoting Protocol coded data pulse is judged and is rejected.
It should be noted that display receiving terminal can also include miscellaneous part, such as display, memory, controller etc., The other concrete part that display receiving terminal includes is not described in detail herein.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, Ke Yitong Cross the related hardware of computer program instructions to complete, described program can be stored in a computer read/write memory medium, This program upon execution, can include as the flow process in above-described embodiment.Wherein, described storage medium can be disk, light Disk, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
Various embodiments above only in order to technical scheme to be described, is not intended to limit;Although with reference to aforementioned each reality Apply example the present invention has been described in detail, it will be understood by those within the art that:It still can be to aforementioned each Technical scheme described in embodiment is modified, or carries out equivalent to wherein some or all of technical characteristic;And These modifications or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (5)

1. a kind of removing method for receiving terminal is received with disturbing pulse in infrared remote control protocol-encoded data pulse, it is special Levy and be, comprise the following steps:
Determine multiple logic code sections in valid data pulse;
When pulse width is not equal to the carrier pulse normal width that agreement specifies in target logic code section, determine that described target is patrolled Collect in code section and comprise disturbing pulse;
Reject disturbing pulse in described target logic code section and obtain effective carrier pulse.
2. removing method according to claim 1 is it is characterised in that described step:When pulse width in target logic code section When degree is not equal to the carrier pulse normal width that agreement specifies, determines in described target logic code section and comprise disturbing pulse, this step Suddenly specifically include:
Judge the carrier pulse normal width that in described target logic code section, whether pulse width specifies less than agreement;
When the carrier pulse normal width that pulse width in described target logic code section specifies less than agreement, determine target logic Described pulse in code section is disturbing pulse;
When the carrier pulse normal width that pulse width in described target logic code section specifies more than agreement, determine target logic Described pulse in code section is the carrier pulse carrying disturbing pulse.
3. a kind of cancellation element for receiving terminal is received with disturbing pulse in infrared remote control protocol-encoded data pulse, it is special Levy and be, including:
Valid data pulse determining unit, for determining multiple logic code sections in valid data pulse;
Disturbing pulse determining unit, for when in target logic code section pulse width be not equal to the carrier pulse standard that agreement specifies During width, determine in described target logic code section and comprise disturbing pulse;
Disturbing pulse culling unit, obtains effective carrier pulse for rejecting disturbing pulse in described target logic code section.
4. cancellation element according to claim 3 is it is characterised in that described disturbing pulse determining unit includes:Judge single Unit, the first determining unit, the second determining unit;
Described judging unit, for judging the carrier pulse that in described target logic code section, whether pulse width specifies less than agreement Normal width;
Described first determining unit, for the carrier pulse mark specifying less than agreement when pulse width in described target logic code section During quasi- width, determine that the described pulse in target logic code section is disturbing pulse;
Described second determining unit, for the carrier pulse mark specifying more than agreement when pulse width in described target logic code section During quasi- width, determine that the described pulse in target logic code section is the carrier pulse carrying disturbing pulse.
5. a kind of display receiving terminal is it is characterised in that described display receiving terminal includes:Infrared remote-receiver and right Require the arbitrary described elimination dress for receiving terminal is received with disturbing pulse in infrared remote control protocol-encoded data pulse of 3-4 Put, wherein, after described infrared remote-receiver receives infrared remote control protocol-encoded data pulse, described cancellation element is to infrared Disturbing pulse in Remoting Protocol coded data pulse is judged and is rejected.
CN201610945387.7A 2016-10-26 2016-10-26 Method and device for removing interference pulse in infrared remote control data Withdrawn CN106448129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610945387.7A CN106448129A (en) 2016-10-26 2016-10-26 Method and device for removing interference pulse in infrared remote control data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610945387.7A CN106448129A (en) 2016-10-26 2016-10-26 Method and device for removing interference pulse in infrared remote control data

Publications (1)

Publication Number Publication Date
CN106448129A true CN106448129A (en) 2017-02-22

Family

ID=58178324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610945387.7A Withdrawn CN106448129A (en) 2016-10-26 2016-10-26 Method and device for removing interference pulse in infrared remote control data

Country Status (1)

Country Link
CN (1) CN106448129A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269392A (en) * 2018-01-10 2018-07-10 青岛海信电器股份有限公司 The coding/decoding method and device of a kind of IR remote controller
CN111968361A (en) * 2020-08-31 2020-11-20 成都埃克思智创科技有限公司 Infrared repeated code learning method and infrared remote control system applied to Internet of things
CN112133079A (en) * 2019-06-25 2020-12-25 深圳拓邦股份有限公司 Infrared detection circuit and method
CN114973630A (en) * 2022-05-25 2022-08-30 深圳市易优电气有限公司 Anti-interference execution method, device and equipment for infrared signal instruction and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234383A1 (en) * 2005-12-20 2007-10-04 Smk Corporation Method for communicating infrared remote control data and learning infrared remote control device
CN101465050A (en) * 2007-12-19 2009-06-24 深圳Tcl新技术有限公司 Method for controlling controlled electric appliance through remote controller and remote controller
CN101697249A (en) * 2009-11-02 2010-04-21 中兴通讯股份有限公司 Method and device for decoding infrared remote control signals
CN102467816A (en) * 2010-11-18 2012-05-23 深圳艾科创新微电子有限公司 Infrared remote control signal decoding method and device
CN102945596A (en) * 2012-10-31 2013-02-27 四川长虹电器股份有限公司 Signal reception method of remote controller
CN103729998A (en) * 2013-12-09 2014-04-16 乐视致新电子科技(天津)有限公司 Decoding method and device
CN105118285A (en) * 2015-09-25 2015-12-02 广州视睿电子科技有限公司 Anti-interference infrared remote control decoding method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234383A1 (en) * 2005-12-20 2007-10-04 Smk Corporation Method for communicating infrared remote control data and learning infrared remote control device
CN101465050A (en) * 2007-12-19 2009-06-24 深圳Tcl新技术有限公司 Method for controlling controlled electric appliance through remote controller and remote controller
CN101697249A (en) * 2009-11-02 2010-04-21 中兴通讯股份有限公司 Method and device for decoding infrared remote control signals
CN102467816A (en) * 2010-11-18 2012-05-23 深圳艾科创新微电子有限公司 Infrared remote control signal decoding method and device
CN102945596A (en) * 2012-10-31 2013-02-27 四川长虹电器股份有限公司 Signal reception method of remote controller
CN103729998A (en) * 2013-12-09 2014-04-16 乐视致新电子科技(天津)有限公司 Decoding method and device
CN105118285A (en) * 2015-09-25 2015-12-02 广州视睿电子科技有限公司 Anti-interference infrared remote control decoding method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269392A (en) * 2018-01-10 2018-07-10 青岛海信电器股份有限公司 The coding/decoding method and device of a kind of IR remote controller
CN108269392B (en) * 2018-01-10 2020-12-04 海信视像科技股份有限公司 Decoding method and device for infrared remote controller
CN112133079A (en) * 2019-06-25 2020-12-25 深圳拓邦股份有限公司 Infrared detection circuit and method
CN112133079B (en) * 2019-06-25 2024-04-30 深圳拓邦股份有限公司 Infrared detection circuit and method
CN111968361A (en) * 2020-08-31 2020-11-20 成都埃克思智创科技有限公司 Infrared repeated code learning method and infrared remote control system applied to Internet of things
CN114973630A (en) * 2022-05-25 2022-08-30 深圳市易优电气有限公司 Anti-interference execution method, device and equipment for infrared signal instruction and storage medium
CN114973630B (en) * 2022-05-25 2024-02-02 深圳市易优电气有限公司 Anti-interference execution method, device, equipment and storage medium for infrared signal instruction

Similar Documents

Publication Publication Date Title
CN106448129A (en) Method and device for removing interference pulse in infrared remote control data
US5506715A (en) Lighting system having a remotely controlled electric lamp and an infrared remote controller with improved infrared filter
CN102354443B (en) Wireless infrared (IR) remote control device and operating method thereof
CN103488172A (en) Automatic working system and control method thereof
US20090189776A1 (en) Method for communicating information by Infrared rays between a transmitter and a receiver in a home-automation network
CN101465050B (en) Method for controlling controlled electric appliance through remote controller and remote controller
Bai et al. Use of ultrasonic signal coding and PIR sensors to enhance the sensing reliability of an embedded surveillance system
CN103941304A (en) Device for detecting state of air door
CN110118964A (en) Infrared target object tracking detection method, electronic controller and system
CN202454028U (en) Fire early warning system
CN208432734U (en) A kind of obstacle detector and robot based on infrared modulated
JPH053588A (en) Infrared ray data transmission/reception system
CN118097927A (en) Decoding test equipment for infrared remote controller
CN101964768A (en) Adaptive infrared anti-jamming transmission method
CN113119128A (en) Robot, operation control method thereof, electronic device, and storage medium
CN210222247U (en) Infrared target object tracking and detecting system
JP2010531431A (en) Method and apparatus for determining the location of a communication source and a mobile communication system using such an apparatus
CN202758482U (en) Control code study lamp
CN111091702A (en) Self-learning infrared decoding method, device and system based on pulse width detection
CN107040806A (en) Remote control anti-interference control method and device
CN201096522Y (en) Open flame detector
CN204667187U (en) Intelligent opto-electrical controls sand table model dolly collision avoidance system
JP4325545B2 (en) Non-contact IC card reader / writer
CN107940670A (en) Opening-closing structure control method, air conditioner and the readable storage medium storing program for executing of air conditioner
CN104674440B (en) Recognition methods and the device of the weft yarn signal in air-jet loom

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20170222

WW01 Invention patent application withdrawn after publication