CN106781425A - A kind of method of IR remote controller Signal Compression storage - Google Patents

A kind of method of IR remote controller Signal Compression storage Download PDF

Info

Publication number
CN106781425A
CN106781425A CN201710037650.7A CN201710037650A CN106781425A CN 106781425 A CN106781425 A CN 106781425A CN 201710037650 A CN201710037650 A CN 201710037650A CN 106781425 A CN106781425 A CN 106781425A
Authority
CN
China
Prior art keywords
remote controller
controller signal
infrared
cycle
signal
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
CN201710037650.7A
Other languages
Chinese (zh)
Inventor
林世端
黄志文
黄飞
刘必渠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Light Speed Things Polytron Technologies Inc
Original Assignee
Fujian Light Speed Things Polytron Technologies Inc
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 Light Speed Things Polytron Technologies Inc filed Critical Fujian Light Speed Things Polytron Technologies Inc
Priority to CN201710037650.7A priority Critical patent/CN106781425A/en
Publication of CN106781425A publication Critical patent/CN106781425A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

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

Abstract

The present invention provides a kind of method of IR remote controller Signal Compression storage, and methods described need to provide MCU processors, infrared collecting circuit and memory module;Methods described is:The IR remote controller signal that IR remote controller outside the infrared collecting circuit collection sends, when collecting IR remote controller signal, exports low level, does not collect IR remote controller signal output high level;After MCU processors receive IR remote controller signal, decoding process is carried out to IR remote controller signal and is compressed using compress mode, compressed data is sent into memory module after compression is stored.The bit error rate of compression of the invention is low, and the IR remote controller signal that can be sent to various IR remote controllers is managed collectively, storage.

Description

A kind of method of IR remote controller Signal Compression storage
Technical field
The present invention relates to sense, control technology field, more particularly to a kind of IR remote controller Signal Compression storage method.
Background technology
Infrared communication has been widely used as a kind of short distance, reliable controlled in wireless mode in field of household appliances.But by There are various coded systems in IR remote controller, and various coded systems are incompatible, cause the quantity of IR remote controller in family As the quantity of home appliance is on the increase, cause IR remote controller storage and managenent not good, sesolution apparatus are difficult to when using relative The IR remote controller answered.Therefore, study a kind of IR remote controller signal collection and compression method it is particularly important, specifically for realization The integrated of IR remote controller has certain Research Significance.
Infrared code debud mode is different on the market, carrier frequency is not fixed, coded format is different and sending method is different IR remote controller quantity increases with the quantity of home appliance in causing house.
The content of the invention
The technical problem to be solved in the present invention, is to provide a kind of method of IR remote controller Signal Compression storage, is solved The compatibility of IR remote controller signal, realizes that an IR remote controller signal can control plurality of devices, is reduced with this infrared distant It is easy to find when controlling the storage area of device signal and using, it is easy to management to deposit.
What the present invention was realized in:A kind of method of IR remote controller Signal Compression storage, methods described need to provide MCU Processor, infrared collecting circuit and memory module;Methods described is:
The IR remote controller signal that IR remote controller outside the infrared collecting circuit collection sends, collects infrared distant During control device signal, low level is exported, do not collect IR remote controller signal output high level;MCU processors receive infrared distant After control device signal, decoding process is carried out to IR remote controller signal and is compressed using compress mode, number will be compressed after compression Stored according to memory module is sent to.
Further, after the MCU processors receive IR remote controller signal, IR remote controller signal is decoded Process and be compressed using compress mode, specifically include following steps:
Step 10, MCU processors receive IR remote controller signal, then record period 1 high-low level time, and mark The corresponding coding type of IR remote controller signal in the cycle is remembered for N1, while recording the IR remote controller signal data in the cycle It is Y1;
Step 11, the next cycle high-low level time of collection;
Step 12, judge collection cycle high-low level time whether be recorded;It is then to be transferred to step 11, it is no, then enter Step 13;
The cycle high-low level time that step 13, record are now gathered, and mark the IR remote controller signal correspondence in cycle Coding type be N2, while record the cycle IR remote controller signal data be Y2;By that analogy, continue to gather next week Phase high-low level time is simultaneously processed;
Step 14, judge whether that collection terminates, it is no, then step 11 is transferred to, be, then into step 15;
Step 15, record final cycle high-low level time, and mark the IR remote controller signal of final cycle corresponding Coding type is N3, while the IR remote controller signal data for recording final cycle is Y3;
Step 16, each corresponding coding type of IR remote controller signal and corresponding data are compressed.
Further, the MCU processors use model:The MCU processors of LPC1125.
Further, methods described also needs to provide test button and an infrared transmitting circuit;When controlling a certain model Equipment when, first carry out MCU processors carry out search corresponding device infrared remote-controlled signal coding type, by testing button Compressed corresponding infrared remote-controlled signal is obtained from memory module, and is launched by infrared transmitting circuit, verified red The correctness of outer code.
Further, the infrared collecting circuit is using IRM-H938M3/TR238KHz integration infrared receiver collection electricity Road.
Further, the memory module uses w25q16Flash storage chips.
The invention has the advantages that:Be acquired for the signal of various IR remote controllers by the present invention, and records The cycle high-low level time for now gathering, and the corresponding coding type of IR remote controller signal in cycle is marked for N, while note The IR remote controller signal data for recording the cycle is Y;Treatment is compressed to coding type and data, an infrared remote control is realized Device signal can control plurality of devices, easy to find when being reduced the storage area of IR remote controller signal and used with this, be easy to Management storage.
Brief description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method principle schematic.
Fig. 2 is the schematic flow sheet of compress mode of the present invention.
Specific embodiment
Refer to shown in Fig. 1 and Fig. 2, a kind of method of IR remote controller Signal Compression storage, methods described need to provide MCU Processor, infrared collecting circuit and memory module;Methods described is:
The IR remote controller signal that IR remote controller outside the infrared collecting circuit collection sends, collects infrared distant During control device signal, low level is exported, do not collect IR remote controller signal output high level;MCU processors receive infrared distant After control device signal, decoding process is carried out to IR remote controller signal and is compressed using compress mode, number will be compressed after compression Stored according to memory module is sent to.Signal acquisition uses the timer capture pattern of MCU processors.It is infrared distant when detecting During control device signal input, MCU processors start to catch collection and be compressed using compress mode simultaneously.
Wherein, after the MCU processors receive IR remote controller signal, decoding process is carried out to IR remote controller signal And be compressed using compress mode, specifically include following steps:
Step 10, MCU processors receive IR remote controller signal, then record period 1 high-low level time, and mark The corresponding coding type of IR remote controller signal in the cycle is remembered for N1, while recording the IR remote controller signal data in the cycle It is Y1 (matching and decoding type);In the present embodiment, coding type represents with N, the IR remote controller signal data in the cycle Represented with Y;..Nn is represented different coding type N1, N2, N3 ...;Different IR remote controller signal data Y1, Y2, Y3 ... ..Yn are represented;
Step 11, the next cycle high-low level time of collection;
Step 12, judge collection cycle high-low level time whether be recorded;It is then to be transferred to step 11, it is no, then enter Step 13;
The cycle high-low level time that step 13, record are now gathered, and mark the IR remote controller signal correspondence in cycle Coding type be N2 (go up a coding type for N1+1), while the IR remote controller signal data for recording the cycle is Y2;By that analogy, continue to gather next cycle high-low level time and processed;
Step 14, judge whether that collection terminates, it is no, then step 11 is transferred to, be, then into step 15;
Step 15, record final cycle high-low level time, and mark the IR remote controller signal of final cycle corresponding Coding type is N3 (going up a coding type for N2+1), while the IR remote controller signal data for recording final cycle is Y3;
Step 16, each corresponding coding type of IR remote controller signal and corresponding data are compressed.
Methods described also needs to provide test button and an infrared transmitting circuit;When to control the equipment of a certain model, First carrying out MCU processors carries out the coding type of infrared remote-controlled signal of lookup corresponding device, by testing button from storage mould Compressed corresponding infrared remote-controlled signal is obtained in block, and is launched by infrared transmitting circuit, verifying infrared code just True property.Can so realize that an IR remote controller signal can control plurality of devices.
The present embodiment is using LPC1125MCU processors treatment collection infrared signal, storage, transmitting.
Infrared collecting circuit described in the present embodiment is using IRM-H938M3/TR238KHz integration infrared receiver collection electricity Road;When infrared signal is collected, low level is exported;Infrared signal output high level is not collected.
The present embodiment memory module stores the compressed data of infrared signal using w25q16Flash.
The present embodiment carries out the transmitting of infrared signal using infrared-emitting diode.
The present embodiment MCU has gathered infrared signal, and the infrared signal that will be compressed is stored in w25q16Flash storage chips On.
In a word, the present invention realizes that an IR remote controller signal can control plurality of devices, and IR remote controller is reduced with this The storage area of signal and when using it is easy to find, be easy to management to deposit, and the bit error rate of compression is low, reduces memory capacity, and Capacitive is high.
Although the foregoing describing specific embodiment of the invention, those familiar with the art should manage Solution, the specific embodiment described by us is merely exemplary, and rather than for the restriction to the scope of the present invention, is familiar with this The technical staff in field should be covered of the invention in the equivalent modification and change made according to spirit of the invention In scope of the claimed protection.

Claims (6)

1. a kind of method that IR remote controller Signal Compression is stored, it is characterised in that:Methods described need to provide MCU processors, red Outer Acquisition Circuit and memory module;Methods described is:
The IR remote controller signal that IR remote controller outside the infrared collecting circuit collection sends, collects IR remote controller During signal, low level is exported, do not collect IR remote controller signal output high level;MCU processors receive IR remote controller After signal, decoding process is carried out to IR remote controller signal and is compressed using compress mode, send out compressed data after compression Memory module is given to be stored.
2. the method that a kind of IR remote controller Signal Compression according to claim 1 is stored, it is characterised in that:The MCU After processor receives IR remote controller signal, decoding process is carried out to IR remote controller signal and is pressed using compress mode Contracting, specifically includes following steps:
Step 10, MCU processors receive IR remote controller signal, then record period 1 high-low level time, and mark should The corresponding coding type of IR remote controller signal in cycle is N1, while the IR remote controller signal data for recording the cycle is Y1;
Step 11, the next cycle high-low level time of collection;
Step 12, judge collection cycle high-low level time whether be recorded;It is then to be transferred to step 11, it is no, then into step 13;
The cycle high-low level time that step 13, record are now gathered, and mark the corresponding solution of IR remote controller signal in cycle Code type is N2, while the IR remote controller signal data for recording the cycle is Y2;By that analogy, collection next cycle is continued high Low level time is simultaneously processed;
Step 14, judge whether that collection terminates, it is no, then step 11 is transferred to, be, then into step 15;
Step 15, record final cycle high-low level time, and mark the corresponding decoding of IR remote controller signal of final cycle Type is N3, while the IR remote controller signal data for recording final cycle is Y3;
Step 16, each corresponding coding type of IR remote controller signal and corresponding data are compressed.
3. the method that a kind of IR remote controller Signal Compression according to claim 1 is stored, it is characterised in that:The MCU Processor uses model:The MCU processors of LPC1125.
4. the method that a kind of IR remote controller Signal Compression according to claim 2 is stored, it is characterised in that:Methods described Also need to provide test button and an infrared transmitting circuit;When to control the equipment of a certain model, first carry out MCU processors and enter Row searches the coding type of the infrared remote-controlled signal of corresponding device, obtains compressed right from memory module by testing button The infrared remote-controlled signal answered, and launched by infrared transmitting circuit, verify the correctness of infrared code.
5. the method that a kind of IR remote controller Signal Compression according to claim 1 is stored, it is characterised in that:It is described infrared Acquisition Circuit is using IRM-H938M3/TR238KHz integration infrared receiver Acquisition Circuits.
6. the method that a kind of IR remote controller Signal Compression according to claim 1 is stored, it is characterised in that:The storage Module uses w25q16Flash storage chips.
CN201710037650.7A 2017-01-18 2017-01-18 A kind of method of IR remote controller Signal Compression storage Pending CN106781425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710037650.7A CN106781425A (en) 2017-01-18 2017-01-18 A kind of method of IR remote controller Signal Compression storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710037650.7A CN106781425A (en) 2017-01-18 2017-01-18 A kind of method of IR remote controller Signal Compression storage

Publications (1)

Publication Number Publication Date
CN106781425A true CN106781425A (en) 2017-05-31

Family

ID=58943414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710037650.7A Pending CN106781425A (en) 2017-01-18 2017-01-18 A kind of method of IR remote controller Signal Compression storage

Country Status (1)

Country Link
CN (1) CN106781425A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182795A (en) * 2018-01-11 2018-06-19 鹤壁天海电子信息系统有限公司 A kind of infrared data learning method, device and electronic equipment
CN110969832A (en) * 2019-10-25 2020-04-07 智恒科技股份有限公司 Infrared code decoding method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384034A (en) * 2007-09-07 2009-03-11 宁波萨基姆波导研发有限公司 Mobile phone with remote control function and remote control function processing method
CN101452643A (en) * 2007-11-30 2009-06-10 无锡华润矽科微电子有限公司 Learning type infrared remote-controller
CN102282596A (en) * 2008-11-14 2011-12-14 苹果公司 System and method for capturing remote control device command signals
CN104392600A (en) * 2014-11-26 2015-03-04 福建求实智能股份有限公司 Method for storing by collecting different infrared frequencies
CN105809946A (en) * 2014-12-30 2016-07-27 阿里巴巴集团控股有限公司 Method and system for supporting multiple infrared remote controllers by electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384034A (en) * 2007-09-07 2009-03-11 宁波萨基姆波导研发有限公司 Mobile phone with remote control function and remote control function processing method
CN101452643A (en) * 2007-11-30 2009-06-10 无锡华润矽科微电子有限公司 Learning type infrared remote-controller
CN102282596A (en) * 2008-11-14 2011-12-14 苹果公司 System and method for capturing remote control device command signals
CN104392600A (en) * 2014-11-26 2015-03-04 福建求实智能股份有限公司 Method for storing by collecting different infrared frequencies
CN105809946A (en) * 2014-12-30 2016-07-27 阿里巴巴集团控股有限公司 Method and system for supporting multiple infrared remote controllers by electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182795A (en) * 2018-01-11 2018-06-19 鹤壁天海电子信息系统有限公司 A kind of infrared data learning method, device and electronic equipment
CN110969832A (en) * 2019-10-25 2020-04-07 智恒科技股份有限公司 Infrared code decoding method

Similar Documents

Publication Publication Date Title
CN201716854U (en) Learning transponder and remote controller and integrated control system provided with same
CN102881150B (en) infrared remote control signal learning module and remote control device
CN202342017U (en) Intelligent body temperature acquisition system for identifying identity by fingerprint
CN202584411U (en) Wireless learning infrared repeater system
CN102411674A (en) Intelligent multi-parameter acquisition system adopting fingerprints for identification and acquisition method for intelligent multi-parameter acquisition system
CN101881948A (en) Remote air conditioner control starter design method based on wireless mobile communication network
CN204069011U (en) Based on the ZigBee intelligent domestic system of intelligent sensor and Voice command terminal
CN106781425A (en) A kind of method of IR remote controller Signal Compression storage
CN105679004A (en) Method and system for controlling multiple slave devices with main device
CN104332045A (en) Intelligent infrared remote controlsystem based on wireless network and method
CN103354562A (en) Energy consumption collector, energy consumption collecting system and energy consumption collecting method
CN202342026U (en) Intelligent blood pressure acquisition system for fingerprint identity recognition
CN104954480A (en) Equipment parameter setting method and device
CN202736280U (en) Remote control fast matching device
CN106530670A (en) Infrared control mediation device, and method and apparatus for intelligent device to implement infrared control
CN105894792A (en) Studying and encoding method for efficient infrared remote control
CN110569160B (en) Test system of development board based on communication module
CN105225462A (en) A kind of power carrier charging base
CN202267680U (en) Intelligent blood sugar collection system with fingerprint identity recognition
CN102348295A (en) System based on wireless data acquisition and networking method thereof
CN204102158U (en) Intelligent terminal is dynamically connected and the system of opertaing device certainly by identification label
CN113128117A (en) Low-voltage centralized reading, operation and maintenance simulation device based on AI artificial neural network research
CN104240492A (en) Method, device and terminal for debugging infrared remote control signals
CN107945473A (en) Intelligent home control system and its method based on wireless radio frequency modules
CN106254194A (en) A kind of GPRS Wireless Data Transmission Terminal acquisition method and acquisition module

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170531