




技术领域technical field
本发明属于红外遥控控制领域,尤其涉及一种红外遥控开关。The invention belongs to the field of infrared remote control, in particular to an infrared remote control switch.
背景技术Background technique
通用型红外遥控开关的出现为人们的日常生活带来了便利,例如,人们能够直接利用电视、空调等家用电器的红外遥控器对电灯进行开关控制,而不需要为电灯专门配备一个遥控器,大大地节约了产品的制造成本,也优化了用户体验。然而,由于通用型红外遥控开关使用其他设备的红外遥控器进行控制,则势必存在着信号干扰的问题。The emergence of general-purpose infrared remote control switches has brought convenience to people's daily life. For example, people can directly use the infrared remote controllers of household appliances such as TVs and air conditioners to switch on and off lights, without the need for a special remote control for lights. The manufacturing cost of the product is greatly saved, and the user experience is also optimized. However, since the universal infrared remote control switch is controlled by the infrared remote controllers of other devices, there is bound to be a problem of signal interference.
为了避免上述问题的出现,措施一是根据红外信号的直线传播特性把采用通用型红外遥控开关的设备和其他红外遥控设备通过位置布局来相互隔离;措施二是通过持续按键或者“持续-短暂”按键交替组合的方式来发射红外信号,以区别用于其他设备的红外遥控信号。然而,上述方法或者缺乏严格的编码方式,导致无法完全避免信号干扰;或者固化了按键方式,无法遵照用户自身的使用习惯,用户体验差。In order to avoid the above problems, the first measure is to isolate the device using the general-purpose infrared remote control switch from other infrared remote control devices through the location layout according to the straight-line propagation characteristics of the infrared signal; the second measure is to use continuous buttons or "continuous-short-term" Infrared signals are emitted by means of alternate combinations of keys to distinguish infrared remote control signals used for other devices. However, the above method either lacks a strict coding method, which makes it impossible to completely avoid signal interference; or fixes the button method, which cannot follow the user's own usage habits, resulting in poor user experience.
发明内容Contents of the invention
本发明实施例的目的在于提供一种红外遥控开关,旨在解决现有的红外遥控开关存在信号干扰,且需要改变用户自身使用习惯的问题。The purpose of the embodiment of the present invention is to provide an infrared remote control switch, aiming at solving the problem of signal interference in the existing infrared remote control switch and the need to change the user's own usage habits.
本发明实施例是这样实现的,一种红外遥控开关,包括电源电路、红外接收头和开关电路,所述红外遥控开关还包括分别与所述电源电路、红外接收头以及开关电路连接的主控电路,所述主控电路在学习模式下将所述红外接收头输入的按键存储为所述开关的开关指令,在开关机控制模式下根据所述红外接收头输入的开关指令反转所述开关电路的状态。The embodiment of the present invention is realized in this way. An infrared remote control switch includes a power supply circuit, an infrared receiver and a switch circuit. circuit, the main control circuit stores the key input by the infrared receiving head as the switching instruction of the switch in the learning mode, and reverses the switch according to the switching instruction input by the infrared receiving head in the switch machine control mode state of the circuit.
本发明实施例的另一目的在于提供一种如上所述的红外遥控开关的控制方法,所述方法包括下述步骤:Another object of the embodiments of the present invention is to provide a method for controlling an infrared remote control switch as described above, the method comprising the following steps:
接收中断请求,所述中断请求包括学习模式指令或者开关机控制模式指令;receiving an interrupt request, where the interrupt request includes a learning mode instruction or a power-on/off control mode instruction;
当所述中断请求包括学习模式指令时,将红外接收头输入的按键存储为所述红外遥控开关的开关指令;When the interrupt request includes a learning mode instruction, storing the key input by the infrared receiving head as the switch instruction of the infrared remote control switch;
当所述中断请求包括开关机控制模式指令时,根据红外接收头输入的开关指令反转开关电路的状态。When the interrupt request includes a switch control mode command, the state of the switch circuit is reversed according to the switch command input by the infrared receiving head.
本发明实施例提供的红外遥控开关设有开关指令的学习模式,通过在学习模式中检测用户对红外遥控器的按键操作,将按键操作中的按键类别及其顺序进行记录,并作为该红外遥控开关的开关指令,一方面通过专门设定的开关指令有效避免了信号干扰,另一方面使得红外遥控开关的操作方式遵循了用户自身的使用习惯,提升了用户体验。The infrared remote control switch provided by the embodiment of the present invention is provided with a learning mode of switching instructions. By detecting the button operation of the infrared remote controller by the user in the learning mode, the type and sequence of the buttons in the button operation are recorded and used as the infrared remote control button. The switch command of the switch, on the one hand, effectively avoids signal interference through the specially set switch command, on the other hand, it makes the operation mode of the infrared remote control switch follow the user's own usage habits, and improves the user experience.
附图说明Description of drawings
图1是本发明第一实施例提供的红外遥控开关的电路原理图;Fig. 1 is the schematic circuit diagram of the infrared remote control switch provided by the first embodiment of the present invention;
图2是本发明第一实施例提供的红外遥控开关的具体实施示例图;Fig. 2 is a specific implementation example diagram of the infrared remote control switch provided by the first embodiment of the present invention;
图3是本发明第二实施例提供的红外遥控开关指令学习单元的内部结构图;3 is an internal structural diagram of an infrared remote control switch instruction learning unit provided in a second embodiment of the present invention;
图4是本发明第三实施例提供的红外遥控开关中开关控制单元的内部结构图;Fig. 4 is an internal structure diagram of the switch control unit in the infrared remote control switch provided by the third embodiment of the present invention;
图5示出了本发明第四实施例提供的红外遥控开关控制方法的实现流程图。Fig. 5 shows a flow chart of the implementation of the infrared remote control switch control method provided by the fourth embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明实施例提供的红外遥控开关设有开关指令的学习模式,通过在学习模式中检测用户对红外遥控器的按键操作,将按键操作中的按键类别及其顺序进行记录,并作为该红外遥控开关的开关指令,一方面通过专门设定的开关指令有效避免了信号干扰,另一方面使得红外遥控开关的操作方式遵循了用户自身的使用习惯,提升了用户体验。The infrared remote control switch provided by the embodiment of the present invention is provided with a learning mode of switching instructions. By detecting the button operation of the infrared remote controller by the user in the learning mode, the type and sequence of the buttons in the button operation are recorded and used as the infrared remote control button. The switch command of the switch, on the one hand, effectively avoids signal interference through the specially set switch command, on the other hand, it makes the operation mode of the infrared remote control switch follow the user's own usage habits, and improves the user experience.
图1示出了本发明第一实施例提供的红外遥控开关的电路原理,为了便于说明,仅示出了与本实施例相关的部分。Fig. 1 shows the circuit principle of the infrared remote control switch provided by the first embodiment of the present invention. For the convenience of description, only the parts related to this embodiment are shown.
参照图1,该红外遥控开关与被遥控主体(例如电灯、风扇)的电源连接,通过任意的红外遥控器发出的控制指令来实现被遥控主体电源的通断,该红外遥控开关包括:电源电路11、红外接收头12、主控电路13和开关电路14,With reference to Fig. 1, this infrared remote control switch is connected with the power supply of the remote-controlled body (such as electric lamp, fan), realizes the on-off of the power supply of the remote-controlled body by the control command that any infrared remote controller sends, and this infrared remote control switch comprises:
其中,电源电路11接入220v的交流市电,经过整流、稳压及滤波后输出5v的直流电压,作为红外遥控开关的工作电压,以确保该红外遥控开关的各部分电路能够正常工作。Wherein, the
红外接收头12接收来自红外遥控器的红外遥控信号并传输给主控电路13,其中,红外遥控器可以为电视机、空调等家用电器所配备的红外遥控器,以实现该红外遥控开关的通用性。The infrared receiving
主控电路13基于单片机实现,为本发明实现的关键模块,其根据接收到的红外信号,一方面记录用户设定的开关指令,一方面在开关指令设定好后,一旦接收到用户通过红外遥控器发出的开关指令,便对开关电路14进行控制,令开关电路14进行状态反转,完成一次开关动作,以实现被遥控主体电源的通断。The
根据本发明实施例提供的红外遥控开关的电路原理图,图2示出了该红外遥控开关的一个具体实施示例,在此,对于图2中的各部分具体电路的功能不再赘述。According to the schematic circuit diagram of the infrared remote control switch provided by the embodiment of the present invention, FIG. 2 shows a specific implementation example of the infrared remote control switch. Here, the functions of the specific circuits of each part in FIG. 2 will not be repeated here.
下面对本发明实施例提供的红外遥控开关的主控电路13的具体模块进行描述,以下描述的具体模块可以为运行于主控电路13中的硬件单元、软件单元或者软硬件结合单元,包括:The specific modules of the
中断请求接收单元131,其接收来自红外遥控器的中断请求,包括学习模式触发指令或者开关机控制模式触发指令,用于触发红外遥控开关的学习模式或者开关机控制模式。当学习模式触发时,该红外遥控开关对红外遥控器输入的按键组合进行学习,以记录正确的开关指令,当开关机控制模式触发时,该红外遥控开关则处于正常的工作状态,等待来自红外遥控器的开关指令,以反转开关电路14的状态。The interrupt
在本发明实施例中,用户可以通过与单片机连接的相关按键来控制中断请求接收单元131,以实现对红外遥控开关工作模式的设置。In the embodiment of the present invention, the user can control the interrupt
指令学习单元132,其工作于学习模式下,在红外遥控开关的学习模式触发后,将红外接收头12接收到的按键存储为红外遥控开关的开关指令。The
开关控制单元133,其工作于开关机控制模式下,根据此时红外接收头接收到的正确开关指令,对开关电路14的状态进行反转,以实现红外遥控开关的通断。The
状态显示单元134,其能够显示当前红外遥控开关的工作状态,包括按键写入状态,按键接收状态,等等,让操作者能够直观、实时地了解当前红外遥控开关的工作状态,提升用户体验。The
作为本发明的一个实现示例,状态显示单元134在硬件上可以通过连接在主控电路13上的指示灯来实现,通过指示灯的不同发光状态来表示不同的工作状态,例如,当指示灯长亮时,表示该红外遥控开关当前处于学习模式;当指示灯快速闪烁时,表示当前在学习模式中输入的按键已被写入;当指示灯慢闪烁时,表示当前在开关机控制模式中输入的按键已被检测到。As an implementation example of the present invention, the
图3示出了本发明第二实施例提供的红外遥控开关指令学习单元的内部结构,为了便于说明,仅示出了与本实施例相关的部分。Fig. 3 shows the internal structure of the infrared remote control switch instruction learning unit provided by the second embodiment of the present invention. For the convenience of description, only the parts related to this embodiment are shown.
该红外遥控开关指令学习单元具体包括了:The infrared remote control switch command learning unit specifically includes:
按键检测单元31,检测所述红外接收头输入的按键类型。The
作为本发明的一个实施例,具体地,为了更好地区分出开关指令的学习状态,用户在对开关指令进行设定时,可以将需要设定的按键通过长按键的方式进行输入,因此,按键检测单元31可以检测红外接收头输入的长按键的按键类型,以更好地对需要设定的按键进行检测。As an embodiment of the present invention, specifically, in order to better distinguish the learning state of the switch command, when the user sets the switch command, the key to be set can be input by pressing a long key. Therefore, The
优选地,在本发明实施例中,为了更好地避免通用遥控器带来的信号干扰因素,由红外接收头输入的按键类型可以为使用频率低的按键,例如电视机的“屏显”按键,由于此类按键本身对其原被遥控主体所产生的操作效果不大,因此选用此类按键进行开关指令设置,能够进一步地减小信号干扰问题。Preferably, in the embodiment of the present invention, in order to better avoid the signal interference factors caused by the universal remote control, the key type input by the infrared receiving head can be a key with low frequency of use, such as the "screen display" key of the TV , because such keys themselves have little effect on the operation of the original remote control body, so choosing such keys to set the switch command can further reduce the problem of signal interference.
存储单元32,根据按键检测单元31检测到的按键类型,依次存储红外接收头输入的按键,由此生成红外遥控开关的开关指令。The
在本发明实施例中,作为开关指令的按键的最大键数由存储单元32的容量决定,不得超过存储单元32所能存储的最大键数。例如,存储单元32所能存储的键数为3个,则作为开关指令的键数可以小于或者等于3个。In the embodiment of the present invention, the maximum number of keys used as a switch instruction is determined by the capacity of the
在本发明实施例中,可以通过关闭学习模式(即触发开关机控制模式)来结束对于开关指令按键组合的设定,以告知红外遥控开关此次开关指令学习过程结束。In the embodiment of the present invention, the setting of the switch command button combination can be ended by turning off the learning mode (that is, triggering the switch control mode), so as to inform the infrared remote control switch that the switch command learning process is over.
图4示出了本发明第三实施例提供的红外遥控开关中开关控制单元的内部结构,为了便于说明,仅示出了与本实施例相关的部分。Fig. 4 shows the internal structure of the switch control unit in the infrared remote control switch provided by the third embodiment of the present invention. For the convenience of description, only the parts related to this embodiment are shown.
该开关控制单元具体包括:The switch control unit specifically includes:
指令检测单元41,其检测红外接收头输入的按键是否为经过设定的开关指令;An
开关反转单元42,其在所述指令检测单元41检测到红外遥控开关的开关指令时,反转所述开关电路的状态,以完成一次开关动作。The
图5示出了本发明第四实施例提供的红外遥控开关控制方法的实现流程,详述如下:Fig. 5 shows the implementation process of the infrared remote control switch control method provided by the fourth embodiment of the present invention, which is described in detail as follows:
在步骤S501中,接收中断请求,所述中断请求包括学习模式指令或者开关机控制模式指令。In step S501, an interrupt request is received, and the interrupt request includes a learning mode instruction or a power-on/off control mode instruction.
在步骤S502中,当所述中断请求包括学习模式指令时,将红外接收头输入的按键存储为所述红外遥控开关的开关指令。In step S502, when the interrupt request includes a learning mode instruction, the key inputted by the infrared receiving head is stored as the switch instruction of the infrared remote control switch.
在本发明实施例中,首先需要对由红外接收头输入的按键类型进行检测,以检测出当前按键的类别,再由红外遥控开关的存储单元将检测到的按键依次进行存储,以此生成红外遥控开关的开关指令。In the embodiment of the present invention, it is first necessary to detect the key type input by the infrared receiving head to detect the type of the current key, and then store the detected keys in sequence by the storage unit of the infrared remote control switch to generate an infrared key. The switch command of the remote control switch.
在步骤S503中,当所述中断请求包括开关机控制模式指令时,根据红外接收头输入的开关指令反转开关电路的状态。In step S503, when the interrupt request includes a switch control mode command, the state of the switch circuit is reversed according to the switch command input by the infrared receiving head.
在对用户指定的开关指令进行了存储之后,首先通过接收用户通过红外遥控器发出的按键操作,检测该按键是否为用户设定的开关指令,是则由红外遥控开关的主控单元反转红外遥控开关的状态,实现红外遥控开关的通断。After storing the switching command specified by the user, firstly, by receiving the key operation sent by the user through the infrared remote control, it is detected whether the key is the switching command set by the user, and if it is, the main control unit of the infrared remote control switch reverses the infrared The state of the remote control switch realizes the on-off of the infrared remote control switch.
下面,以用户通过电视机红外遥控器的“屏显-屏显-屏显”三个连续按键来控制红外遥控开关为例,对上述方法流程进行说明,相关的操作步骤如下:Next, take the example of the user controlling the infrared remote control switch through the three consecutive buttons of "screen display-screen display-screen display" on the infrared remote control of the TV set to illustrate the above method flow, and the relevant operation steps are as follows:
1、按下红外遥控开关的相关按键,此时该红外遥控开关触发学习模式,进入开关指令学习状态。1. Press the relevant button of the infrared remote control switch. At this time, the infrared remote control switch triggers the learning mode and enters the switch command learning state.
2、长按电视机红外遥控器的“屏显”键3秒以上再松开,红外遥控开关在检测到“屏显”按键后将其进行存储。2. Press and hold the "Screen Display" button of the TV infrared remote control for more than 3 seconds and then release it. The infrared remote control switch will store it after detecting the "Screen Display" button.
3、重复步骤2两遍,陆续写入开关指令的第二个按键和第三个按键。3. Repeat step 2 twice, successively write the second button and the third button of the switch instruction.
4、按下红外遥控开关的学习按键,该红外遥控开关退出学习模式,此时存储的按键组合“屏显-屏显-屏显”即为用户设定的开关指令。4. Press the learning button of the infrared remote control switch, and the infrared remote control switch exits the learning mode. At this time, the stored key combination "screen display-screen display-screen display" is the switch command set by the user.
5、用户通过红外遥控器连续输入“屏显-屏显-屏显”按键,红外遥控开关检测到上述按键组合为用户设定的开关指令,则向开关电路发出指令,令开关电路进行状态反转,以完成一次开关动作。5. The user continuously inputs the "screen display - screen display - screen display" button through the infrared remote control. The infrared remote control switch detects that the above button combination is the switch command set by the user, and then sends a command to the switch circuit to make the switch circuit perform state feedback. Turn to complete a switching action.
在本发明实施例中,通过在设有学习模式的红外遥控开关中输入用户自定义的按键组合,并将其存储为该红外遥控开关的开关指令,一方面通过设定的特定开关指令有效避免了红外遥控信号对其他被遥控设备的干扰,另一方面遵循了用户自身的操作习惯,提升了用户体验。In the embodiment of the present invention, by inputting a user-defined key combination in the infrared remote control switch with a learning mode, and storing it as a switch command of the infrared remote control switch, on the one hand, it is effectively avoided by setting a specific switch command It avoids the interference of the infrared remote control signal to other remote-controlled devices, and on the other hand, it follows the user's own operating habits and improves the user experience.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201110144654CN102280021A (en) | 2011-05-31 | 2011-05-31 | Infrared remote control switch |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201110144654CN102280021A (en) | 2011-05-31 | 2011-05-31 | Infrared remote control switch |
| Publication Number | Publication Date |
|---|---|
| CN102280021Atrue CN102280021A (en) | 2011-12-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201110144654PendingCN102280021A (en) | 2011-05-31 | 2011-05-31 | Infrared remote control switch |
| Country | Link |
|---|---|
| CN (1) | CN102280021A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103017025A (en)* | 2012-11-28 | 2013-04-03 | 嘉善县嘉斯蒙实业有限公司 | Safety monitoring lamp |
| CN103025004A (en)* | 2012-11-28 | 2013-04-03 | 嘉善县嘉斯蒙实业有限公司 | Safety lamp |
| CN103713532A (en)* | 2013-12-11 | 2014-04-09 | 张广国 | Method for setting parameters of learning remote control switch |
| CN106452413A (en)* | 2016-09-30 | 2017-02-22 | 广东美的制冷设备有限公司 | Method and device of preventing key from being triggered mistakenly |
| CN107966940A (en)* | 2017-12-30 | 2018-04-27 | 广东技术师范学院 | A kind of method of controlling switch and device based on infrared remote control |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1260679A (en)* | 2000-01-21 | 2000-07-19 | 北京邮电通信设备厂 | Mobile phone set used concurrently as household electrical appliance remote controller |
| US20050174494A1 (en)* | 2004-01-06 | 2005-08-11 | Yoshiaki Takenaka | Electronic device |
| CN201219255Y (en)* | 2008-04-07 | 2009-04-08 | 李坤三 | Intelligent switch control system |
| CN101562446A (en)* | 2009-05-20 | 2009-10-21 | 钟继业 | Novel infrared remote control power switch |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1260679A (en)* | 2000-01-21 | 2000-07-19 | 北京邮电通信设备厂 | Mobile phone set used concurrently as household electrical appliance remote controller |
| US20050174494A1 (en)* | 2004-01-06 | 2005-08-11 | Yoshiaki Takenaka | Electronic device |
| CN201219255Y (en)* | 2008-04-07 | 2009-04-08 | 李坤三 | Intelligent switch control system |
| CN101562446A (en)* | 2009-05-20 | 2009-10-21 | 钟继业 | Novel infrared remote control power switch |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103017025A (en)* | 2012-11-28 | 2013-04-03 | 嘉善县嘉斯蒙实业有限公司 | Safety monitoring lamp |
| CN103025004A (en)* | 2012-11-28 | 2013-04-03 | 嘉善县嘉斯蒙实业有限公司 | Safety lamp |
| CN103017025B (en)* | 2012-11-28 | 2015-05-27 | 嘉善县嘉斯蒙实业有限公司 | Safety monitoring lamp |
| CN103025004B (en)* | 2012-11-28 | 2015-11-18 | 嘉善县嘉斯蒙实业有限公司 | Safety lamp |
| CN103713532A (en)* | 2013-12-11 | 2014-04-09 | 张广国 | Method for setting parameters of learning remote control switch |
| CN106452413A (en)* | 2016-09-30 | 2017-02-22 | 广东美的制冷设备有限公司 | Method and device of preventing key from being triggered mistakenly |
| CN107966940A (en)* | 2017-12-30 | 2018-04-27 | 广东技术师范学院 | A kind of method of controlling switch and device based on infrared remote control |
| Publication | Publication Date | Title |
|---|---|---|
| CN101630797B (en) | Wireless remote control socket assembly | |
| JP5669803B2 (en) | Touch display device | |
| CN102280021A (en) | Infrared remote control switch | |
| CN109814437A (en) | Zero-power-consumption standby wake-up circuit and electrical equipment | |
| CN103293985A (en) | Zero-power-consumption standby circuit | |
| CN102591240B (en) | Control system circuit of electric oven | |
| TW201437799A (en) | Alternating current control system for timed switching on or off | |
| CN103226458A (en) | Multi-screen display control method for intelligent mobile equipment | |
| CN107316452A (en) | A kind of automatic matching remote control system | |
| CN202975625U (en) | Remote control switch for intelligent house | |
| CN108021031A (en) | Intelligent switch and intelligent switch control system | |
| CN205137584U (en) | Range hood | |
| WO2021004120A1 (en) | Multipoint touch switch control apparatus and method for personal electronic device | |
| CN206364915U (en) | The control circuit and television set of television set | |
| CN202694565U (en) | A learning type universal remote control | |
| CN210466706U (en) | Control device of remote controller power supply and remote controller | |
| TWI577364B (en) | Control system applied to power device and control method thereof | |
| CN205003502U (en) | Wireless Intelligence flush mounting plate of switch with timing holding function | |
| WO2013107268A1 (en) | Intelligence energy saving controller | |
| CN201490487U (en) | Wireless remote control socket assembly | |
| JP2002114482A (en) | Control monitor for crane | |
| CN207037627U (en) | A power switch controlled by a touch screen | |
| CN204856075U (en) | Situation control device | |
| CN203642414U (en) | Air cleaner automatic switching device | |
| CN202634391U (en) | Laser remote control switch |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| 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 | Application publication date:20111214 |