Equipment control method, equipment control device, intelligent switch and intelligent home system
Through the device control method of smart switches, the target device is selected and the actions are performed using preset identification information, which solves the problem that users have difficulty in centrally controlling multiple smart products, and improves control efficiency and user experience.
Patent Information
- Application Number
- CN202411634493.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-02-14
AI Technical Summary
In the existing smart home system, it is difficult for users to centrally control the working status of multiple smart products, resulting in low control efficiency, cumbersome operation and poor user experience.
Through the device control method of the intelligent switch, functional commands are received, and the target device is selected and corresponding actions are performed according to the preset identification information of the switch sub-device, thereby realizing synchronization or basic synchronization control of multiple intelligent products.
It improves the control efficiency and user experience of smart products, allowing users to easily control the working status of multiple smart products through functional commands, reducing the cumbersome and synchronization problems of operations.
Smart Images

Figure CN119439770A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of control technology, and in particular to a device control method, a device control apparatus, a smart switch and a smart home system. Background Art
[0002] With the continuous development of Internet of Things technology, more and more families are equipped with smart products to improve the quality of life. In some examples, the working status of smart products can be controlled individually by corresponding control devices. However, if users want to centrally control the working status of multiple smart products, they need to operate the control devices of these smart products separately, which has low control efficiency and cumbersome operation, resulting in poor user experience. Summary of the invention
[0003] A brief overview of the disclosure is given below in order to provide a basic understanding of some aspects of the disclosure. However, it should be understood that this overview is not an exhaustive overview of the disclosure. It is not intended to identify the key or important parts of the disclosure, nor is it intended to limit the scope of the disclosure. Its purpose is simply to give some concepts of the disclosure in a simplified form as a prelude to a more detailed description given later.
[0004] One of the purposes of the present disclosure is to provide a device control method, a device control apparatus, a smart switch and a smart home system.
[0005] According to a first aspect of the present disclosure, a device control method is provided, wherein the device control method is performed by an intelligent switch, the intelligent switch includes at least one switch sub-device, and the device control method includes:
[0006] receiving a function command, wherein the function command includes target identification information and action information;
[0007] According to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device; and
[0008] The target device is controlled to perform an action corresponding to the action information.
[0009] In some embodiments, the preset identification information of each switch sub-device includes at least one of the following:
[0010] First preset identification information for indicating a switch sub-device, wherein the first preset identification information of each switch sub-device is different;
[0011] Second preset identification information for indicating the smart switch to which the switch sub-device belongs; and
[0012] The third preset identification information is used to indicate the scene to which the switch sub-device belongs.
[0013] In some embodiments, the function command includes at least one of a first function command for a first device and a second function command for a first scene, wherein the target identification information includes at least one of first target identification information of the first device and second target identification information of the first scene.
[0014] In some embodiments, according to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device comprises:
[0015] A switch sub-device whose first preset identification information or second preset identification information matches the first target identification information is selected as a target device from the at least one switch sub-device.
[0016] In some embodiments, according to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device comprises:
[0017] A switch sub-device whose third preset identification information matches the second target identification information is selected as a target device from the at least one switch sub-device.
[0018] In some embodiments, according to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device comprises:
[0019] A target device corresponding to the target identification information having a higher priority among the first target identification information and the second target identification information is selected from the at least one switch sub-device.
[0020] In some embodiments, the function command is sent by the command sender via multicast.
[0021] According to a second aspect of the present disclosure, a smart switch is provided, wherein the smart switch comprises:
[0022] at least one switch sub-device;
[0023] a communication module, the communication module being configured to receive a function command, wherein the function command includes target identification information and action information; and
[0024] A control module is communicatively connected to the communication module and the at least one switch sub-device, and the control module is configured to:
[0025] According to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device; and
[0026] The target device is controlled to perform an action corresponding to the action information.
[0027] In some embodiments, the smart switch further comprises:
[0028] A storage module is communicatively connected to the control module, wherein the storage module is configured to store preset identification information of the at least one switch sub-device.
[0029] In some embodiments, the smart switch further comprises:
[0030] A power module is configured to supply power to the communication module, the control module and the storage module.
[0031] In some embodiments, the target device is configured to:
[0032] receiving, via the communication module, a function command sent by a command sender in a multicast manner; and
[0033] The action corresponding to the action information is synchronously executed under the control of the control module.
[0034] According to a third aspect of the present disclosure, a smart home system is provided, wherein the smart home system comprises:
[0035] A smart switch as described above; and
[0036] at least one load, one or more of the at least one load being communicatively connected to a corresponding one of the at least one switch sub-device of the intelligent switch,
[0037] The control module of the intelligent switch is configured to control a target device in the at least one switch sub-device to perform an action corresponding to the action information, so as to control a working state of a load connected to the target device.
[0038] According to a fourth aspect of the present disclosure, there is provided a device control apparatus, comprising: a processor; and a memory, wherein instructions are stored in the memory, and when the instructions are executed by the processor, the steps of the device control method described above are implemented.
[0039] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed by a processor, the steps of the device control method described above are implemented.
[0040] According to a sixth aspect of the present disclosure, a computer program product is provided, comprising instructions, which, when executed by a processor, implement the steps of the device control method as described above.
[0041] Other features and advantages of the present disclosure will become more apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0043] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0044] Figure 1 A schematic diagram showing a flow chart of a device control method according to an exemplary embodiment of the present disclosure is shown;
[0045] Figure 2 A schematic structural diagram of a smart switch according to an exemplary embodiment of the present disclosure is shown;
[0046] Figure 3 A schematic diagram showing preset identification information in a storage module of a smart switch according to an exemplary embodiment of the present disclosure is shown;
[0047] Figure 4 A schematic diagram showing preset identification information in a storage module of a smart switch according to another exemplary embodiment of the present disclosure is shown;
[0048] Figure 5 A schematic diagram showing preset identification information corresponding to switch sub-devices in two intelligent switches according to the present disclosure;
[0049] Figure 6 A schematic diagram of an action execution link of a device control method according to an exemplary embodiment of the present disclosure is shown;
[0050] Figure 7 A schematic diagram of an action execution link of a device control method according to another exemplary embodiment of the present disclosure is shown;
[0051] Figure 8 A schematic diagram of an action execution link of a device control method according to another exemplary embodiment of the present disclosure is shown;
[0052] Fig. 9 A schematic structural diagram of a smart home system according to an exemplary embodiment of the present disclosure is shown;
[0053] Fig.10 A schematic structural diagram of a device control apparatus according to an exemplary embodiment of the present disclosure is shown.
[0054] Note that in the embodiments described below, the same reference numerals are sometimes used in common between different drawings to represent the same parts or parts with the same functions, and their repeated descriptions are omitted. In this specification, similar reference numerals and letters are used to represent similar items, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.
[0055] For ease of understanding, the positions, sizes, and ranges of various structures shown in the drawings and the like sometimes do not represent actual positions, sizes, and ranges, etc. Therefore, the disclosed invention is not limited to the positions, sizes, and ranges, etc. disclosed in the drawings and the like. In addition, the drawings are not necessarily drawn to scale, and some features may be exaggerated to show details of specific components. DETAILED DESCRIPTION
[0056] Various exemplary embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0057] The following description of at least one exemplary embodiment is in fact merely illustrative and is in no way intended to limit the present disclosure and its application or use. That is, the structures and methods herein are shown in an exemplary manner to illustrate different embodiments of the structures and methods in the present disclosure. However, those skilled in the art will appreciate that they merely illustrate exemplary ways of the present disclosure that can be implemented, rather than exhaustive ways. In addition, the drawings need not be drawn to scale, and some features may be enlarged to illustrate the details of specific components.
[0058] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0059] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0060] With the continuous development of IoT technology, users have higher and higher requirements for smart products. For example, from being able to control a single smart product by an application software APP to being able to jointly control multiple smart products, that is, controlling the interaction of multiple devices. After receiving the trigger command, the corresponding smart products in the whole house can work in conjunction. For example, by issuing the corresponding command, the user can turn on the entrance light and the living room light together when returning home, or turn off the living room light and the bedroom light together when preparing to go to bed.
[0061] However, the control devices that control the working status of these smart products are not synchronized when executing actions, resulting in poor synchronization between the linkages of various smart products. That is, users can clearly perceive the order of linkage between various smart products, resulting in poor user experience.
[0062] In order to solve the above problems, the present disclosure proposes a device control method, which can be executed by an intelligent switch. The corresponding switch sub-devices are controlled through identification information to jointly perform corresponding actions, so that these switch sub-devices can control the working status of the connected loads relatively or basically synchronously, thereby improving the user experience.
[0063] like Figure 1 and Figure 2 As shown, in an exemplary embodiment of the present disclosure, the smart switch 200 may include at least one switch sub-device 210, and one switch sub-device 210 may be connected to at least one load, wherein the switch sub-device 210 may be configured to control the working state of the load connected to the switch sub-device 210. For example, the switch sub-device 210 may be connected to a lamp in the living room and a lamp in the bedroom, and may control the lamp in the living room and the lamp in the bedroom to turn on or off.
[0064] like Figure 1 As shown, the device control method 100 may include:
[0065] Step S110, receiving a function command.
[0066] Among them, the function command may include target identification information and action information. In some embodiments, the function command may include at least one of a first function command for a first device and a second function command for a first scene. Accordingly, the target identification information may include at least one of the first target identification information of the first device and the second target identification information of the first scene. In some embodiments, the action information may include opening or closing to indicate the action that the user desires to perform.
[0067] In a specific example, if Figure 2As shown, the first device may be a smart switch 200, for example, the function command may instruct the smart switch 200 to be turned on or off, that is, all switch sub-devices 210 of the smart switch 200 to be turned on or off; or, the first device may be a designated switch sub-device 210 of the smart switch 200, for example, the function command may instruct the designated switch sub-device 210 to be turned on or off.
[0068] In a specific example, the first scene may be, for example, a sleeping scene, a movie watching scene, etc. For example, in the sleeping scene, the corresponding switch sub-devices for controlling the living room lights and the bedroom lights may perform corresponding actions to turn off the living room lights and the bedroom lights together to create an environment suitable for sleeping. In the movie watching scene, the corresponding switch sub-devices for controlling the living room lights and the electric curtains may perform corresponding actions to turn off the living room lights and the electric curtains together to create an environment suitable for watching movies. Function commands may be used to instruct turning the sleeping scene on or off, turning the movie watching scene on or off, etc.
[0069] return Figure 1 , the device control method 100 may further include:
[0070] Step S120, selecting a target device corresponding to the target identification information from at least one switch sub-device according to preset identification information of at least one switch sub-device pre-stored in the intelligent switch; and
[0071] Step S130, controlling the target device to execute an action corresponding to the action information.
[0072] In some embodiments, the preset identification information of the switch sub-device 210 may include first preset identification information for indicating the switch sub-device 210, wherein the first preset identification information of each switch sub-device is different, and one switch sub-device 210 corresponds to one first preset identification information. Alternatively, in some embodiments, the preset identification information of the switch sub-device 210 may include second preset identification information for indicating the smart switch 200 to which the switch sub-device 210 belongs. Alternatively, in some embodiments, the preset identification information of the switch sub-device 210 may include third preset identification information for indicating the scene to which the switch sub-device 210 belongs. If a switch sub-device 210 belongs to a smart switch 200, when an action is performed on the smart switch 200 (for example, turning on or off the smart switch 200), the switch sub-device 210 under the smart switch 200 performs a corresponding action; if a switch sub-device 210 belongs to a scene, when an action is performed on the scene (for example, turning on or off the scene), the switch sub-device 210 under the scene performs a corresponding action.
[0073] Figure 3FIG. 2 is a schematic diagram showing preset identification information of four switch sub-devices 210 pre-stored in an intelligent switch 200 in an exemplary embodiment. Figure 3 As shown, the first preset identification information (i.e., the switch sub-device ID) used to indicate the four switch sub-devices 210 are A1, A2, A3, and A4, respectively, and the second preset identification information (i.e., the smart switch ID) used to indicate the smart switch 200 to which the four switch sub-devices 210 belong is A. In this document, the smart switch 200 with the smart switch ID A is also referred to as the smart switch A, and the switch sub-device 210 with the switch sub-device ID A1 is also referred to as the switch sub-device A1.
[0074] Figure 4 FIG. 2 is a schematic diagram showing preset identification information of four switch sub-devices 210 pre-stored in the smart switch 200 in another exemplary embodiment. The preset identification information of some switch sub-devices 210 may also include third preset identification information for indicating the scene to which the switch sub-device 210 belongs, such as Figure 4 As shown, the third preset identification information (ie, the scene ID) of the scene to which the switch sub-device A1 and the switch sub-device A3 belong is 1. In some embodiments, the pre-stored preset identification information of the switch sub-device 210 can be updated, for example, in Figure 3 In the case of the preset identification information including the switch sub-device ID and the corresponding smart switch ID, the corresponding scene ID is added to the corresponding switch sub-device 210. For example, the scene ID can be added to the switch sub-devices A1 and A3 to form the following Figure 4 The preset identification information shown.
[0075] In some embodiments, for the same scenario, the corresponding switch sub-devices 210 may be located in different smart switches 200. Figure 5 As shown, the scene IDs to which the switch sub-devices A1 and A3 in the smart switch A and the switch sub-devices B2 and B4 in the smart switch B belong are all 1.
[0076] In some embodiments, the preset identification information of the switch sub-device 210 can be pre-stored in Figure 2 The storage module 240 of the smart switch 200 shown in the figure can determine the target device for the function command according to the preset identification information pre-stored in the storage module 240.
[0077] In some embodiments, based on preset identification information of at least one switch sub-device 210 pre-stored in the smart switch 200, selecting a target device corresponding to the target identification information from at least one switch sub-device 210 may include: determining as the target device a switch sub-device 210 whose first preset identification information or second preset identification information matches the first target identification information. In a specific example, the first target identification information is the ID of the switch sub-device 210, such as A3 and A4, and then the switch sub-device 210 whose first preset identification information is A3 and A4 in at least one switch sub-device 210 may be determined as the target device. Alternatively, the first target identification information is the ID of the smart switch to which it belongs, such as A, and then the switch sub-device 210 whose second preset identification information is A in at least one switch sub-device 210 may be determined as the target device, that is, the switch sub-device 210 belonging to the smart switch A in at least one switch sub-device 210 (for example, Figures 3 to 5 The switch sub-devices A1, A2, A3, A4) shown are target devices.
[0078] In some embodiments, according to the preset identification information of at least one switch sub-device 210 pre-stored in the smart switch 200, selecting the target device corresponding to the target identification information from the at least one switch sub-device 210 may include: determining that the switch sub-device 210 whose third preset identification information matches the second target identification information in the at least one switch sub-device 210 is the target device. In a specific example, the second target identification information is the ID of the scene, such as I, then the switch sub-device 210 whose third preset identification information is I in the at least one switch sub-device 210 (for example, Figures 4 to 5 The switch sub-devices A1, A3, B2, B4) shown are target devices.
[0079] In some embodiments, when the function command includes both the first target identification information and the second target identification information, according to the preset identification information of at least one switch sub-device 210 pre-stored in the intelligent switch 200, the target device corresponding to the target identification information with a higher priority among the first target identification information and the second target identification information can be selected from the at least one switch sub-device 210. The priority of the target identification information can be preset. For example, in a specific example, the second target identification information of the first scene can have a higher priority than the first target identification information of the first device, and the target device corresponding to the second target identification information can be selected from the at least one switch sub-device 210, so that the corresponding switch sub-device in the first scene targeted by the function command can be preferentially controlled to perform the corresponding action. Alternatively, the second target identification information of the first scene can have a lower priority than the first target identification information of the first device, and the target device corresponding to the first target identification information can be selected from the at least one switch sub-device 210, so that the first device targeted by the function command can be preferentially controlled to perform the corresponding action.
[0080] In some embodiments, after controlling the target device corresponding to the target identification information with a higher priority to perform the corresponding action, the target device corresponding to the target identification information with a lower priority can be selected from at least one switch sub-device 200, and the target device can be controlled to perform the corresponding action. In this way, the corresponding target devices can be controlled to perform the corresponding actions in sequence based on the priority of the target identification information, which reduces the possibility of conflict when controlling the target device to perform the corresponding action when the target device selected based on the first target identification information and the target device selected based on the second target identification information are inconsistent.
[0081] In some embodiments, the function command can be sent by the command sender through multicast, unicast or broadcast. In a specific example, through the corresponding smart switch ID or scene ID, targeted multicast can be performed to the target device in at least one switch sub-device 210 to control the target device to perform actions synchronously or substantially synchronously when there are multiple target devices. Targeted multicast can solve the problems of slow efficiency and asynchronous actions caused by the need to perform one action at a time when sending commands in a traditional unicast manner, and can solve the problems of road congestion caused by the large amount of information broadcasted when sending commands in a broadcast manner, the long time it takes for the control command to be transmitted to the switch sub-device, the slow response of the action execution, and the low synchronization of the action, so as to effectively speed up the response time of the target device to perform the action, improve the control efficiency, and improve the synchronization of the target device action.
[0082] In some embodiments, the command sender may include at least one of an APP control terminal, a third-party voice terminal, a gateway terminal, and a local button device terminal. The APP control terminal may be, for example, an application APP installed on a mobile device. The third-party voice terminal may be a device capable of voice interaction, such as a smart speaker. The gateway terminal may be, for example, a home gateway set locally. The local button device terminal may be, for example, a touchable button or switch set locally.
[0083] In some embodiments, the command sender and the smart switch can communicate based on wireless communication technologies such as WiFi, Bluetooth, or Zigbee.
[0084] According to another aspect of the present disclosure, a smart switch is also provided. Figure 2 As shown, the smart switch 200 may include at least one switch sub-device 210 , a communication module 220 and a control module 230 .
[0085] The communication module 220 may be configured to receive a function command, wherein the function command may include target identification information and action information.
[0086] The control module 230 may be communicatively connected with the communication module 220 and the at least one switch sub-device 210. The control module 230 may be configured to select a target device corresponding to the target identification information from the at least one switch sub-device 210 according to preset identification information of the at least one switch sub-device 210 pre-stored in the smart switch. The control module 230 may also be configured to control the target device to perform an action corresponding to the action information.
[0087] In some embodiments, Figure 2 As shown, the intelligent switch may further include a storage module 240, wherein the storage module 240 may be communicatively connected to the control module 230. The storage module 240 may be configured to store preset identification information of at least one switch sub-device 210.
[0088] In some embodiments, Figure 2 As shown, the intelligent switch may further include a power module. The power module may be configured to supply power to the communication module 220, the control module 230 and the storage module 240 so that the communication module 220, the control module 230 and the storage module 240 can operate normally.
[0089] When the smart switch 200 is connected to the network (for example, connected to the home LAN), corresponding preset identification information, such as smart switch A or smart switch B, can be assigned to the smart switch 200. At the same time, corresponding preset identification information, such as switch sub-devices A1, A2, A3, A4 or switch sub-devices B1, B2, B3, B4, can be assigned to the corresponding switch sub-devices 210 according to the number of switch sub-devices 210 included in the smart switch 200 or according to the number of switch sub-devices 210 controllable by the control module 230 of the smart switch 200. In a specific example, the switch sub-device ID of the switch sub-device 210 and the smart switch ID to which it belongs can be stored in the storage module 240 of the smart switch 200 in units of switch sub-devices 210, or the switch sub-device ID of the switch sub-device 210 and the smart switch ID to which it belongs stored in the storage module 240 can be updated. Here, the information stored in the storage module 240 of the smart switch A can be as follows: Figure 3 shown.
[0090] In some embodiments, a scene ID corresponding to the scene can be assigned to each switch sub-device 210 that needs to perform an action in the same scene, and the scene ID to which each switch sub-device 210 belongs can be stored in the storage module 240 of the corresponding smart switch 200, or the scene ID of the switch sub-device 210 stored in the storage module 240 of the corresponding smart switch 200 can be updated. Then, a corresponding trigger condition can be set to trigger the corresponding switch sub-device 210 in the scene to perform a corresponding action. In a specific example, at least two switch sub-devices 210 in each switch sub-device 210 can belong to different smart switches 200. For example, for the movie watching scene I (scene ID is I), the switch sub-device A1 needs to be turned on, A3 is turned off, B2 is turned on, and B4 is turned off, wherein the switch sub-devices A1 and A3 belong to the smart switch A, and the switch sub-devices B2 and B4 belong to the smart switch B, then the scene ID to which the corresponding switch sub-device 210 belongs can be stored or updated in the storage module 240 of the smart switch 200 corresponding to the above switch sub-devices 210 as I. For example, for the switch sub-device A1, the storage module 240 of the smart switch A may store the switch sub-device ID: A1, the smart switch ID: A, and the scene ID: I. Here, the information stored in the storage module 240 of the smart switch A may be as follows: Figure 4 shown.
[0091] In some embodiments, at least one switch sub-device 210 can be communicatively connected to a communication module 220, wherein a target device selected from at least one switch sub-device 210 can be configured to receive a function command sent by a command sender in a multicast manner via the communication module 220, and to synchronously execute an action corresponding to the action information via the control module 230.
[0092] The following combination Figure 2 , Figure 6 and Figure 7 Describes the action execution link of the corresponding device when the command sender sends the command in a multicast manner.
[0093] In some embodiments, if all switch sub-devices 210 belonging to a certain smart switch 200 need to act together, the command sender can send the function command in a multicast manner according to the addressing rules, and all switch sub-devices 210 in the group can receive the corresponding command at the same time or substantially at the same time and perform the corresponding action synchronously or substantially synchronously. Figure 6 As shown, the command sender sends a command to turn off the smart switch A, and the switch sub-device 210 whose smart switch ID is A can receive the corresponding command simultaneously or substantially simultaneously through the communication module 220 of the smart switch A, and can synchronously or substantially synchronously perform the closing action through the control module 230 of the smart switch A. Among them, after the communication module 220 of the smart switch A receives the command sent by the command sender, the control module 230 can find the switch sub-device 210 whose smart switch ID is A from the storage module 240, such as the switch sub-devices A1, A2, A3, and A4, and control these switch sub-devices 210 to synchronously or substantially synchronously perform the corresponding action, such as controlling the switch sub-devices A1, A2, A3, and A4 to turn off. After the actions of the switch sub-devices A1, A2, A3, and A4 are executed, they can report to the command sender through the communication module 220 that the switch sub-devices A1, A2, A3, and A4 have been turned off, completing the execution link of turning off the smart switch A.
[0094] In some embodiments, when a certain scene needs to be turned on, the command sender can send the function command in a multicast manner according to the addressing rules, and all switch sub-devices 210 in the group can receive the corresponding command at the same time or substantially at the same time and perform the corresponding action synchronously or substantially synchronously. Figure 7As shown, the command sender sends a command to open the movie viewing scene I, and the switch sub-devices 210 with the scene ID of I can receive the corresponding command simultaneously or substantially simultaneously through the communication module 220 of the smart switch 200 to which they belong (for example, smart switch A and smart switch B), and can synchronously or substantially synchronously perform the actions to be performed respectively through the control module 230 of the smart switch 200 to which they belong. Among them, the communication module 220 of smart switch A and the communication module 220 of smart switch B can receive the command sent by the command sender simultaneously or substantially simultaneously. After the communication module 220 of smart switch A receives the command sent by the command sender, the control module 230 of smart switch A can find the switch sub-devices 210 with the scene ID of I from the storage module 240 of smart switch A, such as switch sub-devices A1 and A3, and control these switch sub-devices 210 to synchronously or substantially synchronously perform the corresponding actions, such as controlling the switch sub-device A1 to be turned on and the switch sub-device A3 to be turned off. After the communication module 220 of the smart switch B receives the command sent by the command sender, the control module 230 of the smart switch B can find the switch sub-device 210 with the scene ID of I from the storage module 240 of the smart switch B, such as switch sub-devices B2 and B4, and control these switch sub-devices 210 to perform corresponding actions synchronously or substantially synchronously, such as controlling the switch sub-device B2 to turn on and the switch sub-device B4 to turn off. In this way, the switch sub-devices A1, A3, B2, and B4 can perform corresponding actions synchronously or substantially synchronously. After the actions of the switch sub-devices A1, A3, B2, and B4 are executed, the communication module 220 of the corresponding smart switch 200 can be used to report to the command sender that the corresponding switch sub-device has completed the corresponding action, thereby completing the execution link of opening the movie viewing scene.
[0095] The following combination Figure 8 Describes the action execution link of the corresponding device when the command sender sends the command in unicast mode.
[0096] In a specific example, if a switch sub-device 210 belonging to a certain smart switch 200 needs to act alone, the command sender can send the function command in a unicast manner according to the addressing rule, so that the corresponding switch sub-device 210 performs the corresponding action. Figure 8As shown, the command sender sends an opening command to the switch sub-device A3, and the switch sub-device A3 of the smart switch A can receive the corresponding command via the communication module 220 of the smart switch A, and can perform the opening action via the control module 230 of the smart switch A. After the communication module 220 of the smart switch A receives the command sent by the command sender, the control module 230 can find the switch sub-device 210 with the switch sub-device ID of A3 from the storage module 240, that is, the switch sub-device A3, and control the switch sub-device A3 to open. After the execution of the action of the switch sub-device A3 is completed, the switch sub-device A3 can be reported to the command sender via the communication module 220 of the smart switch A that the switch sub-device A3 has been opened, and the execution link of opening the switch sub-device A3 is completed.
[0097] According to another aspect of the present disclosure, a smart home system is further provided, wherein the smart home system may include the smart switch described in any of the foregoing embodiments of the present disclosure and at least one load. Fig. 9 As shown, in an exemplary embodiment of the present disclosure, a smart home system 400 may include a smart switch 200 and at least one load 310. One or more of the at least one load 310 may be communicatively connected to a corresponding one of the at least one switch sub-device 210 of the smart switch 200. In some embodiments, the connection between the load 310 and the switch sub-device 210 may be a physical connection, such as a connection through a corresponding control loop, or a wireless connection, such as a wireless communication connection implemented through a corresponding wireless communication technology.
[0098] The control module 230 of the smart switch 200 may be configured to control a target device in at least one switch sub-device 210 to perform an action corresponding to the action information, so as to control the working state of the load 310 connected to the target device.
[0099] According to another aspect of the present disclosure, a device control apparatus is also provided. Fig.10 As shown, in an exemplary embodiment of the present disclosure, the device control apparatus 400 may include a processor 410 and a memory 420. The memory 420 stores instructions, which, when executed by the processor 410, implement the steps of the device control method described in any of the foregoing embodiments of the present disclosure.
[0100] The processor 410 may be an integrated circuit chip having the ability to process signals. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, to implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc., and may be an X86 architecture or an ARM architecture, etc.
[0101] The memory 420 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronously connected dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0102] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed, the steps of the device control method described in any of the foregoing embodiments of the present disclosure can be implemented.
[0103] Similarly, the non-transitory computer-readable storage medium in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. It should be noted that the non-transitory computer-readable storage medium described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0104] According to another aspect of the present disclosure, a computer program product is further provided. The computer program product includes a computer program. When the computer program is executed by a processor, the steps of the device control method described in any of the foregoing embodiments of the present disclosure can be implemented.
[0105] Instructions may be any set of instructions to be executed directly by one or more processors, such as machine code, or any set of instructions to be executed indirectly, such as a script. The terms "instructions", "applications", "processes", "steps" and "programs" (including "computer programs") herein may be used interchangeably herein. Instructions may be stored in an object code format for direct processing by one or more processors, or in any other computer language, including scripts or collections of independent source code modules that are interpreted on demand or compiled in advance. Other sections of this document explain the functions, methods and routines of instructions in more detail.
[0106] In the technical solution of the present disclosure, by setting preset identification information for each switch sub-device of the smart switch, such as the smart switch ID and / or scene ID to which it belongs, and storing the preset identification information in the smart switch, when the switch sub-devices of a certain smart switch need to act together or the designated switch sub-devices of different smart switches need to act together, the corresponding switch sub-devices can be controlled to perform actions synchronously through the corresponding identification information, so that the working state of the connected load can be controlled synchronously or substantially synchronously, thereby improving the user experience. According to some embodiments of the present disclosure, the synchronization between the switch sub-devices that need to perform actions is high, and the user will not obviously perceive the order of performing actions, which reduces the possibility of users misunderstanding that the smart switch fails or the corresponding scene is not executed due to the low synchronization between the switch sub-devices, improves the user experience of the smart switch, and helps to improve the brand image of the smart switch manufacturer.
[0107] The words "left", "right", "front", "back", "top", "bottom", "up", "down", "high", "low", etc., in the specification and claims, if present, are used for descriptive purposes and are not necessarily used to describe an unchanging relative position. It should be understood that the words so used are interchangeable under appropriate circumstances, so that the embodiments of the present disclosure described herein, for example, can operate in other orientations than those shown or otherwise described herein. For example, when the device in the drawings is turned over, features originally described as "above" other features may now be described as "below" the other features. The device may also be oriented in other ways (rotated 90 degrees or in other orientations), and the relative spatial relationships will be interpreted accordingly.
[0108] In the specification and claims, when an element is referred to as being "on", "attached", "connected", "coupled", or "contacting" another element, the element may be directly on, directly attached, directly connected, directly coupled, or directly contacting another element, or one or more intermediate elements may be present. In contrast, when an element is referred to as being "directly" "on", "directly attached", "directly connected", "directly coupled", or "directly contacting" another element, there will be no intermediate elements. In the specification and claims, a feature being arranged "adjacent" to another feature may refer to a feature having a portion that overlaps with an adjacent feature or a portion that is located above or below an adjacent feature.
[0109] As used herein, the word "exemplary" means "serving as an example, instance, or illustration" rather than as a "model" to be exactly copied. Any implementation described as an example herein is not necessarily to be construed as preferred or advantageous over other implementations. Furthermore, the present disclosure is not to be limited by any expressed or implied theory given in the technical field, background, summary, or detailed description.
[0110] As used herein, the term "substantially" is intended to include any minor variations due to design or manufacturing imperfections, device or component tolerances, environmental influences, and / or other factors. The term "substantially" also allows for deviations from a perfect or ideal situation due to parasitic effects, noise, and other practical considerations that may exist in actual implementations.
[0111] In addition, the terms "first", "second" and the like may also be used herein for reference purposes only and are not intended to be limiting. For example, the terms "first", "second" and other such numerical terms referring to structures or elements do not imply a sequence or order unless the context clearly indicates otherwise.
[0112] It should also be understood that when the term “include / comprises” is used in this document, it indicates the presence of the specified features, integers, steps, operations, units and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, units and / or components and / or their combinations.
[0113] In this disclosure, the term "provide" is used in a broad sense to cover all ways of obtaining an object, and thus "providing an object" includes but is not limited to "purchasing", "preparing / manufacturing", "arranging / setting up", "installing / assembling", and / or "ordering" an object, etc.
[0114] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items. The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0115] Those skilled in the art will appreciate that the boundaries between the above operations are merely illustrative. Multiple operations can be combined into a single operation, a single operation can be distributed in additional operations, and operations can be performed at least partially overlapping in time. Moreover, alternative embodiments may include multiple instances of a specific operation, and the order of operations may be changed in various other embodiments. However, other modifications, variations, and replacements are equally possible. Aspects and elements of all embodiments disclosed above may be combined in any manner and / or in combination with aspects or elements of other embodiments to provide multiple additional embodiments. Therefore, this specification and accompanying drawings should be considered illustrative, not restrictive.
[0116] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. The various embodiments disclosed herein may be combined in any manner without departing from the spirit and scope of the present disclosure. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A device control method, characterized in that: The device control method is executed by an intelligent switch, the intelligent switch includes at least one switch sub-device, and the device control method includes: receiving a function command, wherein the function command includes target identification information and action information; According to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device; and The target device is controlled to perform an action corresponding to the action information.
2. The device control method according to claim 1, characterized in that: The preset identification information of each switch sub-device includes at least one of the following: First preset identification information for indicating a switch sub-device, wherein the first preset identification information of each switch sub-device is different; Second preset identification information for indicating the smart switch to which the switch sub-device belongs; and The third preset identification information is used to indicate the scene to which the switch sub-device belongs.
3. The device control method according to claim 2, characterized in that: The function command includes at least one of a first function command for a first device and a second function command for a first scene, wherein the target identification information includes at least one of first target identification information of the first device and second target identification information of the first scene.
4. The device control method according to claim 3, characterized in that: According to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device comprises: A switch sub-device whose first preset identification information or second preset identification information matches the first target identification information is selected as a target device from the at least one switch sub-device.
5. The device control method according to claim 3, characterized in that: According to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device comprises: A switch sub-device whose third preset identification information matches the second target identification information is selected as a target device from the at least one switch sub-device.
6. The device control method according to claim 3, characterized in that: According to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device comprises: A target device corresponding to the target identification information having a higher priority among the first target identification information and the second target identification information is selected from the at least one switch sub-device.
7. The device control method according to any one of claims 1 to 6, characterized in that: The function command is sent by the command sender in a multicast manner.
8. An intelligent switch, characterized in that: The intelligent switch comprises: at least one switch sub-device; a communication module, the communication module being configured to receive a function command, wherein the function command includes target identification information and action information; and A control module is communicatively connected to the communication module and the at least one switch sub-device, and the control module is configured to: According to preset identification information of the at least one switch sub-device pre-stored in the smart switch, selecting a target device corresponding to the target identification information from the at least one switch sub-device; and The target device is controlled to perform an action corresponding to the action information.
9. The intelligent switch according to claim 8, characterized in that: The intelligent switch also includes: A storage module is communicatively connected to the control module, wherein the storage module is configured to store preset identification information of the at least one switch sub-device.
10. The intelligent switch according to claim 9, characterized in that: The intelligent switch also includes: A power module is configured to supply power to the communication module, the control module and the storage module.
11. The intelligent switch according to claim 8, characterized in that: The target device is configured as: receiving, via the communication module, a function command sent by a command sender in a multicast manner; and The action corresponding to the action information is synchronously executed under the control of the control module.
12. A smart home system, characterized in that: The smart home system comprises: The intelligent switch according to any one of claims 8 to 11; and at least one load, one or more of the at least one load being communicatively connected to a corresponding one of the at least one switch sub-device of the intelligent switch, The control module of the intelligent switch is configured to control a target device in the at least one switch sub-device to perform an action corresponding to the action information, so as to control a working state of a load connected to the target device.
13. A device control device, characterized in that: The device control apparatus comprises a processor and a memory, wherein instructions are stored in the memory, and when the instructions are executed by the processor, the steps of the device control method according to any one of claims 1 to 7 are implemented.
14. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores instructions, and when the instructions are executed, the steps of the device control method according to any one of claims 1 to 7 are implemented.
15. A computer program product, characterized in that The computer program product comprises instructions, and when the instructions are executed by the processor, the steps of the device control method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Smart home scene determination method, smart home scene execution method, equipment and medium
CN116300501A