Control method, intelligent host and storage medium

Through the intelligent host, the information of the control device and the gateway device is received, the identification of the space where the control device is located and the target device group is determined, which solves the problem that the existing wireless switch control target is single and cannot be used across space, and realizes the unity of multiple devices Control improves user experience.

CN119493388AActive Publication Date: 2025-02-21HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311034321.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-15
Publication Date
2025-02-21
Estimated Expiration
2043-08-15

AI Technical Summary

Technical Problem

The control targets of existing wireless switches are single and fixed, and cannot be used across space, resulting in poor user experience.

Method used

The intelligent host receives control events of the control device and positioning information of the gateway device, determines the identification of the space where the control device is located, and determines the target device group based on the identification, so as to realize group control of multiple devices.

Benefits of technology

It realizes unified control of multiple devices by a single control device, improving the user experience of users using control devices to control smart home devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119493388A_ABST
    Figure CN119493388A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control method, an intelligent host and a storage medium. The method comprises the steps that the intelligent host receives a control event sent by control equipment in response to a first operation; the intelligent host receives positioning 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 equipment receives the first operation is an intelligent mode, the intelligent host determines a first space identifier of the space where the control equipment is located according to the positioning information; the intelligent host determines a first target device group according to the first space identifier; then, the intelligent host sends a first instruction to the first target device group, and the first instruction is used for indicating the first target device group to execute the first function; therefore, a single control device is used to control a group of devices, and the user experience of using the control device to control the smart home device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a control method, an intelligent host and a storage medium. Background Art

[0002] As a new system, whole-house intelligence is gradually becoming popular in thousands of households, and it has derived many new concepts and new ways of experience, such as portable wireless switches, which can provide mobile and quick control capabilities. However, the control targets of current wireless switches are single and relatively fixed. For example, the wireless switch that matches the smart light can only control the smart light, and the wireless switch that matches the air conditioner can intelligently control the air conditioner. In addition, the current wireless switches are mainly used in a single space and do not support cross-space use. If you need to use it in multiple spaces, you need to configure multiple wireless switches, which has a poor user experience. Summary of the invention

[0003] The embodiments of the present application provide a control method, a smart host and a storage medium to enhance the user experience of a user using a control device to control a smart home device.

[0004] In a first aspect, the present application provides a control method, which includes: an intelligent host receives a control event sent by a control device in response to a first operation; the intelligent host receives positioning 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 an intelligent mode, the intelligent host determines a first space identifier of a space where the control device is located based on the positioning information; the intelligent host determines a first target device group based on the first space identifier; then, the intelligent host sends a first instruction to the first target device group, and the first instruction is used to instruct the first target device group to perform a first function.

[0005] The first preset type may be a preset event type used for event matching to determine whether the control event is used to switch the control mode, and the first preset type may be set by the user or by 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 a first operation, when 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 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, thereby 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 space identifier of the space where the control device is located according to the positioning information, which can be implemented by the following two possible implementations:

[0008] In implementation mode 1, the smart host determines the location coordinates of the control device based on the positioning information; then, the smart host determines the first space identifier of the space where the control device is located based on the location coordinates of the control device and the whole house space information. In implementation mode 1, the smart host needs to accurately determine the location coordinates of the control device based on the positioning information provided by at least three gateways, and then accurately determine the identifier of the space where the control device is located in combination with the whole house space information.

[0009] In the second implementation mode, the intelligent host can also receive the perception information of the AI ​​sensor; the intelligent host can determine the location coordinates of the control device based on the positioning information and the perception information; then, based on the location coordinates of the control device and the whole house space information, determine the first space identifier of the space where the control device is located. In this second implementation mode, the intelligent host can accurately determine the location coordinates of the control device in combination with the perception information of the AI ​​sensor when receiving the positioning information provided by the two gateways, and then accurately determine the identifier of the space where the control device is located in combination with the whole house space information.

[0010] In a possible implementation, the smart host determines the first target device group according to the first space identifier, including: the smart host determines the space state information corresponding to the first space identifier according to the first space identifier; and then, according to the control event and the space state information, determines 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, including: the smart host groups the smart home devices included in the space corresponding to the first space identifier to obtain at least one control group; and determines the first target device group from at least one control group based on control events and space status information.

[0012] In a 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 a possible implementation, at least one control group includes one or more of the following: a lighting control group, a sunshade control group, a volume control group, and a temperature control group.

[0014] In a possible implementation, the method further includes: if the event type of the control event is the same as the first preset type, the intelligent host switches the control mode of the control device. In this way, the user can operate the control device to switch the control mode of the control device. For example, when the control mode of the control device receives the first operation, it is the intelligent mode, and it can be switched to the scene mode through this implementation; for another example, when the control mode of the control device receives the first operation, it is the scene mode, and it can be switched to the intelligent mode through this implementation.

[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 smart host sends a second instruction to the second target device group, the second instruction is 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 may be a preset event type for event matching to determine whether the control event is used to switch group control, and the second preset type may be set by the user or by the system default. For example, the second preset type is a shake event.

[0017] In a possible implementation, the smart host determines the first target device group according to the first space identifier, including: if the first space identifier is the same as the second space identifier, the smart host uses the target device group corresponding to the second space identifier as the first target device group; the second space identifier is the space identifier of the space where the control device is located when the smart host last received a control event of the same event 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 according to the previous control event as the first target device group to be controlled, thereby saving the computing resources of the smart host.

[0018] In a second aspect, the present application provides a control method, which includes: an intelligent host receives 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 of the control device when receiving the first operation is a scene mode, the intelligent host determines a third target device group corresponding to the current scene; then, the intelligent host sends a third instruction to the third target device group, and the third instruction is used to instruct the third target device group to perform a third function.

[0019] Through this method, after the smart host receives a control event sent by the control device in response to a first operation, when 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 a scene mode, the smart host determines a third target device group according to the current scene, thereby realizing group control of the smart devices associated with the current scene using a single control device, thereby improving the user experience of the user using the control device to control smart home devices.

[0020] In a third aspect, the present application provides a control method, the method comprising: a control device receives a first operation; and the control device sends a control event corresponding to the first operation to a smart host in response to the first operation.

[0021] Through this method, the control device sends the control event to the smart host, so that after receiving the control event, when 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 smart mode, the smart host can determine the first target device group 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, thereby improving the user experience of the user using the control device to control smart home devices.

[0022] In a possible implementation, the method further includes: the control device broadcasting a positioning signal, where the positioning signal is used to locate the position of the control device.

[0023] In a possible implementation, before the control device broadcasts the positioning signal, the control device may also 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 smart device can locate the control device when the event type of the control event is different from the first preset type, thereby realizing group control of the smart devices in the space.

[0024] In a fourth aspect, the present application further provides a device, which includes a module / unit for executing any possible design method of any of the above aspects. These modules / units can be implemented by hardware, or by executing corresponding software implementations by hardware.

[0025] In a fifth aspect, the present application provides a device, including a processor and a memory. The device may be a control device or an intelligent 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 device can implement the above-mentioned various aspects and any possible design method involved in each aspect.

[0026] In a sixth aspect, the present application also provides a readable storage medium, which includes a program. When the program runs on a device, the device executes the above-mentioned various aspects and any possible design method involved in each aspect.

[0027] In a seventh aspect, the present application also provides a program product, which, when executed on a device, enables the device to execute the above-mentioned various aspects and any possible design method involved in each aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A flowchart of an existing control scheme is provided;

[0029] Figure 2 A schematic diagram of a whole-house smart scene provided in an embodiment of the present application;

[0030] Figure 3A A schematic diagram of a communication system provided in an embodiment of the present application;

[0031] Figure 3B A schematic diagram of a control device structure provided in an embodiment of the present application;

[0032] Figure 4 A schematic diagram of the initial configuration of the whole-house intelligent system provided in the embodiment of the present application;

[0033] Figure 5 A schematic diagram of a whole-house coordinate system provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of a spatial coordinate system provided for an embodiment of the present application;

[0035] FIG. 7A to FIG. 7D A set of configuration interface schematic diagrams provided for embodiments of the present application;

[0036] FIG. 7E to FIG. 7H A set of configuration interface schematic diagrams provided for embodiments of the present application;

[0037] FIG. 7I to FIG. 7L A set of configuration interface schematic diagrams provided for embodiments of the present application;

[0038] Figure 8 A flow chart of a control method provided in an embodiment of the present application;

[0039] Fig. 9 A schematic diagram of positioning provided in an embodiment of the present application;

[0040] Fig.10 A schematic diagram of positioning provided in an embodiment of the present application;

[0041] Fig.11A schematic diagram of angle of arrival positioning provided in an embodiment of the present application;

[0042] Fig.12 A schematic diagram of a method for determining a first target device group provided in an embodiment of the present application;

[0043] Fig.13 A flow chart of a control method provided in an embodiment of the present application;

[0044] Fig.14 A flow chart of a control method provided in an embodiment of the present application;

[0045] Fig.15 A schematic diagram of the structure of a control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0047] References to "some embodiments" and the like described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way.

[0048] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0049] The current wireless switches have a single and relatively fixed control target. For example, the wireless switch for smart lights can only control smart lights, and the wireless switch for air conditioners can intelligently control air conditioners. 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, which results in a poor user experience.

[0050] The current control schemes for wireless switches all use IFTTT, which stands for "if this then that". In other words, based on static pre-configuration, corresponding control actions are executed when expected events occur, such as Figure 1 As shown, the control scheme of the wireless switch includes the following steps:

[0051] Step 101, configuring the control switch, specifically configuring as follows: when the button is controlled, executing a predetermined control action.

[0052] Step 102: The control switch determines whether the key is controlled.

[0053] If it is detected that the key is controlled, step 103 is executed; if it is detected that the key is not controlled, the process ends.

[0054] Step 103, execute a predetermined control action, and then end.

[0055] The above control scheme relies on static configuration, and the control target of a wireless switch is single 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 the user wants to operate devices in multiple spaces, he needs to find the corresponding switch pair for each space to control the devices in the space, and the user experience is poor.

[0056] To this end, the present application provides a control method, device and storage medium. The control device supports group control of different types of devices in a space, and can realize intelligent control of the target device or device group in the space after the handheld control device enters different spaces, and can realize that the control object of a single control device changes with the change of the space. Among them, the method and the device are based on the same technical concept. Since the principles of solving problems by the method and the device are similar, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.

[0057] The control method provided in the embodiment of the present application can be applied to the whole house smart scene. Figure 2 The following is an exemplary diagram of the whole-house smart scene provided by the embodiment of the present application. Figure 2The whole house shown includes three spaces, namely the master bedroom, the second bedroom and the study. Each space can include at least one smart home device, such as smart curtains 1, air conditioner 1, smart light 1, and smart TV in the master bedroom, smart curtains 2, air conditioner 2, and smart light 2 in the second bedroom, and smart curtains 3, air conditioner 3, smart light 3, and speakers in the study. When a user holds a control device (such as Figure 2 After a user enters any space, the wireless switch is operated by the user. The wireless switch sends a control event to the smart host in response to the user operation. The smart host determines the target smart home device and the corresponding function in the space where the wireless switch is located according to the control event and the control rule, thereby controlling the state of the target smart home device. For example, the control rule includes shaking the controlled device in the corresponding switching group sequence list. The group sequence list includes lighting control, sunshade control, volume control, and temperature control. The user last held the wireless switch in the master bedroom to control the lighting. At this time, the user holds the wireless switch and enters the master bedroom. The wireless switch is shaken. The smart host switches to sunshade control according to the group sequence list and sends an "unfold curtain" command to curtain 1, thereby controlling curtain 1 to unfold; 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 a smart TV. The smart host sends an "adjust volume" command to the smart TV, thereby adjusting the volume of the smart TV.

[0058] A communication system applicable to the embodiments of the present application is provided below. 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 devices among the smart host 10, the positioning anchor device 11, the control device 12, and the smart home device 13 can be a wireless communication method based on a local area network, such as Bluetooth communication, wireless-fidelity (Wi-Fi) communication, ZigBee communication and other short-range wireless communication methods, or a wireless communication method based on a cellular network (such as a cellular network established by 2G, 3G, 4G, 5G and subsequent standard protocols, etc.).

[0059] Optionally, the communication system may further include at least one sensor 14, and at least one sensor 14 may be distributed in various spaces throughout the house, and one or more sensors 14 may be provided in each space, and the types of the multiple sensors 14 provided in the same space may be the same or different, and each sensor 14 may periodically send the environmental parameters collected by itself to the intelligent host. For example, a temperature sensor and a light sensor are provided in the master bedroom, wherein the temperature sensor is used to monitor the temperature of the master bedroom, and the light sensor is used to monitor the illuminance of the master bedroom. Then, after the intelligent host receives the environmental parameters respectively sent from the temperature sensor and the light sensor of the master bedroom, it obtains the environmental information of the master bedroom, i.e., the temperature and illuminance of the master bedroom. For another example, a temperature sensor and a humidity sensor are provided in the secondary bedroom, wherein the temperature sensor is used to monitor the humidity of the secondary bedroom, and the humidity sensor is used to monitor the humidity of the secondary bedroom. Then, after the intelligent host receives the environmental parameters respectively sent from the temperature sensor and the humidity sensor of the secondary bedroom, it obtains the environmental information of the secondary bedroom, i.e., the temperature and humidity of the secondary bedroom.

[0060] In some embodiments, the user can carry the control device 12 into any space in the house, and then perform user operations on the control device 12 to control the smart home device 13. Among them, the control device 12 can be a portable wireless switch. The user can operate the control device 12, and the control device 12 may include a component for receiving user operations, such as a button, a touchpad, or a roller, etc. For example, the control device 12 includes a button, and the user operation may be a single click, double click, or long press on the button to achieve different control functions; for example, the control device 12 includes a touchpad, and the user operation may act on a sliding operation of the touchpad; for example, the control device 12 includes a roller, and the user operation may act on a rolling operation of the roller; for example, the user operation may be a rotation of the control device 12, a swing, and the like. The embodiments of the present application do not limit the components for receiving user operations and the user operations.

[0061] The smart home device 13 can be terminal equipment (terminal equipment), user equipment (UE), mobile station (MS), mobile terminal (MT), other home equipment, etc., such as smart curtains, smart lights, air conditioners, smart TVs, speakers, desk lamps, computers, etc.

[0062] After receiving the user operation, the control device 12 may send a control event to the smart host 10 and broadcast a positioning signal, which is used to locate the position of the control device 12.

[0063] After receiving the 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, such as Figure 2 Gateway 1, Gateway 2 and Gateway 3 are shown.

[0064] The smart host 10 is connected to the smart home devices 13 throughout the house, and can monitor the device status of each smart home device 13, such as the lighting device opening status, curtain opening status, TV playing status, speaker playing status and air conditioning opening status.

[0065] After receiving the positioning information, the smart host 10 determines the location information of the control device 12 in combination with the whole house space information, wherein the whole house space information is such as the space where the control device 12 is located and the location coordinates of the control device 12. After receiving the control event, the smart host 10 can determine the target smart home device in combination with the control event, control rules and space status information, wherein the space status information includes the environment information of the space and the device status information of each smart home device in the space, and then control the target smart home device to perform the corresponding function. Among them, the smart host 10 can be a server or a local host for the whole house, or a home cloud server located on the cloud side, or other devices that can realize the functions of the smart host 10.

[0066] Optionally, the communication system may further include an AI sensor 15, which may emit millimeter waves and obtain perception information through return waves, wherein the perception information includes the number of people in the room, the position of each person, and the state of the person, wherein the state of the person includes the user's posture, such as sitting, standing, lying, standing with the right hand raised, which is not limited in the embodiment of the present application. The above-mentioned space state information may also include perception information.

[0067] A whole-house management application can be installed on the device 16, and the whole-house management application is, for example, a smart life application (application, App), or an application with other names. The user can enter or update space information, device information, etc. in the whole-house management application, and can also manage smart home devices, and set the correspondence between user operations and control functions of smart home devices. The whole-house management application can control smart home devices through different control modes, wherein the control mode may include a smart mode and a scene mode, wherein the preset scene may include a movie watching scene, a sleeping scene, etc. The user can set the switching mode between different control modes through the whole-house management application, and set the preset scene of the scene mode, etc. The device 16 is an optional device, and the whole-house management application can also be installed in the smart host 10.

[0068] The control device provided in the embodiments of the present application is introduced below.

[0069] Please refer to Figure 3B , which is a schematic diagram of the structure of the control device 12 provided in an embodiment of the present 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 roller 307, and an indicator light 308. It is understandable that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the control device 12. In other embodiments of the present invention, the control device 12 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0070] The processor 301 may include one or more processing units, for example, the processor 301 may include an application processor AP, a modem processor, a controller, a memory, a digital signal processor (DSP), a baseband processor, etc. Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the control device 12. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0071] The processor 301 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 301 is a buffer memory. The memory may store instructions or data that the processor 301 has just used or circulated. If the processor 301 needs to use the instruction or data again, it may be directly called from the memory.

[0072] In some embodiments, the processor 301 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a general-purpose input / output (GPIO) interface, and / or a universal serial bus (USB) interface, etc.

[0073] The processor 301 can control the execution of the 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 in the wireless communication module 306, the wireless communication module 306 is controlled to send a control event corresponding to the first operation to the smart host 10, or for another example, the wireless communication module 306 is controlled to broadcast a positioning signal.

[0074] The memory 302 may be used to store executable program codes, which include 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 an operating system, an application required for at least one function (such as a key control function, etc.), 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] The sensor 303 may be one or more sensors. The sensor 303 may be a touch sensor for detecting a user's touch operation on the control device 12. The sensor 303 may also be a pressure sensor for detecting a user's pressing operation on the control device 12. In other embodiments, the sensor 303 may also be a fingerprint sensor for detecting a user's fingerprint, identifying a user's identity, etc. In still other embodiments, the sensor 303 may be an acceleration sensor for detecting the magnitude of the acceleration of the control device 12 in all directions (generally three axes). When the control device 12 is stationary, the magnitude and direction of gravity may be detected. It may also be used to identify the posture of the control device 12. In still other embodiments, the sensor 303 may be a gyroscope sensor for determining the motion posture of the control device 12. For example, the angular velocity of the control device 12 around three axes (i.e., x, y, and z axes) may be determined by a gyroscope sensor.

[0076] The key 304 may be a mechanical key, or a button, or a touch key. The control device 12 may receive key input and generate key signal input related to the function control of the control device 12.

[0077] The power source 305 may be used to supply power to various components included in the control device 12. In some embodiments, the power source 306 may 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), so that the control device 12 can exchange data with other devices. In some embodiments, the wireless communication module 306 can be a Bluetooth module, so that the positioning signal can be broadcast through the Bluetooth module. In other embodiments, the wireless communication module 306 can also be an infrared module or a WIFI module, etc., and the specific implementation method of the wireless communication module 306 is not limited here.

[0079] In addition, in the embodiment of the present application, one wireless communication module 306 can be provided, or multiple wireless communication modules can be provided as required. For example, two wireless communication modules can 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 the two wireless communication modules respectively. Here, the number of wireless communication modules 306 is not limited.

[0080] The scroll wheel 307 can receive the scrolling operation of the user.

[0081] The indicator light 308 may be an indicator light, which may be used to indicate a control mode of the control device.

[0082] It should be understood that in practical applications, the control device 12 may include Figure 3B The embodiments of the present application are not limited to the more or fewer components shown. The illustrated control device 12 is only an example, and the control device 12 may have more or fewer components than those 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 method in the embodiment of the present application is described in detail below.

[0084] First, the initial configuration process of the whole-house smart system is introduced. The initial configuration process can be completed by the engineer in the whole-house configuration application installed in the smart host or in the web page (Web). The whole-house configuration application can be, for example, a smart life application. Figure 4 As shown in the figure, 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 may include specific house size information, such as the name and size information of each space included in the whole house floor plan, wherein the size information includes the length and width of the space.

[0087] In the embodiment of the present 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 may be defined for the entire house, e.g. Figure 5 The coordinate system xOy shown corresponds to a space origin O(0,0) and is used to calibrate the positions of all devices in the house. In this case, the position information of all devices in the house is expressed by the position coordinates under the coordinate system xOy.

[0089] In some other embodiments, a coordinate system may 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 the origin O1(0,0) of the master bedroom, a coordinate system x′O2y′ is defined for the second bedroom, corresponding to the origin O2(0,0) of the second bedroom, and a coordinate system xO3y′ is defined for the study, corresponding to the origin O3(0,0) of the study, and the relative positions of the origin O1 of the master bedroom, the origin O2 of the second bedroom, and the origin O3(0,0) of the study are recorded. In this case, the position information of all devices in the master bedroom is expressed by the position coordinates under the coordinate system xO1y, the position information of all devices in the second bedroom is expressed by the position coordinates under the coordinate system x′O2y′, and the position information of all devices in the study is expressed by the position coordinates under the coordinate system xO3y′.

[0090] Step 402, the whole-house configuration application writes the whole-house space information to the smart host in response to the engineer's write operation.

[0091] Step 403: The engineer configures the device information in the whole-house configuration application.

[0092] The configuration device in step 403 may include configuring information of one or more smart home devices in the whole house. When configuring information of any smart home device, the spatial information of the smart home device may be configured in the whole house configuration application. For example, when configuring Figure 2 When the smart light 1 shown in FIG. 1 is used, the space information of the smart light 1 can be configured as the master bedroom; Figure 2 When the gateway 2 is shown, the space information of the gateway 2 can be configured as the second bedroom.

[0093] The configuration device in step 403 may also include configuring the information of the positioning anchor point devices in the whole house. In addition to configuring the spatial information for the positioning anchor point devices, the location information of the positioning anchor point devices may also be configured. The positioning anchor point device is a device that can receive the positioning signal of the control device and send the positioning information to the smart host. The positioning information can be used by the smart host to locate the control device. For example, the device used as the positioning anchor point is as follows Figure 2 Gateway 1, Gateway 2 and Gateway 3 are shown.

[0094] The location information of the positioning anchor device may include the location information based on the whole house coordinate system (such as Figure 5 The coordinates of the positioning anchor device determined by the coordinate system x(y) shown, for example Figure 5 The coordinates of the gateway 1 shown are (4,5); the location information may 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 the gateway 1 is based on the coordinate system of the master bedroom where the gateway 1 is located (for example Figure 6 The coordinates (4, 5) of gateway 1 are determined by the coordinate system xO1y shown in FIG. 1 . For example, the location information of gateway 2 is based on the coordinate system of the second bedroom where gateway 2 is located (for example Figure 6 The coordinates of the gateway 2 are determined by the coordinate system x′O2y′ shown in FIG. 1 . For example, the location information of the gateway 3 is based on the coordinate system of the study where the gateway 3 is located (for example Figure 6 The coordinates of the gateway 3 determined by the coordinate system x03y′) shown in FIG. 1. In the embodiment of the present application, when configuring the location information, the engineer may 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 the smart home devices and the positioning anchor devices. The subsequent steps are explained by taking the connection and interaction between the whole-house configuration application and the smart home devices as an example. The implementation method of the connection and interaction between the whole-house configuration application and the positioning anchor devices can refer to the relevant description of the connection and interaction between the whole-house configuration application and the smart home devices.

[0096] Step 404 , the whole-house configuration application discovers smart home devices in response to the engineer's device adding operation.

[0097] In some embodiments, the whole house is set up with a Wi-Fi network. After the smart home device is connected to the Wi-Fi network, the router sends the smart home device connected to the Wi-Fi network to the whole house smart application, that is, the whole house smart application discovers the smart home device connected to the Wi-Fi network.

[0098] In other embodiments, the whole-house configuration application responds to the engineer's device adding operation and controls the smart host to send a Bluetooth broadcast. After the smart home device receives the Bluetooth broadcast, it sends a response message to the smart host. The smart host receives the response message sent by the smart home device, and the response message carries the identification of the smart home device. The whole-house configuration application obtains the identification of the smart home device from the response message, that is, discovers the smart home device.

[0099] In other embodiments, the smart home device can send a Bluetooth broadcast, the smart host receives the Bluetooth broadcast sent by the smart home device, and the whole-house configuration application responds to the engineer's operation of adding a device and obtains the identifier of the smart home device carried by the Bluetooth broadcast from the smart host, thereby discovering the smart home device.

[0100] Step 405: The smart home device sends device information to the whole-house configuration application.

[0101] The device information may include device identification, device type, etc.

[0102] Step 406: The whole-house configuration application sends the device information to the smart host based on the received device information.

[0103] Step 407 : The whole-house configuration application sends configuration information to the smart home device in response to the engineer's operation for sending configuration information.

[0104] The configuration information may include the space information configured for each smart home device, such as the configuration information of the engineer. Figure 2 The space 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 the device information of the smart light 1 to the whole house configuration application. Then the whole house configuration application sends configuration information to the smart home device including: [smart light 1, master bedroom].

[0105] Step 408: The smart home device negotiates with the smart host to access the smart host.

[0106] Step 409, the smart home device notifies the whole-house configuration application that the configuration 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 configures one or more preset scenes associated with the wireless switch in the scene mode to the smart host in response to the engineer's operation for configuring the scene.

[0109] The above steps 410 and 411 are optional steps. Engineers can pre-configure some preset scenes in scene mode for the wireless switch, such as movie watching scenes, sleeping scenes, etc. The scene information configuration of these preset scenes can be configured by engineers or defined by users after they check in.

[0110] After the engineer completes the initial configuration of the whole-house smart system, the user of the house takes possession of the house and customizes the whole-house smart system by himself. The user's self-configuration process mainly includes the following steps:

[0111] S1, the user connects the device 16 installed with the "whole house management application" to the whole house smart network.

[0112] S2, the user opens the "whole house management application" on the device 16 and logs in to the user account.

[0113] S3, add a smart host to trigger room collection by scanning, sticking, scanning code, etc., and the device information will be registered under the user account.

[0114] For example, if the user account is a Huawei account, add the host to the user's Huawei account. At this time, all devices connected to the smart host will be registered to the user's Huawei account. When logging in to the Huawei account, you can view all devices, such as smart lights, air conditioners, speakers, smart curtains, refrigerators, smart TVs, table lamps, etc. After moving into the house, users can also add other devices they purchase to their Huawei account.

[0115] S4, the user uses the "whole house management application" to add the smart home devices purchased by himself, add or modify the scenes, and modify the preset scenes associated with the wireless switch in the scene mode.

[0116] Taking the whole house management application as a smart life application as an example, the device 16 is installed with the smart life application. After the user opens the smart life application, the user enters the following Fig. 7A The wireless switch management details page 700 shown in the figure includes scene settings, device group settings, and device management. After the user clicks on the scene setting, a preset scene list 710 is displayed. The preset scene list 710 may include one or more preset scenes. The preset scene may be a somatosensory game scene, a movie scene, a live broadcast scene, a sleep scene, and a music playback scene. 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 the scene mode. When selecting one or more preset scenes, the selection boxes corresponding to the selected one or more preset scenes can be checked. For example, the user wants to select Figure 7BThe movie watching scene 711 and the live broadcast scene 712 shown in the figure are the preset scenes associated with the wireless switch in the scene mode, then check the selection box 713 corresponding to the movie watching scene 711 and the selection box 714 corresponding to the live broadcast scene 712 respectively, and after checking Figure 7C As shown, both selection box 713 and selection box 714 are in the selected state. The user can also operate the preset scene to realize the scene information configuration of the preset scene. The 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. The at least one control group may include: at least one control group of the lighting control group, the sunshade control group, the volume control group and the temperature control group, wherein the lighting control group includes at least one lighting device in the whole house, the sunshade control group includes at least one smart curtain in the whole house, the volume control group includes at least one smart device in the whole house that can adjust the volume, and the temperature control group includes at least one smart device in the whole house that can adjust the temperature. In addition, a mark can be added, which is used to refine the control rules for one or more control groups that can be controlled.

[0117] For example, the control rules for the lighting control group and the sunshade control group are configured in the movie watching scene, and the atmosphere lights in the lighting control group are individually controlled by adding tags. Figure 7B The click operation of the movie watching scene 711 shown in FIG. Fig.7D In the scene information configuration window 720 of the movie-watching scene shown in the figure, the user can configure the control rule in the scene information configuration window 720 of the movie-watching scene as: turn off the devices in the lighting control group and the sunshade control group, and the user can also add a mark, the mark content is to turn on the atmosphere light: light strip 1 and light strip 2 in the living room. When adding a mark, the form of adding a scroll tag configuration item can be adopted to configure the lighting control to only support the adjustment of the light strip, for example, the scroll tag is: sybSystem: lighting, scroll: prodType = "light strip 1, light strip 2". The user operates the wireless switch, and the smart host determines that the movie-watching scene has been entered according to the control event corresponding to the operation. For example, the main light and downlight in the living room in the lighting control group of the whole house are in the on state, and the other lights are in the off state. After judging that the movie-watching scene has been entered, the smart host sends a turn-off command to the main light and downlight, and sends an on command to the atmosphere light; for another example, all lighting devices corresponding to the lighting control group of the whole house are in the off state. After judging that the movie-watching scene has been entered, the smart host sends an on command to the atmosphere light, so that only the atmosphere light is in the on state in the movie-watching scene.

[0118] After the user selects the preset scene associated with the wireless switch in the scene mode, the user operation for entering the preset scene or switching the scene can also be configured. If there are multiple preset scenes corresponding to the wireless switch, the corresponding operation can be configured to enter different preset scenes, for example, the first preset operation is configured to control the wireless switch to enter the current preset scene, and the second preset operation is configured to control the wireless switch to switch the preset scene. For example, the preset scenes associated with the wireless switch in the scene mode include the movie watching scene and the sleep scene, the operation one is the pressing operation, and the operation two is the shaking operation. For example, 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 switch the preset scene to the sleep scene by shaking the wireless switch again.

[0119] In some embodiments, the user can also add more preset scenes to the preset scene list, such as Fig. 7A The preset scene list 710 shown includes a custom control 716. In response to a user clicking operation on the custom control 716, the device 16 adds the scene name of the newly added scene and configures the corresponding scene information.

[0120] Optionally, the user can also group the smart home devices in the house. Fig. 7A The device grouping settings in the wireless switch management details page 700 shown in FIG. Fig. 7E The device group setting window 730 shown in the figure includes a lighting control group, a sunshade control group, a volume control group, and a temperature control group. The user can also add a new group by operating the "add group" control. For example, the user Fig. 7E The control corresponding to the volume control group shown in FIG. 1 is clicked, and the device 16 displays the following in response to the click operation: Figure 7F , the window 731 includes an add device control 732. The user clicks the drop-down control in the add device control 732, and the device 16 displays a drop-down menu 733 in response to the click operation. The drop-down menu 733 includes all smart devices in the house. The user can select a smart home device to be added to the volume control group in the window 733, for example Figure 7F As shown, the user clicks on the smart TV in the drop-down menu 733, and in response to the click, the smart TV is added to the Figure 7G The volume control group shown. Figure 7G As shown, the window 731 also includes a control 734, and the control 734 is operated to display the following Figure 7HThe add device control 735 shown, and the implementation method of selecting a smart home device to add to the volume control group through the add device control 735, can refer to the relevant description of the add device control 732, which will not be repeated here.

[0121] In the embodiment of the present application, the user can group the smart home devices according to the above preset grouping types. The preset grouping types are as follows: Fig. 7E In some other embodiments, the user can also customize the grouping type and then group the smart home devices according to the customized grouping type. For example, the user clicks on Fig. 7A The device grouping settings in the wireless switch management details page 700 shown in FIG. Fig.7I The device grouping setting window 740 shown in the figure includes a plurality of custom grouping controls 741 and an add device control 742 corresponding to each custom grouping control 741, wherein the control 741 is used for the user to input a custom grouping type, and the control 742 is used to add a new grouping type. Fig.7I After inputting control group 1 in control 741, the following is displayed: Figure 7J The user can also control Figure 7J The control 742 in the display is operated, such as clicking, Figure 7K The window 750 shown in FIG. 1 includes all the smart devices in the house. The user can select a smart home device from the window 750 and add it to the control group 1, 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 the click operation, the following is displayed: Figure 7L Window 752 is shown, which displays the smart home devices added to control group 1, such as curtains, main light 1, and main light 2.

[0122] See also Figure 8 , exemplarily shows a flow chart of a control method provided in an embodiment of the present application, the method may include the following steps:

[0123] Step 801: A control device receives a first operation.

[0124] As a possible implementation method, the user enters a space in the house, such as the master bedroom, and then performs a first operation on the control device. The first operation can be a single click, a long press, a double click, a rotation, a swing, or a combination of operations. The embodiment of the present application is not limited to this.

[0125] Step 802: In response to a first operation, the control device sends a control event corresponding to the first operation to the smart host. Correspondingly, the smart host receives the control event corresponding to the first operation.

[0126] The control event may include an event type. For example, if the first operation is a single-click operation, the event type of the control event is a single-click event; for another example, if the first operation is a swing operation, the event type of the control event is a swing event; for another example, if the first operation is a rotation operation, the event type of the control event is a rotation event; for another example, if the first operation is a slide operation, the event type of the control event is a slide 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 amount of rotation, etc. For another example, 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, etc. For another example, if the event type of the control event is a sliding event, the event information may include the sliding direction and sliding distance, etc.

[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. Step 803 may be an optional step.

[0129] When step 803 is an optional step, after step 802, step 804 is directly executed, and then step 805 is continued.

[0130] When step 803 is a necessary step, the control device stores a 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. When 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; when 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 preset event type, which is used for event matching to determine whether the control event is used to switch the control mode. The first preset type can be set by the user or by 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, step 804 is not executed, and step 805 is not 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 the scene mode, step 804 is not executed, and step 805 is not 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 the smart mode, step 804 is executed, and then step 805 is executed.

[0133] Step 804: The control device broadcasts a positioning signal. Correspondingly, at least one gateway receives the positioning signal.

[0134] The positioning signal is used to locate the control device, and the positioning signal may carry device information of the control device, such as a device identification.

[0135] The control device may include a wireless communication module, and the control device may broadcast a positioning signal through the wireless communication module. For example, the wireless communication module is a low-power Bluetooth beacon, the positioning signal may be a beacon signal, and the control device may send the beacon signal through the low-power Bluetooth beacon; for another example, the wireless communication module is a Wi-Fi module, the positioning signal may be a Wi-Fi signal, and the control device may send a WiFi signal through the Wi-Fi module.

[0136] There is at least one gateway deployed throughout the house, and any gateway within the coverage area of ​​the positioning signal can receive the positioning signal.

[0137] Step 805: at least one gateway sends positioning information to the smart host. Correspondingly, the smart host receives the positioning information sent by at least one gateway.

[0138] After receiving the positioning signal broadcast by the control device, the gateway can determine the device information carried by the positioning signal, so that the gateway can determine that the sender of the positioning signal is the control device. Since the distance between different gateways and the control device is different, the received signal strength indicator (RSSI) value of the positioning signal received by different gateways is also different. At least one gateway sends the RSSI value of the received positioning signal to the smart host. For example Figure 2As shown, the user holds the control device and enters the master bedroom and shakes the control device. The control device broadcasts a positioning signal. The RSSIs of gateway 1, gateway 2 and gateway 3 when receiving 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. Since the distances between gateway 1, gateway 2 and gateway 3 and the control device are different, the RSSI1, RSSI2 and RSSI3 of gateway 1, gateway 2 and gateway 3 when receiving the positioning signal are different.

[0139] Step 806: The smart host receives a control event corresponding to the first operation.

[0140] After step 806, execute step 807 or 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, the smart host switches the control mode of the control device.

[0142] The smart 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 smart host determines whether the event type of the control event corresponding to the first operation is the same as the first preset type. When 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; when 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 first operation is not used to switch the control mode. Taking the first preset type corresponding to the switching control mode as an example, if the first operation is a double-click operation, the smart host determines that the event type of the control event corresponding to the first operation (i.e., the double-click event) is the same as the first preset type (i.e., the double-click event), then the smart host determines that the control event corresponding to the first operation is used to switch the control mode of the control device, and then the smart host switches the control mode of the control device. If the first operation is not a double-click operation, the smart host determines that the event type of the control event corresponding to the first operation is different from the first preset type (i.e., the double-click event), then the smart host determines that the control event corresponding to the first operation is not used to switch the control mode of the control device.

[0143] In the embodiment of the present application, the control modes supported by the control device may include smart mode and scene mode.

[0144] In the above step 807, the smart host switches the control mode of the control device in the following manner: if the control mode of the control device when receiving the first operation is the scene mode, the smart host switches the control mode of the control device from the scene mode to the smart mode; if the control mode of the control device when receiving the first operation is the smart mode, the smart host switches the control mode of the control device from the smart mode to the scene mode.

[0145] In some embodiments, the control device includes a first button. Taking the preset type corresponding to the switching control mode as a double-click event as an example, the control device receives a double-click operation on the first button, triggering the switching of the control mode. If the control mode when the control device receives the first operation is the scene mode, the user double-clicks the first button on the control device, and after the control device receives the double-click operation, it 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 the smart mode. Afterwards, 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 the smart mode to the scene mode. 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 the scene mode to the smart mode. In this way, it is convenient for the user to switch the control mode of the control device.

[0146] Optionally, the control device may further include an indicator light, which may be used to indicate the control mode of the control device when receiving the first operation, so that the user knows the current control mode of the control device. In some embodiments, different control modes may be indicated by different colors of the indicator lights, for example, if the indicator light is red, the current mode is scene mode, and if the indicator light is green, the current mode is smart mode; in some other embodiments, different control modes may be indicated by different brightness of the indicator light, for example, if the indicator light is high brightness, the current mode is scene mode, and if the indicator light is low brightness, the current mode is smart mode.

[0147] After step 807 is executed, the control process triggered by the first operation ends, that is, the subsequent steps are no longer executed.

[0148] Based on the solutions of 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 receiving the first operation is the smart mode, the smart host determines the first space identifier of the space where the control device is located according to the positioning information.

[0150] The first space identifier is an identifier of the space where the control device is located when receiving the first operation.

[0151] In some embodiments, when the control mode of the control device when receiving the first operation is the smart mode, the first space identifier can be determined in combination with the positioning information received from at least one gateway.

[0152] After receiving the positioning information sent by at least one gateway, the smart host can use the iBeacon positioning algorithm to combine the positioning 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 the gateway devices in the whole house can provide at least three BLE beacons, that is, after the control device broadcasts the positioning signal, there are at least three gateway devices in the whole house that receive the positioning signal, the iBeacon positioning algorithm can be used to determine the location of the control device, such as Fig. 9 As shown, gateway 1, gateway 2 and gateway 3 can all receive positioning signals, and the RSSIs when receiving positioning signals are RSSI1, RSSI2 and RSSI3 respectively. The intelligent 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 circle with L1 as the radius centered on gateway 1, the circle with L2 as the radius centered on gateway 2, and the circle with L3 as the radius centered on gateway 3 intersect is the position of the control device. Then, based on the coordinates of position A and the space information of the entire house, the space where position A is located can be determined, and the space identifier corresponding to the space where position A is located is the first space identifier. For example Fig. 9 As shown in , position A is in the master bedroom, the first space identifier may be the master bedroom, and the first space identifier may also be another identifier that can represent the master bedroom.

[0154] If the gateway device in the home cannot provide at least three BLE beacons due to weak signal or gateway device failure, for example Fig.10As shown, the gateway 3 in the study cannot receive the positioning signal broadcast by the wireless switch, so the gateway 2 in the second bedroom and the gateway 1 in the master bedroom are used to determine the space. According to the intelligent host, the distance L1 between the control device and the gateway 1 can be calculated according to RSSI1, and the distance L2 between the control device and the gateway 2 can be calculated according to RSSI2. There are two points where the circle with L1 as the radius and the circle with L2 as the radius, centered on gateway 1, intersect, namely, position A and position B. The positioning result of the iBeacon positioning algorithm obtains the coordinates of position A and position B, but it cannot be determined whether the wireless switch is at position A or position B. The coordinates of the location of the wireless switch can be determined in combination with the perception information of the AI ​​sensor. The AI ​​sensor can emit millimeter waves, and can determine the number of people in the house and the coordinates of each person's specific location through the return wave. If there is only one person in the house, the coordinates of the person's location can be obtained directly based on the perception information of the AI ​​sensor. The location of this person is the location of the wireless switch. At this time, the location of the wireless switch can be obtained only based on the perception information of the AI ​​sensor, or it can be obtained in combination with the positioning result of the iBeacon positioning algorithm. If there is more than one person in the house, the coordinates of each person in the house can be determined based on the perception information of the AI ​​sensor. However, since it is not known who has the wireless switch, Fig.10 As shown, the AI ​​sensor can detect that there are two people in the whole house, one of whom is at position A and the other is at position C. The coordinates of position A and position C are obtained through the AI ​​sensor. Combining the perception information of the AI ​​sensor and the positioning result of the iBeacon positioning algorithm, which both contain the coordinates of position A, it can be determined that the position of the control device is at position A. Then, based on the coordinates of position A and the space information of the whole house, the space where position A is located can be determined, and the space identifier corresponding to the space where position A is located is the first space identifier.

[0155] In some embodiments, the gateway device can also be used as a receiving end and the control device can be used as a sending end. The gateway device has a built-in antenna array, which can be used as follows: Fig.11 The angle of arrival (AOA) of the low-power Bluetooth beacon shown in the figure locates the position of the control device. After the control device broadcasts the positioning signal, at least one gateway device receives the positioning signal through the built-in antenna array and determines the angle of arrival of the positioning signal to the network device. The gateway device can then send positioning information to the smart host, which can include the angle of arrival. The smart host determines the position of the control device based on the angle of arrival.

[0156] Based on any of the above embodiments, the position A where the control device is located is determined. According to the coordinates of the position A and the whole house space information, it can be determined that the space where the control device is located is the master bedroom.

[0157] Step 809: The intelligent host determines the first target device group according to the first space identifier.

[0158] The smart host can determine the space status information corresponding to the first space identifier according to the first space identifier. In the embodiment of the present application, the space status information corresponding to the first space identifier may include: environmental information in the space identified by the first space identifier and device status information of each smart home device in the space identified by the first space identifier.

[0159] Each space in the house is equipped with one or more sensors to collect environmental information, such as light intensity, temperature, humidity, etc. Various sensors can periodically send environmental information of each space to the smart host. The smart host can also monitor the status of all smart home devices in the house, such as the lighting status, curtain opening status, TV playback status, speaker playback status, air conditioner opening status, etc.

[0160] In a possible implementation, the smart host determines a first target device group from smart home devices included in the space corresponding to the first space identifier based on a control event corresponding to the first operation and space state information corresponding to the first space identifier.

[0161] In implementation mode 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 different functions to obtain at least one control group, and then determine the first target device group from the at least one control group based on the control event and the space status information, so as to achieve group control of at least one smart home device in the space through at least one control group. Among them, 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 follows Figure 2 Taking the master bedroom shown as an example, the master bedroom includes multiple smart home devices, such as smart curtains 1, air conditioners 1, smart lights 1, and smart TVs. The lighting control group includes smart lights 1, the sunshade control group includes smart curtains 1, the volume control group includes smart TVs, and the temperature control group includes air conditioners 1.

[0162] In implementation mode 2, the smart host may also group the space corresponding to the first space identifier including at least one smart home device according to the user-defined preset grouping method to obtain at least one control group, and then determine the first target device group from the at least one control group according to the control event and the space state information, thereby realizing group control of at least one smart home device in the space based on the at least one control group obtained by grouping. The user-defined preset grouping method can be referred to in the above FIG. 7D to FIG. 7G or, see 7I to Figure 7L The relevant description will not be repeated here.

[0163] Optionally, before the smart host performs grouping through the above two implementation modes, it can first screen the smart devices included in the space corresponding to the first space identifier, that is, remove the smart devices that do not support the control event corresponding to the first operation in the space corresponding to the first space identifier, and group the smart devices that support the control event corresponding to the first operation among the smart devices included in the space corresponding to the first space identifier to obtain at least one control group. Then, according to the control event and the space state 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 according to the event information of the control event. Taking the first operation as an example of a rotation operation on the control device, the event type of the rotation operation is a rotation event, and the event information includes a rotation direction and a rotation amount. The smart device that supports the rotation event is a smart device that can support linear changes in parameters. When the user performs a rotation operation on the control device, the control device sends the rotation event and the rotation amount to the smart host after receiving the rotation operation. The smart host screens the smart devices included in the space corresponding to the first space identifier to obtain smart devices that support linear changes in parameters, and groups the smart devices that support linear changes in parameters to obtain at least one control group. Then, according to the control event and the space state information, the first target device group is determined from at least one control group. After the first target device group is determined, a control command can be sent to the first target device group according to the event information of the control event. Among them, smart devices that support linear parameter changes include 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 and closing degrees.

[0164] After grouping based on the above-mentioned implementation mode one or implementation mode two, the intelligent 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 is lighting control, sunshade control, volume control, and temperature control. The intelligent host can determine the first target device group from the lighting control group, sunshade 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 a possible implementation mode, the control device determines whether the space status information corresponding to the first space identifier satisfies the preset condition corresponding to the control group for each control group in the group control order in turn. If so, the control group is determined as the first target device group, and no longer continues to determine whether the space status information corresponding to the first space identifier satisfies the preset condition corresponding to the next control group; if not, continues to determine whether the space status information corresponding to the first space identifier satisfies the preset condition corresponding to the next control group. For example, first determine whether the space status information corresponding to the first control identifier satisfies the preset conditions corresponding to the lighting control group. If the judgment result is satisfied, the lighting control group is determined to be the first target device group, and no further determination is made as to whether the space status information corresponding to the first control identifier satisfies the preset conditions corresponding to the shading control group. If the judgment result is not satisfied, continue to determine whether the space status information corresponding to the first control identifier satisfies the preset conditions corresponding to the shading control group, and then determine whether to continue to determine the next control group based on the judgment result.

[0165] Exemplarily, an embodiment of the present application provides a method for determining a first target device group, such as Fig.12 As shown, the method for determining the first target device group includes the following steps:

[0166] Step 1201, the smart host determines whether the current time is daytime; if so, execute step 1202, if not, execute step 1212.

[0167] In step 1202 , the intelligent host determines whether the lighting in the master bedroom is less than the standard lighting in the master bedroom; if so, execute step 1203 , if not, execute 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 so, execute step 1206, if not, execute 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 so, execute step 1205, if not, execute step 1208.

[0170] Step 1205, the smart host determines whether the lighting equipment in the master bedroom is turned on; if so, execute step 1207, if not, execute step 1206.

[0171] Step 1206, the intelligent host selects the sunshade control by default, and uses the sunshade control group corresponding to the master bedroom as the first target device group. Then, the process ends.

[0172] Here, the sunshade control group corresponding to the master bedroom is composed of smart devices for sunshade control in the master bedroom.

[0173] Step 1207, the intelligent host selects the lighting control by default, and uses 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 corresponding to the master bedroom is composed 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 so, execute step 1209, if not, execute step 1210.

[0176] Step 1209, the smart host selects the volume control by default, and uses 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 is composed of smart devices in the master bedroom that can control the volume.

[0178] Step 1210, the smart host determines whether the temperature is less than the minimum temperature threshold or greater than the maximum temperature threshold; if so, execute step 1211, if not, end.

[0179] Step 1211, the intelligent host selects temperature control by default, and uses 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 is composed of smart devices for temperature control in the master bedroom.

[0181] Step 1212, the intelligent host determines whether the lighting of the master bedroom is less than the minimum lighting threshold of the master bedroom or greater than the maximum lighting threshold of the master bedroom; if so, execute step 1213, if not, execute step 1214.

[0182] Step 1213, the intelligent host selects the lighting control by default, and uses the lighting control group corresponding to the master bedroom as the first target device group.

[0183] Step 1214, the smart host determines whether the light in the master bedroom is greater than the minimum light threshold of the master bedroom or less than the maximum light threshold of the master bedroom, and whether the curtains are open; if so, execute step 1215, if not, execute step 1216.

[0184] Step 1215, the intelligent host selects the sunshade control by default, and uses the sunshade 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 so, execute step 1217, if not, execute step 1218.

[0186] Step 1217, the smart host selects the volume control by default, and uses the volume control group corresponding to the master bedroom as the first target device group. Then, the process ends.

[0187] Step 1218, the smart host determines whether the temperature is less than the minimum temperature threshold or greater than the maximum temperature threshold; if so, execute step 1219, if not, execute step 1220.

[0188] Step 1219, the intelligent host selects temperature control by default, and uses the temperature control group corresponding to the master bedroom as the first target device group. Then, the process ends.

[0189] Step 1220: the intelligent host selects the sunshade control by default, and uses the sunshade control group corresponding to the master bedroom as the first target device group.

[0190] Above Fig.12 The example shown is explained by taking the determination of the first target device group in the master bedroom as an example. The determination method can also be applied to determine the first target device group in other spaces in the whole house, such as the second bedroom or the study. For different spaces, different upper thresholds (maximum thresholds) and lower thresholds (minimum thresholds) of parameters such as illumination, temperature, and volume can be configured in the whole house smart system and stored in the smart host. Taking the master bedroom as an example, the lower threshold can be set to 80 lux, and the upper preset can be set to 300 lux.

[0191] Based on the above examples, after determining 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, the smart home devices in the lighting control group, such as smart lights and light strips, are controlled to turn on, turn off, or adjust the brightness. For another example, if the smart host determines that the first target device group is a sunshade control group, the smart home devices in the sunshade control group, such as smart curtains, are controlled to unfold, close, or adjust the opening and closing of smart curtains. For another example, if the smart host determines that the first target device group is a volume control group, the smart home devices in the volume control group, such as smart TVs, speakers, computers, etc., are controlled to turn on, turn off, or adjust the volume. For another example, if the smart host determines that the first target device group is a temperature control group, the smart home devices in the temperature control group, such as air conditioners and fans, are controlled to turn on, turn off, or adjust the temperature.

[0192] Step 810: The smart host sends a first instruction to a first target device group.

[0193] The first instruction is used to instruct the first target device group to execute the first function. The first target device group receives the first instruction and executes the first function.

[0194] For example, it is daytime and the user clicks the button on the wireless switch in the master bedroom. The current space status information of the master bedroom includes that the light in the master bedroom is greater than the maximum light threshold of the master bedroom and the lighting device is not turned on. The smart host uses the above Fig.12 The determination method shown selects sunshade control, that is, the first target device group includes smart curtains 1, and the smart host sends an "open curtain" instruction to the smart curtains 1, so that the user can control the smart curtains 1 to open by clicking the button on the wireless switch, thereby achieving the effect of reducing the light intensity.

[0195] After step 810 is executed, the control process triggered by the first operation ends, that is, the subsequent steps are no longer executed.

[0196] Based on the above-mentioned schemes of steps 801 to 806 and steps 808 to 810, it is possible to use a single control device to control the smart devices in the space in groups, 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 for switching the control mode of the control device, but for switching the group control, the smart host switches to the second target device group according to the group control sequence.

[0198] The smart host stores a correspondence between a second preset type and switching group control. After receiving a control event corresponding to a first operation, the smart host determines whether the event type of the control event corresponding to the first operation is the same as the second preset type. When 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; when 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 may be a preset event type for event matching to determine whether the control event is used to switch group control, and the second preset type may be set by the user or by the system default. For example, the second preset type is a shake event.

[0200] Taking the case where the control group controlled by the smart host before step 811 is the first target device group in the group control sequence as an example, the second target device group is the previous control group or the next control group located at the first target device group in the group control sequence.

[0201] In one embodiment, when the first target device group determined by the smart host does not meet the user's expectations, or the user wishes to control the previous control group or the next control group in the group control sequence after controlling the first target device group through operation, the user can perform a preset operation on the control device for switching the group control, so that the control device sends a control event corresponding to the preset operation to the smart host. If the smart host determines that the control event corresponding to the preset operation is used to switch the group control, the smart host switches to controlling the previous control group or the next control group of the first target device group according to the group control sequence.

[0202] For example, if the preset operation for switching group control is a shaking operation, the user can switch the group by shaking, that is, holding the control device and shaking it to the left or right once. When shaking to the left, the control group is switched to the previous control group of the first target device group in the control sequence of the control group, and when shaking to the right, the control group is switched to the next control group of the first target device group in the control sequence of the control group.

[0203] Taking the default group control order of lighting control group, sunshade control group, volume control group, and temperature control group, and the first target device group determined by the current smart host as the sunshade control group as an example, if the user swings the handheld control device to the left once, it switches to controlling the lighting control group, and swings it to the left again to switch to controlling the temperature control group.

[0204] Taking the default group control order of lighting control group, sunshade control group, volume control group, and temperature control group, and the first target device group selected by the current smart host is the sunshade control group as an example, if the user swings the handheld control device to the right, it switches to the volume control group, and swings it to the right again to switch to the temperature control group. Taking the first target device group selected by the current smart host as the sunshade control group as an example, if the user swings the handheld control device to the right twice in a row, it directly switches from the sunshade control group to the temperature control group.

[0205] In some embodiments, the above-mentioned group control order is lighting control group, sunshade control group, volume control group, and temperature control group, in a circular traversal, that is, when the user switches the selected control group from left to right according to the group control order, he switches to the last group and then returns to the head to continue iterating, such as: lighting control group-sunshade control group-volume control group-temperature control group-lighting control group-sunshade control group. In this way, a fixed group control order is used to facilitate users to form operation memory and improve controllability.

[0206] Step 812: The smart host sends a second instruction to the second target device group, where the second instruction is used to instruct the second target device group to execute a second function. Correspondingly, the second target device group receives the second instruction and executes the second function.

[0207] In a possible implementation, as described above Figure 8 As shown, after step 806, if the control event corresponding to the first operation is not for switching the control mode of the control device, but for switching the group control, the smart host switches to the second target device group according to the group control sequence, and then sends a second instruction to the second target device group.

[0208] In another possible implementation, Figure 8 After step 806 in the above, if the control event corresponding to the first operation is not used to switch the control mode of the control device, but is used to switch the 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, the second instruction is sent to the second target device group, and the second instruction is used to instruct the second target device group to perform the second function. That is, after step 806, steps 811 and 812 are not executed.

[0209] Based on the solutions of steps 801 to 806 and steps 811 to 812, by operating the control device, the target device group controlled by the control device can be switched.

[0210] See also Fig.13 , exemplarily shows a flow chart of a control method provided in an embodiment of the present application, the method may include the following steps:

[0211] Step 1301 to step 1306 refer to the above-mentioned step 801 to step 806, which 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, the smart host determines a third target device group corresponding to the current scene.

[0213] In the scene mode, the user defines a preset scene and a smart device group associated with the preset scene. When the user controls the device in the scene mode, the user controls the smart devices in the smart device group associated with the current scene.

[0214] Taking the example of a user configuring a movie watching scene and a sleeping scene for a control device, if the scene selected by the user last time by operating the control device was a movie watching scene, the current scene will still be the movie watching scene; if the scene selected by the user last time by operating the control device was a sleeping scene, the current scene will still be the sleeping scene.

[0215] First, the associated devices defined in the current scene are grouped according to preset functions. For example, if the preset functions include lighting, sunshade, volume, and temperature, then the associated devices defined in the current scene can be divided into a lighting control group, a sunshade control group, a volume control group, and a temperature control group, and then the third target device group is determined from the grouping. Optionally, if there is no volume-related device in the associated devices defined in the current scene, the volume control group is removed from the above grouping, that is, the grouping after the devices are screened includes the lighting control group, the sunshade control group, and the temperature control group, and then the third target device group is determined from the lighting control group, the sunshade control group, and the temperature control group. If there is no temperature-related device in the current scene, the temperature control group is removed from the above grouping, that is, the grouping after the devices are screened includes the lighting control group, the sunshade control group, and the volume control group, and then the third target device group is determined from the lighting control group, the sunshade control group, and the volume control group.

[0216] For example, the sleeping scene is silent by default, so the volume control group is not involved. The volume control group can be removed from the group control sequence. Then the group control sequence corresponding to the sleeping scene is: lighting control group, sunshade control group, temperature control group. When the user operates the control device, the specific implementation of determining the third target device group can refer to Fig.12 It should be understood that the specific implementation of switching the target device group can also refer to the relevant content of switching the target device group in the smart mode, which will not be repeated here.

[0217] In some embodiments, when filtering the associated devices of the current scene definition, it is possible to allow the fine configuration of the controllable devices in the scene definition. For example, in the movie-watching scene in the living room, all lighting and sunshades can be turned off by default, and then the atmosphere lights can be turned on slightly, and the temperature can be turned on to a constant temperature state. In the scene definition of the movie-watching scene, a mark can be added to achieve that when the lighting device control is allowed, only the atmosphere lights such as light strips are controlled, and the main lights or downlights are not turned on. In this way, during the movie-watching scene, the user operates the control device once, and the smart host determines that the third target device group is the lighting control group. If all lights in the current scene are turned off, then only the brightness of the light strip will be adjusted at this time. If the main light 1 is turned on in the current scene, then the main light 1 will be turned off and the brightness of the light strip will be adjusted. After that, the user can operate the control device again, and the smart host will switch to the temperature control group and send instructions to the temperature control group to adjust the temperature.

[0218] Step 1308: The smart host sends a third instruction to the third target device group, where the third instruction is used to instruct the third target device group to execute a third function.

[0219] Based on the above Fig.13 The method shown can realize group control of smart devices associated with the current scene using a single control device, thereby improving the user experience of using the control device to control smart home devices.

[0220] Above Figure 8 Take the example of controlling smart home devices in a single space by a control device, see Fig.14 Taking the example of a control device controlling smart home devices in different spaces or smart home devices in different scenes, a flow chart of a control method provided in an embodiment of the present application is exemplarily shown, and the method may include the following steps:

[0221] Step 1401: the smart host receives a control event from a 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, step 1403 is executed; if the event type is the second preset type, step 1414 is executed;

[0223] Exemplarily, the third preset type may be a rotation event, and the second preset type may be a swing event.

[0224] Step 1403, the intelligent host determines whether the control mode is the intelligent mode; if so, step 1404 is executed; if not, the control mode is the scene mode, step 1409 is executed;

[0225] Step 1404, the smart host determines the space where the control device is currently located.

[0226] The specific implementation of step 1404 can refer to the relevant description of step 808, which will not be repeated here.

[0227] In step 1405, the smart host determines whether the space where the control device is currently located has changed compared to the space where the control device was located when the control event corresponding to the third preset type was last triggered; if so, execute step 1406; if not, execute step 1407.

[0228] If the judgment result of step 1405 is that the space has not changed, the smart host directly takes 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 aforementioned step 906 to determine the control group corresponding to this control event. For example, the control device last controlled the volume control group in the master bedroom. If the control device is still currently triggering a control event in the master bedroom, since the volume was controlled in the master bedroom last time, the user's control intention for the control device in the master bedroom this time is most likely to be to control the volume, so 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 second bedroom, that is, the space where the control device is located has changed, it is necessary to re-follow the steps below. Fig.10 The determination method shown determines the first target device group corresponding to the second bedroom.

[0229] Step 1406: The intelligent host determines the first target device group corresponding to the space where the control device is currently located according to the group control sequence. Then, step 1408 is executed.

[0230] Here, the specific implementation process of step 1406 can be found in Fig.12 The determination process will not be described in detail here.

[0231] In step 1407, the smart host uses the first target device group corresponding to the space where the control event corresponding to the third preset type was last triggered as the first target device group corresponding to the space where the control device is currently located. Thereafter, step 1408 is executed.

[0232] Step 1408: The intelligent host sends a command to the determined first target device group according to the event information corresponding to the control event. Then, the process ends.

[0233] Exemplarily, the event type of the control event in step 1401 is, for example, a rotation event, and the event information in step 1408 here may 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] When the associated preset scenes in the scene mode include one preset scene, the preset scene is used as the current preset scene.

[0236] In the case where the preset scene associated in the scene mode includes 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, and this application does not limit this. Figure 7C As shown, the preset scenes associated in the scene mode include a movie watching scene and a live broadcast scene. The movie watching scene can be used as the current preset scene, and the live broadcast scene can also be used as the current preset scene.

[0237] Step 1410, the smart host determines whether a scene switch occurs between the current scene and the scene when the control event corresponding to the third preset type was last triggered. If yes, step 1411 is executed; if no, step 1412 is executed;

[0238] Step 1411: The control device determines a 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] Here, the specific implementation process of step 1411 can refer to the relevant description of the above step 1307, which will not be repeated here.

[0240] In step 1412, the smart host uses the third target device group corresponding to the current scene when the control event corresponding to the third preset type was triggered last time 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 a command to the determined third target device group according to the event information corresponding to the control event.

[0242] Exemplarily, the event type of the control event in step 1401 is, for example, a rotation event, and the event information in step 1413 here may 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 event. Then, the process ends.

[0244] Exemplarily, the event type of the control event in step 1401 is, for example, a swing event, and the event information in step 1414 here may be the swing direction corresponding to the swing event.

[0245] In a possible implementation, as described above Fig.14 As shown, the intelligent host determines the first target device group based on the before and after comparison of the space where the control device is located.

[0246] In another possible implementation, Fig.14 After step 1404, the first target device group is determined directly according to the space where the control device is currently located, and then step 1408 is executed, that is, step 1405, step 1406 and step 1407 are not executed.

[0247] Through the above embodiments, the user can control a group of devices by rotating or swinging the control device, thereby satisfying the user's control expectations.

[0248] In the embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of the device as the execution subject. In order to implement the functions in the methods provided by the embodiments of the present application, the device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0249] The present application also provides a control device, which is used to implement the control methods in the above figures. Fig.15 As shown, the control device 1500 may be the control device or intelligent host in the aforementioned method embodiment, and 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 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.15 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0251] The memory 1503 is used to store program instructions and data. Specifically, the program instructions may include program codes, which include computer operation instructions. The memory 1503 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. The processor 1502 executes the program instructions and data stored in the memory 1503 to implement the above functions, thereby implementing the control method provided in the above embodiment.

[0252] In the embodiment of the present application, the processor 1502 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiment of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiment of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor. The software module may be located in the memory 1503, and the processor 1502 reads the program instructions in the memory 1503, and completes the steps of the above method in conjunction with its hardware.

[0253] In the embodiment of the present application, the memory 1503 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as RAM. The memory may also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing instructions and / or data.

[0254] The present application also provides a readable storage medium, which stores a program, and when the program is run on a device, the device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment. The device may be the intelligent host or control device in the above-mentioned method embodiment.

[0255] The embodiment of the present application also provides a program product. When the computer program product is run on a device, the device executes the above-mentioned related steps to implement the method in the above-mentioned embodiment.

[0256] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store instructions, and when the device is running, the processor may execute the instructions stored in the memory so that the chip executes the methods in the above-mentioned method embodiments.

[0257] Among them, the devices, storage media, program products or chips provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0258] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A control method, applied to a smart host, characterized in that: The method comprises: receiving a control event sent by the control device in response to the first operation; receiving positioning 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 of the control device when receiving the first operation is the intelligent mode, determining a first space identifier of the space where the control device is located according to the positioning information; Determining a first target device group according to the first space identifier; A first instruction is sent to the first target device group, where the first instruction is used to instruct the first target device group to execute a first function.

2. The method according to claim 1, characterized in that The determining, according to the positioning information, a first space identifier of a space where the control device is located includes: Determining the position coordinates of the control device according to the positioning information; A first space identifier of a space where the control device is located is determined according to the position coordinates of the control device and the whole-house space information.

3. The method according to claim 1, characterized in that The method further comprises: Receive perception information from AI sensors; The determining, according to the positioning information, a first space identifier of a space where the control device is located includes: Determine the position coordinates of the control device according to the positioning information and the perception information; A first space identifier of a space where the control device is located is determined according to the position coordinates of the control device and the whole-house space information.

4. The method according to any one of claims 1 to 3, characterized in that: The determining a first target device group according to the first space identifier includes: Determine, according to the first space identifier, space state information corresponding to the first space identifier; According to the control event and the space state information, the first target device group is determined from smart home devices included in the space corresponding to the first space identifier.

5. The method according to claim 4, characterized in that The determining, according to the control event and the space state information, the first target device group from smart home devices included in the space corresponding to the first space identifier includes: Grouping the smart home devices included in the space corresponding to the first space identifier to obtain at least one control group; The first target device group is determined from the at least one control group according to the control event and the space status information.

6. The method according to claim 5, characterized in that The grouping of the smart home devices included in the space corresponding to the first space identifier includes: Automatically grouping the smart home devices included in the space corresponding to the first space identifier according to their functions; or, The smart home devices included in the space corresponding to the first space identifier are grouped according to a user-defined grouping method.

7. The method according to claim 5 or 6, characterized in that The at least one control group includes one or more of the following: a lighting control group, a sunshade control group, a volume control group, and a temperature control group.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: If the event type of the control event is the same as the first preset type, the control mode of the control device is switched.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: 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, where the second instruction is used to instruct the second target device group to execute a second function.

10. The method according to any one of claims 1 to 4, characterized in that: The determining a first target device group according to the first space identifier includes: If the first space identifier is the same as the second space identifier, the target device group corresponding to the second space identifier is used as the first target device group; the second space identifier is the space identifier of the space where the control device is located when the smart host last received a control event of the same event type as the control event.

11. A control method, applied to a smart host, characterized in that: The method comprises: receiving 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 of the control device when receiving the first operation is the scene mode, determining a third target device group corresponding to the current scene; A third instruction is sent to the third target device group, where the third instruction is used to instruct the third target device group to execute a third function.

12. A smart host, characterized in that: Including processor and memory; The memory is used to store one or more programs, and when the program is executed by the processor, the smart host executes the method according to any one of claims 1 to 11.

13. A readable storage medium, characterized in that: The readable storage medium includes a program, and when the program is executed on an intelligent host, the intelligent host executes the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Smart home system control method and device, processor and storage medium

    CN108931924A

  • Smart home equipment selection method and terminal

    CN115016298A

  • Magic cube controller and equipment control method

    CN115309061A

  • Smart home scene switching method and system

    US20160277203A1

  • Device displaying method, apparatus, and storage medium

    US20170171706A1