Background technology
Existing locking system, the following 4 kinds of modes of general employing: 1, traditional keys, namely various mechanical lock, service time is the longest, uses also the most extensive.2, various coded lock, comprises mechanical cipher and electronic keyboard password, has certain usable range.3, card or electron key, as various gate inhibition's card and hotel's card key and various automobile remote control lock, also occupies certain market share.4, Mobile phone control lock closed system, as the mode such as Quick Response Code, bluetooth, NFC, WI-FI, RFID.Various mobile phone lock system all will install corresponding APP software on mobile phone, achieves the object with mobile phone open door lock within the specific limits.Its benefit is with now day by day universal mobile phone, is used as the pass that people open the door, and provides a kind of door opening method of convenient, fast safety again.
In above-mentioned locking system, the common shortcoming of traditional keys, card and electron key is 1 lock, 1 key, when having multiple lock, need to be with bunch of keys, and after losing, bitting bothers.Coded lock solves the problem of key chain, but has a problem of facing a difficult choice, good operation easy to remember that password is short, but dangerous, and password has been grown, complicated, and input trouble, also easily forgets.
Existing mobile phone controls block sytem, and mobile phone is by bluetooth, NFC, RFID mode and block sytem communication, and the common issue of existence is high to the requirement of mobile phone, and hardware configuration has particular/special requirement, poor compatibility.
Bluetooth of mobile phone door lock requires BlueTooth4.0, android more than edition 4 .3, and nonetheless, still have a lot of mobile phone all can not drive operation, reason is that producer has carried out amendment by a relatively large margin to Android bottom.Bluetooth enabling response speed is slightly slow in addition, and more than 1 second, only a few responded bluetooth read head faster, and price is higher, also higher to the requirement of mobile phone configuration, and when open bluetooth more than 10 people and queue up and open the door together, can interfere with each other, operation makes mistakes.
NFC, RFID are the apolegamy functions of mobile phone, have the half of mobile phone less than common mobile phone of these functions.
Open the door with Quick Response Code or Wi-Fi and solve the problem of handset compatibility technically.But the problem of Quick Response Code operates more complicated, and Consumer's Experience sense is poor: mobile phone needs bright screen, mobile phone is unlocked (if being provided with screen locking), open the APP function pages that Quick Response Code is relevant, then mobile phone two-dimension code is aimed at Quick Response Code identification equipment device, can open the door.The another one problem that mobile phone two-dimension code opens the door is if there is people to have taken pictures this Quick Response Code, also can open gate inhibition, and entrance guard management reduces.If the unified timing in backstage upgrades Quick Response Code, need again user to surf the Net in real time and download new code, feasibility is poor.
The problem of being opened the door by mobile phone Wi-Fi is: 1, Wi-Fi opens the door distant, easily opens by mistake, time especially multiple passage one is arranged, need the door selecting specifically will open on Mobile phone screen, be shake enabling, this door of looking on the bright side of things, another door of result opens.Wi-Fi is easily broken in addition, and security is low, and meanwhile, gate inhibition's end needs to configure permanent Wi-Fi.
The problems such as existing mobile phone controls block sytem all its defect, cannot overcome handset compatibility poor, the poor or inconvenient operation of security, can not promote on a large scale.
Summary of the invention
The object of the present invention is to provide a kind of method controlling locking based on mobile device audio coding, be intended to solve above-mentioned technical matters.
The present invention is achieved in that a kind of method controlling locking based on mobile device audio coding, and described method is based on audio authentication device and the mobile device with recording and sounding, and it comprises the following steps:
A, audio authentication device send the sound wave audio coding signal of setpoint frequency in setting range;
B, mobile device entry range, receive audio coding signal, carries out audio frequency demodulation to signal;
The identifiable design data message that C, basis demodulate, mobile device sends audio frequency handshake;
D, audio authentication device receive handshake and answer shakes hands successfully, please send out authentication code;
E, mobile device are modulated and are sent the audio coding authentication code of encryption;
F, audio authentication device receive authentication code and carry out the deciphering of solution harmonic algorithm to it;
G, judge decipher identity identification information whether be authorized user, be export unlocking signal.
Further technical scheme of the present invention is: in described steps A, the setpoint frequency of sound wave audio coding signal is 20Hz-20KHz.
Further technical scheme of the present invention is: the setting range in described steps A and B is spherical for center of circle radius is 20cm with audio authentication device.
Further technical scheme of the present invention is: the identity identification information in described step F comprises mobile device numbering, mobile device MAC Address, user identity card number, user mobile phone number and user reserve in set information one or more or partly or entirely.
Further technical scheme of the present invention is: what described method sound intermediate frequency communication adopted is continue to monitor trigger mode.
Further technical scheme of the present invention is: described audio authentication device comprises audio frequency receiver module, modulation /demodulation module, information authentication module, microprocessor, loudspeaker and communication module, the output terminal of described audio frequency receiver module connects the input end of described modulation /demodulation module, information authentication module two-way communication described in described modulation /demodulation model calling, described information authentication module connects described microprocessor two-way communication, described microprocessor connects described communication module two-way communication, and the output terminal of described modulation /demodulation module connects the input end of described loudspeaker.
Further technical scheme of the present invention is: described modulation /demodulation module comprises modulating unit and demodulating unit.
Further technical scheme of the present invention is: what described audio frequency receiver module adopted is microphone or acoustic pickup.
Further technical scheme of the present invention is: what described communication module adopted is wireless telecommunications or wire communication.
Further technical scheme of the present invention is: described wireless telecommunications adopt 3 4G wireless telecommunications or WI-FI communication or voice communication.
The invention has the beneficial effects as follows: by the magnetic induction chip detection mobile phone approach lock Authentication devices that mobile phone is total, by the Mike of mobile device pick up short distance audio frequency handshake that locking Authentication devices sends trigger both communication.As long as there is the audio frequency running correspondence to trigger and can complete on the mobile apparatus, do not need the application on mobile device bright screen or operation interface.Therefore operate simpler, Consumer's Experience is better.If user mobile phone is lost, user also nullifies the mandate mobile phone lost by backstage management procedure, and again authorizes new cell-phone to open the authority of locking system.
Embodiment
Fig. 1-3 shows a kind of method controlling locking based on mobile device audio coding provided by the invention, and details are as follows for it:
As shown in Figure 2, install voice communication client on the mobile apparatus, wherein voice communication client is opened, and resident mobile device internal memory, makes it remain the state of unlatching always, continues the audio coding handshake of preset monitored form in the on state.
Mobile device is opened client and can be judged whether to receive handshake, in this way, then demodulates the audio coding of preset format, and send audio frequency handshake, wait for that audio frequency demo plant responds response, as no, then continue the audio coding handshake of preset monitored form.
After sending audio frequency handshake, mobile device judges whether the response receiving audio authentication device, in this way, then to modulate and the audio coding identity identification information sending preset format carries out authentication to audio authentication device, as no, then continue the audio coding handshake of preset monitored form.Wherein audio-frequency information comprises mobile device numbering, mobile device MAC Address, user identity card number, user mobile phone number and user reserve set information, and wherein, the authorization information of transmission comprises above-mentioned one or more or part or all of identity identification information.Part wherein refers to that the part and the another kind of information that intercept certain information combines with combination partly or with the combination of another kind of information or each part intercepted in much information.
As shown in Figure 3, automatically audio frequency control industry control program is run in audio authentication device, the audio coding handshake that small routine continues to send preset format is gone out, its handshake be with audio authentication device for carrying out continuous print transmitting in the center of circle radius spherical setting range that is 20cm, the handshake launched is sound wave audio coding signal, and its setpoint frequency is 20Hz-20KHz.
In the process of lasting transmission signal, receive return information time audio authentication device can constantly judge, in this way, then answering shakes hands successfully, and request transmission identity identification information carries out authentication, as no, then continue the audio coding handshake continuing to send preset format.
Audio authentication device receives the identity identification information that mobile device sends, and carries out demodulation, be demodulated into the authentication code of preset format and carry out algorithm deciphering to it identity identification information.
The authentication code that audio authentication device decrypts algorithm whether authority checking, in this way, then carry out unlock instruction mandate, and export unlocking signal to unlocking apparatus, record authentication code and uncaging time backup simultaneously, and it is numbered, wherein numbering with time shaft is order, as no, then export unauthorized and unblank the particular audio signal of sound to mobile device, the identity identification information of reception is sent to by network and authorizes Authentication server to carry out not backed up by authentication information and the number of times occurred in statistics certain hour is numbered to it.What voice communication adopted is continue to monitor trigger mode.
Described audio authentication device comprises audio frequency receiver module, modulation /demodulation module, information authentication module, microprocessor, loudspeaker and communication module, the output terminal of described audio frequency receiver module connects the input end of described modulation /demodulation module, information authentication module two-way communication described in described modulation /demodulation model calling, described information authentication module connects described microprocessor two-way communication, described microprocessor connects described communication module two-way communication, and the output terminal of described modulation /demodulation module connects the input end of described loudspeaker.
Described modulation /demodulation module comprises modulating unit and demodulating unit.
Modulating unit, for carrying out algorithm for encryption process to the information that will export, have employed multiple safety encipher mode in algorithm for encryption.
Demodulating unit, for carrying out algorithm decryption processing to the enciphered message received, is reduced into original identity identification information data by its encrypt file, for follow-up identity verification information.
What described audio frequency receiver module adopted is microphone or acoustic pickup.
What described communication module adopted is wireless telecommunications or wire communication.
Described wireless telecommunications adopt 3 4G wireless telecommunications or WI-FI communication or voice communication.
Audio authentication device sends the sound wave audio coding signal of setpoint frequency in setting range, audio authentication device is arranged on gate, and the manager of unblanking of the communication module and gate that arrange audio authentication device communicates to connect, make to unblank manager received communication information and can the order of executive communication information, the radio communication of the audio authentication device set or wire communication are set and is connected with the server of back-stage management, and can guarantee that communication is normal, correction audio authentication device connected after can normally use, first initialization startup is carried out to audio authentication device, device after startup enters duty, with from as the center of circle, radius be 20cm sphere in send frequency be 20-20KHz sound wave audio coding signal supply mobile device receive start docking procedure.
Enter in setting range at mobile device and receive audio coding signal and voice modulation is carried out to signal; When user enters in the scope of audio coding signal covering with the mobile device installing Intelligent unlocking APP, mobile device audio reception coded signal, mobile device utilizes the demodulation of APP rule to carry out demodulation to the audio coding signal received.
Data message mobile device according to demodulating sends audio frequency handshake; At the data message that mobile device demodulates, sound wave audio frequency handshake can be sent according to data message mobile device, also can send follow-up certificate data information sound wave stream simultaneously.
Audio authentication device receives handshake and modulates signal, judges whether receive handshake can carry out modulation /demodulation, in this way, then sets up communication and connect, as no, then delete the signal of reception.
Audio authentication device receives the audio coding information of the authentication that mobile device sends and carries out the deciphering of solution harmonic algorithm to it.
Judge whether the identity identification information deciphered is authorized user, in this way, then confirm that identity is legal, audio authentication device sends unlocking signal and unblanks to door-lock controller, as no, then send unauthorized prompt tone and the identity identification information of reception is sent to by network and authorize Authentication server to carry out not backed up by authentication information and the number of times occurred in statistics certain hour is numbered to it.
Mobile device has Mike and loudspeaker, and its principles of modulation and demodulation is substantially identical, seldom has the difference of version.(exploitation is needed to be applicable to the version of platform of multiple operating systems by mobile phone A PP, such as apple iOS and Androil and Microsoft Windows etc.), between the audio authentication device driving mobile phone and door lock end to be equipped with, transmit and checking audio coding signal, solve the compatibility issue that existing mobile phone controls door lock.Both communications adopt mobile phone to commonly use sound wave frequency range: 20Hz-20KHz.
Mobile device comprises smart mobile phone, panel computer, Wearable computer etc.
In order to improve security, the encryption of certain grade can be carried out to the communication of mobile phone and audio authentication device.Before sending audio coding signal between mobile phone or audio authentication device, be all first encrypted with certain identical algorithm, then through voice modulation, just send out through loudspeaker; Audio authentication device or mobile phone Mike hear the audio coding signal of the special rules sent, after the deciphering of solution harmonic algorithm also identifying information implication, reply to the other side, mobile phone sends authentication information further to audio authentication device, this audio coding signal is through separating harmonic algorithm deciphering, and authority checking is carried out to handset identities identifying information, after confirming that identity is legal, system sends unlocking signal driving gate lock control device and opens the door.
In order to user is easy to use, the present invention can accomplish the mobile phone not puzzled lock of bright screen, and namely open the door close to Authentication devices (as in 20cm), mobile phone becomes Multifunction open badge.This closely voice communication, also improves the security of communication simultaneously, has had the function of NFC concurrently.Certainly, mobile phone bright screen unlocking program, according to running, also has same effect.
This has the little APP of enabling/lock function, goes back accessible site in various multi-functional APP, becomes a bright spot of various mobile phone application.
Authentication information can include but not limited to: cell-phone number, No. SN, mobile phone, mobile phone MAC Address, user identity card number part or all of composition.Preferably not more than 32 bytes, long, affect communication efficiency.
Voice communication of the present invention initiates there are two kinds of patterns:
1, audio authentication device can continue, or when judging there is material object/people close to (such as 50cm) by noncontact proximity transducer, sends audio coding handshake; Resident mobile phone A PP continues to monitor handshake, and when mobile phone enters 20 cm near audio authentication device, the passive response of calling heard by mobile phone, and both sides shake hands beginning communication;
2, audio authentication device continues to monitor non-own handshake, has installed magnet near audio authentication device; Mobile phone drives magnetic induction chip to continue to detect magnetic signal by APP, mobile phone is detecting magnetic signal close to during (within 20cm) audio secure Authentication devices, thus triggering mobile phone A PP sends audio frequency handshake by loudspeaker, the Mike of audio secure Authentication devices receives signal, mobile phone is replied by loudspeaker, after mobile phone Mike confirms response, both sides start communication.
In the present invention, can select to open which kind of communication mode by mobile phone A PP and audio authentication device backstage management procedure, all open in order to reliably two kinds of patterns also can be arranged.
The present invention includes two parts composition: the APP software of mobile phone terminal multioperation platform; Audio authentication device hardware, can be equipped with wired or radio network interface and initiate pattern and safeguard to authorize authentication information list as (3G module) realizes arranging voice communication in long-range backstage management procedure; Be furnished with magnet and non-contact optoelectronic proximity transducer.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.