CN104392600A - Method for storing by collecting different infrared frequencies - Google Patents

Method for storing by collecting different infrared frequencies Download PDF

Info

Publication number
CN104392600A
CN104392600A CN201410689660.5A CN201410689660A CN104392600A CN 104392600 A CN104392600 A CN 104392600A CN 201410689660 A CN201410689660 A CN 201410689660A CN 104392600 A CN104392600 A CN 104392600A
Authority
CN
China
Prior art keywords
data
infrared
carrier wave
carrier
interval time
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
CN201410689660.5A
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.)
FUJIAN QIUSHI INTELLIGENT CO LTD
Original Assignee
FUJIAN QIUSHI INTELLIGENT 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 FUJIAN QIUSHI INTELLIGENT CO LTD filed Critical FUJIAN QIUSHI INTELLIGENT CO LTD
Priority to CN201410689660.5A priority Critical patent/CN104392600A/en
Publication of CN104392600A publication Critical patent/CN104392600A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method for storing by collecting different infrared frequencies. The method comprises the following steps: 1. collecting and recording a frequency band and code identifying information of infrared carrier information by a single chip microcomputer, and collecting at least five carrier pulses; 2. judging whether the code identifying information is four types of infrared protocols by the single chip microcomputer, if the collected code identifying information accords with the encoding mode of one type of infrared protocol, implementing the step 3, otherwise, implementing the step 1; and 3. judging codes 0 and 1 in the carrier frequency of the infrared carrier during collecting, judging the characteristics of logic 0 or 1 in the carrier, and filling a memory through a binary shift storage mode. According to the method disclosed by the invention, the infrared carrier is directly collected, equivalently, infrared data with a random frequency can be received; and carrier data can be directly transformed into binary data by distinguishing the characteristics of logic 0 and 1, and thus the storage space is greatly saved.

Description

A kind of method gathering different infrared frequency and carry out storing
Technical field
The present invention relates to Infrared remote controller technical field, particularly relate to a kind of method gathering different infrared frequency and carry out storing.
Background technology
Existing carrier air-conditioning infrared signal Self-learning Controller is made up of with the equipment such as door, EEPROM storage unit one-chip computer module, many infrared integrated receiving tubes, four inputs.This work-based logic is as follows: this controller is in dormant state at ordinary times, infrared remote-controlled signal can cause main control microprocessor external interrupt to make it enter adaptive learning, by integrated multiple infrared integrated receiving tube, realize multiple carrier wave coded signal without crosstalk demodulation, and accurately distinguish, remember, copy learnt carrier wave frequency range, reach the distance study function of multiple carrier wave air-conditioning infrared remote-controlled signal.
Market is proposed a kind of learning-oriented controller, their learning method only records the form of remote controller signal code, by after the data compression of acquisition or do not carry out compression process and store, intactly again send based on certain carrier wave according to original pulse width during transmitting, analyzing and processing is not carried out to infrared encoded signal, what copy is certain button launching code effect once, and it stores data capacity can be very huge.In addition, most learning-oriented controller, when the study to infrared signal, adopts multiple infrared integrated receiving tube, and can only learn specific infrared frequency range, for the study of other infrared frequency ranges, cost is high.
One " carrier air-conditioning infrared signal Self-learning Controller and method thereof " is disclosed in prior art, see that publication number is: 102538140A, publication date is: the Chinese patent of 2012-07-04, this invention relates to carrier air-conditioning infrared signal Self-learning Controller and method, comprise MCU module, many infrared integrated receiving tubes, four input and doors, EEPROM memory cell, serial communication unit, push-button unit and infrared emission unit, four input and doors, EEPROM memory cell, serial communication unit, push-button unit, infrared emission unit is all connected with MCU module, many infrared integrated receiving tubes input with four respectively and are connected with MCU module with door.This controller is in dormant state at ordinary times, power consumption is minimum, infrared remote-controlled signal can cause main control microprocessor external interrupt to make it enter adaptive learning, by integrated multiple infrared integrated receiving tube, realize multiple carrier wave coded signal without crosstalk demodulation, and accurately distinguish, remember, copy learnt carrier wave frequency range, reach the distance study function of multiple carrier wave air-conditioning infrared remote-controlled signal.This patent also can only learn specific infrared frequency range, and for the study of other infrared frequency ranges, cost is high.
Summary of the invention
The technical problem to be solved in the present invention, is to provide a kind of method gathering different infrared frequency and carry out storing, and solves the problem that infrared learning can only be limited to 38k or single frequency band; And solve transmission frequency precision and the conflicting problem of storage space; Save storage space.
The present invention is achieved in that a kind of method gathering different infrared frequency and carry out storing, and described method specifically comprises the steps:
Step 1, single-chip microcomputer collection record frequency range, the encode identification information of infrared carrier information; Gather at least 5 carrier pulses; Seizure carrier wave is carried out by catcher;
Step 2, single-chip microcomputer determine whether the infrared protocol of four classes by encode identification information, if the encode identification information collected meets the infrared protocol coded system of a certain type, then enter step 3, otherwise enter step 1; The infrared protocol of described four classes is: four kinds of infrared protocol of NEC data layout, SONY form, RECS80 form, RC-5 form;
The coding of in the carrier frequency of infrared carrier wave 0,1 is judged when step 3, collection; Judge the characteristic of logical zero in carrier wave or 1, and inserted in storer by the mode that binary shift stores.
Further, described step 1 is specially: single-chip microcomputer gathers infrared most original signal, and infrared coding carrier wave is formed with low and high level, and the signal namely will catching twice rising edge determines this time infrared carrier frequency; And record frequency range, the encode identification information of infrared carrier information, just carry out the storage of frequency after gathering at least 5 carrier pulses.
Further, single-chip microcomputer is according to the interval time constantly collecting infrared carrier data, simultaneously also continuous at counting; After infrared carrier wave first string startup code distributes by the time, time interval is greater than 150us, is defined as carrier wave and has stopped sending; Because the timer of acquisition and recording time is also in duty, stop single-chip microcomputer in the time interval of this section can record frequency range, the encode identification information of infrared carrier information; By timer writing time.
Further, described infrared carrier wave comprises following four kinds of forms:
NEC data layout:
This form has preamble code, and first judge a scope roughly, namely the preamble code duration is: guide carrier wave record number of times * carrier frequency >8000, be namely greater than 2ms; Then segmentation judges that the time that preamble code carrier wave continues is again: guiding carrier wave record number of times * carrier frequency >108000, is namely greater than 2.7ms; The time judging that preamble code carrier wave continues by these two can determine the infrared data layout sent of NEC; Simultaneously preamble code interlude also recorded by timer, and starts to judge the characteristic of logical zero in carrier wave or 1; Same, receiving the characteristic of logical zero or 1, its interval >150us is logical zero or 1 and distributes, and enters judgement characteristic; In NEC data layout, wide carrier wave ratio narrow many 50%, be logic " 1 ", otherwise be logic " 0 "; Can distinguish like this; Carry out data storage by scale-of-two, be displaced to data field, its data stored are as follows:
Data [0] carrier frequency
Data [1] guides carrier wave record number of times low level
Data [2] guides carrier wave record number of times high-order
Data [3] guide interval time low level
Data [4] the guide interval time is high-order
Data [5] data bit variable number
Low level interval time of data [6] logical zero
The interval time of data [7] logical zero is high-order
Low level interval time of data [8] logical one
The interval time of data [9] logical one is high-order
Data [10] front portion data figure place
Data [11] rear portion data figure place
Data [12] interval changes into ms unit when being greater than preamble code interval;
SONY form:
This form has preamble code, and first judge a scope roughly, namely the preamble code duration is: guide carrier wave record number of times * carrier frequency >8000, be namely greater than 2ms; Then segmentation judges that the time that preamble code carrier wave continues is again: guiding carrier wave record number of times * carrier frequency <108000, is namely less than 2.7ms; The time judging that preamble code carrier wave continues by these two can determine the infrared data layout sent of SONY; Simultaneously preamble code interlude also recorded by timer, and starts to judge the characteristic of logical zero in carrier wave or 1; Same, receiving the characteristic of logical zero or 1, its interval >150us is logical zero or 1 and distributes, and enters judgement characteristic; In SONY form, the feature of logical one is 1.5 times that twice that carrier wave continues number of times * carrier frequency is greater than its completion logic 1 interval time; Can distinguish like this; Carry out data storage by scale-of-two, be displaced to data field, its data stored are as follows:
Data [0] carrier frequency
Data [1] guides carrier wave record number of times low level
Data [2] guides carrier wave record number of times high-order
Data [3] guide interval time low level
Data [4] the guide interval time is high-order
The carrier wave number of times of data [5] logical zero
The carrier wave number of times of data [6] logical one
Data [7] interval time is high-order
Data [8] low level interval time
Data [9] nothing
Data [10] data bits
Data [11] nothing
Data [12] nothing;
RECS80 form:
This form is without preamble code, and namely early stage, the carrier wave duration was: carrier wave record number of times * carrier frequency >8000, is namely less than 2ms; And 3 times of the carrier wave record number of times * carrier frequency interval times be less than after first time signaling, then above-mentioned condition can determine the infrared data layout sent of RECS80 form under all meeting situation; Due to the interval time not having preamble code interval to be now logical one, undertaken judging and comparing by the interval time before interval time of logical one and data bit, logical zero and 1 can be told; And stored; Its data stored are as follows:
Data [0] carrier frequency
data[1] 8
data[2] 0
Data [3] data pulse width
Data [4] nothing
Data [5] logical one is high-order for interval time
Data [6] logical one low level interval time
Data [7] logical zero is high-order for interval time
Data [8] logical zero low level interval time
Data [9] nothing
Data [10] data bits
Data [11] nothing
Data [12] nothing;
RC-5 form:
This form is without preamble code, then encode identification information is outside above-mentioned estimate of situation, namely determines the infrared data layout sent of RC-5 form; Owing to there is no preamble code so be the interval time of logical zero the interval time of primary generation; Preset interval 0 reference value, this interval 0 reference value is: 1.5 times of interval time of logical zero; Compare size by interval 0 reference value and the carrier wave number of times of 2 times capturing frequency, be greater than the variable number just preserving data bit 1, otherwise preserve the variable number of data bit 0; And calculate the reference value of carrier widths at this moment, this reference value is: interval 0 reference value divided by carrier frequency divided by 2; Same, as >150us interval time, judge whether carrier wave number of times is greater than the reference value of carrier widths, be greater than and just carry out preservation logical one variable number, otherwise preserve logical one variable number; But interval 0 reference value is greater than when interval time is less than 5 times of interval 0 reference value, with regard to stored logic 1bit and interval 1, otherwise stored logic 0bit; If data interval time is long, then terminate the study of infrared data in advance, otherwise deposit at most the logical bit of 64; Its data stored are as follows:
Data [0] carrier frequency
data[1] 0
data[2] 0
The variable number of data [3] logical zero
The variable number of data [4] logical one
Data [5] logical zero is high-order for interval time
Data [6] logical zero low level interval time
Data [7] logical one is high-order for interval time
Data [8] logical one low level interval time
Data [9] nothing
The data bits that data [10] is total
Data [11] nothing
Data [12] nothing.
Tool of the present invention has the following advantages: single-chip microcomputer of the present invention gathers infrared most original signal, and infrared coding carrier wave is formed with low and high level, and the signal namely will catching twice rising edge determines this time infrared carrier frequency; And recording frequency range, the encode identification information of infrared carrier information, single-chip microcomputer determines whether the infrared protocol of four classes by encode identification information, judges the coding of in the carrier frequency of infrared carrier wave 0,1 during collection; Judge the characteristic of logical zero in carrier wave or 1, and inserted in storer by the mode that binary shift stores.The present invention directly gathers infrared carrier wave, is equivalent to the infrared data that can receive optional frequency; By the characteristic of resolution logic 0,1, carrier data is directly converted to binary data; Great saving storage space.
Accompanying drawing explanation
Fig. 1 is the inventive method schematic flow sheet.
Fig. 2 is that the infrared carrier wave of NEC data layout of the present invention judges schematic flow sheet.
Fig. 3 is that the infrared carrier wave of SONY form of the present invention judges schematic flow sheet.
Fig. 4 is that the infrared carrier wave of RECS80 form of the present invention judges schematic flow sheet.
Fig. 5 is that the infrared carrier wave of RC-5 form of the present invention judges schematic flow sheet.
Embodiment
Refer to shown in Fig. 1, a kind of method gathering different infrared frequency and carry out storing of the present invention, described method specifically comprises the steps:
Step 1, first determine encode identification information, the coded system that can distinguish inside existing infrared protocol; Single-chip microcomputer collection also records frequency range, the encode identification information of infrared carrier information; Gather at least 5 carrier pulses; Described step 1 is specially: single-chip microcomputer gathers infrared most original signal, and infrared coding carrier wave is formed with low and high level, and the signal namely will catching twice rising edge determines this time infrared carrier frequency; And record frequency range, the encode identification information of infrared carrier information, for guaranteeing the accuracy of frequency, after gathering at least 5 carrier pulses, just carry out the storage of frequency.When on the one hand guaranteeing just to start, infrared equipment sends swinging of signal, in addition on the one hand, guarantees that receiving end has started normal work here, can stablize to catch rising edge signal and come.
Step 2, single-chip microcomputer determine whether the infrared protocol of four classes by encode identification information, if the encode identification information collected meets the infrared protocol coded system of a certain type, then can regard as this coded system, enter step 3, otherwise enter step 1; The infrared protocol of described four classes is: four kinds of infrared protocol of NEC data layout, SONY form, RECS80 form, RC-5 form; Here told infrared be all common infrared, just encoding law and transmission interval etc. are inconsistent.
The coding of in the carrier frequency of infrared carrier wave 0,1 is judged when step 3, collection; Judge the characteristic of logical zero in carrier wave or 1, and inserted in storer by the mode that binary shift stores.
Single-chip microcomputer is according to the interval time constantly collecting infrared carrier data, simultaneously also continuous at counting; After infrared carrier wave first string startup code distributes by the time, time interval is greater than 150us, is defined as carrier wave and has stopped sending; Because the timer of acquisition and recording time is also in duty, stop single-chip microcomputer in the time interval of this section can record frequency range, the encode identification information of infrared carrier information.
Study four kinds of infrared carrier frequencies, can be distinguished by some encode identification information of infrared carrier wave.If gather and can distinguish four types.Be conducive to the process that program is follow-up like this, type of coding directly perceived.
Wherein, described infrared carrier wave comprises following four kinds of forms:
NEC data layout:
This form has preamble code, first judge a scope roughly, namely the preamble code duration is: guide carrier wave record number of times * carrier frequency >8000(to be namely greater than 2ms), then segmentation judges that the time that preamble code carrier wave continues is again: namely guiding carrier wave record number of times * carrier frequency >108000(is greater than 2.7ms).The time judging that preamble code carrier wave continues by these two can determine the infrared data layout sent of NEC; Simultaneously preamble code interlude also recorded by timer, and starts to judge the characteristic of logical zero in carrier wave or 1; Same, receiving the characteristic of logical zero or 1, its interval >150us is logical zero or 1 and distributes, and enters judgement characteristic; In NEC data layout, wide carrier wave ratio narrow many 50%, be logic " 1 ", otherwise be logic " 0 "; Can distinguish like this; Owing to being represent with logical zero or 1, carrying out data storage by scale-of-two, be displaced to data field, then also can stored logic 0 and 1 other carrier free time interval.If when interval is greater than 6.5ms, is then the special shape of Gree, otherwise terminates the study of infrared data in advance, deposit at most the logical bit of 128.Its data stored are as follows:
Data [0] carrier frequency
Data [1] guides carrier wave record number of times low level
Data [2] guides carrier wave record number of times high-order
Data [3] guide interval time low level
Data [4] the guide interval time is high-order
Data [5] data bit variable number
Low level interval time of data [6] logical zero
The interval time of data [7] logical zero is high-order
Low level interval time of data [8] logical one
The interval time of data [9] logical one is high-order
Data [10] front portion data figure place
Data [11] rear portion data figure place
Data [12] interval changes into ms unit when being greater than preamble code interval;
SONY form:
This form has preamble code, first judge a scope roughly, namely the preamble code duration is: guide carrier wave record number of times * carrier frequency >8000(to be namely greater than 2ms), then segmentation judges that the time that preamble code carrier wave continues is again: namely guiding carrier wave record number of times * carrier frequency <108000(is less than 2.7ms).The time judging that preamble code carrier wave continues by these two can determine the infrared data layout sent of SONY; Simultaneously preamble code interlude also recorded by timer, and starts to judge the characteristic of logical zero in carrier wave or 1; Same, receiving the characteristic of logical zero or 1, its interval >150us is logical zero or 1 and distributes, and enters judgement characteristic; In SONY form, the feature of logical one is that carrier wave continues number of times * (twice of carrier frequency is greater than 1.5 times of its completion logic 1 interval time); Can distinguish like this; Owing to being represent with logical zero or 1, carrying out data storage by scale-of-two, be displaced to data field, due under this format, logical zero with 1 data break must be consistent, as long as therefore detect once.If data break is long, then terminate the study of infrared data in advance, otherwise deposit at most the logical bit of 128, its data stored are as follows:
Data [0] carrier frequency
Data [1] guides carrier wave record number of times low level
Data [2] guides carrier wave record number of times high-order
Data [3] guide interval time low level
Data [4] the guide interval time is high-order
The carrier wave number of times of data [5] logical zero
The carrier wave number of times of data [6] logical one
Data [7] interval time is high-order
Data [8] low level interval time
Data [9] nothing
Data [10] data bits
Data [11] nothing
Data [12] nothing;
RECS80 form:
This form is without preamble code, then encode identification information is outside above-mentioned estimate of situation, and (3 times of carrier wave record number of times * carrier frequency) are less than the interval time after first time signaling, then above-mentioned condition can determine the infrared data layout sent of RECS80 form under all meeting situation; Due to the interval time not having preamble code interval to be now logical one, undertaken judging and comparing by the interval time before interval time of logical one and data bit, logical zero and 1 can be told; And stored, deposit at most the logical bit of 64.Its data stored are as follows:
Data [0] carrier frequency
data[1] 8
data[2] 0
Data [3] data pulse width
Data [4] nothing
Data [5] logical one is high-order for interval time
Data [6] logical one low level interval time
Data [7] logical zero is high-order for interval time
Data [8] logical zero low level interval time
Data [9] nothing
Data [10] data bits
Data [11] nothing
Data [12] nothing;
RC-5 form:
This form is without preamble code, then encode identification information is outside above-mentioned estimate of situation, namely determines the infrared data layout sent of RC-5 form; Owing to there is no preamble code so be the interval time of logical zero the interval time of primary generation; Preset interval 0 reference value, this interval 0 reference value is: 1.5 times of interval time of logical zero.Compare size by interval 0 reference value and the carrier wave number of times of 2 times capturing frequency, be greater than the variable number just preserving data bit 1, otherwise preserve the variable number of data bit 0; And calculate the reference value of carrier widths at this moment, this reference value is: interval 0 reference value divided by carrier frequency divided by 2; Same, as >150us interval time, judge whether carrier wave number of times is greater than the reference value of carrier widths, be greater than and just carry out preservation logical one variable number, otherwise preserve logical one variable number; But interval 0 reference value is greater than when interval time is less than 5 times of interval 0 reference value, with regard to stored logic 1bit and interval 1, otherwise stored logic 0bit; If data interval time is long, then terminate the study of infrared data in advance, otherwise deposit at most the logical bit of 64; Its data stored are as follows:
Data [0] carrier frequency
data[1] 0
data[2] 0
The variable number of data [3] logical zero
The variable number of data [4] logical one
Data [5] logical zero is high-order for interval time
Data [6] logical zero low level interval time
Data [7] logical one is high-order for interval time
Data [8] logical one low level interval time
Data [9] nothing
The data bits that data [10] is total
Data [11] nothing
Data [12] nothing.
In addition, be made up of a Ke Xin Tang M052 32 cores in controller of the present invention, adopt a pair common two pin infrared receiving tube composition.Due to the built-in rich in natural resources of this single-chip microcomputer, the memory block of 32K.The functions such as speed can reach 50Mhz, four 32 bit timing devices.Can farthest reduce costs and peripheral circuit.
When entering learning state, allow single-chip microcomputer constantly be in capture frequency, carry out the storage of data by the time span of catching and distinguish.
Abandon the process of infrared integrated receiving tube to infrared carrier wave, directly gather the most original carrier frequency, distinguish by infrared carrier information identification code the storage that logical zero, 1 carries out data.
For classical infrared frequency 38K frequency range, the time of its level change is each time 26.4 μ s, and single-chip microcomputer response speed is faster on this basis in theory in other words.Because M052 is Crotex M0 single-chip microcomputer, we by its frequency can frequency multiplication to 44.2368Mhz, therefore its processing speed will be no longer bottleneck.In addition single-chip microcomputer is integrated with 32k FLASH region, just can reaches the storage of data without peripheral chip, in addition by special compression algorithm and resolution, can greatly improve storage space utilization factor.
In a word, the present invention relates to the study of multiple format infrared coding.Comprise and gather necessary encode identification information, collection infrared data information, identification infrared type, tells 0,1 characteristic automatically, in a binary fashion, is displaced in memory module, saves storage space greatly.And the infrared frequency that the frequency fundamental sum equipment gathered sends is consistent.
The foregoing is only preferred embodiment of the present invention, all equalizations done according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.

Claims (4)

1. gather the method that different infrared frequency carries out storing, it is characterized in that: described method specifically comprises the steps:
Step 1, single-chip microcomputer collection record frequency range, the encode identification information of infrared carrier information; Gather at least 5 carrier pulses;
Step 2, single-chip microcomputer determine whether the infrared protocol of four classes by encode identification information, if the encode identification information collected meets the infrared protocol coded system of a certain type, then enter step 3, otherwise enter step 1; The infrared protocol of described four classes is: four kinds of infrared protocol of NEC data layout, SONY form, RECS80 form, RC-5 form;
The coding of in the carrier frequency of infrared carrier wave 0,1 is judged when step 3, collection; Judge the characteristic of logical zero in carrier wave or 1, and inserted in storer by the mode that binary shift stores.
2. according to claim 1ly a kind ofly gather the method that different infrared frequency carries out stored transmit, it is characterized in that: described step 1 is specially: single-chip microcomputer gathers infrared most original signal, and infrared coding carrier wave is formed with low and high level, the signal namely will catching twice rising edge determines this time infrared carrier frequency; And record frequency range, the encode identification information of infrared carrier information, just carry out the storage of frequency after gathering at least 5 carrier pulses.
3. according to claim 1ly a kind ofly gather the method that different infrared frequency carries out stored transmit, it is characterized in that: single-chip microcomputer is according to the interval time constantly collecting infrared carrier data, simultaneously also continuous at counting; After infrared carrier wave first string startup code distributes by the time, time interval is greater than 150us, is defined as carrier wave and has stopped sending; Because the timer of acquisition and recording time is also in duty, stop single-chip microcomputer in the time interval of this section can record frequency range, the encode identification information of infrared carrier information.
4. according to claim 3ly a kind ofly gather the method that different infrared frequency carries out stored transmit, it is characterized in that: described infrared carrier wave comprises following four kinds of forms:
NEC data layout:
This form has preamble code; First judge a scope roughly, namely the preamble code duration is: guide carrier wave record number of times * carrier frequency >8000, be namely greater than 2ms; Then segmentation judges that the time that preamble code carrier wave continues is again: guiding carrier wave record number of times * carrier frequency >108000, is namely greater than 2.7ms; The time judging that preamble code carrier wave continues by these two can determine the infrared data layout sent of NEC; Simultaneously preamble code interlude also recorded by timer, and starts to judge the characteristic of logical zero in carrier wave or 1; Same, receiving the characteristic of logical zero or 1, its interval >150us is logical zero or 1 and distributes, and enters judgement characteristic; In NEC data layout, wide carrier wave ratio narrow many 50%, be logic " 1 ", otherwise be logic " 0 "; Can distinguish like this; Carry out data storage by scale-of-two, be displaced to data field, its data stored are as follows:
Data [0] carrier frequency
Data [1] guides carrier wave record number of times low level
Data [2] guides carrier wave record number of times high-order
Data [3] guide interval time low level
Data [4] the guide interval time is high-order
Data [5] data bit variable number
Low level interval time of data [6] logical zero
The interval time of data [7] logical zero is high-order
Low level interval time of data [8] logical one
The interval time of data [9] logical one is high-order
Data [10] front portion data figure place
Data [11] rear portion data figure place
Data [12] interval changes into ms unit when being greater than preamble code interval;
SONY form:
This form has preamble code, and first judge a scope roughly, namely the preamble code duration is: guide carrier wave record number of times * carrier frequency >8000, be namely greater than 2ms; Then segmentation judges that the time that preamble code carrier wave continues is again: guiding carrier wave record number of times * carrier frequency <108000, is namely less than 2.7ms; The time judging that preamble code carrier wave continues by these two can determine the infrared data layout sent of SONY; Simultaneously preamble code interlude also recorded by timer, and starts to judge the characteristic of logical zero in carrier wave or 1; Same, receiving the characteristic of logical zero or 1, its interval >150us is logical zero or 1 and distributes, and enters judgement characteristic; In SONY form, the feature of logical one is 1.5 times that twice that carrier wave continues number of times * carrier frequency is greater than its completion logic 1 interval time; Can distinguish like this; Carry out data storage by scale-of-two, be displaced to data field, its data stored are as follows:
Data [0] carrier frequency
Data [1] guides carrier wave record number of times low level
Data [2] guides carrier wave record number of times high-order
Data [3] guide interval time low level
Data [4] the guide interval time is high-order
The carrier wave number of times of data [5] logical zero
The carrier wave number of times of data [6] logical one
Data [7] interval time is high-order
Data [8] low level interval time
Data [9] nothing
Data [10] data bits
Data [11] nothing
Data [12] nothing;
RECS80 form:
This form is without preamble code, and namely early stage, the carrier wave duration was: carrier wave record number of times * carrier frequency >8000, is namely less than 2ms; And 3 times of the carrier wave record number of times * carrier frequency interval times be less than after first time signaling; Then above-mentioned condition can determine the infrared data layout sent of RECS80 form under all meeting situation; Due to the interval time not having preamble code interval to be now logical one, undertaken judging and comparing by the interval time before interval time of logical one and data bit, logical zero and 1 can be told; And stored; Its data stored are as follows:
Data [0] carrier frequency
data[1] 8
data[2] 0
Data [3] data pulse width
Data [4] nothing
Data [5] logical one is high-order for interval time
Data [6] logical one low level interval time
Data [7] logical zero is high-order for interval time
Data [8] logical zero low level interval time
Data [9] nothing
Data [10] data bits
Data [11] nothing
Data [12] nothing;
RC-5 form:
This form is without preamble code, then encode identification information is outside above-mentioned estimate of situation, namely determines the infrared data layout sent of RC-5 form; Owing to there is no preamble code so be the interval time of logical zero the interval time of primary generation; Preset interval 0 reference value, this interval 0 reference value is: 1.5 times of interval time of logical zero; Compare size by interval 0 reference value and the carrier wave number of times of 2 times capturing frequency, be greater than the variable number just preserving data bit 1, otherwise preserve the variable number of data bit 0; And calculate the reference value of carrier widths at this moment, this reference value is: interval 0 reference value divided by carrier frequency divided by 2; Same, as >150us interval time, judge whether carrier wave number of times is greater than the reference value of carrier widths, be greater than and just carry out preservation logical one variable number, otherwise preserve logical one variable number; But interval 0 reference value is greater than when interval time is less than 5 times of interval 0 reference value, with regard to stored logic 1bit and interval 1, otherwise stored logic 0bit; If data interval time is long, then terminate the study of infrared data in advance, otherwise deposit at most the logical bit of 64; Its data stored are as follows:
Data [0] carrier frequency
data[1] 0
data[2] 0
The variable number of data [3] logical zero
The variable number of data [4] logical one
Data [5] logical zero is high-order for interval time
Data [6] logical zero low level interval time
Data [7] logical one is high-order for interval time
Data [8] logical one low level interval time
Data [9] nothing
The data bits that data [10] is total
Data [11] nothing
Data [12] nothing.
CN201410689660.5A 2014-11-26 2014-11-26 Method for storing by collecting different infrared frequencies Pending CN104392600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410689660.5A CN104392600A (en) 2014-11-26 2014-11-26 Method for storing by collecting different infrared frequencies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410689660.5A CN104392600A (en) 2014-11-26 2014-11-26 Method for storing by collecting different infrared frequencies

Publications (1)

Publication Number Publication Date
CN104392600A true CN104392600A (en) 2015-03-04

Family

ID=52610493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410689660.5A Pending CN104392600A (en) 2014-11-26 2014-11-26 Method for storing by collecting different infrared frequencies

Country Status (1)

Country Link
CN (1) CN104392600A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106781425A (en) * 2017-01-18 2017-05-31 福建省光速达物联网科技股份有限公司 A kind of method of IR remote controller Signal Compression storage
CN107422874A (en) * 2017-07-24 2017-12-01 广东迪控电子科技有限公司 A kind of multifunction push key communication means
CN107545717A (en) * 2016-06-23 2018-01-05 瑞昱半导体股份有限公司 Infrared ray learning device
CN111968361A (en) * 2020-08-31 2020-11-20 成都埃克思智创科技有限公司 Infrared repeated code learning method and infrared remote control system applied to Internet of things
CN112003624A (en) * 2020-08-05 2020-11-27 北京有生志广科技有限公司 Lossless compression and online decompression method and device for radio monitoring data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3119876A1 (en) * 1981-05-19 1982-12-16 Wilhelm Ruf KG, 8000 München Infrared transmitting/receiving system
CN1119474A (en) * 1993-03-17 1996-03-27 德国汤姆逊-布朗特公司 Remote control method and device
CN102538140A (en) * 2012-01-17 2012-07-04 苏州智蝶科技有限公司 Multi-carrier air-conditioning infrared signal self-learning controller and method thereof
CN202352065U (en) * 2011-10-25 2012-07-25 广东宝莱特医用科技股份有限公司 Monitor with remote control learning function
CN102881150A (en) * 2012-09-13 2013-01-16 厦门华联电子有限公司 Infrared remote control signal learning module and remote control device
CN103226887A (en) * 2013-04-03 2013-07-31 陈海韵 Universal infrared integrated device based on wireless communication channel and universal remote control method
CN103426292A (en) * 2013-09-03 2013-12-04 湖南工业大学 Infrared remote control, infrared code learning method and infrared code emission method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3119876A1 (en) * 1981-05-19 1982-12-16 Wilhelm Ruf KG, 8000 München Infrared transmitting/receiving system
CN1119474A (en) * 1993-03-17 1996-03-27 德国汤姆逊-布朗特公司 Remote control method and device
CN202352065U (en) * 2011-10-25 2012-07-25 广东宝莱特医用科技股份有限公司 Monitor with remote control learning function
CN102538140A (en) * 2012-01-17 2012-07-04 苏州智蝶科技有限公司 Multi-carrier air-conditioning infrared signal self-learning controller and method thereof
CN102881150A (en) * 2012-09-13 2013-01-16 厦门华联电子有限公司 Infrared remote control signal learning module and remote control device
CN103226887A (en) * 2013-04-03 2013-07-31 陈海韵 Universal infrared integrated device based on wireless communication channel and universal remote control method
CN103426292A (en) * 2013-09-03 2013-12-04 湖南工业大学 Infrared remote control, infrared code learning method and infrared code emission method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545717A (en) * 2016-06-23 2018-01-05 瑞昱半导体股份有限公司 Infrared ray learning device
CN107545717B (en) * 2016-06-23 2019-10-25 瑞昱半导体股份有限公司 Infrared ray learning device
CN106781425A (en) * 2017-01-18 2017-05-31 福建省光速达物联网科技股份有限公司 A kind of method of IR remote controller Signal Compression storage
CN107422874A (en) * 2017-07-24 2017-12-01 广东迪控电子科技有限公司 A kind of multifunction push key communication means
CN107422874B (en) * 2017-07-24 2023-10-24 广东迪控电子科技有限公司 Multifunctional key communication method
CN112003624A (en) * 2020-08-05 2020-11-27 北京有生志广科技有限公司 Lossless compression and online decompression method and device for radio monitoring data
CN112003624B (en) * 2020-08-05 2024-01-26 北京有生志广科技有限公司 Radio monitoring data lossless compression and online decompression method and device
CN111968361A (en) * 2020-08-31 2020-11-20 成都埃克思智创科技有限公司 Infrared repeated code learning method and infrared remote control system applied to Internet of things

Similar Documents

Publication Publication Date Title
CN104392600A (en) Method for storing by collecting different infrared frequencies
CN102694554B (en) Data compression device, its operating method and the data processing equipment including the equipment
CN201716854U (en) Learning transponder and remote controller and integrated control system provided with same
CN102538140A (en) Multi-carrier air-conditioning infrared signal self-learning controller and method thereof
CN107220199A (en) The host computer of refrigerator, the slave computer of refrigerator, the communication means of refrigerator and system
CN102938197A (en) Method for decoding infrared remote control by means of input capture interrupt mode
CN201444313U (en) High-speed image acquisition functional sorter based on FPGA
WO2008117441A1 (en) Equalizer characteristic optimization method, transmission system, communication device, and program
CN106375944A (en) Data acquisition system based on cloud computing
CN102075397A (en) Direct interfacing method for ARINC429 bus and high-speed intelligent unified bus
CN104484992B (en) Infrared remote control decoding device based on PLD
CN202500555U (en) Data transmission system in petroleum logger
CN106899386B (en) Method for demodulating fragmented frame signals based on multi-channel communication receiving system
CN108153511A (en) A kind of burr filtering method of spaceborne fixed length digital signal
CN201965746U (en) Remote control encoding circuit based on FPGA (Field Programmable Gate Array)
CN109246331A (en) A kind of method for processing video frequency and system
CN204289921U (en) Based on the wireless intelligent socket of radio-frequency technique
CN202758482U (en) Control code study lamp
CN107422874B (en) Multifunctional key communication method
CN103632115B (en) A kind of realization carries out multichannel collecting method to card
CN112459769A (en) Storage type well logging system, method and application controlled by accelerometer signal coding and decoding
CN206258856U (en) Single port communication processing circuit based on self adaptation baud rate
CN103001901B (en) Integrated circuit high-speed digital interface module based on modified difference pulse code modulation (MDPCM)
CN204272082U (en) Remote synchronization communication clock intelligence phase-locking device
CN105553624A (en) Predictable data communication code

Legal Events

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

Application publication date: 20150304