Background technology
Wireless light communication technology is also known as visible ray communication, and the flicker of its high-frequency by LED light source communicates, and have light to represent 1, unglazedly represent 0, its transfer rate is up to upper gigabit per second.Wireless light communication carries out data transmission by visible ray, and compared with microwave technology, having quite abundant frequency spectrum resource, is that general microwave communication and radio communication are incomparable; Visible light communication can be suitable for any communication protocol, be applicable to any environment simultaneously; In security, need not worry that Content of Communication is stolen by people; The equipment of wireless light communication is convenient flexibly, and cost is very low, is applicable to extensive popularization and application.
Intrusion alarm system as individual or public property the most reliably, the most effective protection system, be at home and abroad obtained for and apply widely.Most government department, financial department and commercial unit all install and use intrusion alarm system.Practical effect shows, installs and uses intrusion alarm system and effectively can reduce generation into cases such as room theft, robberies, ensure life and property safety.
Intrusion detector is as the intrusion detection device of intrusion alarm system, and its reliability is significant.At present, existing intrusion detector comprises: infrared intrusion detector, microwave intrusion detectors, ultrasonic wave intrusion detector, vibration invading detector, invasion detector with magnetic switch and passive infrared invasion detector etc.Existing described detector has a common ground to be exactly be all hiding sniffer, and no matter be active or passive detector, it can only play detection effect, and the bad adaptability to extreme climate environment, easily disturbed, the false alarm probability produced because of climatic environment is many, and easily loses efficacy, thus affects the reliability of whole intrusion alarm system.
Summary of the invention
Technical matters to be solved by this invention is, for above-mentioned the deficiencies in the prior art, proposes a kind of LED lamp intrusion alarm based on visible light communication, and its reliability is better, is not easily found and disturbs, disguised and security is splendid.
The technical solution adopted for the present invention to solve the technical problems is, propose a kind of LED lamp intrusion alarm based on visible light communication, it comprises LED and optical signal receiver; Described LED is LED decorative lamp or illuminating lamp, and for launching the light signal containing information to described optical signal receiver; Described optical signal receiver for receiving described light signal, and converts described light signal to electric signal and sends monitoring and alarming system to.
Further, described LED comprises microprocessor module and optical emitting module, and described microprocessor module for solidifying transmitting information, and controls the light signal of described optical emitting module transmitting containing described transmitting information according to described transmitting information.
Further, described optical emitting module comprises driver element and luminescence unit, and described driver element is for driving described luminescence unit.
Further, described LED also comprises code conversion module, and the digital signal conversion of NRZ code that described code conversion module is used for being exported by described microprocessor module becomes the digital signal of CMI code.
Further, described code conversion module comprises sample circuit, decision circuit, reverse circuit, negative circuit, on-off circuit and combiner circuit, described sample circuit, decision circuit and reverse circuit are electrically connected along order, and described negative circuit, on-off circuit and combiner circuit are electrically connected along order; Described sample circuit is electrically connected with described microprocessor module, and described sample circuit and negative circuit are all electrically connected with bit synchronization signal input point, and described on-off circuit is electrically connected with described decision circuit, and described combiner circuit is electrically connected with described reverse circuit.
Further, described microprocessor module is provided with the microprocessor for encoding to the information exported and encrypt, and described microprocessor is single-chip microcomputer, FPGA or DSP.
Further, described microprocessor is electrically connected with Micro USB interface.
Further, described optical signal receiver comprises optical signal receiving module and decoding module, and the light signal that described optical signal receiving module is used for LED to launch converts electric signal to; Described decoding module is translated into the digital signal of NRZ code for digital signal optical signal receiving module being passed the CMI code of coming.
Further, described decoding module comprises high-low-position separation circuit and decoding operation circuit, described high-low-position separation circuit is used for the high-low-position of the CMI code received to be separated, and described decoding operation circuit is used for the high-low-position after to described CMI code separation and carries out same or computing.
Further, described optical signal receiver also comprises balanced Shaping Module, and the signal that described balanced Shaping Module is used for optical signal receiving module exports carries out elimination intersymbol interference and corrects pulse waveform.
In sum, the LED lamp intrusion alarm that the present invention is based on visible light communication utilizes visible light communication to carry out active probe, and thus not easily disturbed, reliability is better; It, except having common intrusion detection function, utilizes visible light characteristic, can be made into various LED decorative lamp or LED illumination lamp etc., thus not easily be found, disguised and security is splendid.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention will be further described:
Refer to Fig. 1 and Fig. 7, the invention discloses a kind of LED lamp intrusion alarm based on visible light communication, it comprises LED 1 and optical signal receiver 2, described LED 1 comprises power module 11, microprocessor module 12, code conversion module 13 and optical emitting module 14, described power module 11 is electrically connected with described microprocessor module 12, code conversion module 13 and optical emitting module 14, and for powering for described microprocessor module 12, code conversion module 13 and optical emitting module 14.Described power module 11 also can be used for being connected with the alternating current of 220V, and is that described LED 1 is powered by described alternating current.
Described microprocessor module 12 is provided with for being encoded to the information exported and the microprocessor encrypted and the serial ports be electrically connected with described microprocessor and Micro USB interface, described microprocessor can be single-chip microcomputer, FPGA or DSP, in the present embodiment, described microprocessor is single-chip microcomputer, launch information hardness in described single-chip microcomputer, described single-chip microcomputer exports according to described unlocking cipher the digital signal that pattern is NRZ code, and described serial ports is for sending the digital signal of described NRZ code to described code conversion module 13.Described Micro USB interface according to the needs of user, can download transmitting information in described microprocessor from usb host.
Refer to Fig. 2, described code conversion module 13 is for becoming the digital signal of CMI code by the digital signal conversion of described NRZ code.CMI(coded mark inversion, coded mark inverse code) code is a kind of 1B2B code (information code, two bit symbols), is about to pass a bit word of coming and represents by two bit word.When biography comes " 0 " code, coding exports fixing " 01 " code; When pass come be " 1 " code time, coding exports " 00 " or " 11 " code, and alternately occurs.In the present embodiment, described code conversion module 13, mainly by the sampling to NRZ code, when NRZ code is 1, exports 11 of CMI code, when NRZ code is 0, exports pattern 01.
Described code conversion module 13 comprises sample circuit 131, decision circuit 132, reverse circuit 133, negative circuit 134, on-off circuit 135 and combiner circuit 136, described sample circuit 131, decision circuit 132 and reverse circuit 133 are according to order electrical connection, and described negative circuit 134, on-off circuit 135 and combiner circuit 136 are electrically connected according to order; Described sample circuit 131 is electrically connected with described microprocessor module 12, described sample circuit 131 and negative circuit 134 are all electrically connected with bit synchronization signal BS input point, described on-off circuit 135 is electrically connected with described decision circuit 132, and described combiner circuit 136 is electrically connected with described reverse circuit 133.The CMI code that described code conversion module 13 is formed exports from described combiner circuit 136.By described code conversion module 13, the digital signal conversion of described NRZ code is become the digital signal of CMI code, described CMI code has the following advantages: (1) does not exist DC component, and low frequency component is less; (2) there is very strong clock-pulse component in information code current, be convenient to extract clock information from signal; (3) there is certain error correcting capability.Thus, the bit error rate of Signal transmissions can be reduced.
Described optical emitting module 14 is based on LED(light emitting diode) signal emission module, it launches the light signal containing information for the signal exported according to described code conversion module 13, it comprises driver element 141 and luminescence unit 142, and described driver element 141 drives continuous sudden strain of a muscle of described luminescence unit 142 to go out for the signal exported according to described code conversion module 13.Described luminescence unit 142 can be to send colorful light-emitting light source that is a kind of in red, orange, yellow, green, blue, the colorama such as indigo, purple or blend color.In the present embodiment, the light that described luminescence unit 142 sends is the white light for throwing light on, and it constantly carries out sudden strain of a muscle at a high speed and goes out under the driving of driver element 141, forms the light signal representing 0 and 1 signal, and thus the present invention also can provide illumination while communication.Light emitting diode is semiconductor light emitting light source, and not only brightness is high, reliability is high, energy loss is low, size is little, environmental protection, has more that modulating performance is good, response sensitivity advantages of higher.Described LED of the present invention can be designed to the various shape being convenient to hang, to be further used as decoration.
Refer to Fig. 3 and Fig. 4, described optical signal receiver 2 comprises optical signal receiving module 21, balanced Shaping Module 22 and decoding module 23.Described optical signal receiving module 21 converts electric signal to for light signal LED launched.Described optical signal receiving module 21 comprises photodetector 211, signal amplifier 212 and bandpass filter 213, and described photodetector 211 and described bandpass filter 213 are electrically connected with described signal amplifier 212 respectively.Described signal amplifier 212 is trans-impedance amplifiers.
Refer to Fig. 5, described balanced Shaping Module 22 carries out elimination intersymbol interference for the signal exported optical signal receiving module 21 and corrects pulse waveform, it comprises the operational amplifier 221 and comparer 222 that are electrically connected to each other, the input end of described operational amplifier 221 and an input end of described comparer 222 are all electrically connected with signal amplifier 212 output terminal of described optical signal receiving module 21, and the output terminal of described comparer 222 is electrically connected with described decoding module 23.
Refer to Fig. 6, described decoding module 23 is translated into the digital signal of NRZ code for the digital signal of the CMI code passed after shaping by optical signal receiving module 21, it comprises high-low-position separation circuit 231 and decoding operation circuit 232, described high-low-position separation circuit 231 is for being separated the high-low-position of the CMI received code, and described decoding operation circuit 232 is for carrying out same or computing to the high-low-position after described CMI code separation.
Described high-low-position separation circuit 231 is provided with some d type flip flops, and described d type flip flop is provided with data input pin D, input end of clock CLK, anti-phase set end SD and data output end Q.The CMI code of input is latched by each d type flip flop under the effect of clock CP.When clock CP negative edge reaches (now the mid point moment of corresponding first CMI code), become rising edge through phase inverter, d type flip flop exports the value of first CMI code this moment, and is in preservation state, realizes the latch to first CMI code value.Through a CMI symbol width time, the rising edge of clock CP arrives (now corresponding second CMI code mid point moment), and d type flip flop exports deputy CMI code value, meanwhile, first CMI code be latched enters second d type flip flop, thus realizes the separation of two CMI codes.
Described decoding operation circuit 232 comprises an XOR gate and a d type flip flop, and wherein, first, second CMI code that XOR gate connects code bit separation circuit respectively exports, and NRZ is that decoding exports.From CMI decoding principle, if first, second position of CMI code is carried out with or computing, must the NRZ code of its correspondence, so anti-phase computing is first done through XOR gate in first, second position of CMI code by the present embodiment again, obtain decoding and export.The present invention is electrically connected with monitoring and alarming system, just forms intrusion alarm system.In the present embodiment, the optical signal receiver 2 that some described LED 1 and some and central safety defense monitoring system 3 are electrically connected just may be formed into invades warning system (as shown in Figure 7), when it is used in the like environment such as various meeting-place, exhibition room, disguise is fabulous, and due to the rectilinear propagation of light, its signal is not easily disturbed by lawless person.This intrusion alarm system principle of work is as follows:
Specific information is issued corresponding signal receiver 2 by the light of high frequency flicker by LED 1, and each signal receiver 2 operationally has three kinds of duties: 1, normal reception LED light signal state; 2, LED light signal lost condition; 3, short period lost signal condition.Each signal receiver 2 can return the state of oneself moment to safety defense monitoring system 3, and central safety defense monitoring system 3 has judged whether invasion according to the state of corresponding receiver, and gives the alarm.
Suppose in normal operation, the information that described LED 1 launches to described signal receiver 2 is " 101101 ".When all signal receivers 2 are all in normal condition (state 1), the information that namely described signal receiver 2 receives is " 101101 ", then all are normal, need not give the alarm; When the signal receiver 2 of minority (number is less than setting value) is in dropout state (state 2), the information that namely described signal receiver 2 receives is not " 101101 ", then send failure warning, and request is got rid of corresponding failure or shielded this receiver; When certain signal is in short time dropout state (state 3), the information that namely described signal receiver 2 receives is not " 101101 ", and system thinks other external interference situations (such as insect stops light etc.), will not give the alarm; And when multiple signal is in (state 2) when short signal lost condition (state 3) or multiple (number is greater than setting value) signal receiver are in dropout state, then send urgent intrusion alarm.
In sum, the LED lamp intrusion alarm that the present invention is based on visible light communication utilizes visible light communication to carry out active probe, and thus not easily disturbed, reliability is better; It, except having common intrusion detection function, utilizes visible light characteristic, can be made into various LED decorative lamp or LED illumination lamp etc., thus not easily be found, disguised and security is splendid.
By reference to the accompanying drawings embodiments of the invention are described above, but the present invention is not limited to above-mentioned embodiment, above-mentioned embodiment is only schematic, instead of it is restrictive, those of ordinary skill in the art is under enlightenment of the present invention, do not departing under the ambit that present inventive concept and claim protect, also can make a lot of form, such as, described LED 1 makes LED decorative lamp, various lamps beyond LED illumination lamp, by line of electric force direct transmitting information to existing LED 1, described signal receiver 2 only comprises photodetector etc., these all belong within protection of the present invention.