Rapid control method for smart home equipment and smart home system
By creating a control group in the smart gateway of the smart home system and identifying the target control group with mask bits, the problem of delay in execution of a large number of device commands in the smart home is solved, and fast response and efficient command transmission are achieved.
Patent Information
- Application Number
- CN202510093720.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-03-18
AI Technical Summary
In smart home scenarios, how to make a large number of smart devices complete unified execution actions in a very short time to reduce the delay in command execution.
By creating a control group in the smart gateway and identifying the target control group with mask bits, the smart device can quickly determine whether it belongs to the target control group without parsing the individual identification of the device one by one, thereby reducing the delay time of device response.
It significantly reduces the delay time of device response, improves the overall efficiency of instruction transmission, avoids the situation of sending independent instructions by device, and reduces the redundancy and conflict of network communication.
Smart Images

Figure CN119644787A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of smart home technology, and in particular to a fast control method for smart home equipment and a smart home system. Background Art
[0002] With the development of wireless communication technology, the types and number of smart devices in smart home systems are increasing. In order to improve user experience, smart home systems often need to support synchronous control of multiple devices to achieve unified behavioral responses.
[0003] However, the related technologies cannot well ensure that a large number of smart devices complete unified execution actions in a very short time, resulting in delays in the execution of instructions by smart devices. Therefore, in the smart home scenario, how to enable a large number of smart devices to complete unified execution actions in a very short time and reduce the delay in instruction execution has become a problem that needs to be solved. Summary of the invention
[0004] In view of this, the present disclosure provides a fast control method for smart home devices and a smart home system to solve the problem of how to enable a large number of smart devices to complete unified execution actions in a very short time and reduce instruction execution delay in a smart home scenario.
[0005] On the one hand, the present disclosure provides a method for quickly controlling smart home devices, which is applied to a smart home system. The smart home system includes: a smart gateway and at least one smart device. The method includes: creating a control group in the smart gateway, and allocating a mask bit to the control group in a first group of masks; wherein the control group includes at least one smart device; based on the first group of masks, using the smart gateway to issue a control instruction to each smart device, the control instruction is used to control at least one target smart device under the target control group; wherein the control instruction includes the mask bit of the target control group and the device action to be executed; after each smart device receives the control instruction, each smart device determines whether it belongs to the target control group based on a second group of masks, and when it is determined that it belongs to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result.
[0006] On the other hand, the present disclosure also provides a smart home system, which includes a smart gateway and at least one smart device, wherein: the smart gateway is used to create a control group and allocate a mask bit to the control group in a first group of masks; wherein the control group includes at least one smart device; the smart gateway is used to issue a control instruction to each smart device based on the first group of masks, and the control instruction is used to control at least one target smart device under the target control group; wherein the control instruction includes the mask bit of the target control group and the device action to be executed; the smart device is used to determine whether it belongs to the target control group based on a second group of masks, and when it is determined that it belongs to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result.
[0007] On the other hand, the present disclosure further provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to implement the above-mentioned method for quickly controlling smart home devices.
[0008] On the other hand, the present disclosure further provides a computer program product, including computer instructions, which are used to enable a computer to execute the above-mentioned method for quickly controlling smart home devices.
[0009] Through the fast control method and smart home system of the smart home devices of the above-mentioned embodiments of the present invention, by creating a control group in the smart gateway and using the mask bit to identify the target control group, all smart devices can quickly determine whether they belong to the target control group through the mask after receiving the control instruction, without the need to parse the individual identification of the device one by one, thereby significantly reducing the delay time of the device response.
[0010] In addition, the control method using mask bits avoids the situation of sending independent instructions to each device one by one, allowing the smart gateway to cover the devices of the entire control group with one broadcast instruction, reducing the redundancy and conflict of network communication and improving the overall efficiency of instruction transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0012] Figure 1a An exemplary schematic diagram showing the architecture of a smart home system to which a fast control method for smart home devices according to an embodiment of the present disclosure is applied;
[0013] Figure 1bis a flowchart of a method for quickly controlling a smart home device provided by an embodiment of the present disclosure;
[0014] Figure 2 is a structural diagram of another smart home system provided by an embodiment of the present disclosure;
[0015] Figure 3 It is a structural diagram of another smart home system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0016] In business intelligence systems, especially smart home systems, as users' demand for efficient control experience grows, multi-device synchronous control becomes an important technical direction. For example, when a user presses a button, it is necessary to be able to quickly and synchronously control multiple devices (such as lighting equipment), ensuring that the difference in action completion time is as small as possible (such as no more than 0.1 seconds) to provide a smooth user experience.
[0017] In related technologies, smart gateways usually control multiple devices in the following ways:
[0018] 1. Send instructions one by one: The smart gateway sends control instructions to smart devices one by one. After receiving the instructions, each device performs the corresponding action and returns the execution result. The smart gateway needs to wait for the current device to complete the operation before sending instructions to the next device.
[0019] 2. Sequential feedback confirmation mechanism: After each device performs an action, it needs to feedback the execution result to the smart gateway. The gateway can continue to process other devices only after receiving the feedback. This mechanism ensures the reliability of the operation, but it brings significant time overhead.
[0020] However, the related technologies often have the following problems:
[0021] 1. Large control delay. The intelligent gateway sends instructions to the devices in sequence. As the number of devices increases, the control delay increases linearly. For example, when there are 100 devices in the system and the instruction interval of each device is 0.1 second, the total delay will exceed 10 seconds, which is far from meeting the requirements of "fast synchronous control".
[0022] 2. Excessive wireless channel occupancy. Each device needs to feedback the execution results, which causes the wireless channel resources to be occupied for too long. When there are a large number of devices, the feedback packets of different devices will overlap in time, resulting in wireless conflicts and data packet loss, which in turn triggers the retransmission mechanism, further increasing the channel load.
[0023] 3. The control actions are not synchronized. Since the instructions are sent one by one, the time for each device to receive the instructions is quite different. Even if the processing speed of the devices is the same, the action completion time is difficult to synchronize, so it is impossible to achieve the effect of "simultaneous control" of multiple devices.
[0024] To solve the above problems, various embodiments of the present disclosure provide a method for quickly controlling smart home devices, which is applied to a smart home system. The smart home system includes: a smart gateway and at least one smart device. The method includes: creating a control group in the smart gateway, and allocating a mask bit to the control group in a first group of masks; wherein the control group includes at least one smart device; based on the first group of masks, using the smart gateway to issue a control instruction to each smart device, the control instruction is used to control at least one target smart device under the target control group; wherein the control instruction includes the mask bit of the target control group and the device action to be executed; after each smart device receives the control instruction, each smart device determines whether it belongs to the target control group based on a second group of masks, and when it is determined that it belongs to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result.
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0026] Please refer to Figure 1a , Figure 1a An exemplary schematic diagram of the architecture of a smart home system to which a fast control method for smart home devices according to an embodiment of the present disclosure is applied is shown. Figure 1a As shown, the smart home system may include: a smart gateway and at least one smart device.
[0027] Among them, the smart home system can refer to a comprehensive system that interconnects various devices in the home through the Internet of Things technology to achieve remote control, automated operation and intelligent management of the devices. The smart gateway in the smart home system can be used to connect and manage all smart devices, and interact with external networks or user devices. The smart devices in the smart home system can refer to terminal devices connected to the smart home system to perform specific functions.
[0028] As an example, smart devices may include, but are not limited to: lighting devices, household appliances, monitoring devices, entertainment devices, etc.
[0029] Further references Figure 1b , Figure 1b is a flowchart of a method for quickly controlling a smart home device provided by an embodiment of the present disclosure, which is applied to the above Figure 1aThe smart home system shown in the figure may include the following steps:
[0030] Step S101: create a control group in the intelligent gateway, and allocate a mask bit to the control group in the first group mask.
[0031] In this embodiment, the control group includes at least one smart device. The control group can be a preset logical grouping concept, which can be used to organize and manage at least one smart device according to specific functional requirements or scenario requirements. Here, operating the control group means operating each smart device in the control group.
[0032] In a possible implementation, the control group may include at least one smart device of the same device type. Different device types may correspond to different device type identifiers gtype.
[0033] As an example, the device type may include but is not limited to: smart lights, smart switches, and smart curtain motors, wherein the device type identifier of the smart light may be 0x0001, the device type identifier of the smart switch may be 0x0002, and the device type identifier of the smart curtain motor may be 0x0003.
[0034] Furthermore, the first group of masks may be a binary array of a preset length, and each bit in the first group of masks may represent whether there is a control group.
[0035] For example, assuming that the first group mask is hexadecimal 0x00000001 (that is, binary 0000 0000 000000000000 0000 0000 0001), it can be indicated that there is a control group on the mask bit of bit 0. Here, when the value of a specific mask bit of the first group mask is 0, it can be indicated that there is no corresponding control group; when the value of the specific mask bit of the first group mask is 1, it can be indicated that there is a corresponding control group; updating the value of the mask bit from 0 to 1 can indicate that the control group has been set.
[0036] Further, as an example, the length of the first set of masks can be specifically set according to the requirements, and is not specifically limited here. For example, the first set of masks can be 32 bits or 64 bits.
[0037] Step S102: Based on the first group of masks, a control instruction is sent to each smart device using an intelligent gateway, where the control instruction is used to control at least one target smart device in the target control group.
[0038] In this embodiment, the control instruction includes the mask bit of the target control group and the device action to be executed.
[0039] An intelligent gateway is used to obtain the user's operation information, and based on the configuration information of the target control group in the operation information, a mask code of the target control group is determined;
[0040] An intelligent gateway is used to generate control instructions according to the mask code of the target control group, and the control instructions are broadcast to each intelligent device in the system based on a preset wireless communication protocol.
[0041] The device action to be executed in the control instruction can be used to represent the specific operation behavior that the smart device needs to perform. For example, the device action to be executed may include but is not limited to: turning on, turning off, adjusting brightness, and switching modes.
[0042] As an example, for a control group whose device type identifier is 0x0001, the first group mask gmask may be 0x00000013.
[0043] Here, 0x00000013 may be the calculation result of 0x00000001OR 0x00000002OR 0x00000010, and the 0th bit, 1st bit, and 4th bit of the control group are 1. That is, the first group of masks includes 3 control groups, which are located at the 0th position, the 1st position, and the 4th position of the first group of masks, respectively.
[0044] The specific composition of the control group in the control group can be shown in Table 1 below:
[0045]
[0046]
[0047] Table 1
[0048] Here, the first control group at the 0th position may include smart devices A and B, the second control group at the 1st position may include smart devices B and C, and the third control group at the 4th position may include smart devices A, C and D.
[0049] Step S103, after each smart device receives the control instruction, each smart device determines whether it belongs to the target control group based on the second group mask. When it is determined that it belongs to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result.
[0050] In this embodiment, the second group of masks may refer to a mask code stored in each smart device, which may be used to identify the control group to which the smart device belongs. The i-th bit in the second group of masks may correspond to the i-th bit in the first group of masks in the smart gateway. When the value of the i-th bit is 1, it may indicate that the smart device belongs to the control group corresponding to the bit; if the value is 0, it indicates that the device does not belong to the control group.
[0051] Each smart device obtains the control instruction broadcast by the smart gateway, determines the target mask bit in the control instruction and the device action to be executed; the smart device determines whether it belongs to the target control group based on its own second set of masks. When it is determined to belong to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result.
[0052] Among them, after the execution is completed, the smart device does not send feedback information or confirmation information to the smart gateway or other devices, and directly ends the operation process.
[0053] As an example, the second group of masks corresponding to the above smart devices A, B, C and D respectively may be shown in the following Table 2:
[0054]
[0055]
[0056] Table 2
[0057] The second group mask 0x00000011 of smart device A is converted to binary 00000000000000000000000000 00010001, wherein the 0th bit and the 4th bit are 1, the 0th bit corresponds to the first control group, and the 4th bit corresponds to the third control group, that is, the smart device A exists in both the first control group and the third control group.
[0058] In the fast control method and smart home system of the smart home device of the above-mentioned embodiment of the present disclosure, by creating a control group in the smart gateway and using a mask bit to identify the target control group, all smart devices can quickly determine whether they belong to the target control group through the mask after receiving the control instruction, without having to parse the individual identification of the device one by one, thereby significantly reducing the delay time of the device response. The control method using the mask bit avoids the situation where independent instructions are sent to each device one by one, so that the smart gateway can cover the devices of the entire control group through one broadcast instruction, reducing the redundancy and conflict of network communication and improving the overall efficiency of instruction transmission.
[0059] In a possible implementation of the above embodiment, the method further includes:
[0060] Using an intelligent gateway, based on the initialization information of each intelligent device, the device type of each intelligent device is determined;
[0061] At least one intelligent device having the same device type is classified, and based on a result of the classification, each intelligent device in the at least one intelligent device is divided into at least one control group.
[0062] In this embodiment, the intelligent gateway obtains initialization information from each intelligent device, parses the initialization information, determines the device type of each initialization information, and classifies intelligent devices with the same device type;
[0063] According to the classification result, a corresponding control group is created for each device type, wherein the smart devices in each control group are smart devices of the same device type;
[0064] According to the classification results, each smart device is divided into the corresponding control group.
[0065] In the fast control method of smart home devices and the smart home system of the above-mentioned embodiments of the present disclosure, by classifying the devices according to the device type in the smart gateway, a large number of smart devices can be managed more efficiently. The smart gateway automatically classifies the devices according to the device type, which reduces manual intervention and complex manual operations and improves the automation level of the system. By classifying the same type of smart devices into the same control group, unified control for the same type of device can be achieved, avoiding the cumbersome steps of operating each device separately.
[0066] In a possible implementation of the above embodiment, a control group is created in the intelligent gateway, and a mask bit is allocated to the control group in the first group mask, based on the following steps:
[0067] Based on the device type of the smart device controlled by the control group, determining in the smart gateway a first group of masks corresponding to the device type;
[0068] Find out whether there is a target position with a value of 0 in the first set of masks. If the target position exists, update the value of the target position to 1;
[0069] The method also includes:
[0070] Use intelligent gateway to send grouping instructions to each intelligent device in the control group;
[0071] After each smart device receives the grouping instruction, the value is updated to 1 at the target position of the second group mask of each smart device.
[0072] In this embodiment, based on the device type of the smart device controlled by the control group, determining the first group of masks corresponding to the device type in the smart gateway may include:
[0073] A device type identifier gtype corresponding to the control group is determined, and a first group mask gmask corresponding to gtype is determined in the intelligent gateway.
[0074] Finding whether there is a target position with a value of 0 in the first set of masks, and if the target position exists, updating the value of the target position to 1, may include:
[0075] Check whether there is a mask bit with a value of 0 among the bits of the preset length of the first group of masks gmask;
[0076] When it is found that the i-th bit is 0, determine the preset value m with the i-th bit being 1 and the remaining bits being 0;
[0077] According to the preset value m, update the i-th bit in the first group of masks gmask and update it to 1.
[0078] Among them, determining the preset value m with the i-th bit being 1 and the remaining bits being 0 may include: setting m = 1 << i, that is, assigning the value obtained by shifting 1 to the left by i positions to the preset value m.
[0079] According to the preset value m, updating the i-th bit in the first group of masks gmask and updating it to 1 may include: performing an OR operation on the first group of masks gmask and the preset value m, and updating the value of the i-th bit in the first group of masks gmask from 0 to 1.
[0080] Furthermore, using the smart gateway to send a grouping instruction to each smart device in the control group may include:
[0081] Using the smart gateway to send a grouping instruction addGroup(m) to each smart device in the control group, where the grouping instruction addGroup(m) is used to add each smart device under this control group to the specified control group m.
[0082] After each smart device receives the grouping instruction, updating the value to 1 at the target position of the second group of masks of each smart device may include:
[0083] After the smart device in the above control group receives the grouping instruction addGroup(m), it uses the operation gmask = gmask OR m to update the second group of masks of the device, and updates the value of the i-th position from 0 to 1, so as to add this smart device to the control group m corresponding to the i-th bit.
[0084] In the fast control method of the smart home device and the smart home system in the above embodiments of the present disclosure, by creating a control group through the smart gateway and assigning a unique mask bit to each control group, multiple control groups can be dynamically managed. The number of control groups is no longer limited to static configuration, but can be flexibly added and deleted according to needs, greatly improving the scalability and flexibility of the smart home system. Through the grouping instruction, the smart gateway can send instructions to multiple devices simultaneously to add the devices to the control group. Each device confirms whether it belongs to the target control group by updating its second group of masks, improving the automation level of device management.
[0085] In a possible implementation of the above step S102, based on the first group of masks, a control instruction is sent to each smart device by using a smart gateway, and the control instruction is used to control at least one target smart device under the target control group, and is implemented based on the following steps:
[0086] Using the intelligent gateway to determine the device type corresponding to the target control group, and determining the target mask bit of the target control group in the first group mask of the intelligent gateway;
[0087] Construct control instructions based on device type, target mask bits, and device actions to be performed;
[0088] Use intelligent gateway to send control instructions to each intelligent device.
[0089] In this embodiment, the device type in the control instruction is used to enable the intelligent gateway to determine which intelligent devices can receive and execute the instruction; the target mask bit in the control instruction is used to enable the intelligent gateway to determine the target control group; the device action to be executed in the control instruction is used to enable the intelligent devices under the target control group to perform specific operations.
[0090] As an example, a control instruction may be as follows: {device type: "0x0001", control group mask bits: 0x00000013, action: "open"}.
[0091] In the fast control method and smart home system of the smart home device of the above embodiment of the present disclosure, by classifying and managing the devices by type and group, and issuing instructions based on the control group mask bit, the range of control instructions that need to be broadcasted each time an operation can be reduced, and the communication burden in the network can be reduced. No matter how many devices are controlled, because only one control instruction is sent, the need to control a large number of devices at the same time in a very short time can be solved, and the time difference has nothing to do with the number of devices.
[0092] In a possible implementation of the above step S103, after each smart device receives the control instruction, each smart device determines whether it belongs to the target control group based on the second group of masks. When it is determined that it belongs to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result. This is implemented based on the following steps:
[0093] After the smart device receives the control instruction, the smart device determines whether it meets the device type in the control instruction, and discards the control instruction when it does not meet the device type;
[0094] Determine whether the target mask bit of the second group mask of the smart device is 1, and when the target mask bit is 1, execute the device action in the control instruction;
[0095] After the smart device completes the device action, it does not send the execution result to the smart gateway.
[0096] In this embodiment, after the smart device receives the control instruction, the smart device determines whether its own device type is the same as the device type in the control instruction. If not, the control instruction is discarded.
[0097] The smart device performs an AND operation on its second set of masks and the target mask bits in the control instruction. If the result of the AND operation is 0, the control instruction is discarded. If the result of the AND operation is 1, the control instruction is executed.
[0098] After the smart device completes the device action, the execution result is ignored and the execution result is not sent to the smart gateway.
[0099] In the fast control method and smart home system of the smart home device of the above embodiment of the present disclosure, when the smart device receives the control instruction, it first determines whether its device type is consistent with the target device type. If it is inconsistent, the instruction is directly discarded, thereby avoiding the device-independent instruction processing process, effectively reducing invalid calculations and communications, and reducing the consumption of network and system resources. Especially in a smart home system with a large number of devices, it can greatly improve the efficiency of instruction issuance and execution and reduce the system burden. The smart device does not send the execution result to the smart gateway. This approach can reduce channel congestion and improve communication efficiency.
[0100] In one embodiment, a smart home system 200 is provided, which corresponds one-to-one to the fast control method of smart home devices in the above embodiment. Figure 2 As shown, the smart home system 200 includes a smart gateway 201 and at least one smart device 202, wherein each functional module is described in detail as follows:
[0101] The intelligent gateway 201 is used to create a control group and allocate a mask bit to the control group in the first group mask; wherein the control group includes at least one intelligent device 202;
[0102] The intelligent gateway 201 is used to issue a control instruction to each intelligent device based on the first group of masks, where the control instruction is used to control at least one target intelligent device under the target control group; wherein the control instruction includes the mask bit of the target control group and the device action to be executed;
[0103] The smart device 202 is used to determine whether it belongs to the target control group based on the second group of masks, and when it is determined that it belongs to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result.
[0104] In one embodiment, the smart gateway 201 is further configured to determine the device type of each smart device 202 based on the initialization information of each smart device 202;
[0105] At least one smart device 202 having the same device type is classified, and based on the classification result, each smart device 202 in the at least one smart device 202 is divided into at least one control group.
[0106] In one embodiment, the intelligent gateway 201 is used to determine a first group of masks corresponding to the device type based on the device type of the intelligent device 202 controlled by the control group;
[0107] Find out whether there is a target position with a value of 0 in the first set of masks. If the target position exists, update the value of the target position to 1;
[0108] The intelligent gateway 201 is also used to send grouping instructions to each intelligent device 202 in the control group;
[0109] The smart device 202 is configured to update the value at the target position of the second group of masks to 1 after receiving the grouping instruction.
[0110] In one embodiment, the intelligent gateway 201 is used to determine the device type corresponding to the target control group, and determine the target mask bit in the first group mask of the target control group;
[0111] Construct control instructions based on device type, target mask bits, and device actions to be performed;
[0112] A control instruction is issued to each smart device 202 .
[0113] In one embodiment, the smart device 202 is used to determine whether the device type in the control instruction is met after receiving the control instruction, and discard the control instruction when the device type is not met;
[0114] Determine whether the target mask bit of the second mask group is 1, and when the target mask bit is 1, execute the device action in the control instruction;
[0115] After executing the device action, the execution result is not sent to the smart gateway 201.
[0116] It should be noted that: the smart home system provided in the above embodiment only uses the division of the above program modules as an example to illustrate when implementing the rapid control method of the corresponding smart home device. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the above system can be divided into different program modules to complete all or part of the above-described processing. Figure 1b The embodiments of the method shown belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
[0117] The present disclosure also provides a computer device having the above Figure 2 The smart home system shown.
[0118] See also Figure 3 , Figure 3 is a structural diagram of another smart home system provided by an embodiment of the present disclosure, such as Figure 3 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 10 is taken as an example.
[0119] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0120] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0121] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0122] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0123] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0124] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0125] The computer device also includes a communication interface, which is used for the computer device to communicate with other devices or a communication network.
[0126] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0127] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0128] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A fast control method for smart home devices, characterized in that: Applied to a smart home system, the smart home system includes: a smart gateway and at least one smart device, the method includes: Creating a control group in the intelligent gateway, and assigning a mask bit to the control group in the first group of masks; wherein the control group includes at least one intelligent device; Based on the first group of masks, the intelligent gateway is used to issue a control instruction to each intelligent device, wherein the control instruction is used to control at least one target intelligent device under the target control group; wherein the control instruction includes the mask bit of the target control group and the device action to be executed; After each smart device receives the control instruction, each smart device determines whether it belongs to the target control group based on the second group of masks. When it is determined that it belongs to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result.
2. The method according to claim 1, characterized in that: The method further comprises: Using an intelligent gateway, based on initialization information of each intelligent device, determining a device type of each intelligent device; At least one intelligent device having the same device type is classified, and based on a result of the classification, each of the at least one intelligent device is divided into at least one control group.
3. The method according to claim 2, characterized in that Creating a control group in the intelligent gateway and assigning a mask bit to the control group in the first set of masks is achieved based on the following steps: Based on the device type of the smart device controlled by the control group, determining in the smart gateway a first group of masks corresponding to the device type; Find whether there is a target position with a value of 0 in the first group of masks, and if the target position exists, update the value of the target position to 1; The method further comprises: Using the intelligent gateway to issue a grouping instruction to each intelligent device in the control group; After each of the smart devices receives the grouping instruction, a value is updated to 1 at a target position of the second group mask of each of the smart devices.
4. The method according to claim 3, characterized in that Based on the first group of masks, the intelligent gateway is used to send a control instruction to each intelligent device, wherein the control instruction is used to control at least one target intelligent device under the target control group, and is implemented based on the following steps: Determine the device type corresponding to the target control group using an intelligent gateway, and determine the target mask bit of the target control group in the first group mask of the intelligent gateway; Constructing a control instruction based on the device type, the target mask bit, and the device action to be performed; The intelligent gateway is used to send the control instruction to each intelligent device.
5. The method according to claim 4, characterized in that After each smart device receives the control instruction, each smart device determines whether it belongs to the target control group based on the second group of masks. When it is determined that it belongs to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result, which is implemented based on the following steps: After the smart device receives the control instruction, the smart device determines whether it meets the device type in the control instruction, and discards the control instruction when it does not meet the device type; Determine whether a target mask bit of the second group mask of the smart device is 1, and when the target mask bit is 1, execute the device action in the control instruction; After the smart device completes executing the device action, no execution result is sent to the smart gateway.
6. A smart home system, characterized in that: The smart home system includes a smart gateway and at least one smart device, wherein: An intelligent gateway, configured to create a control group, and to allocate a mask bit to the control group in a first group of masks; wherein the control group includes at least one intelligent device; The intelligent gateway is used to issue a control instruction to each intelligent device based on the first group of masks, wherein the control instruction is used to control at least one target intelligent device under the target control group; wherein the control instruction includes the mask bit of the target control group and the device action to be executed; The smart device is used to determine whether it belongs to the target control group based on the second group of masks, and when it is determined to belong to the target control group, the target smart device executes the device action in the control instruction and ignores the execution result.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the fast control method for smart home devices according to any one of claims 1 to 5.
8. A computer program product, characterized in that It includes computer instructions, and the computer instructions are used to enable a computer to execute the fast control method of the smart home device according to any one of claims 1 to 5.
Citation Information
Patent Citations
Control method and system for smart home
CN106789460A
Local network management grouping method and device, electronic equipment and storage medium
CN115685843A
Method and device for controlling smart home equipment
CN118778468A
Device control method and apparatus
WO2021196592A1