A control method, an intelligent host, and a storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-15
- Publication Date
- 2026-08-14
AI Technical Summary
但是,目前的无线开关的控制目标单一而且比较固定,比如与智能灯配套的无线开关只能控制智能灯,空调配套的无线开关智能控制空调;而且目前的无线开关主要在单个空间中使用,不支持跨空间使用,如果需要在多个空间使用,那就需要配置多个无线开关,用户体验较差
Smart Images

Figure CN119493388B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic technology, and in particular to a control method, an intelligent host, and a storage medium. Background Technology
[0002] As a new system, whole-house smart home technology is gradually becoming more widespread in households, giving rise to many new concepts and user experiences. For example, portable wireless switches offer mobile and convenient control capabilities. However, current wireless switches have limited and fixed control targets. For instance, a wireless switch paired with smart lights can only control the lights, and a wireless switch paired with an air conditioner can only control the air conditioner. Furthermore, current wireless switches are primarily used in a single space and do not support cross-space use. If multiple spaces require their use, multiple wireless switches are needed, resulting in a poor user experience. Summary of the Invention
[0003] This application provides a control method, a smart host, and a storage medium to improve the user experience of controlling smart home devices using control devices.
[0004] In a first aspect, this application provides a control method, the method comprising: a smart host receiving a control event sent by a control device in response to a first operation; the smart host receiving location information sent by at least one gateway device; if the event type of the control event is different from a first preset type and the control mode of the control device when receiving the first operation is smart mode, then the smart host determines a first spatial identifier of the space where the control device is located based on the location information; the smart host determines a first target device group based on the first spatial identifier; and then the smart host sends a first instruction to the first target device group, the first instruction being used to instruct the first target device group to perform a first function.
[0005] The first preset type can be a pre-defined event type used for event matching to determine whether a control event is used to switch control modes. This first preset type can be set by the user or be the system default. For example, the first preset type is a double-click event.
[0006] Through this method, after the smart host receives a control event sent by the control device in response to the first operation, if the event type of the control event is different from the first preset type and the control mode when the control device receives the first operation is the smart mode, the first target device group is determined according to the first space identifier of the space where the control device is located, thereby realizing the control of a group of devices by a single control device, and improving the user experience of the user using the control device to control smart home devices.
[0007] In one possible implementation, the intelligent host determines the first spatial identifier of the space where the control device is located based on the positioning information, which can be achieved through the following two possible implementation methods:
[0008] In Implementation Method 1, the smart host determines the location coordinates of the control device based on the positioning information. Then, based on the location coordinates of the control device and the whole-house space information, the smart host determines the first space identifier of the space where the control device is located. In this Implementation Method 1, the smart host needs to accurately determine the location coordinates of the control device based on positioning information provided by at least three gateways, and then combine this with the whole-house space information to accurately determine the space identifier where the control device is located.
[0009] In the second implementation method, the smart host can also receive sensing information from AI sensors. Based on the positioning information and sensing information, the smart host can determine the location coordinates of the control device. Then, based on the location coordinates of the control device and the whole-house space information, it can determine the first spatial identifier of the space where the control device is located. In this second implementation method, when the smart host receives positioning information from two gateways, it can accurately determine the location coordinates of the control device by combining the sensing information from the AI sensors, and then accurately determine the identifier of the space where the control device is located by combining the whole-house space information.
[0010] In one possible implementation, the smart host determines the first target device group based on a first space identifier, including: the smart host determining the space status information corresponding to the first space identifier; and then, based on the control event and the space status information, determining the first target device group from the smart home devices included in the space corresponding to the first space identifier. Through this implementation, the smart host can intelligently determine the first target device group from the smart home devices included in the space where the control device is located.
[0011] In one possible implementation, the smart host determines a first target device group from the smart home devices included in the space corresponding to the first space identifier based on control events and space status information. This includes: the smart host grouping the smart home devices included in the space corresponding to the first space identifier to obtain at least one control group; and determining the first target device group from the at least one control group based on control events and space status information.
[0012] In one possible implementation, the smart host groups the smart home devices included in the space corresponding to the first space identifier, including: the smart host automatically groups the smart home devices included in the space corresponding to the first space identifier according to function; or, the smart host groups the smart home devices included in the space corresponding to the first space identifier according to a user-defined grouping method. This implementation provides multiple ways to group the smart home devices included in the space where the control device is located.
[0013] In one possible implementation, at least one control group includes one or more of the following: a lighting control group, a shading control group, a volume control group, and a temperature control group.
[0014] In one possible implementation, the method further includes: if the event type of the control event is the same as a first preset type, the smart host switches the control mode of the control device. In this way, the user can operate the control device to switch its control mode. For example, if the control device is in smart mode when it receives the first operation, this implementation can switch it to scene mode; or, for another example, if the control device is in scene mode when it receives the first operation, this implementation can switch it to smart mode.
[0015] In one possible implementation, the method further includes: if the event type of the control event is the same as the second preset type, the intelligent host sends a second instruction to the second target device group, the second instruction being used to instruct the second target device group to perform a second function. In this way, the user can operate the control device to switch the target device group controlled by the control device.
[0016] The second preset type can be a pre-defined event type used for event matching to determine whether a control event is used for switching group control. This second preset type can be set by the user or be the system default. For example, the second preset type is a shake event.
[0017] In one possible implementation, the intelligent host determines a first target device group based on a first spatial identifier, including: if the first spatial identifier is the same as a second spatial identifier, the intelligent host uses the target device group corresponding to the second spatial identifier as the first target device group; the second spatial identifier is the spatial identifier of the space where the control device was located when the intelligent host most recently received a control event of the same type as the control event. In this way, when the control device receives two control events of the same type in the same space, the control device can directly use the target device group determined based on the previous control event as the first target device group to be controlled, thereby saving the intelligent host's computing resources.
[0018] Secondly, this application provides a control method, which includes: a smart host receiving a control event sent by a control device in response to a first operation; if the event type of the control event is different from a first preset type and the control mode when the control device receives the first operation is a scene mode, then the smart host determines a third target device group corresponding to the current scene; then, the smart host sends a third instruction to the third target device group, the third instruction being used to instruct the third target device group to perform a third function.
[0019] Through this method, after the smart host receives the control event sent by the control device in response to the first operation, if the event type of the control event is different from the first preset type and the control mode of the control device when receiving the first operation is the scene mode, the third target device group is determined according to the current scene. This enables the use of a single control device to group and control the smart devices associated with the current scene, thereby improving the user experience of using the control device to control smart home devices.
[0020] Thirdly, this application provides a control method, the method comprising: a control device receiving a first operation; and the control device responding to the first operation by sending a control event corresponding to the first operation to a smart host.
[0021] By using this method, the control device sends the control event to the smart host. After receiving the control event, if the event type of the control event is different from the first preset type and the control mode when the control device receives the first operation is in smart mode, the smart host can determine the first target device group based on the first space identifier of the space where the control device is located. This enables a single control device to control a group of devices, improving the user experience of using the control device to control smart home devices.
[0022] In one possible implementation, the method further includes: the control device broadcasting a positioning signal, the positioning signal being used to locate the position of the control device.
[0023] In one possible implementation, before the control device broadcasts the positioning signal, the control device can further determine that the event type of the control event corresponding to the first operation is different from the first preset type. That is, when the control device determines that the event type of the control event corresponding to the first operation is different from the first preset type, the control device broadcasts the positioning signal so that the intelligent device can locate the control device when the event type of the control event is different from the first preset type, thereby achieving grouped control of the intelligent devices within the space.
[0024] Fourthly, this application also provides an apparatus comprising modules / units for performing any of the possible design methods described in any of the foregoing aspects. These modules / units can be implemented in hardware or by hardware executing corresponding software.
[0025] Fifthly, this application provides an apparatus including a processor and a memory. The apparatus can be a control device or a smart host, wherein the memory is used to store one or more programs; when the one or more programs stored in the memory are executed by the processor, the apparatus is able to implement the foregoing aspects and any possible design methods related to those aspects.
[0026] Sixthly, this application also provides a readable storage medium including a program that, when run on a device, causes the device to perform the methods described in the foregoing aspects and any possible design relating to those aspects.
[0027] In a seventh aspect, this application also provides a program product that, when run on a device, causes the device to perform the methods of the foregoing aspects and any possible design involved in each aspect. Attached Figure Description
[0028] Figure 1 A flowchart illustrating the existing control scheme;
[0029] Figure 2 This is a schematic diagram of a whole-house smart scene provided in an embodiment of this application;
[0030] Figure 3A A schematic diagram of the communication system provided in the embodiments of this application;
[0031] Figure 3B A schematic diagram of a control device structure provided in an embodiment of this application;
[0032] Figure 4 This is a schematic diagram of the initial configuration of a whole-house smart system provided in an embodiment of this application;
[0033] Figure 5 This is a schematic diagram of the whole-house coordinate system provided in the embodiments of this application;
[0034] Figure 6 A schematic diagram of the spatial coordinate system provided for embodiments of this application;
[0035] Figures 7A to 7D A set of configuration interface diagrams provided for embodiments of this application;
[0036] Figures 7E to 7H A set of configuration interface diagrams provided for embodiments of this application;
[0037] Figures 7I to 7L A set of configuration interface diagrams provided for embodiments of this application;
[0038] Figure 8 A flowchart of a control method provided in an embodiment of this application;
[0039] Figure 9 This is a positioning diagram provided for an embodiment of this application;
[0040] Figure 10 This is a positioning diagram provided for an embodiment of this application;
[0041] Figure 11A schematic diagram of angle of arrival positioning provided in an embodiment of this application;
[0042] Figure 12 A schematic diagram illustrating a method for determining a first target device group provided in an embodiment of this application;
[0043] Figure 13 A flowchart illustrating a control method provided in an embodiment of this application;
[0044] Figure 14 A flowchart illustrating a control method provided in an embodiment of this application;
[0045] Figure 15 This is a schematic diagram of a control device structure provided in an embodiment of this application. Detailed Implementation
[0046] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the embodiments of this application, "one or more" refers to one, two, or more; "and / or" describes the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0047] References to "some embodiments" and the like in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, phrases such as "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiments, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0048] The "multiple" mentioned in the embodiments of this application refers to two or more. It should be noted that in the description of the embodiments of this application, terms such as "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance, nor should they be construed as indicating or implying order.
[0049] Current wireless switches have a single and relatively fixed control target. For example, a wireless switch for a smart light can only control the smart light, and a wireless switch for an air conditioner can only control the air conditioner. Moreover, wireless switches are mainly used in a single space and do not support cross-space use. If they need to be used in multiple spaces, multiple wireless switches need to be configured, resulting in a poor user experience.
[0050] Current wireless switch control schemes all use IFTTT, or "if this then that," meaning that based on static pre-configuration, corresponding control actions are executed when the expected event occurs, such as... Figure 1 As shown, the control scheme for this wireless switch includes the following steps:
[0051] Step 101: Configure the control switch. Specifically, configure it so that when the button is controlled, a predetermined control action is executed.
[0052] Step 102: The control switch determines whether the button is being controlled.
[0053] If a button is detected to be controlled, proceed to step 103; if a button is detected to be uncontrolled, the process ends.
[0054] Step 103: Execute the predetermined control action. Then, the process ends.
[0055] The above control scheme relies on static configuration, and the control target of a wireless switch is singular and relatively fixed. The wireless switch can only be used in a single space and does not support cross-space use. Each space needs to be configured with a corresponding wireless switch. When a user wants to operate devices in multiple spaces, they need to find the corresponding switch pair in each space to control the devices in that space, resulting in a poor user experience.
[0056] Therefore, this application provides a control method, device, and storage medium. The control device supports group control of different types of devices within a space, enabling intelligent control of target devices or groups of devices within a space after a handheld control device enters different spaces. The control object of a single control device can change with the changes in space. The method and device are based on the same technical concept. Since the principles by which the method and device solve problems are similar, their implementations can be mutually referenced, and repeated details will not be elaborated further.
[0057] The control method provided in this application can be applied to whole-house smart home scenarios. Figure 2 An exemplary diagram illustrating a whole-house smart home scenario provided in an embodiment of this application is shown. Figure 2The house shown includes three spaces: a master bedroom, a secondary bedroom, and a study. Each space can include at least one smart home device, such as smart curtain 1, air conditioner 1, smart light 1, and a smart TV in the master bedroom; smart curtain 2, air conditioner 2, and smart light 2 in the secondary bedroom; and smart curtain 3, air conditioner 3, smart light 3, and a speaker in the study. When the user holds a handheld control device (such as...) Figure 2 When the wireless switch (as shown) enters any space, user operation occurs. The wireless switch responds to the user's operation by sending a control event to the smart host. Based on the control event and control rules, the smart host determines the target smart home device and its corresponding function within the space where the wireless switch is located, thereby controlling the state of the target smart home device. For example, the control rules include shaking the switch to switch the controlled device in the group sequence list. The group sequence list includes lighting control, shading control, volume control, and temperature control. If the user last used the wireless switch for lighting control in the master bedroom, and then enters the master bedroom and shakes the switch, the smart host switches to shading control according to the group sequence list and sends a "unfold curtains" command to curtain 1, thus controlling curtain 1 to unfold. If the user shakes the wireless switch again in the master bedroom, the smart host switches to volume control according to the group sequence list. The device related to volume control in the master bedroom is the smart TV, and the smart host sends a "adjust volume" command to the smart TV, thus adjusting the TV's volume.
[0058] The following provides a communication system applicable to embodiments of this application. For example... Figure 3A As shown, the communication system includes a smart host 10, at least one positioning anchor device 11, a control device 12, and at least one smart home device 13. The communication method between any two of the smart host 10, positioning anchor device 11, control device 12, and smart home device 13 can be a local area network-based wireless communication method, such as Bluetooth, Wi-Fi, ZigBee, or other short-range wireless communication methods. Alternatively, it can be a cellular network-based wireless communication method (such as cellular networks established using 2G, 3G, 4G, 5G, and subsequent standard protocols).
[0059] Optionally, the communication system may also include at least one sensor 14, which can be distributed throughout various spaces in the house. Each space can have one or more sensors 14. Multiple sensors 14 located in the same space can be of the same or different types. Each sensor 14 can periodically send the environmental parameters it has collected to the smart host. For example, the master bedroom may have a temperature sensor and a light sensor, where the temperature sensor monitors the temperature and the light sensor monitors the illuminance. After receiving the environmental parameters sent by the temperature and light sensors in the master bedroom, the smart host obtains the environmental information of the master bedroom, namely its temperature and illuminance. Similarly, a secondary bedroom may have a temperature sensor and a humidity sensor, where the temperature and humidity sensors monitor the humidity. After receiving the environmental parameters sent by the temperature and humidity sensors in the secondary bedroom, the smart host obtains the environmental information of the secondary bedroom, namely its temperature and humidity.
[0060] In some embodiments, a user can carry the control device 12 into any space throughout the house and then operate the control device 12 to control the smart home device 13. The control device 12 can be a portable wireless switch. The user can operate the control device 12, which may include components for receiving user operations, such as buttons, touchpads, or scroll wheels. For example, if the control device 12 includes a button, the user operation can be a single click, double click, or long press to achieve different control functions; if the control device 12 includes a touchpad, the user operation can be a sliding operation on the touchpad; if the control device 12 includes a scroll wheel, the user operation can be a scrolling operation on the scroll wheel; or the user operation can be a rotation or shaking of the control device 12. This application embodiment does not limit the components for receiving user operations or the user operations themselves.
[0061] Smart home devices 13 can be terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), and other home devices, such as smart curtains, smart lights, air conditioners, smart TVs, speakers, table lamps, computers, etc.
[0062] After receiving a user operation, the control device 12 can send a control event to the intelligent host 10 and broadcast a positioning signal, which is used to locate the position of the control device 12.
[0063] After receiving a positioning signal, the positioning anchor device 11 can send positioning information to the smart host 10. The positioning anchor device 11 can be a gateway device, for example... Figure 2 Gateway 1, Gateway 2, and Gateway 3 are shown.
[0064] The smart host 10 connects to all the smart home devices 13 in the house, and can monitor the status of each smart home device 13, such as the status of lighting, curtains, TV playback, speaker playback, and air conditioner.
[0065] After receiving the location information, the smart host 10 determines the location information of the control device 12 by combining it with the whole-house space information, such as the space where the control device 12 is located and its coordinates. Upon receiving a control event, the smart host 10 can determine the target smart home device by combining the control event, control rules, and space status information, including environmental information and the device status information of each smart home device within the space. Then, it controls the target smart home device to perform the corresponding function. The smart host 10 can be a whole-house server or local host, a home cloud server located in the cloud, or other devices capable of performing the functions of the smart host 10.
[0066] Optionally, the communication system may further include an AI sensor 15, which can emit millimeter waves and obtain sensing information through the returned waves. The sensing information includes the number of people in the room, the location of each person, and the state of each person. The state of each person includes the user's posture, such as sitting, standing, lying down, or standing with the right hand raised. This embodiment of the application does not impose any limitations. The aforementioned spatial state information may also include sensing information.
[0067] A whole-house management application can be installed on device 16. This application could be a smart living application (App) or something else entirely. Users can input or update space information, device information, etc., and manage smart home devices, setting the mapping between user operations and control of these devices. The whole-house management application can control smart home devices through different control modes, including smart modes and scene modes. Preset scenes could include movie-watching scenes, sleep scenes, etc. Users can set the switching method between different control modes and set preset scenes for scene modes through the whole-house management application. Device 16 is optional; the whole-house management application can also be installed on the smart host 10.
[0068] The control device provided in the embodiments of this application is described below.
[0069] Please refer to Figure 3B This is a schematic diagram of the structure of a control device 12 provided in an embodiment of this application. The control device 12 may include a processor 301, a memory 302, a sensor 303, a button 304, a power supply 305, a wireless communication module 306, a scroll wheel 307, and an indicator light 308, etc. It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the control device 12. In other embodiments of this invention, the control device 12 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0070] Processor 301 may include one or more processing units, such as an application processor (AP), a modem processor, a controller, a memory, a digital signal processor (DSP), a baseband processor, etc. Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the control device 12. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0071] The processor 301 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 301 is a buffer memory. This memory can store instructions or data that the processor 301 has just used or that are used repeatedly. If the processor 301 needs to use the instruction or data again, it can directly retrieve it from the memory.
[0072] In some embodiments, the processor 301 may include one or more interfaces. Interfaces may include inter-integrated circuit (I2C) interfaces, pulse code modulation (PCM) interfaces, universal asynchronous receiver / transmitter (UART) interfaces, general-purpose input / output (GPIO) interfaces, and / or universal serial bus (USB) interfaces, etc.
[0073] The processor 301 can control the execution of application code to implement the functions of the control device 12 in this embodiment. For example, after the control device 12 receives the first operation from the wireless communication module 306, it controls the wireless communication module 306 to send the control event corresponding to the first operation to the smart host 10. Another example is that it controls the wireless communication module 306 to broadcast a positioning signal.
[0074] The memory 302 can be used to store executable program code, which includes instructions. The processor 301 executes various functional applications and data processing of the control device 12 by running the instructions stored in the memory 302. The memory 302 may include a program storage area. The program storage area may store the operating system, application programs required for at least one function (such as key control functions), etc. The memory 302 may also include a data storage area, for example, the data storage area may store device information of the control device 12.
[0075] Sensor 303 can be one or more sensors. Sensor 303 can be a touch sensor for detecting touch operations by the user on the control device 12, or a pressure sensor for detecting press operations by the user on the control device 12. In some embodiments, sensor 303 can also be a fingerprint sensor for detecting user fingerprints and identifying user identity. In still other embodiments, sensor 303 can be an accelerometer for detecting the magnitude of acceleration of the control device 12 in various directions (generally three axes). When the control device 12 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the attitude of the control device 12. In yet another embodiment, sensor 303 can be a gyroscope sensor for determining the motion attitude of the control device 12. For example, the angular velocity of the control device 12 around the three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor.
[0076] The button 304 can be a mechanical button, also known as a push button. It can also be a touch button. The control device 12 can receive button input and generate key signal inputs related to the function control of the control device 12.
[0077] The power supply 305 can be used to supply power to the various components included in the control device 12. In some embodiments, the power supply 306 can be a battery, such as a rechargeable battery.
[0078] The wireless communication module 306 is used to establish a wireless connection with other devices (e.g., at least one positioning anchor device 11, such as the smart host 10), enabling the control device 12 to interact with other devices. In some embodiments, the wireless communication module 306 may be a Bluetooth module, thereby broadcasting positioning signals via Bluetooth. In other embodiments, the wireless communication module 306 may also be an infrared module or a WIFI module, etc., and the specific implementation of the wireless communication module 306 is not limited here.
[0079] Furthermore, in this embodiment, one wireless communication module 306 may be provided, or multiple modules may be provided as needed. For example, two wireless communication modules may be provided in the control device 12, one of which is a Bluetooth module and the other is a WIFI module, so that the control device 12 can communicate through these two wireless communication modules respectively. The number of wireless communication modules 306 is not limited here.
[0080] The scroll wheel 307 can receive scrolling operations from the user.
[0081] Indicator light 308 can be an indicator light used to indicate the control mode of the control device.
[0082] It should be understood that, in practical applications, the control device 12 may include more than Figure 3B The number of more or fewer components shown is not limited in the embodiments of this application. The illustrated control device 12 is merely an example, and the control device 12 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0083] The control methods in the embodiments of this application are described in detail below.
[0084] First, the initial configuration process for a whole-house smart system will be introduced. This initial configuration can be completed by an engineer through a whole-house configuration application installed on the smart host or via a web page. For example, a smart living application could be used. Figure 4 As shown, taking the whole-house configuration application installed by the engineer in the smart host as an example, the initial configuration process includes the following steps:
[0085] Step 401: The engineer opens and logs into the whole-house configuration application and enters the whole-house space information.
[0086] The whole house space information can include specific floor plan dimensions, such as defining the name and dimensions of each space included in the whole house floor plan, including the length and width of the space.
[0087] In this embodiment of the application, the whole house space information may also include a coordinate system defined for the whole house / each space.
[0088] In some embodiments, a coordinate system can be defined for the entire house, for example Figure 5 The coordinate system xOy shown corresponds to a spatial origin O(0,0) and is used to calibrate the position of all equipment in the room. In this case, the position information of all equipment in the room is represented by the position coordinates under the coordinate system xOy.
[0089] In some other embodiments, a coordinate system can also be defined for each space in the entire house, such as... Figure 6 As shown, a coordinate system xO1y is defined for the master bedroom, corresponding to an origin O1(0,0); a coordinate system x′O2y′ is defined for the secondary bedroom, corresponding to an origin O2(0,0); and a coordinate system xO3y′ is defined for the study, corresponding to an origin O3(0,0). The relative positions between the origins O1 (master bedroom), O2 (secondary bedroom), and O3(0,0) (study) are recorded. In this case, the position information of all devices in the master bedroom is represented by coordinates under coordinate system xO1y, the position information of all devices in the secondary bedroom is represented by coordinates under coordinate system x′O2y′, and the position information of all devices in the study is represented by coordinates under coordinate system xO3y′.
[0090] Step 402: The whole-house configuration application responds to the engineer's write operation and writes the whole-house space information to the smart host.
[0091] Step 403: The engineer configures the device information in the whole-house configuration application.
[0092] The configuration device in step 403 may include information for configuring one or more smart home devices throughout the house. When configuring information for any smart home device, spatial information of the smart home device can be configured in the whole-house configuration application, such as when configuring... Figure 2 When configuring the smart light 1 shown, the spatial information of the smart light 1 can be configured for the master bedroom; for example, when configuring such... Figure 2 When using Gateway 2 as shown, the spatial information of Gateway 2 can be configured as the secondary bedroom.
[0093] When configuring the device in step 403, it may also include configuring information for positioning anchor devices throughout the house. In addition to configuring spatial information for the positioning anchor devices, it may also configure location information for the positioning anchor devices. The positioning anchor device is a device capable of receiving positioning signals from the control device and sending positioning information to the smart host. This positioning information can be used by the smart host to locate the control device. For example, the device serving as a positioning anchor may be... Figure 2 Gateway 1, Gateway 2, and Gateway 3 are shown.
[0094] The location information of the positioning anchor device can include information based on the whole-house coordinate system (e.g., Figure 5 The coordinates of the positioning anchor point device determined by the coordinate system xOy shown, for example Figure 5 The coordinates of gateway 1 shown are (4,5); this location information can also be the coordinates of the positioning anchor device determined based on the coordinate system of the space where the positioning anchor device is located, for example, the location information of gateway 1 is based on the coordinate system of the master bedroom where gateway 1 is located (e.g. Figure 6 The coordinates of gateway 1 (4,5) are determined by the coordinate system xO1y shown. For example, the location information of gateway 2 is based on the coordinate system of the secondary bedroom where gateway 2 is located (e.g., Figure 6 The coordinates of gateway 2 are determined by the coordinate system x′O2y′ shown. For example, the location information of gateway 3 is based on the coordinate system of the study where gateway 3 is located (e.g., ...). Figure 6 The coordinates of gateway 3 are determined by the coordinate system xO3y′ shown. In this embodiment, when configuring location information, the engineer can input the specific location coordinates corresponding to the positioning anchor device.
[0095] After step 403, the whole-house configuration application needs to connect and interact with smart home devices and positioning anchor devices. The following steps will be explained using the connection and interaction between the whole-house configuration application and smart home devices as an example. For the implementation method of the connection and interaction between the whole-house configuration application and positioning anchor devices, please refer to the relevant description of the connection and interaction between the whole-house configuration application and smart home devices.
[0096] Step 404: The whole-house configuration application responds to the engineer's device addition operation and discovers smart home devices.
[0097] In some embodiments, a Wi-Fi network is set up throughout the house. After a smart home device connects to the Wi-Fi network, the router sends a list of smart home devices connected to the Wi-Fi network to the whole-house smart application. In other words, the whole-house smart application discovers the smart home devices connected to the Wi-Fi network.
[0098] In other embodiments, in response to an engineer's device addition operation, the whole-house configuration application controls the smart host to send a Bluetooth broadcast. After receiving the Bluetooth broadcast, the smart home device sends a response message to the smart host. The smart host receives the response message sent by the smart home device. The response message carries the identifier of the smart home device. The whole-house configuration application obtains the identifier of the smart home device from the response message, that is, it discovers the smart home device.
[0099] In other embodiments, smart home devices can send Bluetooth broadcasts. The smart host receives the Bluetooth broadcasts sent by the smart home devices, and the whole-house configuration application responds to the engineer's device addition operation by obtaining the identifier of the smart home device carried in the Bluetooth broadcast from the smart host, i.e., discovering the smart home device.
[0100] Step 405: Smart home devices send device information to the whole-house configuration application.
[0101] The equipment information may include equipment identification, equipment type, etc.
[0102] Step 406: The whole-house configuration application sends device information to the smart host based on the received device information.
[0103] Step 407: The whole-house configuration application responds to the engineer's operation to send configuration information and sends configuration information to the smart home devices.
[0104] The configuration information may include spatial information configured for each smart home device, such as the configuration settings provided by the engineer. Figure 2 The spatial information of the smart light 1 shown is the master bedroom. Then, the whole-house configuration application discovers the smart light 1, and the smart light 1 reports its device information to the whole-house configuration application. Then, the whole-house configuration application sends configuration information to the smart home devices, including: [smart light 1, master bedroom].
[0105] Step 408: Smart home devices negotiate with the smart host to connect to the smart host.
[0106] Step 409: The smart home device notifies you that the whole-house configuration application is complete.
[0107] Step 410: The engineer adds a configuration scenario in the whole-house configuration application.
[0108] Step 411: The whole-house configuration application responds to the engineer's operation for configuring scenes by configuring one or more preset scenes associated with the wireless switch in scene mode to the smart host.
[0109] Steps 410 and 411 above are optional. Engineers can pre-configure some preset scenarios in scene mode for the wireless switch, such as movie viewing scenario, sleep scenario, etc. The scenario information configuration of these preset scenarios can be configured by engineers or defined by users after they take possession of the house.
[0110] After the engineer completes the initial configuration of the whole-house smart system, the homeowner takes possession of the property and then customizes the system themselves. The user's self-configuration process mainly includes the following steps:
[0111] S1, the user connects device 16, which has the "Whole House Management Application" installed, to the whole house smart network.
[0112] S2, the user opens the "Whole House Management Application" on device 16 and logs in to their user account.
[0113] The S3 allows users to add a smart host to trigger the house handover process via scanning, tapping, or QR code scanning. The device information will be registered under the user's account.
[0114] For example, if a user's account is a Huawei account, adding the smart host to that account will register all devices connected to the smart host under that account. When logging into the Huawei account, the user can view all devices, such as smart lights, air conditioners, speakers, smart curtains, refrigerators, smart TVs, and table lamps. Users can also add other devices they purchase after moving into the home to their Huawei account.
[0115] S4 allows users to add their own purchased smart home devices, add or modify scenes, and modify the preset scenes associated with wireless switches in scene mode using the "Whole House Management Application".
[0116] Taking a whole-house management application as an example of a smart living application, device 16 has a smart living application installed. After the user opens the smart living application, they can access... Figure 7A The wireless switch management details page 700 shown includes scene settings, device grouping settings, and device management. After the user clicks on scene settings, a preset scene list 710 is displayed. The preset scene list 710 can include one or more preset scenes, such as motion-sensing game scenes, movie viewing scenes, live streaming scenes, sleep scenes, and music playback scenes. Each preset scene corresponds to a selection box. The user can select one or more preset scenes from the preset scene list as preset scenes associated with the wireless switch in scene mode. When selecting one or more preset scenes, the user can check the selection boxes corresponding to the selected one or more preset scenes. For example, if the user wants to select... Figure 7BThe movie viewing scene 711 and live streaming scene 712 shown are preset scenes associated with the wireless switch in scene mode. Therefore, check the selection box 713 corresponding to movie viewing scene 711 and the selection box 714 corresponding to live streaming scene 712 respectively. After checking, as shown... Figure 7C As shown, selection boxes 713 and 714 are both selected. Users can also operate on preset scenes to configure scene information. Scene information configuration is used to configure the control rules of the wireless switch for at least one control group associated with the preset scene. At least one control group may include at least one of the following: a lighting control group, a shading control group, a volume control group, and a temperature control group. Specifically, the lighting control group includes at least one lighting device throughout the house; the shading control group includes at least one smart curtain throughout the house; the volume control group includes at least one smart device capable of adjusting volume throughout the house; and the temperature control group includes at least one smart device capable of adjusting temperature throughout the house. Furthermore, tags can be added to fine-tune the configuration of devices controllable by one or more control groups within the control rules.
[0117] For example, control rules for a lighting control group and a shading control group are configured in a movie-watching scenario, and ambient lights in the lighting control group are controlled individually by adding tags. For example, device 16 responds to user requests such as... Figure 7B The click operation of the movie viewing scene 711 shown will display as follows: Figure 7D The scene information configuration window 720 for the movie-watching scene shown allows users to configure control rules such as turning off devices in the lighting control group and the shading control group. Users can also add markers, such as turning on the ambient lights: light strip 1 and light strip 2 in the living room. When adding markers, a scroll label configuration item can be added to configure lighting control to only support light strip adjustments. For example, the scroll label could be: sybSystem:lighting,scroll:prodType = "light strip 1, light strip 2". When a user operates the wireless switch, the smart host determines whether the user has entered the movie-watching scene based on the corresponding control event. For example, if the main living room light and downlights in the current whole-house lighting control group are on, while other lights are off, the smart host will send a turn-off command to the main light and downlights and a turn-on command to the ambient lights after determining that the user has entered the movie-watching scene. Alternatively, if all lighting devices in the current whole-house lighting control group are off, the smart host will send a turn-on command to the ambient lights after determining that the user has entered the movie-watching scene, thus ensuring that only the ambient lights are on in the movie-watching scene.
[0118] After the user selects a preset scene associated with the wireless switch in scene mode, user operations for entering or switching preset scenes can be configured. If there are multiple preset scenes associated with the wireless switch, corresponding operations can be configured to enter different preset scenes. For example, the first preset operation can be configured to control the wireless switch to enter the current preset scene, and the second preset operation can be configured to control the wireless switch to switch preset scenes. Taking the preset scenes associated with the wireless switch in scene mode as including a movie-watching scene and a sleep scene, with operation one being a press operation and operation two being a shake operation, the current preset scene is the movie-watching scene. The user can enter the movie-watching scene by pressing the button on the wireless switch once, or switch the current preset scene from the movie-watching scene to the movie-watching scene by shaking the wireless switch once, and then switch the preset scene to the sleep scene by shaking the wireless switch again.
[0119] In some embodiments, users can also add more preset scenes to the preset scene list, for example... Figure 7A The preset scene list 710 shown includes a custom control 716. In response to the user's click operation on the custom control 716, the device 16 adds the scene name of the new scene and configures the corresponding scene information.
[0120] Optionally, users can also group all the smart home devices in the house. Users can click on, for example... Figure 7A The device grouping settings in the wireless switch management details page 700 shown are as follows: Figure 7E The device grouping settings window 730 shown includes lighting control group, shading control group, volume control group, and temperature control group. Users can also add new groups by operating the "Add Group" control. For example, users can add groups such as... Figure 7E When the controls corresponding to the volume control group shown are clicked, device 16 responds to the click by displaying the following: Figure 7F The window 731 shown includes an add device control 732. When a user clicks a dropdown control in the add device control 732, device 16 responds by displaying a dropdown menu 733. The dropdown menu 733 includes all smart devices in the house. The user can select smart home devices to add to the volume control group in window 733, such as... Figure 7F As shown, when a user clicks on the Smart TV option in drop-down menu 733, the Smart TV is added to the menu in response to the click. Figure 7G In the volume control group shown. (As shown) Figure 7G As shown, window 731 also includes control 734, which displays the following information by operating control 734. Figure 7HThe device addition control 735 shown above is used to select smart home devices to be added to the volume control group. For details on the device addition control 732, please refer to the description of the device addition control 732. It will not be repeated here.
[0121] In this embodiment, users can group smart home devices according to the preset grouping types mentioned above. The preset grouping types include, for example... Figure 7E The system includes lighting control groups, shading control groups, volume control groups, and temperature control groups. In some other embodiments, users can also customize group types and then group smart home devices according to these custom group types. For example, a user can click on a group such as... Figure 7A The device grouping settings in the wireless switch management details page 700 shown are as follows: Figure 7I The device grouping settings window 740 shown includes multiple custom grouping controls 741 and a corresponding add device control 742 for each custom grouping control 741. Controls 741 are used for user input of custom grouping types, and controls 742 are used to add new grouping types. For example, a user can add a device to a custom grouping window. Figure 7I After inputting control group one in control 741, the following will be displayed: Figure 7J Control 741 in the middle. Users can also... Figure 7J The control 742 in the middle is operated, such as a click operation, to display as shown. Figure 7K The window 750 shown includes all the smart home devices in the house. Users can select smart home devices from window 750 to add to control group one, for example... Figure 7K As shown, the user selects curtains, main light 1, and main light 2, and then clicks the confirmation control 751. In response to this click, the following is displayed: Figure 7L The window 752 shown displays smart home devices added to control group one, such as curtains, main light 1, and main light 2.
[0122] See Figure 8 The following is an exemplary flowchart illustrating a control method provided in an embodiment of this application. The method may include the following steps:
[0123] Step 801: The control device receives the first operation.
[0124] As one possible implementation, a user enters a space in the house, such as the master bedroom, and then performs a first operation on the control device. This first operation can be a single click, long press, double click, rotation, shaking, or a combination of operations. This application embodiment does not limit this.
[0125] In step 802, the control device responds to the first operation by sending a control event corresponding to the first operation to the intelligent host. Correspondingly, the intelligent host receives the control event corresponding to the first operation.
[0126] The control event can include event types. For example, if the first operation is a click operation, then the event type of the control event is a click event; if the first operation is a shake operation, then the event type of the control event is a shake event; if the first operation is a rotation operation, then the event type of the control event is a rotation event; if the first operation is a swipe operation, then the event type of the control event is a swipe event.
[0127] In some embodiments, the control event may also include event information. For example, if the event type of the control event is a rotation event, the event information may include the rotation direction and the amount of rotation. If the event type of the control event is a swing event, the event information may include the swing direction and the number of consecutive swings. If the event type of the control event is a sliding event, the event information may include the sliding direction and the sliding distance.
[0128] Step 803: The control device determines whether the control event corresponding to the first operation is used to switch the control mode of the control device. This step 803 can be an optional step.
[0129] When step 803 is an optional step, step 804 is executed directly after step 802, and then step 805 is executed.
[0130] When step 803 is a necessary step, the control device stores the correspondence between the first preset type and the switching control mode. After receiving the first operation, the control device can determine whether the event type of the control event corresponding to the first operation is the same as the first preset type. If it is determined that the event type of the control event corresponding to the first operation is the same as the first preset type, it is determined that the control event corresponding to the first operation is used to switch the control mode. If it is determined that the event type of the control event corresponding to the first operation is different from the first preset type, it is determined that the control event corresponding to the first operation is not used to switch the control mode.
[0131] The first preset type is a pre-defined event type used for event matching to determine whether a control event is used to switch control modes. This first preset type can be set by the user or be the system default. For example, the first preset type is a double-click event.
[0132] If the control device determines that the control event corresponding to the first operation is used to switch the control mode of the control device, then neither step 804 nor step 805 is executed; if the control device determines that the control event corresponding to the first operation is not used to switch the control mode of the control device, and the control mode when the control device receives the first operation is scene mode, then neither step 804 nor step 805 is executed; if the control device determines that the control event corresponding to the first operation is not used to switch the control mode of the control device, and the control mode when the control device receives the first operation is intelligent mode, then step 804 is executed, followed by step 805.
[0133] Step 804: The control device broadcasts a location signal. Correspondingly, at least one gateway receives the location signal.
[0134] The positioning signal is used to locate the control equipment, and it can carry equipment information such as equipment identification.
[0135] The control device may include a wireless communication module, which can broadcast positioning signals. For example, the wireless communication module may be a Bluetooth Low Energy beacon, and the positioning signal may be a beacon signal; the control device can send beacon signals via the Bluetooth Low Energy beacon. Alternatively, the wireless communication module may be a Wi-Fi module, and the positioning signal may be a Wi-Fi signal; the control device can send Wi-Fi signals via the Wi-Fi module.
[0136] At least one gateway is installed throughout the house, and gateways within the coverage area of the positioning signal can receive the positioning signal.
[0137] Step 805: At least one gateway sends location information to the smart host. Correspondingly, the smart host receives the location information sent by at least one gateway.
[0138] After receiving a location signal broadcast by the control device, the gateway can determine the device information carried in the location signal, thus identifying the sender as the control device. Since different gateways are at different distances from the control device, the received signal strength indicator (RSSI) values of the received location signal will also differ. At least one gateway will send the RSSI value of the received location signal to the intelligent host. For example... Figure 2As shown, the user enters the master bedroom holding a control device and shakes it. The control device broadcasts a positioning signal. The RSSIs of gateways 1, 2, and 3 when they receive the positioning signal are RSSI1, RSSI2, and RSSI3, respectively. For example, the positioning information sent by gateway 1 to the smart host includes the device information of the control device and RSSI1; the positioning information sent by gateway 2 to the smart host includes the device information of the control device and RSSI2; and the positioning information sent by gateway 3 to the smart host includes the device information of the control device and RSSI3. Because the distances between gateways 1, 2, and 3 and the control device are different, the RSSI1, RSSI2, and RSSI3 when gateways 1, 2, and 3 receive the positioning signal are different.
[0139] Step 806: The intelligent host receives the control event corresponding to the first operation.
[0140] After step 806, proceed to step 807, step 808, or step 811.
[0141] Step 807: If the control event corresponding to the first operation is used to switch the control mode of the control device, then the intelligent host switches the control mode of the control device.
[0142] The intelligent host stores a correspondence between a first preset type and a switching control mode. After receiving a control event corresponding to a first operation, the intelligent host determines whether the event type of the control event is the same as the first preset type. If the event type is the same, the intelligent host determines that the control event is used to switch the control mode; if the event type is different, the intelligent host determines that the first operation is not used to switch the control mode. For example, if the first preset type for switching the control mode is a double-click event, and the first operation is a double-click operation, the intelligent host determines that the event type of the control event (i.e., double-click event) is the same as the first preset type (i.e., double-click event), and therefore determines that the control event is used to switch the control mode of the device. Then, the intelligent host switches the control mode of the device. If the first operation is not a double-click operation, and the intelligent host determines that the event type is different from the first preset type (i.e., double-click event), then the intelligent host determines that the control event is not used to switch the control mode of the device.
[0143] In this embodiment of the application, the control modes supported by the control device may include intelligent mode and scene mode.
[0144] In step 807 above, the intelligent host can switch the control mode of the control device in the following ways: if the control mode of the control device when it receives the first operation is scene mode, the intelligent host will switch the control mode of the control device from scene mode to intelligent mode; if the control mode of the control device when it receives the first operation is intelligent mode, the intelligent host will switch the control mode of the control device from intelligent mode to scene mode.
[0145] In some embodiments, the control device includes a first button. Taking a double-click event as an example, the control device receives a double-click operation on the first button, triggering the switching of control modes. If the control mode received by the control device at the time of the first operation is scene mode, and the user double-clicks the first button on the control device, the control device, upon receiving the double-click operation, sends a double-click event to the smart host. The smart host determines that the double-click operation is used to switch the control mode of the control device, and then switches the control mode of the control device to smart mode. Subsequently, if the user double-clicks the first button on the control device again, the smart host switches the control mode of the control device from smart mode back to scene mode. This facilitates users switching the control mode of the control device.
[0146] Optionally, the control device may further include an indicator light, which can be used to indicate the control mode when the control device receives the first operation, so that the user knows the current control mode of the control device. In some embodiments, different control modes can be indicated by different indicator light colors, for example, a red indicator light indicates the current scene mode, and a green indicator light indicates the current smart mode; in other embodiments, different control modes can be indicated by different indicator light brightness, for example, a high brightness indicator light indicates the current scene mode, and a low brightness indicator light indicates the current smart mode.
[0147] After step 807 is completed, the control process triggered by the first operation ends, meaning that no further steps will be executed.
[0148] Based on the scheme in steps 801 to 807 above, the control mode of the control device can be switched by operating the control device.
[0149] Step 808: If the control event corresponding to the first operation is not for switching the control mode of the control device, and the control mode of the control device when it receives the first operation is intelligent mode, then the intelligent host determines the first spatial identifier of the space where the control device is located based on the positioning information.
[0150] The first space identifier is the identifier of the space where the control device is located when it receives the first operation.
[0151] In some embodiments, when the control mode of the control device is intelligent mode when it receives the first operation, the first spatial identifier can be determined by combining the positioning information received from at least one gateway.
[0152] After receiving location information from at least one gateway, the smart host can use the iBeacon positioning algorithm to combine the location information with the whole house space information to determine the space where the control device is located. The identifier corresponding to the determined space is the first space identifier.
[0153] If all the gateway devices in the house can provide at least three BLE beacons—that is, if at least three gateway devices in the house receive the location signal after the control device broadcasts it—the iBeacon positioning algorithm can be used to determine the location of the control device. Figure 9 As shown, gateways 1, 2, and 3 can all receive positioning signals. Their RSSI values upon receiving the signals are RSSI1, RSSI2, and RSSI3, respectively. The smart host can calculate the distance L1 between the control device and gateway 1 based on RSSI1, the distance L2 between the control device and gateway 2 based on RSSI2, and the distance L3 between the control device and gateway 3 based on RSSI3. The point A where the circles centered on gateway 1 with radius L1, centered on gateway 2 with radius L2, and centered on gateway 3 with radius L3 intersect is the location of the control device. Then, based on the coordinates of location A and the overall room space information, the space where location A is located can be determined. The space identifier corresponding to the space where location A is located is the first space identifier. For example... Figure 9 As shown, location A is in the master bedroom. The first space identifier can be the master bedroom, or it can be any other identifier that represents the master bedroom.
[0154] If the gateway device in the home has a weak signal or is malfunctioning, and the gateway devices throughout the house cannot provide at least three BLE beacons, for example... Figure 10As shown, gateway 3 in the study cannot receive the location signal broadcast by the wireless switch. Therefore, gateway 2 in the secondary bedroom and gateway 1 in the master bedroom are used for spatial determination. Based on RSSI1, the smart host can calculate the distance L1 between the control device and gateway 1, and the distance L2 between the control device and gateway 2 based on RSSI2. Two points intersect: a circle centered on gateway 1 with radius L1 and a circle centered on gateway 2 with radius L2, namely position A and position B. The iBeacon positioning algorithm provides the coordinates of position A and position B, but it cannot determine whether the wireless switch is at position A or position B. The coordinates of the wireless switch can be determined by combining the sensing information from the AI sensor. The AI sensor can emit millimeter waves and determine the number of people in the room and the specific coordinates of each person's location through the returned waves. If there is only one person in the room, the coordinates of that person's location can be obtained directly from the sensing information of the AI sensor. This person's location is the location of the wireless switch. In this case, the location of the wireless switch can be obtained solely based on the sensing information of the AI sensor, or it can be obtained by combining the positioning results of the iBeacon positioning algorithm. If there is more than one person in the house, the coordinates of each person can be determined based on the information perceived by the AI sensors. However, since it cannot determine who has the wireless switch, ... Figure 10 As shown, the AI sensor can detect two people in the room, one at location A and the other at location C. The AI sensor obtains the coordinates of both location A and location C. Since the coordinates of location A are present in both the AI sensor's perception information and the iBeacon positioning algorithm's location results, the control device can be determined to be located at location A. Then, based on the coordinates of location A and the overall room spatial information, the space containing location A can be determined, and the spatial identifier corresponding to the space containing location A is the first spatial identifier.
[0155] In some embodiments, the gateway device can be used as the receiver and the control device as the transmitter, wherein the gateway device has a built-in antenna array, which can be used as follows: Figure 11 The Bluetooth Low Energy beacon angle of arrival (AOA) shown is used to locate the control device. After the control device broadcasts a location signal, at least one gateway device receives the signal via its built-in antenna array and determines the angle of arrival of the network device. The gateway device can then send location information, which may include the angle of arrival, to the smart host, which determines the location of the control device based on the angle of arrival.
[0156] Based on any of the above embodiments, the location A of the control device is determined. According to the coordinates of location A and the whole house space information, the space where the control device is located can be determined to be the master bedroom.
[0157] Step 809: The intelligent host determines the first target device group based on the first space identifier.
[0158] The smart host can determine the spatial status information corresponding to the first spatial identifier based on the first spatial identifier. In this embodiment, the spatial status information corresponding to the first spatial identifier may include: environmental information within the space identified by the first spatial identifier and device status information of each smart home device within the space identified by the first spatial identifier.
[0159] Each space in the house is equipped with one or more sensors that collect environmental information, such as illuminance, temperature, and humidity. These sensors periodically send environmental data from each space to the smart home hub. The smart home hub can also monitor the status of all smart home devices throughout the house, such as the status of lighting, curtains, television playback, speaker playback, and air conditioning operation.
[0160] In one possible implementation, the smart host determines the first target device group from the smart home devices included in the space corresponding to the first space identifier based on the control event corresponding to the first operation and the space status information corresponding to the first space identifier.
[0161] In implementation method one, the space corresponding to the first space identifier includes at least one smart home device. The smart host can automatically group these smart home devices according to their different functions to obtain at least one control group. Then, based on control events and space status information, the first target device group is determined from the at least one control group, thereby realizing grouped control of at least one smart home device in the space through at least one control group. The at least one control group includes: a lighting control group composed of smart home devices for lighting control, a shading control group composed of smart home devices for shading control, a volume control group composed of smart home devices for volume control, and a temperature control group composed of smart home devices for temperature control. Taking the space corresponding to the first space identifier as an example... Figure 2 Taking the master bedroom as an example, the master bedroom includes multiple smart home devices, such as smart curtains 1, air conditioner 1, smart lights 1, and a smart TV. The lighting control group includes smart lights 1, the shading control group includes smart curtains 1, the volume control group includes the smart TV, and the temperature control group includes air conditioner 1.
[0162] In implementation method two, the smart host can also group the space corresponding to the first space identifier, including at least one smart home device, according to a user-defined preset grouping method to obtain at least one control group. Then, based on control events and space status information, the first target device group is determined from the at least one control group, thereby realizing grouped control of at least one smart home device in the space based on the at least one control group obtained from the grouping. The user-defined preset grouping method can be found above. Figures 7D to 7G For related descriptions, or see section 7I above. Figure 7L The relevant descriptions will not be repeated here.
[0163] Optionally, before grouping the devices using the two implementation methods described above, the intelligent host can first filter the intelligent devices included in the space corresponding to the first spatial identifier. Specifically, it can remove intelligent devices within the space corresponding to the first spatial identifier that do not support the control event corresponding to the first operation, and then group the intelligent devices within the space corresponding to the first spatial identifier that support the control event corresponding to the first operation to obtain at least one control group. Then, based on the control event and spatial status information, the first target device group is determined from the at least one control group. After determining the first target device group, a control command can be sent to the first target device group based on the event information of the control event. Taking the first operation as a rotation operation on the control device as an example, the event type of the rotation operation is a rotation event, and the event information includes the rotation direction and rotation amount. The intelligent device supporting the rotation event is an intelligent device that can support linear parameter changes. When the user performs a rotation operation on the control device, the control device, upon receiving the rotation operation, sends the rotation event and rotation amount to the intelligent host. The intelligent host filters the intelligent devices included in the space corresponding to the first spatial identifier to obtain intelligent devices that support linear parameter changes, and groups the intelligent devices that support linear parameter changes to obtain at least one control group. Then, based on the control events and spatial state information, the first target device group is determined from at least one control group. After determining the first target device group, control commands can be sent to the first target device group based on the event information of the control events. Among these, smart devices that support linear parameter changes include, for example, air conditioners that support linear temperature changes, smart TVs and smart speakers that support linear volume changes, smart lights and light strips that support linear brightness changes, and smart curtains that support linear opening / closing degrees.
[0164] After grouping based on the above-described Embodiment 1 or Embodiment 2, the smart host can automatically set the group control order, or the user can set the group control order for at least one control group. For example, the group control order could be lighting control, shading control, volume control, and temperature control. The smart host can determine the first target device group from the lighting control group, shading control group, volume control group, and temperature control group corresponding to the first space identifier based on the group control order and the space status information corresponding to the first space identifier. The first target device group may include at least one smart home device. In one possible implementation, the control device sequentially checks whether the space status information corresponding to the first space identifier meets the preset conditions corresponding to that control group for each control group in the group control order. If it does, the control group is determined as the first target device group, and the system no longer checks whether the space status information corresponding to the first space identifier meets the preset conditions corresponding to the next control group; if not, the system continues to check whether the space status information corresponding to the first space identifier meets the preset conditions corresponding to the next control group. For example, firstly, it is determined whether the spatial status information corresponding to the first control identifier meets the preset conditions corresponding to the lighting control group. If the determination result is met, the lighting control group is determined to be the first target device group, and it is no longer necessary to determine whether the spatial status information corresponding to the first control identifier meets the preset conditions corresponding to the shading control group. If the determination result is not met, it is necessary to continue to determine whether the spatial status information corresponding to the first control identifier meets the preset conditions corresponding to the shading control group, and then determine whether to continue to determine the next control group based on the determination result.
[0165] For example, embodiments of this application provide a method for determining a first target device group, such as... Figure 12 As shown, the method for determining the first target device group includes the following steps:
[0166] Step 1201: The intelligent host determines whether it is daytime; if yes, proceed to step 1202; otherwise, proceed to step 1212.
[0167] Step 1202: The smart host determines whether the lighting in the master bedroom is less than the standard lighting in the master bedroom; if yes, proceed to step 1203; if no, proceed to step 1204.
[0168] Step 1203: The smart host determines whether the opening degree of the smart curtain 1 is less than the opening degree threshold; if yes, proceed to step 1206; if no, proceed to step 1207.
[0169] Step 1204: The smart host determines whether the lighting in the master bedroom is greater than the maximum lighting threshold of the master bedroom; if yes, proceed to step 1205; if no, proceed to step 1208.
[0170] Step 1205: The smart host determines whether the lighting equipment in the master bedroom is turned on; if yes, proceed to step 1207; otherwise, proceed to step 1206.
[0171] Step 1206: The smart host selects the shading control by default and sets the shading control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0172] Here, the shading control group corresponding to the master bedroom consists of smart devices in the master bedroom used for shading control.
[0173] Step 1207: The smart host selects lighting control by default and sets the lighting control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0174] Here, the lighting control group for the master bedroom consists of smart devices used for lighting control in the master bedroom.
[0175] Step 1208: The smart host determines whether the volume is less than the minimum volume threshold or greater than the maximum volume threshold; if yes, proceed to step 1209; otherwise, proceed to step 1210.
[0176] Step 1209: The smart host selects volume control by default and sets the volume control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0177] Here, the volume control group corresponding to the master bedroom consists of smart devices in the master bedroom that can control the volume.
[0178] Step 1210: The intelligent host determines whether the temperature is less than the minimum temperature threshold or greater than the maximum temperature threshold; if so, proceed to step 1211; otherwise, end the process.
[0179] Step 1211: The smart host selects temperature control by default and sets the temperature control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0180] Here, the temperature control group corresponding to the master bedroom consists of smart devices used for temperature control in the master bedroom.
[0181] Step 1212: The smart host determines whether the lighting in the master bedroom is less than the minimum lighting threshold or greater than the maximum lighting threshold. If yes, proceed to step 1213; otherwise, proceed to step 1214.
[0182] Step 1213: The smart host selects lighting control by default and sets the lighting control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0183] Step 1214: The smart host determines whether the light intensity in the master bedroom is greater than the minimum light intensity threshold or less than the maximum light intensity threshold, and whether the curtains are open; if yes, proceed to step 1215; otherwise, proceed to step 1216.
[0184] Step 1215: The smart host selects the shading control by default and sets the shading control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0185] Step 1216: The smart host determines whether the volume is less than the minimum volume threshold or greater than the maximum volume threshold; if yes, proceed to step 1217; otherwise, proceed to step 1218.
[0186] Step 1217: The smart host selects volume control by default and sets the volume control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0187] Step 1218: The intelligent host determines whether the temperature is less than the minimum temperature threshold or greater than the maximum temperature threshold; if yes, proceed to step 1219; otherwise, proceed to step 1220.
[0188] Step 1219: The smart host selects temperature control by default and sets the temperature control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0189] Step 1220: The smart host selects the shading control by default and sets the shading control group corresponding to the master bedroom as the first target device group. Then, the process ends.
[0190] The above Figure 12 The example shown illustrates the determination of the first target device group in the master bedroom. This method can also be applied to determine the first target device group in other spaces throughout the house, such as a secondary bedroom or study. For different spaces, different upper and lower threshold values (maximum and minimum) for parameters such as illuminance, temperature, and volume can be configured in the whole-house smart system and stored in the smart host. For example, in the master bedroom, the lower threshold could be set to 80 lux, and the upper limit preset could be set to 300 lux.
[0191] Based on the above examples, after identifying the first target device group, the smart host controls the first target device group to perform corresponding functions according to the control event corresponding to the first operation. For example, if the first target device group is a lighting control group, then the smart home devices in the lighting control group, such as smart lights and light strips, are controlled to turn on, off, or have their brightness adjusted. As another example, if the smart host identifies the first target device group as a sunshade control group, then the smart home devices in the sunshade control group, such as smart curtains, are controlled to open, close, or have their opening degree adjusted. As yet another example, if the smart host identifies the first target device group as a volume control group, then the smart home devices in the volume control group, such as smart TVs, speakers, and computers, are controlled to turn on, off, or have their volume adjusted. As yet another example, if the smart host identifies the first target device group as a temperature control group, then the smart home devices in the temperature control group, such as air conditioners and fans, are controlled to turn on, off, or have their temperature adjusted.
[0192] Step 810: The intelligent host sends a first instruction to the first target device group.
[0193] The first instruction is used to instruct the first target device group to perform a first function. The first target device group receives the first instruction and performs the first function.
[0194] For example, if it is daytime and a user clicks the button on the wireless switch in the master bedroom, the current spatial status information of the master bedroom includes that the light intensity in the master bedroom is greater than the maximum light intensity threshold, and the lighting equipment is not turned on. The smart host will then use the above information to... Figure 12 The determination method shown selects shading control, that is, the first target device group includes smart curtain 1. The smart host sends the command "open curtain" to smart curtain 1, thereby realizing the effect of reducing the illuminance by the user clicking the button on the wireless switch to control smart curtain 1 to open.
[0195] After step 810 is completed, the control process triggered by the first operation ends, meaning that no further steps will be executed.
[0196] Based on the solutions in steps 801 to 806 and steps 808 to 810 above, it is possible to use a single control device to control smart devices in groups within a space, thereby improving the user experience of using the control device to control smart home devices.
[0197] Step 811: If the control event corresponding to the first operation is not used to switch the control mode of the control device and is used to switch the group control, then the intelligent host switches to the second target device group according to the group control sequence.
[0198] The intelligent host stores the correspondence between the second preset type and the switching group control. After receiving the control event corresponding to the first operation, the intelligent host determines whether the event type of the control event corresponding to the first operation is the same as the second preset type. If it is determined that the event type of the control event corresponding to the first operation is the same as the second preset type, it is determined that the control event corresponding to the first operation is used to switch the group control. If it is determined that the event type of the control event corresponding to the first operation is different from the second preset type, it is determined that the first operation is not used to switch the group control.
[0199] The second preset type can be a pre-defined event type used for event matching to determine whether a control event is used for switching group control. This second preset type can be set by the user or be the system default. For example, the second preset type is a shake event.
[0200] Taking the control group controlled by the intelligent host before step 811 as the first target device group in the group control sequence as an example, then the second target device group is the control group above or below the first target device group in the group control sequence.
[0201] In one implementation, if the first target device group determined by the intelligent host does not meet the user's expectations, or if the user wishes to control the previous or next control group in the group control sequence after controlling the first target device group by operation, the user can perform a preset operation on the control device to switch the group control, causing the control device to send a control event corresponding to the preset operation to the intelligent host. If the intelligent host determines that the control event corresponding to the preset operation is used to switch the group control, the intelligent host switches to the previous or next control group of the first target device group according to the group control sequence.
[0202] For example, taking a shake-to-switch operation as a preset operation for switching group control, the user can switch groups by shaking the control device, that is, holding the control device and shaking it left or right once. When shaking to the left, the user switches to the control group above the first target device group in the control group control sequence, and when shaking to the right, the user switches to the control group below the first target device group in the control group control sequence.
[0203] The default group control order is as follows: lighting control group, shading control group, volume control group, and temperature control group. Taking the shading control group as the first target device group determined by the current smart host, if the user holds the control device and swings it to the left once, it switches to the lighting control group. If the user swings it to the left again, it switches to the temperature control group.
[0204] Using the default group control order as lighting control group, shading control group, volume control group, and temperature control group, with the smart host currently selecting the shading control group as the first target device group, if the user swings the control device to the right, it switches to the volume control group; swinging it to the right again switches to the temperature control group. Similarly, if the user swings the control device to the right twice consecutively, it directly switches from the shading control group to the temperature control group, again with the shading control group as the first target device group selected by the smart host.
[0205] In some embodiments, the above-mentioned group control order is, in order, lighting control group, shading control group, volume control group, and temperature control group, using a circular traversal. That is, when the user switches the selected control group from left to right according to the group control order, the user switches to the last group and then returns to the beginning to continue the iteration. For example: lighting control group - shading control group - volume control group - temperature control group - lighting group - shading control group. This fixed group control order makes it easier for users to form operation memory and improves controllability.
[0206] In step 812, the intelligent host sends a second instruction to the second target device group, which instructs the second target device group to perform a second function. Accordingly, the second target device group receives the second instruction and performs the second function.
[0207] In one possible implementation, as described above Figure 8 As shown, after step 806, if the control event corresponding to the first operation is not used to switch the control mode of the control device and is used to switch the group control, the intelligent host switches to the second target device group according to the group control order and then sends the second instruction to the second target device group.
[0208] In another possible implementation, Figure 8 After step 806, if the control event corresponding to the first operation is not used to switch the control mode of the control device but to switch group control, the intelligent host sends a second instruction to the second target device group. That is, if the event type of the control event corresponding to the first operation is the same as the second preset type, a second instruction is sent to the second target device group, which instructs the second target device group to perform a second function. Therefore, after step 806, steps 811 and 812 are not executed.
[0209] Based on the above steps 801 to 806 and steps 811 to 812, the target equipment group controlled by the control equipment can be switched by operating the control equipment.
[0210] See Figure 13 The following is an exemplary flowchart illustrating a control method provided in an embodiment of this application. The method may include the following steps:
[0211] Steps 1301 to 1306 are the same as steps 801 to 806 above, and will not be repeated here.
[0212] Step 1307: If the control event corresponding to the first operation is not for switching the control mode of the control device, and the control mode of the control device when receiving the first operation is the scene mode, then the intelligent host determines the third target device group corresponding to the current scene.
[0213] In scene mode, users define preset scenes and groups of smart devices associated with preset scenes. When users control devices in scene mode, they control the smart devices in the smart device group associated with the current scene.
[0214] Taking a user configuring a movie-watching scene and a sleep scene for a control device as an example, if the user last selected the movie-watching scene by operating the control device, the current scene will still be the movie-watching scene; if the user last selected the sleep scene by operating the control device, the current scene will still be the sleep scene.
[0215] First, the associated devices defined in the current scene are grouped according to preset functions. For example, preset functions include lighting, shading, volume, and temperature. Therefore, the associated devices defined in the current scene can be divided into a lighting control group, a shading control group, a volume control group, and a temperature control group. Then, a third target device group is determined from these groups. Optionally, if there are no volume-related devices in the current scene, the volume control group is removed from the above groups. That is, after filtering the devices, the groups include the lighting control group, the shading control group, and the temperature control group. Then, the third target device group is determined from these three groups. Similarly, if there are no temperature-related devices in the current scene, the temperature control group is removed from the above groups. That is, after filtering the devices, the groups include the lighting control group, the shading control group, and the volume control group. Then, the third target device group is determined from these three groups.
[0216] For example, the sleep scene defaults to mute, so it doesn't involve a volume control group. Therefore, the volume control group can be removed from the group control order. The corresponding group control order for the sleep scene would then be: lighting control group, shading control group, and temperature control group. For details on how to determine the third target device group when the user operates the control device, please refer to [reference needed]. Figure 12 The determination process shown is not repeated here. It should be understood that the specific implementation of switching target device groups can also refer to the relevant content on switching target device groups in intelligent mode, which will not be repeated here.
[0217] In some embodiments, when filtering devices associated with the current scene definition, the controllable devices can be finely configured within the scene definition. For example, in a movie-watching scene in a living room, all lighting and sunshades can be turned off by default, then ambient lighting can be turned on at a low brightness, and a constant temperature setting can be activated. In the scene definition for the movie-watching scene, a marker can be added to ensure that when lighting device control is allowed, only ambient lighting such as LED strips are controlled, without turning on the main lights or downlights. Thus, during the movie-watching scene, when the user operates the control device once, the smart host determines that the third target device group is the lighting control group. If all lights in the current scene are off, only the brightness of the LED strips will be adjusted. If main light 1 is on in the current scene, it will be turned off, and the brightness of the LED strips will be adjusted. Afterwards, when the user operates the control device again, the smart host switches to the temperature control group and sends a command to the temperature control group to adjust the temperature.
[0218] Step 1308: The intelligent host sends a third instruction to the third target device group, which instructs the third target device group to perform a third function.
[0219] Based on the above Figure 13 The method shown can enable the use of a single control device to control a group of smart devices associated with the current scene, thereby improving the user experience of using the control device to control smart home devices.
[0220] The above Figure 8 This explanation uses the example of a control device controlling smart home devices in a single space. (See [link]). Figure 14 Taking the control of smart home devices in different spaces or different scenarios as an example, the following is an exemplary flowchart of the control method provided in this application embodiment. The method may include the following steps:
[0221] Step 1401: The intelligent host receives a control event from the control device.
[0222] Step 1402: The intelligent host determines the event type corresponding to the control event; if the event type is the third preset type, then proceed to step 1403; if the event type is the second preset type, then proceed to step 1414.
[0223] For example, the third preset type can be a rotation event, and the second preset type can be a shake event.
[0224] Step 1403: The intelligent host determines whether the control mode is intelligent mode; if yes, proceed to step 1404; if no, it says that the control mode is scene mode, then proceed to step 1409.
[0225] Step 1404: The intelligent host determines the current location of the control device.
[0226] The specific implementation of step 1404 can be found in the description of step 808, and will not be repeated here.
[0227] Step 1405: The intelligent host determines whether the space where the control device is currently located has changed compared to the space where it was located when the control event corresponding to the third preset type was last triggered; if yes, then proceed to step 1406; if no, then proceed to step 1407.
[0228] If the judgment result of step 1405 is that the space has not changed, the smart host directly uses the control group determined when the control event corresponding to the third preset type was triggered last time as the control object of this control event, without referring to the method of step 906 mentioned above to determine the control group corresponding to this control event. For example, if the control device last controlled the volume control group in the master bedroom, and the control device is currently still triggering a control event in the master bedroom, since the volume control was performed in the master bedroom last time, the user's intention to control the control device in the master bedroom this time is likely still to control the volume. Therefore, this control event is still set to control the volume control group, that is, the first target device group corresponding to the control event in step 1401 is the volume control group. If the control device is currently in the secondary bedroom, that is, the space where the control device is located has changed, then it is necessary to re-accord according to the method of step 906. Figure 10 The determination method shown identifies the first target equipment group corresponding to the secondary bedroom.
[0229] Step 1406: The intelligent host determines the first target device group corresponding to the space where the controlled device is currently located, according to the group control sequence. Then, step 1408 is executed.
[0230] For a detailed explanation of the implementation process of step 1406, please refer to [link / reference needed]. Figure 12 The process of determining [the value] will not be elaborated here.
[0231] Step 1407: The intelligent host selects the first target device group corresponding to the space where the control event of the third preset type was last triggered as the first target device group corresponding to the space where the control device is currently located. Then, step 1408 is executed.
[0232] Step 1408: The intelligent host sends instructions to the identified first target device group based on the event information corresponding to the control event. Then, the process ends.
[0233] For example, the event type of the control event in step 1401 is, for example, a rotation event, and the event information in step 1408 can be the rotation amount corresponding to the rotation event.
[0234] Step 1409: The intelligent host determines the current preset scene. Then, step 1410 is executed.
[0235] If the preset scene associated with the scene mode includes another preset scene, then that preset scene will be used as the current preset scene.
[0236] When the preset scenes associated with a scene mode include multiple preset scenes, the first scene among the multiple preset scenes can be used as the current preset scene, or the last scene among the multiple preset scenes can be used as the current preset scene, or any scene among the multiple preset scenes can be used as the current preset scene; this application does not impose any restrictions on this. For example Figure 7C As shown, the preset scenes associated with the scene mode include movie viewing scenes and live streaming scenes. You can use the movie viewing scene as the current preset scene, or you can use the live streaming scene as the current preset scene.
[0237] Step 1410: The intelligent host determines whether a scene switch has occurred compared to the scene when the control event corresponding to the third preset type was triggered last time. If yes, proceed to step 1411; otherwise, proceed to step 1412.
[0238] Step 1411: The control device determines the third target device group corresponding to the current scene from the smart devices associated with the current preset scene. Then, step 1413 is executed.
[0239] The specific implementation process of step 1411 can be found in the relevant description of step 1307 above, and will not be repeated here.
[0240] In step 1412, the intelligent host uses the third target device group corresponding to the current scene when the control event corresponding to the third preset type was last triggered as the third target device group corresponding to the current scene of the control device. Then, step 1413 is executed.
[0241] Step 1413: The intelligent host sends instructions to the identified third target device group based on the event information corresponding to the control event. Then, the process ends.
[0242] For example, the event type of the control event in step 1401 is, for example, a rotation event, and the event information in step 1413 can be the rotation amount corresponding to the rotation event.
[0243] Step 1414: The intelligent host switches the control sequence according to the event information corresponding to the control events. Then, the process ends.
[0244] For example, the event type of the control event in step 1401 is, for example, a "shake" event, and the event information in step 1414 can be the shaking direction corresponding to the "shake" event.
[0245] In one possible implementation, as described above Figure 14 As shown, the intelligent host determines the first target device group by comparing the space where the control device is located before and after.
[0246] In another possible implementation, Figure 14 After step 1404, the first target device group is determined directly based on the current location of the control device, and then step 1408 is executed, that is, steps 1405, 1406 and 1407 are not executed.
[0247] Through the above embodiments, users can control a group of devices by rotating or swinging the control device, thereby meeting the user's control expectations.
[0248] The methods provided in the embodiments of this application above are described from the perspective of the device as the executing entity. To implement the functions of the methods provided in the embodiments of this application above, the device may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.
[0249] This application also provides a control device for implementing the control methods shown in the figures above. (See also...) Figure 15 As shown, the control device 1500 can be a control device or a smart host in the aforementioned method embodiments. The control device 1500 includes a transceiver 1501, a processor 1502, and a memory 1503. The transceiver 1501, the processor 1502, and the memory 1503 are interconnected.
[0250] Optionally, the transceiver 1501, the processor 1502, and the memory 1503 are interconnected via a bus 1504. The bus 1504 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 15 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0251] Memory 1503 is used to store program instructions and data. Specifically, program instructions may include program code, which includes computer operation instructions. Memory 1503 may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Processor 1502 executes the program instructions and data stored in memory 1503 to implement the above functions, thereby implementing the control method provided in the above embodiments.
[0252] In this embodiment, the processor 1502 can be a general-purpose processor, digital signal processor, application-specific integrated circuit, field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in this embodiment. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in this embodiment can be directly implemented by the hardware processor, or implemented by a combination of hardware and software modules within the processor. The software modules can be located in the memory 1503. The processor 1502 reads the program instructions from the memory 1503 and, in conjunction with its hardware, completes the steps of the aforementioned methods.
[0253] In this embodiment, the memory 1503 can be non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or it can be volatile memory, such as RAM. The memory can also be any other medium capable of carrying or storing desired program code in the form of instructions or data structures, and accessible by a computer, but is not limited thereto. The memory in this embodiment can also be a circuit or any other device capable of implementing storage functions, used to store instructions and / or data.
[0254] This application also provides a readable storage medium storing a program. When the program is run on a device, it causes the device to execute the aforementioned method steps to implement the methods in the above embodiments. The device can be the intelligent host or control device described in the foregoing method embodiments.
[0255] This application also provides a program product that, when run on a device, causes the device to perform the aforementioned steps to implement the methods described in the above embodiments.
[0256] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store instructions, and when the apparatus is running, the processor may execute the instructions stored in the memory to cause the chip to perform the methods in the above-described method embodiments.
[0257] In this application, the device, storage medium, program product or chip provided in the embodiments are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0258] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A control method applied to an intelligent host, characterized in that, The method includes: Receive the control event sent by the control device in response to the first operation; Receive location information sent by at least one gateway device; If the event type of the control event is different from the first preset type, and the control mode when the control device receives the first operation is intelligent mode, then the first spatial identifier of the space where the control device is located is determined according to the positioning information. The first target device group is determined based on the first spatial identifier; Send a first instruction to the first target device group, the first instruction being used to instruct the first target device group to perform a first function.
2. The method as described in claim 1, characterized in that, The step of determining the first spatial identifier of the space where the control device is located based on the positioning information includes: Based on the positioning information, determine the position coordinates of the control device; Based on the location coordinates of the control device and the overall room space information, the first space identifier of the space where the control device is located is determined.
3. The method as described in claim 1, characterized in that, The method further includes: Receive sensory information from AI sensors; The step of determining the first spatial identifier of the space where the control device is located based on the positioning information includes: The position coordinates of the control device are determined based on the positioning information and the sensing information. Based on the location coordinates of the control device and the overall room space information, the first space identifier of the space where the control device is located is determined.
4. The method according to any one of claims 1-3, characterized in that, The step of determining the first target device group based on the first spatial identifier includes: Based on the first spatial identifier, determine the spatial status information corresponding to the first spatial identifier; Based on the control event and the space status information, the first target device group is determined from the smart home devices included in the space corresponding to the first space identifier.
5. The method as described in claim 4, characterized in that, The step of determining the first target device group from the smart home devices included in the space corresponding to the first space identifier based on the control event and the space state information includes: The smart home devices included in the space corresponding to the first space identifier are grouped to obtain at least one control group; Based on the control event and the spatial state information, the first target device group is determined from the at least one control group.
6. The method as described in claim 5, characterized in that, The step of grouping the smart home devices included in the space corresponding to the first space identifier includes: The smart home devices included in the space corresponding to the first space identifier are automatically grouped according to function; or, The smart home devices included in the space corresponding to the first space identifier are grouped according to the user-defined grouping method.
7. The method as described in claim 5 or 6, characterized in that, The at least one control group includes one or more of the following: lighting control group, shading control group, volume control group, and temperature control group.
8. The method according to any one of claims 1-7, characterized in that, The method further includes: If the event type of the control event is the same as the first preset type, then the control mode of the control device is switched.
9. The method according to any one of claims 1-8, characterized in that, The method further includes: If the event type of the control event is the same as the second preset type, a second instruction is sent to the second target device group, which is used to instruct the second target device group to perform a second function.
10. The method according to any one of claims 1-4, characterized in that, The step of determining the first target device group based on the first spatial identifier includes: If the first spatial identifier is the same as the second spatial identifier, then the target device group corresponding to the second spatial identifier is taken as the first target device group; the second spatial identifier is the spatial identifier of the space where the control device is located when the intelligent host last received a control event of the same event type as the control event.
11. A control method applied to an intelligent host, characterized in that, The method includes: Receive the control event sent by the control device in response to the first operation; If the event type of the control event is different from the first preset type, and the control mode when the control device receives the first operation is the scene mode, the first preset scene in at least one preset scene associated with the scene mode is taken as the current scene, and the third target device group corresponding to the current scene is determined. A third instruction is sent to the third target device group, the third instruction being used to instruct the third target device group to perform a third function.
12. A smart host, characterized in that, Including processor and memory; The memory is used to store one or more programs, which, when executed by the processor, cause the smart host to perform the method as described in any one of claims 1 to 11.
13. A readable storage medium, characterized in that, The readable storage medium includes a program that, when run on a smart host, causes the smart host to perform the method as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Magic cube controller and equipment control method
CN115309061A