Summary of the invention
The present invention is directed to above shortcomings in prior art, provide a kind of infrared remote-control device based on bus communication.This infrared launcher, based on KNX bussing technique, realizes the object of convenient, fast remote control.
For achieving the above object, the present invention is achieved by the following technical solutions.
Based on an infrared remote-control device for bus communication, comprise main circuit module, described main circuit module grafting is in KNX bus; Wherein, described main circuit module comprises:
-power module, comprises power supply power taking filtration module and processor supply module, and described power supply power taking filtration module is connected with KNX bus, and the AC compounent in filtering KNX bus, then the direct current obtained is outputted to processor supply module; The direct current of described processor supply module to input is changed, and the 5V operating voltage obtained needed for late-class circuit is delivered to central processing unit;
-central processing unit, carries out interactive correspondence by communication module and KNX bus;
-communication module: comprise message receiver module and message sending module; By message receiver module and message sending module interactive correspondence between described KNX bus and central processing unit;
-infrared transmitting circuit module, with central processing unit control linkage, by receiving the pulse signal of central processing unit, launches infrared ray to surrounding;
-infrared receiving circuit module, is connected, for receiving and/or learn the infrared ray that infrared transmitting circuit module sends with infrared transmitting circuit module adaptation.
Preferably, also comprise be connected with central processing unit arbitrary as follows or appoint many parts:
-mode switching circuit, for switching working mode;
-mode state display lamp circuit, for showing infrared receiving circuit module status;
-debugging interface, for debugging, downloads.
Preferably, the course of work of described communication module is:
During-reception message, the signal in KNX bus, through the process of message receiver module, obtains the discernible signal of central processing unit and delivers to central processing unit; Central processing unit is resolved the message received, and sends corresponding pulse signal to infrared transmitting circuit;
During-transmission message, information to be sent is delivered to message sending module by central processing unit, is loaded in KNX bus after the process of message sending module;
Preferably, described infrared transmitting circuit module comprises at least one group of infrared transmitting tube and infrared emission tube drive circuit, and described infrared transmitting tube is driven with central processing unit by infrared emission tube drive circuit and is connected.
Preferably, described infrared receiving circuit module comprises infrared receiving tube and waveform shaping circuit, and described infrared receiving tube to be driven with central processing unit by waveform shaping circuit and is connected.
Preferably, the ultrared process that described infrared receiving circuit modules learn infrared transmitting circuit module sends is:
Mode of learning is opened by mode switching circuit, by infrared transmitting circuit module alignment infrared receiving tube, press corresponding study button, after infrared receiving tube receives infrared ray, through primary codec, infrared signal after decoding is transferred to central processing unit analysis, preservation.
Preferably, described primary codec is specially: the infrared signal of infrared receiving tube is decoded into 0 or 5V umber of pulse coded signal.
During work, KNX bus through power supply power taking filtration module filtering high-frequency signal, then is changed by processor supply module, obtains late-class circuit operating voltage.Central processing unit carries out interactive correspondence by message receiver module and message sending module and KNX bus, therefore controls by KNX bus the signal that the transmitting of infrared transmitting circuit module and process infrared receiving circuit module receive.By learning the infrared coding of external key, can also direct remote control is corresponding in KNX bus equipment.
Compared with prior art, the present invention has following beneficial aspects:
1, the present invention is by Infrared Ray Remote Control Technology grafting in KNX bus, utilizes the centralized management ability that EIB control system is outstanding fully, then is applied in the environment of EIB; If there is the electronic equipment using infrared remote control, just directly can be controlled equipment by KIN bus, by the function of study infrared coding, infrared pulse signal analysis can also be received and preserve keyboard-coding meanwhile.
2, the present invention has that reliability is high, degree of freedom is high, cost performance is high, be convenient to the features such as integrating control.
3, the present invention is applicable to learn TV, air-conditioning, DVD etc. and adopts the infrared coding of the equipment of infrared control and directly control these equipment, brings convenience, adventure in daily life efficiently to user.
Embodiment
Below embodiments of the invention are elaborated: the present embodiment is implemented under premised on technical solution of the present invention, give detailed embodiment and concrete operating process.It should be pointed out that to those skilled in the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.
Present embodiments provide a kind of infrared remote-control device based on bus communication, comprise main circuit module, described main circuit module grafting is in KNX bus; Wherein, described main circuit module comprises:
-power module, comprises power supply power taking filtration module and processor supply module, and described power supply power taking filtration module is connected with KNX bus, and the AC compounent in filtering KNX bus, then the direct current obtained is outputted to processor supply module; The direct current of described processor supply module to input is changed, and the 5V operating voltage obtained needed for late-class circuit is delivered to central processing unit;
-central processing unit, carries out interactive correspondence by communication module and KNX bus;
-communication module: comprise message receiver module and message sending module; By message receiver module and message sending module interactive correspondence between described KNX bus and central processing unit;
-infrared transmitting circuit module, with central processing unit control linkage, by receiving the pulse signal of central processing unit, launches infrared ray to surrounding;
-infrared receiving circuit module, is connected, for receiving and/or learn the infrared ray that infrared transmitting circuit module sends with infrared transmitting circuit module adaptation.
Further, also comprise be connected with central processing unit arbitrary as follows or appoint many parts:
-mode switching circuit, for switching working mode;
-mode state display lamp circuit, for showing infrared receiving circuit module status;
-debugging interface, for debugging, downloads.
Further, the course of work of described communication module is:
During-reception message, the signal in KNX bus, through the process of message receiver module, obtains the discernible signal of central processing unit and delivers to central processing unit; Central processing unit is resolved the message received, and sends corresponding pulse signal to infrared transmitting circuit;
During-transmission message, information to be sent is delivered to message sending module by central processing unit, is loaded in KNX bus after the process of message sending module;
Further, described infrared transmitting circuit module comprises at least one group of infrared transmitting tube and infrared emission tube drive circuit, and described infrared transmitting tube is driven with central processing unit by infrared emission tube drive circuit and is connected.
Further, described infrared receiving circuit module comprises infrared receiving tube and waveform shaping circuit, and described infrared receiving tube to be driven with central processing unit by waveform shaping circuit and is connected.
Further, the ultrared process that described infrared receiving circuit modules learn infrared transmitting circuit module sends is:
Mode of learning is opened by mode switching circuit, by infrared transmitting circuit module alignment infrared receiving tube, press corresponding study button, after infrared receiving tube receives infrared ray, through primary codec, infrared signal after decoding is transferred to central processing unit analysis, preservation.
Infrared Ray Remote Control Technology grafting in KNX bus, is utilized the centralized management ability that EIB control system is outstanding by the present embodiment fully.In the environment being applied to EIB, if there is the electronic equipment using infrared remote control, just directly can be controlled equipment by bus, simultaneously, the present embodiment also has the function of study infrared coding, can by receiving infrared pulse signal analysis and preserving keyboard-coding.
KNX (Konnex) is uniquely global house and building control criterion, it is with EIB (European Installation Bus, europe installation bus) based on, take into account the physical layer specification of BatiBus and EHSA, and absorb the advantage such as configuration mode in BatiBus and EHSA, provide the total solution of family, building automatic.EIB is a kind of bus control system of standard, and control mode is reciprocity control mode, is different from traditional master-slave control method, and bus adopts four-core Shielded Twisted Pair, and wherein two cores are that bus uses, and other two cores are for subsequent use.All elements all adopt 24VDC working power, and 24VDC powers and electric signal multiplex bus.EIB is of wide application, in hotel, subway, airport, villa etc., have its figure, fully illustrate its superior opening and stability.
KNX bus adopts single polycore cable can realize three kinds of paving modes: line style, star-like and tree-shaped, has abandoned the mode of traditional separation control cables and power cable, thus has facilitated dilatation and repacking, also saved construction cost.Meanwhile, owing to adopting programming device, make functional diversities, can the work of complete independently control & monitor.EIB system be one towards user, embody the system of individual character but one towards gerentocratic system, user can revise arbitrarily the function of system according to the hobby of individual, reach the effect required for oneself.
The present embodiment by by Infrared Ray Remote Control Technology grafting in KNX bus, to bring convenience to user, adventure in daily life efficiently.
The present embodiment is specially:
As shown in Figure 1: comprise main circuit module, described main circuit module grafting is in KNX bus.
Main circuit module comprises: central processing unit, power supply power taking filtration module, processor supply module, message receiver module, message sending module, mode switching circuit, mode state indicating circuit, infrared transmitting circuit module, infrared receiving circuit module and debugging interface; Wherein:
Power unit comprises: power supply power taking filtration module and processor supply module.Wherein, the AC compounent of power supply power taking filtration module mainly in filtering KNX bus, is input to processor supply module by the direct current obtained.Then, the direct current of processor supply module to input is changed, and obtains the 5V operating voltage needed for late-class circuit.
Central processing unit is responsible for bus communication, is learnt infrared coding and control infrared equipment.
Communication part comprises: message receiver module and message sending module.When receiving message, the signal in KNX bus, through the process of message receiver module, obtains the discernible signal of processor and delivers to processor.Processor is resolved the message received, and sends corresponding signal to infrared transmitting circuit.When sending message, information to be sent is delivered to message sending module by processor, is loaded into after treatment in KNX bus.
Infrared transmitting circuit module, comprises infrared transmitting circuit and driving circuit; Be specially, by organizing infrared transmitting tube and driving is formed, thus expand remote control angle, when receiving the pulse signal that processor is sent, infrared transmitting tube launches infrared ray to surrounding volume more.
Infrared receiving circuit module, comprises infrared receiving circuit and shaping circuit; Be specially, be made up of infrared receiving tube and waveform shaping circuit, for learning infrared signal.During study coding, open mode of learning, telepilot is aimed at infrared receiving tube, presses the button that will learn, after infrared receiving circuit receives infrared ray, through primary codec, signal is transferred to processor analysis, preservation.
Mode switching circuit, for switching working mode.
Mode state display lamp circuit, is in normal operating conditions or learning state for display module.
Debugging interface, for debugging, downloads.
Above specific embodiments of the invention are described.It is to be appreciated that the present invention is not limited to above-mentioned particular implementation, those skilled in the art can make various distortion or amendment within the scope of the claims, and this does not affect flesh and blood of the present invention.