CN101594423B - Circuit and method for automatic locking and unlocking through utilization of Bluetooth of mobile phone - Google Patents

Circuit and method for automatic locking and unlocking through utilization of Bluetooth of mobile phone Download PDF

Info

Publication number
CN101594423B
CN101594423B CN2009100332824A CN200910033282A CN101594423B CN 101594423 B CN101594423 B CN 101594423B CN 2009100332824 A CN2009100332824 A CN 2009100332824A CN 200910033282 A CN200910033282 A CN 200910033282A CN 101594423 B CN101594423 B CN 101594423B
Authority
CN
China
Prior art keywords
bluetooth
mobile phone
circuit
drive circuit
bluetooth module
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.)
Expired - Fee Related
Application number
CN2009100332824A
Other languages
Chinese (zh)
Other versions
CN101594423A (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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention relates to a circuit and a method for automatic locking and unlocking through utilization of Bluetooth of a mobile phone and belongs to the field of autocontrol. The circuit comprises a Bluetooth module, a singlechip, a drive circuit and a control circuit; the Bluetooth module is connected with the singlechip; the singlechip is connected with the drive circuit; and the drive circuit is connected with the control circuit for actuation. The method comprises the following steps: firstly, storing a Bluetooth address of the appointed mobile phone with the Bluetooth function into a memory and determining a confidential state; secondly, emitting a signal continuously and actively by the Bluetooth module; and searching and inquiring according to the stored Bluetooth address to judge whether the mobile phone is in a connectable range; thirdly, sending an inquiry result to the singlechip by the Bluetooth module; and finally, judging whether the mobile phone is in a close or leaving state by the singlechip and carrying out automatic locking and unlocking action through the drive circuit and the control circuit. The method solves the problems of interference and duplication of a common electronic lock, is safe and reliable, utilizes the Bluetooth function carried by the mobile phone, uses the mobile phone as an electronic key, simplifies equipment and is convenient 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, the existing identification equipment repetition rate of coding is high, is intercepted and captured easily, is replicated easily.In the automotive lock industry, " lock interference unit " and " remote signal decoder " appearred, be used to disturb the work of automobile door lock by the lawless person, or others transmit of intercepting, carry out criminal activity.
On high-grade automobile, also have a kind of automated intelligent key of the IDRF of employing technology, 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, and bluetooth module is supplied power with the 12V power supply with the power supply of 5V power supply, drive circuit and control circuit with the power supply of 3.3V power supply, single-chip microcomputer.
In order to practice thrift the mobile phone power consumption, reduce unnecessary Bluetooth signal transmitting-receiving, need not carry out closing Bluetooth system in the identification; 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 unparalled kind of logic state;
Step 4, single-chip microcomputer judge that mobile phone is approaching or leaves state, and carry out automatic open and close action through 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 the 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, explain 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 up 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, by the break-make of actuating of relay control peripheral circuit to realize automatic control.Drive circuit 3 is supplied power by the 12V power supply with control circuit 4.
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 is correct to get into 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, deposit the Bluetooth address of mobile phone in internal memory (outage is not lost);
If this step 1 is not used method of matching, also can be through 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 unparalled kind of logic state;
Step 4, single-chip microcomputer 2 judge that mobile phone is approaching or leaves state, and carry out automatic open and close action through 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.Normal processing result is: the Bluetooth of mobile phone signal grows out of nothing, and explains that the user who carries mobile phone gets into the scope of control lockset, then carries out the action of opening; If from having to nothing, explain that then the user leaves, carry out the action of closing.

Claims (2)

1. one kind is utilized Bluetooth of mobile phone to realize the method that automatic switch is locked; Be applied to the Bluetooth switch lock circuit; Said circuit contains bluetooth module (1), single-chip microcomputer (2), drive circuit (3) and control circuit (4); Bluetooth module (1) is connected to single-chip microcomputer (2), and single-chip microcomputer (2) is connected to drive circuit (3), and drive circuit (3) connects control circuit (4) and moves;
It is characterized in that:
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 unparalled kind of logic state;
Step 4, single-chip microcomputer judges that according to the state that has or do not have mobile phone is approaching or leaves state, and carries out automatic open and close action through drive circuit (3) control circuit.
2. by the described method of utilizing Bluetooth of mobile phone to realize the automatic switch lock of claim 1, it is characterized in that the idiographic flow of described step 4 is:
(1) 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 Expired - Fee Related 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 CN101594423A (en) 2009-12-02
CN101594423B true CN101594423B (en) 2012-08-15

Family

ID=41408854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100332824A Expired - Fee Related 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)

Families Citing this family (11)

* 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
CN102121335B (en) * 2011-03-07 2012-10-17 复旦大学 Bluetooth electronic lock system based on random number unlocking
CN102571160A (en) * 2012-01-16 2012-07-11 华为终端有限公司 Bluetooth searching method and equipment
TWI466469B (en) * 2012-06-28 2014-12-21 Quanta Comp Inc Method and system of bluetooth communication
CN104092455B (en) * 2014-06-24 2017-07-07 成都极趣科技有限公司 Bluetooth intelligent wireless soft-touch control
CN104268964A (en) * 2014-09-11 2015-01-07 姚睿娟 Vehicle locking/unlocking system and method
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
CN113227520B (en) * 2018-12-27 2022-11-01 松下知识产权经营株式会社 Vehicle control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804349A (en) * 2005-01-14 2006-07-19 乐金电子(中国)研究开发中心有限公司 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
CN101319582A (en) * 2008-07-10 2008-12-10 宇龙计算机通信科技(深圳)有限公司 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804349A (en) * 2005-01-14 2006-07-19 乐金电子(中国)研究开发中心有限公司 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
CN101319582A (en) * 2008-07-10 2008-12-10 宇龙计算机通信科技(深圳)有限公司 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

Also Published As

Publication number Publication date
CN101594423A (en) 2009-12-02

Similar Documents

Publication Publication Date Title
CN101594423B (en) Circuit and method for automatic locking and unlocking through utilization of Bluetooth of mobile phone
CN104464040B (en) Car keyless entry system based on smart phone
CN102800140B (en) intelligent lock system and remote switch method
US20080171579A1 (en) Cellular phone with signal learning capability
CN102654002B (en) Keyless entry intelligent lock capable of adding and deleting keys
CN102654003B (en) Low power consumption remote awakening intelligent lock system
CN106204817A (en) A kind of control method of control of bluetooth access
US20170120867A1 (en) System and method for triggered latch release
CN202117430U (en) System opening door by cell phone, and door opening system
KR20170025769A (en) The Apparatus And Method For Opening And Closing Vehicle Doors Using Bluetooth
JP2002053009A (en) Security system allowing certificated access to protective area by certain individual
CN202916892U (en) Intelligent lock system
CN202453982U (en) Network control system based on internet-of-things technology of fingerprint security burglarproof door
CN104063929A (en) Electronic door lock realizing unlocking through mobile terminal
CN105781267A (en) Door lock system remotely controlled on basis of intelligent terminal
CN108173931A (en) A kind of implementation method of mobile fingerprint remote control intelligent household lock
CN102270314A (en) Non-contact control method and device
CN103679896B (en) A kind of gate control system for automobile and control method thereof and automobile
JP2023522477A (en) System and method for key fob disconnect
CN207148947U (en) A kind of gate control system
CN202362845U (en) Key-less antitheft door lock system
CN101431561A (en) Account locking method, system and correlated apparatus
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
TWI688700B (en) Electric lock and control method thereof

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120815