CN101465050B - Method for controlling controlled electric appliance through remote controller and remote controller - Google Patents
Method for controlling controlled electric appliance through remote controller and remote controller Download PDFInfo
- Publication number
- CN101465050B CN101465050B CN 200710125256 CN200710125256A CN101465050B CN 101465050 B CN101465050 B CN 101465050B CN 200710125256 CN200710125256 CN 200710125256 CN 200710125256 A CN200710125256 A CN 200710125256A CN 101465050 B CN101465050 B CN 101465050B
- Authority
- CN
- China
- Prior art keywords
- remote control
- control mode
- telepilot
- bit
- electric appliance
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
Abstract
The invention provides a method for controlling a controlled electrical appliance through a remote controller, and the remote controller. The remote controller comprises a check bit generation module and a triggering bit generation module, wherein, the triggering bit generation module is used for generating a triggering bit, the triggering bit is used for the controlled electrical appliance to identify a remote control code emitted continuously by the same button; the check bit generation module is used for generating a check bit, and the check bit is used for the controlled electrical appliance to judge whether a remote control code emitted by the remote controller is correct or not. The remote control code emitted by the remote controller is modulated by a pulse distance; the triggering bit is located at the first place of the remote control code; and the parity check bit is located at the last place of the remote control code. The technical scheme provided by the invention enables the controlled electrical appliance to judge the remote control code according to a parity check bit in the remote control code, so that the correction of the remote control code is easily identified; meanwhile, the technical scheme avoids the problems that a check code is carried after each bit crosses the code, thereby causing longer time of emission of an infrared light by each code, and higher battery consumption of the remote controller.
Description
Technical field
The present invention relates to the telecontrol engineering field, particularly the Infrared Ray Remote Control Technology of radio and television receiving trap.
Background technology
Universal along with household electrical appliances such as televisor, disc player, air-conditionings, the quantity of these household electrical appliance constantly increases, and these household electrical appliance major parts all will be equipped with telepilot, therefore causes the quantity of telepilot surprising.Existing telepilot generally adopts dry cell power supply, and the annual dry cell that consumes of these telepilots is also enormous amount, and resource and environmental protection have all been caused adverse influence.
Adopt specific remote control agreement to carry out the transmission of signal between telepilot and controlled electric appliance, remote control agreement commonly used has tens kinds of RC5, RCA, NEC etc. at present, the remote control mode that adopts the telepilot emission of RC5 agreement is the remote control mode of tape verifying position not, easily causes error code.
In addition, the carrier wave dutycycle of supposing the remote control mode of above-mentioned remote control agreement emission is 1/4, RC5 agreement self is the tape verifying code not, easily cause error code, every yard emission infrared light time of NEC agreement is 6.73ms((9+32*0.56)/4), continuation code is only sent out the part code, easily causes the directionkeys continuation code to be decoded into opposite directionkeys; Every yard emission infrared light time of RCA agreement is 4.125((4+25*0.5)/4), be not with the continuation code identifying information, be not easy to solve the continuation code problem; In sum, the not tape verifying code that existing telepilot agreement has easily causes error code, has plenty of after every bit string code and all carries check code, causes every yard emission infrared light time longer, and remote controller battery consumption is larger.
Summary of the invention
The object of the present invention is to provide a kind of method and telepilot of controlling controlled electric appliance by telepilot, be intended to solve the error code problem that exists in prior art.
another object of the present invention is to provide a kind of telepilot, described telepilot comprises parity check bit generation module and trigger bit generation module, described trigger bit generation module is used for generating trigger bit, described trigger bit is used for for the remote control mode of the continuous emission of the same button of controlled electric appliance identification, described parity check bit generation module is used for generating parity check bit, described parity check bit is used for judging for controlled electric appliance whether the remote control mode of described telepilot emission is correct, the remote control mode of described telepilot emission adopts the pulse distance modulated, described trigger bit is positioned at the first place of described remote control mode, described parity checking is positioned at the position, end of described remote control mode.
Described check bit is odd parity bit, is used for supplying whether described controlled electric appliance is that odd number carries out verification to the number of the logical one in the remote control mode of described telepilot emission, thereby judges whether described remote control mode is correct.
Described check bit is even parity bit, is used for supplying whether described controlled electric appliance is that even number carries out verification to the number of the logical one in the remote control mode of described telepilot emission, thereby judges whether described remote control mode is correct.
Also comprise pilot pulse before the remote control mode of described telepilot emission.
The present invention also provides a kind of method of controlling controlled electric appliance by telepilot, and described method comprises following step:
After a, controlled electric appliance receive the remote control mode of telepilot emission, judge according to the parity check bit of last that is arranged in described remote control mode whether described remote control mode is correct, if correct, turn step b, otherwise turn step c;
Address code and command code in b, the described remote control mode of intercepting are carried out operation accordingly;
C, do not carry out any operation.
Wherein, the remote control mode of described telepilot emission adopts the pulse distance modulated, and step a specifically comprises:
After a1, controlled electric appliance receive the remote control mode of telepilot emission, the number of adding up logical one in described remote control mode, if the number of described logical one is odd number, the check bit in described remote control mode is 0, judges that described remote control mode is correct, turns step b, otherwise turns step c.
Wherein step a also comprises:
Whether described controlled electric appliance is the same button remote control mode of emission continuously according to the described remote control mode of trigger bit identification of the first place that is positioned at described remote control mode.
the present invention overcomes the deficiencies in the prior art, employing arranges parity check bit in the remote control mode of telepilot emission, controlled electric appliance judges whether according to this parity check bit whether described remote control mode is correct, if correct, intercept address code and command code in described remote control mode, carry out corresponding operation, otherwise do not carry out the technical scheme of any operation, make controlled electric appliance to judge it according to the parity check bit in remote control mode, easily whether the identification remote control mode is correct, avoided simultaneously all carrying check code after every bit string code, cause every yard emission infrared light time longer, the problem that remote controller battery consumption is larger.
Description of drawings
Fig. 1 is the described telepilot theory diagram of the embodiment of the present invention;
Fig. 2 is logical one and the logical zero oscillogram of the remote control agreement of the described telepilot employing of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the remote control agreement of the described telepilot employing of the embodiment of the present invention;
Fig. 4 is the described coding/decoding method process flow diagram of the embodiment of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
the described system of the embodiment of the present invention comprises telepilot and controlled electric appliance, telepilot emission remote control mode, controlled electric appliance is decoded after receiving remote control mode, then complete relevant function according to decoded result, wherein: the theory diagram of telepilot as shown in Figure 1, comprise that the school odd even tests a generation module, trigger bit generation module and control and coding module, this parity check bit generation module is used for generating parity check bit, the parity check bit that generates is positioned at telepilot to the position, end of the remote control mode of controlled electric appliance emission, described telepilot also comprises the trigger bit generation module, be used for generating trigger bit, be positioned at telepilot to the first place of the remote control mode of controlled electric appliance emission, after controlled electric appliance receives the remote control mode of telepilot emission, according to the parity check bit of position, remote control mode end, remote control mode is carried out verification, whether correct with the remote control mode that judges this emission of telepilot, if correct, carry out operation corresponding to remote control mode, otherwise abandon, do not carry out any operation.After controlled electric appliance receives the remote control mode of telepilot emission, judge according to trigger bit wherein whether the remote control mode of this emission of telepilot and the remote control mode of emission last time are triggered by a same button, if the trigger bit of this remote control mode is different from the trigger bit of remote control mode last time, show that twice remote control mode is by the not button triggering of homogeneous, the trigger bit of this remote control mode is identical with the trigger bit of remote control mode last time, show that the user pins the remote control mode of launching continuously after the same button of telepilot, be convenient to controlled electric appliance identification continuation code.
In the embodiment of the present invention, telepilot is 15 to the remote control mode of controlled electric appliance emission, wherein the first place is the trigger bit that telepilot trigger bit generation module generates, the position, end is the parity check bit that telepilot parity check bit generation module generates, and 5 bit address codes and 8 order of the bit codes after trigger bit adopt the pulse distance modulated, each pulse forms (approximately 500US) by 28 56KHZ carrier cycles, all the other are empty, carrierfree, and carrier frequency is 56KHZ; Logical one wherein accounts for 2.5ms, and logical zero accounts for 1.5ms; Have before remote control mode 4ms pilot pulse, controlled electric appliance to detect that 4ms(is single is 8ms along triggering) pulse, just carry out initialization, in the situation that press ﹠ hold, every 128ms(from beginning to beginning) send a string same code.
Fig. 2 is logical one and the logical zero oscillogram of the remote control agreement of the described telepilot employing of the embodiment of the present invention.As shown in the figure, logical one accounts for 2.5ms, and logical zero accounts for 1.5ms, and bit time is longer, and a phenomenon is lost in difficult generation.Fig. 3 is the schematic diagram of the remote control agreement of the described telepilot employing of the embodiment of the present invention, as shown in the figure, and owing to adopting the pulse distance modulated, just can directly differentiate " 0 " or " 1 " according to pulsewidth, anteroposterior position is not related, and due to the 4ms pilot pulse being arranged, 4ms(being detected single is 8ms along triggering) pulse, just carry out initialization, perform the preliminary work that receives string of code, in figure, C represents parity check bit, and T represents trigger bit, LSB representative coding low level, MSB representative coding is high-order.
After string code controlled electric appliance receives the remote control mode of telepilot emission, judge according to trigger bit wherein whether the remote control mode of this emission of telepilot and the remote control mode of emission last time are triggered by a same button, if the trigger bit of this remote control mode is different from the trigger bit of remote control mode last time, show that twice remote control mode is by the not button triggering of homogeneous, the trigger bit of this remote control mode is identical with the trigger bit of remote control mode last time, show that the user pins the remote control mode of launching continuously after the same button of telepilot, be convenient to controlled electric appliance identification continuation code.
The position, end is odd parity bit, by statistics go here and there the code logical one number whether be odd number, judge whether correctly to receive string of code, if incorrect, just abandon, do not carry out any action, prepare to receive lower string of code, if correct, just intercept address code (systematic code) and command code, and button is set receives sign, carry out corresponding operation by system.
Fig. 4 is the described method flow diagram of controlling controlled electric appliance by telepilot of the embodiment of the present invention, as shown in the figure, specifically comprises following step:
1, each register of initialization IR receiver module makes it the negative edge triggering and interrupts enabling.
2, wait for interruption, after interrupting occuring, read the value of pulsewidth counter.
3, the value according to the pulsewidth register judges, if pulsewidth between 6ms to 10ms, shows that what receive is pilot pulse (can have+-25% deviation), turns step 4, otherwise turns step 5.
4, each variable of initialization, the zero clearing of string code variable, the pilot pulse indexed variable is put TRUE, has received the zero clearing of string code bit number variable, performs the preliminary work that receives string of code, turns step 2.
5, judged (judging according to pilot pulse indexed variable value) according to whether having received pilot pulse before, if (TRUE), turn step 6, before do not received pilot pulse otherwise turn step 2(, the remote control mode that is not correct is described, continues to wait for next pulse).
6, the value according to the pulsewidth counter judges, if pulsewidth between 1ms to 1.9ms, explanation is " 0 " pulse (can have+-25% deviation), a string code variable moves to left one, the position, end adds 0, has received string code bit number variable and has added 1; If pulsewidth is between 2ms to 3ms, explanation is " 1 " pulse (can have+-25% deviation), and string code variable moves to left one, and the position, end adds 1, has received string code bit number variable and has added 1; Otherwise illustrate that this pulse is not the part of remote control mode, but disturbing pulse, reception, turn step 12 again.
7, whether judge more than or equal to 15 according to having received string code bit number variable, if so, turn step 8; Otherwise turn step 2.
8, in statistics string code variable, whether 1 number is that odd number judges, if so, turns step 9; Otherwise turn step 12.
9, getting string code variable least-significant byte is command code, and getting the 14th of string code variable is trigger bit, gets 13 to 8 of string code variablees and is address code, turns step 10.
10, whether be zero judge (the televisor address code is zero) according to address code, if so, turn step 11; Otherwise turn step 12.
11, button being set, to examine indexed variable be TRUE, removes pilot pulse indexed variable (FALSE), turns step 13.
12, remove pilot pulse indexed variable (FALSE), turn step 2.
13, whether equal the last time command code according to the current command code and judge, if equal, turn step 14; Otherwise turn step 16.
14, whether equal to trigger last time place value according to current triggering place value and judge, if equal, turn step 15; Otherwise turn step 16.
15, whether allow to repeat to judge according to the current command code, if allow, turn step 16; Otherwise turn step 17.
16, carry out the corresponding function of the current command code, turn step 17.
17, the current command code is assigned to the key variable, current triggering place value is assigned to the trigger bit variable, button is examined indexed variable be set to FALSE, turn step 18.
18, finish.
The above is only preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.
Claims (6)
1. telepilot, it is characterized in that, described telepilot comprises parity check bit generation module and trigger bit generation module, described trigger bit generation module is used for generating trigger bit, described trigger bit is used for for the remote control mode of the continuous emission of the same button of controlled electric appliance identification, described parity check bit generation module is used for generating parity check bit, described parity check bit is used for judging for controlled electric appliance whether the remote control mode of described telepilot emission is correct, the remote control mode of described telepilot emission adopts the pulse distance modulated, described trigger bit is positioned at the first place of described remote control mode, described parity checking is positioned at the position, end of described remote control mode.
2. telepilot according to claim 1, it is characterized in that, described parity check bit is odd parity bit, is used for supplying whether described controlled electric appliance is that odd number carries out verification to the number of the logical one in the remote control mode of described telepilot emission, thereby judges whether described remote control mode is correct.
3. telepilot according to claim 1, it is characterized in that, described parity check bit is even parity bit, is used for supplying whether described controlled electric appliance is that even number carries out verification to the number of the logical one in the remote control mode of described telepilot emission, thereby judges whether described remote control mode is correct.
4. telepilot according to claim 1, is characterized in that, also comprises pilot pulse before the remote control mode of described telepilot emission.
5. a method of controlling controlled electric appliance by telepilot, is characterized in that, described method comprises following step:
After a, controlled electric appliance receive the remote control mode of telepilot emission, judge according to the parity check bit of last that is positioned at described remote control mode whether described remote control mode is correct, if correct, turn step b, otherwise turn step c;
Address code and command code in b, the described remote control mode of intercepting are carried out operation accordingly;
C, do not carry out any operation;
Wherein, the remote control mode of described telepilot emission adopts the pulse distance modulated;
Step a also comprises:
Whether described controlled electric appliance is the same button remote control mode of emission continuously according to the described remote control mode of trigger bit identification of the first place that is positioned at described remote control mode.
6. method according to claim 5, is characterized in that, wherein step a specifically comprises:
After a1, controlled electric appliance receive the remote control mode of telepilot emission, the number of adding up logical one in described remote control mode, if the number of described logical one is odd number, the check bit in described remote control mode is 0, judges that described remote control mode is correct, turns step b, otherwise turns step c.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710125256 CN101465050B (en) | 2007-12-19 | 2007-12-19 | Method for controlling controlled electric appliance through remote controller and remote controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710125256 CN101465050B (en) | 2007-12-19 | 2007-12-19 | Method for controlling controlled electric appliance through remote controller and remote controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101465050A CN101465050A (en) | 2009-06-24 |
CN101465050B true CN101465050B (en) | 2013-05-08 |
Family
ID=40805612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710125256 Expired - Fee Related CN101465050B (en) | 2007-12-19 | 2007-12-19 | Method for controlling controlled electric appliance through remote controller and remote controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101465050B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101877613B (en) * | 2010-06-18 | 2013-07-10 | 苏州本控电子科技有限公司 | Infrared communication method used for a remote controller |
CN101964768B (en) * | 2010-08-20 | 2013-10-02 | 苏州本控电子科技有限公司 | Adaptive infrared anti-jamming transmission method |
CN102945596B (en) * | 2012-10-31 | 2014-12-24 | 四川长虹电器股份有限公司 | Signal reception method of remote controller |
CN103595469A (en) * | 2013-02-02 | 2014-02-19 | 彭海涛 | Infrared photoconduction remote control system |
CN103729998A (en) * | 2013-12-09 | 2014-04-16 | 乐视致新电子科技(天津)有限公司 | Decoding method and device |
CN105208423B (en) * | 2015-07-07 | 2018-12-07 | 深圳Tcl数字技术有限公司 | based on electromagnetic induction remote control method and system |
CN106448129A (en) * | 2016-10-26 | 2017-02-22 | 青岛海信电器股份有限公司 | Method and device for removing interference pulse in infrared remote control data |
CN106448128B (en) * | 2016-10-26 | 2020-03-06 | 青岛海信电器股份有限公司 | Infrared remote control data processing method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1719488A (en) * | 2005-08-03 | 2006-01-11 | 四川长虹电器股份有限公司 | Infrared remote control anti interference detection method |
CN1797495A (en) * | 2004-12-31 | 2006-07-05 | Lg电子株式会社 | Remote control signal, remote control system, and method of controlling device with remote controller |
CN1804925A (en) * | 2006-01-24 | 2006-07-19 | 上海广电(集团)有限公司中央研究院 | Data transmission method |
CN1961507A (en) * | 2004-05-28 | 2007-05-09 | 皇家飞利浦电子股份有限公司 | UART-encoded pulse-modulation technique |
CN101086802A (en) * | 2007-05-30 | 2007-12-12 | 康佳集团股份有限公司 | A repeated control method for remote control key |
-
2007
- 2007-12-19 CN CN 200710125256 patent/CN101465050B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1961507A (en) * | 2004-05-28 | 2007-05-09 | 皇家飞利浦电子股份有限公司 | UART-encoded pulse-modulation technique |
CN1797495A (en) * | 2004-12-31 | 2006-07-05 | Lg电子株式会社 | Remote control signal, remote control system, and method of controlling device with remote controller |
CN1719488A (en) * | 2005-08-03 | 2006-01-11 | 四川长虹电器股份有限公司 | Infrared remote control anti interference detection method |
CN1804925A (en) * | 2006-01-24 | 2006-07-19 | 上海广电(集团)有限公司中央研究院 | Data transmission method |
CN101086802A (en) * | 2007-05-30 | 2007-12-12 | 康佳集团股份有限公司 | A repeated control method for remote control key |
Also Published As
Publication number | Publication date |
---|---|
CN101465050A (en) | 2009-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101465050B (en) | Method for controlling controlled electric appliance through remote controller and remote controller | |
CN101388142B (en) | Instruction recognizing method of remote controller, recognizing apparatus and household appliances | |
CN101404113B (en) | Method for implementing infrared remote control decoding by software in embedded system | |
US8295407B2 (en) | Decoding method and apparatus for infrared remote control commands | |
CN102881150A (en) | Infrared remote control signal learning module and remote control device | |
CN101719311B (en) | Method for infrared remote control of computer | |
US20140186044A1 (en) | System and method for infrared dongle | |
CN102354443A (en) | Wireless infrared (IR) remote control device and operating method thereof | |
CN107220199B (en) | The host computer of refrigerator, the slave computer of refrigerator, the communication means of refrigerator and system | |
CN110690742A (en) | Charging interface multiplexing method, charging box, earphone and computer readable storage medium | |
CN100373418C (en) | Infrared remote control anti interference detection method | |
US20240088772A1 (en) | Switch control method, receiving end control method, self-generating switch and receiving end | |
CN102750812A (en) | Method for matching reception device and remote controller, reception device and remote controller | |
CN101155278A (en) | Electrical equipment with multi-remote controller control function and implementing method thereof | |
CN104867316A (en) | Infrared remote control method and device | |
CN104299316A (en) | Method for automatically detecting card types through financial terminal | |
CN111225258A (en) | Display apparatus and control method thereof | |
CN103325233A (en) | Method, apparatus and system for realizing infrared ray learning type remote control | |
CN101753225B (en) | RF channel deciding and conversing method and RF wireless transmit-receive system thereof | |
CN104240492A (en) | Method, device and terminal for debugging infrared remote control signals | |
CN105046911B (en) | A kind of multi-channel switch amount transmission method and device | |
CN110942612A (en) | Remote controller control method, remote controller and remote controller system | |
CN102608936A (en) | Method and system for controlling communication between control main board and display panel of water heater | |
CN103729998A (en) | Decoding method and device | |
CN111091702A (en) | Self-learning infrared decoding method, device and system based on pulse width detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130508 Termination date: 20171219 |
|
CF01 | Termination of patent right due to non-payment of annual fee |