CN107610445A - The data-encoding scheme and its circuit of infrared self study - Google Patents

The data-encoding scheme and its circuit of infrared self study Download PDF

Info

Publication number
CN107610445A
CN107610445A CN201710946653.2A CN201710946653A CN107610445A CN 107610445 A CN107610445 A CN 107610445A CN 201710946653 A CN201710946653 A CN 201710946653A CN 107610445 A CN107610445 A CN 107610445A
Authority
CN
China
Prior art keywords
level
low
high level
infrared
self study
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710946653.2A
Other languages
Chinese (zh)
Other versions
CN107610445B (en
Inventor
刘建邦
杜友武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Dandelion Intelligent Technology Co Ltd
Original Assignee
Changsha Dandelion Intelligent Technology 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 Changsha Dandelion Intelligent Technology Co Ltd filed Critical Changsha Dandelion Intelligent Technology Co Ltd
Priority to CN201710946653.2A priority Critical patent/CN107610445B/en
Publication of CN107610445A publication Critical patent/CN107610445A/en
Application granted granted Critical
Publication of CN107610445B publication Critical patent/CN107610445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a kind of data-encoding scheme of infrared self study, according to occurrence number several infrared self study level are carried out with descending arrangement and assigns each infrared one binary number of self study level, each infrared self study level is that a low and high level being made up of adjacent high level and low level combines, and the width of the most six groups of low and high levels combination of storage occurrence number is regular coding level;When being encoded to the infrared self study level, combined using adjacent high level and low level as a low and high level, by low and high level combination compared with six groups of low and high level combinations in the regular coding level, binary number corresponding to the infrared self study level is stored if similar, if dissimilar, the width of low and high level combination is stored;A kind of data encoding circuit of infrared self study is also disclosed, the data volume of storage is greatly reduced by the present invention.

Description

The data-encoding scheme and its circuit of infrared self study
Technical field
The invention belongs to infrared data processing technology field, and in particular to a kind of data-encoding scheme of infrared self study and Its circuit.
Background technology
With the development of Infrared Ray Remote Control Technology, infrared remote control agreement is more and more, often devices from different manufacturers infrared protocol Difference, at present have infrared remote control agreement hundreds of.Although agreement is different, data volume size also differs, and is all logical Cross and different implications is represented with the combination of different low and high level width, for example, high level width 9000 is delicate, low level width 4500 Delicate combination, the starting character of infrared protocol is represented, high level width 560 is delicate, the delicate combination of low level width 1120, generation The numeral 0, etc. of table infrared protocol.By the infrared signal of infrared receiving circuit self study, output is also so a series of The combination of different low and high level width, each level width need 2 byte storages, and data volume is very big, for single-chip microcomputer system For system, memory consumption is many, and general low capacity single-chip microcomputer can not handle the level of this self study at all.
The content of the invention
In view of this, it is a primary object of the present invention to provide a kind of data-encoding scheme and its electricity of infrared self study Road.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
The embodiment of the present invention provides a kind of data-encoding scheme of infrared self study, and this method is:According to occurrence number to some Individual infrared self study level carries out descending arrangement and assigns each infrared one binary number of self study level, each infrared Self study level be a low and high level being made up of adjacent high level and low level combine, storage occurrence number at most it is six groups high The width of low level combination is regular coding level;When being encoded to the infrared self study level, with adjacent high level and Low level is that a low and high level combines, by low and high level combination and six groups of low and high level groups in the regular coding level Conjunction is compared, store the infrared self study level if similar corresponding to binary number, if dissimilar, store the height The width of level combinations.
In such scheme, the low and high level is combined and combines progress with six groups of low and high levels in the regular coding level Compare, be specially:The low and high level is combined with the error of both regular coding level compared with error amount, if the error Less than error amount, then it is assumed that both are same low and high level combinations.
In such scheme, the error amount is 50 microseconds.
In such scheme, it is characterised in that the width for storing low and high level combination, be specially:For high level Binary number is first stored, then stores the width of high level;Binary number is first stored for low level, then is stored low level Width.
In such scheme, the width for storing low and high level combination, it is specially:If adjacent low and high level combination is During identical binary number, low and high level combination number is first stored, then stores number of repetition again.
In such scheme, the data format of the infrared self study level after coding includes code length, regular coding level And coded data.
In such scheme, the code length is 1 byte, equal to regular coding level byte length and coded data word Save length sum.
The embodiment of the present invention also provides a kind of data encoding circuit of infrared self study, and the circuit includes infrared receiver electricity Road, storage circuit, MCU microcontroller circuits, infrared transtation mission circuit;
The infrared transtation mission circuit, for sending infrared self study level;
The infrared receiving circuit, for receiving the infrared self study level of infrared learning acquisition;The infrared self study level Combined for a low and high level being made up of adjacent high level and low level;
The MCU microcontroller circuits, for carrying out descending arrangement simultaneously to several infrared self study level according to occurrence number And each infrared one binary number of self study level is assigned, each infrared self study level is one by adjacent high level and low The low and high level combination of level composition, the width of the most six groups of low and high levels combination of storage occurrence number is regular coding electricity It is flat;When being encoded to the infrared self study level, combined using adjacent high level and low level as a low and high level, by institute Low and high level combination is stated compared with six groups of low and high level combinations in the regular coding level;
The storage circuit, for storing the width of the most six groups of low and high levels combination of occurrence number, it is additionally operable in the height Low level combines to be corresponded to when six groups of low and high levels combine similar in the regular coding level, storing the infrared self study level Binary number, in dissmilarity, store the low and high level combination width.
In such scheme, the circuit also includes the condition indication circuit being connected with MCU microcontroller circuits.
Compared with prior art, beneficial effects of the present invention:
The present invention is encoded using six groups of fixed level storage modes to all level, greatly reduces the data volume of storage, Equally take measures on customs clearance progress, the fixed level for not being six groups of storages, take high level first to store 0111, then deposit again High level width is stored up, low level first stores 0000, then store low level width again, it is ensured that complete correctness, to all red Outer agreement is all suitable for;Counterweight telegram in reply is flat to carry out number of repetition storage, utilizes a storage repetition flag.
Brief description of the drawings
Fig. 1 provides a kind of flow chart of the data-encoding scheme of infrared self study for the embodiment of the present invention;
Fig. 2 provides a kind of circuit diagram of the data encoding circuit of infrared self study for the embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention provides a kind of data-encoding scheme of infrared self study, as shown in figure 1, this method is:According to Occurrence number carries out descending arrangement to several infrared self study level and assigns each infrared self study level one two to enter System numbering, each infrared self study level are that a low and high level being made up of adjacent high level and low level combines, and storage occurs The width of the most six groups of low and high levels combination of number is regular coding level;The infrared self study level is encoded When, combined using adjacent high level and low level as a low and high level, by low and high level combination and regular coding electricity Six groups of low and high level combinations are compared in flat, and binary number corresponding to the infrared self study level is stored if similar, if Dissmilarity, then store the width of low and high level combination.
It is described to combine the low and high level compared with six groups of low and high levels combinations in the regular coding level, tool Body is:The low and high level is combined with the error of both regular coding level compared with error amount, missed if the error is less than Difference, then it is assumed that both are same low and high level combinations.
The error amount is 50 microseconds.
The width for storing low and high level combination, it is specially:Binary number is first stored for high level, then is stored The width of high level;Binary number is first stored for low level, then stores low level width.
Specifically, the storage high level mode is:0111 is first stored, expression is high level, is followed by 4 low levels Duration data, such as:The microsecond of low level 2000(0x7D0, Binary Zero 111 1,101 0000), then store:0111 0000, 0111 1101,0,111 0111. low level duration data, according to 4 storage modes, low 4 formerly.
It is described storage low level mode be:0000 is first stored, expression is low level, is followed by 4 low level duration numbers According to, such as:The microsecond of low level 2000(0x7D0, Binary Zero 111 1,101 0000), then store:0000 0000, 0000 1101, 0000 0111.Low level duration data, according to 4 storage modes, low 4 formerly.
The width for storing low and high level combination, it is specially:If adjacent low and high level combination is that identical two is entered When making numbering, low and high level combination number is first stored, then stores number of repetition again.
Specifically, if there is following level:High 560 microsecond, low 1120 microsecond, high 560 microsecond, low 1120 microsecond are high 560 microseconds, low 1120 microsecond, high 560 microsecond, low 1120 microsecond ... ..., this high 560 microsecond, low 1120 microsecond combination are continuous Occur 12 times, if this level combinations are one of six groups of fixed level combinations, and it is 0001 to number, then is specifically stored as: First memory level combination number 0001, then store number 12 times(Binary one 100), storage 1,000 1110, storage number is according to 4 Position storage mode, highest order represent repetition flag, are fixed as 1, and low 3 are specially number of repetition, and low level is first, 12 binary systems For 1100, then it is divided into high 3 110 and low 10.
The data format of infrared self study level after coding includes code length, regular coding level and coded data.
The code length is 1 byte, equal to regular coding level byte length and coded data byte length sum.
Embodiment:
The embodiment of the present invention provides a kind of data-encoding scheme of infrared self study, and infrared self study level is a series of height electricity Flat composition, regard adjacent high level and low level as a low and high level combination, most low and high level combinations occur, numbering is used 0001 is represented in binary as, the low and high level combination number for occurring more than second is 0010, the like, the height of appearance more than the 6th Level combinations numbering is 0110, stores this six groups of low and high level width, as regular coding level successively, every group with 4 bytes, Totally 24 byte;Combined using adjacent high level and low level as a low and high level, by this combination and six groups in regular coding level Low and high level combination is compared, and corresponding binary number is stored if similar, if dissimilar, it is wide to store this low and high level Degree.When storing low and high level width, high level first stores 0111, then stores high level width again, and low level first stores 0000, Then low level width is stored again.If adjacent low and high level combination is the binary number of the same regular coding level, first Low and high level combination number is stored, then stores number of repetition again.
The embodiment of the present invention also provides a kind of data encoding circuit of infrared self study, as shown in Fig. 2 the circuit is including red Outer receiving circuit, storage circuit, MCU microcontroller circuits, infrared transtation mission circuit;
The infrared transtation mission circuit, for sending infrared self study level;
The infrared receiving circuit, for receiving the low and high level combined width data of infrared learning acquisition;
MCU microcontroller circuits, for according to occurrence number to the low and high level duration data splitting that is obtained by infrared learning Carry out descending arrangement;There is the width of six groups of most low and high level data in storage, and is numbered, respectively 0001 ~ 0110. When being encoded to infrared self study level, combined using adjacent high level and low level as a low and high level, by the height Level combinations are compared with six groups of low and high level combinations in the regular coding level stored;If similar, fixed level is stored Numbering, if dissimilar, store the width of specific low and high level.
The storage circuit, for storing the width of the most six groups of low and high levels combination of occurrence number, it is additionally operable in institute Low and high level combination is stated with when six groups of low and high levels combine similar in the regular coding level, storing the infrared self study level Corresponding binary number, in dissmilarity, store the width of low and high level combination.
The circuit also includes the condition indication circuit being connected with MCU microcontroller circuits.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (9)

1. a kind of data-encoding scheme of infrared self study, it is characterised in that this method is:It is red to several according to occurrence number Outer self study level carries out descending arrangement and assigns each infrared one binary number of self study level, each infrared self-study It is that a low and high level being made up of adjacent high level and low level combines to practise level, six groups of most height electricity of storage occurrence number The width of flat combination is regular coding level;When being encoded to the infrared self study level, with adjacent high level and low electricity Put down and combined for low and high level, the low and high level is combined combined with six groups of low and high levels in the regular coding level into Row compares, store the infrared self study level if similar corresponding to binary number, if dissimilar, store the low and high level The width of combination.
2. the data-encoding scheme of infrared self study according to claim 1, it is characterised in that by the low and high level group Close compared with six groups of low and high level combinations in the regular coding level, be specially:By low and high level combination and admittedly The error of both code levels is determined compared with error amount, if the error is less than error amount, then it is assumed that both are same height Level combinations.
3. the data-encoding scheme of infrared self study according to claim 2, it is characterised in that the error amount is 50 micro- Second.
4. the data-encoding scheme of the infrared self study according to claim 1-3 any one, it is characterised in that described to deposit The width of low and high level combination is stored up, is specially:Binary number is first stored for high level, then stores the width of high level; Binary number is first stored for low level, then stores low level width.
5. the data-encoding scheme of infrared self study according to claim 4, it is characterised in that the storage height electricity The width of flat combination, it is specially:If adjacent low and high level combination is identical binary number, low and high level group is first stored The number of compiling in collaboration with, number of repetition is then stored again.
6. the data-encoding scheme of infrared self study according to claim 5, it is characterised in that the infrared self-study after coding Practising the data format of level includes code length, regular coding level and coded data.
7. the data-encoding scheme of infrared self study according to claim 6, it is characterised in that the code length is 1 Individual byte, equal to regular coding level byte length and coded data byte length sum.
8. a kind of data encoding circuit of infrared self study, it is characterised in that the circuit includes infrared receiving circuit, storage electricity Road, MCU microcontroller circuits, infrared transtation mission circuit;
The infrared transtation mission circuit, for sending infrared self study level;
The infrared receiving circuit, for receiving the infrared self study level of infrared learning acquisition;The infrared self study level Combined for a low and high level being made up of adjacent high level and low level;
The MCU microcontroller circuits, for carrying out descending arrangement simultaneously to several infrared self study level according to occurrence number And each infrared one binary number of self study level is assigned, each infrared self study level is one by adjacent high level and low The low and high level combination of level composition, the width of the most six groups of low and high levels combination of storage occurrence number is regular coding electricity It is flat;When being encoded to the infrared self study level, combined using adjacent high level and low level as a low and high level, by institute Low and high level combination is stated compared with six groups of low and high level combinations in the regular coding level;
The storage circuit, for storing the width of the most six groups of low and high levels combination of occurrence number, it is additionally operable in the height Low level combines to be corresponded to when six groups of low and high levels combine similar in the regular coding level, storing the infrared self study level Binary number, in dissmilarity, store the low and high level combination width.
9. the data encoding circuit of a kind of infrared self study according to claim 8, it is characterised in that the circuit also includes The condition indication circuit being connected with MCU microcontroller circuits.
CN201710946653.2A 2017-10-12 2017-10-12 Infrared self-learning data coding method and circuit thereof Active CN107610445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710946653.2A CN107610445B (en) 2017-10-12 2017-10-12 Infrared self-learning data coding method and circuit thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710946653.2A CN107610445B (en) 2017-10-12 2017-10-12 Infrared self-learning data coding method and circuit thereof

Publications (2)

Publication Number Publication Date
CN107610445A true CN107610445A (en) 2018-01-19
CN107610445B CN107610445B (en) 2020-05-05

Family

ID=61068224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710946653.2A Active CN107610445B (en) 2017-10-12 2017-10-12 Infrared self-learning data coding method and circuit thereof

Country Status (1)

Country Link
CN (1) CN107610445B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945477A (en) * 2017-11-10 2018-04-20 深圳睿舍智能科技有限公司 The method and device that infrared or wireless remote control signals data are compressed
CN109960676A (en) * 2019-03-21 2019-07-02 浪潮商用机器有限公司 A kind of electronic system and its Position Number distribution method
CN110320394A (en) * 2019-08-30 2019-10-11 深圳市鼎阳科技有限公司 Decoding processing method and decoding processing device, the digital oscilloscope of Wave data
CN111968361A (en) * 2020-08-31 2020-11-20 成都埃克思智创科技有限公司 Infrared repeated code learning method and infrared remote control system applied to Internet of things
CN112071052A (en) * 2019-09-06 2020-12-11 超级智慧家(上海)物联网科技有限公司 Infrared repeater system, infrared repeater and data learning method thereof
CN113284333A (en) * 2021-05-21 2021-08-20 北京昆羽科技有限公司 Learning method and device based on remote controller, remote controller and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719310A (en) * 2009-12-21 2010-06-02 山东大学 Long-distance infrared remote-controlled device and method used for embedded equipment
CN201504341U (en) * 2009-07-31 2010-06-09 宁波家天下智能系统有限公司 Universal remote controller of intelligent household control system
CN101989379A (en) * 2009-07-31 2011-03-23 宁波家天下智能系统有限公司 Learning method and transmitting method of infrared cod signal and remote controller
CN104217576A (en) * 2014-07-10 2014-12-17 广州市河东电子有限公司 Decoding/coding method of infrared pulse signal
US8952840B1 (en) * 2004-02-10 2015-02-10 Ixys Ch Gmbh Loading a machine code API onto an 8-bit virtual machine to enable new functionality
US8989583B1 (en) * 2014-02-06 2015-03-24 Peel Technologies, Inc. Generating infrared communications on a mobile device
CN105070035A (en) * 2015-08-25 2015-11-18 无锡力芯微电子股份有限公司 Real-time compression method and device for infrared remote control code stream
CN105306062A (en) * 2015-11-23 2016-02-03 青岛海信电器股份有限公司 Encoding and storing method and device for infrared data, and decoding method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8952840B1 (en) * 2004-02-10 2015-02-10 Ixys Ch Gmbh Loading a machine code API onto an 8-bit virtual machine to enable new functionality
CN201504341U (en) * 2009-07-31 2010-06-09 宁波家天下智能系统有限公司 Universal remote controller of intelligent household control system
CN101989379A (en) * 2009-07-31 2011-03-23 宁波家天下智能系统有限公司 Learning method and transmitting method of infrared cod signal and remote controller
CN101719310A (en) * 2009-12-21 2010-06-02 山东大学 Long-distance infrared remote-controlled device and method used for embedded equipment
US8989583B1 (en) * 2014-02-06 2015-03-24 Peel Technologies, Inc. Generating infrared communications on a mobile device
CN104217576A (en) * 2014-07-10 2014-12-17 广州市河东电子有限公司 Decoding/coding method of infrared pulse signal
CN105070035A (en) * 2015-08-25 2015-11-18 无锡力芯微电子股份有限公司 Real-time compression method and device for infrared remote control code stream
CN105306062A (en) * 2015-11-23 2016-02-03 青岛海信电器股份有限公司 Encoding and storing method and device for infrared data, and decoding method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945477A (en) * 2017-11-10 2018-04-20 深圳睿舍智能科技有限公司 The method and device that infrared or wireless remote control signals data are compressed
CN109960676A (en) * 2019-03-21 2019-07-02 浪潮商用机器有限公司 A kind of electronic system and its Position Number distribution method
CN109960676B (en) * 2019-03-21 2020-11-03 浪潮商用机器有限公司 Electronic system and position number distribution method thereof
CN110320394A (en) * 2019-08-30 2019-10-11 深圳市鼎阳科技有限公司 Decoding processing method and decoding processing device, the digital oscilloscope of Wave data
CN112071052A (en) * 2019-09-06 2020-12-11 超级智慧家(上海)物联网科技有限公司 Infrared repeater system, infrared repeater and data learning method thereof
CN111968361A (en) * 2020-08-31 2020-11-20 成都埃克思智创科技有限公司 Infrared repeated code learning method and infrared remote control system applied to Internet of things
CN113284333A (en) * 2021-05-21 2021-08-20 北京昆羽科技有限公司 Learning method and device based on remote controller, remote controller and storage medium

Also Published As

Publication number Publication date
CN107610445B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN107610445A (en) The data-encoding scheme and its circuit of infrared self study
CN101027842B (en) Data processing circuit and method for encoding/decoding input data word
CN102209956B (en) Cognitive error control coding for channels with memory
US20130275829A1 (en) Using a soft decoder with hard data
CN102761389B (en) Asynchronous master-slave serial communication system, data transmission method and control module
CN109889205A (en) Encoding method and system, decoding method and system, and encoding and decoding method and system
CN106788891A (en) A kind of optimal partial suitable for distributed storage repairs code constructing method
CN105306062B (en) A kind of coding and storing method of infrared data, device and coding/decoding method
CN101005333A (en) Low density parity check code encoding method and device
CN107133533B (en) It is a kind of based on the multiple physics unclonable function circuit structure being delayed in groups
CN102904834A (en) Satellite-bone data processing system based on advanced orbiting system (AOS)
CN103283149B (en) For the treatment of the apparatus and method of data element sequence
CN104240747B (en) The method and device that a kind of multi-medium data is obtained
CN104601179A (en) Erasure code coding circuit and decoding circuit and coding and encoding circuit of storage system
CN101800627A (en) Hardware implementation of multiple-code-rate-compatible high-speed low-density parity-check code encoder
Ornstein et al. Every transformation is bilaterally deterministic
CN105141302A (en) Clock edge based single event upset self-inspection error correction circuit
CN103593445A (en) Data filling method and device
CN105720990B (en) The Fourth Ring searching method and device of the check matrix of LDPC code
CN109361411B (en) Method and device for simplifying synchronous circuit
CN102063343B (en) Method for preventing SRAM (Static Random Access Memory) single event upset based on coding mode
CN201918981U (en) Dual-phase harvard code bus signal coding-decoding circuit
CN109150786A (en) A kind of mapping method and device based on QAM
CN101604976B (en) Pretreatment method for check matrix of bit reliability mapping
CN103873188A (en) Parallel rate de-matching method and parallel rate de-matching device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant