CN103729998A - Decoding method and device - Google Patents

Decoding method and device Download PDF

Info

Publication number
CN103729998A
CN103729998A CN201310666566.3A CN201310666566A CN103729998A CN 103729998 A CN103729998 A CN 103729998A CN 201310666566 A CN201310666566 A CN 201310666566A CN 103729998 A CN103729998 A CN 103729998A
Authority
CN
China
Prior art keywords
pulse signal
counter
predetermined threshold
threshold value
value
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.)
Pending
Application number
CN201310666566.3A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201310666566.3A priority Critical patent/CN103729998A/en
Publication of CN103729998A publication Critical patent/CN103729998A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Optical Communication System (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention provides a decoding method and device, relates to the field of electronic technique and aims to improve the accuracy rate of triggering of an infrared remote controller. The decoding method comprises the following steps: in a first state of a first pulse signal corresponding to the period of a first preset threshold, starting a first counter, wherein the first state comprises the rising edge or the falling edge of the first pulse signal, and the first pulse signal is sent by control equipment; in a second state of the first pulse signal, closing the first counter, wherein the second state is opposite to and adjacent with the first state; if the value of the first counter is less than or equal to a second preset threshold, or the value of the first counter is greater than the second preset threshold and less than or equal to the first preset threshold, decoding the first pulse signal.

Description

A kind of coding/decoding method and device
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of coding/decoding method and device.
Background technology
In recent years, infrared remote controller has been widely used in various electronic equipments.Infrared remote controller can, by learning to realize the distant control function to various electronic equipments, not only facilitate but also time saving and energy saving.
In prior art, infrared remote controller is infrared pulse signal by carrier modulation by original data signal modulation, and by the transmitter of infrared remote controller, this infrared pulse signal is emitted to the infrared remote receiver of electronic equipment, the infrared remote receiver of electronic equipment receives after this infrared pulse signal by bandpass filter, again by this infrared pulse signal demodulation, last electronic equipment is decoded this infrared pulse signal after demodulation, make it revert to original data-signal, thereby electronic equipment can operate accordingly according to this data-signal.
But, in the process of electronic equipment demodulation infrared pulse signal, because other infrared pulse signals of the frequency range that meets bandpass filter also can be received by the infrared remote receiver of electronic equipment, therefore, these other infrared pulse signals can produce and disturb the infrared pulse signal of infrared remote controller transmitting, thereby cause the infrared remote receiver infrared pulse signal that correctly demodulation receives of electronic equipment, and then affect electronic equipment this infrared pulse signal after to demodulation and decode, reduced the accuracy rate that infrared remote controller triggers.
Summary of the invention
Embodiments of the invention provide a kind of coding/decoding method and device, can improve the accuracy rate that infrared remote controller triggers.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, embodiments of the invention provide a kind of coding/decoding method, within the cycle of the first predetermined threshold value, comprising:
At the first state of first pulse signal corresponding with the cycle of described the first predetermined threshold value, open the first counter, described the first state comprises the rising edge of described the first pulse signal or the negative edge of described the first pulse signal, and wherein, described the first pulse signal is that opertaing device sends;
At the second state of described the first pulse signal, close described the first counter, described the second state is and described the first opposite states and adjacent state;
If the value of described the first counter is less than or equal to the second predetermined threshold value, or the value of described the first counter is greater than described the second predetermined threshold value and is less than or equal to described the first predetermined threshold value, described the first pulse signal decoded.
In the possible implementation of the first of first aspect, before described unlatching the first counter, described method also comprises:
Receive infrared pulse signal, described infrared pulse signal comprises N described the first pulse signal, N >=1;
Wherein, in the cycle of each described the first predetermined threshold value in the cycle of N described first predetermined threshold value corresponding with individual described the first pulse signal difference of N, carry out described coding/decoding method.
In conjunction with the possible implementation of the first of aforesaid first aspect or first aspect, in the possible implementation of the second,
If the value of described the first counter is less than or equal to the second predetermined threshold value, in described the first pulse signal, the second pulse signal take the value of described the first counter as pulse width is as disturbing pulse signal, wherein, within the cycle of described the first predetermined threshold value, the number of described disturbing pulse signal is less than or equal to 10.
In conjunction with the possible implementation of the second of first aspect, in the third possible implementation, described described the first pulse signal is decoded before, described method also comprises:
The value of described the first counter and described the second predetermined threshold value are compared;
If the value of described the first counter is greater than described the second predetermined threshold value, the value of described the first counter and described the first predetermined threshold value are compared.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, described method also comprises:
If the value of described the first counter is greater than described the first predetermined threshold value, abandon described the first pulse signal.
Second aspect, embodiments of the invention provide a kind of decoding device, comprising:
Control module, for within the cycle of the first predetermined threshold value, at the first state of first pulse signal corresponding with the cycle of described the first predetermined threshold value, open the first counter, described the first state comprises the rising edge of described the first pulse signal or the negative edge of described the first pulse signal, and at the second state of described the first pulse signal, close described the first counter, described the second state is and described the first opposite states and adjacent state, wherein, described the first pulse signal is that opertaing device sends;
Decoding unit, if be less than or equal to the second predetermined threshold value for the value of described the first counter, or the value of described the first counter is greater than described the second predetermined threshold value and is less than or equal to described the first predetermined threshold value, described the first pulse signal decoded.
In the possible implementation of the first of second aspect, described decoding device also comprises receiving element;
Described receiving element, before opening the first counter at described control module, receives infrared pulse signal, and described infrared pulse signal comprises N described the first pulse signal, wherein, and N >=1.
In conjunction with the possible implementation of the first of aforesaid second aspect or second aspect, in the possible implementation of the second,
If the value of described the first counter is less than or equal to the second predetermined threshold value, in described the first pulse signal, the second pulse signal take the value of described the first counter as pulse width is as disturbing pulse signal, wherein, within the cycle of described the first predetermined threshold value, the number of described disturbing pulse signal is less than or equal to 10.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, described decoding device also comprises comparing unit;
Described comparing unit, for before described decoding unit is decoded to described the first pulse signal, the value of described the first counter and described the second predetermined threshold value are compared, if and the value of described the first counter is greater than described the second predetermined threshold value, the value of described the first counter and described the first predetermined threshold value are compared.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation,
Described decoding unit, if be also greater than described the first predetermined threshold value for the value of more described the first counter of described comparing unit, abandons described the first pulse signal.
Embodiments of the invention provide a kind of coding/decoding method and device, by the first state of the first pulse signal corresponding with the cycle of the first predetermined threshold value, open the first counter, this first state comprises the rising edge of this first pulse signal or the negative edge of this first pulse signal, wherein, this first pulse signal is that opertaing device sends, and at the second state of this first pulse signal, close this first counter, this second state is and the first opposite states and adjacent state, if and the value of this first counter is less than or equal to the second predetermined threshold value, or the value of this first counter is greater than this second predetermined threshold value and is less than or equal to this first predetermined threshold value, this first pulse signal is decoded.By this scheme, because electronic equipment is in the process of the infrared pulse signal decoding to its reception, electronic equipment can be by judging the disturbing pulse signal in this infrared pulse signal, and this disturbing pulse signal is ignored, to make electronic equipment continue this infrared pulse signal to decode, after decoding completes, electronic equipment is carried out corresponding operation, thereby has improved the accuracy rate that infrared remote controller triggers.
Accompanying drawing explanation
The process flow diagram one of a kind of coding/decoding method that Fig. 1 provides for the embodiment of the present invention;
The flowchart 2 of a kind of coding/decoding method that Fig. 2 provides for the embodiment of the present invention;
The oscillogram of the infrared pulse signal of the infrared remote controller transmitting that Fig. 3 provides for the embodiment of the present invention;
The oscillogram one of the first pulse signal of the infrared remote controller transmitting that Fig. 4 provides for the embodiment of the present invention;
The oscillogram two of the first pulse signal of the infrared remote controller transmitting that Fig. 5 provides for the embodiment of the present invention;
The structural representation one of a kind of decoding device that Fig. 6 provides for the embodiment of the present invention;
The structural representation two of a kind of decoding device that Fig. 7 provides for the embodiment of the present invention;
The structural representation three of a kind of decoding device that Fig. 8 provides for the embodiment of the present invention;
The structural representation of a kind of electronic equipment that Fig. 9 provides for the embodiment of the present invention.
Embodiment
A kind of coding/decoding method and the device that the embodiment of the present invention are provided below in conjunction with accompanying drawing are described in detail.
Infrared remote controller is infrared pulse signal by carrier modulation by original data signal modulation, and by the transmitter of infrared remote controller, this infrared pulse signal is emitted to the infrared remote receiver of electronic equipment, the infrared remote receiver of electronic equipment receives after this infrared pulse signal by bandpass filter, again by this infrared pulse signal demodulation, last electronic equipment is decoded this infrared pulse signal after demodulation, make it revert to original data-signal, thereby electronic equipment can operate accordingly according to this data-signal.
In prior art, the general carrier modulation of using 38 KHz of infrared remote controller is infrared pulse signal by original data signal modulation, the infrared remote receiver of electronic equipment use 35 KHz to band-pass filter 35 KHz of 40 KHz to 40 KHz beyond the infrared pulse signal of frequency range, i.e. disturbing pulse signal.Because the bandwidth of the bandpass filter of electronic equipment is that 35 KHz are to 40 KHz, therefore, in 35 KHz, to the infrared pulse signal of 40 KHz frequency ranges, by the receiver of electronic equipment, received, cause the infrared remote receiver of electronic equipment not only to receive the infrared pulse signal of infrared remote controller transmitting, also other infrared pulse signals have been received, thereby make the infrared pulse signal of infrared remote controller transmitting disturbed, and then electronic equipment cannot normally be decoded.
In the embodiment of the present invention, electronic equipment is in the process of the infrared pulse signal decoding in each pulse width of infrared remote controller transmitting, electronic equipment first differentiates whether there is disturbing pulse signal, if there is disturbing pulse signal, electronic equipment is ignored this disturbing pulse signal, to make electronic equipment can proceed decoding.In the embodiment of the present invention, pulse width is called to the cycle of the first predetermined threshold value, the infrared pulse signal of this pulse width is called to the first pulse signal.The coding/decoding method of the first pulse signal within the cycle of first predetermined threshold value is described in detail in the following embodiments.
Embodiment mono-
Embodiments of the invention provide a kind of coding/decoding method, and as shown in Figure 1, the method can comprise:
S101, electronic equipment are at the first state of first pulse signal corresponding with the cycle of the first predetermined threshold value, open the first counter, this first state comprises the rising edge of this first pulse signal or the negative edge of this first pulse signal, and wherein, this first pulse signal is that opertaing device sends.
When first pulse signal corresponding with the cycle of the first predetermined threshold value arrives the first state, electronic equipment is opened the first counter, this first state comprises the rising edge of the first pulse signal or the negative edge of the first pulse signal, wherein, this first pulse signal is that electronic equipment receives from opertaing device.
It should be noted that, in the embodiment of the present invention, the waveform of the first pulse signal can be square wave, this square wave has rising and the two kinds of forms that decline, so, by the rising of the waveform of the first pulse signal and decline, be called the rising edge of the first pulse and the negative edge of the first pulse signal.
Optionally, opertaing device can be infrared remote controller.
Infrared remote controller is by its infrared transmitter, signal to be changed into sightless infrared pulse signal to send out, then by the infrared remote receiver of the equipment of remote control, received infrared pulse signal, and being changed into original signal, this original signal control is operated accordingly by the equipment of remote control.Wherein, in the embodiment of the present invention, by the equipment of remote control, be electronic equipment.
Be understandable that, because the first predetermined threshold value is pulse width during noiseless pulse signal in the first pulse signal, therefore, this first predetermined threshold value is the time.
S102, electronic equipment, at the second state of this first pulse signal, close this first counter, and this second state is and this first opposite states and adjacent state.
After electronic equipment is opened the first counter, when first pulse signal corresponding with the cycle of the first predetermined threshold value arrives the second state, electronic equipment cuts out this first counter, and this second state is and the first opposite states and adjacent state.
It should be noted that, the first state can be the rising edge of the first pulse signal, can be also the negative edge of the first pulse signal.When the first state is the rising edge of the first pulse signal, the second state is the negative edge of first pulse signal adjacent with the first state; When the first state is the negative edge of the first pulse signal, the second state is the rising edge of first pulse signal adjacent with the first state.
Be understandable that, from the first counter, be opened to the first counter and close, the first counter records the pulse width in the first pulse signal.
If the value of this first counter of S103 is less than or equal to the second predetermined threshold value, or the value of this first counter is greater than this second predetermined threshold value and is less than or equal to this first predetermined threshold value, and electronic equipment is decoded to this first pulse signal.
Electronic equipment is after cutting out the first counter, and electronic equipment records the value of this first counter, if the value of this first counter is less than or equal to the second predetermined threshold value, electronic equipment is proceeded decoding to this first pulse signal; Or if the value of this first counter is greater than this second predetermined threshold value and is less than or equal to this first predetermined threshold value, electronic equipment is decoded to the first pulse signal to continuing.
Especially, the value of this first counter be electronic equipment when the first pulse signal is decoded, the pulse width of the first pulse signal.
It should be noted that, the second predetermined threshold value be developer rule of thumb and the threshold value of a pulse width set of experiment, this second predetermined threshold value is to judge a threshold value that whether has disturbing pulse signal in this first pulse signal.If the value of the first counter is less than this second predetermined threshold value, the value take the first counter of this first pulse signal as a pulse of pulse width be disturbing pulse signal, so electronic equipment can be ignored this interfere information, and continue this first pulse signal to decode; Or, if the value of this first counter is greater than this second predetermined threshold value and is less than or equal to this first predetermined threshold value, the value take this first counter in the first pulse signal as a pulse of pulse width be not disturbing pulse signal, so electronic equipment can continue the first pulse signal to decode.
Embodiments of the invention provide a kind of coding/decoding method, by the first state of the first pulse signal corresponding with the cycle of the first predetermined threshold value, open the first counter, this first state comprises the rising edge of this first pulse signal or the negative edge of this first pulse signal, wherein, this first pulse signal is that opertaing device sends, and at the second state of this first pulse signal, close this first counter, this second state is and the first opposite states and adjacent state, if and the value of this first counter is less than or equal to the second predetermined threshold value, or the value of this first counter is greater than this second predetermined threshold value and is less than or equal to this first predetermined threshold value, this first pulse signal is decoded.By this scheme, because electronic equipment is in the process of the infrared pulse signal decoding to its reception, electronic equipment can be by judging the disturbing pulse signal in this infrared pulse signal, and this disturbing pulse signal is ignored, to make electronic equipment continue this infrared pulse signal to decode, after decoding completes, electronic equipment is carried out corresponding operation, thereby has improved the accuracy rate that infrared remote controller triggers.
Embodiment bis-
Embodiments of the invention provide a kind of coding/decoding method, and as shown in Figure 2, the method can comprise:
S201, electronic equipment receive the infrared pulse signal from opertaing device, and this infrared pulse signal comprises N the first pulse signal, N >=1.
As shown in Figure 3, electronic equipment receives infrared pulse signal, and this infrared pulse signal is comprised of N the first pulse signal, and this infrared pulse signal is that opertaing device sends, wherein, and N >=1.
Optionally, opertaing device can be infrared remote controller.
Infrared remote controller is by its infrared transmitter, signal to be changed into sightless infrared pulse signal to send out, then by the infrared remote receiver of the equipment of remote control, received infrared pulse signal, and being changed into original signal, this original signal control is operated accordingly by the equipment of remote control.Wherein, in the embodiment of the present invention, by the equipment of remote control, be electronic equipment.
In the embodiment of the present invention, when user controls electronic equipment with infrared remote controller, user can be by the button of infrared remote controller, make infrared remote controller that the infrared pulse signal after the carrier modulation corresponding with this button is emitted to electronic equipment, this electronic equipment is decoded this infrared pulse signal and is carried out the operation corresponding with this button, wherein, this infrared pulse signal comprises N the first pulse signal.
S202, electronic equipment, at the first state of first pulse signal corresponding with the cycle of the first predetermined threshold value, open the first counter, and this first state comprises the rising edge of this first pulse signal or the negative edge of this first pulse signal.
When first pulse signal corresponding with the cycle of the first predetermined threshold value arrives the first state, electronic equipment is opened the first counter, this first state comprises the rising edge of the first pulse signal or the negative edge of the first pulse signal, wherein, this first pulse signal is that electronic equipment receives from opertaing device.
It should be noted that, as shown in Figure 3, in the embodiment of the present invention, the waveform of the first pulse signal can be square wave, this square wave has rising and the two kinds of forms that decline, so, by the rising of the waveform of the first pulse signal and decline, be called the rising edge of the first pulse and the negative edge of the first pulse signal.
Be understandable that, due to as shown in Figure 4, the first predetermined threshold value is pulse width during noiseless pulse signal in the first pulse signal, and therefore, this first predetermined threshold value is the time.
S203, electronic equipment, at the second state of this first pulse signal, close this first counter, and this second state is and this first opposite states and adjacent state.
After electronic equipment is opened the first counter, when first pulse signal corresponding with the cycle of the first predetermined threshold value arrives the second state, electronic equipment cuts out this first counter, and this second state is and the first opposite states and adjacent state.
It should be noted that, the first state can be the rising edge of the first pulse signal, can be also the negative edge of the first pulse signal.When the first state is the rising edge of the first pulse signal, the second state is the negative edge of first pulse signal adjacent with the first state; When the first state is the negative edge of the first pulse signal, the second state is the rising edge of first pulse signal adjacent with the first state.
Be understandable that, from the first counter, be opened to the first counter and close, the first counter records the pulse width of the first pulse signal.
Exemplary, as shown in Figure 4, t1, t2, t3 are the value of the first counter, wherein, t1 is the value of first counter of the first pulse signal during from 1 state to 2 state, t2 is the value of first counter of the first pulse signal during from 2 states to 3 state, and t3 is the value of first counter of the first pulse signal during from 3 states to 4 state.If the first state is 1 state, i.e. rising edge, with this first opposite states be negative edge, as can be known from Fig. 4, the negative edge adjacent with this rising edge is 2 states.Therefore, electronic equipment, when 1 state, is opened the first counter; Electronic equipment, when 2 state, cuts out this first counter.Now, the value of this first counter is t2.
S204, electronic equipment compare the value of this first counter and this second predetermined threshold value.
After electronic equipment cuts out the first counter, electronic equipment records the value of this first counter, and the value of this first counter and this second predetermined threshold value are compared.
It should be noted that, electronic equipment can the value of the first counter and the comparative result of this second predetermined threshold value, judges in the first pulse signal, whether there is disturbing pulse signal, thereby determines whether electronic equipment will decode to this first counter.
If the value of this first counter of S205 is less than or equal to the second predetermined threshold value, electronic equipment is decoded to this first pulse signal.
It should be noted that, the second predetermined threshold value be developer rule of thumb and the threshold value of a pulse width set of experiment, this second predetermined threshold value is to judge a threshold value that whether has disturbing pulse signal in this first pulse signal.The empirical value of the second predetermined threshold value can be 0.1 millisecond, and the second predetermined threshold value can have and has certain error, as 0.01 millisecond.If the value of this first counter is less than or equal to the second predetermined threshold value+error, electronic equipment thinks that the value of this first counter is less than or equal to the second predetermined threshold value; On the contrary, electronic equipment thinks that the value of this first counter is greater than the second predetermined threshold value.
Electronic equipment compares the value of the first counter and the second predetermined threshold value, if the value of the first counter is less than or equal to the second predetermined threshold value, in the first pulse signal, the second pulse signal take the value of this first counter as pulse width is as disturbing pulse signal, electronic equipment is ignored this disturbing pulse signal, and continues this first pulse signal to decode.
Further, in the embodiment of the present invention, within the cycle of the first predetermined threshold value, the number of this disturbing pulse signal is less than or equal to 10.Some numbers of disturbing pulse signal are less than 10, think that the disturbing pulse signal in this first pulse signal is less, and electronic equipment is higher to the decoded accuracy rate of this first pulse signal; Some numbers of disturbing pulse signal are greater than 10, think that the disturbing pulse signal in this first pulse signal is more, now, electronic equipment there will be larger error to the decoding of this first pulse signal, therefore, when the number of disturbing pulse signal is less than or equal to 10, electronic equipment just can be ignored this disturbing pulse signal, continues the first pulse signal to decode.
Exemplary, as shown in Figure 4, if the value of this first counter is t2, t2 value is 0.02 millisecond, the second predetermined threshold value is 0.1 millisecond, because 0.2 microsecond is less than (0.1+0.01) millisecond, therefore, the first pulse signal in Fig. 4 is disturbing pulse signal from 2 states (negative edge) to the pulse signal of 3 states (rising edge).Electronic equipment is ignored this disturbing pulse signal, continues this first pulse signal to decode.
If the value of this first counter of S206 is greater than this second predetermined threshold value, electronic equipment compares the value of this first counter and this first predetermined threshold value.
Electronic equipment compares the value of the first counter and the second predetermined threshold value, if the value of this first counter is greater than this second predetermined threshold value+error, electronic equipment compares the value of this first counter and this first predetermined threshold value.
It should be noted that, if the value of the first counter is greater than the second predetermined threshold value+error, think that the value of this first counter is greater than this second predetermined threshold value, so electronic equipment compares the value of this first counter and this first predetermined threshold value.Wherein, the first predetermined threshold value can be 10 milliseconds, and the first predetermined threshold value can have and has certain error, as 1 millisecond, if the value of this first counter is less than or equal to the first predetermined threshold value+error, electronic equipment thinks that the value of this first counter is less than or equal to the first predetermined threshold value, and on the contrary, electronic equipment thinks that the value of this first counter is greater than the first predetermined threshold value.
Exemplary, as shown in Figure 4, if the value of this first counter is t1, t1 value is 3 milliseconds, and the second predetermined threshold value is 0.1 millisecond, is greater than 0.1 millisecond due to 3 milliseconds, and therefore, electronic equipment compares the value of this first counter and the first predetermined threshold value.
If the value of this first counter of S207 is less than or equal to this first predetermined threshold value, electronic equipment is decoded to this first pulse signal.
When the value of the first counter is greater than this second predetermined threshold value, electronic equipment compares the value of this first counter and the first predetermined threshold value, if the value of this first counter is less than or equal to this first predetermined threshold value, electronic equipment is decoded to this first pulse signal.
It should be noted that, when the value of the first counter is greater than this second predetermined threshold value, if the value of this first counter is less than or equal to this first predetermined threshold value, the original infrared pulse signal take the value of this first counter as pulse signal noiseless pulse signal in the first pulse signal of pulse width, electronic equipment can continue the first pulse signal to decode.
Exemplary, as shown in Figure 4, if the value of this first counter is t1, t1 value is 3 milliseconds, suppose that the second predetermined threshold value is 100 microseconds, the first predetermined threshold value is 10 milliseconds, be greater than 0.1 millisecond due to 3 milliseconds, and 3 milliseconds are less than (10+1) millisecond, therefore, the first pulse signal in Fig. 4 is the original infrared pulse signal of noiseless pulse signal the first pulse signal of receiving of electronic equipment from 1 state (rising edge) to the pulse signal of 2 states (negative edge), so electronic equipment continues this first pulse signal to decode.
If the value of this first counter of S208 is greater than this first predetermined threshold value, electronic equipment abandons this first pulse signal.
When the value of the first counter is greater than this second predetermined threshold value, electronic equipment compares the value of this first counter and the first predetermined threshold value, if the value of this first counter is greater than this first predetermined threshold value, electronic equipment abandons this first pulse signal.
It should be noted that, if the value of this first counter is greater than this first predetermined threshold value, be not the pulse signal within the cycle of the first predetermined threshold value take the value of this first counter as the pulse signal of pulse width, and electronic equipment can abandon this first pulse signal.
Exemplary, as shown in Figure 5, if the value of this first counter is t, t value is 12 milliseconds, supposes that the first predetermined threshold value is 10 milliseconds, is greater than 10 milliseconds due to 12 milliseconds, therefore, the first pulse signal in Fig. 5 is not the pulse signal within the cycle of the first predetermined threshold value from 1 state (rising edge) to the pulse signal of 2 states (negative edge), so electronic equipment abandons this first pulse signal.
It should be noted that, as shown in Figure 3, the infrared pulse signal that electronic equipment receives comprises N the first pulse signal, in the cycle of each first predetermined threshold value of electronic equipment in the cycle of N first predetermined threshold value corresponding with individual the first pulse signal difference of N, carry out respectively coding/decoding method S202-S208.
Embodiments of the invention provide a kind of coding/decoding method, by the first state of the first pulse signal corresponding with the cycle of the first predetermined threshold value, open the first counter, this first state comprises the rising edge of this first pulse signal or the negative edge of this first pulse signal, wherein, this first pulse signal is that opertaing device sends, and at the second state of this first pulse signal, close this first counter, this second state is and the first opposite states and adjacent state, if and the value of this first counter is less than or equal to the second predetermined threshold value, or the value of this first counter is greater than this second predetermined threshold value and is less than or equal to this first predetermined threshold value, this first pulse signal is decoded.By this scheme, because electronic equipment is in the process of the infrared pulse signal decoding to its reception, electronic equipment can be by judging the disturbing pulse signal in this infrared pulse signal, and this disturbing pulse signal is ignored, to make electronic equipment continue this infrared pulse signal to decode, after decoding completes, electronic equipment is carried out corresponding operation, thereby has improved the accuracy rate that infrared remote controller triggers.
Embodiment tri-
As shown in Figure 6, embodiments of the invention provide a kind of decoding device 1, and this decoding device 1 can comprise:
Control module 10, for within the cycle of the first predetermined threshold value, at the first state of first pulse signal corresponding with the cycle of described the first predetermined threshold value, open the first counter, described the first state comprises the rising edge of described the first pulse signal or the negative edge of described the first pulse signal, and at the second state of described the first pulse signal, close described the first counter, described the second state is and described the first opposite states and adjacent state, wherein, described the first pulse signal is that opertaing device sends.
Decoding unit 11, if be less than or equal to the second predetermined threshold value for the value of described the first counter, or the value of described the first counter is greater than described the second predetermined threshold value and is less than or equal to described the first predetermined threshold value, described the first pulse signal decoded.
Optionally, as shown in Figure 7, described decoding device also comprises receiving element 12, described receiving element 12, before opening the first counter at described control module 10, receives infrared pulse signal, described infrared pulse signal comprises N described the first pulse signal, wherein, and N >=1.
Optionally, if the value of described the first counter is less than or equal to the second predetermined threshold value, in described the first pulse signal, the second pulse signal take the value of described the first counter as pulse width is as disturbing pulse signal, wherein, within the cycle of described the first predetermined threshold value, the number of described disturbing pulse signal is less than or equal to 10.
Optionally, as shown in Figure 8, described decoding device also comprises comparing unit 13, described comparing unit 13, for before described decoding unit 11 is decoded to described the first pulse signal, the value of described the first counter and described the second predetermined threshold value are compared, and if the value of described the first counter be greater than described the second predetermined threshold value, the value of described the first counter and described the first predetermined threshold value are compared.
Optionally, described decoding unit 11, if be also greater than described the first predetermined threshold value for the value of more described the first counter of described comparing unit 13, abandons described the first pulse signal.
The decoding device that the embodiment of the present invention provides can be intelligent display device, and wherein, this intelligent display device can comprise that intelligent television, smart mobile phone and panel computer etc. can receive the equipment of the infrared signal of Infrared remote controller transmitting.
Embodiments of the invention provide a kind of decoding device, this decoding device is by the first state at first pulse signal corresponding with the cycle of the first predetermined threshold value, open the first counter, this first state comprises the rising edge of this first pulse signal or the negative edge of this first pulse signal, wherein, this first pulse signal is that opertaing device sends, and this decoding device is at the second state of this first pulse signal, close this first counter, this second state is and the first opposite states and adjacent state, if and the value of this first counter is less than or equal to the second predetermined threshold value, or the value of this first counter is greater than this second predetermined threshold value and is less than or equal to this first predetermined threshold value, this decoding device is decoded to this first pulse signal.By this scheme, because this decoding device is in the process of the infrared pulse signal decoding to its reception, this decoding device can be by judging the disturbing pulse signal in this infrared pulse signal, and this disturbing pulse signal is ignored, to make this decoding device continue this infrared pulse signal to decode, after decoding completes, electronic equipment is carried out corresponding operation, thereby has improved the accuracy rate that infrared remote controller triggers.
Embodiment tetra-
As shown in Figure 9, embodiments of the invention provide a kind of electronic equipment, and this display device can comprise: processor 20, storer 21 and system bus 22, wherein,
Between processor 20 and storer 21, by system bus 22, connect and complete mutual communication.
Processor 20 may be monokaryon or multinuclear CPU (central processing unit), or is specific integrated circuit, or for being configured to implement one or more integrated circuit of the embodiment of the present invention.
Storer 21 can be high-speed RAM storer, can be also nonvolatile memory (non-volatile memory), for example at least one magnetic disk memory.
Storer 21 is for the execution instruction of store electrons equipment.Concrete, in the execution instruction of electronic equipment, can comprise value and the software program of the first counter.
Concrete, described processor 20, be used in the cycle of the first predetermined threshold value, at the first state of first pulse signal corresponding with the cycle of described the first predetermined threshold value, by described system bus 22, open the first counter, described the first state comprises the rising edge of described the first pulse signal or the negative edge of described the first pulse signal, and at the second state of described the first pulse signal, by described system bus 22, close described the first counter, described the second state is and described the first opposite states and adjacent state, wherein, described the first pulse signal is that opertaing device sends, if and the value of described the first counter is less than or equal to the second predetermined threshold value, or the value of described the first counter is greater than described the second predetermined threshold value and is less than or equal to described the first predetermined threshold value, described the first pulse signal is decoded, described storer 21 can be used for storing the value of described the first counter, and control display device completes the software program of said process, thereby make described processor 20 by carrying out in described storer 21 the described software program of storage and calling the value of described the first counter, to complete said process.
Optionally, described processor 20, also, for before opening the first counter, receives infrared pulse signal, and described infrared pulse signal comprises N described the first pulse signal, wherein, and N >=1.
Optionally, if the value of described the first counter is less than or equal to the second predetermined threshold value, in described the first pulse signal, the second pulse signal take the value of described the first counter as pulse width is as disturbing pulse signal, wherein, within the cycle of described the first predetermined threshold value, the number of described disturbing pulse signal is less than or equal to 10.
Optionally, described processor 20, also for before described the first pulse signal is decoded, the value of described the first counter and described the second predetermined threshold value are compared, if and the value of described the first counter is greater than described the second predetermined threshold value, the value of described the first counter and described the first predetermined threshold value are compared.
Optionally, described processor 20, if be also greater than described the first predetermined threshold value for the value of described the first counter, abandons described the first pulse signal.
It should be noted that, the storer 21 that the embodiment of the present invention provides can comprise the first predetermined threshold value and the second predetermined threshold value.
The electronic equipment that the embodiment of the present invention provides can be intelligent display device, and wherein, this intelligent display device can comprise that intelligent television, smart mobile phone and panel computer etc. can receive the equipment of the infrared signal of Infrared remote controller transmitting.
Embodiments of the invention provide a kind of electronic equipment, this electronic equipment is by the first state at first pulse signal corresponding with the cycle of the first predetermined threshold value, open the first counter, this first state comprises the rising edge of this first pulse signal or the negative edge of this first pulse signal, wherein, this first pulse signal is that opertaing device sends, and this electronic equipment is at the second state of this first pulse signal, close this first counter, this second state is and the first opposite states and adjacent state, if and the value of this first counter is less than or equal to the second predetermined threshold value, or the value of this first counter is greater than this second predetermined threshold value and is less than or equal to this first predetermined threshold value, this electronic equipment is decoded to this first pulse signal.By this scheme, because this electronic equipment is in the process of the infrared pulse signal decoding to its reception, this electronic equipment can be by judging the disturbing pulse signal in this infrared pulse signal, and this disturbing pulse signal is ignored, to make this electronic equipment continue this infrared pulse signal to decode, after decoding completes, electronic equipment is carried out corresponding operation, thereby has improved the accuracy rate that infrared remote controller triggers.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only with the division of above-mentioned each functional module, be illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure that is about to device is divided into different functional modules, to complete all or part of function described above.The specific works process of the device of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed apparatus and method can realize by another way.For example, device embodiment described above is only schematic.
Described unit can or can not be also physically to separate, and the parts that show as unit can be a physical location or multiple physical location, can be positioned at a place, or also can be distributed to multiple different local.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this software product is stored in a storage medium, comprise that some instructions are in order to make an equipment (can be single-chip microcomputer, chip etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory, magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (10)

1. a coding/decoding method, is characterized in that, within the cycle of the first predetermined threshold value, described method comprises:
At the first state of first pulse signal corresponding with the cycle of described the first predetermined threshold value, open the first counter, described the first state comprises the rising edge of described the first pulse signal or the negative edge of described the first pulse signal, and wherein, described the first pulse signal is that opertaing device sends;
At the second state of described the first pulse signal, close described the first counter, described the second state is and described the first opposite states and adjacent state;
If the value of described the first counter is less than or equal to the second predetermined threshold value, or the value of described the first counter is greater than described the second predetermined threshold value and is less than or equal to described the first predetermined threshold value, described the first pulse signal decoded.
2. coding/decoding method according to claim 1, is characterized in that, before described unlatching the first counter, described method also comprises:
Receive infrared pulse signal, described infrared pulse signal comprises N described the first pulse signal, N >=1;
Wherein, in the cycle of each described the first predetermined threshold value in the cycle of N described first predetermined threshold value corresponding with individual described the first pulse signal difference of N, carry out described coding/decoding method.
3. coding/decoding method according to claim 1 and 2, is characterized in that,
If the value of described the first counter is less than or equal to the second predetermined threshold value, in described the first pulse signal, the second pulse signal take the value of described the first counter as pulse width is as disturbing pulse signal, wherein, within the cycle of described the first predetermined threshold value, the number of described disturbing pulse signal is less than or equal to 10.
4. coding/decoding method according to claim 3, is characterized in that, described described the first pulse signal is decoded before, described method also comprises:
The value of described the first counter and described the second predetermined threshold value are compared;
If the value of described the first counter is greater than described the second predetermined threshold value, the value of described the first counter and described the first predetermined threshold value are compared.
5. coding/decoding method according to claim 4, is characterized in that, described method also comprises:
If the value of described the first counter is greater than described the first predetermined threshold value, abandon described the first pulse signal.
6. a decoding device, is characterized in that, comprising:
Control module, for within the cycle of the first predetermined threshold value, at the first state of first pulse signal corresponding with the cycle of described the first predetermined threshold value, open the first counter, described the first state comprises the rising edge of described the first pulse signal or the negative edge of described the first pulse signal, and at the second state of described the first pulse signal, close described the first counter, described the second state is and described the first opposite states and adjacent state, wherein, described the first pulse signal is that opertaing device sends;
Decoding unit, if be less than or equal to the second predetermined threshold value for the value of described the first counter, or the value of described the first counter is greater than described the second predetermined threshold value and is less than or equal to described the first predetermined threshold value, described the first pulse signal decoded.
7. decoding device according to claim 6, is characterized in that, described decoding device also comprises receiving element;
Described receiving element, before opening the first counter at described control module, receives infrared pulse signal, and described infrared pulse signal comprises N described the first pulse signal, wherein, and N >=1.
8. according to the decoding device described in claim 6 or 7, it is characterized in that,
If the value of described the first counter is less than or equal to the second predetermined threshold value, in described the first pulse signal, the second pulse signal take the value of described the first counter as pulse width is as disturbing pulse signal, wherein, within the cycle of described the first predetermined threshold value, the number of described disturbing pulse signal is less than or equal to 10.
9. decoding device according to claim 8, is characterized in that, described decoding device also comprises comparing unit;
Described comparing unit, for before described decoding unit is decoded to described the first pulse signal, the value of described the first counter and described the second predetermined threshold value are compared, if and the value of described the first counter is greater than described the second predetermined threshold value, the value of described the first counter and described the first predetermined threshold value are compared.
10. decoding device according to claim 9, is characterized in that,
Described decoding unit, if be also greater than described the first predetermined threshold value for the value of more described the first counter of described comparing unit, abandons described the first pulse signal.
CN201310666566.3A 2013-12-09 2013-12-09 Decoding method and device Pending CN103729998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310666566.3A CN103729998A (en) 2013-12-09 2013-12-09 Decoding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310666566.3A CN103729998A (en) 2013-12-09 2013-12-09 Decoding method and device

Publications (1)

Publication Number Publication Date
CN103729998A true CN103729998A (en) 2014-04-16

Family

ID=50454050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310666566.3A Pending CN103729998A (en) 2013-12-09 2013-12-09 Decoding method and device

Country Status (1)

Country Link
CN (1) CN103729998A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106448129A (en) * 2016-10-26 2017-02-22 青岛海信电器股份有限公司 Method and device for removing interference pulse in infrared remote control data
CN107040806A (en) * 2017-04-12 2017-08-11 青岛海信电器股份有限公司 Remote control anti-interference control method and device
CN108958114A (en) * 2018-07-12 2018-12-07 四川赛科安全技术有限公司 It is built in MCU for realizing the hardware compression method of industrial bus communication
CN114973630A (en) * 2022-05-25 2022-08-30 深圳市易优电气有限公司 Anti-interference execution method, device and equipment for infrared signal instruction and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862616A (en) * 2005-05-14 2006-11-15 深圳市顶星数码网络技术有限公司 Television infrared remote-receiver for notebook computer and receiving method
US20070234383A1 (en) * 2005-12-20 2007-10-04 Smk Corporation Method for communicating infrared remote control data and learning infrared remote control device
CN101127156A (en) * 2006-08-17 2008-02-20 晨星半导体股份有限公司 Universal method for identifying remote control instruction and the related device
CN101193194A (en) * 2006-11-21 2008-06-04 青岛海信电器股份有限公司 Remote control decoding and fault tolerance method
CN101201970A (en) * 2007-10-23 2008-06-18 无锡市爱芯科微电子有限公司 Self-adaptive decoding method for wireless remote control receiving chip
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
CN102945596A (en) * 2012-10-31 2013-02-27 四川长虹电器股份有限公司 Signal reception method of remote controller

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862616A (en) * 2005-05-14 2006-11-15 深圳市顶星数码网络技术有限公司 Television infrared remote-receiver for notebook computer and receiving method
US20070234383A1 (en) * 2005-12-20 2007-10-04 Smk Corporation Method for communicating infrared remote control data and learning infrared remote control device
CN101127156A (en) * 2006-08-17 2008-02-20 晨星半导体股份有限公司 Universal method for identifying remote control instruction and the related device
CN101193194A (en) * 2006-11-21 2008-06-04 青岛海信电器股份有限公司 Remote control decoding and fault tolerance method
CN101201970A (en) * 2007-10-23 2008-06-18 无锡市爱芯科微电子有限公司 Self-adaptive decoding method for wireless remote control receiving chip
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
CN102945596A (en) * 2012-10-31 2013-02-27 四川长虹电器股份有限公司 Signal reception method of remote controller

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106448129A (en) * 2016-10-26 2017-02-22 青岛海信电器股份有限公司 Method and device for removing interference pulse in infrared remote control data
CN107040806A (en) * 2017-04-12 2017-08-11 青岛海信电器股份有限公司 Remote control anti-interference control method and device
CN108958114A (en) * 2018-07-12 2018-12-07 四川赛科安全技术有限公司 It is built in MCU for realizing the hardware compression method of industrial bus communication
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
CN101388142B (en) Instruction recognizing method of remote controller, recognizing apparatus and household appliances
EP3486771A1 (en) Prediction of applications to be preloaded based on observed user behaviour and the order of starting the applications
CN103729998A (en) Decoding method and device
CN102467816B (en) A kind of infrared remote control signal decoding method and device
JP2018517987A (en) Test for 50 nanosecond spike filter
US20170052514A1 (en) Method and computer software program for a smart home system
CN105261199A (en) Infrared data coding and decoding method and apparatus thereof
CN105025350A (en) Play terminal control method and play terminal
CN104639758A (en) Alarm clock control method and alarm clock control device applied to intelligent terminal
CN105022297A (en) Sound box parameter configuration method, mobile terminal, server and system
CN103648009A (en) Android system based infrared remote control responding method and device and smart television
CN113706851A (en) Remote controller infrared signal decoding method and device and remote controller
CN103164173A (en) Memory card and data storage method
CN104598192A (en) Information processing method and electronic equipment
CN114121131A (en) External flash self-adaption method, device, equipment and medium
US20150378427A1 (en) Apparatuses and methods of entering unselected memories into a different power mode during multi-memory operation
EP2782400A1 (en) NFC controller architecture for simultaneous emulation of multiple NFC technologies in one NFC listen device
CN103647914A (en) Method and device for timed wake-up after television turning-off
CN106569852A (en) Burning method and device
CN103888158A (en) Device and method with filtering for receiving low-frequency carrier waves
CN105025413A (en) Sound box parameter configuration method and mobile terminal
CN103714690A (en) Method and device for resolving physical codes from remote control coded pulses
CN104200826A (en) Audio signal playing method for mobile terminal and mobile terminal
CN103716688A (en) Information reporting method and device in television shutdown abnormality
EP4009724B1 (en) Terminal capability processing method, apparatus, and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20180608