CN103559748B - A kind of visible ray identification lockset and visible ray identification lockset control method - Google Patents

A kind of visible ray identification lockset and visible ray identification lockset control method Download PDF

Info

Publication number
CN103559748B
CN103559748B CN201310525978.5A CN201310525978A CN103559748B CN 103559748 B CN103559748 B CN 103559748B CN 201310525978 A CN201310525978 A CN 201310525978A CN 103559748 B CN103559748 B CN 103559748B
Authority
CN
China
Prior art keywords
chip microcomputer
circuit
pin
electric capacity
control
Prior art date
Application number
CN201310525978.5A
Other languages
Chinese (zh)
Other versions
CN103559748A (en
Inventor
陈建明
徐启
袁保合
孙标
周晓明
常瑞
赵明明
刘子介
陈嘉琦
白杨森
马强
尚华
徐燕
王成凤
Original Assignee
华北水利水电大学
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华北水利水电大学 filed Critical 华北水利水电大学
Priority to CN201310525978.5A priority Critical patent/CN103559748B/en
Publication of CN103559748A publication Critical patent/CN103559748A/en
Application granted granted Critical
Publication of CN103559748B publication Critical patent/CN103559748B/en

Links

Abstract

The invention discloses a kind of visible ray identification lockset, comprise light recognitiion gate locking device and optical information dispensing device, described light recognitiion gate locking device comprises receives information processing module, control circuit and electric door lock; Described optical information dispensing device comprises control module, LED drive module and the LED group with clock unit, for being driven the LED lamplight producing different frequency by different frequency modulation signal.The present invention can be locked into row and controls by opposite house while utilizing visible ray to carry out throwing light on, and completes the unlatching of the transmission of information, identification and door lock, drastically increase the use safety of lockset in the mode of vision invisible, easy to use.

Description

A kind of visible ray identification lockset and visible ray identification lockset control method

Technical field

The present invention relates to a kind of lockset, particularly relate to a kind of visible ray identification lockset and visible ray identification lockset control method.

Background technology

Traditional door lock open prosecutor formula mainly comprise key manually, cipher dialing, wireless remote control several types.Prosecutor formula opened by door lock the most common when key is manual, utilizes the key mated with lock core to unblank; Cipher dialing mainly inputs setting code by press key input device, and the control module in door lock correctly controls electric door lock afterwards at confirmation password and opens; Wireless remote control mainly utilizes wireless base station apparatus to send the signal of setting to the control module in door lock, and is opened by control module control electric door lock.In wireless remote control mode, wireless information transfer mainly utilizes electromagnetic wave or sound wave, sonic transmissions apart from short and produce noise hazard, be mainly used in nondestructive examination and sonar detection field; Electromagnetic wave is widely used, but there is the shortcoming of the aspects such as electromagnetic pollution, radiation hazard, electromagnetic compatibility.

Summary of the invention

The object of this invention is to provide a kind of visible ray identification lockset and visible ray identification lockset control method, row control can be locked into by opposite house while utilizing visible ray to carry out throwing light on, the unlatching of the transmission of information, identification and door lock is completed in the mode of vision invisible, drastically increase the use safety of lockset, easy to use.

The present invention adopts following technical proposals:

A kind of visible ray identification lockset, comprise light recognitiion gate locking device and optical information dispensing device, described light recognitiion gate locking device comprises receives information processing module, control circuit and electric door lock, receives information processing module drives for receiving optical information dispensing device the LED lamplight produced by different frequency modulation signal, according to the communication protocol specified and demodulation mode, LED lamplight is changed into data message, and export control signal according to the correctness of data message; Control circuit is for receiving the control signal of receives information processing module transmission and controlling electric door lock, and electric door lock is for performing unlatching or closing motion; Described optical information dispensing device comprises control module, LED drive module and the LED group with clock unit, for being driven the LED lamplight producing different frequency by different frequency modulation signal.

Described receives information processing module comprises phototriode, filtering and amplifying circuit and the first single-chip microcomputer, and the collector of phototriode connects power supply, and the emitter of phototriode connects the positive pole of diode; The emitter of phototriode is also by the first resistance eutral grounding; The negative pole of diode connects the base stage of amplifying triode, and the negative pole of diode is also by the first capacity earth; The collector of amplifying triode connects power supply by the second resistance; The collector of amplifying triode also connects the counter input pin of the first single-chip microcomputer; The collector of amplifying triode is also by the second capacity earth; The grounded emitter of amplifying triode; First single-chip microcomputer adopts STC11F01 single-chip microcomputer, and the first single-chip microcomputer is connected with clock circuit and reset circuit; Clock circuit comprises the first quartz crystal oscillator device, and the two ends of the first quartz crystal oscillator device connect XTAL1 and the XTAL2 pin of STC11F01 single-chip microcomputer respectively, and the series circuit of the 3rd electric capacity and the 4th electric capacity composition is connected in parallel on the first quartz crystal oscillator device two ends; Reset circuit comprises electrify restoration circuit and switch reset circuit; Electrify restoration circuit comprises the 5th electric capacity and the 3rd resistance of series connection, the positive pole of the 5th electric capacity connects power supply, the negative pole of the 5th electric capacity connects the 3rd resistance first end, 3rd resistance second end ground connection, the RST pin of STC11F01 single-chip microcomputer is connected between the 5th electric capacity negative pole and the 3rd resistance first end; Switch reset circuit comprises the reset button with the 5th Capacitance parallel connection; Control circuit adopts power amplification circuit, power amplification circuit control linkage electric door lock.

The control module in described optical information dispensing device with clock unit adopts STC11F01 single-chip microcomputer, clock circuit comprises the second quartz crystal oscillator device, the two ends of the second quartz crystal oscillator device connect XTAL1 and the XTAL2 pin of STC61F01 single-chip microcomputer respectively, and the series circuit of the 6th electric capacity and the 7th electric capacity composition is connected in parallel on the second quartz crystal oscillator device two ends; Described electrify restoration circuit comprises the 8th electric capacity and the 4th resistance of series connection, the positive pole of the 8th electric capacity connects power supply, the negative pole of the 8th electric capacity connects the 4th resistance first end, 4th resistance second end ground connection, the RST pin of STC61F01 single-chip microcomputer is connected between the 8th electric capacity negative pole and the 4th resistance first end; LED drive module comprises MAX1848 chip, and the LX pin of MAX1848 chip is by multiple LED of voltage stabilizing diode, series connection and the 5th resistance eutral grounding, and the LX pin of MAX1848 chip also connects power supply by inductance; The V+ pin of MAX1848 chip connects power supply; The OUT pin of MAX1848 chip is by the 9th capacity earth; The CTRL pin of MAX1848 chip connects the control signal output terminal of STC61F01 single-chip microcomputer; The COPM pin of MAX1848 chip is connected by the tenth electric capacity; The CS pin of MAX1848 chip is by the 5th resistance eutral grounding.

Described light recognitiion gate locking device also comprises light directing device; Light directing device comprises convex lens, the concavees lens group be made up of three concavees lens and half-reflecting half mirror, the primary optical axis of convex lens and concavees lens group is positioned on same level line, be provided with half-reflecting half mirror between convex lens and concavees lens group, the phototriode in receives information processing module is positioned at the light reflection scope of half-reflecting half mirror.

A kind of visible ray identification lockset control method, comprises the following steps:

A: according to encoding the corresponding relation of code value for sending data message and frequency modulating signal and ASCII of presetting, utilize the control module generation different frequency modulation signal in optical information dispensing device with clock unit;

B: the different frequency modulation signal produced according to control module, produces the LED lamplight of different frequency by LED drive module;

C: utilize phototriode in light recognitiion gate locking device to receive optical information dispensing device and driven the LED lamplight produced by different frequency modulation signal;

D: the conducting of the signal control amplifying triode utilizing phototriode in light recognitiion gate locking device to produce and cut-off, realize signal input by amplifying triode in conducting and the low and high level that during cut-off, the counter input pin of the first single-chip microcomputer produces in light recognitiion gate locking device;

E: adopt in light recognitiion gate locking device and be connected with clock circuit and first single-chip microcomputer with counter function, calculate the signal frequency that fixed cycle inside counting device input pin receives, and by different signal frequencies corresponding A SCII coding code value " 0 " and " 1 " respectively, obtain the data message that optical information dispensing device sends;

F: the first single-chip microcomputer judges that whether the data message received is identical with the data message preset, if identical, the first single-chip microcomputer controls electric door lock by control circuit and opens.

In described steps A, the frequency modulating signal of employing is respectively 1KH z, 4KH zand 8KH z, dutycycle is 50%; Its medium frequency is 1KH zmodulation signal drive produce LED lamplight not signal transmission; Frequency is 4KH zmodulation signal drive produce LED lamplight represent ASCII character value " 0 "; Frequency is 8KH zmodulation signal drive produce LED lamplight represent ASCII character value " 1 ".

Optical information dispensing device sends data frame format and light recognitiion gate locking device receiving data frames form is lead code+8 or 16 bit data, and lead code is binary " 00000000 ", does not send check code; Carry out sending, receiving in units of character in information transmission, receiving course, the time interval between character and character is any, and in each character, everybody transmitted with the set time; Message transmission rate is set as 1000bps.

In described light recognitiion gate locking device, each gate time of the first single-chip microcomputer is fixed as 700 μ s, twice counting interval 300 μ s; First single-chip microcomputer, after receiving correct lead code, starts after time delay 300 μ s to receive follow-up 8 or 16 bit data.In each gate time, the count value that the counter of STC11F01 single-chip microcomputer obtains and representative ASCII character value corresponding relation are: when count value is 2 or 3, and corresponding ASCII character value is " 0 "; When count value is 5 or 6, corresponding ASCII character value is " 1 ".

When the first single-chip microcomputer receives lead code, if the counter of STC11F01 single-chip microcomputer obtain in a gate time first 5 11333 of continuous counter value time, normal receive residue 5 lead codes; If first 5 when not being 11333 of the continuous counter value that the counter of STC11F01 single-chip microcomputer obtains in a gate time, then carry out time delay adjustment according to following state:

(1) continuous 5 count values are " ... 00133 ", only time delay are next time adjusted to 600 μ s, continue to receive residue 5 lead codes;

(2) continuous 5 count values are " ... 11233 ", only time delay are next time adjusted to 550 μ s, continue to receive residue 5 lead codes;

(3) continuous 5 count values are " ... 11222 ", only time delay are next time adjusted to 360 μ s, continue to receive residue 5 lead codes;

(4) continuous 5 count values are " ... 00222 ", only time delay are next time adjusted to 550 μ s, continue to receive residue 5 lead codes.

The present invention encode according to the frequency modulating signal and the ASCII that preset the corresponding relation of code value, and the data message of wish transmission is sent to light recognitiion gate locking device by the LED lamplight of different frequency; The present invention is utilized light recognitiion gate locking device to receive optical information dispensing device and is driven the LED lamplight produced by different frequency modulation signal, according to the communication protocol specified and demodulation mode, LED lamplight is changed into data message, and export control signal according to the correctness of data message; Control electric door lock by control circuit and perform unlatching or closing motion; The present invention can be locked into row and controls by opposite house while utilizing visible ray to carry out throwing light on, and completes the unlatching of the transmission of information, identification and door lock, drastically increase the use safety of lockset in the mode of vision invisible, easy to use.

Accompanying drawing explanation

Fig. 1 is the theory diagram of optical information dispensing device of the present invention;

Fig. 2 is the circuit diagram of optical information dispensing device of the present invention;

Fig. 3 is the theory diagram of smooth recognitiion gate locking device of the present invention;

Fig. 4 is the circuit diagram of smooth recognitiion gate locking device of the present invention;

Fig. 5 is the sequential chart that optical information dispensing device of the present invention sends data " 11001100 ";

Fig. 6 is the synchronous sequential chart with asynchronous collection signal of smooth recognitiion gate locking device 5 kinds of the present invention.

Embodiment

The present invention includes optical information dispensing device 1 and light recognitiion gate locking device.

As shown in Figure 1, the data message for sending, for the corresponding relation of code value of encoding according to the frequency modulating signal preset and ASCII, is sent to light recognitiion gate locking device by the LED lamplight of different frequency by optical information dispensing device 1.Optical information dispensing device 1 comprises control module, LED drive module and the LED group with clock unit.

As shown in Figure 2, the control module in optical information dispensing device 1 with clock unit adopts STC11F01 single-chip microcomputer, and STC61F01 single-chip microcomputer is connected with clock circuit and electrify restoration circuit.

Clock circuit comprises the second quartz crystal oscillator device Y2, and the two ends of the second quartz crystal oscillator device Y2 connect XTAL1 and the XTAL2 pin of STC61F01 single-chip microcomputer respectively, and the series circuit that the 6th electric capacity C6 and the 7th electric capacity C7 forms is connected in parallel on the second quartz crystal oscillator device Y2 two ends.The present invention adopts internal clock pattern, utilize the oscillatory circuit of STC61F01 single-chip microcomputer inside, external by the second quartz crystal oscillator device Y2 and two timing element that electric capacity C6, C7 form on XTAL1 and XTAL2 pin, STC61F01 single-chip microcomputer internal oscillator just can produce self-sustained oscillation.

Electrify restoration circuit comprises the 8th electric capacity C8 and the 4th resistance R4 of series connection, the positive pole of the 8th electric capacity C8 connects power supply, the negative pole of the 8th electric capacity C8 connects the 4th resistance R4 first end, 4th resistance R4 second end ground connection, the RST pin of STC61F01 single-chip microcomputer is connected between the 8th electric capacity C8 negative pole and the 4th resistance R4 first end.Power supply connects moment, and voltage has all been added on the 4th resistance R4, and RST is input as height, and STC11F01 single-chip microcomputer is reset.Along with+5V power supply charges to the 8th electric capacity C8, the voltage on the 4th resistance R4 reduces gradually, and finally approximating 0, STC61F01 single-chip microcomputer can normally work.

LED drive module comprises MAX1848 chip, and the LX pin of MAX1848 chip is by multiple LED D2 of voltage stabilizing diode D3, series connection and the 5th resistance R5 ground connection, and the LX pin of MAX1848 chip also connects power supply by inductance L; The V+ pin of MAX1848 chip connects power supply; The OUT pin of MAX1848 chip is by the 9th electric capacity C9 ground connection; The CTRL pin of MAX1848 chip connects the control signal output terminal P1.4 of STC61F01 single-chip microcomputer; The COPM pin of MAX1848 chip is connected by the tenth electric capacity C10; The CS pin of MAX1848 chip is by the 5th resistance R5 ground connection.LED drive module can drive three LED D2 luminescence work of series connection.

As shown in Figure 3, the Main Function of light recognitiion gate locking device receives LED lamplight, restituted signal, judges that signal is whether correct and control electric door lock 7 and to work several effect.As shown in Figure 3, light recognitiion gate locking device comprises receives information processing module 5, control circuit 6 and electric door lock 7.Wherein, receives information processing module 5 drives for receiving optical information dispensing device 1 LED lamplight produced by different frequency modulation signal, according to the communication protocol specified and demodulation mode, LED lamplight is changed into data message, and export control signal according to the correctness of data message; Control circuit 6 is for receiving the control signal of receives information processing module 5 transmission and controlling electric door lock 7, and electric door lock 7 is for performing unlatching or closing motion.

As shown in Figure 4, receives information processing module 5 comprises phototriode T1, filtering and amplifying circuit and is connected with the first single-chip microcomputer of clock circuit.The collector of phototriode T1 connects power supply, and the emitter of phototriode T1 connects the positive pole of diode D1; The emitter of phototriode T1 is also by the first resistance R1 ground connection; The negative pole of diode D1 connects the base stage of amplifying triode T2, and the negative pole of diode D1 is also by the first electric capacity C1 ground connection; The collector of amplifying triode T2 connects power supply by the second resistance; The collector of amplifying triode T2 also connects the counter input pin of single-chip microcomputer; The collector of amplifying triode T2 is also by the second electric capacity C2 ground connection; The grounded emitter of amplifying triode T2.

First single-chip microcomputer adopts STC11F01 single-chip microcomputer, and STC11F01 single-chip microcomputer is connected with clock circuit and has counter function.Clock circuit comprises the first quartz crystal oscillator device Y1, and the two ends of the first quartz crystal oscillator device Y1 connect XTAL1 and the XTAL2 pin of STC11F01 single-chip microcomputer respectively, and the series circuit that the 3rd electric capacity C3 and the 4th electric capacity C4 forms is connected in parallel on the first quartz crystal oscillator device Y1 two ends.The present invention adopts internal clock pattern, utilize the oscillatory circuit of STC11F01 single-chip microcomputer inside, external by the first quartz crystal oscillator device Y1 and two timing element that electric capacity C3, C4 form on XTAL1 and XTAL2 pin, STC11F01 single-chip microcomputer internal oscillator just can produce self-sustained oscillation.

STC11F01 single-chip microcomputer is also connected with electrify restoration circuit and switch reset circuit; Electrify restoration circuit comprises the 5th electric capacity C5 and the 3rd resistance R3 of series connection, the positive pole of the 5th electric capacity C5 connects power supply, the negative pole of the 5th electric capacity C5 connects the 3rd resistance R3 first end, 3rd resistance R3 second end ground connection, the RST pin of STC11F01 single-chip microcomputer is connected between the 5th electric capacity C5 negative pole and the 3rd resistance R3 first end.Power supply connects moment, and voltage has all been added on the 3rd resistance R3, and RST is input as height, and STC11F01 single-chip microcomputer is reset.Along with+5V power supply charges to the 5th electric capacity C5, the voltage on the 3rd resistance R3 reduces gradually, and finally approximating 0, STC11F01 single-chip microcomputer can normally work.Switch reset circuit comprises the reset button K1 in parallel with the 5th electric capacity C5.Can electrification reset be realized when reset button K1 is not pressed time, after STC11F01 single-chip microcomputer normally works, by press reset button K1 RST pin is occurred high level reaches the effect of hand-reset.

Receive the LED lamplight of optical information dispensing device 1 generation smoothly for the ease of the phototriode T1 in light recognitiion gate locking device, light recognitiion gate locking device also has additional light directing device.Light directing device comprises convex lens 2, the concavees lens group 3 be made up of three concavees lens and half-reflecting half mirror 4, and the primary optical axis of convex lens 2 and concavees lens group 3 is positioned on same level line; Three concavees lens close proximity, form the concavees lens group 3 that a focal length is very short, are called object lens; Convex lens 2 are apart from each other with concavees lens group 3, are called eyepiece.The combination of this convex lens 2 and concavees lens group 3 is on existing door body 5 and is provided with common peephole.The present invention has arranged the half-reflecting half mirror 4 of point light action between convex lens 2 and concavees lens group 3, and the phototriode T1 in receives information processing module 5 is positioned at the light reflection scope of half-reflecting half mirror 4.Like this, the LED lamplight entered in light directing device from object lens is divided into two-way after half-reflecting half mirror 4, and a road arrives eyepiece and observes outdoor for indoor occupant; Another road then reflexes to phototriode T1 and carries out Signal reception and identification for it.

Light directing device is arranged in a body, and is provided with based on common peephole on existing door body 5, being improved, making light directing device can keep the effect of common peephole, facilitating visitor outside indoor occupant observation ward by setting up half-reflecting half mirror 4; Outdoor visitor can also be stoped oppositely to observe indoor situations by common peephole; Meanwhile, light directing device can also smoothly reflected light information dispensing device 1 send LED lamplight, enable the phototriode in receives information processing module 5 ensure reliable Signal reception and identification.

In the present invention, optical information dispensing device 1 utilizes the control module with clock unit to produce the modulation signal of different frequency, control LED drive module driving LED lamp group luminous, different frequency modulation signal is utilized to drive the LED lamplight produced to represent different ASCII codings, the information of carrying out transmission, realizes wireless serial asynchronous communication.Transmit in units of character in information process of transmitting, the time interval between character and character is any, and in each character, everybody transmitted with the set time.

The frequency modulating signal that in optical information dispensing device 1, control module produces is respectively 1KH z, 4KH zand 8KH z, dutycycle is 50%.Because three kinds of frequency modulating signal dutycycles are equal, so the luminous intensity of LED group under three kinds of modulation conditions is consistent, light and shade flicker perception can not be caused to human eye.Frequency is 1KH zmodulation signal drive produce LED lamplight not signal transmission, now optical information dispensing device 1 is in illumination condition; Frequency is 4KH zmodulation signal drive the LED lamplight produced to represent ASCII character value " 0 ", simultaneously light fixture is in illumination condition; Frequency is 8KH zmodulation signal drive the LED lamplight produced to represent ASCII character value " 1 ", simultaneously light fixture is in illumination condition.

The character information that optical information dispensing device 1 sends adopts ASCII coding, and message transmission rate is set as 1000bps.Sending data frame format is " lead code "+" 8 or 16 bit data ", and do not send check code in process of transmitting, but use specific lead code as the synchronizing signal of receiving-transmitting sides, lead code is binary " 00000000 ".Optical information dispensing device 1 sends the sequential of " 11001100 " data as shown in Figure 5.At use optical information dispensing device 1, when sending without information as only needed normal illumination, control module is with 1KH zmodulation signal driving LED lamp group realize normal illumination function; When needs information of carrying out sends, control module is according to the Transmission bit rate of 1000bps, first send 8 " 0 " continuously as lead code using the modulation signal of 4KHZ, light recognitiion gate locking device is obtained and receives synchronously, and then with identical speed, according to the order of " 0 " and " 1 " in 8 or 16 bit data, respectively with 4KH zor 8KH zmodulation signal driving LED lamp group sends the data message for sending, and meanwhile, LED still keeps illumination functions.

Operationally, the phototriode T1 in receives information processing module 5 drives for receiving optical information dispensing device 1 the high frequency flicker LED lamplight signal produced to light recognitiion gate locking device by different frequency modulation signal.When unglazed photograph, phototriode T1 and amplifying triode T2 is all in cut-off state, and the counter pin T0 of STC11F01 single-chip microcomputer is in high level; When there being illumination, phototriode T1 and amplifying triode T2 is all in conducting state, and now the counter pin T0 of STC11F01 single-chip microcomputer is in low level.Therefore, the low and high level produced at the counter pin T0 of STC11F01 single-chip microcomputer in conducting with when ending by amplifying triode T2 can realize signal input.Can the Transmission bit rate that specifies according to receiving-transmitting sides communication protocol of information receiving processing module 5, count with fixing cycle " 0 ", " 1 " variable condition to the different frequency that counter pin T0 receives, then according to count values different in the fixed cycle distinguish corresponding ASCII and to encode code value, finally obtain the information of the light fixture transmission with information transfer capability.In light recognitiion gate locking device, the data reception rate of STC11F01 single-chip microcomputer is 1000bps; Each gate time is fixed as 700 μ s, twice counting interval 300 μ s.The information received adopts ASCII coding, and data frame format is lead code+8 or 16 bit data, does not send check code; Lead code is binary " 00000000 ", synchronous as receiving-transmitting sides.When STC11F01 single-chip microcomputer is after receiving correct lead code, start after time delay 300 μ s to receive follow-up 8 or 16 bit data.STC11F01 single-chip microcomputer receives in letter process, receives in units of character, and the time interval between character and character is any, and in each character, everybody transmitted with the set time.In each gate time, the count value that the counter of STC11F01 single-chip microcomputer obtains and representative ASCII character value corresponding relation are

When count value is 2 or 3, corresponding ASCII character value is " 0 ";

When count value is 5 or 6, corresponding ASCII character value is " 1 ".

When receiving lead code, first continuous 5 count values that STC11F01 monolithic counter obtains in a gate time are judged:, because correct lead code is binary " 00000000 ", the continuous counter value that the STC11F01 monolithic counter corresponding with it obtains in a gate time should be " ... 1133333333 "; Therefore, as shown in sync section true in Fig. 6, if in when STC11F01 monolithic counter obtain in a gate time continuous 5 count value 11333 time, residue 5 lead codes are normally received to STC11F01 single-chip microcomputer; If first 5 when not being 11333 of the continuous counter value that the counter of STC11F01 single-chip microcomputer obtains in a gate time, then carry out time delay adjustment according to following state:

(1) as shown in synchronous 1 part pseudo-in Fig. 6, continuous 5 count values be " ... 00133 ", only time delay are next time adjusted to 600 μ s, continuation reception residue 5 lead codes; Through time delay adjustment, this counting sequence received should be " ... 0013333333 ", and STC11F01 single-chip microcomputer confirms correctly to receive lead code " 00000000 ", then receives follow-up 8 character informations;

(2) as shown in synchronous 2 parts pseudo-in Fig. 6, continuous 5 count values be " ... 11233 ", only time delay are next time adjusted to 550 μ s, continuation reception residue 5 lead codes; Through time delay adjustment, this counting sequence received should be " ... 1123333333 ", and STC11F01 single-chip microcomputer confirms correctly to receive lead code " 00000000 ", then receives follow-up 8 character informations;

(3) as shown in synchronous 3 parts pseudo-in Fig. 6, continuous 5 count values be " ... 11222 ", only time delay are next time adjusted to 360 μ s, continuation reception residue 5 lead codes; Through time delay adjustment, this counting sequence received should be " ... 1122233333 ", and STC11F01 single-chip microcomputer confirms correctly to receive lead code " 00000000 ", then receives follow-up 8 character informations;

(4) as shown in synchronous 4 parts pseudo-in Fig. 6, continuous 5 count values be " ... 00222 ", only time delay are next time adjusted to 550 μ s, continuation reception residue 5 lead codes.Through time delay adjustment, this counting sequence received should be " ... 0022233333 ", and STC11F01 single-chip microcomputer confirms correctly to receive lead code " 00000000 ", then receives follow-up 8 character informations;

After time delay adjustment, after STC11F01 single-chip microcomputer confirms the lead code " 00000000 " of the Frame correctly receiving optical information dispensing device 1 transmission, begin through counter after the μ s of interval 300 and receive continuously and store follow-up 8 or 16 character data information.8 or 16 character data information that STC11F01 single-chip microcomputer receives, after the reception of 8 or 16 character data information completelies, the data message of reception and the data message preset compare by STC11F01 single-chip microcomputer, if identical, the first single-chip microcomputer controls electric door lock 7 by control circuit 6 and opens.Wherein, control circuit 6 adopts power amplification circuit, power amplification circuit control linkage electric door lock 7, belongs to ripe prior art, does not repeat them here.

A kind of visible ray identification lockset control method of the present invention, comprises the following steps:

A: according to encoding the corresponding relation of code value for sending data message and frequency modulating signal and ASCII of presetting, utilize the control module generation different frequency modulation signal in optical information dispensing device 1 with clock unit;

B: the different frequency modulation signal produced according to control module, produces the LED lamplight of different frequency by LED drive module;

C: utilize phototriode in light recognitiion gate locking device to receive optical information dispensing device 1 and driven the LED lamplight produced by different frequency modulation signal;

D: the conducting of the signal control amplifying triode utilizing phototriode in light recognitiion gate locking device to produce and cut-off, realize signal input by amplifying triode in conducting and the low and high level that during cut-off, the counter input pin of the first single-chip microcomputer produces in light recognitiion gate locking device;

E: adopt in light recognitiion gate locking device and be connected with clock circuit and first single-chip microcomputer with counter function, calculate the signal frequency that fixed cycle inside counting device input pin receives, and by different signal frequencies corresponding A SCII coding code value " 0 " and " 1 " respectively, obtain the data message that optical information dispensing device 1 sends;

F: the first single-chip microcomputer judges that whether the data message received is identical with the data message preset, if identical, the first single-chip microcomputer controls electric door lock 7 by control circuit 6 and opens.

Said method all has relevant explanation when describing in detail to optical information dispensing device 1 and light recognitiion gate locking device, does not repeat them here.

Claims (8)

1. a visible ray identification lockset, it is characterized in that: comprise light recognitiion gate locking device and optical information dispensing device, described light recognitiion gate locking device comprises receives information processing module, control circuit and electric door lock, receives information processing module drives for receiving optical information dispensing device the LED lamplight produced by different frequency modulation signal, according to the communication protocol specified and demodulation mode, LED lamplight is changed into data message, and export control signal according to the correctness of data message; Control circuit is for receiving the control signal of receives information processing module transmission and controlling electric door lock, and electric door lock is for performing unlatching or closing motion; Described optical information dispensing device comprises control module, LED drive module and the LED group with clock unit, for being driven the LED lamplight producing different frequency by different frequency modulation signal; Described receives information processing module comprises phototriode, filtering and amplifying circuit and the first single-chip microcomputer, and the collector of phototriode connects power supply, and the emitter of phototriode connects the positive pole of diode; The emitter of phototriode is also by the first resistance eutral grounding; The negative pole of diode connects the base stage of amplifying triode, and the negative pole of diode is also by the first capacity earth; The collector of amplifying triode connects power supply by the second resistance; The collector of amplifying triode also connects the counter input pin of the first single-chip microcomputer; The collector of amplifying triode is also by the second capacity earth; The grounded emitter of amplifying triode; First single-chip microcomputer adopts STC11F01 single-chip microcomputer, and the first single-chip microcomputer is connected with clock circuit and reset circuit; Clock circuit comprises the first quartz crystal oscillator device, and the two ends of the first quartz crystal oscillator device connect XTAL1 and the XTAL2 pin of STC11F01 single-chip microcomputer respectively, and the series circuit of the 3rd electric capacity and the 4th electric capacity composition is connected in parallel on the first quartz crystal oscillator device two ends; Reset circuit comprises electrify restoration circuit and switch reset circuit; Electrify restoration circuit comprises the 5th electric capacity and the 3rd resistance of series connection, the positive pole of the 5th electric capacity connects power supply, the negative pole of the 5th electric capacity connects the 3rd resistance first end, 3rd resistance second end ground connection, the RST pin of STC11F01 single-chip microcomputer is connected between the 5th electric capacity negative pole and the 3rd resistance first end; Switch reset circuit comprises the reset button with the 5th Capacitance parallel connection; Control circuit adopts power amplification circuit, power amplification circuit control linkage electric door lock.
2. visible ray identification lockset according to claim 1, it is characterized in that: the control module in described optical information dispensing device with clock unit adopts STC11F01 single-chip microcomputer, clock circuit comprises the second quartz crystal oscillator device, the two ends of the second quartz crystal oscillator device connect XTAL1 and the XTAL2 pin of STC61F01 single-chip microcomputer respectively, and the series circuit of the 6th electric capacity and the 7th electric capacity composition is connected in parallel on the second quartz crystal oscillator device two ends; Described electrify restoration circuit comprises the 8th electric capacity and the 4th resistance of series connection, the positive pole of the 8th electric capacity connects power supply, the negative pole of the 8th electric capacity connects the 4th resistance first end, 4th resistance second end ground connection, the RST pin of STC61F01 single-chip microcomputer is connected between the 8th electric capacity negative pole and the 4th resistance first end; LED drive module comprises MAX1848 chip, and the LX pin of MAX1848 chip is by multiple LED of voltage stabilizing diode, series connection and the 5th resistance eutral grounding, and the LX pin of MAX1848 chip also connects power supply by inductance; The V+ pin of MAX1848 chip connects power supply; The OUT pin of MAX1848 chip is by the 9th capacity earth; The CTRL pin of MAX1848 chip connects the control signal output terminal of STC61F01 single-chip microcomputer; The COPM pin of MAX1848 chip is connected by the tenth electric capacity; The CS pin of MAX1848 chip is by the 5th resistance eutral grounding.
3. visible ray identification lockset according to claim 2, is characterized in that: described light recognitiion gate locking device also comprises light directing device; Light directing device comprises convex lens, the concavees lens group be made up of three concavees lens and half-reflecting half mirror, the primary optical axis of convex lens and concavees lens group is positioned on same level line, be provided with half-reflecting half mirror between convex lens and concavees lens group, the phototriode in receives information processing module is positioned at the light reflection scope of half-reflecting half mirror.
4. a visible ray identification lockset control method, is characterized in that, comprise the following steps:
A: according to encoding the corresponding relation of code value for sending data message and frequency modulating signal and ASCII of presetting, utilize the control module generation different frequency modulation signal in optical information dispensing device with clock unit;
B: the different frequency modulation signal produced according to control module, produces the LED lamplight of different frequency by LED drive module;
C: utilize phototriode in light recognitiion gate locking device to receive optical information dispensing device and driven the LED lamplight produced by different frequency modulation signal;
D: the conducting of the signal control amplifying triode utilizing phototriode in light recognitiion gate locking device to produce and cut-off, realize signal input by amplifying triode in conducting and the low and high level that during cut-off, the counter input pin of the first single-chip microcomputer produces in light recognitiion gate locking device;
E: adopt in light recognitiion gate locking device and be connected with clock circuit and first single-chip microcomputer with counter function, calculate the signal frequency that fixed cycle inside counting device input pin receives, and by different signal frequencies corresponding A SCII coding code value " 0 " and " 1 " respectively, obtain the data message that optical information dispensing device sends;
F: the first single-chip microcomputer judges that whether the data message received is identical with the data message preset, if identical, the first single-chip microcomputer controls electric door lock by control circuit and opens.
5. visible ray identification lockset control method according to claim 4, it is characterized in that: in described steps A, the frequency modulating signal of employing is respectively 1KH z, 4KH zand 8KH z, dutycycle is 50%; Its medium frequency is 1KH zmodulation signal drive produce LED lamplight not signal transmission; Frequency is 4KH zmodulation signal drive produce LED lamplight represent ASCII character value " 0 "; Frequency is 8KH zmodulation signal drive produce LED lamplight represent ASCII character value " 1 ".
6. visible ray identification lockset control method according to claim 5, it is characterized in that: optical information dispensing device sends data frame format and light recognitiion gate locking device receiving data frames form is lead code+8 or 16 bit data, lead code is binary " 00000000 ", does not send check code; Carry out sending, receiving in units of character in information transmission, receiving course, the time interval between character and character is any, and in each character, everybody transmitted with the set time; Message transmission rate is set as 1000bps.
7. visible ray identification lockset control method according to claim 6, is characterized in that: in described light recognitiion gate locking device, each gate time of the first single-chip microcomputer is fixed as 700 μ s, twice counting interval 300 μ s; First single-chip microcomputer, after receiving correct lead code, starts after time delay 300 μ s to receive follow-up 8 or 16 bit data; In each gate time, the count value that the counter of STC11F01 single-chip microcomputer obtains and representative ASCII character value corresponding relation are: when count value is 2 or 3, and corresponding ASCII character value is " 0 "; When count value is 5 or 6, corresponding ASCII character value is " 1 ".
8. visible ray identification lockset control method according to claim 7, it is characterized in that: when the first single-chip microcomputer receives lead code, if during first 5 11333 of the continuous counter value that the counter of STC11F01 single-chip microcomputer obtains in a gate time, normal reception residue 5 lead codes; If first 5 when not being 11333 of the continuous counter value that the counter of STC11F01 single-chip microcomputer obtains in a gate time, then carry out time delay adjustment according to following state:
(1) continuous 5 count values are " ... 00133 ", only time delay are next time adjusted to 600 μ s, continue to receive residue 5 lead codes;
(2) continuous 5 count values are " ... 11233 ", only time delay are next time adjusted to 550 μ s, continue to receive residue 5 lead codes;
(3) continuous 5 count values are " ... 11222 ", only time delay are next time adjusted to 360 μ s, continue to receive residue 5 lead codes;
(4) continuous 5 count values are " ... 00222 ", only time delay are next time adjusted to 550 μ s, continue to receive residue 5 lead codes.
CN201310525978.5A 2013-10-31 2013-10-31 A kind of visible ray identification lockset and visible ray identification lockset control method CN103559748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310525978.5A CN103559748B (en) 2013-10-31 2013-10-31 A kind of visible ray identification lockset and visible ray identification lockset control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310525978.5A CN103559748B (en) 2013-10-31 2013-10-31 A kind of visible ray identification lockset and visible ray identification lockset control method

Publications (2)

Publication Number Publication Date
CN103559748A CN103559748A (en) 2014-02-05
CN103559748B true CN103559748B (en) 2016-01-13

Family

ID=50013987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310525978.5A CN103559748B (en) 2013-10-31 2013-10-31 A kind of visible ray identification lockset and visible ray identification lockset control method

Country Status (1)

Country Link
CN (1) CN103559748B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104658087B (en) 2015-01-14 2017-09-05 殷思昊 A kind of contact laser encoding anti-theft lock
CN105913519B (en) * 2016-04-13 2019-08-16 深圳市通力科技开发有限公司 Control method for door lock and system
CN109246895A (en) * 2018-10-29 2019-01-18 宁波来和圣诞礼品有限公司 A kind of lighting system and application method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693567A (en) * 2012-04-28 2012-09-26 深圳光启创新技术有限公司 Coding-decoding method based on communication of access control system
CN102722924A (en) * 2012-05-30 2012-10-10 深圳光启创新技术有限公司 Light-operated access control system based on iris identification of mobile phone
CN102737426A (en) * 2012-06-05 2012-10-17 深圳光启创新技术有限公司 Infrared induction type chargeable photon door lock
CN102760313A (en) * 2012-06-29 2012-10-31 深圳光启创新技术有限公司 Light-operated lock system based on voice prompt
CN102768780A (en) * 2012-06-29 2012-11-07 深圳光启创新技术有限公司 Photon entrance guard system based on voice control
CN202544551U (en) * 2011-10-21 2012-11-21 昆明理工大学 Holographic optical lock
CN103021051A (en) * 2012-11-19 2013-04-03 深圳光启创新技术有限公司 Photovoltaic triggering circuit, optical signal receive control equipment and decoding method thereof
CN103021052A (en) * 2012-11-19 2013-04-03 深圳光启创新技术有限公司 Biological recognition optical signal transmitting device as well as electricity-saving method and encryption method thereof
CN202976293U (en) * 2012-12-29 2013-06-05 欧普照明股份有限公司 Light-operated lockset

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6546112B1 (en) * 1993-11-18 2003-04-08 Digimarc Corporation Security document with steganographically-encoded authentication data
JP4996175B2 (en) * 2006-08-29 2012-08-08 株式会社東芝 Entrance management system and entrance management method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202544551U (en) * 2011-10-21 2012-11-21 昆明理工大学 Holographic optical lock
CN102693567A (en) * 2012-04-28 2012-09-26 深圳光启创新技术有限公司 Coding-decoding method based on communication of access control system
CN102722924A (en) * 2012-05-30 2012-10-10 深圳光启创新技术有限公司 Light-operated access control system based on iris identification of mobile phone
CN102737426A (en) * 2012-06-05 2012-10-17 深圳光启创新技术有限公司 Infrared induction type chargeable photon door lock
CN102760313A (en) * 2012-06-29 2012-10-31 深圳光启创新技术有限公司 Light-operated lock system based on voice prompt
CN102768780A (en) * 2012-06-29 2012-11-07 深圳光启创新技术有限公司 Photon entrance guard system based on voice control
CN103021051A (en) * 2012-11-19 2013-04-03 深圳光启创新技术有限公司 Photovoltaic triggering circuit, optical signal receive control equipment and decoding method thereof
CN103021052A (en) * 2012-11-19 2013-04-03 深圳光启创新技术有限公司 Biological recognition optical signal transmitting device as well as electricity-saving method and encryption method thereof
CN202976293U (en) * 2012-12-29 2013-06-05 欧普照明股份有限公司 Light-operated lockset

Also Published As

Publication number Publication date
CN103559748A (en) 2014-02-05

Similar Documents

Publication Publication Date Title
CN101674133B (en) Visible light communication system using single light source
CN104113740B (en) A kind of mixed format signal transmission by optical fiber device
CN101953097B (en) Apparatus and method for transmitting and receiving data using visible light communication
CN103516482B (en) wireless communication protocol for low power receiver
CN102135842B (en) Synchronous light pen electronic whiteboard system
CN101813827B (en) Infrared active-shutter type 3D spectacle system
CN201718004U (en) Digital shutter-type 3D glasses system
CN105429703A (en) Mobile terminal interaction system and method based on visible light communication
CN105911508B (en) Ammeter defect Intelligent testing equipment
CN103440702A (en) Multi-spectrum bill image collecting device based on CIS and processing method
CN103365280A (en) Intelligent home integrated control system and intelligent home control method
CN103019181A (en) Intelligent internet-of-things home system based on ZigBee wireless communication protocol
CN103106168A (en) Automatic serial port protection circuit
CN105139563A (en) Intelligent door and control method thereof
CN103378862A (en) Encoder, decoder, and transmission system
CN102625423A (en) Wireless communication system and wake up method thereof
CN103338072A (en) A visible light communication and wireless access method base on the Android system
CN103424660B (en) RS-485 communication interface device for detecting polarity, method and chip
CN102901947A (en) Positioning system and method
CN103687228B (en) A kind of landscape decorative lamp system and geocoding thereof and display control method
CN103903576B (en) Display device and its driving method, the data processing of sequential control circuit and output intent
CN203070050U (en) Internet of Things intelligent household system based on ZigBee wireless communication protocol
US8661176B2 (en) Wireless two-way transmission of serial data signals between an electronic device and a power meter
CN101800636A (en) Synchronizer and synchronization method for quantum key distribution
CN105722284A (en) Energy-efficient LED lighting system based on WI-FI + ZigBee communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
C14 Grant of patent or utility model
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: 20160113

Termination date: 20161031