CN101814233A - Decoding method of infrared remote control software - Google Patents

Decoding method of infrared remote control software Download PDF

Info

Publication number
CN101814233A
CN101814233A CN 201010141870 CN201010141870A CN101814233A CN 101814233 A CN101814233 A CN 101814233A CN 201010141870 CN201010141870 CN 201010141870 CN 201010141870 A CN201010141870 A CN 201010141870A CN 101814233 A CN101814233 A CN 101814233A
Authority
CN
China
Prior art keywords
remote control
pulse signal
infrared remote
decoding
pulse
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
CN 201010141870
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.)
WEISHENG ELECTRONICS TECH Co Ltd ZHENGZHOU
Original Assignee
WEISHENG ELECTRONICS TECH Co Ltd ZHENGZHOU
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 WEISHENG ELECTRONICS TECH Co Ltd ZHENGZHOU filed Critical WEISHENG ELECTRONICS TECH Co Ltd ZHENGZHOU
Priority to CN 201010141870 priority Critical patent/CN101814233A/en
Publication of CN101814233A publication Critical patent/CN101814233A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention provides a decoding method of infrared remote control software, comprising the following steps of: connecting the output end of an infrared remote control receiver to the interrupt input pin of an embedded microprocessor; starting a preset decoding program via the embedded microprocessor when the remote control encoding pulse signal received by the infrared remote control receiver passes through the interrupt input pin of the embedded microprocessor; testing the logic level and the pulse width of each pulse signal in each group of remote control encoding pulse signals, and decoding each group of remote control encoding pulse signals by means of a preset decoding rule to obtain the corresponding digital signals; searching characteristic values matched with the digital signals from the plurality of preset characteristic values to obtain the remote control command corresponding to the matched characteristic values; and executing the remote control command. The method adopts the software decoding technique, instead of the traditional hardware circuit decoding technique, thus simplifying the receiving circuit, facilitating the stable operation of a circuit, and reducing the decoding cost.

Description

Decoding method of infrared remote control software
Technical field
The present invention relates to a kind of infrared remote control decoding technology, specifically, relate to a kind of decoding method of infrared remote control software.
Background technology
Existing infrared remote coding and decoding technique are mostly realized by hardware, are promptly finished by the chip of a pair of Code And Decode, have so promptly increased the cost of hardware circuit, make hardware circuit complicated again, can reduce the stability of circuit performance on the contrary.
For this reason, people are seeking a kind of technical solution of more optimizing always.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, provide a kind of hardware circuit that can make to simplify the decoding method of infrared remote control software that can reduce the decoding cost again.
The technical solution adopted in the present invention is as follows: a kind of decoding method of infrared remote control software, and it may further comprise the steps:
Step 1, the output terminal of infrared remote control receiver is connected to the interruption input pin of embedded microprocessor, so that embedded microprocessor reads the remote control coding pulse signal that infrared remote control receiver receives by interrupting input pin;
During interruption input pin by embedded microprocessor of step 2, the remote control coding pulse signal that receives when infrared receiver of remote-control sytem, then embedded microprocessor starts default decoding program;
The logic level and the pulse width of each pulse signal in step 3, every group of remote control coding pulse signal of test, and utilize predefined decoding rule that every group of remote control coding pulse signal decoded, obtain corresponding infrared remote control digital signal;
Step 4, the eigenwert that is complementary from predefined a plurality of searching characteristic values and this infrared remote control digital signal, thus obtain and the pairing guidance command of this eigenwert that is complementary;
Step 5, execution and the pairing guidance command of this eigenwert that is complementary.
Based on above-mentioned, described decoding rule is: for two continuous pulse signals, if first pulse signal is that low level, second pulse signal are high level, and the pulse width of first pulse signal is 3 times of pulse width of second pulse signal, and two then that this is continuous pulse signals are with data bit " 1 " expression;
For two continuous pulse signals, if first pulse signal is that low level, second pulse signal are high level, and the pulse width of first pulse signal is 1/3 times of pulse width of second pulse signal, and two then that this is continuous pulse signals are with data bit " 0 " expression.
The relative prior art of the present invention has outstanding substantive distinguishing features and marked improvement, specifically, this decoding method of infrared remote control software adopts the software decode technology to substitute the traditional hardware circuit decoding technique, receiving circuit is oversimplified, be beneficial to the stable operation of circuit, reduced the decoding cost again; In addition,, need not to change receiving circuit, only need to revise corresponding decoding software and get final product, reduced the cycle of exploitation once more, reduced cost of developing once more at different coding chips.
Embodiment
Below by embodiment, technical scheme of the present invention is described in further detail.
A kind of decoding method of infrared remote control software may further comprise the steps:
Step 1, the output terminal of infrared remote control receiver is connected to the interruption input pin of embedded microprocessor, so that embedded microprocessor reads the remote control coding pulse signal that infrared remote control receiver receives by interrupting input pin.
Take the output terminal of infrared remote control receiver is connected to the method for attachment of the interruption input pin of embedded microprocessor, make software decode both can work in inquiry mode, also can work in interrupt mode.
In the present embodiment, the Infrared push button coding circuit in the telepilot adopts the PT2248 chip, carries out keyboard-coding by the PT2248 chip, produces coded pulse, and drives infrared transmitting tube output infrared remote control pulse signal; Infrared remote control receiver receives and finishes amplification, detection, the shaping to the infrared remote control pulse signal, finally demodulates the remote control coding pulse signal.
During interruption input pin by embedded microprocessor of step 2, the remote control coding pulse signal that receives when infrared receiver of remote-control sytem, then embedded microprocessor starts default decoding program;
Specifically, if telepilot does not send the infrared remote control pulse signal, then the output terminal of infrared remote control receiver keeps high level;
When infrared receiver of remote-control sytem receives the infrared remote control pulse signal, infrared remote control receiver gets off this signal demodulation and converts pulse train to, it is the remote control coding pulse signal, then, the remote control coding pulse signal is added to the interruption input pin of embedded microprocessor, at this moment, to low level, embedded microprocessor starts default decoding program to the interruption input pin by high level.
The logic level and the pulse width of each pulse signal in step 3, every group of remote control coding pulse signal of test, and utilize predefined decoding rule that every group of remote control coding pulse signal decoded, obtain corresponding infrared remote control digital signal;
Specifically, according to predefined interrupt mode, each pulse signal once interrupts, interrupt the logic level of input pin with software test, start the T timer simultaneously, measure the time value of this interruption input pin under high level and low level situation respectively, promptly start the pulse width that the T timer is measured each pulse signal, store, analyze then;
Based on aforementioned, described decoding rule is: for two continuous pulse signals, if first pulse signal is that low level, second pulse signal are high level, and the pulse width of first pulse signal is 3 times of pulse width of second pulse signal, and two then that this is continuous pulse signals are with data bit " 1 " expression;
For two continuous pulse signals, if first pulse signal is that low level, second pulse signal are high level, and the pulse width of first pulse signal is 1/3 times of pulse width of second pulse signal, and two then that this is continuous pulse signals are with data bit " 0 " expression.
In the present embodiment, described infrared remote control digital signal comprises 12 binary codings, wherein, preceding 6 codings are user identification codes, it does not change with the difference of button, it is an identification mark that is provided with in order to represent the specific user, to distinguish the remote signal of different machines and different user emission, prevents maloperation; 6 codings in back are button identification codes, and its difference with button changes, promptly different keyboard-codings be with telepilot on different button corresponding one by one.
Step 4, the eigenwert that is complementary from predefined a plurality of searching characteristic values and this infrared remote control digital signal, thus obtain and the pairing guidance command of this eigenwert that is complementary;
Specifically, all corresponding guidance command of predefined each eigenwert when searching the eigenwert that is complementary with this infrared remote control digital signal, has promptly found and the pairing guidance command of this infrared remote control digital signal.
Step 5, execution and the pairing guidance command of this eigenwert that is complementary have promptly been carried out and the pairing guidance command of this infrared remote control digital signal.
Should be noted that at last: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit; Although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the field are to be understood that: still can make amendment or the part technical characterictic is equal to replacement the specific embodiment of the present invention; And not breaking away from the spirit of technical solution of the present invention, it all should be encompassed in the middle of the technical scheme scope that the present invention asks for protection.

Claims (2)

1. a decoding method of infrared remote control software is characterized in that, this method may further comprise the steps:
Step 1, the output terminal of infrared remote control receiver is connected to the interruption input pin of embedded microprocessor, so that embedded microprocessor reads the remote control coding pulse signal that infrared remote control receiver receives by interrupting input pin;
During interruption input pin by embedded microprocessor of step 2, the remote control coding pulse signal that receives when infrared receiver of remote-control sytem, then embedded microprocessor starts default decoding program;
The logic level and the pulse width of each pulse signal in step 3, every group of remote control coding pulse signal of test, and utilize predefined decoding rule that every group of remote control coding pulse signal decoded, obtain corresponding infrared remote control digital signal;
Step 4, the eigenwert that is complementary from predefined a plurality of searching characteristic values and this infrared remote control digital signal, thus obtain and the pairing guidance command of this eigenwert that is complementary;
Step 5, execution and the pairing guidance command of this eigenwert that is complementary.
2. decoding method of infrared remote control software according to claim 1, it is characterized in that: described decoding rule is: for two continuous pulse signals, if first pulse signal is that low level, second pulse signal are high level, and the pulse width of first pulse signal is 3 times of pulse width of second pulse signal, and two then that this is continuous pulse signals are with data bit " 1 " expression;
For two continuous pulse signals, if first pulse signal is that low level, second pulse signal are high level, and the pulse width of first pulse signal is 1/3 times of pulse width of second pulse signal, and two then that this is continuous pulse signals are with data bit " 0 " expression.
CN 201010141870 2010-04-08 2010-04-08 Decoding method of infrared remote control software Pending CN101814233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010141870 CN101814233A (en) 2010-04-08 2010-04-08 Decoding method of infrared remote control software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010141870 CN101814233A (en) 2010-04-08 2010-04-08 Decoding method of infrared remote control software

Publications (1)

Publication Number Publication Date
CN101814233A true CN101814233A (en) 2010-08-25

Family

ID=42621475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010141870 Pending CN101814233A (en) 2010-04-08 2010-04-08 Decoding method of infrared remote control software

Country Status (1)

Country Link
CN (1) CN101814233A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869382A (en) * 2015-02-10 2016-08-17 东莞德可森电子科技有限公司 Infrared remote control receiver
WO2016127809A1 (en) * 2015-02-09 2016-08-18 张春雨 Microprocessor-based infrared signal decoding method
CN108734944A (en) * 2017-04-18 2018-11-02 陕西万方汽车零部件有限公司 A kind of wireless remote control coding/decoding method and its device
CN109166301A (en) * 2018-11-05 2019-01-08 福建师范大学 A kind of infrared communication coding/decoding method of embedded system
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
US6529556B1 (en) * 1997-01-31 2003-03-04 Thomson Licensing S.A. Remote control apparatus and method
CN101067899A (en) * 2007-05-16 2007-11-07 周华鹏 Antiinterference infrared remote control device
CN101110159A (en) * 2007-08-21 2008-01-23 中兴通讯股份有限公司 Method for receiving infrared remote control signal through serial port
CN101356786A (en) * 2006-01-13 2009-01-28 Smk株式会社 Pulse modulation method
CN101404113A (en) * 2008-11-06 2009-04-08 成都九洲电子信息系统有限责任公司 Method for implementing infrared remote control decoding by software in embedded system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6529556B1 (en) * 1997-01-31 2003-03-04 Thomson Licensing S.A. Remote control apparatus and method
CN101356786A (en) * 2006-01-13 2009-01-28 Smk株式会社 Pulse modulation method
CN101067899A (en) * 2007-05-16 2007-11-07 周华鹏 Antiinterference infrared remote control device
CN101110159A (en) * 2007-08-21 2008-01-23 中兴通讯股份有限公司 Method for receiving infrared remote control signal through serial port
CN101404113A (en) * 2008-11-06 2009-04-08 成都九洲电子信息系统有限责任公司 Method for implementing infrared remote control decoding by software in embedded system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《电子器件》 20051230 倪维波等 基于WinCE系统的红外遥控解码的软件实现与性能分析 全文 1-2 , 第04期 2 *
《自动化与仪器仪表》 20030625 戴培山等 基于keil c51的红外遥控器解码设计 全文 1-2 , 第06期 2 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016127809A1 (en) * 2015-02-09 2016-08-18 张春雨 Microprocessor-based infrared signal decoding method
CN105869382A (en) * 2015-02-10 2016-08-17 东莞德可森电子科技有限公司 Infrared remote control receiver
CN108734944A (en) * 2017-04-18 2018-11-02 陕西万方汽车零部件有限公司 A kind of wireless remote control coding/decoding method and its device
CN109166301A (en) * 2018-11-05 2019-01-08 福建师范大学 A kind of infrared communication coding/decoding method of embedded system
CN110969832A (en) * 2019-10-25 2020-04-07 智恒科技股份有限公司 Infrared code decoding method

Similar Documents

Publication Publication Date Title
CN101814233A (en) Decoding method of infrared remote control software
CN102881150B (en) infrared remote control signal learning module and remote control device
CN101404113B (en) Method for implementing infrared remote control decoding by software in embedded system
CN100568738C (en) The pulse-width modulation type optical fiber communication coding coding/decoding method and the circuit of band synchronised clock
CN100498866C (en) Method for receiving infrared remote control signal through serial port
CN109166301B (en) Infrared communication decoding method of embedded system
US20090132898A1 (en) Ic card, information processing device, communication type identification method, and program
US20150326280A1 (en) Receiver, apparatus, and methods for wirelessly receiving data from a power infrastructure
CN105187070A (en) Manchester encoding signal decoding method and device
CN101719310A (en) Long-distance infrared remote-controlled device and method used for embedded equipment
CN110148292A (en) A kind of wireless remote control decoding method and coding and decoding device
CN106953690B (en) Smart machine near field communication system based on visible light
CN109462405A (en) A kind of single wire transmission key press detecting circuit
CN103310512A (en) Infrared remote control coded lock based on STC89C52 single chip microprocessor control
CN110224702B (en) Time code IRIG-B self-adaptive decoding device and decoding method
CN203025931U (en) Singlechip-based wireless encoding and decoding remote controller
CN109743353A (en) A kind of data transfer device based on Internet of Things
CN104124781B (en) Power supply module of induction type power supply and data interpretation method thereof
CN101127156A (en) Universal method for identifying remote control instruction and the related device
CN201060549Y (en) Anti-interference infrared remote controller
CN103377550B (en) Composite decoding method and device for infrared signal
CN107422874B (en) Multifunctional key communication method
WO2003001447A8 (en) Reduced algorithm receiver
CN102006083A (en) Method for decoding phase code
WO2020046631A1 (en) Reliable asynchronous baseband protocol with clock and data recovery by correlation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20100825