CN101594423A - A kind of circuit and method of utilizing Bluetooth of mobile phone to carry out the automatic switch lock - Google Patents

A kind of circuit and method of utilizing Bluetooth of mobile phone to carry out the automatic switch lock Download PDF

Info

Publication number
CN101594423A
CN101594423A CNA2009100332824A CN200910033282A CN101594423A CN 101594423 A CN101594423 A CN 101594423A CN A2009100332824 A CNA2009100332824 A CN A2009100332824A CN 200910033282 A CN200910033282 A CN 200910033282A CN 101594423 A CN101594423 A CN 101594423A
Authority
CN
China
Prior art keywords
bluetooth
mobile phone
chip microcomputer
bluetooth module
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2009100332824A
Other languages
Chinese (zh)
Other versions
CN101594423B (en
Inventor
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2009100332824A priority Critical patent/CN101594423B/en
Publication of CN101594423A publication Critical patent/CN101594423A/en
Application granted granted Critical
Publication of CN101594423B publication Critical patent/CN101594423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Lock And Its Accessories (AREA)

Abstract

A kind of circuit and method of utilizing Bluetooth of mobile phone to carry out the automatic switch lock, belong to automation field, circuit contains bluetooth module, single-chip microcomputer, drive circuit and control circuit, and bluetooth module is connected to single-chip microcomputer, single-chip microcomputer is connected to drive circuit, and drive circuit connects control circuit and moves.Method is: the Bluetooth address with the mobile phone with Bluetooth function of appointment deposits internal memory in, determines confidential state earlier; Then, bluetooth module constantly initiatively sends signal, carries out search inquiry by the Bluetooth address of having deposited, but sees that this mobile phone is whether in join domain; Again, bluetooth module sends Query Result to single-chip microcomputer; At last, single-chip microcomputer judges that mobile phone is to be toward or away from state, and carries out automatic open and close action by the drive circuit control circuit.The present invention overcome general electronic lock interference, duplicate problem, safe and reliable, and the Bluetooth function that has utilized mobile phone to carry, serve as " electron key " with mobile phone, simplified equipment, easy to use.

Description

A kind of circuit and method of utilizing Bluetooth of mobile phone to carry out the automatic switch lock
Technical field:
The invention belongs to the technology of a kind of automation control, be meant that especially a kind of identity recognition function that utilizes Bluetooth of mobile phone carries out the method for automation control switch to electric locksets such as control and garage gate in the automobile.
Background technology:
Occasions such as nowadays the remote control control technology is widely used in controlling in gate inhibition, the automobile.The common technology person of being to use need carry a radio generator in addition, and this generator transmits, and after being installed in identification equipment on automobile or the door and receiving signal, takes action passively, is exactly out usually or closes.
Utilize the shortcoming of the equipment of this method principle manufacturing to be: 1, the person of being identified (user just) need carry the transmitter (just usually said ' electron key ') of pairing in addition, and under summer this clothing condition, pocket is less, and is very inconvenient; 2, all be the execution action of passive-type, must the person of being to use carry out corresponding operating after, could carry out corresponding actions, such as pressing generator upward-acting door or door close button; 3, poor anti jamming capability, owing to be to be operated in constant fixed frequency all, mutual interference is very obvious, and extensive along with what use, the phase mutual interference is more and more, and reliability becomes worse and worse.4, poor stability, existing identification equipment repetition rate of coding height is intercepted and captured easily, is replicated easily.In the automotive lock industry, " lock interference unit " and " remote signal decoder " appearred, and be used to disturb the work of automobile door lock by the lawless person, or intercept others transmitting, carry out criminal activity.
The automated intelligent key that also has a kind of IDRF of employing technology on high-grade automobile, it also has automatic switch car door function.But it still is operated on the fixed frequency, is disturbed easily; Still need be equipped with and carry special identity recognizer.
Summary of the invention:
The present invention is exactly in order to overcome the shortcoming of prior art, invented the method that a kind of identity recognition function that utilizes Bluetooth of mobile phone (Bluetooth) carries out the circuit of automatic control lock and uses this circuit working, not only realized safe, antijamming capability is strong, and accomplish automatic control, do not need the user to take any action.Utilize existing bluetooth cellular phone extensively to popularize these characteristics simultaneously, the user need not acquire, carry extra signal generator.
Circuit of the present invention constitutes by containing bluetooth module, single-chip microcomputer, drive circuit and control circuit, and bluetooth module is connected to single-chip microcomputer, and single-chip microcomputer is connected to drive circuit, and drive circuit connects control circuit and moves.This circuit adopts universal standard components and parts, bluetooth module 3.3V power supply power supply, single-chip microcomputer 5V power supply power supply, drive circuit and control circuit 12V power supply power supply.
In order to save the mobile phone power consumption, reduce unnecessary Bluetooth signal transmitting-receiving, carry out closing Bluetooth system in the identification not needing, while successively works and reduction of service life in order to prevent bluetooth module, imponderable non-systemic mistake perhaps occurs, drive circuit connects a 12V relay in addition, and this relay is connected to bluetooth module, be used for controlling bluetooth module power supply, reach and stop bluetooth module work or power-off restoration.
Cooperate circuit of the present invention, realization utilizes the step of the method for Bluetooth of mobile phone automatic opening and closing door to be:
Step 1 deposits the Bluetooth address of the mobile phone with Bluetooth function of appointment in internal memory, and sets the confidential state of the bluetooth of mobile phone and bluetooth module;
Step 2, bluetooth module are constantly sent Bluetooth signal on one's own initiative, carry out search inquiry by the Bluetooth address of having deposited, but see that this mobile phone is whether in join domain;
Step 3, bluetooth module sends the Query Result of step 2 to single-chip microcomputer, and the result is exactly or does not have two kinds of logic states;
Step 4, single-chip microcomputer judge that mobile phone is to be toward or away from state, and carry out automatic open and close action by the drive circuit control circuit.
The present invention is based on Bluetooth technology, because Bluetooth transmission is used spread spectrum, frequency hopping, data encryption and globally unique 48 bit address identification codes have been avoided interference most possibly, duplicated, and are safe and reliable.On the other hand, the Bluetooth function that the present invention has utilized mobile phone to carry serves as transceiver i.e. " electron key " with mobile phone, has simplified equipment, and is easy to use.
In order to increase fail safe of the present invention, in step 1, after the mobile phone address deposits bluetooth module in, the bluetooth of mobile phone and equipment all is set to invisible mode to non-matching equipment; And then carry out the described finder of step 2.Like this, just can avoid the Bluetooth of mobile phone address to be revealed, duplicate.
In the step 4, single-chip microcomputer is judged and sent the flow process that opens or closes instruction is such:
(1), the signal sent of the single-chip microcomputer module that will obtain continuously and the signal accepted last time are relatively;
(2), comparative result is identical does not then do further action, continues relatively; If different, the then variation of decision logic state, from having to do not having, illustrate that exactly mobile phone is to leave state, satisfy the instruction of sending the pass to drive circuit; Opposite instruction of just sending out.
(3), after action command sends, be recycled to (1) and accept, relatively carry out action next time.
For the ease of the designated mobile phone address that the user changes or deletion deposits in, circuit of the present invention can further be optimized, and is connected a learn button with bluetooth module.Cooperate this button, in the step 2, before inquiry, bluetooth module at first detects the button state of learn button, according to the pressing or do not press of button, for a long time by inferior different conditions, decision is carried out step 2 and is still got back to step 1, like this, circuit of the present invention just can adapt to the change of mobile phone address, situations such as defence mobile phone replacing.
Description of drawings:
Fig. 1 is a circuit block diagram of the present invention.
Fig. 2 is the method flow diagram of inventive embodiments
Embodiment:
A specific embodiment of the circuit of the present invention that shows according to Fig. 1 is made of bluetooth module 1, single-chip microcomputer 2, drive circuit 3 and control circuit 4, and bluetooth module 1 can select for use the CSR Bluetooth chip to add peripheral circuit, adopts the power supply of 3.3V reference power supply; Single-chip microcomputer 2 select for use 51 family chips or PIC series can, the power supply of 5V power supply; Drive circuit 3 selects for use 2003 chip for driving to add that general peripheral circuit constitutes, and control circuit 4 is actuating of relay circuit, controls the break-make of peripheral circuit to realize automatic control by the actuating of relay.Drive circuit 3 and control circuit 4 are powered by the 12V power supply.
System also is provided with the memory deletion and relearns memory button 5, and learn button is connected with bluetooth module 1.Make things convenient for the user to change the pairing mobile phone.
Do unnecessary continuous operation for fear of bluetooth module, and detect under the abnormal situation of bluetooth operating mode at single-chip microcomputer 2 and to carry out the active power-off restoration.Drive circuit 3 connects a 12V relay 6, is used for controlling the power supply of bluetooth module 1.
Fig. 2 is the concrete steps that the present invention utilizes the method for embodiment circuit working.
Step 1 deposits the Bluetooth address of the mobile phone with Bluetooth function of appointment in internal memory.
Present embodiment adopts is that the bluetooth module 1 of bluetooth and the circuit of the present invention of existing mobile phone carries out method of matching and obtains the Bluetooth of mobile phone address, and the learning functionality of cooperation learn button, and idiographic flow is:
1, bluetooth module such as is at state to be paired, sends the Bluetooth pairing signal;
2, the bluetooth cellular phone opened bluetooth function searches bluetooth module of the present invention;
3, bluetooth module receives the pairing request of mobile phone;
4, input password and checking; Checking correctly enters next step, authentication error, return 1, wait state to be paired;
5, after the successful matching, the bluetooth of circuit changes hidden state automatically over to, and the pairing mobile phone also is arranged to the bluetooth hidden state, no longer accepts new pairing request;
6, the Bluetooth address of mobile phone is deposited in internal memory (outage is not lost);
If this step 1 is not used method of matching, also can be by specific purpose tool with the Bluetooth of mobile phone address internal memory that writes direct.
7, whether bluetooth module detects learn button 5 and presses, if do not press, then execution in step two;
Supress if detect learn button 5,, carry out the memory address zero clearing or got back to for 1 pairing preparatory stage the pairing of wait mobile phone according to the time length of pressing.
Step 2, bluetooth module 1 are constantly sent Bluetooth signal on one's own initiative, carry out search inquiry by the Bluetooth address of having deposited, but see that this mobile phone is whether in join domain.
Usually effective connection distance of bluetooth is about 10 meters, is a safe and reliable identification distance.
Step 3, bluetooth module 1 sends the Query Result of step 2 to single-chip microcomputer 2, and the result is exactly or does not have two kinds of logic states;
Step 4, single-chip microcomputer 2 judges that mobile phone is to be toward or away from state, and carries out automatic open and close action by drive circuit 3 control circuits 4.
Idiographic flow is:
Query Result that single-chip microcomputer 2 at first will successively obtain and previous result compare,
According to comparative result, if identical, single-chip microcomputer 2 does not send fill order, continues the relatively more next consequential signal of sending;
Comparative result is if inequality, and single-chip microcomputer 2 judges whether to satisfy other and carries out operation condition, if satisfy, sends the order of carrying out action just for drive circuit 3; Concrete action is carried out by executive circuit 4.Usually result is: the Bluetooth of mobile phone signal grows out of nothing, and illustrates that the user who carries mobile phone enters the scope of control lockset, then carries out the action of opening; If from having to nothing, illustrate that then the user leaves, carry out the action of closing.

Claims (6)

1, a kind of circuit that utilizes Bluetooth of mobile phone to realize the automatic switch lock, it is characterized in that containing bluetooth module (1), single-chip microcomputer (2), drive circuit (3) and control circuit (4) constitutes, bluetooth module (1) is connected to single-chip microcomputer (2), single-chip microcomputer (2) is connected to drive circuit (3), and drive circuit (3) connects control circuit (4) and moves.
2, by the described circuit that utilizes Bluetooth of mobile phone to realize the automatic switch lock of claim 1, the described drive circuit of its feature (3) is gone up and is connected a 12V relay (6), and this relay (6) is connected to bluetooth module (1), is used for controlling the power supply of bluetooth module.
3, by claim 1 or 2 described circuit, it is characterized in that described bluetooth module (2) connects a learn button (5) with Bluetooth of mobile phone realization automatic switch lock.
4, a kind of method of utilizing Bluetooth of mobile phone to realize the automatic switch lock is characterized in that comprising following steps:
Step 1 deposits the Bluetooth address of the mobile phone with Bluetooth function of appointment in internal memory, and sets the confidential state of the bluetooth of mobile phone and bluetooth module;
Step 2, bluetooth module are constantly sent Bluetooth signal on one's own initiative, carry out search inquiry by the Bluetooth address of having deposited, but see that this mobile phone is whether in join domain;
Step 3, bluetooth module sends the Query Result of step 2 to single-chip microcomputer, and the result is exactly or does not have two kinds of logic states;
Step 4, single-chip microcomputer judge that mobile phone is to be toward or away from state, and carry out automatic open and close action by drive circuit (3) control circuit.
5, by the described method of utilizing Bluetooth of mobile phone to realize the automatic switch lock of claim 4, it is characterized in that in the described step 1, after the mobile phone address deposits bluetooth module (1) in, mobile phone and bluetooth module (1) all are set to invisible mode to non-matching equipment.
6, by claim 4 or the 5 described methods of utilizing Bluetooth of mobile phone to realize the automatic switch lock, it is characterized in that the idiographic flow of described step 4 is:
(1), the signal sent of single-chip microcomputer (2) module (1) that will obtain continuously and the signal that received last time are relatively;
(2) comparative result is identical does not then do further action, continues relatively; If different, the then variation of decision logic state from having is not having, is sent the instruction of pass, opposite instruction of just sending out to drive circuit (3);
(3), after action command sends, be recycled to that flow process (1) receives, newer signal carries out next time and moves.
CN2009100332824A 2009-06-17 2009-06-17 Circuit and method for automatic locking and unlocking through utilization of Bluetooth of mobile phone Active CN101594423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100332824A CN101594423B (en) 2009-06-17 2009-06-17 Circuit and method for automatic locking and unlocking through utilization of Bluetooth of mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100332824A CN101594423B (en) 2009-06-17 2009-06-17 Circuit and method for automatic locking and unlocking through utilization of Bluetooth of mobile phone

Publications (2)

Publication Number Publication Date
CN101594423A true CN101594423A (en) 2009-12-02
CN101594423B CN101594423B (en) 2012-08-15

Family

ID=41408854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100332824A Active CN101594423B (en) 2009-06-17 2009-06-17 Circuit and method for automatic locking and unlocking through utilization of Bluetooth of mobile phone

Country Status (1)

Country Link
CN (1) CN101594423B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102121335A (en) * 2011-03-07 2011-07-13 复旦大学 Bluetooth electronic lock system based on random number unlocking
CN102571160A (en) * 2012-01-16 2012-07-11 华为终端有限公司 Bluetooth searching method and equipment
CN101607578B (en) * 2009-06-26 2012-12-26 无锡中星微电子有限公司 Vehicle, electronic lock control device thereof and mobile phone
CN103516403A (en) * 2012-06-28 2014-01-15 广达电脑股份有限公司 Bluetooth communication method and system
CN104092455A (en) * 2014-06-24 2014-10-08 成都极趣科技有限公司 Bluetooth wireless intelligent touch switch
CN104268964A (en) * 2014-09-11 2015-01-07 姚睿娟 Vehicle locking/unlocking system and method
CN104794782A (en) * 2015-03-20 2015-07-22 宁波青大智能安防科技有限公司 Control method of intelligent safe box
CN105681970A (en) * 2016-01-04 2016-06-15 芜湖美的厨卫电器制造有限公司 Water heater and audio system control method thereof
CN105894643A (en) * 2016-06-24 2016-08-24 广州极酷物联智能科技有限公司 Method for unlocking door access by using wireless network and wireless network door access system
CN108073263A (en) * 2016-11-11 2018-05-25 法乐第(北京)网络科技有限公司 The control method and device of a kind of onboard program
CN113227520A (en) * 2018-12-27 2021-08-06 松下知识产权经营株式会社 Vehicle control system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100582426C (en) * 2005-01-14 2010-01-20 乐金电子(中国)研究开发中心有限公司 Mobile phone electronic key for automobile and unlocking method thereof, electronic key for automobile
CN201153285Y (en) * 2008-02-03 2008-11-19 中兴通讯股份有限公司 Anti-stealing device of vehicle based on mobile phone
CN101319582B (en) * 2008-07-10 2011-06-22 宇龙计算机通信科技(深圳)有限公司 Security system and its unlocking method
CN201465197U (en) * 2009-06-17 2010-05-12 王伟 Circuit by using cell phone blue tooth to automatically switch on and off locks

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101607578B (en) * 2009-06-26 2012-12-26 无锡中星微电子有限公司 Vehicle, electronic lock control device thereof and mobile phone
CN102121335A (en) * 2011-03-07 2011-07-13 复旦大学 Bluetooth electronic lock system based on random number unlocking
CN102571160A (en) * 2012-01-16 2012-07-11 华为终端有限公司 Bluetooth searching method and equipment
CN103516403A (en) * 2012-06-28 2014-01-15 广达电脑股份有限公司 Bluetooth communication method and system
CN103516403B (en) * 2012-06-28 2015-08-19 广达电脑股份有限公司 Bluetooth communication method and system
CN104092455B (en) * 2014-06-24 2017-07-07 成都极趣科技有限公司 Bluetooth intelligent wireless soft-touch control
CN104092455A (en) * 2014-06-24 2014-10-08 成都极趣科技有限公司 Bluetooth wireless intelligent touch switch
CN104268964A (en) * 2014-09-11 2015-01-07 姚睿娟 Vehicle locking/unlocking system and method
CN104794782A (en) * 2015-03-20 2015-07-22 宁波青大智能安防科技有限公司 Control method of intelligent safe box
CN104794782B (en) * 2015-03-20 2017-04-12 宁波青大智能安防科技有限公司 Control method of intelligent safe box
CN105681970A (en) * 2016-01-04 2016-06-15 芜湖美的厨卫电器制造有限公司 Water heater and audio system control method thereof
CN105894643A (en) * 2016-06-24 2016-08-24 广州极酷物联智能科技有限公司 Method for unlocking door access by using wireless network and wireless network door access system
CN108073263A (en) * 2016-11-11 2018-05-25 法乐第(北京)网络科技有限公司 The control method and device of a kind of onboard program
CN113227520A (en) * 2018-12-27 2021-08-06 松下知识产权经营株式会社 Vehicle control system
US11921518B2 (en) 2018-12-27 2024-03-05 Panasonic Intellectual Property Management Co., Ltd. Vehicle control system

Also Published As

Publication number Publication date
CN101594423B (en) 2012-08-15

Similar Documents

Publication Publication Date Title
CN101594423B (en) Circuit and method for automatic locking and unlocking through utilization of Bluetooth of mobile phone
CN103729926B (en) Based on the control method of the control of bluetooth access control system of remote authorization of intelligent terminal
CN102654003B (en) Low power consumption remote awakening intelligent lock system
CN100552725C (en) The method of starting automobile safety-protection device and safety device thereof
CN106204817A (en) A kind of control method of control of bluetooth access
CN202117430U (en) System opening door by cell phone, and door opening system
US20080171579A1 (en) Cellular phone with signal learning capability
CN202916892U (en) Intelligent lock system
KR20170025769A (en) The Apparatus And Method For Opening And Closing Vehicle Doors Using Bluetooth
CN102654002A (en) Keyless entry intelligent lock capable of adding and deleting keys
CN202453982U (en) Network control system based on internet-of-things technology of fingerprint security burglarproof door
CN102704761A (en) Intelligent lock system supporting multiple authentication modes
CN202413703U (en) RFID (radio frequency identification device) based key-free automobile accessing and starting system
CN105781267A (en) Door lock system remotely controlled on basis of intelligent terminal
CN104063929A (en) Electronic door lock realizing unlocking through mobile terminal
CN201508624U (en) Car remote-control starting system being free from passive burglary prevention or starting by entering key
CN102270314A (en) Non-contact control method and device
CN202221597U (en) Garage access control system with short message service trigger and position matching guarantee functions
CN103035055A (en) Automobile door lock unlocking-locking system based on NFC mobile phone
CN201465197U (en) Circuit by using cell phone blue tooth to automatically switch on and off locks
CN113830027A (en) Vehicle control method based on digital key system
US11131120B2 (en) Electric lock and control method thereof
CN101068293B (en) Home long-distance management device
CN209044718U (en) One kind exempting from key door system
KR20070063208A (en) System for automatic door lock and controlling stolen vehicles using the zigbee

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant