Disclosure of Invention
The invention provides an intelligent door and an intelligent door control method and system, and the technical scheme provided by the invention can solve the problem that the existing door control system cannot be used for opening the door when no one is at home or a key is not provided.
The invention discloses an intelligent door control method, which comprises the following steps: receiving a wireless connection establishment request sent by an intelligent terminal, and establishing wireless connection with the intelligent terminal; receiving unlocking information sent by an intelligent terminal, and comparing whether the unlocking information and a preset password of the intelligent door accord with unlocking conditions or not, wherein the unlocking information comprises an unlocking password or encrypted information; and if the unlocking condition is met, controlling the door lock of the intelligent door to be opened.
In the above method, the receiving a wireless connection establishment request sent by an intelligent terminal, and establishing a wireless connection with the intelligent terminal includes:
receiving a Bluetooth pairing request sent by an intelligent terminal, and establishing Bluetooth connection with the intelligent terminal according to the Bluetooth pairing request;
or,
receiving a wireless fidelity wifi direct connection request sent by an intelligent terminal, and establishing wifi direct connection with the intelligent terminal according to the wifi direct connection request;
or,
receiving a Near Field Communication (NFC) pairing request sent by an intelligent terminal, and establishing NFC connection with the intelligent terminal according to the NFC pairing request.
In the method, the receiving unlocking information sent by the intelligent terminal, and comparing whether the unlocking information and the preset password of the intelligent door meet the unlocking condition or not includes: receiving an unlocking password sent by an intelligent terminal, and comparing whether the unlocking password is the same as a preset password of the intelligent door or not;
if the unlocking condition is met, controlling the door lock of the intelligent door to be unlocked comprises the following steps: and if the unlocking password is the same as the preset password of the intelligent door, controlling the door lock of the intelligent door to be opened.
In the method, the receiving unlocking information sent by the intelligent terminal, and comparing whether the unlocking information and the preset password of the intelligent door meet the unlocking condition or not includes: receiving encrypted information sent by an intelligent terminal, decrypting the encrypted information to obtain an unlocking password, and comparing whether the unlocking password is the same as a preset password of the intelligent door or not;
if the unlocking condition is met, controlling the door lock of the intelligent door to be opened, and comprising the following steps: and if the unlocking password is the same as the preset password of the intelligent door, controlling the door lock of the intelligent door to be opened.
In the above method, the intelligent terminal includes: smart mobile phone, smart tablet, intelligent wrist-watch and intelligent bracelet.
The invention also discloses an intelligent door, which comprises: the system comprises a storage module, a control module, a wireless communication module and a door lock; the storage module is used for storing a preset password;
the wireless communication module is used for receiving a wireless connection establishment request sent by an intelligent terminal and establishing wireless connection with the intelligent terminal;
the control module is used for receiving unlocking information sent by an intelligent terminal through the wireless communication module, and comparing whether the unlocking information and a preset password in the storage module accord with an unlocking condition or not, wherein the unlocking information comprises an unlocking password or encrypted information; and if the unlocking condition is met, controlling the door lock to be opened.
In the intelligent door, the wireless communication module is a Bluetooth module; the Bluetooth module receives a Bluetooth pairing request sent by an intelligent terminal and establishes Bluetooth connection with the intelligent terminal according to the Bluetooth pairing request;
or,
the wireless communication module is a wireless fidelity wifi module; the wireless fidelity wifi module receives a wireless fidelity wifi direct connection request sent by an intelligent terminal, and establishes wifi direct connection with the intelligent terminal according to the wifi direct connection request;
or,
the wireless communication module is a Near Field Communication (NFC) module; the NFC module receives an NFC pairing request sent by an intelligent terminal, and NFC connection is established with the intelligent terminal according to the NFC pairing request.
In the above intelligent door, the control module is configured to receive an unlocking password sent by the intelligent terminal, compare whether the unlocking password is the same as a preset password in the storage module, and if so, control the door lock to open.
In the intelligent door, the control module is used for receiving encrypted information sent by the intelligent terminal, decrypting the encrypted information to obtain an unlocking password, and comparing whether the unlocking password is the same as a preset password in the storage module; and if the two are the same, controlling the door lock to be opened.
The invention also discloses an intelligent door control system, which comprises: the intelligent door is as described above, and at least one intelligent terminal;
the intelligent terminal is used for sending unlocking information to the intelligent door according to a user instruction after the wireless connection with the intelligent door is established, wherein the unlocking information comprises an unlocking password or encryption information.
In summary, according to the technical scheme provided by the invention, the security password is preset in the intelligent door; receiving a wireless connection establishment request sent by an intelligent terminal, and establishing wireless connection with the intelligent terminal; receiving an unlocking password sent by an intelligent terminal, and comparing whether the unlocking password is the same as the preset safety password or not; and if the two pieces of information are the same, controlling the door lock of the intelligent door to be opened. In the technical scheme provided by the invention, no additional equipment is needed, and only a mobile phone carried by a user is needed to be used as equipment for opening the door, so that the problem that the existing door control system cannot be used for opening the door when no one is at home and no key is provided is solved. Has the advantages of convenience, safety and quickness.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method for controlling an intelligent door according to the present invention, as shown in FIG. 1, the method includes the following steps.
Step 101, receiving a wireless connection establishment request sent by an intelligent terminal, and establishing wireless connection with the intelligent terminal.
102, receiving unlocking information sent by an intelligent terminal, and comparing whether the unlocking information and a preset password of the intelligent door accord with unlocking conditions or not, wherein the unlocking information comprises an unlocking password or encrypted information.
And 103, if the unlocking condition is met, controlling the door lock of the intelligent door to be opened.
Fig. 2 is a flowchart of a method for controlling an intelligent door according to an embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, setting a preset password in the intelligent door.
In step 201, a user inputs a preset password in an input module of the smart door. The intelligent door stores the security password input by the user in the storage module.
Step 202, the intelligent door receives a wireless connection establishment request sent by the intelligent terminal, and establishes wireless connection with the intelligent terminal.
In step 202, the intelligent door may establish a wireless connection with the intelligent terminal through a plurality of wireless connection methods.
In the first embodiment of the invention, the intelligent terminal is connected with the intelligent door through Bluetooth. And the intelligent door receives a Bluetooth pairing request sent by the intelligent terminal and establishes Bluetooth connection with the intelligent terminal according to the Bluetooth pairing request.
In this embodiment, intelligent terminal can realize being connected between intelligent terminal and the intelligent door through current bluetooth to after the bluetooth is paired the connection and is established, intelligent terminal can send the password of unblanking to the intelligent door.
In the second embodiment of the invention, the intelligent terminal is directly connected with the intelligent door through wifi. And the intelligent door receives a wireless fidelity wifi direct connection request sent by the intelligent terminal, and according to the wifi direct connection request and the wifi direct connection established by the intelligent terminal. The wifi direct connection is also called Wi-Fi Point-to-Point connection, so that the wifi device can be directly connected with another wifi device for data transmission in a Point-to-Point manner without passing through a wireless network base station (Access Point).
In this embodiment, the intelligent terminal can realize the wifi direct connection between intelligent terminal and the intelligent door through the existing wifi direct connection protocol to after wifi direct connection is established, the intelligent terminal can send the password of unblanking to the intelligent door.
Or after the intelligent terminal is connected to the wifi local area network where the intelligent door is located, the unlocking password is sent to the intelligent door through the local area network.
In the third embodiment of the present invention, the intelligent terminal is connected to the intelligent door through NFC, and the intelligent door receives an NFC pairing request sent by the intelligent terminal and establishes NFC connection with the intelligent terminal according to the NFC pairing request.
In this embodiment, intelligent terminal can realize being connected between intelligent terminal and the intelligent door through current NFC connection technology, through set up the password of unblanking on intelligent terminal, contacts this intelligent terminal and the NFC module on the intelligent door again and realizes that intelligent terminal sends the password of unblanking to the intelligent door.
In the above-mentioned first, second and third embodiments, the unlocking password may be sent to the smart door through a specific software application installed on the smart terminal.
And step 203, receiving unlocking information sent by the intelligent terminal.
In step 203, the control module in the intelligent door receives unlocking information sent by the intelligent terminal. The unlocking information comprises an unlocking password or encryption information. If the received unlocking information is the unlocking password, the step 205 is performed; if the received unlocking information is encrypted, the process proceeds to step 204.
And step 204, decrypting the received encrypted information to obtain a decrypted unlocking password.
In step 204, when receiving the encrypted unlocking password sent by the intelligent terminal, the control module in the intelligent door decrypts the encrypted information to obtain the unlocking password.
And step 205, comparing whether the unlocking password is the same as the preset password, if so, performing step 206, and if not, performing step 207.
And step 206, controlling the door lock of the intelligent door to be opened.
And step 207, prompting that the unlocking password is wrong and not opening the door.
In the present invention, an intelligent terminal includes: smart mobile phone, smart tablet, intelligent wrist-watch and intelligent bracelet. In the invention, the intelligent terminal can also be other intelligent equipment with a wireless connection function. This is not to be taken as an example.
In the specific embodiment of the invention, taking a smart phone as an example, and combining a specific scene, a user forgets to carry a key and only remembers to obtain an unlocking password for detailed description. The intelligent door of the user is provided with a preset password, and the safety password is stored in a storage module of the intelligent door. When a user forgets to take a key, the portable smart phone can send an unlocking password to open the door, and the method specifically comprises the following steps:
the user opens the Bluetooth function of the smart phone and searches for the Bluetooth ID of the smart door by searching for the devices that can be paired.
And sending a pairing request to the Bluetooth module of the intelligent door through the Bluetooth module of the intelligent mobile phone, and establishing Bluetooth connection between the intelligent mobile phone and the intelligent door.
The method comprises the steps that encrypted information is sent to the intelligent door through specific software application on the intelligent mobile phone, the unlocking password is encrypted when the intelligent mobile phone sends the unlocking password, and the encrypted information obtained after the unlocking password is encrypted is sent to the intelligent door. Its advantage lies in can preventing to be acquireed the password of unblanking maliciously by other people. And the specific software on the smart phone encrypts the unlocking password through a specific encryption algorithm.
After receiving the encrypted information sent by the smart phone, the smart door decrypts the encrypted information to obtain a decrypted unlocking password. The intelligent door is preset with a decryption algorithm corresponding to the specific encryption algorithm, and decrypts the encrypted information according to the decryption algorithm.
The intelligent door compares the unlocking password with a preset password pre-stored in the storage module, if the unlocking password is the same as the preset password, the intelligent door controls the door lock to be opened, and if the unlocking password is different from the preset password, the intelligent door indicates that an illegal user accesses the intelligent door and does not open the intelligent door.
Fig. 3 is a schematic structural diagram of an intelligent door according to the present invention, and as shown in fig. 3, the intelligent door 101 includes: a memory module 1013, a control module 1012, a wireless communication module 1011, and a door lock 1014. The storage module 1013 is configured to store a preset password. When the user inputs the security password through the external input device, the input preset password is stored in the storage module 1013.
The wireless communication module 1011 is configured to receive a wireless connection establishment request sent by the intelligent terminal 102, and establish a wireless connection with the intelligent terminal 102. In an embodiment of the present invention, the wireless communication module 1011 may be a bluetooth module, a wifi module, or an NFC module. Other wireless communication modules can be used as long as the wireless connection with the intelligent terminal can be established.
The control module 1012 is configured to receive the unlocking information sent by the intelligent terminal 102 through the wireless communication module 1011, compare whether the unlocking information and the preset password in the storage module 1013 meet the unlocking condition, and if the unlocking information and the preset password meet the unlocking condition, control the door lock 1014 to open.
In an embodiment of the present invention, the control module 1012 receives the unlocking password sent by the intelligent terminal 102, compares whether the unlocking password is the same as the preset password in the storage module 1013, and controls the door lock 1014 to open if the unlocking password is the same as the preset password in the storage module 1013.
In an embodiment of the present invention, the smart terminal 102 encrypts the transmitted unlocking password to obtain encrypted information, and transmits the encrypted information to the smart door 101. The control module 1012 of the smart door 101 needs to decrypt the encrypted information to obtain the unlocking password after receiving the encrypted information sent by the smart terminal 102. The method specifically comprises the following steps: the control module 1012 receives the encrypted information sent by the intelligent terminal 102, decrypts the encrypted information to obtain an unlocking password, and compares the unlocking password with a preset password in the storage module 1013 to determine whether the unlocking password is the same as the preset password; and if the two are the same, controlling the door lock to be opened.
In an embodiment of the present invention, the wireless communication module 1011 is a bluetooth module; the Bluetooth module receives a Bluetooth pairing request sent by an intelligent terminal, and establishes Bluetooth connection with the intelligent terminal according to the Bluetooth pairing request;
in another embodiment of the present invention, the wireless communication module is a wifi module; the wifi module receives a wifi direct connection request sent by an intelligent terminal, and wifi direct connection is established with the intelligent terminal according to the wifi direct connection request;
in other embodiments of the present invention, the wireless communication module is an NFC module; the NFC module receives an NFC pairing request sent by an intelligent terminal, and NFC connection is established with the intelligent terminal according to the Bluetooth pairing request.
The invention also discloses an intelligent door control system, which comprises: the intelligent door as claimed in any one of the above embodiments, and at least one intelligent terminal;
the intelligent terminal is used for sending unlocking information to the intelligent door according to a user instruction after the wireless connection with the intelligent door is established, wherein the unlocking information comprises an unlocking password or encryption information.
In the invention, the control module in the intelligent door controls the opening and closing of the door lock by checking the security password of the storage module. Specifically, the control module in the intelligent door can adopt a single chip microcomputer, the storage module can adopt an RAM, and one pin of the single chip microcomputer is electrically connected with a switch of the door lock. When the singlechip compares the startup password correctly, the pin sends a high level to close the door lock switch, namely the door lock switch is electrified to control the door lock to be opened. When the singlechip compares the startup password and is wrong, the pin sends a low level to enable the door lock switch to be continuously disconnected, namely, the door lock does not act.
Therefore, the intelligent door control system solves the problem that no key is provided when no one is at home. The intelligent door is provided with a plurality of passwords in advance, so that the requirements of family members of the intelligent door are met, and if an emergency happens or a friend visits the intelligent door and has no people in the family, the intelligent door can tell the electronic passwords to the friend, so that the friend can not refuse guests and leave the intelligent door after the electronic passwords come home.
In summary, according to the technical scheme provided by the invention, the security password is preset in the intelligent door; receiving a wireless connection establishment request sent by an intelligent terminal, and establishing wireless connection with the intelligent terminal; receiving an unlocking password sent by an intelligent terminal, and comparing whether the unlocking password is the same as the preset safety password or not; and if the two pieces of information are the same, controlling the door lock of the intelligent door to be opened. In the technical scheme provided by the invention, no additional equipment is needed, and only a mobile phone carried by a user is needed to be used as equipment for opening the door, so that the problem that the existing door control system cannot be used for opening the door when no one is at home and no key is provided is solved.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.