CN109361760B - Intelligent door lock system and intelligent door lock recombination network method - Google Patents
Intelligent door lock system and intelligent door lock recombination network method Download PDFInfo
- Publication number
- CN109361760B CN109361760B CN201811386861.2A CN201811386861A CN109361760B CN 109361760 B CN109361760 B CN 109361760B CN 201811386861 A CN201811386861 A CN 201811386861A CN 109361760 B CN109361760 B CN 109361760B
- Authority
- CN
- China
- Prior art keywords
- intelligent door
- gateway
- door lock
- connectable
- frequency band
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00571—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Lock And Its Accessories (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses an intelligent door lock system and an intelligent door lock network recombination method, wherein the system comprises a plurality of gateways and a plurality of intelligent door locks, and each gateway is connected with a plurality of intelligent door locks; when the connection with the current gateway is disconnected, the intelligent door lock scans whether connectable gateways exist around; if the connectable gateway exists, the intelligent door lock also sets the working frequency band of the intelligent door lock as the working frequency band where the connectable gateway is located, changes the working state of the intelligent door lock into an unpaired state, and sends a connection request to the connectable gateway; and the connectable gateway is connected with the intelligent door lock in an unpaired state according to the connection request, and stores the identity information of the connected intelligent door lock. According to the scheme of the invention, when the connection between the intelligent door lock and the gateway is disconnected, other online gateways are searched again and connected with the gateway, so that the situation that the intelligent door lock cannot be connected with the gateway is avoided, and the network coverage rate is improved.
Description
Technical Field
The invention relates to the technical field of intelligent door locks, in particular to an intelligent door lock system and an intelligent door lock recombination network method.
Background
The intelligent door lock is an intelligent household product produced by integrating the technologies of an electronic technology, an integrated circuit design, a large number of electronic components, various innovative identification technologies (including a computer network technology, a built-in software card, a network alarm, a mechanical design of a lock body) and the like, is different from the traditional mechanical lock, uses a non-mechanical key as a user identification ID, and is more intelligent in the aspects of user identification, safety and manageability. The intelligent door lock replaces a mechanical lock, and is a necessary trend, and the intelligent door lock has the unique technical advantages and brings better development to the lock industry in China.
The existing communication mode of the intelligent door lock usually adopts wireless communication below a frequency band of 1GHz, such as 315MHz, 433MHz, 868MHz, 915MHz and the like, which are generally called Sub 1 GHz. The low Frequency has the advantage of obtaining a longer transmission distance under the same transmission power, if 315MHz is used, the difference is about 8 times compared with 2.4GHz of Wi-Fi, and in addition, Sub 1GHz does not need high transmission rate, complex Modulation such as 16QAM (Quadrature Amplitude Modulation) is not needed, and the transmission distance is longer and can reach several kilometers as a result of adopting simple Modulation methods such as ASK (Amplitude Shift Keying), FSK (Frequency Shift Keying) and the like.
In the networking and management of the existing intelligent door locks, mutual interference among systems often occurs easily, and if a single intelligent door lock cannot be connected with a network or the whole system of the intelligent door lock is restarted, the situations of system disorder and intelligent door lock disconnection are easy to occur; in addition, the intelligent door locks are often connected with the gateway, data information is pushed to the server through the gateway, and if the gateway with the routing function fails, the situation of integral network disconnection can be easily caused by all the intelligent door locks connected downstream.
Disclosure of Invention
In view of the above problems, an object of the embodiments of the present invention is to provide an intelligent door lock system method to solve the deficiencies of the prior art.
According to one embodiment of the invention, an intelligent door lock system is provided, which comprises a plurality of gateways and a plurality of intelligent door locks, wherein each gateway is connected with a plurality of intelligent door locks;
when the connection with the current gateway is disconnected, the intelligent door lock scans whether connectable gateways exist around;
if the connectable gateway exists, the intelligent door lock also sets the working frequency band of the intelligent door lock as the working frequency band where the connectable gateway is located, changes the working state of the intelligent door lock into an unpaired state, and sends a connection request to the connectable gateway;
and the connectable gateway is connected with the intelligent door lock in an unpaired state according to the connection request, and stores the identity information of the connected intelligent door lock.
In the foregoing intelligent door lock system, an initial networking process of the intelligent door lock system includes:
each gateway scans surrounding intelligent door locks which can be connected, and establishes connection with all intelligent door locks in an unpaired state.
In the above-mentioned intelligent door lock system, the "each gateway scans the intelligent door locks that can be connected around and establishes connections with all intelligent door locks in an unpaired state" includes:
each gateway scans surrounding connectable intelligent door locks in each working frequency band and acquires the working state of the connectable intelligent door locks, wherein the working state comprises an unpaired state and a paired state;
each gateway sends networking requests to all the intelligent door locks which are scanned by the gateway and are in an unpaired state;
and the intelligent door lock in the unpaired state receiving the networking request establishes connection with the corresponding gateway, and sets the working state of the intelligent door lock to be the paired state.
In the foregoing intelligent door lock system, before the step of scanning, by each gateway, the intelligent door locks that can be connected to the surrounding and establishing connections with all intelligent door locks in an unpaired state, the method further includes:
each gateway scans whether other gateways exist around the gateway, acquires working frequency bands of the other gateways, and sets the working frequency bands of the gateways according to the working frequency bands of the other gateways.
In the above-mentioned intelligent door lock system, further comprising:
and when the connection with the current gateway is recovered to an online state from disconnection, the current gateway is reconnected with the original intelligent door lock.
In the above-mentioned intelligent door lock system, the "the current gateway is reconnected with the originally paired intelligent door lock" includes:
the current gateway scans surrounding connectable gateways, sends the stored identity information of the originally paired intelligent door locks to the connectable gateways, and sets the working frequency band of the current gateway as the original working frequency band;
the connectable gateway judges whether the intelligent door lock related to the current gateway exists in the connected intelligent door locks according to the identity information of the originally paired intelligent door locks;
if the intelligent door lock related to the current gateway exists, the connectable gateway sends a notification signal to the intelligent door lock related to the current gateway and disconnects the intelligent door lock related to the current gateway, and then the stored identity information of the intelligent door lock is updated according to the identity information of the disconnected intelligent door lock;
after receiving the notification signal, the intelligent door lock related to the current gateway sets the working frequency band of the intelligent door lock to be the original working frequency band, changes the working state of the intelligent door lock to be an unpaired state, and sends a connection request to the current gateway;
and the current gateway establishes connection with the intelligent door lock in an unpaired state in the original working frequency band according to the connection request, and updates the identity information of the intelligent door lock connected with the current gateway.
In the above-mentioned intelligent door lock system, the "current gateway scans connectable gateways around" includes:
the current gateway scans whether connectable gateways exist around each working frequency band;
if the connectable gateway exists, the current gateway acquires the working frequency band of the connectable gateway, sets the working frequency band of the current gateway as the working frequency band of the connectable gateway, and performs data transmission with the corresponding connectable gateway in the set working frequency band.
In the above-mentioned intelligent door lock system, the "connectable gateway connects with the intelligent door lock in an unpaired state according to the connection request" includes:
the connectable gateway judges whether the number of all the intelligent door locks connected with the connectable gateway reaches a preset connection threshold value or not, and judges whether the communication quality between the connectable gateway and the intelligent door lock in an unpaired state reaches a preset quality threshold value or not;
and if the number of all the intelligent door locks connected with the gateway does not reach the preset connection threshold value and the communication quality between the gateway and the intelligent door lock in the unpaired state reaches the preset quality threshold value, the connectable gateway establishes connection with the intelligent door lock in the unpaired state.
In the above-mentioned intelligent door lock system, whether the connection with the current gateway is disconnected is determined by the following means:
the intelligent door lock initiates a communication request to the current gateway every other preset time, and receives a reply signal sent by the current gateway aiming at the communication request;
and if the current gateway does not receive the reply signal for more than the preset times, the intelligent door lock judges that the connection between the intelligent door lock and the current gateway is disconnected.
According to another embodiment of the invention, an intelligent door lock reorganizing network method is provided, the method is applied to an intelligent door lock system, the intelligent door lock system comprises a plurality of gateways and a plurality of intelligent door locks, each gateway is connected with a plurality of intelligent door locks, and the method comprises the following steps:
when the connection with the current gateway is disconnected, the intelligent door lock scans whether connectable gateways exist around;
if the connectable gateway exists, the intelligent door lock sets the working frequency band of the intelligent door lock as the working frequency band where the connectable gateway is located, changes the working state of the intelligent door lock into an unpaired state, and sends a connection request to the connectable gateway;
and the connectable gateway is connected with the intelligent door lock in an unpaired state according to the connection request, and stores the identity information of the connected intelligent door lock.
According to another embodiment of the present invention, an intelligent door lock networking device is provided, where the device is applied to an intelligent door lock system, the intelligent door lock system includes a plurality of gateways and a plurality of intelligent door locks, each gateway is connected to a plurality of intelligent door locks, and the device includes:
the intelligent door lock comprises a scanning module, a judging module and a judging module, wherein the scanning module is used for scanning whether a connectable gateway exists around the intelligent door lock when the connection with the current gateway is disconnected;
the intelligent door lock comprises a setting module, a connection module and a control module, wherein the setting module is used for setting the working frequency range of the intelligent door lock to the working frequency range of the connectable gateway if the connectable gateway exists, changing the working state of the intelligent door lock to an unpaired state and sending a connection request to the connectable gateway;
and the connection module is used for connecting the connectable gateway with the intelligent door lock in an unpaired state according to the connection request and storing the identity information of the connected intelligent door lock.
According to still another embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program that, when executed, performs the above-mentioned intelligent door lock reorganization network method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the intelligent door lock system and the intelligent door lock network restructuring method, when the connection between the intelligent door lock and the gateway is disconnected, other online gateways are searched again and connected with the gateways, the situation that the intelligent door lock cannot be connected with the gateways and cannot be networked is avoided, and the network coverage rate is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a schematic structural diagram of an intelligent door lock system according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram illustrating another intelligent door lock system according to an embodiment of the present invention.
Fig. 3 shows a flow diagram of an intelligent door lock network restructuring method according to an embodiment of the present invention.
Fig. 4 shows a schematic structural diagram of an intelligent door lock re-networking device according to an embodiment of the present invention.
Description of the main element symbols:
100-intelligent door lock system; 110-a gateway; 120-smart door lock; 200-an intelligent door lock recombination network device; 210-a scanning module; 220-setting the module; 230-connecting the modules.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
Fig. 1 shows a schematic structural diagram of an intelligent door lock system according to an embodiment of the present invention.
The intelligent door lock system 100 includes a plurality of gateways 110 and a plurality of intelligent door locks 120, and each gateway 110 is connected to a plurality of intelligent door locks 120.
The gateway 110 is further connected to a server, the intelligent door lock 120 is connected to the server through the gateway 110, and the intelligent door lock 120 transmits stored door opening and closing information, lighting information, password information and the like to the server through the gateway 110, so that the server processes the information.
Further, the smart door lock 120 also stores water consumption information, electricity consumption information, gas consumption information, and the like of the resident in the smart door lock.
Specifically, the devices such as the electricity meter, the water meter, and the gas meter of the household and the smart door lock 120 form a local area network, the water consumption information, the electricity consumption information, and the gas consumption information of the household are transmitted to the smart door lock 120 for storage, and when the smart door lock 120 is in an awake state (for example, when the door is opened or closed), the data such as the water consumption information, the electricity consumption information, or the gas consumption information of the household can be transmitted to the server and/or the terminal where the household is located.
Further, the initial networking process of the intelligent door lock system 100 includes:
each gateway 110 scans the surrounding connectable smart locks 120 and establishes connections with all unpaired smart locks 120.
Specifically, before the intelligent door lock system 110 starts communication, a connection needs to be established between the gateway 110 and the intelligent door lock 120 in the intelligent door lock system 100.
Further, the "each gateway 110 scans the surrounding connectable smart locks 120 and establishes connections with all unpaired smart locks 120" includes:
each gateway 110 scans the surrounding connectable smart door locks 120 in each working frequency band and obtains the working state of the connectable smart door locks 120, wherein the working state includes an unpaired state and a paired state; each gateway 110 sends a networking request to all the intelligent door locks 120 which are scanned by the gateway and are in an unpaired state; the intelligent door lock 120 in the unpaired state, which receives the networking request, establishes a connection with the corresponding gateway 110, and sets the operating state of itself to the paired state.
Wherein, the connectable intelligent door lock 120 indicates that the gateway 110 can scan the signal sent by the intelligent door lock 120.
Specifically, each gateway 110 continuously adjusts its own working frequency band according to the divided working frequency bands, so that it scans whether there is an intelligent door lock 120 capable of performing connection in each working frequency band, and obtains the working states of the scanned intelligent door lock 120 capable of performing connection, where the working states include an unpaired state and a paired state.
The smart door lock 120 is in an unpaired state at initial setup. The smart door lock 120 is in an unpaired state when no connection is established with the gateway 110, and is in a paired state when a connection is established with the gateway 110.
Each gateway 110 integrates all the intelligent door locks 120 scanned in all the operating frequency bands, and determines the intelligent door lock 120 in an unpaired state.
Each gateway 110 sends a networking request to all the intelligent door locks 120 which are scanned by the gateway 110 and are in an unpaired state, and the intelligent door lock 120 which receives the networking request pairs with the gateway 110 according to a pairing signal in the networking request and establishes connection with the gateway 110 which sends the networking request.
After the connection is established, the intelligent door lock 120 also sets its own operating frequency band as the operating frequency band of the gateway 110 connected thereto, so that the intelligent door lock and the gateway 110 communicate with each other in the operating frequency band. The intelligent door lock 120 also changes the working state of the intelligent door lock from an unpaired state to a paired state, so that the intelligent door lock is prevented from receiving networking requests sent by other gateways 110 after establishing connection with the gateways 110, network resources are prevented from being wasted, and interference is reduced.
For example, as shown in fig. 2, an intelligent door lock in a residential building will be described as an example. The intelligent door locks A1-AM can be arranged on different floors of different buildings. The gateway A scans connectable intelligent door locks in each working frequency band, and sends networking requests to all intelligent door locks A1-AM in an unpaired state in all connectable intelligent door locks for connection. The intelligent door locks B1-BN can be arranged on different floors of different buildings. The gateway B scans the connectable intelligent door locks in each working frequency band, sends networking requests to all intelligent door locks B1-BN in an unpaired state in all the connectable intelligent door locks, and connects the connectable intelligent door locks until all the intelligent door locks are connected by all the gateways.
Specifically, at least one gateway 110 and a plurality of intelligent door locks 120 may be further installed in each floor of each building, signals sent by the intelligent door locks scanned by the gateway 110 include identity information, information of the located building and information of the located floor, and the gateway 110 identifies and establishes a connection with all the intelligent door locks 120 belonging to the same building and being in an unpaired state on the same floor. All the intelligent door locks 120 after establishing connection with the gateway 110 change the working state of the intelligent door locks from the unpaired state to the paired state.
For example, as shown in fig. 2, an intelligent door lock in a residential building will be described as an example. If the gateway A is installed on the 1 st floor of the building 1, the intelligent door locks A1-AM are installed on the 1 st floor of the building 1, and the intelligent door locks B1-BN are installed on the second floor of the building 1. Before networking, a gateway A scans connectable intelligent door locks A1-AM and B1-B3 in each working frequency band, all the intelligent door locks A1-AM installed on the first floor of a building 1 are screened out from all the connectable intelligent door locks through building information and floor information in signals sent by the intelligent door locks, the gateway A sends networking requests to the intelligent door locks A1-AM, the intelligent door locks A1-AM receiving the networking requests are paired with the gateway A according to pairing signals in the networking requests, and connection is established between the intelligent door locks A sending the networking requests and the gateway A. After connection is established, the intelligent door locks A1-AM change the working state of the intelligent door locks A1-AM from an unpaired state to a paired state so as to prevent other gateways from sending networking requests and reduce network resource occupation. Wherein M and N are integers greater than or equal to 2.
Specifically, it is also possible to install the gateway 110 and the plurality of intelligent door locks 120 in the building first from the first floor, the gateway 110 installed in the first floor scans all connectable intelligent door locks 120 in the first floor and establishes connection with the connectable intelligent door locks 120 in the unpaired state, and sets the operating states of all connected intelligent door locks to the paired state; after the networking of the first layer is finished, the gateway 110 and the plurality of intelligent door locks 120 may be installed in the second layer, the gateway 110 installed in the second layer scans all connectable intelligent door locks 120, all connectable intelligent door locks 120 scanned by the gateway 110 of the second layer may include the intelligent door lock installed in the second layer and the intelligent door lock installed in the first layer, since the operating state of the connected intelligent door lock installed in the first layer is the paired state, the gateway 110 installed in the second layer establishes a connection with the intelligent door lock 120 in the unpaired state among all connectable intelligent door locks 120 scanned, and sets the operating state of all connected intelligent door locks as the paired state; and sequentially installing networking layer by layer until the networking of the gateway 110 installed at the top layer and the intelligent door lock 120 installed at the top layer is finished.
For example, as shown in fig. 2, a three-layer network will be described as an example. The gateway A and the intelligent door locks A1-AM are installed on the first floor, and the intelligent door locks are in an unpaired state during installation. The gateway A scans the connectable intelligent door locks A1-AM in each working frequency band, and sends networking requests to all the intelligent door locks A1-AM in an unpaired state in all the connectable intelligent door locks for connection. After the connection is completed, the intelligent door locks A1-AM modify the working state of the intelligent door locks A1-AM from the unpaired state to the paired state.
And installing a gateway B and a plurality of intelligent door locks B1-BN on the second layer, wherein the intelligent door locks are in an unpaired state during installation. The gateway B scans the connectable intelligent door locks B1-BN and A1-A8 in each working frequency band, and sends networking requests to all the intelligent door locks B1-BN in an unpaired state in all the connectable intelligent door locks for connection. After connection is completed, the intelligent door locks B1-BN change the working state of the intelligent door locks from an unpaired state to a paired state.
And installing a gateway C and a plurality of intelligent door locks C1-CX on the third layer, wherein the intelligent door locks are in an unpaired state during installation. The gateway C scans the connectable intelligent door locks C1-CX, B1-B8 and A1-A4 in each working frequency band, and sends networking requests to all the intelligent door locks C1-CX which are in an unpaired state in all the connectable intelligent door locks to connect. After connection is completed, the intelligent door lock C1-CX modifies the working state of the intelligent door lock C1-CX from an unpaired state to a paired state. Wherein M, N and X are integers which are more than or equal to 2.
Before the intelligent door lock system 100 is initially networked, each gateway 110 is also used for determining an operating frequency band thereof.
Further, each gateway 110 scans whether there are other gateways 110 around, obtains the operating frequency bands of the other gateways 110, and sets its own operating frequency band according to the operating frequency bands of the other gateways 110.
Specifically, after power-on start and initialization of each gateway 110, actively scan whether there are other gateways 110 around in each operating frequency band, and if other gateways 110 are scanned, obtain the scanned operating frequency bands of other gateways 110, and set the operating frequency band of the gateway to be a different operating frequency band from that of other gateways 110 according to the operating frequency bands of other gateways 110.
For example, the working frequency range corresponding to the gateway 110 is determined according to the communication mode of the gateway 110, and the working frequency range is divided into a plurality of working frequency bands. If the gateway 110 and the smart door lock 120 communicate with each other in a Sub-1G wireless communication manner, the operating frequency range of the gateway 110 may be divided into 433MHz, 435MHz, 437MHz, 439MHz, and the like.
When the first gateway scans in each operating frequency band, if other surrounding gateways are not scanned, the operating frequency band of the first gateway may be set to 433 MHz. When the second gateway scans in each working frequency band, a connectable first gateway is scanned in a 433MHz frequency band, the working frequency band of the first gateway is acquired at 433MHz, and the working frequency band of the second gateway can be set to 435MHz according to the divided working frequency bands; when the third gateway scans in each working frequency band, a connectable first gateway is scanned in the 433MHz frequency band and a connectable second gateway is scanned in the 435MHz frequency band, the working frequency band of the first gateway is acquired at 433MHz and the working frequency band of the second gateway is acquired at 435MHz, and the working frequency band of the third gateway can be set to 437MHz according to the divided working frequency bands, and so on.
For another example, when the first gateway scans in each operating frequency band, if other surrounding gateways are not scanned, the operating frequency band of the first gateway may be set to 433 MHz. When the second gateway scans in each working frequency band, a connectable first gateway is scanned in the 433MHz frequency band, the working frequency band of the first gateway is acquired at 433MHz, and the working frequency band of the second gateway can be set to 437MHz according to the divided working frequency band; when the third gateway scans in each working frequency band, a connectable first gateway is scanned in the 433MHz frequency band and a connectable second gateway is scanned in the 437MHz frequency band, the working frequency band of the first gateway is acquired from 433MHz and the working frequency band of the second gateway is acquired from 437MHz, and the working frequency band of the third gateway can be set to 435MHz according to the divided working frequency bands, and so on.
When the connection with the current gateway 110 is dropped, the smart door lock 120 scans whether there is a connectable gateway 110 around.
Further, it is determined whether the connection with the current gateway 110 is dropped by:
the intelligent door lock 120 initiates a communication request to the current gateway 110 every preset time, and receives a reply signal sent by the current gateway 110 for the communication request; if the current gateway 110 does not receive the reply signal more than the predetermined number of times, the intelligent door lock 120 determines that the connection between the current gateway 110 and the intelligent door lock is disconnected.
Specifically, the intelligent door lock 120 sends a communication request signal (e.g., a heartbeat signal) to the current gateway 110 to which it is connected at preset intervals to determine whether the connection between the intelligent door lock and the current gateway 110 is dropped.
If the intelligent door lock 120 sends the communication request for the preset number of times and does not receive a reply signal returned by the current gateway 110 for the communication request, it is determined that the connection between the intelligent door lock 120 and the current gateway 110 is disconnected.
For example, if the intelligent door lock 120 sends the sequential communication request to the current gateway 110 every 1 second, the current gateway 110 returns a reply signal to the intelligent door lock 120 every time it receives the communication request. If the preset number of times is 30, the smart door lock 120 sends the communication request for 30 times, and does not receive the reply signal of the current gateway 110, and then it is determined that the connection between the smart door lock 120 and the current gateway 110 is disconnected.
Specifically, the connection between the intelligent door lock 120 and the current gateway 110 may be disconnected as follows:
the current gateway 110 is disconnected, and cannot be connected to the server and the intelligent door locks 120, in which case all the intelligent door locks 120 connected to the gateway 110 are disconnected from the current gateway 110. As shown in FIG. 2, if the gateway A is disconnected, the connections between the intelligent door locks A1-AM and the gateway A are all disconnected, wherein M is an integer greater than or equal to 2.
In this case, only the connection between the intelligent door lock 120 and the current gateway 110 is disconnected, and the connections between other intelligent door locks 120 connected to the current gateway 110 and the current gateway 110 are online. As shown in FIG. 2, the connection between the gateway B and the intelligent door lock B2 is disconnected, and the connection between the intelligent door lock B1, B3-BN and the gateway B can be online, wherein N is an integer greater than or equal to 2.
When the connection with the current gateway 110 is disconnected, the intelligent door lock 120 also scans whether signals sent by the connectable gateway 110 exist around each working frequency band, so that the intelligent door lock 120 is connected with the scanned connectable gateway 110, and the disconnection of the intelligent door lock is avoided.
If the connectable gateway 110 exists, the intelligent door lock 120 further sets the working frequency band of the intelligent door lock itself as the working frequency band of the connectable gateway 110, changes the working state of the intelligent door lock itself to an unpaired state, and sends a connection request to the connectable gateway 110.
For example, as shown in fig. 2, if the operating frequency band of the gateway a is 433MHz, the operating frequency band of the gateway B is 435 MHz. If the connection between the intelligent door lock A2 and the gateway A is disconnected, the intelligent door lock A2 scans the connectable gateway in each working frequency band, the connectable gateway B is scanned in the 435MHz working frequency band, and the intelligent door lock A2 does not scan other working frequency bands. The intelligent door lock A2 changes the working frequency band of the intelligent door lock A2 from 433MHz to 435MHz, changes the working state of the intelligent door lock A2 from a matched state to an unpaired state, and after the change is completed, the intelligent door lock A2 sends a connection request to the gateway B so that the intelligent door lock A2 can be connected to a server through the gateway B.
The connectable gateway 110 connects with the intelligent door lock 120 in an unpaired state according to the connection request, and stores the identity information of the connected intelligent door lock 120.
For example, as shown in fig. 2, after receiving the connection request sent by the intelligent door lock a2, the gateway B scans whether there is a connectable and unpaired intelligent door lock in the operating frequency band 435MHz where the gateway B is located, and if there is a connectable and unpaired intelligent door lock, the gateway B pairs with all connectable and unpaired intelligent door locks to initiate connection. After the intelligent door lock which can be connected and is in an unpaired state is successfully connected, the gateway B also records and stores the identity information of the connected intelligent door lock, wherein the identity information can be identity ID and the like.
For another example, as shown in fig. 2, after receiving the connection request sent by the intelligent door lock a2, the gateway B scans whether there is a connectable and unpaired intelligent door lock in the operating frequency band 435MHz where the gateway B is located, determines whether all connectable and unpaired intelligent door locks include the intelligent door lock a2 according to the ID in the connection request sent by the intelligent door lock a2 if there is a connectable and unpaired intelligent door lock, and pairs the gateway B with the intelligent door lock a2 if the intelligent door lock a2 is included, and initiates a connection. If the intelligent door lock A2 is not included, the gateway B does not initiate a pairing request. If no connectable intelligent door lock in an unpaired state is scanned, the gateway B does not initiate a pairing request.
After the connection with the intelligent door lock A2 is successful, the gateway B also records and stores the identity information of the intelligent door lock A2, wherein the identity information can be identity ID and the like.
Further, the "the connectable gateway 110 connects with the intelligent door lock 120 in the unpaired state according to the connection request" includes:
the connectable gateway 110 determines whether the number of all the intelligent door locks 120 connected thereto reaches a predetermined connection threshold value, and determines whether the communication quality between the connectable gateway 110 and the intelligent door locks 120 in the unpaired state reaches a predetermined quality threshold value; if the number of all the intelligent door locks 120 connected with the connectable gateway 110 does not reach the predetermined connection threshold value and the communication quality between the connectable gateway 110 and the intelligent door lock 120 in the unpaired state reaches the predetermined quality threshold value, the connectable gateway 110 establishes connection with the intelligent door lock 120 in the unpaired state.
Specifically, when the connectable gateway 110 connects to the intelligent door locks 120 in the unpaired state, it is further determined whether the number of all the intelligent door locks 120 connected to the connectable gateway 110 reaches a predetermined connection threshold (for example, the maximum allowable connection number), and whether the communication quality between the connectable gateway 110 and the intelligent door locks 120 in the unpaired state reaches a predetermined quality threshold, where the communication quality includes a communication success rate, a communication rate, a transmission power, a reception sensitivity, and the like.
If the number of all the intelligent door locks 120 connected to the connectable gateway 110 does not reach the predetermined connection threshold value, and the communication quality between the connectable gateway 110 and the intelligent door locks 120 in the unpaired state reaches the predetermined quality threshold value, it indicates that the number of the connected intelligent door locks 120 of the connectable gateway 110 is in the underfill state, the connectable gateway 110 may continue to connect to other intelligent door locks 120, and after the communication quality between the other intelligent door locks 120 to be connected and the connectable gateway 110 reaches the predetermined quality threshold value, the connectable gateway 110 establishes connection with the other intelligent door locks 120 in the unpaired state.
For example, as shown in fig. 2, taking a gateway a, a gateway B, and a gateway C as an example for explanation, if the operating frequency band of the gateway a is 433MHz, the operating frequency band of the gateway B is 435MHz, and the operating frequency band of the gateway C is 437 MHz. If the connection between the intelligent door lock A2 and the gateway A is disconnected, the intelligent door lock A2 scans a connectable gateway at each working frequency band, scans a connectable gateway B at a 435MHz working frequency band, changes the working frequency band of the intelligent door lock A2 from 433MHz to 435MHz, changes the working state of the intelligent door lock A2 from a paired state to an unpaired state, and sends a connection request to the gateway B after the change is completed so that the intelligent door lock A2 can be connected to a server through the gateway B. After receiving the connection request sent by the intelligent door lock A2, the gateway B scans the operation frequency band of 435MHz, and after scanning the intelligent door lock A2 in an unpaired state, the gateway B judges whether the communication quality between the gateway B and the intelligent door lock A2 reaches a preset quality threshold value.
If the communication quality between the gateway B and the intelligent door lock A2 does not reach a preset quality threshold value, the gateway B does not establish connection with the intelligent door lock A2; if the communication quality between the gateway B and the intelligent door lock A2 reaches a preset quality threshold, the gateway B judges whether the number of the intelligent door locks connected with the gateway B reaches a preset connection threshold.
If the number of the intelligent door locks connected with the gateway B does not reach a preset connection threshold value, the connectable gateway B establishes connection with the intelligent door lock A2 in the unpaired state.
If the number of the intelligent door locks connected with the gateway B reaches a preset connection threshold value, the intelligent door lock A2 continuously scans whether connectable gateways exist in other working frequency bands, if the intelligent door lock A2 scans the connectable gateway C in the 437MHz working frequency band, the intelligent door lock A2 changes the working frequency band of the intelligent door lock A from 433MHz to 437MHz and changes the working state of the intelligent door lock A from a paired state to an unpaired state, and after the change is completed, the intelligent door lock A2 sends a connection request to the gateway C so that the intelligent door lock A can be connected to a server through the gateway C.
When the number of all the intelligent door locks C1-CX connected by the gateway C does not reach the preset connection threshold value and the communication quality between the gateway C and the intelligent door lock A2 in the unpaired state reaches the preset quality threshold value, the gateway C sends a pairing request to the intelligent door lock A2, and the intelligent door lock A2 completes pairing with the gateway C according to the pairing request and establishes connection with the gateway C.
Further, when the connection of the current gateway 110 is restored to the online state from the offline state, the current gateway 110 is reconnected to the originally paired intelligent door lock 120.
Further, the "the current gateway 110 reconnects with the originally paired intelligent door lock 120" includes:
the current gateway scans surrounding connectable gateways, sends the stored identity information of the originally paired intelligent door locks to the connectable gateways, and sets the working frequency band of the current gateway as the original working frequency band.
Further, the "current gateway scans connectable gateways around" includes:
the current gateway scans whether connectable gateways exist around each working frequency band; if the connectable gateway exists, the current gateway acquires the working frequency band of the connectable gateway, sets the working frequency band of the current gateway as the working frequency band of the connectable gateway, and performs data transmission with the corresponding connectable gateway in the set working frequency band.
Specifically, when the intelligent door lock and the current gateway are restored to the online state from the offline state, the current gateway firstly determines the working frequency band of the current gateway according to the scanned working frequency band of the connectable gateway, and sets the working frequency band of the current gateway as the scanned working frequency band of the connectable gateway, so as to perform data transmission with the corresponding connectable gateway in the set working frequency band.
After data transmission is carried out between the current gateway and the scanned connectable gateway, the current gateway sends the stored identity information of the originally paired intelligent door locks to the connectable gateway, so that the connectable gateway receiving the identity information of the originally paired intelligent door locks inquires whether the originally paired intelligent door locks exist in all the connected intelligent door locks.
And the identity information of the originally paired intelligent door locks is the identity information of all the intelligent door locks connected with the current gateway before the gateway is disconnected.
The current gateway sends the identity information of the original paired intelligent door lock to the connectable gateway, and then modifies the working frequency band of the current gateway into the original working frequency band, wherein the original working frequency band is the working frequency band before the disconnection.
And the connectable gateway judges whether the intelligent door lock related to the current gateway exists in the connected intelligent door locks according to the identity information of the originally paired intelligent door locks.
Specifically, the connectable gateway searches whether the originally paired intelligent door lock exists in all the connected intelligent door locks according to the received identity information of the originally paired intelligent door lock.
And if the intelligent door lock related to the current gateway exists, the connectable gateway sends a notification signal to the intelligent door lock related to the current gateway and disconnects the intelligent door lock related to the current gateway, and then the stored identity information of the intelligent door lock is updated according to the identity information of the disconnected intelligent door lock.
Specifically, if the original intelligent door lock exists, the connectable gateway sends a notification signal value to the original intelligent door lock, and disconnects the original intelligent door lock. And updating the stored identity information of the intelligent door lock according to the disconnected intelligent door lock information, namely the identity information of all the intelligent door locks connected with the gateway only and stored in the gateway.
And after receiving the notification signal, the intelligent door lock related to the current gateway sets the working frequency band of the intelligent door lock to be the original working frequency band, changes the working state of the intelligent door lock to be an unpaired state, and sends a connection request to the current gateway.
Specifically, after receiving the notification signal sent by the connectable gateway, the originally paired intelligent door lock sets the working frequency band of itself from the working frequency band of the connectable gateway to the original working frequency band, changes the working state of itself from the paired state to the unpaired state, prepares for connection with the current gateway, and sends a connection request to the current gateway.
And after the current gateway establishes connection with the intelligent door lock in an unpaired state in the original working frequency band according to the connection request, and the identity information of the intelligent door lock connected with the current gateway is updated.
Specifically, the current gateway scans the intelligent door lock in the unpaired state in the original working frequency band where the current gateway is located according to the connection request, establishes connection with the intelligent door lock in the unpaired state, and updates the stored identity information of the intelligent door lock according to the newly connected intelligent door lock.
For example, as shown in fig. 2, taking a gateway a, a gateway B, and a gateway C as an example for explanation, if the operating frequency band of the gateway a is 433MHz, the operating frequency band of the gateway B is 435MHz, and the operating frequency band of the gateway C is 437 MHz. If the connection between A2 and gateway A is dropped, A2 connects to gateway C. When the connection between the A2 and the gateway A is restored to be on-line from off-line, the gateway A sets the working frequency band of the gateway A to be 435MHz of the working frequency band where the gateway B is located, sends the identity information of the original paired intelligent lock to the gateway B in the 435MHz working frequency band, sets the working frequency band of the gateway A to be 437MHz of the working frequency band where the gateway C is located, and sends the identity information of the original paired intelligent lock to the gateway C in the 437MHz working frequency band. After the gateway B searches the identity information of the intelligent door locks B1-BM stored by the gateway B according to the received identity information of the original paired intelligent locks, the original paired intelligent door locks are not found. After the gateway C searches for the identity information of the intelligent door locks C1-CX and A2 stored in the gateway C according to the received identity information of the original paired intelligent locks, the original paired intelligent door lock A2 is found, the gateway C sends a notification signal to the intelligent door lock A2 to notify the intelligent door lock A2 that the connection between the intelligent door lock A2 and the gateway A is on-line, the gateway C disconnects the connection between the intelligent door lock A2, and deletes the stored identity information of the intelligent door lock A2 connected with the gateway C.
After receiving the notification signal, the intelligent door lock a2 changes its working frequency band from 437MHz to 433MHz, changes its working state from a paired state to an unpaired state, and sends a connection request to the gateway a.
After receiving the connection request, the gateway a scans connectable intelligent door locks within the 433MHz working frequency band, establishes connection with the intelligent door lock a2 in an unpaired state, and updates the stored identity information of all connected intelligent door locks.
For another example, as shown in fig. 2, taking a gateway a, a gateway B, and a gateway C as an example for description, if the operating frequency band of the gateway a is 433MHz, the operating frequency band of the gateway B is 435MHz, and the operating frequency band of the gateway C is 437 MHz. If the gateway A is disconnected, all the intelligent door locks A1-AM connected with the gateway A are disconnected with the gateway A, and if the intelligent door locks A1-A6 are connected to the gateway B, the intelligent door locks A6-AM are connected to the gateway C. When the gateway A is recovered to the online state from the offline state, the gateway A sets the working frequency band of the gateway A to be 435MHz of the working frequency band of the gateway B, sends the identity information of the original paired intelligent lock to the gateway B in the 435MHz working frequency band, sets the working frequency band of the gateway A to be 437MHz of the working frequency band of the gateway C, and sends the identity information of the original paired intelligent lock to the gateway C in the 437MHz working frequency band.
After the gateway B searches the identity information of the intelligent door locks B1-BM-A1-A6 stored in the gateway B according to the received identity information of the original paired intelligent locks, the gateway B finds the original paired intelligent door locks A1-A6, sends notification signals to the intelligent door locks A1-A6 to notify the intelligent door locks A1-A6 that the gateway A is on-line, disconnects the gateway B from the intelligent door locks A1-A6, and deletes the stored identity information of the intelligent door locks A1-A6 connected with the gateway B.
The gateway C finds the original paired intelligent door locks A6-AM after searching the identity information of the intelligent door locks C1-CX and A6-AM stored in the gateway C according to the received identity information of the original paired intelligent locks, sends notification signals to the intelligent door locks A6-AM to notify the intelligent door locks A6-AM that the gateway A is online, disconnects the gateway C from the connection between the gateway C and the A6-AM, and deletes the stored identity information of the intelligent door locks A6-AM connected with the gateway C.
After receiving the notification signal, the intelligent door locks A1-A6 change the working frequency band of the intelligent door locks A from 435MHz to 433MHz, change the working state of the intelligent door locks A from the paired state to the unpaired state, and send a connection request to the gateway A.
After receiving the notification signal, the intelligent door locks A6-AM change the working frequency range of the intelligent door locks A from 437MHz to 433MHz, change the working state of the intelligent door locks A from a paired state to an unpaired state, and send a connection request to the gateway A.
After receiving the connection request, the gateway A scans connectable intelligent door locks in the 433MHz working frequency band, establishes connection with all intelligent door locks in an unpaired state, and updates the stored identity information of all connected intelligent door locks until all the original paired intelligent door locks A1-AM are connected.
Example 2
Fig. 3 shows a flow diagram of an intelligent door lock network restructuring method according to an embodiment of the present invention. The intelligent door lock network recombination method is applied to an intelligent door lock and a gateway. The gateway is connected with at least one intelligent door lock.
The intelligent door lock recombination network method comprises the following steps:
and step S110, when the connection with the current gateway is disconnected, the intelligent door lock scans whether connectable gateways exist around.
Step S120, if the connectable gateway exists, the intelligent door lock sets the working frequency band of the intelligent door lock to be the working frequency band where the connectable gateway is located, changes the working state of the intelligent door lock to be an unpaired state, and sends a connection request to the connectable gateway.
And step S130, the connectable gateway is connected with the intelligent door lock in the unpaired state according to the connection request, and the identity information of the connected intelligent door lock is stored.
Example 3
Fig. 4 shows a schematic structural diagram of an intelligent door lock re-networking device according to an embodiment of the present invention. The intelligent door lock heavy networking device 200 is applied to gateways and intelligent door locks. The gateway is connected with at least one intelligent door lock.
The intelligent door lock re-networking device 200 comprises a scanning module 210, a setting module 220 and a connecting module 230.
And the scanning module 210 is configured to scan whether a connectable gateway still exists around the intelligent door lock when the connection with the current gateway is disconnected.
The setting module 220 is configured to, if a connectable gateway exists, set the working frequency band of the intelligent door lock to the working frequency band where the connectable gateway exists, change the working state of the intelligent door lock to an unpaired state, and send a connection request to the connectable gateway.
The connection module 230 is configured to connect the connectable gateway with the intelligent door lock in an unpaired state according to the connection request, and store the identity information of the connected intelligent door lock.
The embodiment also provides a computer storage medium, which stores a computer program, and the computer program is used for executing the intelligent door lock reorganization network method when executed.
Therefore, the invention provides an intelligent door lock system and an intelligent door lock network recombination method, the intelligent door locks can be self-organized, and the workload of each intelligent door lock which needs to be configured independently is saved; the gateway can automatically scan the working frequency bands of other gateways and set the working frequency bands of the gateway according to the working frequency bands of other gateways, so that the problems of repetition and conflict caused by manual setting are avoided; when the connection between the intelligent door lock and the gateway is disconnected, other online gateways are searched again and connected with the intelligent door lock, the situation that the intelligent door lock cannot be connected with the gateways is avoided, and the network coverage rate is improved; when the gateway is restored to the online state from the offline state, all the intelligent door locks which are originally connected can be restored to be connected again, and the utilization rate of the network and the frequency band is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.
Claims (8)
1. An intelligent door lock system is characterized by comprising a plurality of gateways and a plurality of intelligent door locks, wherein each gateway is connected with a plurality of intelligent door locks;
when the connection with the current gateway is disconnected, the intelligent door lock scans whether connectable gateways exist around;
if the connectable gateway exists, the intelligent door lock also sets the working frequency band of the intelligent door lock as the working frequency band where the connectable gateway is located, changes the working state of the intelligent door lock into an unpaired state, and sends a connection request to the connectable gateway;
the connectable gateway is connected with the intelligent door lock in an unpaired state according to the connection request, and stores the identity information of the connected intelligent door lock;
when the connection with the current gateway is restored to the online state by disconnection, the current gateway is reconnected with the intelligent door lock of the original pairing, and the method comprises the following steps:
the current gateway scans surrounding connectable gateways, sends the stored identity information of the originally paired intelligent door locks to the connectable gateways, and sets the working frequency band of the current gateway as the original working frequency band;
the connectable gateway judges whether the intelligent door lock related to the current gateway exists in the connected intelligent door locks according to the identity information of the originally paired intelligent door locks;
if the intelligent door lock related to the current gateway exists, the connectable gateway sends a notification signal to the intelligent door lock related to the current gateway and disconnects the intelligent door lock related to the current gateway, and then the stored identity information of the intelligent door lock is updated according to the identity information of the disconnected intelligent door lock;
after receiving the notification signal, the intelligent door lock related to the current gateway sets the working frequency band of the intelligent door lock to be the original working frequency band, changes the working state of the intelligent door lock to be an unpaired state, and sends a connection request to the current gateway;
and the current gateway establishes connection with the intelligent door lock in an unpaired state in the original working frequency band according to the connection request, and updates the identity information of the intelligent door lock connected with the current gateway.
2. The intelligent door lock system according to claim 1, wherein the initial networking process of the intelligent door lock system comprises:
each gateway scans surrounding intelligent door locks which can be connected, and establishes connection with all intelligent door locks in an unpaired state.
3. The intelligent door lock system according to claim 2, wherein the step of each gateway scanning the surrounding connectable intelligent door locks and establishing connection with all unpaired intelligent door locks comprises:
each gateway scans surrounding connectable intelligent door locks in each working frequency band and acquires the working state of the connectable intelligent door locks, wherein the working state comprises an unpaired state and a paired state;
each gateway sends networking requests to all the intelligent door locks which are scanned by the gateway and are in an unpaired state;
and the intelligent door lock in the unpaired state receiving the networking request establishes connection with the corresponding gateway, and sets the working state of the intelligent door lock to be the paired state.
4. The intelligent door lock system according to claim 2, wherein before the step of each gateway scanning the surrounding connectable intelligent door locks and establishing connection with all unpaired intelligent door locks, the method further comprises:
each gateway scans whether other gateways exist around the gateway, acquires working frequency bands of the other gateways, and sets the working frequency bands of the gateways according to the working frequency bands of the other gateways.
5. The intelligent door lock system according to claim 1, wherein the "current gateway scans connectable gateways around" includes:
the current gateway scans whether connectable gateways exist around each working frequency band;
if the connectable gateway exists, the current gateway acquires the working frequency band of the connectable gateway, sets the working frequency band of the current gateway as the working frequency band of the connectable gateway, and performs data transmission with the corresponding connectable gateway in the set working frequency band.
6. The intelligent door lock system according to claim 1, wherein the connectable gateway connecting with the intelligent door lock in an unpaired state according to the connection request comprises:
the connectable gateway judges whether the number of all the intelligent door locks connected with the connectable gateway reaches a preset connection threshold value or not, and judges whether the communication quality between the connectable gateway and the intelligent door lock in an unpaired state reaches a preset quality threshold value or not;
and if the number of all the intelligent door locks connected with the gateway does not reach the preset connection threshold value and the communication quality between the gateway and the intelligent door lock in the unpaired state reaches the preset quality threshold value, the connectable gateway establishes connection with the intelligent door lock in the unpaired state.
7. The intelligent door lock system according to claim 1, wherein whether the connection with the current gateway is dropped is determined by:
the intelligent door lock initiates a communication request to the current gateway every other preset time, and receives a reply signal sent by the current gateway aiming at the communication request;
and if the current gateway does not receive the reply signal for more than the preset times, the intelligent door lock judges that the connection between the intelligent door lock and the current gateway is disconnected.
8. The method for recombining the intelligent door locks is characterized by being applied to an intelligent door lock system, wherein the intelligent door lock system comprises a plurality of gateways and a plurality of intelligent door locks, each gateway is connected with a plurality of intelligent door locks, and the method comprises the following steps:
when the connection with the current gateway is disconnected, the intelligent door lock scans whether connectable gateways exist around;
if the connectable gateway exists, the intelligent door lock sets the working frequency band of the intelligent door lock as the working frequency band where the connectable gateway is located, changes the working state of the intelligent door lock into an unpaired state, and sends a connection request to the connectable gateway;
the connectable gateway is connected with the intelligent door lock in an unpaired state according to the connection request, and stores the identity information of the connected intelligent door lock;
when the connection with the current gateway is restored to the online state by disconnection, the current gateway is reconnected with the intelligent door lock of the original pairing, and the method comprises the following steps:
the current gateway scans surrounding connectable gateways, sends the stored identity information of the originally paired intelligent door locks to the connectable gateways, and sets the working frequency band of the current gateway as the original working frequency band;
the connectable gateway judges whether the intelligent door lock related to the current gateway exists in the connected intelligent door locks according to the identity information of the originally paired intelligent door locks;
if the intelligent door lock related to the current gateway exists, the connectable gateway sends a notification signal to the intelligent door lock related to the current gateway and disconnects the intelligent door lock related to the current gateway, and then the stored identity information of the intelligent door lock is updated according to the identity information of the disconnected intelligent door lock;
after receiving the notification signal, the intelligent door lock related to the current gateway sets the working frequency band of the intelligent door lock to be the original working frequency band, changes the working state of the intelligent door lock to be an unpaired state, and sends a connection request to the current gateway;
and the current gateway establishes connection with the intelligent door lock in an unpaired state in the original working frequency band according to the connection request, and updates the identity information of the intelligent door lock connected with the current gateway.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811386861.2A CN109361760B (en) | 2018-11-20 | 2018-11-20 | Intelligent door lock system and intelligent door lock recombination network method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811386861.2A CN109361760B (en) | 2018-11-20 | 2018-11-20 | Intelligent door lock system and intelligent door lock recombination network method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109361760A CN109361760A (en) | 2019-02-19 |
CN109361760B true CN109361760B (en) | 2021-04-13 |
Family
ID=65332439
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811386861.2A Active CN109361760B (en) | 2018-11-20 | 2018-11-20 | Intelligent door lock system and intelligent door lock recombination network method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109361760B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110474977B (en) * | 2019-08-13 | 2021-08-20 | 北京百佑科技有限公司 | Firmware upgrading method and system for intelligent door lock and intelligent door lock |
CN110535954B (en) * | 2019-09-02 | 2022-02-01 | 北京百佑科技有限公司 | Door lock firmware upgrading method, upgrading system, intelligent gateway and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7068401B2 (en) * | 2002-05-31 | 2006-06-27 | Hewlett-Packard Development Company, L.P. | Optical scanning apparatus having a carriage locking device |
WO2007093072A1 (en) * | 2006-02-16 | 2007-08-23 | Softwired Ag | Gateway for wireless mobile clients |
CN102747891A (en) * | 2012-07-13 | 2012-10-24 | 深圳市悦德智能科技有限公司 | Intelligent lock |
CN104637147A (en) * | 2015-01-30 | 2015-05-20 | 青岛海尔智能家电科技有限公司 | Method and device for searching network by triggering wireless communication module of fingerprint door lock |
CN105320050A (en) * | 2015-11-27 | 2016-02-10 | 奇瑞汽车股份有限公司 | Gateway-based vehicle function centralized control method |
CN106228662A (en) * | 2016-09-19 | 2016-12-14 | 北京达美盛软件股份有限公司 | A kind of Intelligent entrance guard control system and control method |
CN106658576A (en) * | 2016-10-19 | 2017-05-10 | 北京三快在线科技有限公司 | Data processing method, data processing device and network system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8375117B2 (en) * | 2010-04-28 | 2013-02-12 | Juniper Networks, Inc. | Using endpoint host checking to classify unmanaged devices in a network and to improve network location awareness |
-
2018
- 2018-11-20 CN CN201811386861.2A patent/CN109361760B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7068401B2 (en) * | 2002-05-31 | 2006-06-27 | Hewlett-Packard Development Company, L.P. | Optical scanning apparatus having a carriage locking device |
WO2007093072A1 (en) * | 2006-02-16 | 2007-08-23 | Softwired Ag | Gateway for wireless mobile clients |
CN102747891A (en) * | 2012-07-13 | 2012-10-24 | 深圳市悦德智能科技有限公司 | Intelligent lock |
CN104637147A (en) * | 2015-01-30 | 2015-05-20 | 青岛海尔智能家电科技有限公司 | Method and device for searching network by triggering wireless communication module of fingerprint door lock |
CN105320050A (en) * | 2015-11-27 | 2016-02-10 | 奇瑞汽车股份有限公司 | Gateway-based vehicle function centralized control method |
CN106228662A (en) * | 2016-09-19 | 2016-12-14 | 北京达美盛软件股份有限公司 | A kind of Intelligent entrance guard control system and control method |
CN106658576A (en) * | 2016-10-19 | 2017-05-10 | 北京三快在线科技有限公司 | Data processing method, data processing device and network system |
Non-Patent Citations (1)
Title |
---|
"智能家居门锁网关配置工具的设计与实现";孔令强,李迎春;《电子测量技术》;20171214;第40卷(第9期);第10-13页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109361760A (en) | 2019-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101340444B (en) | Fireproof wall and server policy synchronization method, system and apparatus | |
CN106652117B (en) | Method and system that dynamic password can unlock offline, mobile terminal, server | |
CN105916100B (en) | Method, device and communication system for acting heartbeat packet | |
US20100210242A1 (en) | Identification, authentication and coverage control method based on the bluetooth® standard | |
CN105682093A (en) | Wireless network access method and access device, and client | |
CN109361760B (en) | Intelligent door lock system and intelligent door lock recombination network method | |
US20140280865A1 (en) | Network-proximity-based eventing | |
CN106304141A (en) | Networking management method based on ZigBee-network and system | |
CN107749885B (en) | Intelligent equipment remote password management method and Lora intelligent equipment networking system | |
CN108810129A (en) | Internet of Things network control system and method, terminal device and local network services equipment | |
CN113327347A (en) | Intelligent door lock system and intelligent door lock recombination network method | |
CN101790155A (en) | Method, device and system for updating security algorithm of mobile terminal | |
CN110708357A (en) | Data management method, storage medium and system based on NB-IOT | |
CN112566104B (en) | Roaming coordination method based on Mesh network, wireless access point and storage medium | |
CN112004219B (en) | Remote network distribution optimizing method and system based on Bluetooth mesh | |
CN109347695A (en) | A kind of upgrade testing system and method | |
CN110602732B (en) | Wireless configuration parameter synchronization method, device, network equipment and computer readable storage medium | |
CN1333558C (en) | Method of creation of a new communication network by a wireless terminal and terminal implementing the method | |
CN108616433B (en) | State synchronization method, device, gateway equipment and storage medium | |
CN112381978A (en) | Bluetooth unlocking method, lock and storage medium | |
CN106162241A (en) | Deploy troops on garrison duty system and method for withdrawing a garrison based on the intelligence of DTV | |
CN114554522B (en) | Equipment control method and device, electronic equipment and medium | |
CN103442021A (en) | Network access method of wireless sensor nodes in centralized control type wireless sensor network | |
CN115714809B (en) | Mobile terminal tracking method, mobile terminal and readable storage medium | |
CN112738093B (en) | Multi-platform selection communication system of anti-theft lock |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |