Association method, device and equipment of smart home equipment
The Bluetooth Mesh network establishes a master-slave device relationship in smart home devices, solving the problem of multi-device control in offline scenarios, and improving the application and user experience of Bluetooth Mesh network.
Patent Information
- Application Number
- CN202310613594.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-11-26
AI Technical Summary
Existing Bluetooth Mesh smart home devices cannot achieve the correlation control of multiple devices in offline scenarios, which limits the practicality of Bluetooth Mesh network.
Get the device information of smart home devices through Bluetooth scanning, add it to the home Bluetooth Mesh network, determine the master device and slave device, establish an association relationship, and connect and control through the home Bluetooth Mesh network to realize the association control of multiple devices .
In the scenario where the cloud platform is not connected, the associated control of multiple smart home devices is implemented, which improves the practicality and user experience of the Bluetooth Mesh network and avoids complex operations.
Smart Images

Figure CN119031446A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Bluetooth communication technology, and in particular to methods, devices and equipment for associating smart home devices. Background Art
[0002] At present, Bluetooth Mesh smart home devices generally use cloud platforms to achieve the associated control of multiple devices. In offline scenarios, it is impossible to achieve the associated control of multiple devices at the same time, which limits the practicability of Bluetooth Mesh networks. For example, when the gateway is not connected to the cloud platform, setting the smart door lock to associate with the light switch, and automatically turning on the light when the smart door lock is opened, this scenario function cannot be realized at present.
[0003] Therefore, the related art lacks a method for associating smart home devices. Summary of the invention
[0004] The purpose of this application is to provide a method, device and equipment for associating smart home devices, so as to solve the problem that there is a lack of a method for associating smart home devices in related technologies in offline scenarios.
[0005] In a first aspect, the present application provides a method for associating smart home devices, which is applied to a terminal device, and the method includes:
[0006] In response to the device network access instruction, obtain device information of the smart home device through Bluetooth scanning, and add the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device;
[0007] In response to the device association instruction, determining a master device and at least one slave device that needs to establish an association with the master device from the smart home devices;
[0008] Based on the device information of the master device, the master device is connected through the home Bluetooth Mesh network, and the device information of the at least one slave device is sent to the master device through the home Bluetooth Mesh network, so that the master device establishes an association relationship with the at least one slave device through the home Bluetooth Mesh network based on the device information of the at least one slave device.
[0009] In a possible implementation, the method further includes:
[0010] In response to the delete association instruction, a delete association message including a target slave device identifier is sent to the master device via the home Bluetooth Mesh network, so that the master device deletes device information of a device corresponding to the target slave device identifier.
[0011] In a second aspect, the present application provides a smart home device control method, which is applied to smart home devices, and the method includes:
[0012] Sending device information of the smart home device to the terminal device via Bluetooth, so that the terminal device adds the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device;
[0013] After connecting to the terminal device through the home Bluetooth Mesh network, receiving device information of at least one slave device; wherein the device information of the slave device is sent after the terminal device determines the master device and at least one slave device that needs to establish an association with the master device from the smart home device;
[0014] Based on the device information of the at least one slave device, an association is established with the at least one slave device through the home Bluetooth Mesh network.
[0015] In a possible implementation manner, the method further includes:
[0016] After receiving a deletion association relationship message including a target slave device identifier sent by the terminal device through the home Bluetooth Mesh network, the device information of the device corresponding to the target slave device identifier is deleted.
[0017] In a possible implementation manner, after establishing association with the at least one slave device through the home Bluetooth Mesh network, the method further includes:
[0018] In response to the control instruction, perform the operation corresponding to the control instruction, and send the association control instruction to the slave device corresponding to the association relationship through the home Bluetooth Mesh network.
[0019] In a possible implementation, the method further includes:
[0020] If an association control instruction sent by other main devices is received through the home Bluetooth Mesh network, an operation corresponding to the association control instruction is performed, wherein the association control instruction is sent by the other main device after receiving the control instruction.
[0021] In a third aspect, the present application provides a smart home device association device, which is applied to a terminal device, and the device includes:
[0022] The device network access module is configured to scan and obtain device information of the smart home device through Bluetooth in response to the device network access instruction, and add the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device;
[0023] an association relationship determination module, configured to determine, in response to a device association instruction, a master device and at least one slave device that needs to establish an association with the master device from among the smart home devices;
[0024] The device information sending module is configured to connect to the master device through the home Bluetooth Mesh network based on the device information of the master device, and send the device information of the at least one slave device to the master device through the home Bluetooth Mesh network, so that the master device establishes an association relationship with the at least one slave device through the home Bluetooth Mesh network based on the device information of the at least one slave device.
[0025] In a possible implementation, the device further includes:
[0026] The association deletion module is configured to respond to the association deletion instruction and send a deletion association message containing the target slave device identifier to the master device through the home Bluetooth Mesh network, so that the master device deletes the device information of the device corresponding to the target slave device identifier.
[0027] In a fourth aspect, the present application provides a smart home device control device, which is applied to smart home devices, and the device includes:
[0028] A device access module is configured to send device information of a smart home device to a terminal device via Bluetooth, so that the terminal device adds the smart home device to a home Bluetooth Mesh network based on the device information of the smart home device;
[0029] A device information receiving module is configured to receive device information of at least one slave device after connecting to the terminal device through the home Bluetooth Mesh network; wherein the device information of the slave device is sent after the terminal device determines a master device and at least one slave device that needs to establish an association with the master device from the smart home device;
[0030] The association relationship establishing module is configured to establish an association with the at least one slave device through the home Bluetooth Mesh network based on the device information of the at least one slave device.
[0031] In a possible implementation, the device further includes:
[0032] The association relationship deletion module is configured to delete the device information of the device corresponding to the target slave device identifier after receiving the association relationship deletion message containing the target slave device identifier sent by the terminal device through the home Bluetooth Mesh network.
[0033] In a possible implementation manner, after establishing association with the at least one slave device through the home Bluetooth Mesh network, the method further includes:
[0034] The association relationship execution module is configured to respond to the control instruction, perform the operation corresponding to the control instruction, and send the association control instruction to the slave device corresponding to the association relationship through the home Bluetooth Mesh network.
[0035] In a possible implementation, the method further includes:
[0036] The association control instruction execution module is configured to perform an operation corresponding to the association control instruction if an association control instruction sent by other main devices is received through the home Bluetooth Mesh network, wherein the association control instruction is sent by the other main devices after receiving the control instruction.
[0037] In a fifth aspect, the present application provides an electronic device, including:
[0038] A display, used to display the PDF file;
[0039] A memory for storing executable instructions of the processor;
[0040] A processor is used to execute the executable instructions to implement the method for associating smart home devices as described in any one of the first and second aspects of the present application.
[0041] In a sixth aspect, the present application provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute a method for associating smart home devices as described in any one of the first and second aspects of the present application.
[0042] In a seventh aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements a method for associating smart home devices as described in any one of the first and second aspects of the present application.
[0043] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0044] In the present application, the terminal device configures the association relationship for the smart home devices with the association relationship, so that when the main device executes the operation corresponding to the control instruction, the slave device is notified to execute the operation corresponding to the associated control instruction, thereby realizing the association control of multiple smart home devices in the scenario where the cloud platform is not connected. It can be applied in different scenarios, avoiding complicated operations, improving the practicability of the Bluetooth Mesh network, and improving the user experience.
[0045] It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present application. Based on the common sense in the art, the above preferred conditions can be combined arbitrarily to obtain the preferred embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 A schematic diagram of an application scenario of the method for associating smart home devices provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of the overall process of the method for associating smart home devices provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram of smart home devices in a home Bluetooth Mesh network provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of different association relationships provided in the embodiments of the present application;
[0051] Figure 5 A schematic diagram of a terminal device and a home Bluetooth Mesh network provided in an embodiment of the present application;
[0052] Figure 6 Another schematic diagram of a terminal device and a home Bluetooth Mesh network provided in an embodiment of the present application;
[0053] Figure 7 Another schematic diagram of a terminal device and a home Bluetooth Mesh network provided in an embodiment of the present application;
[0054] Figure 8 A schematic diagram of the overall process of a method for associating smart home devices applied to smart home devices provided in an embodiment of the present application;
[0055] Fig. 9 Another schematic diagram of a terminal device and a home Bluetooth Mesh network provided in an embodiment of the present application;
[0056] Fig.10 A schematic diagram of the structure of a smart home device association device 1000 provided in an embodiment of the present application;
[0057] Fig.11A schematic diagram of the structure of a smart home device association device 1100 provided in an embodiment of the present application;
[0058] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0060] Furthermore, in the description of the embodiments of the present application, unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0061] In the following, the terms "first", "second", and "first" are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first", "second", or "first" may explicitly or implicitly include one or more of the features.
[0062] The following will introduce the method for associating smart home devices provided by the present application in conjunction with embodiments.
[0063] The inventive concept of the present application can be summarized as follows: first, obtain the device information of the smart home device through Bluetooth scanning, and add the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device, then determine the master device and at least one slave device that needs to establish an association with the master device from the smart home device, and finally, connect with the master device through the home Bluetooth Mesh network based on the device information of the master device, and send the device information of at least one slave device to the master device through the home Bluetooth Mesh network, so that the master device establishes an association relationship with the at least one slave device through the home Bluetooth Mesh network based on the device information of at least one slave device. The embodiment of the present application configures an association relationship for the smart home device with an association relationship through a terminal device, so that when the master device executes the operation corresponding to the control instruction, the slave device notifies the execution of the operation corresponding to the associated control instruction, thereby realizing the associated control of multiple smart home devices in a scenario where the cloud platform is not connected, and can be applied in different scenarios, thereby improving the practicability of the Bluetooth Mesh network and improving the user experience.
[0064] After introducing the main inventive ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0065] refer to Figure 1 , which is a schematic diagram of an application scenario of the method for associating smart home devices provided in an embodiment of the present application.
[0066] The figure includes: a terminal device 10 and a smart home device 20. The terminal device 10 is connected to the smart home device 20 via a Bluetooth Mesh network. Through the method for associating smart home devices in the embodiment of the present application, the terminal device can be used to establish an association relationship between the master device and at least one slave device that needs to be associated with the master device, thereby realizing the association control of multiple smart home devices in an offline scenario.
[0067] Only a single terminal device is described in detail in the description of this application, but it should be understood by those skilled in the art that the terminal device 10 and the smart home device 20 shown are intended to represent the operation of the terminal device and the smart home device involved in the technical solution of this application. The terminal device and the smart home device are described in detail at least for the convenience of explanation, and do not imply any limitation on the number, type or location of the terminal device and the smart home device. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed from it, the underlying concepts of the example embodiments of this application will not be changed.
[0068] It should be noted that the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1 The functions that can be implemented by each device in the application scenario shown will be described in the subsequent method embodiments, and will not be described in detail here.
[0069] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application.
[0070] Based on the above description, the embodiment of the present application provides a method for associating smart home devices, which is applied to terminal devices. The overall process is as follows: Figure 2 As shown, including the following:
[0071] In step 201, in response to a device access instruction, device information of smart home devices is acquired through Bluetooth scanning, and the smart home devices are added to the home Bluetooth Mesh network based on the device information of the smart home devices.
[0072] The above step 201 is the process of smart home device accessing the network, wherein the terminal device, as a network adapter, first turns on Bluetooth for scanning to obtain the device information of the smart home device, including that the user uses a mobile phone as a network adapter to create a Bluetooth Mesh network, including the network NetKey, AppKey, UUID, DevKey, and short address of the network adapter, but does not include WifiID, DeviceID, Mac and other information. However, the node information of this Bluetooth Mesh device will be added to the MeshNode, that is, the information of the scanned smart home device will be added to complete the creation of the home Bluetooth Mesh network.
[0073] In step 202, in response to a device association instruction, a master device and at least one slave device that needs to be associated with the master device are determined from smart home devices.
[0074] For example, Figure 3 This is a schematic diagram of smart home devices in a home Bluetooth Mesh network. The home Bluetooth Mesh network includes 4 smart home devices. According to the device association instruction, the smart home device determines that device 1 is the master device, and the slave device that needs to establish an association with device 1 is device 2.
[0075] It should be noted that the device association instruction is selected by the user according to different application scenarios, that is, the user determines the master device and slave device that need to establish an association relationship according to the needs. For example, in order to realize that the light is automatically turned on when the smart door lock is opened, this application needs to set the smart door lock to associate with the light switch. In the above application scenario, the master device is the smart door lock and the slave device is the light switch.
[0076] In a possible implementation, in different associations, the identities of the master device and the slave device are not fixed. For example, in association A, the master device is a smart door lock and the slave device is a light switch. In another association B, the master device may be a light switch and the slave device may be an electric curtain. Figure 4 As shown, the association relationship between the master device and the slave device is represented and distinguished by lines of different forms, the association relationship between device 1 and device 2 is represented by a solid line, in which the master device is device 1, the association relationship between device 2 and device 3 is represented by a dotted line, in which the master device is device 2, and the association relationship between device 4 and device 1 is represented by a double line, in which the master device is device 4. For the same device, in different association relationships involving the device, the device may be a master device or a slave device, which can meet the needs of different application scenarios.
[0077] In step 203, based on the device information of the master device, the master device is connected to the master device through the home Bluetooth Mesh network, and the device information of at least one slave device is sent to the master device through the home Bluetooth Mesh network, so that the master device establishes an association relationship with at least one slave device through the home Bluetooth Mesh network based on the device information of at least one slave device.
[0078] For example, Figure 5 This is a schematic diagram of a terminal device and a home Bluetooth Mesh network. After receiving a device association instruction and determining the master device and slave device that need to establish an association relationship, the terminal device needs to first connect to the home Bluetooth Mesh network and based on the device information of the master device, such as the master device is Figure 5 Device 1 in the home Bluetooth Mesh network is connected to the device 1, and the device information of the slave device is sent to the master device through the home Bluetooth Mesh network. For example, the slave device is Figure 5 Device 2 in the home Bluetooth Mesh network is used to establish an association relationship between device 1 and device 2 based on the device information of device 2.
[0079] It should be noted that if it is determined that a master device needs to establish associations with multiple slave devices, the terminal device sends the device information of the multiple slave devices to the master device through the home Bluetooth Mesh network, so that the master device establishes different associations with the multiple slave devices through the home Bluetooth Mesh network based on the device information of different slave devices. Figure 6 This is a schematic diagram of the terminal device and the home Bluetooth Mesh network. The main device is Figure 6 Device 1 in the home Bluetooth Mesh network is connected to the device 1, and the device information of the slave device is sent to the master device through the home Bluetooth Mesh network. Figure 6 Device 2 and device 3 in the home Bluetooth Mesh network are connected to device 2 and device 3, so that device 1 can establish association relationships with device 2 and device 3 respectively through the home Bluetooth Mesh network based on the device information of device 2 and device 3.
[0080] In a possible implementation, in order to delete some application scenarios, for example, when the master device is a light switch and the slave device is an electric curtain, the user wants to delete the association between the light and the electric curtain. The association existing in the master device can be deleted through the terminal device, specifically including the following steps:
[0081] In response to the delete association instruction, a delete association message including the target slave device identifier is sent to the master device via the home Bluetooth Mesh network, so that the master device deletes the device information of the device corresponding to the target slave device identifier.
[0082] For example, Figure 7 Schematic diagram of the terminal device and the home Bluetooth Mesh network. After the terminal device receives the delete association instruction and determines the master device and slave device that need to delete the association, the terminal device needs to first connect to the home Bluetooth Mesh network and based on the device information of the master device, such as the master device is Figure 7 Device 1 in the home Bluetooth Mesh network is connected to device 1, and a deletion association relationship message containing the target slave device identifier is sent to the master device through the home Bluetooth Mesh network. For example, the slave device is Figure 6 Device 2 in the device 1 is deleted, so that the device 1 deletes the device information of device 2, thereby ending the association relationship between device 1 and device 2.
[0083] In another possible implementation, the present application embodiment further provides a method for associating smart home devices, which is applied to smart home devices. The overall process is as follows: Figure 8 As shown, including the following:
[0084] In step 801, device information of the smart home device is sent to the terminal device via Bluetooth, so that the terminal device adds the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device.
[0085] In a possible implementation, after the terminal device starts Bluetooth scanning, the smart home device will send its own device information to the terminal device, so that the terminal device adds the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device.
[0086] In step 802, after connecting to the terminal device through the home Bluetooth Mesh network, device information of at least one slave device is received, wherein the device information of the slave device is sent after the terminal device determines the master device and at least one slave device that needs to establish an association with the master device from the smart home device.
[0087] In step 803, based on the device information of the at least one slave device, an association is established with the at least one slave device through the home Bluetooth Mesh network.
[0088] The above steps 802 and 803 mainly describe the process of establishing an association relationship between the smart home device as the master device and the slave device. Fig. 9 This is a schematic diagram of a terminal device and a home Bluetooth Mesh network. After connecting to the terminal device through the home Bluetooth Mesh network, the device information of the slave device is received, and based on the device information of the slave device, an association is established with at least one slave device through the home Bluetooth Mesh network, that is, the device information of the slave device is written into a private model. The private model is used to establish an association relationship between the master device and the slave device. For example, the master device is Fig. 9 Device 3 in the , the slave device is Fig. 9 Device 4 in the home, device 3 establishes an association relationship with device 4 through the home Bluetooth Mesh network based on the device information of device 4.
[0089] In a possible implementation, when the association relationship existing in the main device is deleted through the terminal device in the embodiment of the present application, the smart home device acting as the main device performs the following steps: after receiving the deletion association relationship message containing the target slave device identifier sent by the terminal device through the home Bluetooth Mesh network, the device information of the device corresponding to the target slave device identifier is deleted.
[0090] In a possible implementation manner, after the embodiment of the present application establishes an association with the at least one slave device through the home Bluetooth Mesh network, the specific implementation process of the association relationship is as follows:
[0091] Respond to the control instruction, perform the operation corresponding to the control instruction, and send the associated control instruction to the slave device corresponding to the associated relationship through the home Bluetooth Mesh network.
[0092] It should be noted that the control instructions are instructions at the physical control level. For example, for the association between the light switch and the electric curtain, only when the light switch is physically turned on and the light is turned on, the associated control instruction is sent to the slave device corresponding to the association (i.e., the electric curtain) through the home Bluetooth Mesh network, so that the electric curtain is closed, thus realizing the associated control of the light switch and the electric curtain, and meeting the user's needs for ensuring brightness and privacy when turning on the light.
[0093] In a possible implementation manner, a smart home device serving as a slave device in an association relationship performs the following steps:
[0094] If an association control instruction sent by other main devices is received through the home Bluetooth Mesh network, an operation corresponding to the association control instruction is performed, wherein the association control instruction is sent by other main devices after receiving the control instruction.
[0095] To summarize, the embodiment of the present application configures association relationships for smart home devices with associated relationships through terminal devices, so that when the main device executes the operation corresponding to the control instruction, the slave device is notified to execute the operation corresponding to the associated control instruction, thereby realizing the associated control of multiple smart home devices in a scenario where the cloud platform is not connected. It can be applied in different scenarios, avoiding complex operations, improving the practicability of the Bluetooth Mesh network, and improving the user experience.
[0096] Based on the same inventive concept, the present application also provides a smart home device association device, which is applied to a terminal device, such as Fig.10 As shown, the device 1000 includes:
[0097] The device network access module 1001 is configured to respond to the device network access instruction, obtain device information of the smart home device through Bluetooth scanning, and add the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device;
[0098] The association relationship determination module 1002 is configured to determine a master device and at least one slave device that needs to establish an association with the master device from the smart home devices in response to a device association instruction;
[0099] The device information sending module 1003 is configured to connect to the master device through the home Bluetooth Mesh network based on the device information of the master device, and send the device information of the at least one slave device to the master device through the home Bluetooth Mesh network, so that the master device establishes an association relationship with the at least one slave device through the home Bluetooth Mesh network based on the device information of the at least one slave device.
[0100] In a possible implementation, the device further includes:
[0101] The association deletion module is configured to respond to the association deletion instruction and send a deletion association message containing the target slave device identifier to the master device through the home Bluetooth Mesh network, so that the master device deletes the device information of the device corresponding to the target slave device identifier.
[0102] Based on the same inventive concept, the present application also provides a smart home device control device, which is applied to smart home devices, such as Fig.11 As shown, the device 1100 includes:
[0103] The device network access module 1101 is configured to send device information of the smart home device to the terminal device via Bluetooth, so that the terminal device adds the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device;
[0104] The device information receiving module 1102 is configured to receive device information of at least one slave device after connecting to the terminal device through the home Bluetooth Mesh network; wherein the device information of the slave device is sent after the terminal device determines a master device and at least one slave device that needs to establish an association with the master device from the smart home device;
[0105] The association relationship establishing module 1103 is configured to establish an association with the at least one slave device through the home Bluetooth Mesh network based on the device information of the at least one slave device.
[0106] In a possible implementation, the device further includes:
[0107] The association relationship deletion module is configured to delete the device information of the device corresponding to the target slave device identifier after receiving the association relationship deletion message containing the target slave device identifier sent by the terminal device through the home Bluetooth Mesh network.
[0108] In a possible implementation manner, after establishing association with the at least one slave device through the home Bluetooth Mesh network, the method further includes:
[0109] The association relationship execution module is configured to respond to the control instruction, perform the operation corresponding to the control instruction, and send the association control instruction to the slave device corresponding to the association relationship through the home Bluetooth Mesh network.
[0110] In a possible implementation, the method further includes:
[0111] The association control instruction execution module is configured to perform an operation corresponding to the association control instruction if an association control instruction sent by other main devices is received through the home Bluetooth Mesh network, wherein the association control instruction is sent by the other main devices after receiving the control instruction.
[0112] Refer to the following Fig.12 The electronic device 130 according to this embodiment of the present application is described. Fig.12 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0113] like Fig.12 As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).
[0114] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0115] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .
[0116] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0117] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0118] In an exemplary embodiment, the present application also provides a computer-readable storage medium including instructions, such as a memory 132 including instructions, and the above instructions can be executed by the processor 131 of the electronic device 130 to complete the above-mentioned smart home device association method. Optionally, the computer-readable storage medium can be a non-transitory computer-readable storage medium, 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.
[0119] In an exemplary embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by the processor 131, the method for associating smart home devices as provided in the present application is implemented.
[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0124] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for associating smart home devices, characterized in that: Applied to a terminal device, the method comprises: In response to the device network access instruction, obtain device information of the smart home device through Bluetooth scanning, and add the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device; In response to the device association instruction, determining a master device and at least one slave device that needs to establish an association with the master device from the smart home devices; Based on the device information of the master device, the master device is connected through the home Bluetooth Mesh network, and the device information of the at least one slave device is sent to the master device through the home Bluetooth Mesh network, so that the master device establishes an association relationship with the at least one slave device through the home Bluetooth Mesh network based on the device information of the at least one slave device.
2. The method according to claim 1, characterized in that The method further comprises: In response to the delete association instruction, a delete association message including a target slave device identifier is sent to the master device via the home Bluetooth Mesh network, so that the master device deletes device information of a device corresponding to the target slave device identifier.
3. A smart home device control method, characterized in that: Applied to smart home devices, the method includes: Sending device information of the smart home device to the terminal device via Bluetooth, so that the terminal device adds the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device; After connecting to the terminal device through the home Bluetooth Mesh network, receiving device information of at least one slave device; wherein the device information of the slave device is sent after the terminal device determines the master device and at least one slave device that needs to establish an association with the master device from the smart home device; Based on the device information of the at least one slave device, an association is established with the at least one slave device through the home Bluetooth Mesh network.
4. The method according to claim 3, characterized in that The method further comprises: After receiving a deletion association relationship message including a target slave device identifier sent by the terminal device through the home Bluetooth Mesh network, the device information of the device corresponding to the target slave device identifier is deleted.
5. The method according to claim 3, characterized in that: After establishing association with the at least one slave device through the home Bluetooth Mesh network, the method further includes: In response to the control instruction, perform the operation corresponding to the control instruction, and send the association control instruction to the slave device corresponding to the association relationship through the home Bluetooth Mesh network.
6. The method according to any one of claims 3 to 5, characterized in that: The method further comprises: If an association control instruction sent by other main devices is received through the home Bluetooth Mesh network, an operation corresponding to the association control instruction is performed, wherein the association control instruction is sent by the other main device after receiving the control instruction.
7. A device for associating smart home devices, characterized in that: Applied to a terminal device, the device comprises: The device network access module is configured to scan and obtain device information of the smart home device through Bluetooth in response to the device network access instruction, and add the smart home device to the home Bluetooth Mesh network based on the device information of the smart home device; an association relationship determination module, configured to determine, in response to a device association instruction, a master device and at least one slave device that needs to establish an association with the master device from among the smart home devices; The device information sending module is configured to connect to the master device through the home Bluetooth Mesh network based on the device information of the master device, and send the device information of the at least one slave device to the master device through the home Bluetooth Mesh network, so that the master device establishes an association relationship with the at least one slave device through the home Bluetooth Mesh network based on the device information of the at least one slave device.
8. A smart home equipment control device, characterized in that: Applied to smart home equipment, the device comprises: A device access module is configured to send device information of a smart home device to a terminal device via Bluetooth, so that the terminal device adds the smart home device to a home Bluetooth Mesh network based on the device information of the smart home device; A device information receiving module is configured to receive device information of at least one slave device after connecting to the terminal device through the home Bluetooth Mesh network; wherein the device information of the slave device is sent after the terminal device determines a master device and at least one slave device that needs to establish an association with the master device from the smart home device; The association relationship establishing module is configured to establish an association with the at least one slave device through the home Bluetooth Mesh network based on the device information of the at least one slave device.
9. An electronic device, characterized in that: include: Processor and memory; The memory is used to store the processor executable instructions; The processor is configured to execute the instructions to implement the method for associating smart home devices according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for associating smart home devices as described in any one of claims 1 to 6.
