The content of the invention
It is a primary object of the present invention to provide a kind of door lock charging method, door-locking system and computer-readable storage medium
Matter, it is intended to which when solving the dry cell not enough power supply of existing door lock, user can not open the technical problem of door lock.
To achieve the above object, the present invention provides a kind of door lock charging method, and the door lock charging method includes step:
It is whether small according to the electricity of the detection command detection door lock battery after detection instruction of detection electricity is detected
In or equal to default electricity;
If the electricity is less than or equal to the default electricity, detection carries the short distance wireless communication technology NFC work(
Can mobile device and the door lock distance whether within a preset range, wherein, the door lock is provided with NFC reception antennas;
If the distance of the mobile device and the door lock is within a preset range, passes through the NFC reception antennas and receive
The RF energy of the mobile device, and charged by the RF energy to the door lock.
Preferably, if the distance of the mobile device and the door lock within a preset range, is connect by the NFC
The step of receiving the RF energy that antenna receives the mobile device, and being charged by the RF energy to the door lock includes:
If the distance of the mobile device and the door lock is within a preset range, passes through the NFC reception antennas and receive
The RF energy of the mobile device;
The RF energy is lifted, the RF energy after lifting is sent to by the voltage-stablizer of the door lock described
The power circuit of door lock, to be charged to the door lock.
Preferably, the lifting RF energy, the voltage stabilizing that the RF energy after lifting is passed through into the door lock
Device is sent to the power circuit of the door lock, to include the step of charging to the door lock:
Charge pump by the RF energy by the door lock, with the RF energy after getting a promotion;
The RF energy after lifting is sent to the voltage-stablizer of the door lock, to give the door by the voltage-stablizer
The power circuit of lock is powered, to be charged to the door lock.
Preferably, if the electricity is less than or equal to the default electricity, detection carries the movement of NFC function
The distance of equipment and the door lock whether within a preset range the step of include:
If the electricity is less than or equal to the default electricity, prompt message is exported, to prompt user to carry NFC
The mobile device of function is close to the door lock;
Whether within a preset range to detect the distance between the mobile device and the door lock.
Preferably, if the distance of the mobile device and the door lock within a preset range, is connect by the NFC
After the step of receiving the RF energy that antenna receives the mobile device, and being charged by the RF energy to the door lock,
Also include:
Detect whether in the presence of contactless card corresponding with the door lock in the pre-determined distance of the NFC reception antennas;
If the contactless card be present in the pre-determined distance of the NFC reception antennas, the data of the contactless card are read,
The door lock is opened according to the data read.
Preferably, if described have the contactless card in the pre-determined distance of the NFC reception antennas, the sense is read
The data that should block, included according to the step of data opening door lock read:
If the contactless card be present in the pre-determined distance of the NFC reception antennas, induced-current is produced;
The voltage according to corresponding to producing the sensor circuit;
The data of the contactless card are read by the voltage, the door lock is opened according to the data read.
Preferably, the data that the contactless card is read by the voltage, according to being opened the data read
The step of door lock, includes:
The voltage is sent to the microprocessor of the door lock, for the microprocessor according to the voltage with it is described
The NFC Card Reader front-end circuits of door lock are communicated, and receive the number for the contactless card that the NFC Card Readers front-end circuit is read
According to according to the data opening door lock read.
Preferably, it is described after the detection instruction of detection electricity is detected, according to the detection command detection door lock battery
Electricity the step of whether being less than or equal to default electricity after, in addition to:
If the electricity of the door lock battery is more than the default electricity, detect whether sense corresponding with the door lock be present
It should be stuck in the pre-determined distance of the NFC reception antennas;
If the contactless card be present in the pre-determined distance of the NFC reception antennas, the data of the contactless card are read,
The door lock is opened according to the data read.
In addition, to achieve the above object, the present invention also provides a kind of door-locking system, the door-locking system include closely without
Line communication technology NFC reception antennas, antenna-matching circuit, power circuit, voltage-stablizer, energy lift module, first switch, second
Switch, NFC Energy extractions module and battery;
The NFC reception antennas are used for the RF energy for receiving the mobile device for carrying NFC function, and pass through what is connected
The antenna-matching circuit, and with the first switch that the antenna-matching circuit is connected be sent to the RF energy described
NFC Energy extraction modules;
The NFC Energy extractions module is used to the received RF energy being sent to the energy lift mould
Block;
The energy lift module is used to being lifted the RF energy that is received, and by the RF energy after lifting
Corresponding voltage is sent to the voltage-stablizer;
The voltage-stablizer is used for the stable voltage received, and the voltage is sent into the electricity by second switch
Source circuit, to be charged by the power circuit to the battery.
In addition, to achieve the above object, the present invention also provides a kind of door-locking system, it is characterised in that the door-locking system
Including memory, processor and it is stored in the door lock charging procedure that can be run on the memory and on the processor, institute
The step of door lock charging method as described above is realized when stating door lock charging procedure by the computing device.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
Door lock charging procedure is stored with storage medium, the door lock charging procedure realizes door lock as described above when being executed by processor
The step of charging method.
The present invention is by the way that after the detection for detecting detection electricity instructs, command detection door lock battery is detected according to described
Whether electricity is less than or equal to default electricity;If the electricity is less than or equal to the default electricity, detection carries near
The distance of the mobile device of range wireless communication technologies NFC function and the door lock whether within a preset range, wherein, the door
Lock is provided with NFC reception antennas;If the distance of the mobile device and the door lock within a preset range, passes through the NFC
Reception antenna receives the RF energy of the mobile device, and is charged by the RF energy to the door lock.Realize and work as
During the battery electric quantity deficiency of intelligent door lock, charged, avoided due to intelligent door to intelligent door lock by the mobile device that user carries
Battery electric quantity deficiency is locked, so as to which the situation for causing user not open door occurs.
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:After the detection instruction of detection electricity is detected, according to the inspection
Whether the electricity for surveying command detection door lock battery is less than or equal to default electricity;If the electricity is less than or equal to described pre-
If electricity, then whether detection carries the mobile device of the short distance wireless communication technology NFC function and the distance of the door lock pre-
If in scope, wherein, the door lock is provided with NFC reception antennas;If the distance of the mobile device and the door lock is being preset
In the range of, then by the RF energy of the NFC reception antennas reception mobile device, and by the RF energy to institute
State door lock charging.During solving the dry cell not enough power supply of door lock, the problem of user can not open door lock.
As shown in figure 1, Fig. 1 is the structural representation for the hardware running environment that scheme of the embodiment of the present invention is related to.
As shown in figure 1, the door-locking system can include:Processor 1001, such as CPU, user interface 1003, memory
1005, communication bus 1002.Wherein, communication bus 1002 is used to realize the connection communication between these components.User interface
1003 can include display screen (Display), input block such as keyboard (Keyboard), and optional user interface 1003 can be with
Wireline interface, wave point including standard.Memory 1005 can be high-speed RAM memory or stable storage
Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processing
The storage device of device 1001.
Alternatively, door-locking system can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor,
Voicefrequency circuit, WiFi module etc..
It will be understood by those skilled in the art that the door-locking system structure shown in Fig. 1 does not form the limit to door-locking system
It is fixed, it can include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in figure 1, as operating system and door can be included in a kind of memory 1005 of computer-readable storage medium
Lock charging procedure.Wherein, operating system is management and the program for controlling door-locking system hardware and software resource, supports door lock charging
The operation of program and other softwares and/or program.
In the door-locking system shown in Fig. 1, user interface 1003 is charged etc. available for user by USB charger.
And processor 1001 can be used for calling the door lock charging procedure stored in memory 1005, and perform following operate:
It is whether small according to the electricity of the detection command detection door lock battery after detection instruction of detection electricity is detected
In or equal to default electricity;
If the electricity is less than or equal to the default electricity, detection carries the short distance wireless communication technology NFC work(
Can mobile device and the door lock distance whether within a preset range, wherein, the door lock is provided with NFC reception antennas;
If the distance of the mobile device and the door lock is within a preset range, passes through the NFC reception antennas and receive
The RF energy of the mobile device, and charged by the RF energy to the door lock.
Further, if the distance of the mobile device and the door lock within a preset range, passes through the NFC
Reception antenna receives the RF energy of the mobile device, and is wrapped by the RF energy to the step of door lock charging
Include:
If the distance of the mobile device and the door lock is within a preset range, passes through the NFC reception antennas and receive
The RF energy of the mobile device;
The RF energy is lifted, the RF energy after lifting is sent to by the voltage-stablizer of the door lock described
The power circuit of door lock, to be charged to the door lock.
Further, the lifting RF energy, passes through the steady of the door lock by the RF energy after lifting
Depressor is sent to the power circuit of the door lock, to include the step of charging to the door lock:
Charge pump by the RF energy by the door lock, with the RF energy after getting a promotion;
The RF energy after lifting is sent to the voltage-stablizer of the door lock, to give the door by the voltage-stablizer
The power circuit of lock is powered, to be charged to the door lock.
Further, if the electricity is less than or equal to the default electricity, detection carries the shifting of NFC function
The distance of dynamic equipment and the door lock whether within a preset range the step of include:
If the electricity is less than or equal to the default electricity, prompt message is exported, to prompt user to carry NFC
The mobile device of function is close to the door lock;
Whether within a preset range to detect the distance between the mobile device and the door lock.
Further, if the distance of the mobile device and the door lock within a preset range, passes through the NFC
Reception antenna receives the RF energy of the mobile device, and the step of charged by the RF energy to the door lock it
Afterwards, processor 1001 can be also used for calling the door lock charging procedure stored in memory 1005, and perform following steps:
Detect whether in the presence of contactless card corresponding with the door lock in the pre-determined distance of the NFC reception antennas;
If the contactless card be present in the pre-determined distance of the NFC reception antennas, the data of the contactless card are read,
The door lock is opened according to the data read.
Further, if described have the contactless card in the pre-determined distance of the NFC reception antennas, described in reading
The data of contactless card, included according to the step of data opening door lock read:
If the contactless card be present in the pre-determined distance of the NFC reception antennas, induced-current is produced;
The voltage according to corresponding to producing the sensor circuit;
The data of the contactless card are read by the voltage, the door lock is opened according to the data read.
Further, the data that the contactless card is read by the voltage, institute is opened according to the data read
The step of stating door lock includes:
The voltage is sent to the microprocessor of the door lock, for the microprocessor according to the voltage with it is described
The NFC Card Reader front-end circuits of door lock are communicated, and receive the number for the contactless card that the NFC Card Readers front-end circuit is read
According to according to the data opening door lock read.
Further, it is described after the detection instruction of detection electricity is detected, according to the detection command detection door lock electricity
After the step of whether electricity in pond is less than or equal to default electricity, processor 1001 can be also used for calling and be deposited in memory
The door lock charging procedure of storage, and perform following steps:
If the electricity of the door lock battery is more than the default electricity, detect whether sense corresponding with the door lock be present
It should be stuck in the pre-determined distance of the NFC reception antennas;
If the contactless card be present in the pre-determined distance of the NFC reception antennas, the data of the contactless card are read,
The door lock is opened according to the data read.
Reference picture 2, Fig. 2 are a kind of structural representation of door-locking system in the embodiment of the present invention.The door-locking system includes
NFC (Near Field Communication, near field communication (NFC)) reception antenna, antenna-matching circuit, power supply electricity
Road, voltage-stablizer, energy lift module, first switch, second switch, NFC Energy extractions module and battery;Wherein, NFC receives day
Line is connected with antenna-matching circuit, and antenna-matching circuit is connected by first switch (switch 1) with NFC Energy extraction modules, NFC
Energy extraction module is connected with energy lift module, and energy lift module is connected with voltage-stablizer, and voltage-stablizer (is opened by second switch
2) pass is connected with power circuit, power circuit is connected with battery.
NFC reception antennas are used for the RF energy for receiving the mobile device for carrying NFC function, and pass through connected antenna
RF energy is sent to NFC Energy extraction modules by match circuit, and the first switch being connected with antenna-matching circuit;
Received institute's RF energy is sent to energy lift module by NFC Energy extractions module;
Energy lift module is used to lift the RF energy received, and will be electric corresponding to the RF energy after lifting
Voltage-stablizer is given in pressure;
Voltage-stablizer is used for the stable voltage received, and voltage is sent into power circuit by second switch, with logical
Power circuit is crossed to charge the battery.
Wherein, antenna-matching circuit is used to match NFC reception antennas, specifically, passes through impedance measurement NFC reception antennas
Internal resistance, capacitive reactance and the phase deviation of matching capacitance are measured by Network Analyzer, adjust the electric capacity of NFC reception antennas so that NFC
The internal resistance of reception antenna is consistent with the impedance of antenna-matching circuit.
NFC reception antennas are operated in 13.56MHz (Mega Hertz, megahertz) frequency range, and the data of NFC reception antennas pass
Defeated speed can be 106kbps (bit rate), 212kbps or 424kbps, and it recognizes reading distance in most applications, no more than 10
Centimetre.
Switch 1 and switch 2 are DPST (Double-Pole Single Throw double-pole single-throw (D.P.S.T.)s) linked switches, for connecting
With disconnection NFC Energy extraction modules.
NFC Energy extractions module is used for the RF energy for extracting the mobile device for carrying NFC function.In the embodiment of the present invention
In, the structure of the MAC layer by changing NFC, and optimized in radio frequency, antenna, low-power consumption, zero energy configuration etc., to increase
The receiving power of big NFC Energy extraction modules.Specifically, optimized by Low-power Technology, antenna matching technique etc..By
Experiment can obtain, and the receiving power of NFC Energy extraction modules can increase to more than 60mW.
Energy lift module is used to lift the RF energy that NFC Energy extraction modules are extracted.In embodiments of the present invention,
By switched capacitor voltage changer (being also charge pump), the RF energy that institute NFC Energy extraction modules are extracted is in original
30%-50% is lifted on the basis of having.
Voltage-stablizer is used for the voltage that is exported after stable energy hoisting module lifting RF energy, and by the voltage after stabilization
Power circuit is supplied to, to ensure that power circuit can export electricity.
Power circuit is a kind of LDO (low dropout regulator, low pressure difference linear voltage regulator), for being supplied to
Power supply needed for each circuit and the module work of door lock.Further, door-locking system also includes crystal oscillating circuit, and crystal oscillating circuit is used for
The crystal oscillation signal needed for work is provided to NFC Card Readers front-end circuit.In embodiments of the present invention, crystal oscillating circuit and power circuit category
In a part for door lock near field radio frequency receiving module.Wherein, near field radio frequency receiving module includes NFC reception antennas, antenna match
Circuit, wave filter, NFC Card Readers front-end circuit, microprocessor, antenna sensitivity detection circuit, rectifying and wave-filtering and voltage subtraction electricity
Road, crystal oscillating circuit and power circuit.
Battery is by more piece dry cell batteries into for being powered to door lock.
Further, door-locking system also includes rectifying and wave-filtering and voltage extraction circuit, MCU (Microcontroller
Unit, microprocessor), NFC Card Readers front-end circuit, EMC (Electro Magnetic Compatibility, Electro Magnetic Compatibility)
Wave filter, antenna sensitivity detection circuit.Rectifying and wave-filtering and voltage extraction circuit, the antenna sensitivity being connected with microprocessor are visited
Slowdown monitoring circuit, EMC wave filters are connected with antenna-matching circuit respectively;Microprocessor, antenna sensitivity detection circuit, EMC wave filters
It is connected respectively with NFC Card Reader front-end circuits.
Rectifying and wave-filtering and voltage extraction circuit are used to carry out rectification to induced-current caused by coil coupling and extract voltage,
The voltage extracted is sent to microprocessor.Specifically, diode can be used to carry out halfwave rectifier.
Microprocessor is used to produce response to contactless card according to the size of the voltage received, opens door lock.
NFC Card Reader front-end circuits are applied in 13.56MHz contactless communications in high integration read-write card family chip
A member, support ISO (International Organization for Standardization, International standardization group
Knit)/IEC (International Electrotechnical Commission, International Electrotechnical Commission) 14443 TypeA
With MIFARE communication protocols, be a low-voltage, low cost, small volume contactless read-write chip.Support MIFARE and more
The contactless communication of high speed, bidirectional data transfers speed are up to 828kbit/s.
NFC Card Reader front-end circuit functional characteristics are as follows:
1. the modulation-demodulation circuit of high integration;
2. support TypeA the and MIFARE&reg communication protocols of ISO/IEC 14443;
3. reaching 100mm reading/writing distance, the size of reading/writing distance depends on size and the modulation of antenna;
4. MF1xxS20, MF1xxS70 and MF1xxS50 read-write is supported to encrypt;
5. ISO 14443A are supported to be up to the communication of 848kbit/s transmission rates;
6. the HPI supported:Up to 10Mbit/s SPI (Serial Peripheral Interface, serially
Peripheral Interface) interface;
7. possess 3 kinds of hardware power down, software power down and transmitter power down energy-saving modes, first two pattern duplicate in
MFRC500 and CLRC400, its distinctive " transmitter power down " can then close inside antenna driver, that is, close RF fields;
8. built-in temperature sensor, to be automatically stopped RF transmittings when chip temperature is too high;
9. being powered using separate multi-group power, to avoid interfering for intermodule, the stability of work is improved;
10. possess CRC (Cyclic Redundancy Check, CRC) and parity function, at CRC associations
16 bit length CRC evaluators of reason device are fixed as:X16+x12+x5+1, meet ISO/1EC14443 and CCTITT agreements.
NFC non-contact reader-writers are integrated with NFC Card Reader front-end circuits, based on the NFC non-contact reader-writers, are passed through
Inductance RF (Radio Frequency Identification, less radio-frequency) couplings provide power to be sensed corresponding to door lock
Card.Therefore, contactless card is without self-powered.
Its caused signal is inputted to NFC Card Readers front-end circuit to be used to adjust by antenna sensitivity detection circuit reads sense
Should card data sensitivity, specifically, reading contactless card is adjusted by adjusting the voltage of NFC Card Reader front-end circuit input pins
The sensitivity of data.
Contactless card is the NFC label badge that user carries, and the door lock is opened for being swiped the card in door lock.Wherein, NFC is received
The coil of antenna is arranged on door lock.Contactless card can be that IC (integrated circuit, integrated circuit) blocks, or TM
(Touch Memory) card etc..
EMC wave filters are used to filter out electromagnetic interference signal, specifically, can filter out electricity by 13.56MHz bandpass filtering
Magnetic disturbance signal.It is understood that in other embodiments, interference can also be filtered out by the bandpass filtering of other frequencies
Signal, it will not be repeated here.
Based on above-mentioned structure, each embodiment of proposition door lock charging method.
Reference picture 3, Fig. 3 are the schematic flow sheet of door lock charging method first embodiment of the present invention.
In the present embodiment, door lock includes door-locking system.The embodiments of the invention provide the embodiment of door lock charging method,
, can be with different from herein it should be noted that, although show logical order in flow charts, but in some cases
Order performs shown or described step.
The door lock charging method includes:
Step S10, after the detection instruction of detection electricity is detected, according to the electricity of the detection command detection door lock battery
Whether amount is less than or equal to default electricity.
After the detection instruction of detection electricity is detected, according to the electricity of detection command detection door lock battery, detected
As a result, whether the electricity for judging door lock battery according to testing result is less than or equal to default electricity.Wherein, detecting instruction can be by
Door-locking system in door lock triggers automatically, specifically, can be triggered in real time by door-locking system or clocked flip.If detection instruction by
Door-locking system clocked flip, it may be configured as at interval of 200ms triggerings once, or it is inferior at interval of 280ms triggerings one.Default electricity
Amount can be set as the case may be, default electricity can be such as arranged to the 3% of total electricity, the 5% of total electricity, or be arranged to 0.
It is understood that when default electricity is arranged to 0, i.e., whether exhausted according to the electricity of detection command detection door lock battery.
Step S20, if the electricity is less than or equal to the default electricity, detection carries wireless near field communication skill
The distance of the mobile device of art NFC function and the door lock whether within a preset range, wherein, the door lock is provided with NFC and connect
Receive antenna.
If detecting, the electricity of door lock battery is less than or equal to default electricity, and the movement that detection carries NFC function is set
It is standby with the distance of door lock whether within a preset range.In embodiments of the present invention, NFC reception antennas are provided with door lock.It is mobile
Equipment is the terminal of specific NFC wireless charging functions, such as carries mobile phone, the iPad with NFC function of NFC function.Default model
Enclose to be set as the case may be, and such as in the present embodiment, preset range may be configured as 3cm, 2cm or 1.5cm etc..Can be with
Understand, when the distance of mobile device and door lock is nearer, the NFC reception antennas in door lock more readily receive mobile device
RF energy.
Step S30, if the distance of the mobile device and the door lock within a preset range, is received by the NFC
Antenna receives the RF energy of the mobile device, and is charged by the RF energy to the door lock.
If the distance of mobile device and door lock is within a preset range, penetrating for mobile device is received by NFC reception antennas
Frequency energy, and pass through received RF energy and charged to the battery of door lock, to maintain the electricity of door lock battery.Further,
If the distance of mobile device and door lock, continues to detect not within a preset range mobile device and door lock mobile device and door lock
Within a preset range whether distance.
Further, reference picture 4, step S30 include:
Step S31, if the distance of the mobile device and the door lock within a preset range, is received by the NFC
Antenna receives the RF energy of the mobile device.
Step S32, the RF energy is lifted, the RF energy after lifting is sent out by the voltage-stablizer of the door lock
The power circuit of the door lock is given, to be charged to the door lock.
Specifically, set if the distance of mobile device and door lock receives movement within a preset range, by NFC reception antennas
Standby RF energy.NFC Energy extractions module is penetrated by what antenna-matching circuit and the extraction NFC reception antennas of switch 1 were received
Frequency energy, and the RF energy extracted is sent to energy lift module, by the energy lift module raises RF energy, obtain
RF energy after to lifting.RF energy after lifting energy is sent to voltage-stablizer by energy lift module, is led to by voltage-stablizer
The power circuit that RF energy is sent to door lock by switch 2 is crossed, to be charged to the battery of door lock.
Further, step S32 includes:
Step a, the charge pump by the RF energy by the door lock, with the RF energy after getting a promotion.
Step b, the RF energy after lifting is sent to the voltage-stablizer of the door lock, to be given by the voltage-stablizer
The power circuit of the door lock is powered, to be charged to the door lock.
Further, when energy lift module receives RF energy, by RF energy by the charge pump in door lock, with
Get a promotion the RF energy after energy.Specifically, energy can will be received from NFC reception antennas to carry on the basis of original
Rise 30%~50% RF energy.When the RF energy after the energy that gets a promotion, by the RF energy transmission gate after lifting
In the voltage-stablizer of lock, it is powered by power circuit of the voltage-stablizer to door lock, the battery to door lock charges.
The present embodiment is by the way that after the detection for detecting detection electricity instructs, command detection door lock battery is detected according to described
Electricity whether be less than or equal to default electricity;If the electricity is less than or equal to the default electricity, detection carries
The distance of the mobile device of the short distance wireless communication technology NFC function and the door lock whether within a preset range, wherein, it is described
Door lock is provided with NFC reception antennas;If the distance of the mobile device and the door lock is within a preset range, by described
NFC reception antennas receive the RF energy of the mobile device, and are charged by the RF energy to the door lock.Realize
When the battery electric quantity deficiency of intelligent door lock, charged, avoided due to intelligence to intelligent door lock by the mobile device that user carries
Door lock battery electric quantity deficiency, so as to which the situation for causing user not open door occurs.
Further, door lock charging method second embodiment of the present invention is proposed.
The difference of the door lock charging method second embodiment and the door lock charging method first embodiment is, reference
Fig. 5, step S20 include:
Step S21, if the electricity is less than or equal to the default electricity, prompt message is exported, to prompt user
The mobile device of NFC function will be carried close to the door lock.
Step S22, whether within a preset range to detect the distance between the mobile device and the door lock.
When door lock electricity is less than or equal to default electricity, prompt message is exported, prompts user's door lock battery electric quantity not
Foot, please by the mobile device of carrying NFC function close to door lock, and whether the distance between mobile device and door lock is detected default
In the range of.Wherein, prompt message can be information of voice prompt, indicator lamp prompt message etc..When door lock has display screen, letter is prompted
Breath can be text prompt information.If prompt message can be that " door lock battery electric quantity deficiency, the movement for carrying NFC function please be used to set
Standby close door lock, to charge the battery " etc..
The present embodiment is by when the electricity of door lock is less than or equal to default electricity, exporting prompt message, prompting user
Door lock battery electric quantity deficiency, door lock battery is given to charge.Avoid when door lock battery electric quantity deficiency, user does not open door, again
Do not know the reason for not opening door, occur situations such as so as to cause user to force open the door.
Further, door lock charging method 3rd embodiment of the present invention is proposed.
The difference of the door lock charging method 3rd embodiment and the door lock charging method first embodiment is, reference
Fig. 6, door lock charging method also include:
Step S40, detect whether pre-determined distance of the contactless card corresponding with the door lock in the NFC reception antennas be present
It is interior.
After door lock charges, detect whether in the presence of contactless card corresponding with door lock in the pre-determined distance of NFC reception antennas.
Wherein, pre-determined distance can be set as the case may be, as long as ensureing that NFC reception antennas can receive sense in pre-determined distance
Sent signal should be blocked, specifically will not be repeated here.
Step S50, if the contactless card be present in the pre-determined distance of the NFC reception antennas, read the sensing
The data of card, the door lock is opened according to the data read.
If contactless card be present in the pre-determined distance of NFC reception antennas, the data of contactless card are read, according to what is read
Contactless card data open door lock.Further, if contactless card is not in the pre-determined distance of NFC reception antennas, continuing detection is
It is no contactless card corresponding with door lock to be present in the pre-determined distance of NFC reception antennas.
Further, reference picture 7, step S50 include:
Step S51, if the contactless card be present in the pre-determined distance of the NFC reception antennas, produce induced-current.
Step S52, the voltage according to corresponding to producing the sensor circuit.
Step S53, the data of the contactless card are read by the voltage, the door is opened according to the data read
Lock.
Further, if contactless card be present in the pre-determined distance of NFC reception antennas, NFC receiving antenna coils are passed through
Electromagnetic induction effect produce induced-current, and by caused induced-current by halfwave rectifier single channel and bleeder circuit,
I.e. by rectifying and wave-filtering and voltage extraction circuit, voltage corresponding with the induced-current is produced, contactless card is read by the voltage
Data, and open door lock according to the data that are read.
Further, step S53 includes:
Step c, the voltage is sent to the microprocessor of the door lock, so that the microprocessor is according to the voltage
Communicated with the NFC Card Reader front-end circuits of the door lock, receive the contactless card that the NFC Card Readers front-end circuit is read
Data, open the door lock according to the data that are read.
Further, voltage is sent to the microprocessor of door lock.When microprocessor receives the voltage, according to the electricity
Press the NFC Card Reader front-end circuits with door lock to be communicated, receive the data for the contactless card that NFC Card Reader front-end circuits are read, root
Door lock is opened according to the data read.
Specifically, when contactless card be present in the pre-determined distance of NFC reception antennas, NFC reception antennas are receiving sensing
During the signal of card, received signal is divided into three tunnels, respectively first via signal, second road signal and the 3rd road signal.Its
In, first via signal is extracted electric corresponding to first via signal by antenna-matching circuit and rectifying and wave-filtering and voltage extraction circuit
Press signal, the voltage signal extracted is sent to the A/D of microprocessor (analogue-to-digital conversion,
Analog-to-digital conversion) input port.After microprocessor detects the voltage signal, the communication with NFC Card Reader front-end circuits is established.The
Two road signals by antenna-matching circuit, EMC wave filters, by second road signal send to NFC Card Readers front-end circuit carry out noise reduction,
Filtering and demodulation etc. reason, and the second road signal after processing is sent to microprocessor.When microprocessor receives the second tunnel
After signal, noise reduction, the processing such as decoding and coding, with the second road signal after being handled are carried out to second road signal.3rd tunnel
3rd road signal is sent to NFC Card Readers front-end circuit and carried out by signal by antenna-matching circuit, antenna sensitivity detection circuit
Noise reduction, filtering and demodulation etc. are managed, and obtain data corresponding to the 3rd road signal, and are sent the data in microprocessor, with
For microprocessor door lock is opened according to the data.Further, the reading of NFC Card Reader front-end circuits can be set by the 3rd road signal
Card sensitivity.
The present embodiment is by after being charged for door lock battery, when contactless card distance NFC reception antenna pre-determined distances, reading
The data of contactless card, to open door lock, realize intelligent unlocking.
Further, door lock charging method fourth embodiment of the present invention is proposed.
The difference of the door lock charging method fourth embodiment and the door lock charging method first embodiment is, reference
Fig. 5, door lock charging method also include:
Step S60, if the electricity of the door lock battery is more than the default electricity, detect whether exist and the door lock
Corresponding contactless card is in the pre-determined distance of the NFC reception antennas.
Step S70, if the contactless card be present in the pre-determined distance of the NFC reception antennas, read the sensing
The data of card, the door lock is opened according to the data read.
If the electricity of door lock battery is more than default electricity, detect whether to have contactless card corresponding with door lock in NFC
In the pre-determined distance of reception antenna.If contactless card be present in the pre-determined distance of NFC reception antennas, the number of contactless card is read
According to according to the data opening door lock read.Pre-determined distance of the contactless card in NFC reception antennas be present it is understood that working as
When interior, contactless card data are read, the mistake described by detailed process and 3rd embodiment for opening door lock according to the data read
Journey is consistent, will not be repeated here.
The present embodiment is by the way that when door lock battery electric quantity is more than default electricity, door is opened according to the contactless card data read
Lock, to realize intelligent unlocking.
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 charging procedure, the door lock charging procedure realizes following steps when being executed by processor:
It is whether small according to the electricity of the detection command detection door lock battery after detection instruction of detection electricity is detected
In or equal to default electricity;
If the electricity is less than or equal to the default electricity, detection carries the short distance wireless communication technology NFC work(
Can mobile device and the door lock distance whether within a preset range, wherein, the door lock is provided with NFC reception antennas;
If the distance of the mobile device and the door lock is within a preset range, passes through the NFC reception antennas and receive
The RF energy of the mobile device, and charged by the RF energy to the door lock.
Further, if the distance of the mobile device and the door lock within a preset range, passes through the NFC
Reception antenna receives the RF energy of the mobile device, and is wrapped by the RF energy to the step of door lock charging
Include:
If the distance of the mobile device and the door lock is within a preset range, passes through the NFC reception antennas and receive
The RF energy of the mobile device;
The RF energy is lifted, the RF energy after lifting is sent to by the voltage-stablizer of the door lock described
The power circuit of door lock, to be charged to the door lock.
Further, the lifting RF energy, passes through the steady of the door lock by the RF energy after lifting
Depressor is sent to the power circuit of the door lock, to include the step of charging to the door lock:
Charge pump by the RF energy by the door lock, with the RF energy after getting a promotion;
The RF energy after lifting is sent to the voltage-stablizer of the door lock, to give the door by the voltage-stablizer
The power circuit of lock is powered, to be charged to the door lock.
Further, if the electricity is less than or equal to the default electricity, detection carries the shifting of NFC function
The distance of dynamic equipment and the door lock whether within a preset range the step of include:
If the electricity is less than or equal to the default electricity, prompt message is exported, to prompt user to carry NFC
The mobile device of function is close to the door lock;
Whether within a preset range to detect the distance between the mobile device and the door lock.
Further, if the distance of the mobile device and the door lock within a preset range, passes through the NFC
Reception antenna receives the RF energy of the mobile device, and the step of charged by the RF energy to the door lock it
Afterwards, following steps are realized when the door lock charging procedure is executed by processor:
Detect whether in the presence of contactless card corresponding with the door lock in the pre-determined distance of the NFC reception antennas;
If the contactless card be present in the pre-determined distance of the NFC reception antennas, the data of the contactless card are read,
The door lock is opened according to the data read.
Further, if described have the contactless card in the pre-determined distance of the NFC reception antennas, described in reading
The data of contactless card, included according to the step of data opening door lock read:
If the contactless card be present in the pre-determined distance of the NFC reception antennas, induced-current is produced;
The voltage according to corresponding to producing the sensor circuit;
The data of the contactless card are read by the voltage, the door lock is opened according to the data read.
Further, the data that the contactless card is read by the voltage, institute is opened according to the data read
The step of stating door lock includes:
The voltage is sent to the microprocessor of the door lock, for the microprocessor according to the voltage with it is described
The NFC Card Reader front-end circuits of door lock are communicated, and receive the number for the contactless card that the NFC Card Readers front-end circuit is read
According to according to the data opening door lock read.
Further, it is described after the detection instruction of detection electricity is detected, according to the detection command detection door lock electricity
After the step of whether electricity in pond is less than or equal to default electricity, the door lock charging procedure is realized when being executed by processor
Following steps:
If the electricity of the door lock battery is more than the default electricity, detect whether sense corresponding with the door lock be present
It should be stuck in the pre-determined distance of the NFC reception antennas;
If the contactless card be present in the pre-determined distance of the NFC reception antennas, the data of the contactless card are read,
The door lock is opened according to the data read.
Computer-readable recording medium embodiment of the present invention and the basic phase of above-mentioned each embodiment of door lock charging 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.