Data synchronization method of smart home control system and smart home control system
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG REAL DESIGN INTELLIGENT TECH
- Filing Date
- 2023-06-06
- Publication Date
- 2026-08-07
AI Technical Summary
[0002]随着科技的快速发展,智能家居产品频繁出现在人们的日常生活中,为了更好地提高智能家居产品的智能化,用户往往需求远程控制智能家居产品的工作,相关技术中,用户若需要控制智能家居产品的工作,主要是通过用户终端设备的应用程序(APP)访问服务器以实现多设备登陆以及设备数据分享,这种方式往往需要依赖远程公网的服务器,对于信号质量要求较高,容易出现断网的风险,难以很好地解决用户终端设备同步智能家居设备数据的问题,降低智能家居控制系统的安全可靠性
[0040]根据本发明实施例提供的智能家居控制系统,至少具有如下有益效果:通过主终端设备与主语音控制盒组建蓝牙Mesh网络,能够提高智能家居控制系统中数据传输的稳定性,当主终端设备接收到设备分享指令,可以生成密钥信息以分享给待入网的子终端设备,待入网的子终端设备可以获取密钥信息,当待入网的子终端设备根据密钥信息向主语音控制盒发送第一地址请求指令,可以获得加入蓝牙Mesh网络的权限许可,并接收来自主语音控制盒分配的第一通信地址,使得子终端设备可以根据第一通信地址加入蓝牙Mesh网络,能够有效提高子终端设备的配网效率,由于主语音控制盒本地存储有设备同步信息,设备同步信息保存在本地的第一同步信息表内,子终端设备加入蓝牙Mesh网络后向主语音控制盒发送同步信息指令,能够将第一同步信息表同步到本地预置的第二同步信息表,即将设备同步信息同步至子终端设备,从而使得第二同步信息表内保存有蓝牙Mesh网络内所有智能家居设备的家居控制信息,进而使得子终端设备可以根据家居控制信息控制蓝牙Mesh网络中的智能家居设备,本发明可以在不依赖远程公网的服务器的情况下,实现高效的本地数据同步的目的,适用于多设备协同管理的智能家居控制系统,便于更多的子终端设备灵活控制智能家居设备,可以满足用户的个性化智能家居使用需求,提升智能家居控制系统的智能化程度和用户的使用体验感,另外,由于无需依赖服务器,在纯离线模式下多个终端设备可以共同使用该智能家居控制系统,有效节省服务器的成本投入,且不会出现断网等情况,有利于提高智能家居控制系统的安全可靠性。
Smart Images

Figure CN116723567B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home technology, and in particular to a data synchronization method and a smart home control system for a smart home control system. Background Technology
[0002] With the rapid development of technology, smart home products are frequently appearing in people's daily lives. In order to better improve the intelligence of smart home products, users often need to remotely control the operation of smart home products. In related technologies, if users need to control the operation of smart home products, they mainly access the server through the application (APP) of the user terminal device to realize multi-device login and device data sharing. This method often relies on a remote public network server, which has high requirements for signal quality and is prone to network outages. It is difficult to solve the problem of synchronizing smart home device data between user terminal devices, thus reducing the security and reliability of the smart home control system. Summary of the Invention
[0003] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a data synchronization method and a smart home control system, which can achieve efficient local data synchronization without relying on a remote public network server, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0004] In a first aspect, embodiments of the present invention provide a data synchronization method for a smart home control system, the smart home control system including a main terminal device and a main voice control box, the data synchronization method comprising:
[0005] The main terminal device and the main voice control box form a Bluetooth Mesh network;
[0006] In response to a device sharing command, the main terminal device generates key information, wherein the key information is used to provide permission to join the Bluetooth Mesh network;
[0007] The sub-terminal device to be connected to the network sends a first address request instruction to the main voice control box according to the key information, wherein the first address request instruction is used to request to obtain the first communication address of the sub-terminal device in the Bluetooth Mesh network;
[0008] When the sub-terminal device receives a first communication address assigned by the main voice control box, it joins the Bluetooth Mesh network according to the first communication address and sends a synchronization information command to the main voice control box.
[0009] In response to the synchronization information command, the main voice control box sends a first synchronization information table stored locally to the sub-terminal device, wherein the first synchronization information table is used to store device synchronization information, and the device synchronization information includes home control information of all smart home devices in the Bluetooth Mesh network;
[0010] The sub-terminal device synchronizes the first synchronization information table to a preset second synchronization information table, so as to control the smart home devices in the Bluetooth Mesh network according to the home control information in the second synchronization information table.
[0011] The data synchronization method for a smart home control system provided by the embodiments of the present invention has at least the following beneficial effects: The establishment of a Bluetooth Mesh network between the main terminal device and the main voice control box can improve the stability of data transmission in the smart home control system. When the main terminal device receives a device sharing instruction, it can generate key information to share with the sub-terminal device to be joined. The sub-terminal device to be joined can obtain the key information. When the sub-terminal device to be joined sends a first address request instruction to the main voice control box according to the key information, it can obtain permission to join the Bluetooth Mesh network and receive a first communication address assigned by the main voice control box. This allows the sub-terminal device to join the Bluetooth Mesh network according to the first communication address, effectively improving the network configuration efficiency of the sub-terminal device. Since the main voice control box locally stores device synchronization information, which is stored in a local first synchronization information table, after the sub-terminal device joins the Bluetooth Mesh network, it sends a synchronization information instruction to the main voice control box. This invention can synchronize a first synchronization information table to a locally preset second synchronization information table, that is, synchronize device synchronization information to the sub-terminal devices. This allows the second synchronization information table to store home control information for all smart home devices within the Bluetooth Mesh network. Consequently, the sub-terminal devices can control smart home devices in the Bluetooth Mesh network based on this home control information. This invention achieves efficient local data synchronization without relying on a remote public network server. It is suitable for smart home control systems with multi-device collaborative management, facilitating flexible control of smart home devices by more sub-terminal devices. It can meet users' personalized smart home usage needs, improve the intelligence level of the smart home control system, and enhance the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0012] The data synchronization methods described above also include:
[0013] When the device synchronization information in the first synchronization information table stored in the main voice control box is updated, the main voice control box updates the current first version number.
[0014] In the above data synchronization method, the device synchronization information further includes terminal device information. After the sub-terminal device joins the Bluetooth Mesh network according to the first communication address, the data synchronization method further includes:
[0015] The sub-terminal device sends the corresponding terminal device information to the main voice control box to update the first synchronization information table;
[0016] The sub-terminal device reads the first version number of the main voice control box and synchronously updates it to the local second version number.
[0017] The data synchronization methods described above also include:
[0018] The sub-terminal devices within the Bluetooth Mesh network compare the first version number and the second version number;
[0019] If the first version number and the second version number are inconsistent, a synchronization information instruction is sent to the main voice control box again to synchronize the first synchronization information table.
[0020] In the above data synchronization method, the home control information includes Bluetooth device information of each smart home device and room information of the control area covered by the Bluetooth Mesh network. Synchronizing the first synchronization information table to a preset second synchronization information table includes:
[0021] Obtain Bluetooth device information, room information, and terminal device information from the first synchronization information table;
[0022] The Bluetooth device information, the room information, and the terminal device information are stored in a preset second synchronization information table.
[0023] The data synchronization methods described above also include:
[0024] The main terminal device sends a permission revocation request to the main voice control box, wherein the permission revocation request is used to request the cancellation of the target sub-terminal device's operation permission;
[0025] The main voice control box deletes the terminal device information corresponding to the target sub-terminal device and updates the first version number;
[0026] When the target sub-terminal device determines that the local second version number and the first version number are inconsistent, the target sub-terminal device obtains the first synchronization information table from the main voice control box;
[0027] If the first synchronization information table does not contain terminal device information corresponding to the target sub-terminal device, the target sub-terminal device generates permission cancellation information and exits the Bluetooth Mesh network.
[0028] The data synchronization methods described above also include:
[0029] When the main terminal device receives a device configuration request from a smart home device to be connected to the network, it determines the device type of the smart home device based on the device configuration request;
[0030] The main terminal device sends a second address request instruction corresponding to the device type to the main voice control box;
[0031] In response to the second address request instruction, the main voice control box sends a second communication address to the main terminal device, and the main terminal device sends the second communication address to the smart home device;
[0032] The smart home device joins the Bluetooth Mesh network according to the second communication address and sends the Bluetooth device information corresponding to the smart home device to the main voice control box.
[0033] Secondly, embodiments of the present invention provide a smart home control system, including a main terminal device, a main voice control box, and several sub-terminal devices;
[0034] The main terminal device is used to form a Bluetooth Mesh network with the main voice control box;
[0035] The main terminal device is also used to generate key information in response to a device sharing command, wherein the key information is used to provide permission to join the Bluetooth Mesh network;
[0036] The sub-terminal device is configured to send a first address request instruction to the main voice control box according to the key information, wherein the first address request instruction is used to request to obtain the first communication address of the sub-terminal device in the Bluetooth Mesh network;
[0037] The sub-terminal device is also configured to, upon receiving a first communication address assigned by the main voice control box, join the Bluetooth Mesh network according to the first communication address and send a synchronization information instruction to the main voice control box;
[0038] The main voice control box is used to respond to the synchronization information command by sending a first synchronization information table stored locally to the sub-terminal device. The first synchronization information table is used to store device synchronization information, which includes home control information of all smart home devices in the Bluetooth Mesh network.
[0039] The sub-terminal device is further configured to synchronize the first synchronization information table to a preset second synchronization information table, so as to control smart home devices in the Bluetooth Mesh network according to the home control information in the second synchronization information table.
[0040] The smart home control system provided by the embodiments of the present invention has at least the following beneficial effects: By establishing a Bluetooth Mesh network between the main terminal device and the main voice control box, the stability of data transmission in the smart home control system can be improved. When the main terminal device receives a device sharing instruction, it can generate key information to share with the sub-terminal devices to be joined. The sub-terminal devices to be joined can obtain the key information. When the sub-terminal device to be joined sends a first address request instruction to the main voice control box according to the key information, it can obtain permission to join the Bluetooth Mesh network and receive a first communication address assigned by the main voice control box. This allows the sub-terminal device to join the Bluetooth Mesh network according to the first communication address, effectively improving the network configuration efficiency of the sub-terminal devices. Since the main voice control box locally stores device synchronization information, which is stored in a local first synchronization information table, after the sub-terminal device joins the Bluetooth Mesh network, it sends a synchronization information instruction to the main voice control box, which can... This invention synchronizes the first synchronization information table to a locally preset second synchronization information table, that is, it synchronizes device synchronization information to the sub-terminal devices. This ensures that the second synchronization information table stores home control information for all smart home devices within the Bluetooth Mesh network. Consequently, the sub-terminal devices can control smart home devices in the Bluetooth Mesh network based on this home control information. This invention achieves efficient local data synchronization without relying on a remote public network server. It is suitable for smart home control systems with multi-device collaborative management, facilitating flexible control of smart home devices by more sub-terminal devices. It can meet users' personalized smart home usage needs, improve the intelligence level of the smart home control system, and enhance the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0041] Thirdly, embodiments of the present invention provide a smart home control system, comprising:
[0042] Multiple processors;
[0043] Multiple storage devices are used to store computer-executable programs;
[0044] The data synchronization method described in the first aspect embodiment above is implemented when the computer executable program is executed by a plurality of the processors.
[0045] The smart home control system provided by the embodiments of the present invention has at least the following beneficial effects: By establishing a Bluetooth Mesh network between the main terminal device and the main voice control box, the stability of data transmission in the smart home control system can be improved. When the main terminal device receives a device sharing instruction, it can generate key information to share with the sub-terminal devices to be joined. The sub-terminal devices to be joined can obtain the key information. When the sub-terminal device to be joined sends a first address request instruction to the main voice control box according to the key information, it can obtain permission to join the Bluetooth Mesh network and receive a first communication address assigned by the main voice control box. This allows the sub-terminal device to join the Bluetooth Mesh network according to the first communication address, effectively improving the network configuration efficiency of the sub-terminal devices. Since the main voice control box locally stores device synchronization information, which is stored in a local first synchronization information table, after the sub-terminal device joins the Bluetooth Mesh network, it sends a synchronization information instruction to the main voice control box, which can... This invention synchronizes the first synchronization information table to a locally preset second synchronization information table, that is, it synchronizes device synchronization information to the sub-terminal devices. This ensures that the second synchronization information table stores home control information for all smart home devices within the Bluetooth Mesh network. Consequently, the sub-terminal devices can control smart home devices in the Bluetooth Mesh network based on this home control information. This invention achieves efficient local data synchronization without relying on a remote public network server. It is suitable for smart home control systems with multi-device collaborative management, facilitating flexible control of smart home devices by more sub-terminal devices. It can meet users' personalized smart home usage needs, improve the intelligence level of the smart home control system, and enhance the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0046] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the data synchronization method described in the first aspect of the embodiments above.
[0047] The computer-readable storage medium provided in the embodiments of the present invention has at least the following beneficial effects: By establishing a Bluetooth Mesh network between the main terminal device and the main voice control box, the stability of data transmission in the smart home control system can be improved. When the main terminal device receives a device sharing instruction, it can generate key information to share with the sub-terminal device to be joined. The sub-terminal device to be joined can obtain the key information. When the sub-terminal device to be joined sends a first address request instruction to the main voice control box according to the key information, it can obtain permission to join the Bluetooth Mesh network and receive a first communication address assigned by the main voice control box. This allows the sub-terminal device to join the Bluetooth Mesh network according to the first communication address, effectively improving the network configuration efficiency of the sub-terminal device. Since the main voice control box locally stores device synchronization information, which is stored in a local first synchronization information table, after the sub-terminal device joins the Bluetooth Mesh network, it sends a synchronization information instruction to the main voice control box, which can... This invention synchronizes the first synchronization information table to a locally preset second synchronization information table, that is, it synchronizes device synchronization information to the sub-terminal devices. This ensures that the second synchronization information table stores home control information for all smart home devices within the Bluetooth Mesh network. Consequently, the sub-terminal devices can control smart home devices in the Bluetooth Mesh network based on this home control information. This invention achieves efficient local data synchronization without relying on a remote public network server. It is suitable for smart home control systems with multi-device collaborative management, facilitating flexible control of smart home devices by more sub-terminal devices. It can meet users' personalized smart home usage needs, improve the intelligence level of the smart home control system, and enhance the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0048] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the description and the drawings. Attached Figure Description
[0049] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the technical solutions of the present invention, and do not constitute a limitation on the technical solutions of the present invention.
[0050] The present invention will be further described below with reference to the accompanying drawings and embodiments;
[0051] Figure 1This is a flowchart of the data synchronization method for the smart home control system provided in Embodiment 1 of the present invention;
[0052] Figure 2 This is a schematic diagram of the interactive structure of the smart home control system provided in Embodiment 2 of the present invention;
[0053] Figure 3 This is a flowchart of the data synchronization method for the smart home control system provided in Embodiment 3 of the present invention;
[0054] Figure 4 This is a flowchart of the data synchronization method for the smart home control system provided in Embodiment 4 of the present invention;
[0055] Figure 5 This is a flowchart of the data synchronization method for the smart home control system provided in Embodiment 5 of the present invention;
[0056] Figure 6 This is a flowchart of the data synchronization method for the smart home control system provided in Embodiment Six of the present invention;
[0057] Figure 7 This is a flowchart of the data synchronization method for the smart home control system provided in Embodiment 7 of the present invention;
[0058] Figure 8 This is a schematic diagram of a smart home control system provided in Embodiment 8 of the present invention. Detailed Implementation
[0059] This section will describe in detail specific embodiments of the present invention. Preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the drawings is to supplement the textual description with graphics, so that people can intuitively and vividly understand each technical feature and overall technical solution of the present invention, but they should not be construed as limiting the scope of protection of the present invention.
[0060] It should be understood that in the description of the embodiments of the present invention, the use of terms such as "first" and "second" is only for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of technical features indicated, or implicitly indicating the order of the technical features indicated. "At least one" means one or more; "more than" means two or more; "greater than," "less than," and "exceeding" are understood to exclude the stated number; "above," "below," and "within" are understood to include the stated number; "several" means one or more, unless otherwise explicitly defined. "And / or" describes the relationship between related objects, indicating that three relationships can exist. It can be understood that A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. Where A and B can be singular or plural.
[0061] Furthermore, unless otherwise explicitly specified and limited, the term "connection / linkage" should be interpreted broadly. For example, it can be a fixed or movable connection, a detachable or non-detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a connection that allows communication between them; it can be a direct connection or an indirect connection through an intermediate medium. It should be noted that although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown in the flowchart.
[0062] It should be noted that the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0063] With the rapid development of technology, smart home products are frequently appearing in people's daily lives. In order to better improve the intelligence of smart home products, users often need to remotely control the operation of smart home products. In related technologies, if users need to control the operation of smart home products, they mainly access the server through the application of the user terminal device to realize multi-device login and device data sharing. This method often relies on a remote public network server, which has high requirements for signal quality and is prone to network outages. It is difficult to solve the problem of synchronizing smart home device data between user terminal devices, thus reducing the security and reliability of the smart home control system.
[0064] Based on the above, embodiments of the present invention provide a data synchronization method for a smart home control system, a smart home control system, and a computer-readable storage medium. A main terminal device and a main voice control box form a Bluetooth Mesh network. In response to a device sharing command, the main terminal device generates key information, wherein the key information is used to provide permission to join the Bluetooth Mesh network. A sub-terminal device to be joined sends a first address request command to the main voice control box based on the key information, wherein the first address request command is used to request a first communication address for the sub-terminal device in the Bluetooth Mesh network. Upon receiving the first communication address assigned by the main voice control box, the sub-terminal device joins the Bluetooth Mesh network based on the first communication address and sends a synchronization information command to the main voice control box. In response to the synchronization information command, the main voice control box sends a first synchronization information table stored locally to the sub-terminal device, wherein the first synchronization information table is used to store... The device synchronization information includes home control information for all smart home devices within the Bluetooth Mesh network. Sub-terminal devices synchronize a first synchronization information table to a preset second synchronization information table, controlling the smart home devices in the Bluetooth Mesh network according to the home control information in the second synchronization information table. This invention achieves efficient local data synchronization without relying on a remote public network server, making it suitable for smart home control systems with multi-device collaborative management. It facilitates flexible control of smart home devices by more sub-terminal devices, meeting users' personalized smart home needs, enhancing the intelligence level of the smart home control system and the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0065] The embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0066] like Figure 1 As shown, a first aspect of the present invention provides a data synchronization method for a smart home control system, including but not limited to steps S110 to S160:
[0067] Step S110: The main terminal device and the main voice control box establish a Bluetooth Mesh network;
[0068] It's important to note that a Mesh network is a multi-node, decentralized, self-organizing, multi-hop wireless communication network. Any wireless device node in the network can act as a router, sending and receiving signals, and can dynamically maintain connections with other single or multiple nodes in any way. By employing the Bluetooth Mesh protocol, Bluetooth Mesh networks can be built. Within a Bluetooth Mesh network, except for battery-powered Bluetooth Low Energy (BLE) devices (BLE nodes) which lack relay functionality, other non-BLE nodes can perform relay and forwarding functions, resulting in longer wireless transmission distances and effectively solving communication problems in areas not covered by wired networks. Furthermore, compared to other wireless technologies, Bluetooth Low Energy technology consumes less power and is less expensive.
[0069] In one embodiment, the main voice control box includes a voice control module, a Bluetooth communication module, and a memory. The voice control module enables voice control of smart home devices within the smart home control system. The Bluetooth communication module enables Bluetooth networking communication with the main terminal device. The memory stores relevant data for all devices and control areas within the smart home control system. By setting up the main voice control box, local offline communication can be achieved, making it suitable for various application scenarios. In one embodiment, the Bluetooth communication module and the memory can be integrated onto a single chip.
[0070] It should be noted that the main terminal device is the master control device of the smart home control system, possessing the main operating permissions of the smart home control system, such as the permission to obtain and modify the data stored in the main voice control box, as well as the permission to control all devices within the Bluetooth Mesh network, and so on.
[0071] Step S120: In response to the device sharing command, the main terminal device generates key information, wherein the key information is used to provide permission to join the Bluetooth Mesh network;
[0072] The master terminal device can generate key information based on device sharing instructions. This key information is used to grant permission to join the Bluetooth Mesh network, thus facilitating the sharing of key information with other sub-terminal devices. The key information may include a network key and a communication key. The network key is used to access the Bluetooth Mesh network, and the communication key is used for communication with different devices within the Bluetooth Mesh network.
[0073] It should be noted that device sharing commands can be triggered by users. For example, when a user clicks the trigger button on the main terminal device's operation interface, a device sharing command can be generated.
[0074] like Figure 2As shown, in one embodiment, the main terminal device can encrypt its own network key and communication key using the AES256 encryption algorithm to obtain key information, then obtain the current time, and generate a sharing QR code based on the key information and the current time. The sub-terminal device can obtain the key information by scanning the sharing QR code.
[0075] Step S130: The sub-terminal device to be connected to the network sends a first address request instruction to the main voice control box according to the key information, wherein the first address request instruction is used to request to obtain the first communication address of the sub-terminal device in the Bluetooth Mesh network;
[0076] Once the sub-terminal device waiting to join the network obtains the key information, it can send a first address request command to the main voice control box to request the first communication address in the Bluetooth Mesh network.
[0077] Step S140: When the first communication address assigned by the main voice control box is received, the sub-terminal device joins the Bluetooth Mesh network according to the first communication address and sends a synchronization information command to the main voice control box;
[0078] It should be noted that when a sub-terminal device receives the first communication address, it can join the Bluetooth Mesh network based on that address. Since each device node within the Bluetooth Mesh network has relay and forwarding capabilities, the sub-terminal device can communicate with other devices after joining the network, facilitating data transmission between different devices. Furthermore, because the main voice control box locally stores home control information for smart home devices, the sub-terminal device sends synchronization commands to the main voice control box after joining the Bluetooth Mesh network, enabling it to subsequently obtain home control information and better control smart home devices.
[0079] Step S150: In response to the synchronization information command, the main voice control box sends the first synchronization information table stored locally to the sub-terminal device. The first synchronization information table is used to store device synchronization information, which includes home control information of all smart home devices in the Bluetooth Mesh network.
[0080] It should be noted that the main voice control box stores device synchronization information, which can be saved in a local first synchronization information table for easier information retrieval. The first synchronization information table can store different types of device synchronization information. In this embodiment, the device synchronization information includes home control information of all smart home devices in the Bluetooth Mesh network, which facilitates the subsequent local sharing of home control information.
[0081] Step S160: The sub-terminal device synchronizes the first synchronization information table to the preset second synchronization information table, so as to control the smart home devices in the Bluetooth Mesh network according to the home control information in the second synchronization information table.
[0082] It should be noted that by setting up a main voice control box and storing device synchronization information through the main voice control box, the effect of local synchronization of device information can be achieved, meeting the needs of information management. Sub-terminal devices can synchronize the first synchronization information table stored in the main voice control box to the locally preset second synchronization information table in real time. That is, the device synchronization information is synchronized to the local second synchronization information table, so that the second synchronization information table stores the home control information of all smart home devices in the Bluetooth Mesh network, thereby enabling local offline control of smart home devices in the Bluetooth Mesh network.
[0083] In one embodiment, the sub-terminal device can store the second synchronization information table in an application used to control the smart home control system, which facilitates more efficient control of smart home devices.
[0084] It should be noted that terminal devices may include, but are not limited to, smartphones, tablets, and computers.
[0085] According to the data synchronization method of the smart home control system provided in the embodiments of the present invention, the main terminal device and the main voice control box form a Bluetooth Mesh network, which can improve the stability of data transmission in the smart home control system. When the main terminal device receives a device sharing instruction, it can generate key information to share with the sub-terminal device to be joined to the network. The sub-terminal device to be joined to the network can obtain the key information. When the sub-terminal device to be joined to the network sends a first address request instruction to the main voice control box according to the key information, it can obtain permission to join the Bluetooth Mesh network and receive a first communication address assigned by the main voice control box, so that the sub-terminal device can join the Bluetooth Mesh network according to the first communication address, which can effectively improve the network configuration efficiency of the sub-terminal device. Since the main voice control box locally stores device synchronization information, the device synchronization information is stored in the local first synchronization information table. After the sub-terminal device joins the Bluetooth Mesh network, it sends a synchronization information instruction to the main voice control box, which can realize the first address request instruction. The first synchronization information table is synchronized to a locally preset second synchronization information table, that is, the device synchronization information is synchronized to the sub-terminal device. This ensures that the second synchronization information table stores home control information for all smart home devices within the Bluetooth Mesh network. Consequently, the sub-terminal device can control smart home devices in the Bluetooth Mesh network based on this home control information. This invention achieves efficient local data synchronization without relying on a remote public network server. It is suitable for smart home control systems with multi-device collaborative management, facilitating flexible control of smart home devices by more sub-terminal devices. It can meet users' personalized smart home usage needs, improve the intelligence level of the smart home control system, and enhance the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0086] It should be noted that this invention, by building a Bluetooth Mesh network and combining it with voice control technology, has strong scalability and high flexibility. It can not only effectively improve the control efficiency of the smart home control system, but also ensure efficient and accurate data synchronization.
[0087] In one embodiment, a user terminal can be selected as the main terminal device, and a communication address can be configured for the main terminal device. If a device to be configured with the network requests to be configured with the main terminal device, and it is determined that the device to be configured with the network is a voice control box, the main terminal device will identify the device to be configured with the network as the main voice control box and assign a communication address to the main voice control box.
[0088] The data synchronization method described above also includes the following steps:
[0089] When the device synchronization information in the first synchronization information table stored in the main voice control box is updated, the main voice control box updates the current first version number.
[0090] In this embodiment, the main voice control box is marked with a first version number, which is used to reflect the version information of the first synchronization information table. If the first synchronization information table stored in the main voice control box is modified, that is, the device synchronization information is updated, the main voice control box updates the current first version number, thereby enabling real-time updates of version information and effectively improving synchronization efficiency.
[0091] Specifically, when the device synchronization information in the first synchronization information table is updated, the first version number of the main voice control box is incremented by one, thereby enabling the synchronization update of the device synchronization information and the first version number.
[0092] like Figure 3 As shown, in the above data synchronization method, the device synchronization information also includes terminal device information. After the sub-terminal device joins the Bluetooth Mesh network according to the first communication address in step S140, the data synchronization method also includes, but is not limited to, steps S210 and S220:
[0093] Step S210: The sub-terminal device sends the corresponding terminal device information to the main voice control box to update the first synchronization information table;
[0094] Step S220: The sub-terminal device reads the first version number of the main voice control box and updates it to the local second version number.
[0095] In this embodiment, after the sub-terminal device joins the Bluetooth Mesh network, it can send its corresponding terminal device information to the main voice control box. The main voice control box saves the terminal device information in the first synchronization information table and updates the current first version number. At the same time, the sub-terminal device synchronizes the first synchronization information table to a preset second synchronization information table. The sub-terminal device can read the first version number of the main voice control box and update it to the local second version number. The second version number can be used to reflect the version information of the second synchronization information table, which facilitates subsequent comparison of version numbers to ensure the synchronization of information in the first and second synchronization information tables, effectively simplifying the synchronization process.
[0096] like Figure 4 As shown, the above data synchronization method also includes, but is not limited to, steps S310 and S320:
[0097] Step S310: The sub-terminal devices in the Bluetooth Mesh network compare the first version number and the second version number;
[0098] Step S320: When the first version number and the second version number are inconsistent, send a synchronization information command to the main voice control box again to synchronize the first synchronization information table.
[0099] In this embodiment, the Bluetooth Mesh network can connect to several sub-terminal devices. After the device synchronization information in the first synchronization information table is updated, the main voice control box will update the current first version number. All sub-terminal devices in the Bluetooth Mesh network can compare the first version number and the second version number to determine whether the version numbers are consistent. If the first version number and the second version number are inconsistent, it means that the information in the first synchronization information table has been modified. Then, a synchronization information command is sent to the main voice control box again to resynchronize the first synchronization information table. This ensures that the information in the second synchronization information table is up-to-date, which is beneficial to improving data synchronization efficiency. In addition, by initiating the synchronization information command only when the first version number and the second version number are inconsistent, repeated request operations are avoided, which can reduce data processing pressure and improve the stability of the smart home control system.
[0100] like Figure 5 As shown, in the above data synchronization method, the home control information includes Bluetooth device information of each smart home device and room information of the control area covered by the Bluetooth Mesh network. In step S160, the first synchronization information table is synchronized to a preset second synchronization information table, including but not limited to steps S410 and S420:
[0101] Step S410: Obtain Bluetooth device information, room information, and terminal device information from the first synchronization information table;
[0102] Step S420: Store the Bluetooth device information, room information, and terminal device information into a preset second synchronization information table.
[0103] In this embodiment, there are three types of device synchronization information: Bluetooth device information, room information, and terminal device information. During the data synchronization process of the sub-terminal device, the Bluetooth device information, room information, and terminal device information in the first synchronization information table can be obtained, and the Bluetooth device information, room information, and terminal device information can be stored in the preset second synchronization information table. This can achieve the effect of local synchronization of device information, thereby enabling better control of smart home devices in the Bluetooth Mesh network and communication and interaction with other devices.
[0104] It should be noted that smart home devices can include voice control boxes and Bluetooth smart devices. The voice control box communicates with the Bluetooth smart device and can forward data, facilitating better control of the Bluetooth smart device. Specifically, the voice control box can be divided into a main voice control box and a sub-voice control box. Room information is used to mark the various control areas covered by the Bluetooth Mesh network. For example, control areas can include the master bedroom, secondary bedroom, living room, balcony, bathroom, dining room, etc.
[0105] In one embodiment, the Bluetooth device information, room information, and terminal device information in the first synchronization information table can be stored in three different data tables for better data management. The Bluetooth device information may include device address, device type, multicast address, and device name; the room information may include room group address, room type, and room name; and the terminal device information may include terminal address. It should be noted that the group address is used for group control of a certain type of device. For example, if the living room occupies a group address for group control of the living room lights, it can achieve the effect of controlling all the living room lights to turn on. The device address and terminal address can use unicast addresses.
[0106] like Figure 6 As shown, the above data synchronization method also includes, but is not limited to, steps S510 to S540:
[0107] Step S510: The main terminal device sends a permission revocation request to the main voice control box, wherein the permission revocation request is used to request the cancellation of the target sub-terminal device's operation permission;
[0108] Step S520: The main voice control box deletes the terminal device information corresponding to the target sub-terminal device and updates the first version number;
[0109] Step S530: When the target sub-terminal device determines that the local second version number and the first version number are inconsistent, the target sub-terminal device obtains the first synchronization information table from the main voice control box;
[0110] Step S540: If the terminal device information corresponding to the target sub-terminal device does not exist in the first synchronization information table, the target sub-terminal device generates permission cancellation information and exits the Bluetooth Mesh network.
[0111] In this embodiment, the main terminal device has the function of canceling the operation permissions of the sub-terminal device. When the main terminal device sends a permission revocation request to the main voice control box to request the cancellation of the operation permissions of the target sub-terminal device, the main voice control box deletes the terminal device information corresponding to the target sub-terminal device stored locally, that is, updates the device synchronization information in the first synchronization information table and updates the first version number corresponding to the first synchronization information table. When the target sub-terminal device compares the local second version number with the first version number and determines that the second version number and the first version number are inconsistent, the target sub-terminal device obtains the first synchronization information table from the main voice control box. If the target sub-terminal device determines that its own terminal device information is not in the first synchronization information table, it generates permission cancellation information. This permission cancellation information is used to prompt the user that it does not have operation permissions. Then the target sub-terminal device exits the Bluetooth Mesh network and deletes the data originally stored in the local first synchronization information table. Since the main terminal device has the permission to change the information in the main voice control box, it can achieve the purpose of permission management for multiple sub-terminal devices, greatly improving the intelligence level of the smart home control system.
[0112] like Figure 7 As shown, the above data synchronization method also includes, but is not limited to, steps S610 to S640:
[0113] Step S610: When the main terminal device receives a device configuration request from a smart home device to be connected to the network, it determines the device type of the smart home device based on the device configuration request;
[0114] Step S620: The main terminal device sends a second address request instruction corresponding to the device type to the main voice control box;
[0115] Step S630: In response to the second address request instruction, the main voice control box sends the second communication address to the main terminal device, and the main terminal device sends the second communication address to the smart home device;
[0116] Step S640: The smart home device joins the Bluetooth Mesh network according to the second communication address and sends the Bluetooth device information corresponding to the smart home device to the main voice control box.
[0117] In this embodiment, if a smart home device to be connected to the network initiates a device configuration request to the main terminal device, this request is used to request joining the Bluetooth Mesh network. The main terminal device determines the device type of the smart home device based on the configuration request and sends a second address request instruction corresponding to the device type to the main voice control box to apply for a second communication address. This second communication address is the communication address of the smart home device in the Bluetooth Mesh network. The main voice control box sends the corresponding second communication address to the main terminal device based on the second address request instruction. The main terminal device sends the second communication address to the smart home device, enabling the smart home device to join the Bluetooth Mesh network based on the second communication address. At the same time, the smart home device sends its own Bluetooth device information to the main voice control box. The main voice control box can save the Bluetooth device information in the first synchronization information table for subsequent control of smart home devices in the Bluetooth Mesh network.
[0118] It should be noted that smart home devices can include two types of devices: voice control boxes and Bluetooth smart devices. Voice control boxes can be further divided into main voice control boxes and sub-voice control boxes. Sub-voice control boxes include a voice control module, a Bluetooth communication module, and a storage device. Bluetooth smart devices can include devices such as smart air conditioners, smart fans, and smart speakers.
[0119] In one embodiment, during the process of assigning addresses to smart home devices, different address ranges can be assigned according to different device types. For example, the address range 0x1000-0x6fff can be assigned to Bluetooth smart devices; the address range 0x7000-0x7fff can be assigned to voice control boxes, where 0x7000 can be assigned to the main voice control box and the other addresses to the sub-voice control boxes. Similarly, during the process of assigning addresses to terminal devices, 0x0001-0x0fff can be assigned to terminal devices, where 0x0001 can be assigned to the main terminal device and the other addresses to the sub-terminal devices. By assigning addresses to each device in the Bluetooth Mesh network according to different address ranges, the efficiency and accuracy of address allocation can be improved.
[0120] It should be noted that all information of the voice control boxes, Bluetooth smart devices, and terminal devices in the Bluetooth Mesh network is stored in the main voice control box, which facilitates better local offline communication. It can solve the problems of synchronizing device data and managing permissions for multiple user terminals without relying on a remote public network server, making it suitable for a variety of different application scenarios and helping to improve the intelligence level of the smart home control system.
[0121] like Figure 2As shown, a second aspect of the present invention provides a smart home control system, including a main terminal device, a main voice control box, and several sub-terminal devices;
[0122] The main terminal device is used to form a Bluetooth Mesh network with the main voice control box;
[0123] The main terminal device is also used to generate key information in response to device sharing instructions, wherein the key information is used to provide permission to join the Bluetooth Mesh network;
[0124] The sub-terminal device is used to send a first address request instruction to the main voice control box according to the key information, wherein the first address request instruction is used to request to obtain the first communication address of the sub-terminal device in the Bluetooth Mesh network;
[0125] The sub-terminal device is also used to join the Bluetooth Mesh network according to the first communication address when it receives the first communication address assigned by the main voice control box, and send a synchronization information command to the main voice control box.
[0126] The main voice control box is used to send the first synchronization information table stored locally to the sub-terminal device in response to the synchronization information command. The first synchronization information table is used to store device synchronization information, which includes home control information of all smart home devices in the Bluetooth Mesh network.
[0127] The sub-terminal device is also used to synchronize the first synchronization information table to a preset second synchronization information table, so as to control smart home devices in the Bluetooth Mesh network according to the home control information in the second synchronization information table.
[0128] According to the smart home control system provided in this embodiment of the invention, the main terminal device and the main voice control box form a Bluetooth Mesh network, which can improve the stability of data transmission in the smart home control system. When the main terminal device receives a device sharing instruction, it can generate key information to share with the sub-terminal device to be joined. The sub-terminal device to be joined can obtain the key information. When the sub-terminal device to be joined sends a first address request instruction to the main voice control box according to the key information, it can obtain permission to join the Bluetooth Mesh network and receive a first communication address assigned by the main voice control box. This allows the sub-terminal device to join the Bluetooth Mesh network according to the first communication address, which can effectively improve the network configuration efficiency of the sub-terminal device. Since the main voice control box locally stores device synchronization information, which is stored in a local first synchronization information table, after the sub-terminal device joins the Bluetooth Mesh network, it sends a synchronization information instruction to the main voice control box, which can transmit the first synchronization information. The information table is synchronized to a locally preset second synchronization information table, that is, the device synchronization information is synchronized to the sub-terminal device. This means that the second synchronization information table stores home control information for all smart home devices within the Bluetooth Mesh network. Consequently, the sub-terminal device can control smart home devices in the Bluetooth Mesh network based on this home control information. This invention achieves efficient local data synchronization without relying on a remote public network server. It is suitable for smart home control systems with multi-device collaborative management, facilitating flexible control of smart home devices by more sub-terminal devices. It can meet users' personalized smart home usage needs, improve the intelligence level of the smart home control system, and enhance the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0129] It should be noted that since the smart home control system of this embodiment can realize the data synchronization method of the smart home control system in the previous embodiment, the smart home control system of this embodiment and the data synchronization method of the smart home control system in the previous embodiment have the same technical principle and the same beneficial effect. In order to avoid repetition, it will not be described again here.
[0130] like Figure 8 As shown, a third aspect embodiment of the present invention provides a smart home control system 800, including: a plurality of processors 820; a plurality of memories 810 for storing computer-executable programs; the processors 820 and the memories 810 can be connected via a bus or other means. Figure 8 The diagram illustrates an example of a bus connection, where a data synchronization method as described in the first aspect embodiment is implemented when a computer executable program is executed by multiple processors 820, for example, implementing the method described above. Figure 1 Method steps S110 to S160 in the text Figure 3 Method steps S210 and S220 in the text Figure 4 Method steps S310 and S320 in the text Figure 5 Method steps S410 and S420, Figure 6 Method steps S510 to S540, and Figure 7 The method steps S610 to S640 are described above. By establishing a Bluetooth Mesh network between the main terminal device and the main voice control box, the stability of data transmission in the smart home control system can be improved. When the main terminal device receives a device sharing command, it can generate key information to share with the sub-terminal devices to be joined. The sub-terminal devices can obtain the key information. When the sub-terminal device sends a first address request command to the main voice control box based on the key information, it can obtain permission to join the Bluetooth Mesh network and receive a first communication address assigned by the main voice control box. This allows the sub-terminal device to join the Bluetooth Mesh network based on the first communication address, effectively improving the network configuration efficiency of the sub-terminal devices. Since the main voice control box locally stores device synchronization information in a local first synchronization information table, after the sub-terminal device joins the Bluetooth Mesh network, it sends a synchronization information command to the main voice control box, which synchronizes the first synchronization information table to the locally preset table. The second synchronization information table synchronizes device synchronization information to the sub-terminal devices. This ensures that the second synchronization information table stores home control information for all smart home devices within the Bluetooth Mesh network. Consequently, the sub-terminal devices can control smart home devices within the Bluetooth Mesh network based on this home control information. This invention achieves efficient local data synchronization without relying on a remote public network server. It is suitable for smart home control systems with multi-device collaborative management, facilitating flexible control of smart home devices by more sub-terminal devices. It can meet users' personalized smart home usage needs, improve the intelligence level of the smart home control system, and enhance the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0131] A fourth aspect of the present invention provides a computer-readable storage medium storing computer-executable instructions that can be used to cause a computer to perform the data synchronization method of the first aspect embodiment described above, for example, to perform the above-described... Figure 1 Method steps S110 to S160 in the text Figure 3 Method steps S210 and S220 in the text Figure 4Method steps S310 and S320 in the text Figure 5 Method steps S410 and S420, Figure 6 Method steps S510 to S540, and Figure 7 The method steps S610 to S640 are described above. By establishing a Bluetooth Mesh network between the main terminal device and the main voice control box, the stability of data transmission in the smart home control system can be improved. When the main terminal device receives a device sharing command, it can generate key information to share with the sub-terminal devices to be joined. The sub-terminal devices can obtain the key information. When the sub-terminal device sends a first address request command to the main voice control box based on the key information, it can obtain permission to join the Bluetooth Mesh network and receive a first communication address assigned by the main voice control box. This allows the sub-terminal device to join the Bluetooth Mesh network based on the first communication address, effectively improving the network configuration efficiency of the sub-terminal devices. Since the main voice control box locally stores device synchronization information in a local first synchronization information table, after the sub-terminal device joins the Bluetooth Mesh network, it sends a synchronization information command to the main voice control box, which synchronizes the first synchronization information table to the locally preset table. The second synchronization information table synchronizes device synchronization information to the sub-terminal devices. This ensures that the second synchronization information table stores home control information for all smart home devices within the Bluetooth Mesh network. Consequently, the sub-terminal devices can control smart home devices within the Bluetooth Mesh network based on this home control information. This invention achieves efficient local data synchronization without relying on a remote public network server. It is suitable for smart home control systems with multi-device collaborative management, facilitating flexible control of smart home devices by more sub-terminal devices. It can meet users' personalized smart home usage needs, improve the intelligence level of the smart home control system, and enhance the user experience. Furthermore, since it does not rely on a server, multiple terminal devices can jointly use the smart home control system in pure offline mode, effectively saving server costs and avoiding network outages, thus improving the security and reliability of the smart home control system.
[0132] It will be understood by those skilled in the art that Figure 2 , Figure 8 The structure of the smart home control system shown in the figure does not constitute a limitation on the embodiments of the present invention. It may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0133] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which may include computer storage media or non-transitory media and communication media or transient media. As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc DVD or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0134] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present invention.
Claims
1. A data synchronization method for a smart home control system, characterized in that, The smart home control system includes a main terminal device and a main voice control box, and the data synchronization method includes: The main terminal device and the main voice control box form a Bluetooth Mesh network; In response to a device sharing command, the main terminal device generates key information, wherein the key information is used to provide permission to join the Bluetooth Mesh network; The sub-terminal device to be connected to the network sends a first address request instruction to the main voice control box according to the key information, wherein the first address request instruction is used to request to obtain the first communication address of the sub-terminal device in the Bluetooth Mesh network; When the sub-terminal device receives a first communication address assigned by the main voice control box, it joins the Bluetooth Mesh network according to the first communication address and sends a synchronization information command to the main voice control box. In response to the synchronization information command, the main voice control box sends a first synchronization information table stored locally to the sub-terminal device, wherein the first synchronization information table is used to store device synchronization information, and the device synchronization information includes home control information of all smart home devices in the Bluetooth Mesh network; The sub-terminal device synchronizes the first synchronization information table to a preset second synchronization information table, so as to control the smart home devices in the Bluetooth Mesh network according to the home control information in the second synchronization information table; The data synchronization method further includes: When the device synchronization information in the first synchronization information table stored in the main voice control box is updated, the main voice control box updates the current first version number.
2. The data synchronization method according to claim 1, characterized in that, The device synchronization information also includes terminal device information. After the sub-terminal device joins the Bluetooth Mesh network according to the first communication address, the data synchronization method further includes: The sub-terminal device sends the corresponding terminal device information to the main voice control box to update the first synchronization information table; The sub-terminal device reads the first version number of the main voice control box and synchronously updates it to the local second version number.
3. The data synchronization method according to claim 2, characterized in that, Also includes: The sub-terminal devices within the Bluetooth Mesh network compare the first version number and the second version number; If the first version number and the second version number are inconsistent, a synchronization information instruction is sent to the main voice control box again to synchronize the first synchronization information table.
4. The data synchronization method according to claim 2, characterized in that, The home control information includes Bluetooth device information for each of the smart home devices and room information for the control area covered by the Bluetooth Mesh network. Synchronizing the first synchronization information table to a preset second synchronization information table includes: Obtain Bluetooth device information, room information, and terminal device information from the first synchronization information table; The Bluetooth device information, the room information, and the terminal device information are stored in a preset second synchronization information table.
5. The data synchronization method according to claim 3, characterized in that, Also includes: The main terminal device sends a permission revocation request to the main voice control box, wherein the permission revocation request is used to request the cancellation of the target sub-terminal device's operation permission; The main voice control box deletes the terminal device information corresponding to the target sub-terminal device and updates the first version number; When the target sub-terminal device determines that the local second version number and the first version number are inconsistent, the target sub-terminal device obtains the first synchronization information table from the main voice control box; If the first synchronization information table does not contain terminal device information corresponding to the target sub-terminal device, the target sub-terminal device generates permission cancellation information and exits the Bluetooth Mesh network.
6. The data synchronization method according to claim 1, characterized in that, Also includes: When the main terminal device receives a device configuration request from a smart home device to be connected to the network, it determines the device type of the smart home device based on the device configuration request; The main terminal device sends a second address request instruction corresponding to the device type to the main voice control box; In response to the second address request instruction, the main voice control box sends a second communication address to the main terminal device, and the main terminal device sends the second communication address to the smart home device; The smart home device joins the Bluetooth Mesh network according to the second communication address and sends the Bluetooth device information corresponding to the smart home device to the main voice control box.
7. A smart home control system, characterized in that, It includes the main terminal device, the main voice control box, and several sub-terminal devices; The main terminal device is used to form a Bluetooth Mesh network with the main voice control box; The main terminal device is also used to generate key information in response to a device sharing command, wherein the key information is used to provide permission to join the Bluetooth Mesh network; The sub-terminal device is configured to send a first address request instruction to the main voice control box according to the key information, wherein the first address request instruction is used to request to obtain the first communication address of the sub-terminal device in the Bluetooth Mesh network; The sub-terminal device is also configured to, upon receiving a first communication address assigned by the main voice control box, join the Bluetooth Mesh network according to the first communication address and send a synchronization information instruction to the main voice control box; The main voice control box is used to respond to the synchronization information command by sending a first synchronization information table stored locally to the sub-terminal device. The first synchronization information table is used to store device synchronization information, which includes home control information of all smart home devices in the Bluetooth Mesh network. When the device synchronization information in the first synchronization information table stored in the main voice control box is updated, the main voice control box updates the current first version number. The sub-terminal device is further configured to synchronize the first synchronization information table to a preset second synchronization information table, so as to control smart home devices in the Bluetooth Mesh network according to the home control information in the second synchronization information table.
8. A smart home control system, characterized in that, include: Multiple processors; Multiple storage devices are used to store computer-executable programs; The data synchronization method as described in any one of claims 1 to 6 is implemented when the computer executable program is executed by a plurality of the processors.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the data synchronization method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Intelligent terminal, remote controller, data synchronization method and electric appliance control system
CN110312219A
Method and system for synchronously expanding Topology information between Mesh devices
CN115396919A