Equipment linkage control method, device, door lock, gateway, server and system
By using the local Bluetooth gateway to coordinate control when the state of the smart door lock changes, the problem of frequent wake-up of WiFi modules when the smart door lock communicates with the cloud is solved, and real-time improvement of smart home scenes is achieved.
Patent Information
- Application Number
- CN202311443697.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2025-05-06
AI Technical Summary
When the existing smart door lock communicates with the cloud, the WiFi module needs to be awakened frequently, resulting in a long communication time and cannot meet the real-time requirements of smart homes.
When the state of the smart door lock changes, linkage control is performed through the local Bluetooth gateway to avoid frequent wake-up of the WiFi module and achieve rapid device linkage.
Through local communication between smart door locks and local Bluetooth gateways, the coordinated control of the target devices is quickly achieved, improving the real-timeness of smart home scenarios.
Smart Images

Figure CN119946098A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of smart home technology, and in particular to a device linkage control method, device, door lock, gateway, server and system. Background Art
[0002] In recent years, led by home automation equipment and smart door locks, the smart home security industry has also been developing rapidly. Smart door locks, smart cat eyes and other smart furniture devices, as key nodes in smart homes, serve as trigger sources for residents returning home or leaving home, and abnormal situation alarm scenarios. When the smart door lock detects a change in the door lock status, it can notify the cloud to control smart home appliances according to the smart door lock status. However, in related technologies, smart door locks usually communicate with the cloud via WiFi. In order to improve the battery life of smart door locks, the WiFi module of the door lock is usually in a non-active state. Each time the device is operated through the cloud, the WiFi module must be awakened to connect to the wireless router, and then connected to the cloud, resulting in a long communication time with the cloud, which cannot meet the real-time requirements of smart scenes. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a device linkage control method, device, door lock, gateway, server and system.
[0004] According to a first aspect of an embodiment of the present disclosure, a device linkage control method is provided, which is applied to a smart door lock, and the method includes:
[0005] When a state change of the smart door lock is detected, obtaining the door lock state of the smart door lock after the state change;
[0006] In the case where there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled by the Bluetooth gateway according to the state of the door lock.
[0007] Optionally, the linking control of the target device according to the door lock state by the Bluetooth gateway includes:
[0008] The door lock state is sent to a Bluetooth gateway, so that the Bluetooth gateway determines the target device and controls the target device to perform a linkage operation corresponding to the door lock state.
[0009] Optionally, the sending of the door lock state to a Bluetooth gateway, so that the Bluetooth gateway determines the target device and controls the target device to perform a linkage operation corresponding to the door lock state, includes:
[0010] The door lock status is sent to a Bluetooth gateway, and the Bluetooth gateway determines the linkage operation corresponding to the target device and the door lock status according to a preset linkage control strategy, and controls the target device to perform the linkage operation corresponding to the door lock status; wherein the linkage control strategy includes at least one target device that needs to be linked controlled under different door lock states and the linkage operation that needs to be performed by the at least one target device.
[0011] Optionally, the target device includes a Bluetooth device and / or a WiFi device.
[0012] Optionally, the method further comprises:
[0013] The door lock status is reported to the server, and the door lock status is used by the server to control the target device to perform the linkage operation corresponding to the door lock status when it is determined that there is no Bluetooth gateway in the space, and the target device is a WiFi device.
[0014] According to a second aspect of an embodiment of the present disclosure, a device linkage control method is provided, which is applied to a Bluetooth gateway, and the method includes:
[0015] Receiving a door lock status sent by a smart door lock, wherein the door lock status is obtained when the state of the smart door lock changes;
[0016] The target device in the space to which the smart door lock belongs is linked and controlled according to the door lock status.
[0017] Optionally, the linking control of a target device in the space to which the smart door lock belongs according to the door lock state includes:
[0018] Determining the target device according to the door lock state;
[0019] Control the target device to execute the linkage operation corresponding to the door lock state.
[0020] Optionally, determining the target device according to the door lock state includes:
[0021] The linkage operation corresponding to the target device and the door lock state is determined according to a preset linkage control strategy; wherein the linkage control strategy includes at least one target device that needs to be linkage controlled under different door lock states and the linkage operation that needs to be performed by the at least one target device.
[0022] Optionally, the target device includes a Bluetooth device and / or a WiFi device.
[0023] Optionally, the method further comprises:
[0024] After controlling the target device to perform the linkage operation, reporting the door lock state and the device state of the target device after performing the linkage operation to the server.
[0025] According to a third aspect of an embodiment of the present disclosure, a device linkage control method is provided, which is applied to a server, and the method includes:
[0026] Receive the first door lock state reported by the Bluetooth gateway and the device state after the target device performs the linkage operation; wherein the first door lock state is sent by the smart door lock to the Bluetooth gateway when the state of the smart door lock changes, and the device state is obtained after the Bluetooth gateway performs linkage control on the target device according to the door lock state;
[0027] The first door lock status and the device status are sent to a terminal device associated with the smart door lock.
[0028] Optionally, the target device includes a Bluetooth device and / or a WiFi device, and the method further includes:
[0029] Receiving a second door lock status reported by the smart door lock;
[0030] When the first door lock state is the same as the second door lock state and the reception time difference is less than a set duration, determining whether the first door lock state and the second door lock state correspond to the same door lock event;
[0031] When the first door lock state and the second door lock state correspond to the same door lock event, performing deduplication processing on the first door lock state and the second door lock state;
[0032] When the first door lock state and the second door lock state do not correspond to the same door lock event, the WiFi device is controlled to perform a linkage operation corresponding to the second door lock state.
[0033] Optionally, before receiving the first door lock state reported by the Bluetooth gateway and the device state after the target device performs the linkage operation, the method further includes:
[0034] Receive the second door lock status reported by the smart door lock;
[0035] Determine whether the Bluetooth gateway exists in the space to which the smart door lock belongs;
[0036] When the Bluetooth gateway does not exist in the space, the target device in the space to which the smart door lock belongs is linked and controlled according to the second door lock state, and the target device is a WiFi device.
[0037] According to a fourth aspect of an embodiment of the present disclosure, there is provided a device linkage control apparatus, which is applied to a smart door lock, and includes an acquisition module, which is configured to acquire the door lock state of the smart door lock after the state change when a state change of the smart door lock is detected;
[0038] The control module is configured to perform linkage control on the target device according to the state of the door lock through the Bluetooth gateway when there is a Bluetooth gateway in the space to which the smart door lock belongs.
[0039] According to a fifth aspect of an embodiment of the present disclosure, a device linkage control apparatus is provided, which is applied to a Bluetooth gateway, including:
[0040] A receiving module, configured to receive a door lock state sent by a smart door lock, wherein the door lock state is obtained when the state of the smart door lock changes;
[0041] The control module is configured to perform linkage control on the target device in the space to which the smart door lock belongs according to the door lock state.
[0042] According to a sixth aspect of an embodiment of the present disclosure, a device linkage control apparatus is provided, which is applied to a server and includes:
[0043] A receiving module is configured to receive a first door lock state reported by a Bluetooth gateway and a device state after a target device performs a linkage operation; wherein the first door lock state is sent by the smart door lock to the Bluetooth gateway when the state of the smart door lock changes, and the device state is obtained after the Bluetooth gateway performs linkage control on the target device according to the door lock state;
[0044] A sending module is configured to send the first door lock state and the device state to a terminal device associated with the smart door lock.
[0045] According to a seventh aspect of an embodiment of the present disclosure, there is provided a smart door lock, comprising:
[0046] processor;
[0047] a memory for storing a processor computer program;
[0048] The processor is configured to execute the computer program in the memory to implement the steps of any one of the methods in the first aspect of the present disclosure.
[0049] According to an eighth aspect of an embodiment of the present disclosure, a Bluetooth gateway is provided, including:
[0050] processor;
[0051] a memory for storing a processor computer program;
[0052] The processor is configured to execute the computer program in the memory to implement the steps of any one of the methods in the second aspect of the present disclosure.
[0053] According to a ninth aspect of an embodiment of the present disclosure, a server is provided, including:
[0054] processor;
[0055] a memory for storing a processor computer program;
[0056] The processor is configured to execute the computer program in the memory to implement the steps of any one of the methods in the third aspect of the present disclosure.
[0057] According to the tenth aspect of the embodiment of the present disclosure, a device linkage control system is provided, the system comprising the smart door lock described in the seventh aspect, the Bluetooth gateway described in the eighth aspect and the server described in the ninth aspect.
[0058] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0059] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0060] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0062] Figure 1 The figure is a schematic diagram showing a device linkage scenario according to an exemplary embodiment.
[0063] Figure 2 The present invention is a flowchart of a device linkage control method according to an exemplary embodiment.
[0064] Figure 3The present invention is a flowchart of a device linkage control method according to an exemplary embodiment.
[0065] Figure 4 The present invention is a flowchart of a device linkage control method according to an exemplary embodiment.
[0066] Figure 5 The present invention is a flowchart of a device linkage control method according to an exemplary embodiment.
[0067] Figure 6 The present invention is a flowchart of a device linkage control method according to an exemplary embodiment.
[0068] Figure 7 The present invention is a flowchart of a device linkage control method according to an exemplary embodiment.
[0069] Figure 8 The present invention is a block diagram of a device linkage control apparatus according to an exemplary embodiment.
[0070] Fig. 9 The present invention is a block diagram of a device linkage control apparatus according to an exemplary embodiment.
[0071] Fig.10 The present invention is a block diagram of a device linkage control apparatus according to an exemplary embodiment.
[0072] Fig.11 The present invention is a schematic diagram of a functional block diagram of an electronic device according to an exemplary embodiment.
[0073] Fig.12 It is a general structural block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0074] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0075] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0076] Figure 1 is a schematic diagram showing a device linkage scenario according to an exemplary embodiment. Figure 1As shown, the scenarios involved in the embodiments of the present disclosure include: a smart door lock 01, a Bluetooth gateway 02, one or more target devices to be controlled 03, and a server 04 in the cloud. Among them, the target device 03 may include a device that supports WiFi (hereinafter referred to as a WiFi device) and a device that supports Bluetooth (hereinafter referred to as a Bluetooth device). The Bluetooth gateway 02 may be a gateway device that integrates the Bluetooth wireless protocol and the WiFi protocol, and may support both WiFi and Bluetooth at the same time, and may establish a connection with a WiFi device via WiFi, and establish a connection with a Bluetooth device via Bluetooth, so that the WiFi device and the Bluetooth device may be controlled by the Bluetooth gateway 02. In various embodiments of the present disclosure, the Bluetooth device may be a BLE (Bluetooth Low Energy) device. The WiFi device may access the WiFi network provided by a local wireless router, thereby accessing the Internet through the wireless router, and thereby establishing a communication connection with the server 04 in the cloud. The server 04 may be a single server or a server cluster consisting of multiple servers. Optionally, the scenario may also include a terminal device 05, which may establish a binding relationship with the smart door lock 01, and the terminal device 05 may communicate with the cloud server 04 through a data network (e.g., a 4G or 5G network) or a WiFi network. The terminal device 05 may be a mobile phone, a tablet computer, a PC (personal computer), a smart wearable device (e.g., a smart watch, a smart bracelet, smart glasses, smart headphones, etc.), and other devices.
[0077] Figure 2 is a flow chart of a device linkage control method according to an exemplary embodiment. Figure 2 As shown, the device linkage control method is used for a smart door lock, comprising the following steps:
[0078] In step S11, when a state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained.
[0079] In one implementation, the smart door lock may be a smart cat-eye door lock, which may include two parts: a door lock end and a cat-eye end, wherein the door lock end may include a Bluetooth module and a door lock main control module, such as a door lock main control MCU (Microcontroller Unit), and the cat-eye end may include a WiFi module and a video processing module, and the modules may communicate with each other through a serial port, and optionally, the communication between the modules may be encrypted through a private protocol. Alternatively, the smart door lock may not include a smart cat-eye, and the smart door lock that does not include a smart cat-eye may include the above-mentioned Bluetooth module, door lock main control module, and WiFi module.
[0080] For example, when the door lock state changes (for example, the door lock is controlled by an APP on a terminal device to open / close the door or is unlocked by a door lock password, fingerprint, face recognition, etc.), the door lock main control MCU of the smart door lock sends the door lock state (for example, the current door lock state can be indicated by sending a door lock state event) to the Bluetooth module, and can also wake up the WiFi module to send the door lock state to the WiFi module, so that the Bluetooth module or the WiFi module can obtain the door lock state of the smart door lock after the state changes.
[0081] In step S12, when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled by the Bluetooth gateway according to the door lock status.
[0082] For example, the target device includes a Bluetooth device and / or a WiFi device. The space to which the smart door lock belongs may be the house to which the smart door lock belongs, or a scene consisting of a smart door lock and a smart home, a smart inn, a smart building, etc. If there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device can be linked and controlled according to the door lock status through the Bluetooth gateway.
[0083] Optionally, the above step S12 of controlling the target device in linkage according to the door lock state through the Bluetooth gateway may include:
[0084] The door lock status is sent to the Bluetooth gateway, which is used by the Bluetooth gateway to determine the target device and control the target device to perform linkage operations corresponding to the door lock status.
[0085] For example, after the smart door lock Bluetooth module obtains the door lock status after the state changes, the Bluetooth module sends the door lock status to the Bluetooth gateway through the Bluetooth connection between the Bluetooth gateway and the Bluetooth gateway. The Bluetooth gateway can determine the target device according to the door lock status and control the target device to perform corresponding linkage operations.
[0086] In one implementation, after receiving the door lock status, the Bluetooth module can encrypt the door lock status and send it out via Bluetooth. After receiving the encrypted data packet containing the door lock status, the Bluetooth gateway decrypts the encrypted data packet and executes the locally stored linkage control strategy according to the door lock status. The linkage control strategy contains different target devices corresponding to different door lock states and the operations that the target devices need to perform, so as to realize different intelligent linkage scenarios. It is worth mentioning that different door lock states can be represented by different door lock state events, such as different door lock state event IDs or event codes.
[0087] Optionally, the above-mentioned step of sending the door lock status to the Bluetooth gateway, for the Bluetooth gateway to determine the target device and control the target device to perform the linkage operation corresponding to the door lock status, may include the following steps: sending the door lock status to the Bluetooth gateway, for the Bluetooth gateway to determine the linkage operation corresponding to the target device and the door lock status according to a preset linkage control strategy, and controlling the target device to perform the linkage operation corresponding to the door lock status; wherein the linkage control strategy includes at least one target device that needs to be linked controlled under different door lock states and a linkage operation that needs to be performed by at least one target device.
[0088] For example, the above-mentioned linkage control strategy can be pre-set in the Bluetooth gateway. When the Bluetooth gateway receives the door lock status, it queries the linkage control strategy according to the door lock status to determine the target device corresponding to the door lock status and the linkage operation that the target device needs to perform, thereby controlling the target device to perform the corresponding linkage operation.
[0089] For example, the linkage control strategy may include: when the door lock state is unlocked, the corresponding smart light turns on, and when the Bluetooth gateway receives that the door lock state is unlocked, it can control the smart light to perform the light-on operation; or the linkage control strategy may also include: when the door lock state is that the door is not closed or the door is not closed after a timeout, the corresponding smart speaker broadcasts a voice prompt that the door is not closed, and when the Bluetooth gateway receives that the door lock state is not closed or the door is not closed after a timeout, it can control the smart speaker to broadcast a voice prompt that the door is not closed. Optionally, a linkage control strategy can also be set for a door lock state to correspond to multiple devices. For example, the linkage control strategy may include: when the door lock state is unlocked and the time is later than 6 pm, the corresponding smart light turns on, the curtains are closed, and the air conditioner is turned on when the temperature is higher than 30 degrees. If the Bluetooth gateway receives that the door lock state is unlocked after 6 pm, it controls the smart light to turn on, the curtains are closed, and the air conditioner is turned on when the room temperature is higher than 30 degrees (which can be obtained by connecting to the indoor temperature measurement device, or can be implemented by integrating the temperature sensor in the Bluetooth gateway, and the present disclosure does not make specific restrictions). For example, the Bluetooth gateway may control Bluetooth devices via Bluetooth, and / or control WiFi devices via a WiFi network provided by a local wireless router.
[0090] Optionally, in another implementation, the device linkage control method may further include:
[0091] Report the door lock status to the server. The door lock status is used by the server to control the target device to perform the linkage operation corresponding to the door lock status when the server determines that there is no Bluetooth gateway in the space. The target device is a WiFi device. The server can be Figure 1 Server 04 shown in .
[0092] For example, the WiFi module of the smart door lock connects to the server after being awakened. After successfully connecting to the server, the door lock status is reported to the server. When there is no Bluetooth gateway in the space where the smart door lock belongs, the server communicates with the WiFi device that serves as the target device (hereinafter referred to as the target WiFi device) through the wireless network, and controls the target WiFi device to perform linkage operations corresponding to the door lock status.
[0093] In one implementation, the Bluetooth gateway can establish a connection with the server through its own network module, such as a WiFi module or a communication module that supports a data network (such as 4G or 5G). The server can determine whether there is a Bluetooth gateway in the space to which the smart door lock belongs based on whether the Bluetooth gateway is connected. When it is determined that there is no Bluetooth gateway in the space based on the access status of the Bluetooth gateway, the server controls the target WiFi device to perform the linkage operation corresponding to the door lock status. After the linkage control of the target WiFi device is successful, the device status is reported to the server. For example, when the target WiFi device is a smart light, the device status may include turning the light on or off.
[0094] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0095] Figure 3 is a flow chart of a device linkage control method according to an exemplary embodiment. Figure 3 As shown, the device linkage control method is used in a Bluetooth gateway, comprising the following steps:
[0096] In step S21, the door lock status sent by the smart door lock is received, and the door lock status is obtained when the state of the smart door lock changes.
[0097] In step S22, the target device in the space to which the smart door lock belongs is linked and controlled according to the door lock status.
[0098] The methods in the above steps S21 to S22 have been introduced in the previous text. For details, please refer to the methods in steps S11 to S12, which will not be described in detail.
[0099] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0100] Figure 3 is a flow chart of a device linkage control method according to an exemplary embodiment. Figure 3 As shown, the linkage control of the target device in the space to which the smart door lock belongs according to the door lock state described in the above step S22 may include the following steps:
[0101] In step S221, the target device is determined according to the door lock state.
[0102] In step S222, the target device is controlled to perform a linkage operation corresponding to the door lock state.
[0103] The method in the above steps S221-S222 has been introduced in the previous text, and the specific method can be referred to Figure 2 The method described in the step of sending the door lock status to the Bluetooth gateway, which is used for the Bluetooth gateway to determine the target device and control the target device to perform the linkage operation corresponding to the door lock status, will not be repeated here.
[0104] Optionally, determining the target device according to the door lock status in the above step S221 may include the following steps: determining the linkage operation corresponding to the target device and the door lock status according to a preset linkage control strategy; wherein the linkage control strategy includes at least one target device that needs to be linked controlled under different door lock statuses and the linkage operation that needs to be performed by the at least one target device.
[0105] The use of linkage control strategy in the above steps has been introduced in the previous article. For details, please refer to Figure 2 The steps in the embodiment send the door lock status to the Bluetooth gateway, which is used for the Bluetooth gateway to determine the linkage operation corresponding to the target device and the door lock status according to the preset linkage control strategy, and control the target device to perform the linkage operation corresponding to the door lock status. The method described will not be repeated here.
[0106] Optionally, the target device includes a Bluetooth device and / or a WiFi device. The Bluetooth device and the WiFi device have been introduced above. Figure 2The corresponding methods described in the embodiments are not described in detail.
[0107] Optionally, the device linkage control method further includes:
[0108] After controlling the target device to perform the linkage operation, report the door lock status and the device status after the target device performs the linkage operation to the server.
[0109] For example, the Bluetooth gateway can establish a connection with the server through its own network module, such as a WiFi module or a communication module that supports a data network. After the linkage control of the Bluetooth device as the target device (hereinafter referred to as the target Bluetooth device) is successful, the target Bluetooth device reports the device status to the Bluetooth gateway, and the Bluetooth gateway reports the device status of the target Bluetooth device and the door lock status of the smart door lock to the server; after the linkage control of the target WiFi device is successful, the target WiFi device reports the device status of the target WiFi device to the server.
[0110] Figure 5 is a flow chart of a device linkage control method according to an exemplary embodiment. Figure 5 As shown, the device linkage control method is used in a server, and the method includes the following steps:
[0111] In step S31, the first door lock status reported by the Bluetooth gateway and the device status after the target device performs the linkage operation are received; wherein, the first door lock status is sent to the Bluetooth gateway by the smart door lock when the state of the smart door lock changes, and the device status is obtained after the Bluetooth gateway performs linkage control on the target device according to the door lock status.
[0112] The method in step S31 has been described above. Figure 3 The method described in the step of controlling the target device to perform the linkage operation and reporting the door lock status and the device status after the target device performs the linkage operation to the server in the embodiment will not be repeated.
[0113] In step S32, the first door lock status and device status are sent to a terminal device associated with the smart door lock.
[0114] For example, the smart door lock can be associated with the terminal device, for example, the smart door lock is bound to the APP and the corresponding account of the terminal device, and the binding relationship is stored in the server. The server can be the above-mentioned cloud server 04. When the linkage control of the target device is successful, the server sends the device status of the target device after the linkage control is executed to the terminal device bound to the smart door lock, as well as the first door lock status and the device status, so that the user can know the current device status of the target device and the door lock status of the smart door lock.
[0115] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0116] In one implementation, the target device includes a Bluetooth device and / or a WiFi device, and the target device can be linked and controlled according to the door lock state through a Bluetooth gateway. Figure 6 is a flow chart of a device linkage control method according to an exemplary embodiment. Figure 6 As shown, the method further comprises the following steps:
[0117] In step S33, the second door lock state reported by the smart door lock is received.
[0118] In step S34, when the first door lock state is the same as the second door lock state, it is determined whether the first door lock state and the second door lock state correspond to the same door lock event.
[0119] For example, when the door lock state of the smart door lock changes, the Bluetooth gateway and the smart door lock can both report the door lock state to the server. If the first door lock state and the second door lock state received by the two channels are the same, it can be determined that the first door lock state and the second door lock state correspond to the same door lock event.
[0120] In step S35, when the first door lock state and the second door lock state correspond to the same door lock event, deduplication processing is performed on the first door lock state and the second door lock state.
[0121] It is understandable that each time the door lock state of the smart door lock changes, a door lock state event will be triggered. Through the door lock state event, the smart door lock reports the door lock state event to the Bluetooth gateway so that the Bluetooth gateway knows the latest door lock state of the smart door lock. Similarly, the Bluetooth gateway can also send the received door lock state event to the server, and the server can also send the received door lock state event to the terminal device associated with the smart door lock, so that the server and the terminal device can also know the latest door lock state of the smart door lock according to the door lock state event. Therefore, in order to avoid the door lock state event received by the server being repeated, the server needs to identify the same door lock state event reported by different devices, and if there is the same door lock event, it can be deduplicated.
[0122] When the server determines that the first door lock state and the second door lock state correspond to the same door lock event, filtering and deduplication processing is performed. For example, in one implementation, each state change of the smart door lock generates a door lock state event, and each door lock state event corresponds to a door lock state event ID (or event code) and an event sequence number, wherein the door lock state event ID can represent the door lock state, and one door lock state corresponds to a unique door lock state event ID, such as: event ID1 indicates unlocking, event ID2 indicates opening the door, event ID3 indicates closing the door, event ID4 indicates locking, event 5 indicates that the door is not closed properly, etc.; a door lock state event corresponds to a unique event sequence number, and the same event sequence number can indicate the same door lock state event.
[0123] Therefore, when transmitting the door lock status, the Bluetooth gateway and the smart door lock can use the form of door lock status event ID plus event sequence number. Therefore, after the server obtains the door lock status event ID, it can determine the corresponding door lock status. When multiple door lock statuses received are the same, deduplication can be performed based on the event sequence number. When the door lock status event ID and event sequence number sent by the Bluetooth gateway received by the server are the same as the door lock status event ID and event sequence number sent by the smart door lock, deduplication can be performed. If the door lock status event ID is the same but the event sequence number is different, it can be determined that the door lock status is the same but does not correspond to the same door lock event.
[0124] For example, assuming that the Bluetooth gateway reports event ID1+event sequence number 1 to the server, after receiving event ID1, the server can determine that the first door lock state of the smart door lock is unlocked, and the smart door lock also reports event ID1+event sequence number 1. After receiving it, the server can determine that the second door lock state of the smart door lock is unlocked. The first door lock state is the same as the second door lock state, and the sequence numbers of event ID1 reported by the Bluetooth gateway and the smart door lock are both event sequence number 1. It can be determined that the first door lock state and the second door lock state correspond to the same door lock event, that is, the first door lock state and the second door lock state are the door lock states after the same door lock change, and deduplication processing can be performed to avoid repeated control of the target device.
[0125] For example, when the received first door lock state and the second door lock state do not correspond to the same door lock event, it can be understood that, for example, the Bluetooth gateway reports event ID1+event sequence number 1 to the server. After receiving event ID1, the server can determine that the first door lock state of the smart door lock is unlocked, and the smart door lock also reports event ID1+event sequence number 2. After receiving it, the server can determine that the second door lock state of the smart door lock is unlocked. Then the first door lock state is the same as the second door lock state, but the sequence numbers reported by the Bluetooth gateway and the smart door lock are event sequence numbers 1 and 2 respectively. Therefore, it can be determined that although the first door lock state and the second door lock state are both unlocked, they are not the door lock states after the same door lock change, but two different events. Therefore, it can be determined that the first door lock state and the second door lock state do not correspond to the same door lock event.
[0126] In another implementation, before receiving the first door lock state reported by the Bluetooth gateway and the device state after the target device performs the linkage operation, the target device can be linked controlled by the server according to the door lock state. Figure 7 is a flow chart of a device linkage control method according to an exemplary embodiment. Figure 7 As shown, the method further comprises the following steps:
[0127] In step S36, the second door lock state reported by the smart door lock is received.
[0128] In step S37, it is determined whether there is a Bluetooth gateway in the space to which the smart door lock belongs.
[0129] In step S38, when there is no Bluetooth gateway in the space, the target device in the space to which the smart door lock belongs is linked and controlled according to the second door lock state, and the target device is a WiFi device.
[0130] That is, if there is no Bluetooth gateway set up locally, the server can remotely control the WiFi device through the indoor wireless router for linkage control.
[0131] The method in the above steps S36 to S38 has been introduced in the previous text, and the specific method can be referred to Figure 2 The methods shown in the examples.
[0132] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0133] Figure 8 is a block diagram of a device linkage control apparatus according to an exemplary embodiment. Figure 8 , applied to smart door locks, the device linkage control device 800 includes: an acquisition module 810 and a control module 820.
[0134] The acquisition module 810 is configured to acquire the door lock state of the smart door lock after the state change when a state change of the smart door lock is detected.
[0135] The control module 820 is configured to perform linkage control on the target device according to the door lock status through the Bluetooth gateway when there is a Bluetooth gateway in the space to which the smart door lock belongs.
[0136] Optionally, the control module 820 is configured to: send the door lock status to a Bluetooth gateway, so that the Bluetooth gateway determines the target device and controls the target device to perform a linkage operation corresponding to the door lock status.
[0137] Optionally, the control module 820 is configured to: send the door lock status to the Bluetooth gateway, so that the Bluetooth gateway determines the linkage operation corresponding to the target device and the door lock status according to a preset linkage control strategy, and controls the target device to perform the linkage operation corresponding to the door lock status; wherein the linkage control strategy includes at least one target device that needs to be linked controlled under different door lock states and a linkage operation that needs to be performed by at least one target device.
[0138] Optionally, the target device includes a Bluetooth device and / or a WiFi device.
[0139] Optionally, the device linkage control apparatus 800 further includes a reporting module 830;
[0140] The reporting module 830 is configured to: report the door lock status to the server. The door lock status is used by the server to control the target device to perform the linkage operation corresponding to the door lock status when it is determined that there is no Bluetooth gateway in the space. The target device is a WiFi device.
[0141] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0142] Fig. 9 is a block diagram of a device linkage control apparatus according to an exemplary embodiment. Fig. 9 , applied to a Bluetooth gateway, the device linkage control device 900 includes: an acquisition module 910 and a control module 920.
[0143] The receiving module 910 is configured to receive the door lock status sent by the smart door lock, and the door lock status is obtained when the state of the smart door lock changes.
[0144] The control module 920 is configured to perform linkage control on the target device in the space to which the smart door lock belongs according to the door lock status.
[0145] Optionally, the control module 920 includes a determination submodule and a control submodule;
[0146] The determination submodule is configured to determine a target device according to a door lock state.
[0147] The control submodule is configured to control the target device to perform linkage operations corresponding to the door lock state.
[0148] Optionally, the determination submodule is configured as:
[0149] Determine the linkage operation corresponding to the target device and the door lock state according to a preset linkage control strategy; wherein the linkage control strategy includes at least one target device that needs to be linkage controlled under different door lock states and a linkage operation that needs to be executed by at least one target device.
[0150] Optionally, the target device includes a Bluetooth device and / or a WiFi device.
[0151] Optionally, the device linkage control apparatus 900 further includes a reporting module 930, which is configured to report the door lock state and the device state of the target device after the linkage operation is performed to the server after controlling the target device to perform the linkage operation.
[0152] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0153] Fig.10 is a block diagram of a device linkage control apparatus according to an exemplary embodiment. Fig.10 , applied to a server, the device linkage control apparatus 1000 includes: a receiving module 1010 and a sending module 1020.
[0154] The receiving module 1010 is configured to receive the first door lock status reported by the Bluetooth gateway and the device status after the target device performs a linkage operation; wherein, the first door lock status is sent by the smart door lock to the Bluetooth gateway when the state of the smart door lock changes, and the device status is obtained after the Bluetooth gateway performs linkage control on the target device according to the door lock status.
[0155] The sending module 1020 is configured to send a first door lock status and a device status to a terminal device associated with the smart door lock.
[0156] Optionally, the target device includes a Bluetooth device and / or a WiFi device, and the device linkage control apparatus 1000 further includes: a deduplication module;
[0157] The receiving module 1010 is also configured to receive a second door lock state reported by the smart door lock.
[0158] The deduplication module is configured to determine whether the first door lock state and the second door lock state correspond to the same door lock event when the first door lock state is the same as the second door lock state; and to deduplicate the first door lock state and the second door lock state when the first door lock state and the second door lock state correspond to the same door lock event.
[0159] Optionally, the device linkage control apparatus 1000 further includes: a control module;
[0160] The receiving module 1010 is also configured to receive a second door lock state reported by the smart door lock before receiving the first door lock state reported by the Bluetooth gateway and the device state after the target device performs the linkage operation;
[0161] The control module is configured to determine whether there is a Bluetooth gateway in the space to which the smart door lock belongs; when there is no Bluetooth gateway in the space, the target device in the space to which the smart door lock belongs is linked and controlled according to the second door lock state, and the target device is a WiFi device.
[0162] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0163] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0164] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the device linkage control method provided by the present disclosure are implemented.
[0165] The disclosed embodiment also provides a device linkage control system, the architecture of which can be as follows: Figure 1 As shown, the system includes: including: smart door lock 01, Bluetooth gateway 02, one or more target devices to be controlled 03 and cloud server 04; and optionally, terminal device 05 may also be included. The introduction of smart door lock 01, Bluetooth gateway 02, target device 03, server 04 and terminal device 05 has been described in the previous embodiment, and the specific method performed can refer to the device linkage control method shown in the previous embodiment, which will not be repeated.
[0166] Through the above technical solution, when the state change of the smart door lock is detected, the door lock state of the smart door lock after the state change is obtained; when there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled according to the door lock state through the Bluetooth gateway. When the state of the smart door lock changes, the door lock state can be sent to the local Bluetooth gateway, and the target device can be controlled to be linked according to the changed door lock state through the Bluetooth gateway, so that the linkage control of the target device can be quickly realized through the local communication between the smart door lock and the local Bluetooth gateway, thereby improving the real-time performance of the smart home scene.
[0167] Fig.11A functional block diagram of an electronic device 1100 is shown according to an exemplary embodiment. For example, the electronic device 1100 may be the above-mentioned terminal device, or the above-mentioned smart door lock, or the above-mentioned Bluetooth gateway, or a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0168] Reference Fig.11 , the electronic device 1100 may include one or more of the following components: a processing component 1102 , a memory 1104 , a power component 1106 , a multimedia component 1108 , an audio component 1110 , an input / output interface 1112 , a sensor component 1114 , and a communication component 1116 .
[0169] The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.
[0170] The memory 1104 is configured to store various types of data to support operations on the electronic device 1100. Examples of such data include instructions for any application or method operating on the electronic device 1100, contact data, phone book data, messages, pictures, videos, etc. The memory 1104 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0171] The power supply component 1106 provides power to various components of the electronic device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1100.
[0172] The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the electronic device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0173] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC), and when the electronic device 1100 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1104 or sent via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio signals.
[0174] The input / output interface 1112 provides an interface between the processing component 1102 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0175] The sensor assembly 1114 includes one or more sensors for providing various aspects of status assessment for the electronic device 1100. For example, the sensor assembly 1114 can detect the open / closed state of the electronic device 1100, the relative positioning of components, such as the display and keypad of the electronic device 1100, and the sensor assembly 1114 can also detect the position change of the electronic device 1100 or a component of the electronic device 1100, the presence or absence of user contact with the electronic device 1100, the orientation or acceleration / deceleration of the electronic device 1100, and the temperature change of the electronic device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0176] The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0177] In an exemplary embodiment, the electronic device 1100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0178] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1104 including instructions, and the instructions can be executed by a processor 1120 of the electronic device 1100 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0179] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programma Bluetooth Low Energy BLE Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC, system on chip or system-level chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned device linkage control method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned device linkage control method can be implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned device linkage control method.
[0180] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned device linkage control method when executed by the programmable device.
[0181] Fig.12 A block diagram of a server 1200 for device linkage control according to an exemplary embodiment is shown. For example, the server 1200 can be provided as the above-mentioned cloud server. Fig.12 The server 1200 includes a processing component 1222, which further includes one or more processors, and a memory resource represented by a memory 1232 for storing instructions executable by the processing component 1222, such as an application. The application stored in the memory 1232 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1222 is configured to execute instructions to perform the above-mentioned intelligent linkage control method.
[0182] The server 1200 may also include a power supply component 1226 configured to perform power management of the server 1200, a wired or wireless network interface 1250 configured to connect the server 1200 to a network, and an input / output interface 1258. The server 1200 may operate based on an operating system stored in the memory 1232.
[0183] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0184] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A device linkage control method, characterized in that: Applied to a smart door lock, the method comprises: When a state change of the smart door lock is detected, obtaining the door lock state of the smart door lock after the state change; In the case where there is a Bluetooth gateway in the space to which the smart door lock belongs, the target device is linked and controlled by the Bluetooth gateway according to the state of the door lock.
2. The method according to claim 1, characterized in that The linking control of the target device according to the door lock state by the Bluetooth gateway includes: The door lock state is sent to a Bluetooth gateway, so that the Bluetooth gateway determines the target device and controls the target device to perform a linkage operation corresponding to the door lock state.
3. The method according to claim 2, characterized in that The sending of the door lock state to the Bluetooth gateway, so that the Bluetooth gateway determines the target device and controls the target device to perform the linkage operation corresponding to the door lock state, includes: The door lock status is sent to a Bluetooth gateway, and the Bluetooth gateway determines the linkage operation corresponding to the target device and the door lock status according to a preset linkage control strategy, and controls the target device to perform the linkage operation corresponding to the door lock status; wherein the linkage control strategy includes at least one target device that needs to be linked controlled under different door lock states and the linkage operation that needs to be performed by the at least one target device.
4. The method according to claim 2 or 3, characterized in that: The target device includes a Bluetooth device and / or a WiFi device.
5. The method according to claim 1, characterized in that The method further comprises: The door lock status is reported to the server, and the door lock status is used by the server to control the target device to perform the linkage operation corresponding to the door lock status when it is determined that there is no Bluetooth gateway in the space, and the target device is a WiFi device.
6. A device linkage control method, characterized in that: Applied to a Bluetooth gateway, the method comprises: Receiving a door lock status sent by a smart door lock, wherein the door lock status is obtained when the state of the smart door lock changes; The target device in the space to which the smart door lock belongs is linked and controlled according to the door lock status.
7. The method according to claim 6, characterized in that The linking control of the target device in the space to which the smart door lock belongs according to the door lock state includes: Determining the target device according to the door lock state; Control the target device to execute the linkage operation corresponding to the door lock state.
8. The method according to claim 7, characterized in that The determining the target device according to the door lock state includes: The linkage operation corresponding to the target device and the door lock state is determined according to a preset linkage control strategy; wherein the linkage control strategy includes at least one target device that needs to be linkage controlled under different door lock states and the linkage operation that needs to be performed by the at least one target device.
9. The method according to claim 7 or 8, characterized in that: The target device includes a Bluetooth device and / or a WiFi device.
10. The method according to claim 6, characterized in that The method further comprises: After controlling the target device to perform the linkage operation, reporting the door lock state and the device state of the target device after performing the linkage operation to the server.
11. A device linkage control method, characterized in that: Applied to a server, the method comprises: Receive the first door lock state reported by the Bluetooth gateway and the device state after the target device performs the linkage operation; wherein the first door lock state is sent by the smart door lock to the Bluetooth gateway when the state of the smart door lock changes, and the device state is obtained after the Bluetooth gateway performs linkage control on the target device according to the door lock state; The first door lock status and the device status are sent to a terminal device associated with the smart door lock.
12. The method according to claim 11, characterized in that The target device includes a Bluetooth device and / or a WiFi device, and the method further includes: Receiving a second door lock status reported by the smart door lock; In a case where the first door lock state is the same as the second door lock state, determining whether the first door lock state and the second door lock state correspond to the same door lock event; When the first door lock state and the second door lock state correspond to the same door lock event, deduplication processing is performed on the first door lock state and the second door lock state.
13. The method according to claim 11, characterized in that Before receiving the first door lock state reported by the Bluetooth gateway and the device state after the target device performs the linkage operation, the method further includes: Receive the second door lock status reported by the smart door lock; Determine whether the Bluetooth gateway exists in the space to which the smart door lock belongs; When the Bluetooth gateway does not exist in the space, the target device in the space to which the smart door lock belongs is linked and controlled according to the second door lock state, and the target device is a WiFi device.
14. A device linkage control device, characterized in that: Applied to smart door locks, including: An acquisition module is configured to acquire the door lock state of the smart door lock after the state change when detecting the state change of the smart door lock; The control module is configured to perform linkage control on the target device according to the state of the door lock through the Bluetooth gateway when there is a Bluetooth gateway in the space to which the smart door lock belongs.
15. A device linkage control device, characterized in that: Applied to Bluetooth gateways, including: A receiving module, configured to receive a door lock state sent by a smart door lock, wherein the door lock state is obtained when the state of the smart door lock changes; The control module is configured to perform linkage control on the target device in the space to which the smart door lock belongs according to the door lock state.
16. A device linkage control device, characterized in that: Applicable to servers, including: A receiving module is configured to receive a first door lock state reported by a Bluetooth gateway and a device state after a target device performs a linkage operation; wherein the first door lock state is sent by the smart door lock to the Bluetooth gateway when the state of the smart door lock changes, and the device state is obtained after the Bluetooth gateway performs linkage control on the target device according to the door lock state; A sending module is configured to send the first door lock state and the device state to a terminal device associated with the smart door lock.
17. A smart door lock, characterized in that: include: processor; a memory for storing a processor computer program; The processor is configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 5.
18. A Bluetooth gateway, characterized in that: include: processor; a memory for storing a processor computer program; The processor is configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 6 to 10.
19. A server, characterized in that: include: processor; a memory for storing a processor computer program; The processor is configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 11 to 13.
20. A device linkage control system, characterized in that: include: The smart door lock described in claim 17, the Bluetooth gateway described in claim 18 and the server described in claim 19.