Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly:When detect detection carry NFC function mobile device with it is described
The distance between door lock detection instruction after, according to it is described detection command detection described between mobile device and the door lock away from
From;If the distance is less than pre-determined distance, NFC reception antennas and NFC Energy extractions circuit extraction institute by the door lock
State the energy in mobile device;Based on the power circuit of the door lock, powered by the energy to the door lock;When the door
After locking electricity, if detecting the door open command that the mobile device is sent by NFC function, opened according to the door open command
The door lock.To solve the lithium ion battery of existing door lock or after dry cell electricity exhausts, user does not open door lock, and door lock
The problem of cost of manufacture is high.
As shown in figure 1, Fig. 1 is the structural representation of the first embodiment of door lock of the present invention.Door lock includes NFC (Near
Field Communication, near field communication (NFC)) power supply module 20 and main control module 10 are taken, the NFC takes power supply
Module 20 and the main control module 10 connect, and the main control module 10 includes microprocessor 11 and NFC card reading modules 12, described micro-
Processor 11 and the NFC card reading modules 12 connect;The NFC takes power supply module 20 to include NFC reception antennas 23, NFC energy
Extraction circuit 22 and power circuit 21, the NFC reception antennas 23, NFC Energy extractions circuit 22 and power circuit 21 are gone here and there successively
Connection, power circuit 21 are connected with main control module 10.
NFC reception antennas 23 are operated in 13.56MHz (Mega Hertz, megahertz) frequency range, the number of NFC reception antennas 23
Can be 106kbps (bit rate), 212kbps or 424kbps according to transmission rate, it is recognized reading distance in most applications, not surpassed
Cross 10 centimetres.NFC reception antennas 23 have following features:
1. support ISO (International Organization for Standardization, International standardization group
Knit)/IEC (International Electrotechnical Commission, International Electrotechnical Commission) 14443TypeA and
MIFARE&reg communication protocols;
2. reaching the reading/writing distance of 100mm (millimeter), reading/writing distance depends on size and the modulation of antenna;
3. MF1xxS20, MF1xxS70 and MF1xxS50 read-write is supported to encrypt;
4. support ISO 14443A, up to 848kbit/s transmission rates communication;
5. the HPI supported:Up to 10Mbit/s SPI (Serial Peripheral Interface, serially
Peripheral Interface) interface.
Power circuit 21 is a kind of LDO (low dropout regulator, low pressure difference linear voltage regulator), for door
Each circuit and the module work of lock provide power supply.
NFC Energy extractions circuit 22 is used for the RF energy for extracting the mobile device for carrying NFC function.Implement in the present invention
Example in, the structure of MAC (Media Access Control, medium access control) layer by changing NFC, and radio frequency,
Antenna, low-power consumption, zero energy configuration etc. optimize, to increase the receiving power of NFC Energy extractions circuit 22.Specifically, lead to
Low-power Technology, antenna matching technique etc. is crossed to optimize.It can be obtained by experiment, the receiving power of NFC Energy extractions circuit 22
It can increase to more than 60mW (megawatt).
NFC reception antennas 23 are used to receive the RF energy that the mobile device for carrying NFC function is sent, and will be received
RF energy is sent to NFC Energy extractions circuit 22, and received institute's RF energy is sent to by NFC Energy extractions circuit 22
Power circuit 21, power circuit 21 pass through received RF energy and powered to door lock.Mobile device is to possess NFC wireless chargings
The terminal of function, such as carry mobile phone, the iPad with NFC function of NFC function.
MCU (Microcontroller Unit, microprocessor 11) is used for the operation for controlling whole door-locking system.In this reality
Apply in example, microprocessor 11 can use STM32F205 single-chip microcomputers, and in other embodiments, microprocessor 11 can also use other
Chip, it will not be described here.
If the distance of mobile device and door lock is less than pre-determined distance, door lock then receives movement by NFC reception antennas 23 and set
Standby RF energy.Pre-determined distance determines according to the size and modulation system of NFC reception antennas 23.It is understood that when shifting
When dynamic equipment and the distance of door lock are more than or equal to pre-determined distance, the NFC reception antennas 23 of door lock do not receive mobile device
RF energy.
After the RF energy that door lock is extracted by NFC reception antennas 23 is powered, i.e., on door lock after electricity, the master control mould of door lock
Block 10 detects whether to detect door open command.After main control module 10 detects door open command, main control module 10 is according to the enabling
Instruction unpack door lock.
Specifically, the door open command can be sent by mobile device by NFC function.When the distance of mobile device and door lock is small
When pre-determined distance, the NFC Energy extractions circuit 22 of door lock is set by the movement of the extraction carrying NFC function of NFC reception antennas 23
Standby RF energy, to realize the powered operation of door lock.Now, application program launching password corresponding with door lock in mobile device
Input function, door-opening password is inputted in the application program of mobile device by user.When user is in mobile device application program
After inputting door-opening password, it can verify whether the door-opening password of user's input is correct.When the door-opening password of user's input with depositing in advance
When the door-opening password of storage is consistent, then confirm that the door-opening password of user's input is correct;When the door-opening password of user's input with depositing in advance
When the password of storage is inconsistent, then the door-opening password mistake of user's input is confirmed.Wherein, it is close to include but is not limited to fingerprint for door-opening password
Code and numerical ciphers.
When the door-opening password of user's input is correct, mobile device is sent to door lock by NFC function.When door lock receives
During the door-opening password that mobile device is sent, the NFC card reading modules 12 of door lock read the door-opening password, to trigger door open command, and
The door open command is sent to microprocessor 11.After microprocessor 11 receives door open command, microprocessor 11 drives door lock
Lock core, to perform opening door operation, open door lock.
Further, when the door-opening password mistake of user's input, the exportable prompt message of mobile device, prompt user defeated
The code error entered.
Further, after electricity on door lock, NFC card reading modules 12 detect whether to read the brush of corresponding contactless card
Card instruction.When NFC card reading modules 12, which are read, swipes the card instruction, according to instruction triggers door open command of swiping the card, and by door open command
It is sent to microprocessor 11.After microprocessor 11 receives door open command, microprocessor 11 drives the lock core of door lock, to perform
Opening door operation, open door lock.
Wherein, contactless card is the NFC label badge that user carries, and the door lock is opened for being swiped the card in door lock.Contactless card
Can be that IC (integrated circuit, integrated circuit) blocks, or TM (Touch Memory) cards etc..
The present embodiment door lock includes NFC reception antennas 23, NFC Energy extractions circuit 22, power circuit 21, microprocessor 11
With NFC card reading modules 12.NFC Energy extractions circuit 22 extracts the mobile device of carrying NFC function by NFC reception antennas 23
Energy is powered to door lock.Door lock is not needed battery, directly powered using NFC, avoid when the lithium ion battery in door lock or
After person's dry cell electricity exhausts, user do not open door lock situation occur.Further, due to not needing battery in door lock, because
This is during door lock is made, it is not required that the headspace placing battery on door lock, reduces the cost of manufacture of door lock.Enter one
Situations such as step ground, because door lock does not have battery, therefore it also avoid door lock battery drain, and the charging of door lock battery is on fire occurs.
Further, door lock also includes memory, and the memory is connected with microprocessor 10.Memory can be at a high speed
RAM (random access memory, random access memory) memories or stable memory (non-
Volatile memory), such as magnetic disk storage.
As operating system and door lock open door procedure can be included in a kind of memory of computer-readable storage medium.Its
In, operating system is management and the program for controlling door lock hardware and software resource, supports door lock open door procedure and other softwares
And/or the operation of program.Microprocessor 10 can be used for calling the door lock open door procedure stored in memory, and perform following grasp
Make:
After the detection for detecting mobile device and the distance between the door lock that detection carries NFC function instructs, root
According to the distance between mobile device and the door lock described in the detection command detection;
If the distance is less than pre-determined distance, carried by the NFC reception antennas and NFC Energy extraction circuits of the door lock
Take the energy in the mobile device;
Based on the power circuit of the door lock, powered by the energy to the door lock;
After electricity on the door lock, if detecting the door open command that the mobile device is sent by NFC function, basis
The door open command opens the door lock.
Further, described after electricity on the door lock, if detecting, the mobile device is opened by what NFC function was sent
Door instruction, then included according to the step of door open command opening door lock:
After electricity on the door lock, detect whether to receive the door open command that the mobile device is sent by NFC function,
Wherein, the door open command is inputted door-opening password triggering by user in the mobile device;
If receiving the door open command that the mobile device is sent, detect the door open command corresponding to door-opening password be
It is no correct;
If the door-opening password is correct, the door lock is opened according to the door open command.
Further, if the door open command for receiving the mobile device and sending, detects the door open command pair
After the whether correct step of the door-opening password answered, microprocessor 10 can be also used for calling the door lock stored in memory to open the door
Program, and perform following steps:
If the door-opening password mistake, exports prompt message, to prompt user cipher input error.
Further, if the door open command for receiving the mobile device and sending, detects the door open command pair
The whether correct step of the door-opening password answered includes:
If receiving the door open command that the mobile device is sent, the door open command is parsed, the enabling is obtained and refers to
Door-opening password after being encrypted corresponding to order;
According to the door-opening password after the decipherment algorithm decryption encryption consulted in advance with the mobile device, solved
The door-opening password after close, and whether the door-opening password detected after decryption is correct.
Further, the power circuit based on the door lock, the step of power supply by the energy to the door lock
Before, microprocessor 10 can be also used for calling the door lock open door procedure stored in memory, and perform following steps:
Voltage stabilizing processing is carried out to the energy by the mu balanced circuit of the door lock, with the energy stablized.
Further, reference picture 2, Fig. 2 are the structural representation of the second embodiment of door lock of the present invention.
NFC takes power supply module 20 also to include mu balanced circuit 24, NFC Energy extractions circuit 22, mu balanced circuit 24 and power supply electricity
Road 21 is sequentially connected in series.Mu balanced circuit 24 is used to stablize the voltage exported after the extraction RF energy of NFC Energy extractions circuit 22, obtains
Voltage after stable, and the voltage after stabilization is sent to power circuit 21, so that power circuit 21 can export stable electricity.
It is understood that the voltage that exports of NFC Energy extractions circuit 22 voltage corresponding to the RF energy that is extracted.
The present embodiment passes through mu balanced circuit 24, there is provided stable electricity is to power circuit 21, at the electricity for making supply door lock
In stable state, avoid in door lock power supply process, due to spread of voltage, the situation for reducing door lock service life occurs,
Extend the service life of door lock.
Further, reference picture 3, Fig. 3 are the structural representation of the 3rd embodiment of door lock of the present invention.
Main control module 10 also includes fingerprint input module 13, and fingerprint input module 13 is connected with microprocessor 11, and fingerprint is defeated
Enter module 13 and connect fingerprint TIP, to detect user fingerprints.After electricity on door lock, user can be defeated by fingerprint TIP
Enter the fingerprint that opens the door.After user inputs enabling fingerprint by fingerprint TIP, fingerprint input module 13 detects that the enabling refers to
Line, and door open command is triggered by the enabling fingerprint, to open door lock.By the fingerprint input module 13, user can be in door
Lock and directly input the fingerprint needed for opening the door, when the fingerprint of user's input is correct, you can open door lock.
Further, user can also set one or more finger-print cipher by fingerprint TIP, by set
The finger-print cipher put is to open door lock.
Further, reference picture 3, main control module 10 also include the touch key-press module 14 being connected with microprocessor 11, touched
Key-press module 14 is touched to be connected with touch panel.After electricity on door lock, user can input the enabling needed for opening the door on touch panel
Password.It is understood that door-opening password now can be numerical ciphers.When user inputs door-opening password on touch panel
Afterwards, the touch key-press module 14 being connected with touch panel detects door-opening password, door open command is triggered by door-opening password, to beat
Door lock.In the present embodiment, touch key-press module 14 can use 12 road capacitance touch chips, in other embodiments,
The touch chip that touch key-press module 14 can also take other form, will not be repeated here.
Further, reference picture 3, main control module 10 also include voice playing module 15, voice playing module 15 and Wei Chu
Reason device 11 is connected, and voice playing module 15 is connected with loudspeaker, for exporting voice messaging.Specifically, opening when user's input
During door code error, the controlling loudspeaker of voice playing module 15 output voice messaging, user cipher input error is prompted.Such as when with
During the door-opening password mistake of family input, the language of the controlling loudspeaker of voice playing module 15 output " code error, please re-enter "
Message ceases, to prompt user to re-enter password.Or when user is setting password, the controlling loudspeaker of voice playing module 15
Voice messaging is exported, prompts to set the length of password needed for user.In the present embodiment, voice playing module 15 uses
WT588D-20SS intelligent sound chips, in other embodiments, voice playing module 15 can also use other types of intelligent language
Sound chip, is not limited herein.
By voice playing module 15, the exportable voice messaging related to current state, to prompt user, door is improved
That locks is intelligent.
Further, reference picture 3, main control module 10 also include the safety chip 16 being connected with microprocessor 11.The safety
Chip 16 is used to verify that door-opening password, and clamshell doors password carry out the operation such as hardware encryption, to ensure the safety of door-opening password
Property and correctness.It is understood that door-opening password includes but is not limited to finger-print cipher and numerical ciphers.In the present embodiment,
Safety chip 16 has passed through CC EAL5 level security certifications.
Further, if the door-opening password that mobile device is sent is the door-opening password after encryption, safety chip is additionally operable to
Door-opening password after the encryption is decrypted using decipherment algorithm, wherein, the decipherment algorithm adds with mobile device encryption door-opening password
Close algorithm is corresponding.AES and decipherment algorithm include but is not limited to DES (Data Encryption Standard, data
Encryption standard), AES (Advanced Encryption Standard, Advanced Encryption Standard), RSA cryptographic algorithms and MD5
(Message-Digest Algorithm5, Message-Digest Algorithm 5).Such as when mobile device is encrypted using DES algorithms,
The safety chip of door lock is decrypted also by DES algorithms.
Further, reference picture 3, door lock also include ZigBee module 17 and BLE (Bluetooth Low Energy, indigo plant
Tooth low-power consumption) module 18.ZigBee is to be based on IEEE (Institute of Electrical and Electronics
Engineers, Institute of Electrical and Electric Engineers) 802.15.4 standards low-power consumption LAN protocol.ZigBee technology is one
Kind short distance, the wireless communication technology of low-power consumption.ZigBee module 17 is used to connect Zigbee gateways.BLE modules 18 are used to connect
Connect the bluetooth of mobile device.
During the bluetooth that BLE modules 18 connect mobile device, if the first time of BLE modules 18 and the bluetooth of mobile device
Connection, then the bluetooth that BLE modules 18 will be first with mobile device is matched, when BLE modules 18 and the Bluetooth pairing of mobile device
After success, when follow-up BLE modules 18 and the bluetooth of mobile device are attached, then do not have to match again.If BLE modules 18 are not
Once with the bluetooth connection of mobile device, then show Bluetooth pairing mistake of the BLE modules 18 with mobile device, now, BLE modules
18 can directly with mobile device bluetooth connection.
Further, microprocessor 11 and motor connection.Specifically, after microprocessor 11 receives door open command, root
Door lock is opened according to door open command controlled motor.It is understood that power circuit 21 is also and motor connection, to be powered to motor,
Motor is set to open door lock.
It should be noted that when microprocessor 11 opens door lock, ZigBee module 17, BLE modules 18, touch key-press mould
Block 14 and the grade circuit of fingerprint input module 13 all do not need work.
Further, door lock also includes motor driving, and motor driving is connected with microprocessor 11, driven by the motor
Controllable motor work.
Further, door lock also includes button doorbell, and the button doorbell is connected with microprocessor 11.Pass through the button doorbell
The resident family inside house can be prompted, has guest to come to visit.
Further, door lock also includes backlight, and the backlight is connected with microprocessor 11.
Further, can also be powered by way of meeting wireless charging QI standards to door lock.It is understood that pass through
Other intelligence can also be applied to the method for the door lock power supply for possessing NFC reception antennas 23 by carrying the mobile device of NFC function
In home equipment, as being applied in electric cooker, humidifier.
Based on above-mentioned structure, each embodiment of proposition door lock door opening method.
Reference picture 4, Fig. 4 are the schematic flow sheet of door lock door opening method first embodiment of the present invention.
The embodiments of the invention provide the embodiment of door lock door opening method, it is necessary to illustrate, although showing in flow charts
Go out logical order, but in some cases, can be with the step shown or described by being performed different from order herein.
NFC reception antennas, NFC Energy extractions circuit and power circuit are provided with door lock, door lock door opening method includes:
Step S10, when the detection for detecting mobile device and the distance between the door lock that detection carries NFC function refers to
After order, according to the distance between mobile device and the door lock described in the detection command detection.
When door lock detect detection carry NFC function mobile device with its distance between detection instruction after, door lock
According to the distance between the detection command detection mobile device and door lock.Wherein, the detection instruction by door lock in real time or timing
Triggering.When detection instruction is by door lock clocked flip, the time interval of detection trigger instruction can be set according to specific needs, such as
It may be configured as at interval of 5ms, 20ms or 60ms triggering one-time detection instruction.Mobile device is to possess NFC wireless charging functions
Terminal, such as carry NFC function mobile phone, the iPad with NFC function.Pre-determined distance by NFC reception antennas size and tune
Mode processed determines.
Step S20, if the distance is less than pre-determined distance, carried by the NFC reception antennas and NFC energy of the door lock
Sense circuit extracts the energy in the mobile device.
After door lock detects the distance between mobile device and door lock, door lock judge the distance whether be less than it is default away from
From.When the distance between mobile device and door lock are less than pre-determined distance, the NFC Energy extraction circuits of door lock are received by NFC
Energy in its line drawing mobile device.
Wherein, NFC reception antennas are operated in 13.56MHz (Mega Hertz, megahertz) frequency range, the number of NFC reception antennas
Can be 106kbps (bit rate), 212kbps or 424kbps according to transmission rate, it is recognized reading distance in most applications, not surpassed
Cross 10 centimetres.
NFC Energy extractions circuit is used for the energy for extracting the mobile device for carrying NFC function.In embodiments of the present invention,
By the structure of MAC (Media Access Control, the medium access control) layer for changing NFC, and radio frequency, antenna,
Low-power consumption, zero energy configuration etc. optimize, to increase the receiving power of NFC Energy extraction circuits.Specifically, low-power consumption is passed through
Technology, antenna matching technique etc. optimize.It can be obtained by experiment, the receiving power of NFC Energy extraction circuits can increase to
More than 60mW (megawatt).
Further, when the distance of mobile device and door lock is more than or equal to pre-determined distance, NFC Energy extraction circuits
Pass through RF energy of the NFC reception antennas extraction less than mobile device.
Step S30, based on the power circuit of the door lock, powered by the energy to the door lock.
After the energy of the mobile device of the NFC Energy extraction circuit extractions of door lock, the energy extracted is transferred to electricity
Source circuit.After power circuit receives energy, powered according to the energy to door lock.Wherein.Power circuit is a kind of LDO (low
Dropout regulator, low pressure difference linear voltage regulator), provide power supply for each circuit and the module work to door lock.
Step S40, after electricity on the door lock, if detecting, the enabling that the mobile device is sent by NFC function refers to
Order, then the door lock is opened according to the door open command.
After electricity on door lock, door lock detects whether to receive the door open command that mobile device is sent by NFC function.Work as door
After interlocking receives the door open command that mobile device is sent by NFC function, the microprocessor of door lock is opened according to the door open command
Door lock.Wherein, microprocessor is arranged in main control module, and power circuit is connected with main control module.Specifically, as the NFC of door lock
Energy extraction circuit extracts the RF energy of mobile device by NFC reception antennas when realizing the powered operation of door lock, mobile
Application program launching password input function corresponding with door lock in equipment, user is prompted to be inputted in the application program of mobile device
Door-opening password.After user inputs door-opening password in a mobile device, mobile device triggering door open command, and opened what is triggered
Door is sent to door lock by NFC function.
Further, after user inputs door-opening password in mobile device application program, mobile device can verify user
Whether the door-opening password of input is correct.Specifically, when the door-opening password of user's input and enabling that mobile device prestores are close
When code is consistent, then confirm that the door-opening password of user's input is correct;When the door-opening password of user's input prestores with mobile device
Password it is inconsistent when, then confirm user input door-opening password mistake.Wherein, door-opening password includes but is not limited to finger-print cipher
And numerical ciphers.When the door-opening password of user's input is correct, mobile device triggering door open command, will be taken by its NFC function
Door open command with door-opening password is sent to door lock.
Further, after electricity on door lock, door lock can also open door lock using following three kinds of modes.
1. after electricity on door lock, door lock detects whether to receive the instruction of swiping the card of corresponding contactless card.If receive
Swipe the card instruction, door lock opens door lock then according to the instruction triggers door open command of swiping the card according to the door open command.Wherein, sense
Block the NFC label badge carried for user, the door lock is opened for being swiped the card in door lock.Contactless card can be IC (integrated
Circuit, integrated circuit) card, or TM (Touch Memory) cards etc..
2. being provided with the touch key-press module being connected with microprocessor in door lock, touch key-press module connects with touch panel
Connect.After electricity on door lock, user can input the door-opening password needed for opening the door to open door lock on touch panel.It is appreciated that
It is that door-opening password now is numerical ciphers.After user is inputting door-opening password on touch panel, door lock detects that enabling is close
Code, door open command is triggered by door-opening password, to open door lock.In the present embodiment, touch key-press module can use 12 tunnels
Capacitance touch chip, in other embodiments, the touch chip that touch key-press module can also take other form, herein no longer
Repeat.
3. the fingerprint input module being connected with microprocessor is provided with door lock, fingerprint input module connection fingerprint input face
Plate.After electricity on door lock, user can input the fingerprint needed for opening the door by fingerprint TIP.When user passes through fingerprint input face
After plate input fingerprint, fingerprint input module detects the enabling fingerprint, and triggers door open command by the enabling fingerprint, to open
Door lock.
Further, user can also set one or more finger-print cipher by fingerprint TIP, by set
The finger-print cipher put is to open door lock.
The present embodiment passes through when the inspection for the mobile device and the distance between the door lock for detecting detection carrying NFC function
After surveying instruction, according to the distance between mobile device and the door lock described in the detection command detection;If the distance is less than
Pre-determined distance, then pass through the energy in mobile device described in the NFC reception antennas and NFC Energy extraction circuit extractions of the door lock
Amount;Based on the power circuit of the door lock, powered by the energy to the door lock;After electricity on the door lock, if detection
The door open command sent to the mobile device by NFC function, then the door lock is opened according to the door open command.Make door lock
Do not need battery, by NFC directly using mobile device energy power, to open door lock, avoid when the lithium in door lock from
After sub- battery or dry cell electricity exhausts, user do not open door lock situation occur.Further, due to not needed in door lock
Battery, therefore during door lock is made, it is not required that the headspace placing battery on door lock, reduce being fabricated to for door lock
This.Further, because door lock does not have battery, therefore door lock battery drain is it also avoid, door lock battery charges situations such as on fire
Occur.
Further, door lock door opening method second embodiment of the present invention is proposed.
The difference of the door lock door opening method second embodiment and the door lock door opening method first embodiment is, reference
Fig. 5, step S40 also include:
Step S41, after electricity on the door lock, detect whether to receive what the mobile device was sent by NFC function
Door open command, wherein, the door open command is inputted door-opening password triggering by user in the mobile device.
Step S42, if receiving the door open command that the mobile device is sent, detect and opened corresponding to the door open command
Whether door password is correct.
After electricity on door lock, door lock detects whether to receive the door open command that mobile device is sent by its NFC function, its
In, door open command is inputted door-opening password triggering by user in a mobile device.When door lock is after reading the door open command, door lock
Whether correct detect door-opening password corresponding to door open command.Specifically, the NFC Card Reader moulds being connected with microprocessor are provided with door lock
Block and safety chip.Door lock can obtain the door open command by NFC card reading modules.When door lock is got by NFC card reading modules
After the door open command, whether door lock is correct by door-opening password corresponding to safety chip detection door open command.Specifically, safe core
Piece is by door-opening password compared with the password prestored.If door-opening password is consistent with the password prestored, confirmation is opened
Door password is correct;If door-opening password and the password prestored are inconsistent, door-opening password mistake is confirmed.
Step S43, if the door-opening password is correct, the door lock is opened according to the door open command.
After confirming that door-opening password is correct, the microprocessor of door lock performs opening door operation according to the door open command, to open
Door lock.
Further, door lock door opening method also includes:
Step a, if the door-opening password mistake, exports prompt message, to prompt user cipher input error.
Further, if confirming door-opening password mistake, door lock then exports prompt message, to prompt user cipher input wrong
By mistake.Specifically, the voice playing module being connected with microprocessor is provided with door lock, voice playing module is connected with loudspeaker.
When door-opening password mistake, microprocessor control voice playing module output prompt message, voice playing module passes through loudspeaker
Prompt message prompting user is exported, the voice messaging of " code error, please re-enter " is such as exported by controlling loudspeaker.
Further, if confirming door-opening password mistake, door lock can send prompt message by NFC reception antennas and be set to movement
Standby, mobile device receives the prompt message by its NFC function, and the prompt message received is included in its screen, with
Checked for user.
The present embodiment is by after door lock receives the door open command that mobile device is sent by NFC function, detecting this and opening
Whether door-opening password corresponding to door instruction is correct, and only when door-opening password is correct, door lock can just be opened according to the door open command
Door lock, improve the security for opening door lock.
Further, step S42 also includes:
Step b, if receiving the door open command that the mobile device is sent, the door open command is parsed, obtained described
Door-opening password after being encrypted corresponding to door open command.
Step c, the door-opening password after being encrypted according to the decipherment algorithm decryption consulted in advance with the mobile device,
The door-opening password after being decrypted, and whether the door-opening password detected after decryption is correct.
After mobile device receives the door-opening password of user's input, and the door-opening password is opened with what mobile device prestored
When door password is consistent, the door-opening password is encrypted mobile device, the door-opening password after being encrypted, according to opening after encryption
Door password triggering door open command, door lock is sent to by the door open command for carrying the door-opening password after encrypting by NFC function.It is mobile
The AES that equipment clamshell doors password is encrypted includes but is not limited to DES (Data Encryption Standard, data
Encryption standard), AES (Advanced Encryption Standard, Advanced Encryption Standard), RSA cryptographic algorithms and MD5
(Message-Digest Algorithm 5, Message-Digest Algorithm 5).
After door lock receives the door open command of mobile device transmission, the safety chip of door lock then parses the door open command,
The door-opening password after encryption corresponding with door open command is obtained, and is decrypted according to the decipherment algorithm consulted in advance with mobile device
Door-opening password after encryption, the door-opening password after being decrypted.It is understood that opening after the decryption encryption of door lock safety chip
The decipherment algorithm of door password is corresponding with the AES of mobile device encryption door-opening password.Such as when mobile device uses
When DES algorithms are encrypted, the safety chip of door lock is decrypted also by DES algorithms.Enabling after door lock obtains decryption
After password, whether the door-opening password after detection decryption is correct.
The present embodiment before door-opening password is sent into mobile device, is first added door-opening password by mobile device
It is close, the door-opening password after being encrypted, the door-opening password after encryption is sent to door lock, improves the security of door-opening password.
Further, door lock door opening method 3rd embodiment of the present invention is proposed.
The difference of the door lock door opening method 3rd embodiment and the door lock door opening method first or second embodiments exists
In reference picture 6, door lock door opening method also includes:
Step S50, voltage stabilizing processing is carried out to the energy by the mu balanced circuit of the door lock, with the energy stablized
Amount.
The mu balanced circuit being connected with NFC Energy extraction circuits is additionally provided with door lock.When NFC Energy extractions circuit extraction to shifting
After the energy of dynamic equipment, the energy is sent to the mu balanced circuit of door lock by NFC Energy extractions circuit, by mu balanced circuit to should
Energy carries out voltage stabilizing processing, with the energy stablized.After the energy stablized, the energy of the stabilization is sent to power supply
Circuit, charged to door lock.
The present embodiment is by the energy of the stable NFC Energy extraction circuit extractions of mu balanced circuit, at the electricity for making supply door lock
In stable state, avoid in door lock power supply process, due to spread of voltage, the situation for reducing door lock service life occurs,
Extend the service life of door lock.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with door lock open door procedure, the door lock open door procedure realizes following steps when being executed by processor:
After the detection for detecting mobile device and the distance between the door lock that detection carries NFC function instructs, root
According to the distance between mobile device and the door lock described in the detection command detection;
If the distance is less than pre-determined distance, carried by the NFC reception antennas and NFC Energy extraction circuits of the door lock
Take the energy in the mobile device;
Based on the power circuit of the door lock, powered by the energy to the door lock;
After electricity on the door lock, if detecting the door open command that the mobile device is sent by NFC function, basis
The door open command opens the door lock.
Further, described after electricity on the door lock, if detecting, the mobile device is opened by what NFC function was sent
Door instruction, then included according to the step of door open command opening door lock:
After electricity on the door lock, detect whether to receive the door open command that the mobile device is sent by NFC function,
Wherein, the door open command is inputted door-opening password triggering by user in the mobile device;
If receiving the door open command that the mobile device is sent, detect the door open command corresponding to door-opening password be
It is no correct;
If the door-opening password is correct, the door lock is opened according to the door open command.
Further, if the door open command for receiving the mobile device and sending, detects the door open command pair
After the whether correct step of the door-opening password answered, the door lock open door procedure realizes following steps when being executed by processor:
If the door-opening password mistake, exports prompt message, to prompt user cipher input error.
Further, if the door open command for receiving the mobile device and sending, detects the door open command pair
The whether correct step of the door-opening password answered includes:
If receiving the door open command that the mobile device is sent, the door open command is parsed, the enabling is obtained and refers to
Door-opening password after being encrypted corresponding to order;
According to the door-opening password after the decipherment algorithm decryption encryption consulted in advance with the mobile device, solved
The door-opening password after close, and whether the door-opening password detected after decryption is correct.
Further, the power circuit based on the door lock, the step of power supply by the energy to the door lock
Before, following steps are realized when the door lock open door procedure is executed by processor:
Voltage stabilizing processing is carried out to the energy by the mu balanced circuit of the door lock, with the energy stablized.
Computer-readable recording medium embodiment of the present invention and the basic phase of above-mentioned each embodiment of door lock door opening method
Together, will not be repeated here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.