Intelligent home system control method and device based on cloud edge-end cooperation mechanism

CN117768262BActive Publication Date: 2026-08-21GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311799540.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2026-08-21
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

[0004]本发明实施例提供了一种基于云边端协同机制的智能家居系统控制方法及装置,以至少解决相关技术中智能家居系统中各mesh设备之间进行联动控制时,未考虑到mesh网络设备中各设备之间的云边端协同机制,使得mesh网络的稳定性较低的技术问题

Benefits of technology

[0024]在本发明实施例中,在接收到云边端发送的用于对智能家居系统中的一个或多个智能设备进行控制的控制指令集时,对控制指令集中各控制指令进行解析,得到各控制指令的控制对象,其中,云边端用于接收预定应用发送的控制指令集,并将控制指令集中的指令依次发送至云端,预定应用用于控制智能家居系统中的各个智能设备;在各控制指令的控制对象不同时,确定各控制指令中控制对象相同的多个第一控制指令,并确定各控制指令中控制对象不同的多个第二控制指令;确定多个第一控制指令中发送时间最晚的指令为目标控制指令,并对多个第二控制指令按照发送时间先后排序,得到排序后的多个第二控制指令;将目标控制指令和排序后的多个第二控制指令中的至少之一发送到云边端,以通过云边端将目标控制指令和排序后的多个第二控制指令中的至少之一发送到智能家居系统中对应的智能设备,以对智能家居系统中对应的智能设备进行控制。通过以上技术方案,达到了通过云端对云边端发送的用于对智能家居系统中的一个或多个智能设备进行控制的控制指令进行处理和分析,并将处理后的控制指令再通过云边端发送给对应的智能设备,以控制其执行动作的目的,实现了通过应用云边端协同机制来实现智能家居系统中各智能设备之间的联动控制,以提升mesh网络稳定性的技术效果,提高了各智能设备之间的通信效率和准确性,也提升了系统的整体性能,进而解决了相关技术中智能家居系统中各mesh设备之间进行联动控制时,未考虑到mesh网络设备中各设备之间的云边端协同机制,使得mesh网络的稳定性较低的技术问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117768262B_ABST
    Figure CN117768262B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on cloud edge-end collaborative mechanism's smart home system control method and device. Among them, the method includes: when receiving the control instruction set for controlling smart device sent by cloud edge-end, it is parsed, and the corresponding control object is obtained;When the control object of each control instruction is different, determine the first control instruction of the same control object and the second control instruction of the different control object;Determine the latest sending time in the first control instruction as target control instruction, and the second control instruction is sorted according to sending time;At least one of target control instruction and sorted second control instruction is sent to corresponding smart device to control smart device.The present application solves the technical problem that the stability of mesh network is low when the linkage control between each mesh device in the smart home system in the related art is not considered the cloud edge-end collaborative mechanism between each device in mesh network device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home system control, and in particular, to a method and device for controlling a smart home system based on a cloud-edge-end collaboration mechanism. Background Art

[0002] In a network offline state, when a central mesh device in a mesh network receives an action event of a mesh device through the mesh network, it obtains scene linkage information; then, based on the received action event and the obtained scene linkage information, edge computing is performed to determine, from the remaining mesh devices, the mesh devices that need to report the action event to complete the linkage of the linkage scene, and an action instruction for the linkage mesh device is generated, and the generated action instruction is broadcast to the mesh network for the linkage mesh device to perform corresponding linkage actions according to the action instruction, so that without an external network, linkage control can be realized locally on the mesh device relying on the mesh network to improve the reliability of the linkage control. However, when performing linkage control between each mesh device, the cloud-edge-end collaboration mechanism between each device in the mesh network device is not considered.

[0003] Regarding the problem that when performing linkage control between each mesh device in the smart home system in the above related technology, the cloud-edge-end collaboration mechanism between each device in the mesh network device is not considered, resulting in a low stability of the mesh network, no effective solution has been proposed yet. Summary of the Invention

[0004] Embodiments of the present invention provide a method and device for controlling a smart home system based on a cloud-edge-end collaboration mechanism, so as to at least solve the technical problem that when performing linkage control between each mesh device in the smart home system in the related technology, the cloud-edge-end collaboration mechanism between each device in the mesh network device is not considered, resulting in a low stability of the mesh network.

[0005] According to one aspect of the present invention, a smart home system control method based on a cloud-edge-device collaborative mechanism is provided, comprising: upon receiving a set of control instructions sent by a cloud-edge device for controlling one or more smart devices in a smart home system, parsing each control instruction in the set of control instructions to obtain the control object of each control instruction, wherein the cloud-edge device is configured to receive the set of control instructions sent by a predetermined application and sequentially send the instructions in the set of control instructions to the cloud, and the predetermined application is configured to control each smart device in the smart home system; when the control objects of the control instructions are different, determining that the control objects of the control instructions are the same. The system receives multiple first control commands and determines multiple second control commands with different controlled objects among the control commands. It then determines the command with the latest sending time among the multiple first control commands as the target control command and sorts the multiple second control commands according to their sending time to obtain sorted multiple second control commands. At least one of the target control command and the sorted multiple second control commands is sent to the cloud-edge terminal, so that the target control command and at least one of the sorted multiple second control commands can be sent to the corresponding smart device in the smart home system through the cloud-edge terminal, thereby controlling the corresponding smart device in the smart home system.

[0006] Optionally, the smart home system control method based on the cloud-edge-device collaboration mechanism further includes: obtaining the area of ​​the region where the smart home system is located; obtaining the installation location information of each smart device in the smart home system; determining the number and location of routers used for communication between the smart devices in the region where the smart home system is located based on the area and the installation location information; determining the networking mode of each smart device based on the number and the location; and constructing a mesh network corresponding to the smart home system according to the networking mode, wherein the mesh network is used for communication between the smart home system and the cloud, the cloud-edge-device, and the terminal devices corresponding to the predetermined application.

[0007] Optionally, each control instruction includes a device type identifier bit. Parsing each control instruction in the control instruction set to obtain the control object of each control instruction includes: parsing each control instruction in the control instructions to obtain device identifier information at the device type identifier bit of each control instruction; and determining the control object of each control instruction based on the device identifier information.

[0008] Optionally, before sending the target control command and at least one of the sorted plurality of second control commands to the cloud-edge terminal to send the target control command and at least one of the sorted plurality of second control commands to the corresponding smart device in the smart home system via the cloud-edge terminal, the smart home system control method based on the cloud-edge terminal collaboration mechanism further includes: acquiring the current state data of the controlled object of each control command sent by the cloud-edge terminal, wherein the cloud-edge terminal acquires and sends the current state data after sending the control command set to the cloud; analyzing the current state data to obtain analysis results; and adjusting at least one of the target control command and the sorted plurality of second control commands according to the analysis results.

[0009] Optionally, the smart home system control method based on the cloud-edge-device collaboration mechanism further includes: acquiring device status change information in the smart home system; synchronizing the device status change information to the cloud-edge-device, and synchronizing the device status change information to other smart devices other than the device corresponding to the device status change information through the cloud-edge-device.

[0010] Optionally, the smart home system control method based on the cloud-edge-device collaboration mechanism further includes: acquiring images captured by an image acquisition device in the area where the smart home system is located; analyzing the images to obtain analysis results; when the analysis results indicate that there is no target object in the area where the smart home system is located, generating a third control command, and sending the third control command to some smart devices in the smart home system through the cloud-edge-device connection, so that the some smart devices respond to the third control command, wherein the third control command is used to control the some smart devices to perform a shutdown action, and the some smart devices are devices that the smart home system does not need to be in a real-time running state.

[0011] Optionally, the smart home system control method based on the cloud-edge-device collaboration mechanism further includes: upon receiving a set of control instructions sent by the cloud-edge-device for controlling one or more smart devices in the smart home system, parsing each control instruction in the set of control instructions to obtain the control content of each control instruction; determining abnormal instructions in each control instruction based on the control content of each control instruction and the functional information, linkage information, and current environmental information of each smart device in the smart home system; and correcting the abnormal instructions based on the functional information, linkage information, and current environmental information of each smart device in the smart home system.

[0012] Optionally, after sending at least one of the target control command and the sorted plurality of second control commands to the cloud-edge terminal to send the target control command and the sorted plurality of second control commands to the corresponding smart device in the smart home system via the cloud-edge terminal to control the corresponding smart device in the smart home system, the smart home system control method based on the cloud-edge terminal collaboration mechanism further includes: receiving the execution result of the control object on at least one of the target control command and the sorted plurality of second control commands sent by the cloud-edge terminal, wherein the control object sends the execution result to the cloud-edge terminal after executing the target control command and the sorted plurality of second control commands; analyzing the execution result to obtain an analysis result, wherein the analysis result represents the response efficiency of the control object on at least one of the target control command and the sorted plurality of second control commands; and storing the analysis result.

[0013] According to another aspect of the present invention, a smart home system control device based on a cloud-edge-device collaborative mechanism is also provided, comprising: a parsing unit, configured to parse each control instruction in the control instruction set for controlling one or more smart devices in a smart home system when receiving a control instruction set sent by a cloud-edge device, to obtain the control object of each control instruction, wherein the cloud-edge device is configured to receive the control instruction set sent by a predetermined application and sequentially send the instructions in the control instruction set to the cloud, and the predetermined application is configured to control each smart device in the smart home system; and a first determining unit, configured to determine that the control objects in each control instruction are similar when the control objects of the control instructions are different. The system comprises: a first control command, and a second control command with different controlled objects; a second determining unit, configured to determine the latest sent command among the first control commands as the target control command, and to sort the second control commands according to their sent time to obtain the sorted second control commands; and a sending unit, configured to send at least one of the target control command and the sorted second control commands to the cloud-edge terminal, so as to send the target control command and at least one of the sorted second control commands to the corresponding smart device in the smart home system through the cloud-edge terminal, so as to control the corresponding smart device in the smart home system.

[0014] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a first acquisition unit, used to acquire the area of ​​the region where the smart home system is located; a second acquisition unit, used to acquire the installation location information of each smart device in the smart home system; a third determination unit, used to determine the number and location of routers used for communication between the smart devices in the region where the smart home system is located, based on the area and the installation location information; a fourth determination unit, used to determine the networking mode of each smart device based on the number and the location; and a construction unit, used to construct a mesh network corresponding to the smart home system according to the networking mode, wherein the mesh network is used for communication between the smart home system and the cloud, the cloud-edge-device, and the terminal devices corresponding to the predetermined application.

[0015] Optionally, the parsing unit includes: an acquisition module, configured to parse each control instruction in the control instructions to obtain device identification information at the device type identifier bit of each control instruction; and a determination module, configured to determine the control object of each control instruction based on the device identification information.

[0016] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a third acquisition unit, configured to acquire current state data of the controlled object of each control instruction sent by the cloud-edge terminal before sending the target control instruction and at least one of the sorted plurality of second control instructions to the cloud-edge terminal to send the target control instruction and at least one of the sorted plurality of second control instructions to the corresponding smart device in the smart home system via the cloud-edge terminal, wherein the cloud-edge terminal acquires and sends the current state data after sending the control instruction set to the cloud; a fourth acquisition unit, configured to analyze the current state data to obtain analysis results; and an adjustment unit, configured to adjust at least one of the target control instruction and the sorted plurality of second control instructions according to the analysis results.

[0017] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a fifth acquisition unit, used to acquire device status change information in the smart home system; and a synchronization unit, used to synchronize the device status change information to the cloud-edge-device, and to synchronize the device status change information to other smart devices other than the device corresponding to the device status change information through the cloud-edge-device.

[0018] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a sixth acquisition unit, used to acquire images captured by an image acquisition device in the area where the smart home system is located; a seventh acquisition unit, used to analyze the images and obtain analysis results; and a generation unit, used to generate a third control command when the analysis results indicate that there is no target object in the area where the smart home system is located, and send the third control command to some smart devices in the smart home system through the cloud-edge-device connection, so that the some smart devices respond to the third control command, wherein the third control command is used to control the some smart devices to perform a shutdown action, and the some smart devices are devices that the smart home system does not need to be in a real-time running state.

[0019] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: an eighth acquisition unit, configured to parse each control instruction in the control instruction set sent by the cloud-edge-device for controlling one or more smart devices in the smart home system, and obtain the control content of each control instruction; a fifth determination unit, configured to determine abnormal instructions in each control instruction based on the control content of each control instruction and the functional information, linkage information, and current environment information of each smart device in the smart home system; and a correction unit, configured to correct the abnormal instructions based on the functional information, linkage information, and current environment information of each smart device in the smart home system.

[0020] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a receiving unit, configured to receive, after sending at least one of the target control command and the sorted plurality of second control commands to the cloud-edge terminal to send the target control command and the sorted plurality of second control commands to the corresponding smart device in the smart home system via the cloud-edge terminal to control the corresponding smart device in the smart home system, receive, from the cloud-edge terminal, the execution result of the control object on the target control command and the sorted plurality of second control commands, wherein the control object sends the execution result to the cloud-edge terminal after executing the target control command and the sorted plurality of second control commands; a ninth acquisition unit, configured to analyze the execution result to obtain an analysis result, wherein the analysis result represents the response efficiency of the control object on the target control command and the sorted plurality of second control commands; and a storage unit, configured to store the analysis result.

[0021] According to another aspect of the embodiments of the present invention, there is also provided a control system for a smart home system based on a cloud-edge-end collaboration mechanism, and the control system for the smart home system based on the cloud-edge-end collaboration mechanism uses any one of the above-mentioned control methods for the smart home system based on the cloud-edge-end collaboration mechanism.

[0022] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, and the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned control methods for the smart home system based on the cloud-edge-end collaboration mechanism.

[0023] According to another aspect of the embodiments of the present invention, there is also provided a processor, and the processor is used to run a program, wherein when the program runs, it executes any one of the above-mentioned control methods for the smart home system based on the cloud-edge-end collaboration mechanism.

[0024] In the embodiments of the present invention, when a control instruction set for controlling one or more smart devices in the smart home system sent by the cloud-edge-end is received, each control instruction in the control instruction set is parsed to obtain the control object of each control instruction. The cloud-edge-end is used to receive the control instruction set sent by a predetermined application and sequentially send the instructions in the control instruction set to the cloud. The predetermined application is used to control each smart device in the smart home system; when the control objects of each control instruction are different, a plurality of first control instructions with the same control object in each control instruction are determined, and a plurality of second control instructions with different control objects in each control instruction are determined; the instruction with the latest sending time among the plurality of first control instructions is determined as the target control instruction, and the plurality of second control instructions are sorted according to the sending time sequence to obtain the sorted plurality of second control instructions; at least one of the target control instruction and the sorted plurality of second control instructions is sent to the cloud-edge-end, so as to send at least one of the target control instruction and the sorted plurality of second control instructions to the corresponding smart device in the smart home system through the cloud-edge-end to control the corresponding smart device in the smart home system. Through the above technical solutions, the purpose of processing and analyzing the control instructions for controlling one or more smart devices in the smart home system sent by the cloud-edge-end through the cloud and then sending the processed control instructions to the corresponding smart device through the cloud-edge-end to control its execution action is achieved, and the technical effect of realizing the linkage control between the smart devices in the smart home system by applying the cloud-edge-end collaboration mechanism to improve the stability of the mesh network is realized, the communication efficiency and accuracy between the smart devices are improved, and the overall performance of the system is also improved. Furthermore, the technical problem that when the mesh devices in the smart home system perform linkage control in the related art, the cloud-edge-end collaboration mechanism between the devices in the mesh network devices is not considered, resulting in a low stability of the mesh network is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0026] Figure 1 This is a hardware structure block diagram of a mobile terminal for a smart home system control method based on a cloud-edge-device collaboration mechanism according to an embodiment of the present invention.

[0027] Figure 2 This is a flowchart of a smart home system control method based on a cloud-edge-device collaboration mechanism according to an embodiment of the present invention;

[0028] Figure 3 This is a flowchart of an optional smart home system control method based on a cloud-edge-device collaboration mechanism according to an embodiment of the present invention;

[0029] Figure 4 This is a schematic diagram of a smart home system control device based on a cloud-edge-device collaboration mechanism according to an embodiment of the present invention. Detailed Implementation

[0030] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0032] As introduced in the background art, when the smart home system in the related art performs linkage control between each mesh device, the cloud-edge-end collaboration mechanism between each device in the mesh network device is not considered, resulting in a relatively low stability of the mesh network. In view of the above defects, in the embodiments of the present invention, a control method and device for a smart home system based on a cloud-edge-end collaboration mechanism are provided.

[0033] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention.

[0034] The method embodiments provided in the embodiments of the present invention can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal of a control method for a smart home system based on a cloud-edge-end collaboration mechanism according to an embodiment of the present invention. As Figure 1 shown, the mobile terminal may include one or more ( Figure 1 only one is shown in Figure 1 a processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown in Figure 1 is only schematic and does not limit the structure of the above mobile terminal. For example, the mobile terminal may further include more or fewer components than

[0035] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the smart home system control method based on cloud-edge-device collaboration mechanism in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0036] According to an embodiment of the present invention, a method embodiment of a smart home system control method based on a cloud-edge-device collaboration mechanism is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0037] Figure 2 This is a flowchart of a smart home system control method based on a cloud-edge-device collaboration mechanism according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes the following steps:

[0038] Step S202: When receiving a set of control instructions sent by the cloud edge for controlling one or more smart devices in the smart home system, the control instructions in the set are parsed to obtain the controlled objects of each control instruction. The cloud edge is used to receive the set of control instructions sent by a predetermined application and send the instructions in the set of control instructions to the cloud in sequence. The predetermined application is used to control each smart device in the smart home system.

[0039] Optionally, the above control instruction set may include the following: a control object, and instructions on the actions to be performed by the control object.

[0040] Optionally, the aforementioned pre-selected applications may include, but are not limited to, PC software, mobile apps, smartwatch apps, etc.

[0041] The collaborative relationship between the cloud, cloud-edge, and smart devices is the key to the cloud-edge-device collaboration mechanism. It mainly achieves collaborative work between smart devices through various means such as data sharing and processing, linkage control, and local control. Among them, the cloud mainly provides output processing and analysis capabilities; smart devices mainly provide sensing and execution capabilities; and cloud-edge-device mainly provides real-time response and control capabilities. It can process and store the data generated by IoT devices locally to reduce the pressure of data transmission and cloud computing.

[0042] In addition, the cloud-edge-device collaboration mechanism can ensure the consistency of the status of each smart device by receiving and processing cloud notifications, synchronizing the status of smart devices, providing real-time response and control, and improving data security. The cloud-edge-device collaboration mechanism can sort and process instructions through various methods such as timestamp sorting, message queues, distributed locks, and priority sorting, thereby ensuring the correctness and consistency of commands.

[0043] According to the above embodiments of the present invention, before step S202, the smart home system control method based on cloud-edge-device collaboration mechanism further includes: obtaining the area of ​​the smart home system; obtaining the installation location information of each smart device in the smart home system; determining the number and location of routers used for communication between smart devices in the area of ​​the smart home system based on the area and installation location information; determining the networking mode of each smart device based on the number and location; and constructing a mesh network corresponding to the smart home system according to the networking mode, wherein the mesh network is used for communication between the smart home system and the cloud, cloud-edge-device, and terminal devices corresponding to predetermined applications.

[0044] Before using a mesh network to enable communication between a smart home system and the cloud, cloud-edge-device, and terminal devices corresponding to pre-defined applications, it is necessary to first construct the mesh network corresponding to the smart home system. When constructing the mesh network, the number of routers used for communication between smart devices in the room and their corresponding settings can be determined based on the area of ​​the room where each smart device in the smart home system is located and the installation location of each smart device. Then, the networking method of each smart device can be determined based on the number of routers and their settings, and then the mesh network corresponding to the smart home system can be constructed based on the networking method.

[0045] Based on the area and installation location of the smart home system, the number and location of routers used for communication between smart devices in the area are determined reasonably. This makes the mesh network construction more reasonable, can cover the entire smart home system, and provide a relatively stable network for the user's home.

[0046] According to the above embodiments of the present invention, in step S202, each control instruction includes a device type identifier bit. Parsing each control instruction in the control instruction set to obtain the control object of each control instruction includes: parsing each control instruction in the control instruction to obtain device identifier information at the device type identifier bit of each control instruction; and determining the control object of each control instruction based on the device identifier information.

[0047] Generally, each control command instructs the corresponding smart device to perform an action. Therefore, each control command contains a device type identifier bit of the smart device to be controlled, in order to identify the controlled object of each control command.

[0048] The following is combined with Figure 3 The embodiments of the present invention will be described in detail below. Figure 3 This is a flowchart of an optional smart home system control method based on a cloud-edge-device collaboration mechanism according to an embodiment of the present invention. Figure 3 As shown, when a user enters control commands for one or more smart devices in the smart home APP (pre-defined application), the control commands are first sent to the cloud edge. Then, the cloud edge sends the control commands received from the smart home APP to the cloud for processing, parsing out the control object corresponding to each control command. That is, it parses out which smart devices(s) each control command is used to instruct to perform an action.

[0049] The following example uses a smart home scenario to illustrate the application of the cloud-edge-device collaboration mechanism. Assume the scenario includes multiple smart light bulbs and a smart socket. Each smart device can connect to the mesh network via a wireless communication protocol and upload the collected data to the cloud for analysis and processing; for example, data such as the brightness and color of each light bulb can be analyzed and processed.

[0050] Step S204: When the controlled objects of each control instruction are different, determine multiple first control instructions with the same controlled object in each control instruction, and determine multiple second control instructions with different controlled objects in each control instruction.

[0051] After receiving the control commands sent by the smart home APP, the cloud will classify the control commands in the control command set according to the controlled object, grouping control commands with the same controlled object into one category and control commands with different controlled objects into another category.

[0052] Step S206: Determine the latest sent instruction among the multiple first control instructions as the target control instruction, and sort the multiple second control instructions according to their sent time to obtain the sorted multiple second control instructions.

[0053] As above Figure 3As shown, after receiving the control command, the cloud will put the control command into a message queue for sorting and processing. Distributed lock technology is used to implement control mutual exclusion to ensure that only one device can control a smart device at the same time. Timestamp sorting technology is used to sort and process the control commands to ensure that the control commands can be processed in chronological order.

[0054] When multiple light bulbs or sockets simultaneously receive control commands from the cloud, the command sequence may become disordered. The cloud-edge-device collaboration mechanism can sort and process the control commands, thereby ensuring the correctness and consistency of the command sequence.

[0055] Step S208: Send at least one of the target control command and the sorted plurality of second control commands to the cloud edge terminal, so as to send the target control command and the sorted plurality of second control commands to the corresponding smart device in the smart home system through the cloud edge terminal, so as to control the corresponding smart device in the smart home system.

[0056] As above Figure 3 As shown, after processing the control commands, the cloud sends the processed control commands to the cloud edge. After receiving each control command, the cloud edge sends it to the corresponding smart device so that it can perform the corresponding action.

[0057] In addition, when a user wants to control a smart device, they can do so directly through the cloud and edge without waiting for a response from the cloud. For example, when a user wants to turn off a light bulb, they can send a control command to the cloud and edge through a smart home app.

[0058] According to the above embodiments of the present invention, before step S208, that is, before sending the target control command and at least one of the sorted second control commands to the cloud-edge terminal so as to send the target control command and at least one of the sorted second control commands to the corresponding smart device in the smart home system through the cloud-edge terminal, the smart home system control method based on the cloud-edge terminal collaboration mechanism further includes: obtaining the current state data of the controlled object of each control command sent by the cloud-edge terminal, wherein the cloud-edge terminal obtains and sends the current state data after sending the control command set to the cloud; analyzing the current state data to obtain the analysis result; and adjusting at least one of the target control command and the sorted second control commands according to the analysis result.

[0059] For example, if a smart device malfunctions and becomes inoperable, the control commands to be sent from the cloud need to be adjusted based on this state. If a control command instructs the damaged smart device to perform an action, the command should be canceled to avoid issuing invalid commands. According to the above embodiments of the present invention, the smart home system control method based on a cloud-edge-device collaboration mechanism further includes: acquiring device status change information in the smart home system; synchronizing the device status change information to the cloud-edge-device, and then synchronizing the device status change information to other smart devices besides the device corresponding to the device status change information via the cloud-edge-device.

[0060] When the state of one or more smart devices changes, the cloud will promptly notify the cloud edge and other smart devices to ensure the consistency of the state of each smart device and make corresponding adjustments to the control commands; for example, when a user manually turns off a light bulb, the cloud will synchronize the status information of that light bulb to other smart devices and the cloud edge.

[0061] According to the above embodiments of the present invention, the smart home system control method based on the cloud-edge-device collaboration mechanism may further include: acquiring images captured by an image acquisition device in the area where the smart home system is located; analyzing the images to obtain analysis results; when the analysis results indicate that there is no target object in the area where the smart home system is located, generating a third control command, and sending the third control command to some smart devices in the smart home system through the cloud-edge-device, so that some smart devices respond to the third control command, wherein the third control command is used to control some smart devices to perform a shutdown action, and some smart devices are devices in the smart home system that do not need to be in a running state in real time.

[0062] With cloud-based decision support, interconnected control between various smart devices can be achieved. For example, when a user leaves the room, cloud-based decision support can automatically turn off all indoor lights and appliances, avoiding waste of resources.

[0063] According to the above embodiments of the present invention, the smart home system control method based on the cloud-edge-device collaboration mechanism further includes: upon receiving a set of control instructions sent by the cloud-edge-device for controlling one or more smart devices in the smart home system, parsing each control instruction in the set of control instructions to obtain the control content of each control instruction; determining abnormal instructions in each control instruction based on the control content of each control instruction, the functional information, linkage information of each smart device in the smart home system, and the current environmental information; and correcting the abnormal instructions based on the functional information, linkage information, and current environmental information of each smart device in the smart home system.

[0064] For example, when multiple light bulbs or sockets control the same smart device, issues of control mutual exclusion and correction compensation can easily arise. Through cloud-edge-device collaboration mechanisms, control commands can be mutually excluded and corrected to ensure the correctness and stability of control.

[0065] According to the above embodiments of the present invention, after step S208, that is, after sending at least one of the target control command and the sorted plurality of second control commands to the cloud-edge terminal to send the target control command and the sorted plurality of second control commands to the corresponding smart device in the smart home system through the cloud-edge terminal to control the corresponding smart device in the smart home system, the smart home system control method based on the cloud-edge terminal collaboration mechanism further includes: receiving the execution result of the control object on the target control command and the sorted plurality of second control commands sent by the cloud-edge terminal, wherein the control object sends the execution result to the cloud-edge terminal after executing the target control command and the sorted plurality of second control commands; analyzing the execution result to obtain an analysis result, wherein the analysis result represents the response efficiency of the control object on the target control command and the sorted plurality of second control commands; and storing the analysis result.

[0066] As above Figure 3 As shown, after receiving the control command, each smart device executes the corresponding action and sends the execution result to the cloud edge. The cloud edge sends the execution result received from each smart device to the cloud. The cloud processes the execution result and stores it in the cloud database. Users can query the status and execution result of each smart device through the smart home APP to realize remote monitoring and control of each smart device.

[0067] As shown above, through the above steps, when a set of control instructions for controlling one or more smart devices in a smart home system is received from the cloud-edge terminal, each control instruction in the set is parsed to obtain the control object of each control instruction. The cloud-edge terminal receives the control instruction set sent by a predetermined application and sequentially sends the instructions to the cloud. The predetermined application is used to control various smart devices in the smart home system. When the control objects of different control instructions are different, multiple first control instructions with the same control object are identified, and multiple second control instructions with different control objects are identified. The instruction with the latest sending time among the multiple first control instructions is identified as the target control instruction, and the multiple second control instructions are sorted according to their sending time to obtain sorted second control instructions. At least one of the target control command and a plurality of ordered second control commands is sent to the cloud-edge terminal. The target control command and at least one of the ordered second control commands are then sent to the corresponding smart device in the smart home system via the cloud-edge terminal to control the corresponding smart device in the smart home system. This achieves the goal of processing and analyzing the control commands sent from the cloud-edge terminal to control one or more smart devices in the smart home system via the cloud, and then sending the processed control commands back to the corresponding smart device via the cloud-edge terminal to control its execution. This realizes the technical effect of improving the stability of the mesh network by applying the cloud-edge terminal collaborative mechanism to achieve linkage control between smart devices in the smart home system, improving the communication efficiency and accuracy between smart devices, and also improving the overall performance of the system.

[0068] It is worth noting that, in this embodiment of the invention, one or more servers are set up as cloud-edge terminals between the cloud and each smart home device in the smart home system. This serves as a data buffer between the cloud and each smart home device, preventing the cloud from receiving large amounts of data directly from each smart home device or terminal device, which could cause cloud downtime. This mechanism ensures that data fed back from each smart home device or data sent from the terminal to the cloud is cached through the cloud-edge terminal, allowing for orderly data feedback to the cloud. Simultaneously, the cloud feeds back processed instructions to the cloud-edge terminal, which then issues instructions to each smart home device, preventing the cloud from issuing multiple instructions simultaneously and causing instruction distribution chaos.

[0069] Therefore, according to the technical solution provided by the above embodiments of the present invention, the technical problem of low stability of the mesh network is solved when the mesh devices in the smart home system are linked for control, without considering the cloud-edge-device collaboration mechanism between the devices in the mesh network.

[0070] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0071] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0072] According to embodiments of the present invention, a smart home system control device based on a cloud-edge-device collaboration mechanism is also provided for implementing the above-described smart home system control method based on a cloud-edge-device collaboration mechanism. Figure 4 This is a schematic diagram of a smart home system control device based on a cloud-edge-device collaboration mechanism according to an embodiment of the present invention, as shown below. Figure 4 As shown, the device includes: a parsing unit 41, a first determining unit 43, a second determining unit 45, and a sending unit 47. The following is a detailed description of this smart home system control device based on a cloud-edge-device collaborative mechanism.

[0073] The parsing unit 41 is used to parse each control instruction in the control instruction set when it receives a control instruction set sent by the cloud edge for controlling one or more smart devices in the smart home system, and obtain the control object of each control instruction. The cloud edge is used to receive the control instruction set sent by the predetermined application and send the instructions in the control instruction set to the cloud in sequence. The predetermined application is used to control each smart device in the smart home system.

[0074] The first determining unit 43 is used to determine multiple first control instructions with the same control object and multiple second control instructions with different control objects when the control objects of each control instruction are different.

[0075] The second determining unit 45 is used to determine the instruction with the latest transmission time among multiple first control instructions as the target control instruction, and to sort the multiple second control instructions according to the order of transmission time to obtain multiple sorted second control instructions.

[0076] The sending unit 47 is used to send at least one of the target control command and the sorted plurality of second control commands to the cloud edge, so as to send the target control command and the sorted plurality of second control commands to the corresponding smart device in the smart home system through the cloud edge, so as to control the corresponding smart device in the smart home system.

[0077] It should be noted that the parsing unit 41, the first determining unit 43, the second determining unit 45, and the sending unit 47 mentioned above correspond to steps S202 to S208 in the above embodiments. The four units and the corresponding steps implement the same instances and application scenarios, but are not limited to the content disclosed in the above embodiments.

[0078] As can be seen from the above, in the scheme described in the above embodiments of the present invention, a parsing unit can be used to parse each control instruction in the control instruction set when a control instruction set for controlling one or more smart devices in a smart home system is received from the cloud-edge terminal, thereby obtaining the control object of each control instruction. The cloud-edge terminal receives the control instruction set sent by a predetermined application and sequentially sends the instructions in the control instruction set to the cloud. The predetermined application is used to control various smart devices in the smart home system. Then, a first determining unit is used to determine multiple first control instructions with the same control object when the control objects of the control instructions are different, and to determine multiple second control instructions with different control objects. A second determining unit then determines the instruction with the latest sending time among the multiple first control instructions as the target control instruction, and sorts the multiple second control instructions according to their sending time to obtain... Multiple second control commands are sorted; finally, the sending unit sends at least one of the target control command and the sorted second control commands to the cloud-edge terminal, so that the target control command and at least one of the sorted second control commands can be sent to the corresponding smart device in the smart home system through the cloud-edge terminal to control the corresponding smart device in the smart home system. This achieves the goal of processing and analyzing the control commands sent by the cloud-edge terminal to control one or more smart devices in the smart home system through the cloud, and then sending the processed control commands to the corresponding smart device through the cloud-edge terminal to control its execution. This realizes the technical effect of improving the stability of the mesh network by applying the cloud-edge terminal collaborative mechanism to achieve linkage control between smart devices in the smart home system, improving the communication efficiency and accuracy between smart devices, and also improving the overall performance of the system.

[0079] Therefore, according to the technical solution provided by the above embodiments of the present invention, the technical problem of low stability of the mesh network is solved when the mesh devices in the smart home system are linked for control, without considering the cloud-edge-device collaboration mechanism between the devices in the mesh network.

[0080] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a first acquisition unit for acquiring the area of ​​the smart home system; a second acquisition unit for acquiring the installation location information of each smart device in the smart home system; a third determination unit for determining the number and location of routers used for communication between smart devices in the area of ​​the smart home system based on the area and installation location information; a fourth determination unit for determining the networking mode of each smart device based on the number and location; and a construction unit for constructing a mesh network corresponding to the smart home system according to the networking mode, wherein the mesh network is used for communication between the smart home system and the cloud, cloud-edge-device, and terminal devices corresponding to predetermined applications.

[0081] Optionally, the parsing unit includes: an acquisition module, used to parse each control instruction in the control instructions to obtain device identification information at the device type identifier bit of each control instruction; and a determination module, used to determine the control object of each control instruction based on the device identification information.

[0082] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a third acquisition unit, used to acquire the current state data of the controlled object of each control command sent by the cloud-edge terminal before sending the target control command and at least one of the sorted second control commands to the cloud-edge terminal so that the target control command and at least one of the sorted second control commands are sent to the corresponding smart device in the smart home system through the cloud-edge terminal, wherein the cloud-edge terminal acquires and sends the current state data after sending the control command set to the cloud; a fourth acquisition unit, used to analyze the current state data to obtain the analysis result; and an adjustment unit, used to adjust at least one of the target control command and the sorted second control commands according to the analysis result.

[0083] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a fifth acquisition unit, used to acquire device status change information in the smart home system; and a synchronization unit, used to synchronize the device status change information to the cloud-edge-device, and to synchronize the device status change information to other smart devices other than the device corresponding to the device status change information through the cloud-edge-device.

[0084] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a sixth acquisition unit, used to acquire images captured by image acquisition devices in the area where the smart home system is located; a seventh acquisition unit, used to analyze the images and obtain analysis results; and a generation unit, used to generate a third control command when the analysis results indicate that there is no target object in the area where the smart home system is located, and send the third control command to some smart devices in the smart home system through the cloud-edge-device connection, so that some smart devices respond to the third control command, wherein the third control command is used to control some smart devices to perform a shutdown action, and some smart devices are devices that do not need to be in a real-time running state in the smart home system.

[0085] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: an eighth acquisition unit, used to parse each control instruction in the control instruction set sent by the cloud-edge-device for controlling one or more smart devices in the smart home system, and obtain the control content of each control instruction; a fifth determination unit, used to determine abnormal instructions in each control instruction based on the control content of each control instruction, the functional information and linkage information of each smart device in the smart home system, and the current environmental information; and a correction unit, used to correct abnormal instructions based on the functional information and linkage information of each smart device in the smart home system, and the current environmental information.

[0086] Optionally, the smart home system control device based on the cloud-edge-device collaboration mechanism further includes: a receiving unit, configured to receive the execution result of the control object on the target control command and the sorted second control commands after sending at least one of the target control command and the sorted second control commands to the cloud-edge-device to send the target control command and the sorted second control commands to the corresponding smart device in the smart home system for controlling the corresponding smart device in the smart home system, wherein the control object sends the execution result to the cloud-edge-device after executing the target control command and the sorted second control commands; a ninth acquisition unit, configured to analyze the execution result to obtain an analysis result, wherein the analysis result represents the response efficiency of the control object on the target control command and the sorted second control commands; and a storage unit, configured to store the analysis result.

[0087] According to another aspect of the present invention, a smart home system control system based on a cloud-edge-device collaboration mechanism is also provided. The smart home system control system based on the cloud-edge-device collaboration mechanism uses any of the above-described smart home system control methods based on the cloud-edge-device collaboration mechanism.

[0088] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein the program executes any of the above-described smart home system control methods based on a cloud-edge-device collaboration mechanism.

[0089] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any communication device in a group of communication devices.

[0090] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: upon receiving a set of control instructions sent by the cloud-edge terminal for controlling one or more smart devices in the smart home system, parsing each control instruction in the control instruction set to obtain the control object of each control instruction, wherein the cloud-edge terminal is used to receive the set of control instructions sent by a predetermined application and sequentially send the instructions in the control instruction set to the cloud, and the predetermined application is used to control each smart device in the smart home system; when the control objects of each control instruction are different, determining a plurality of first control instructions with the same control object among the control instructions, and determining a plurality of second control instructions with different control objects among the control instructions; determining the instruction with the latest sending time among the plurality of first control instructions as the target control instruction, and sorting the plurality of second control instructions according to the order of sending time to obtain a plurality of sorted second control instructions; sending at least one of the target control instruction and the plurality of sorted second control instructions to the cloud-edge terminal, so as to send the target control instruction and at least one of the plurality of sorted second control instructions to the corresponding smart device in the smart home system through the cloud-edge terminal, so as to control the corresponding smart device in the smart home system.

[0091] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: obtaining the area of ​​the smart home system; obtaining the installation location information of each smart device in the smart home system; determining the number and location of routers used for communication between smart devices in the area of ​​the smart home system based on the area and installation location information; determining the networking method of each smart device based on the number and location; and constructing a mesh network corresponding to the smart home system according to the networking method, wherein the mesh network is used for communication between the smart home system and the cloud, cloud-edge-device, and terminal devices corresponding to predetermined applications.

[0092] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: parsing each control instruction in the control instructions to obtain device identification information at the device type identifier bit of each control instruction; and determining the control object of each control instruction based on the device identification information.

[0093] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: obtaining current state data of the controlled object of each control instruction sent by the cloud-edge terminal, wherein the cloud-edge terminal obtains and sends the current state data after sending the control instruction set to the cloud; analyzing the current state data to obtain analysis results; and adjusting at least one of the target control instruction and a plurality of sorted second control instructions according to the analysis results.

[0094] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: acquiring device status change information in the smart home system; synchronizing the device status change information to the cloud-edge terminal, and synchronizing the device status change information to other smart devices other than the device corresponding to the device status change information via the cloud-edge terminal.

[0095] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: acquiring images captured by an image acquisition device in the area where the smart home system is located; analyzing the images to obtain analysis results; when the analysis results indicate that there is no target object in the area where the smart home system is located, generating a third control command and sending the third control command to some smart devices in the smart home system through the cloud-edge-device connection, so that some smart devices respond to the third control command, wherein the third control command is used to control some smart devices to perform a shutdown action, and some smart devices are devices that do not need to be in a running state in real time in the smart home system.

[0096] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: upon receiving a set of control instructions sent by the cloud-edge device for controlling one or more smart devices in the smart home system, parsing each control instruction in the control instruction set to obtain the control content of each control instruction; determining abnormal instructions in each control instruction based on the control content of each control instruction, the functional information and linkage information of each smart device in the smart home system, and the current environmental information; and correcting the abnormal instructions based on the functional information and linkage information of each smart device in the smart home system and the current environmental information.

[0097] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: receiving the execution result of a control object on at least one of a target control instruction and a plurality of ordered second control instructions sent by the cloud-edge terminal, wherein the control object sends the execution result to the cloud-edge terminal after executing the target control instruction and at least one of the plurality of ordered second control instructions; analyzing the execution result to obtain an analysis result, wherein the analysis result represents the response efficiency of the control object on at least one of the target control instruction and the plurality of ordered second control instructions; and storing the analysis result.

[0098] According to another aspect of the present invention, a processor is also provided, which is used to run a program, wherein the program executes any of the above-described smart home system control methods based on cloud-edge-device collaboration mechanisms.

[0099] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0100] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0101] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0103] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0105] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A smart home system control method based on a cloud-edge-device collaborative mechanism, characterized in that, include: When receiving a set of control instructions sent by the cloud edge for controlling one or more smart devices in a smart home system, the cloud edge parses each control instruction in the set of control instructions to obtain the control object of each control instruction. The cloud edge is used to receive the set of control instructions sent by a predetermined application and send the instructions in the set of control instructions to the cloud in sequence. The predetermined application is used to control each smart device in the smart home system. When the controlled objects of the various control instructions are different, a plurality of first control instructions in which the controlled objects are the same are determined, and a plurality of second control instructions in which the controlled objects are different are determined; The instruction with the latest transmission time among the plurality of first control instructions is determined as the target control instruction, and the plurality of second control instructions are sorted according to their transmission time to obtain the sorted plurality of second control instructions; The target control command and at least one of the sorted plurality of second control commands are sent to the cloud-edge terminal, so as to send the target control command and at least one of the sorted plurality of second control commands to the corresponding smart device in the smart home system through the cloud-edge terminal, so as to control the corresponding smart device in the smart home system.

2. The smart home system control method based on cloud-edge-device collaboration mechanism according to claim 1, characterized in that, Also includes: Obtain the area of ​​the region where the smart home system is located; Obtain the installation location information of each smart device in the smart home system; Based on the area and the installation location information, determine the number and location of routers used for communication between the smart devices in the area where the smart home system is located; The networking method of each smart device is determined based on the quantity and the setting location; The smart home system is constructed according to the networking method described above, and the mesh network is used for communication between the smart home system and the cloud, the cloud edge, and the terminal devices corresponding to the predetermined application.

3. The smart home system control method based on cloud-edge-device collaboration mechanism according to claim 1, characterized in that, Each control instruction includes a device type identifier bit. Parsing each control instruction in the control instruction set yields the controlled object of each control instruction, including: The control instructions are parsed to obtain the device identification information at the device type identifier bit of each control instruction; The controlled object of each control command is determined based on the device identification information.

4. The smart home system control method based on cloud-edge-device collaboration mechanism according to claim 1, characterized in that, Before sending at least one of the target control command and the sorted plurality of second control commands to the cloud-edge terminal, so as to send at least one of the target control command and the sorted plurality of second control commands to the corresponding smart device in the smart home system via the cloud-edge terminal, the method further includes: The current state data of the controlled object of each control command sent by the cloud edge is obtained, wherein the cloud edge obtains and sends the current state data after sending the control command set to the cloud. The current state data is analyzed to obtain the analysis results; Based on the analysis results, at least one of the target control command and the sorted plurality of second control commands is adjusted.

5. The smart home system control method based on cloud-edge-device collaboration mechanism according to claim 1, characterized in that, Also includes: Obtain device status change information in the smart home system; The device status change information is synchronized to the cloud-edge terminal, and then synchronized to other smart devices other than the device corresponding to the device status change information via the cloud-edge terminal.

6. The smart home system control method based on cloud-edge-device collaboration mechanism according to claim 1, characterized in that, Also includes: Acquire images captured by image acquisition devices in the area where the smart home system is located; The image is analyzed to obtain the analysis results; When the analysis results indicate that no target object exists in the area where the smart home system is located, a third control command is generated and sent to some smart devices in the smart home system via the cloud-edge connection, so that the smart devices respond to the third control command. The third control command is used to control the smart devices to perform a shutdown action. The smart devices are those that do not need to be running in real time in the smart home system.

7. The smart home system control method based on cloud-edge-device collaboration mechanism according to any one of claims 1 to 6, characterized in that, Also includes: When a set of control instructions for controlling one or more smart devices in a smart home system is received from the cloud edge, each control instruction in the set of control instructions is parsed to obtain the control content of each control instruction. Based on the control content of each control command and the functional information, linkage information, and current environmental information of each smart device in the smart home system, abnormal commands in each control command are determined. The abnormal command is corrected based on the functional information, linkage information, and current environmental information of each smart device in the smart home system.

8. The smart home system control method based on cloud-edge-device collaboration mechanism according to any one of claims 1 to 6, characterized in that, After sending at least one of the target control command and the sorted plurality of second control commands to the cloud-edge terminal, so as to send the target control command and the sorted plurality of second control commands to the corresponding smart device in the smart home system via the cloud-edge terminal, so as to control the corresponding smart device in the smart home system, the method further includes: The control object receives the execution result of at least one of the target control instruction and the sorted plurality of second control instructions sent by the cloud edge, wherein the control object sends the execution result to the cloud edge after executing the target control instruction and at least one of the sorted plurality of second control instructions; The execution results are analyzed to obtain analysis results, wherein the analysis results represent the response efficiency of the controlled object to at least one of the target control command and the sorted plurality of second control commands; Store the analysis results.

9. A smart home system control device based on a cloud-edge-device collaborative mechanism, characterized in that, include: The parsing unit is used to parse each control instruction in the control instruction set sent by the cloud edge to control one or more smart devices in the smart home system, and obtain the control object of each control instruction. The cloud edge is used to receive the control instruction set sent by a predetermined application and send the instructions in the control instruction set to the cloud in sequence. The predetermined application is used to control each smart device in the smart home system. The first determining unit is configured to, when the controlled objects of the various control instructions are different, determine a plurality of first control instructions in which the controlled objects are the same, and determine a plurality of second control instructions in which the controlled objects are different; The second determining unit is used to determine the instruction with the latest transmission time among the plurality of first control instructions as the target control instruction, and to sort the plurality of second control instructions according to the order of transmission time to obtain the sorted plurality of second control instructions. The sending unit is configured to send at least one of the target control command and the sorted plurality of second control commands to the cloud-edge terminal, so as to send the target control command and at least one of the sorted plurality of second control commands to the corresponding smart device in the smart home system through the cloud-edge terminal, so as to control the corresponding smart device in the smart home system.

10. A processor, characterized in that, The processor is used to run a program, wherein the program executes the smart home system control method based on the cloud-edge-device collaboration mechanism as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device for avoiding control instruction conflict, processor and smart home system

    CN114114941A

  • Combined instruction control method, device, system, equipment and medium

    CN117215208A