CN102201159B - Infrared remote control residual code based method for realizing standby awakening - Google Patents
Infrared remote control residual code based method for realizing standby awakening Download PDFInfo
- Publication number
- CN102201159B CN102201159B CN 201110134224 CN201110134224A CN102201159B CN 102201159 B CN102201159 B CN 102201159B CN 201110134224 CN201110134224 CN 201110134224 CN 201110134224 A CN201110134224 A CN 201110134224A CN 102201159 B CN102201159 B CN 102201159B
- Authority
- CN
- China
- Prior art keywords
- remote control
- irin
- standby
- code
- withdraw
- 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 discloses an infrared remote control residual code based method for realizing standby awakening, which can be widely applied in various consumer electronic devices which are controlled through infrared remote control. The method comprises the steps of: (1) entering into standby when receiving a standby key; (2) awakening a processor when receiving an infrared signal; (3) decoding residual codes through an infrared remote control decoding program; (4) distinguishing interference signals sent by infrared source such as lamps and the like and various remote controls of non-local hosts by utilizing partial characteristic codes obtained in the residual codes and entering into the standby again if the processor is awakened by the non-local host remote controls; and (5) if the processor is awakened by local host remote control, distinguishing different press keys of the local host remote control by utilizing the partial characteristic codes obtained in the residual codes. In the invention, the infrared remote control decoding in a standby mode is realized without additional processor and circuit so that the cost, the power consumption and the complexity of the system can be effectively reduced.
Description
Technical field
The present invention relates to a kind of method that realizes standby wakeup based on the residual code of infrared remote control, can be widely used in the various electronic equipment for consumption of controlling by infrared remote control.
Background technology
For energy-saving and cost-reducing, realize low-carbon economy, effectively reduce the power consumption of various electronic equipment for consumption, comprise the power consumption under holding state, become more and more important.
Yet, after in a single day present most processors enter standby, often need from being waken up to by infrared remote-controlled signal to obtain carrying out based on the infrared remote control decoding program of interrupting time of growing, cause most of infrared remote controls to interrupt losing, thus can not normal decoder.This signal that just means that the various remote controls of undesired signal that the infrared radiation sources such as lamp send and non-the machine are sent all can wake processor up.Obviously, this is not that we are desired.
Solving the most direct way of this difficult problem is to increase the processor (being called from processor) that power consumption is lower, when primary processor is in standby, by be responsible for the decoding of infrared remote control from processor, like this after primary processor is waken up by infrared remote-controlled signal, can from obtaining complete decoded information from processor, whether be just that correct systematic code and key just can determine whether really withdraw from standby according to this decoded information.
The problem that this way exists is obvious, and extra what increase is only the decoding of infrared remote control in order to complete primary processor and to be in standby from processor, obviously relatively wastes, with cost and the power consumption of meaningless increase product; On the other hand, do like this complexity that also can increase undoubtedly system.
Summary of the invention
The objective of the invention is to increase extra processor and circuit and realize infrared remote control decoding under holding state, can effectively reduce cost, power consumption and the complexity of system.
The present invention solves the problems of the technologies described above the method that adopts to comprise step:
(1) receive and treat that switch enters standby.
(2) receive infrared signal processor be waken up.
(3) the infrared remote control decoding program solves residual code.
(4) utilize the Partial Feature code that obtains in residual code to distinguish undesired signal that the infrared radiation source such as lamp sends and the various remote controls of non-the machine, if non-the machine remote control wakes up again enters standby.
(5) if waken up by the machine remote control, utilize the part key that obtains in residual code also may distinguish the different button of the machine remote control.
The present invention need not increase extra processor and circuit and realize infrared remote control decoding under holding state, can effectively reduce cost, power consumption and the complexity of system.
Description of drawings
Fig. 1 is hardware connection layout of the present invention.
Fig. 2 is standby process flow diagram of the present invention (the part key can be distinguished and treat switch).
Fig. 3 is standby process flow diagram of the present invention (the part key can not be distinguished and treat switch).
Fig. 4 is remote control decoding process flow diagram of the present invention (the part key can be distinguished and treat switch).
Fig. 5 is remote control decoding process flow diagram of the present invention (the part key can not be distinguished and treat switch).
Embodiment
Thinking of the present invention is based on the residual code of infrared remote control and realizes standby wakeup.So-called residual code comprises Partial Feature code and part key for normal code.Why residual code can appear? under normal condition, what solve is normal code, and this yard may be correct, may be also error code (radix-minus-one complement and radix-minus-one complement part as true form part in the NEC agreement are inconsistent), but can be not incomplete.And in the situation of standby wakeup, processor often needs from being waken up to by infrared remote-controlled signal to obtain carrying out based on the infrared remote control decoding program of interrupting time of growing, cause most of infrared remote controls to interrupt losing, thereby the code that solves is incomplete, namely so-called residual yard, this code comprises Partial Feature code and part key.
The Partial Feature code is directly related with the agreement that the machine remote control is adopted, and with the decoding scheme that adopts, relation is arranged also, therefore often needs actual measurement.The condition code of surveying out may have many groups, and this also should be noted that.
Whether the part key needs actual measurement equally, can the deciding section key can distinguish according to the figure place of available part key and treat switch.Treat switch if can distinguish, just can realize only having the machine remote control standby bond energy that equipment is waken up; If can not, can only accomplish that any key of the machine remote control can wake equipment up, the follow-up user of needs is confirmed whether really to withdraw from standby.
Below in conjunction with the drawings and specific embodiments, principle of the present invention is elaborated.
Be illustrated in figure 1 as hardware connection layout of the present invention.OUT(output terminal with infrared remote control receiver) the pin IRIN(that is connected to processor is generally general input/output port) pin, so that the infrared remote control pulse train that infrared remote control receiver receives enters processor by this pin; The GND pin of infrared remote control receiver and processor links together and ground connection.If it is unmatched that the level between OUT pin and IRIN pin requires, between the IRIN pin of the OUT pin of infrared remote control receiver and processor, further comprise level transferring chip, in order to realize the level conversion between OUT pin and IRIN pin.In addition, infrared remote control receiver provides the electric energy support by power supply VCC1, and processor provides the electric energy support by power supply VCC2.
Be illustrated in figure 2 as the part key and can distinguish standby process flow diagram of the present invention when switch.If receive and treat switch, at first mutex amount IRMUTEX is initialized as 0, then processor enters standby.After processor is waken up by infrared signal, obtain IRMUTEX, if because overtime and withdraw from " obtaining IRMUTEX ", get back to " mutex amount IRMUTEX is initialized as 0 " step, and reenter standby; Otherwise, the clear key formation, and enter the program major cycle.
Be illustrated in figure 3 as the part key and can not distinguish standby process flow diagram of the present invention when switch.After being the clear key formation with the difference of Fig. 2, need the user to be confirmed whether really to withdraw from standby.
Be illustrated in figure 4 as the part key and can distinguish remote control decoding process flow diagram of the present invention when switch.If at first IRIN interrupts arriving, clear IRIN interrupt flag bit, then decode.The detailed process of decoding can have larger difference because of the difference of scheme, such as the scheme that can be pure software, can be also the scheme that hardware-software combines.After decoding is completed, at first judge whether normal code, if normal code, mean not to be situation about being waken up from standby, key is joined the team, and withdraw from IRIN and interrupt; Otherwise, if the Partial Feature code further judges whether the machine remote control Partial Feature code, if it is the machine remote control sign is put 1; Otherwise, if so at first that the machine remote control sign is clear 0 if the part key judges further whether the machine remote control sign is 1, then determine whether to treat switch, if it is discharge IRMUTEX, then withdraw from IRIN and interrupt.
Be illustrated in figure 5 as the part key and can not distinguish remote control decoding process flow diagram of the present invention when switch.The key distinction of this process flow diagram and Fig. 4 is processing section key not.As shown in process flow diagram, if the machine remote control Partial Feature code discharges IRMUTEX, and withdraw from the IRIN interruption.
Those of ordinary skill in the art will appreciate that, embodiment described here is in order to help reader understanding's principle of the present invention, should to be understood to that the protection domain of inventing is not limited to such special statement and embodiment.Everyly make various possible being equal to according to foregoing description and replace or change, all be considered to belong to the protection domain of claim of the present invention.
Claims (4)
1. a method that realizes standby wakeup based on the residual code of infrared remote control, is characterized in that, comprises step:
(1) the OUT pin with infrared remote control receiver is the IRIN pin that the output terminal pin is connected to processor, and the infrared remote control pulse train that is used for infrared remote control receiver is received enters processor by the IRIN pin;
(2) receive and treat that switch enters standby;
Step (2) specific works step is as follows:
(21) mutex amount IRMUTEX is initialized as 0;
(22) processor enters standby;
(3) receive infrared signal processor be waken up;
(4) the infrared remote control decoding program solves residual code;
(5) utilize the Partial Feature code that obtains in residual code to distinguish undesired signal that infrared radiation source sends and the various remote controls of non-the machine, if non-the machine remote control wakes up again enters standby;
(6) if waken up by the machine remote control, utilize the part key that obtains in residual code to distinguish the different button of the machine remote control;
A, can distinguish for the part key situation for the treatment of switch, the standby flow process is as follows:
(1) if receive and treat switch, at first mutex amount IRMUTEX is initialized as 0, then processor enters standby;
(2) after processor is waken up by infrared signal, obtain IRMUTEX and time-out time is set;
(3) if because overtime and withdraw from " obtaining IRMUTEX ", getting back to " mutex amount IRMUTEX is initialized as 0 " step is step (21), and reenters standby;
(4) if not overtime clear key formation and enters the program major cycle;
Decoding process is as follows:
(1) if IRIN interruption arrival, clear IRIN interrupt flag bit;
(2) decoding;
(3) if normal code, mean not to be situation about being waken up from standby further to judge whether error code, key is joined the team if not error code, and withdraw from IRIN and interrupt; If error code directly withdraws from IRIN and interrupts;
(4) if not normal code, judge whether it is the Partial Feature code, if the Partial Feature code further judges whether the machine remote control Partial Feature code, if the machine remote control Partial Feature code puts 1 with the machine remote control sign, and withdraw from the IRIN interruption; If not the machine remote control Partial Feature code, directly withdraw from IRIN and interrupt;
(5) if not the Partial Feature code, judge whether it is the part key, directly withdrawing from IRIN if not the part key interrupts, whether be 1 if the part key further judges the machine remote control sign, if so, at first that the machine remote control sign is clear 0, then determine whether to treat switch, if it is discharge IRMUTEX, then withdraw from IRIN and interrupt; If not treating switch, directly withdraw from IRIN and interrupt; If the machine remote control sign is not 1, directly withdraws from IRIN and interrupt;
(6) withdrawing from IRIN interrupts;
B, can not distinguish for the part key situation for the treatment of switch, the standby flow process is as follows:
(1) if receive and treat switch, at first mutex amount IRMUTEX is initialized as 0, then processor enters standby;
(2) after processor is waken up by infrared signal, obtain IRMUTEX and time-out time is set;
(3) if because overtime and withdraw from " obtaining IRMUTEX ", getting back to " mutex amount IRMUTEX is initialized as 0 " step is step (21), and reenters standby;
(4) if not overtime clear key formation;
(5) user is confirmed whether really to withdraw from standby, if really withdraw from, enters the program major cycle; Otherwise getting back to " mutex amount IRMUTEX is initialized as 0 " step is step (21), and reenters standby;
Decoding process is as follows:
(1) if IRIN interruption arrival, clear IRIN interrupt flag bit;
(2) decoding;
(3) if normal code, mean not to be situation about being waken up from standby further to judge whether error code, key is joined the team if not error code, and withdraw from IRIN and interrupt; If error code directly withdraws from IRIN and interrupts;
(4) if not normal code, judge whether it is the Partial Feature code, directly withdraw from IRIN if not the Partial Feature code and interrupt; If the Partial Feature code further judges whether the machine remote control Partial Feature code, if it is discharge IRMUTEX, and withdraw from the IRIN interruption; If not the machine remote control Partial Feature code, directly withdraw from IRIN and interrupt;
(5) withdrawing from IRIN interrupts.
2. according to claim 1 based on residual yard method that realizes standby wakeup of infrared remote control, it is characterized in that, between the OUT pin of the middle infrared remote control receiver of step (1) and the IRIN pin of processor, further comprise level transferring chip, in order to realize the level conversion between OUT pin and IRIN pin.
3. the method that realizes standby wakeup based on the residual code of infrared remote control according to claim 1, is characterized in that, the Partial Feature code is directly related with the agreement that the machine remote control is adopted, and with the decoding scheme that adopts, relation is arranged also, needs actual measurement; The condition code of surveying out has many groups.
4. whether the method that realizes standby wakeup based on the residual code of infrared remote control according to claim 1, is characterized in that, the part key needs actual measurement equally, can the deciding section key can distinguish according to the figure place of the part key that obtains and treat switch; Treat switch if can distinguish, just can realize only having the machine remote control standby bond energy that equipment is waken up; If can not, can only accomplish that any key of the machine remote control can wake equipment up, the follow-up user of needs is confirmed whether really to withdraw from standby.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110134224 CN102201159B (en) | 2011-05-24 | 2011-05-24 | Infrared remote control residual code based method for realizing standby awakening |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110134224 CN102201159B (en) | 2011-05-24 | 2011-05-24 | Infrared remote control residual code based method for realizing standby awakening |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102201159A CN102201159A (en) | 2011-09-28 |
CN102201159B true CN102201159B (en) | 2013-06-19 |
Family
ID=44661806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110134224 Expired - Fee Related CN102201159B (en) | 2011-05-24 | 2011-05-24 | Infrared remote control residual code based method for realizing standby awakening |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102201159B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10216243B2 (en) | 2014-08-19 | 2019-02-26 | Zte Corporation | Method, device and storage medium for waking up home interconnection device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1862616A (en) * | 2005-05-14 | 2006-11-15 | 深圳市顶星数码网络技术有限公司 | Television infrared remote-receiver for notebook computer and receiving method |
CN2907137Y (en) * | 2006-06-13 | 2007-05-30 | 河南理工大学 | Remote controlled dispatching control device |
CN101489029A (en) * | 2009-01-16 | 2009-07-22 | 深圳创维数字技术股份有限公司 | Set-top box which is multiple remote control encoding mode compatible under standby state and method |
-
2011
- 2011-05-24 CN CN 201110134224 patent/CN102201159B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1862616A (en) * | 2005-05-14 | 2006-11-15 | 深圳市顶星数码网络技术有限公司 | Television infrared remote-receiver for notebook computer and receiving method |
CN2907137Y (en) * | 2006-06-13 | 2007-05-30 | 河南理工大学 | Remote controlled dispatching control device |
CN101489029A (en) * | 2009-01-16 | 2009-07-22 | 深圳创维数字技术股份有限公司 | Set-top box which is multiple remote control encoding mode compatible under standby state and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10216243B2 (en) | 2014-08-19 | 2019-02-26 | Zte Corporation | Method, device and storage medium for waking up home interconnection device |
Also Published As
Publication number | Publication date |
---|---|
CN102201159A (en) | 2011-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
ES2509898T3 (en) | Radio frequency card and magnetic induction control method for radio frequency communication | |
CN101171755A (en) | Control of sleep modes in a wireless transceiver | |
CN101404113A (en) | Method for implementing infrared remote control decoding by software in embedded system | |
WO2018157689A1 (en) | Method for implementing low power consumption on standby for bluetooth security device and bluetooth security device | |
CN102385531B (en) | Apparatus for performing timer management and associated method | |
CN103413166A (en) | Automatic switching power supply system for semi active RFID sensor tag | |
US7284138B2 (en) | Deep power saving by disabling clock distribution without separate clock distribution for power management logic | |
CN102650904B (en) | Low power consumption circuit and method for reducing power consumption | |
US11157290B2 (en) | Method and circuit for waking up I2C device | |
CN204791039U (en) | Card equipment is read to two take place of split type ID cards based on smart mobile phone | |
CN105069384A (en) | Split type 2nd-generation ID card reading system and realization method thereof | |
CN102201159B (en) | Infrared remote control residual code based method for realizing standby awakening | |
CN101252733B (en) | Communicating method and communicating circuit between mobile terminal and modules | |
CN104460463A (en) | Wireless remote control startup and shutdown device for machine room | |
CN104426526A (en) | Communication Between Voltage Domains | |
US20150019855A1 (en) | System Platform Supporting Infrared Receiver/Transmitter and Operation Method Thereof | |
CN105528241B (en) | Electronic device and its operating system awakening method | |
CN106528092A (en) | System awakening method and apparatus | |
CN105307251A (en) | Low-power-consumption Internet of Things module and control method thereof | |
CN207851910U (en) | A kind of vehicle carried electronic label | |
CN102956093A (en) | Wireless remote control method and system, receiver | |
CN104951047A (en) | Design method for awakening high-power-consumption CPU (central processing unit) system by low-power-consumption CPU system | |
CN103747393B (en) | Control circuit of wireless microphone | |
CN102572592A (en) | Set-top box standby control method based on system dynamic clock management | |
CN219831808U (en) | Wake-up device |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130619 Termination date: 20170524 |