Equipment control method, device and system, electronic equipment, readable storage medium and program product

By determining the target area and main control device in the intelligent device and generating environmental adjustment instructions to control the controlled equipment, the problem of low intelligence in multi-region intelligent device control is solved, and precise environmental regulation and energy conservation are achieved.

CN119045353APending Publication Date: 2024-11-29SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411027989.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The intelligent control of intelligent equipment in multiple regions is low, resulting in cumbersome control process. Especially in the case of central control equipment, it is difficult to effectively adjust the environment of multiple regions.

Method used

By determining the target area from the spatial area associated with the controlled device, the environmental data is obtained using the first sub-device, and the main control device is determined in the target area, and adjustment instructions are generated based on the environmental data to control the controlled device to adjust the environment, simplifying multiple regions Control process.

Benefits of technology

The intelligent control degree of multi-regional intelligent equipment has been improved, the control process has been simplified, energy waste has been avoided, and precise adjustment of the target area environment has been achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045353A_ABST
    Figure CN119045353A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment control method, device and system, electronic equipment, a readable storage medium and a program product. The method comprises the following steps: in at least one space area associated with controlled equipment, determining a target area in which at least one target object exists at present; a first sub-device is arranged in each space area, and the first sub-device is used for acquiring current environment data in the corresponding space area; determining main control equipment in the first sub-equipment corresponding to each target area; determining environment decision data according to the current environment data detected by the main control equipment; and generating an environment adjustment instruction corresponding to the environment decision data, and controlling the controlled device to execute a corresponding action based on the environment adjustment instruction so as to adjust the environment in each target area. By adopting the method, the control intelligence degree of the intelligent equipment in multiple areas can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a device control method, apparatus, system, electronic device, computer-readable storage medium and computer program product. Background Art

[0002] Due to the development of Internet of Things technology, smart devices are often used in scenarios such as smart homes and smart spaces.

[0003] In the related art, the control of smart devices in a single area is relatively simple. It is only necessary to control the smart devices so that the environment in the area reaches the target state expected by the user. However, the control of smart devices in multiple areas is more complicated, resulting in a low degree of intelligence in the control of smart devices in multiple areas. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, system, electronic device, computer-readable storage medium and computer program product that can improve the control intelligence level of smart devices in multiple areas in order to address the technical problem of low control intelligence level of smart devices in multiple areas.

[0005] In a first aspect, the present application provides a device control method, comprising:

[0006] Determine a target area where at least one target object currently exists from at least one spatial area associated with the controlled device; each of the spatial areas is provided with a first sub-device, and the first sub-device is used to obtain current environmental data in the corresponding spatial area;

[0007] Determining a master control device in the first sub-devices corresponding to the respective target areas;

[0008] Determining environmental decision data according to the current environmental data detected by the main control device;

[0009] Generate an environmental adjustment instruction corresponding to the environmental decision data, and control the controlled device to perform a corresponding action based on the environmental adjustment instruction to adjust the environment in each of the target areas.

[0010] In a second aspect, the present application also provides a device control apparatus, comprising:

[0011] A target area determination module is used to determine a target area where at least one target object currently exists from at least one spatial area associated with the controlled device; each of the spatial areas is provided with a first sub-device, and the first sub-device is used to obtain current environmental data in the corresponding spatial area;

[0012] A master control device determination module, configured to determine a master control device in the first sub-devices corresponding to the respective target areas;

[0013] A decision data determination module, used to determine environmental decision data according to the current environmental data detected by the main control device;

[0014] The controlled device control module is used to generate an environmental adjustment instruction corresponding to the environmental decision data, and control the controlled device to perform a corresponding action based on the environmental adjustment instruction to adjust the environment in each of the target areas.

[0015] In an exemplary embodiment, the decision data determination module is further configured to determine the current environment data detected by the main control device as the environment decision data if the number of the main control device is one;

[0016] If there are multiple master control devices, the average value of the current environment data detected by each of the master control devices is calculated, and the average value is determined as the environment decision data.

[0017] In an exemplary embodiment, the master control device determination module is further configured to determine the master control device from the first sub-devices corresponding to each target area according to the priority of each target area if there are multiple target areas.

[0018] In an exemplary embodiment, the master control device determination module is further used to determine the priority of each of the target areas based on the currently configured device control strategy; the device control strategy is used to characterize the control requirements of the target object for the controlled device.

[0019] In an exemplary embodiment, the master control device determination module is further used to determine, when the device control strategy is a first strategy, the target time interval into which the current moment falls according to a plurality of time intervals under the first strategy; the first strategy is a strategy for sorting each of the spatial regions under each of the time intervals according to historical information of the target object existing in each of the spatial regions under each of the time intervals; the historical information includes at least one of the duration and the number of the target object existing in the spatial region;

[0020] Determine a ranking result of each of the target areas in the target time interval;

[0021] According to the sorting result, the priority of each target area is obtained.

[0022] In an exemplary embodiment, the master control device determination module is further used to determine the number of the target objects currently existing in each of the target areas, and determine the weight of each of the target areas under the second strategy when the device control strategy is the second strategy; the second strategy is a strategy for determining the weight of each of the spatial areas based on historical information of the target objects existing in each of the spatial areas; the historical information includes at least one of the duration and the number of the target objects existing in the spatial area;

[0023] The priority of each target area is obtained according to the weight of each target area and the number of the target objects currently existing in each target area.

[0024] In an exemplary embodiment, the master control device determination module is also used to determine a marked target area in each of the target areas based on the third strategy when the device control strategy is the third strategy; the third strategy is a strategy for marking each of the spatial areas based on historical information of the target object existing in each of the spatial areas; the historical information includes at least one of the duration and quantity of the target object existing in the spatial area; the priority of the marked target area is determined as the first priority, and the priority of the unmarked target area in each of the target areas is determined as the second priority; the second priority is lower than the first priority.

[0025] In an exemplary embodiment, the first sub-device in each of the spatial regions is further used to obtain desired environmental data;

[0026] The controlled device control module is also used to generate the environmental adjustment instruction with reducing the environmental difference between the environmental decision data and the target environmental data as the adjustment target; the target environmental data is the latest expected environmental data obtained by each of the first sub-devices.

[0027] In an exemplary embodiment, a second sub-device is provided in each of the spatial regions; the second sub-device is used to determine whether the target object currently exists in the corresponding spatial region.

[0028] In an exemplary embodiment, the target region determination module is further configured to determine a new target region from the spatial regions when the number of the target objects in any one of the spatial regions changes;

[0029] The master control device determination module is further used to return to the step of determining the master control device in the first sub-devices corresponding to each of the target areas, so as to adjust the environment in the new target area.

[0030] In a third aspect, the present application further provides a device control system, the system comprising an electronic device, a controlled device and a first sub-device;

[0031] The first sub-device is used to obtain current environment data in the corresponding spatial area;

[0032] The electronic device is used to determine a target area where at least one target object currently exists from at least one of the spatial areas associated with the controlled device; the first sub-device is arranged in each of the spatial areas; a master device is determined in the first sub-devices corresponding to each of the target areas; environmental decision data is determined according to the current environmental data detected by the master device; an environmental adjustment instruction corresponding to the environmental decision data is generated, and the controlled device is controlled to perform a corresponding action based on the environmental adjustment instruction;

[0033] The controlled device is used to execute corresponding actions in response to the environment adjustment instruction to adjust the environment in each of the target areas.

[0034] In a fourth aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements each step in the above-mentioned device control method when executing the computer program.

[0035] In a fifth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, each step in the above-mentioned device control method is implemented.

[0036] In a sixth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the above-mentioned device control method when executed by a processor.

[0037] The above-mentioned device control method, apparatus, system, electronic device, readable storage medium and program product, first, from at least one spatial area associated with the controlled device, determine the target area where at least one target object currently exists; each spatial area is provided with a first sub-device, and the first sub-device is used to obtain the current environmental data in the corresponding spatial area; then, in the first sub-device corresponding to each target area, determine the main control device; then, according to the current environmental data detected by the main control device, determine the environmental decision data; finally, generate the environmental adjustment instructions corresponding to the environmental decision data, and control the controlled device to perform the corresponding action based on the environmental adjustment instructions to adjust the environment in each target area. Based on the present application, it is possible to automatically determine the main control device used for decision-making device control in the target area where the target object currently exists, and it is possible to obtain the environmental decision data used for decision-making device control based on the current environmental data of the corresponding target area detected by the main control device, and then generate the environmental adjustment instructions corresponding to the environmental decision data, so that the controlled device can adjust the environment of each target area where the target object currently exists. Through the determination of the above-mentioned main control device and environmental decision data, the control intelligence of intelligent devices in multiple areas can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0039] FIG1 is an application environment diagram of a device control method in one embodiment;

[0040] FIG2 is a schematic diagram of a flow chart of a device control method in one embodiment;

[0041] FIG3 is a flowchart of steps for determining the priority of each target area based on the currently configured device control strategy in one embodiment;

[0042] FIG4 is a flowchart of steps for determining the priority of each target area based on the currently configured device control strategy in another embodiment;

[0043] FIG5 is a flowchart of steps for determining the priority of each target area based on the currently configured device control strategy in another embodiment;

[0044] FIG6 is a schematic diagram of an application scenario of a device control method in an embodiment;

[0045] FIG7 is a schematic diagram of an application scenario of a device control method according to another embodiment;

[0046] FIG8 is a schematic diagram of a binding relationship between a thermostat and a temperature control partner in one embodiment;

[0047] FIG9 is a schematic diagram of a binding relationship between a thermostat and a temperature control partner in another embodiment;

[0048] FIG10 is a block diagram of a device control device in one embodiment;

[0049] FIG11 is a schematic diagram of a temperature control companion in one embodiment;

[0050] FIG. 12 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0053] It is understood that terms such as "first" and "second" in this application are only used to distinguish similar objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. The "connection" appearing in the embodiments of this application refers to various connection methods such as direct connection or indirect connection to achieve communication between devices, and the embodiments of this application do not make any limitation on this.

[0054] It will be understood that “at least one” means one or more, and “plurality” means two or more.

[0055] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0056] At present, for multiple zones, if it is necessary to adjust the environment of each zone through smart devices, it is necessary to control the smart devices based on the adjustment requirements of each zone; however, the adjustment requirements of each zone are different, and users are often required to select the zone for decision-making device control in each zone, and control the smart devices to meet the adjustment requirements of the zone as the control target, which makes the control process of smart devices in multiple zones more cumbersome, especially when the smart device is a central control device, which makes the control intelligence of smart devices in multiple zones low.

[0057] For example, if the smart device is a constant air volume system air conditioner, the air volume blown out by the constant air volume air conditioner is constant, and the indoor temperature is maintained at the target temperature set by the user by changing the air supply temperature. However, when the temperature of multiple areas needs to be adjusted, the thermostat of the constant air volume air conditioner is difficult to decide which area's temperature data to use as the decision basis, so it is only applicable to temperature adjustment in a single area.

[0058] For another example, taking the variable air volume air conditioner as an example, the variable air volume air conditioner adjusts the air supply volume through signal deviation so that the indoor temperature reaches the target temperature set by the user. However, in different configurations of variable air volume air conditioners, if the static pressure setting value is too low, the air volume is insufficient and the comfort level cannot be guaranteed. If the static pressure setting value is too high, the noise is loud, it is not energy-saving and the operation is unstable. At the same time, this control is extremely complex and the workload of on-site debugging is large. In addition, there are differences in indoor temperatures in multiple areas. Only by controlling the air valve, it is not possible to flexibly make the temperature of the area that the user is most concerned about reach the target temperature. It is necessary to adjust the set temperature of the main thermostat, which is inconvenient to operate.

[0059] In response to the above problems, the present application proposes that, by determining the target area where at least one target object currently exists from at least one spatial area associated with the controlled device; a first sub-device is provided in each spatial area, and the first sub-device is used to obtain the current environmental data in the corresponding spatial area; then, the main control device is determined in the first sub-device corresponding to each target area; then, the environmental decision data is determined according to the current environmental data detected by the main control device; finally, the environmental adjustment instructions corresponding to the environmental decision data are generated, and the controlled device is controlled to perform corresponding actions based on the environmental adjustment instructions to adjust the environment in each target area. Among them, the determination of the main control device and the environmental decision data in the present application helps to simplify the control process of intelligent devices in multiple areas and improve the control intelligence of intelligent devices in multiple areas.

[0060] The device control method provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Figure 1 provides a device control system, which includes a terminal device 102 and a smart device 104 that is communicatively connected to the terminal device 102. There can be at least one smart device 104.

[0061] The smart device 104 may include a variety of smart home appliances, sensor devices, and detection devices set in the indoor space, such as smart TVs, smart refrigerators, smart air conditioners, smart control panels, smart thermostat devices, temperature and humidity sensors, pressure sensors, smoke sensors, human sensors, sockets, electric lights, infrared transmitters, millimeter wave radars, etc. The terminal device 102 may include smart interactive terminals such as smart phones, large screens, TVs, small wall control screens, personal computers (PCs), tablet computers, personal digital assistants (PDAs), etc., which are not limited here. Optionally, the terminal device 102 may provide an intuitive visual device control interface to facilitate users to view the controllable smart devices in the interface. For example, the user quickly and accurately selects a smart device 104 to be controlled in the interface, and the terminal device 102 controls the smart device 104 through a communication connection with the smart device 104 based on the user's above selection and specific control operations.

[0062] In the embodiment of the present application, the device control system may further include a gateway 106 that is communicatively connected to the terminal device 102 and the smart device 104. The number of gateways 106 may be at least one. The gateway 106 may be an intelligent gateway for device control, which may realize functions such as system information collection, information input, information output, centralized control, remote control, and linkage control. The gateway 106 may be responsible for specific security alarms, home appliance control, electricity consumption information collection, etc. The gateway 106 may also exchange information with products such as smart interactive terminals wirelessly. The gateway 106 also has wireless routing functions, excellent wireless performance, network security, and coverage area.

[0063] In the embodiment of the present application, the smart device 104 connected to the gateway 106 can exchange information and instructions with the gateway 106. The gateway 106 and the smart device 104 can be connected through communication methods such as Bluetooth, WIFI (Wireless-Fidelity), ZigBee (ZigBee technology), etc. Of course, the connection method between the gateway 106 and the smart device 104 may not be specifically limited in the embodiment of the present application.

[0064] Optionally, in the embodiment of the present application, the device control system may further include a server 110 that is communicatively connected to the gateway 106. The server 110 may be a local server, a cloud server, or other server. The server 110 may be implemented as an independent server or a server cluster consisting of multiple servers. The specific server type may not be limited in the embodiment of the present application. The server 110 connected to the gateway 106 may exchange information with the gateway 106 wirelessly. Gateways 106 located in different indoor spaces may be communicatively connected to the same server 110 through the network to exchange information between the server 110 and the gateway 106.

[0065] The terminal device 102 can exchange information with the server 110 through wireless methods such as 2G / 3G / 4G / 5G / WiFi. Of course, the connection method between the terminal device 102 and the server 110 may not be limited in the embodiment of the present application. In some embodiments, the terminal device 102 can also be used to interact with users, so that users can wirelessly communicate with the gateway 106 based on the router 108 through the terminal device 102. In addition, the user can add an account information to the gateway 106 and the terminal device 102 at the same time, and realize the information synchronization of the gateway 106 and the terminal device 102 through the account information.

[0066] In some embodiments, the user can set different trigger scenarios or automation linkages through the application (Application, App) of the terminal device 102. As a way, the terminal device 102 can upload the scene configuration information or automation scheme to the server 110, so that when the triggering condition of the triggering scene or automation is reached, the server 110 can find the device corresponding to the execution action in the scene configuration information or automation scheme according to the stored scene configuration information or automation scheme, so as to notify the device to perform the execution action to meet the execution result of the triggering scene or automation. As another way, the server 110 can also send the scene configuration information or automation scheme to the gateway 106, and the gateway 106 can find the device corresponding to the execution action in the scene configuration information or automation scheme according to the stored scene configuration information or automation scheme. At the same time, the gateway 106 can feedback the execution status of the device to the server 110.

[0067] Optionally, the LAN path shown in FIG1 indicates that the terminal device 102 is in the same LAN as the router 108 and the gateway 106, and the WAN path indicates that the terminal device 102 is not in the same LAN as the router 108 and the gateway 106. When the terminal device 102 is in the same LAN as the router 108 and the gateway 106, the terminal device 102 can interact with the gateway 106 and the smart device 104 connected to the gateway 106 through the LAN path shown in FIG1; and can also interact with the gateway 106 and the smart device 104 connected to the gateway 106 through the WAN path shown in FIG1. ​​When the terminal device 102 is not in the same LAN as the router 108 and the gateway 106, the terminal device 102 can interact with the gateway 106 and the smart device 104 connected to the gateway 106 through the WAN path shown in FIG1.

[0068] In another implementation, the smart device 104 may also establish a connection with the terminal device 102 directly through a wireless communication method (such as ZigBee or Bluetooth, etc.) to transmit data without connecting to the gateway 106. It should be noted that in the embodiment of the present application, the terminal device 102 can send a control instruction to the smart device 104, thereby controlling the operation of the smart device 104.

[0069] In an exemplary embodiment, the smart device shown in FIG1 includes a controlled device for which the device control method provided in the present application is directed. As shown in FIG2 , a device control method is provided. The method is applicable to an electronic device capable of controlling the operation of the controlled device. The electronic device may be one of the smart devices shown in FIG1 , or a gateway, a server, a terminal device, etc. in the application scenario shown in FIG1 . The method includes the following steps S202 to S206:

[0070] Step S202: determining a target area where at least one target object currently exists from at least one spatial area associated with the controlled device.

[0071] Among them, the controlled devices are smart home appliances used to adjust the environment, such as air conditioners, fans, floor heating, fresh air systems, humidifiers, dehumidifiers, etc. In specific applications, the controlled devices are central controlled devices, that is, through one controlled device, the environment of each space area associated with the controlled device can be adjusted at the same time.

[0072] Among them, the spatial area is an indoor area associated with the controlled device and occupying a certain physical space; in practical applications, the spatial area can be a closed area, such as each room in a house, or an open area, such as dividing a larger indoor space into multiple interconnected areas.

[0073] The smart device shown in FIG. 1 also includes a first sub-device that is communicatively connected to the electronic device.

[0074] Among them, a first sub-device is provided in each spatial area; in actual application, the first sub-device is integrated with an environmental sensor whose corresponding sensing target is the environment to be adjusted. For example, when the environment to be adjusted is temperature, the first sub-device is a temperature sensor, and when the environment to be adjusted is humidity, the first sub-device is a humidity sensor.

[0075] The environmental data is data used to characterize the state of the environment to be adjusted. In practical applications, the environmental data is a state value corresponding to the environment to be adjusted, such as a temperature value, a humidity value, etc.

[0076] The first sub-device is used to obtain current environment data in the corresponding spatial area.

[0077] Among them, the current environmental data is data used to characterize the current state of the environment to be adjusted in the spatial area. In actual applications, the current environmental data is the current state value of the environment to be adjusted, such as the current temperature value, the current humidity value, etc.

[0078] The target object refers to a living being with vital signs, such as a person, an animal, or a plant. In practical applications, the target object is a user of the controlled device, such as a family member in a home.

[0079] Specifically, the controlled device is associated with multiple spatial areas, and the controlled device can control and adjust the environmental status of each spatial area; the electronic device determines the spatial area in the spatial area associated with the controlled device, in which there is currently at least one target object, as the target area for environmental adjustment.

[0080] Step S204: determine a master control device from among the first sub-devices corresponding to each target area.

[0081] The master control device is the first sub-device among the first sub-devices, and the corresponding current environment data is used to decide the control process of the controlled device, that is, the first sub-device whose corresponding current environment data plays a leading role in the control process of the controlled device.

[0082] Step S206, determining environmental decision data according to the current environmental data detected by the main control device.

[0083] The environmental decision data is the environmental data used to decide the control process of the controlled device, that is, the environmental data that plays a leading role in the control process of the controlled device. In practical applications, the environmental decision data is the adjustment amount of the environment to be adjusted, such as the temperature adjustment amount, the humidity adjustment amount, etc.

[0084] Specifically, the electronic device determines the environmental decision data that can dominate the control of the controlled device according to the current environmental data in the corresponding target area detected by the master control device.

[0085] Exemplarily, the electronic device may directly use the current environment data of the main control area as the environment decision data, or may obtain the environment decision data after performing calculations on the current environment data of the main control area.

[0086] Step S208: Generate an environment adjustment instruction corresponding to the environment decision data, and control the controlled device to perform a corresponding action based on the environment adjustment instruction to adjust the environment in each target area.

[0087] Specifically, the electronic device generates an environment adjustment instruction for the controlled device based on the environment decision data, and sends the environment adjustment instruction to the controlled device, so that the controlled device executes the action corresponding to the environment adjustment instruction, thereby adjusting the environment in each target area.

[0088] For example, taking the air conditioner of the controlled device as an example, the electronic device generates a cooling instruction based on the environmental decision data, and sends the cooling instruction to the air conditioner, so that the air conditioner starts cooling, thereby reducing the temperature in each target area.

[0089] In the above device control method, the electronic device first determines the target area where at least one target object currently exists from at least one spatial area associated with the controlled device; a first sub-device is provided in each spatial area, and the first sub-device is used to obtain the current environmental data in the corresponding spatial area; then the electronic device determines the main control device in the first sub-device corresponding to each target area; then the electronic device determines the environmental decision data according to the current environmental data detected by the main control device; finally, the electronic device generates an environmental adjustment instruction corresponding to the environmental decision data, and controls the controlled device to perform corresponding actions based on the environmental adjustment instruction to adjust the environment in each target area. Based on the present application, the electronic device can automatically determine the main control device used for decision device control in the target area where the target object currently exists, and can obtain the environmental decision data used for decision device control according to the current environmental data of the corresponding target area detected by the main control device, and then generate the environmental adjustment instruction corresponding to the environmental decision data, so that the controlled device can adjust the environment of each target area where the target object currently exists. Through the determination of the above main control device and environmental decision data, the control intelligence of intelligent devices in multiple areas can be improved.

[0090] In addition, the above-mentioned device control method can avoid energy waste caused by the controlled device performing environmental adjustment on the area in the spatial area where the target object does not exist, by determining the spatial area where the target object exists as the target area, and controlling the controlled device to perform environmental adjustment for the target area, thereby achieving energy saving.

[0091] In an exemplary embodiment, the above step S206, the current environmental data detected by the root master device is used to determine the environmental decision data, which specifically includes the following contents: if the number of the master device is one, the current environmental data detected by the master device is determined as the environmental decision data; if the number of the master devices is multiple, the average value of the current environmental data detected by each master device is calculated, and the average value is determined as the environmental decision data.

[0092] It is easy to understand that there can be one or more master control devices. Therefore, the electronic device can determine the environmental decision data in different ways according to the number of master control devices; specifically, when the number of master control devices is one, the electronic device directly determines the current environmental data detected by the master control device as the environmental decision data; when the number of master control devices is multiple, the electronic device calculates the average value of the current environmental data detected by each master control device. Since the average value can reflect the average situation of the current environmental status of the target area corresponding to each master control device, the electronic device determines the average value as the environmental decision data.

[0093] In addition, in actual applications, when there are multiple master control devices, the electronic device can also determine any one of the maximum value, minimum value, median, mode, etc. of the current environmental data detected by each master control device as the environmental decision data.

[0094] In this embodiment, the electronic device can intelligently adopt different methods to determine the environmental decision data according to the actual number of master control devices, which helps to make the control process of the controlled device intelligent.

[0095] In an exemplary embodiment, the above step S202, in which a master control device is determined in the first sub-device corresponding to each target area, specifically includes the following contents: if there are multiple target areas, a master control device is determined in the first sub-device corresponding to each target area according to the priority of each target area.

[0096] Among them, the priority of the target area is used to characterize the environmental regulation demand of the target area; it is easy to understand that the greater the environmental regulation demand, the higher the corresponding priority.

[0097] In practical applications, the priority of the target area can be determined based on at least one of the duration and number of target objects in the target area. For example, the longer the duration of the target object in the target area, the higher the priority of the target area; for another example, the more the number of target objects in the target area, the higher the priority of the target area.

[0098] It is easy to understand that the target area can be one or more, so the electronic device can determine the main control device in different ways according to the number of target areas; specifically, when the number of target areas is multiple, since the environmental adjustment requirements of each target area may be different, the electronic device determines the main control area in the first sub-devices corresponding to each of the multiple target areas according to the environmental adjustment requirements of each target area.

[0099] In actual application, if the number of target areas is one, the first sub-device in the target area is determined as the master device. It is easy to understand that when the number of target areas is one, the electronic device may consider that only the target area has an environmental adjustment requirement, and therefore directly determines the first sub-device in the target area as the master device.

[0100] In this embodiment, the electronic device can intelligently determine the master control device in different ways according to the actual number of target areas and the environmental adjustment requirements of the target areas, which helps to make the control process of the controlled device intelligent.

[0101] In an exemplary embodiment, the above steps, according to the priority of each target area, determine the master device in the first sub-device corresponding to each target area, and specifically include the following contents: when there are at least two target areas with unequal priorities among the target areas, the first sub-device corresponding to the target area with the highest priority is determined as the master device; when the priorities of the target areas are equal, the first sub-devices in each target area are determined as the master device.

[0102] Among the target areas, there are at least two target areas whose priorities are unequal, that is, the priorities of the target areas are unequal.

[0103] It is easy to understand that the priorities of various target areas may be equal or unequal. Therefore, the electronic device can also determine the main control device in different ways according to the equality of the priorities of various target areas; specifically, the electronic device first determines whether the priorities of various target areas are equal. If they are not equal, that is, there is a target area with the greatest environmental adjustment demand among the target areas, then the electronic device determines the first sub-device in the target area with the highest priority as the main control area; if they are equal, that is, the environmental adjustment demands of various target areas are equal, then the electronic device determines the first sub-device in each target area as the main control area.

[0104] In this embodiment, the electronic device can intelligently determine the master control device in different ways according to the priority of the target area (ie, the size of the environmental adjustment demand), which helps to make the control process of the controlled device intelligent.

[0105] In an exemplary embodiment, in the above steps, according to the priority of each target area, before determining the master control device in the first sub-device corresponding to each target area, the electronic device specifically needs to determine the priority of each target area; the priority of each target area is determined in the following manner: based on the currently configured device control strategy, determine the priority of each target area.

[0106] The device control strategy is used to characterize the control requirements of the target object for the controlled device, for example, it is expected that the controlled device can adjust the environment according to the spatial preference, time preference or quantity of the target object.

[0107] In actual applications, the device control strategy can be set by the user. For example, the user can set the device control strategy through the terminal device according to the control requirements of the target object for the controlled device; further, if the electronic device has a corresponding setting interface and can provide setting functions, the user can also set the device control strategy through the electronic device.

[0108] Specifically, the electronic device adopts different priority determination methods to determine the priority of each target area based on the device control policy set by the user.

[0109] In this embodiment, the electronic device can intelligently determine the priority of each target area according to the control requirements of the target object for the controlled device (ie, the environmental adjustment method of the controlled device desired by the target object), which helps to make the control process of the controlled device intelligent.

[0110] In an exemplary embodiment, as shown in FIG3 , the above steps, based on the currently configured device control strategy, determine the priority of each target area, specifically include the following steps:

[0111] Step S302: when the device control strategy is the first strategy, determine the target time interval that the current moment falls into according to multiple time intervals under the first strategy.

[0112] Step S304: determining the ranking result of each target area in the target time interval.

[0113] Step S306: Obtain the priority of each target area according to the sorting result.

[0114] Among them, the multiple time intervals preset under the first strategy are continuous time intervals, and the total duration of the multiple time intervals is 24 hours; this application does not limit the duration of each time interval, that is, the duration of each time interval can be equal or unequal. For example, the multiple time intervals are [07:00, 12:00], [12:00-14:00], [14:00-18:00], [18:00-21:00], [21:00-07:00]; among them, the division of time intervals can be divided by the electronic device according to the historical working time period of the controlled object, or it can be divided by the user through the App on the terminal device.

[0115] Among them, the first strategy is a strategy for sorting each spatial area in each time interval according to the historical information of the target object existing in each spatial area in each time interval. In actual applications, the first strategy is a strategy for an electronic device or a user to sort each spatial area or each target area in each spatial area in each time interval according to the historical information of the target object existing in each spatial area or each target area in each spatial area in each time interval; for example, the sorting strategy in the App on the first strategy terminal device, the user can set the sorting order of each spatial area or each target area in each spatial area in each time interval under the sorting strategy based on the living habits of the target object.

[0116] The historical information includes at least one of the duration and quantity of the target object existing in the spatial region or in the target region in the spatial region.

[0117] Specifically, when the device control strategy of the electronic device is the first strategy, the electronic device first determines the time interval in which the current moment falls among multiple time intervals, and uses it as the target time interval; then, the electronic device determines the sorting result of each target area in the target time interval from the sorting results of each spatial area in the target time interval obtained in advance, or, according to the historical information of the target object existing in each target area in the target time interval, sorts each target area to obtain the sorting result of each target area in the target time interval; then, the electronic device obtains the priority of each target area according to the sorting result of each target area; it is easy to understand that the higher the sorting result, the higher the corresponding priority, and therefore, the electronic device determines the first sub-device in the target area with the first sorting result as the main control device.

[0118] That is, in actual applications, the electronic device can pre-sort each spatial area in each time interval according to the historical information of the target object existing in each spatial area in the time interval, and obtain the sorting result of each spatial area in the time interval; then, when the device control strategy is the first strategy, the electronic device determines the sorting result of each target area in the target time interval from the sorting results of each spatial area in the target time interval, and then obtains the priority of each target area.

[0119] For example, the spatial areas associated with the controlled device are the living room, study and bedroom in the house, and the multiple time intervals are [07:00, 12:00], [12:00-14:00], [14:00-18:00], [18:00-21:00], and [21:00-07:00]. The electronic device can first sort the living room, study and bedroom for each time interval according to the historical information of the target object existing in the living room, study and bedroom in the time interval, and obtain the sorting result of the living room, study and bedroom in the time interval. For example, the sorting result at [07:00, 12:00] is {living room, study, bedroom}, the sorting result at [12:00-14:00] is {bedroom, living room, study}, and the sorting result at [14:00-18:00] is {study, living room, bedroom}...

[0120] Assume that the current time is 9:00, then the target time interval is [07:00, 12:00], and the target area includes the living room and bedroom. Then the electronic device obtains the sorting results of the living room and bedroom under [07:00, 12:00] as {living room, study, bedroom} according to "the sorting result under [07:00, 12:00] is {living room, bedroom}", and then obtains the respective priorities of the living room and bedroom. Therefore, the electronic device determines the living room as the main control area. Assume that the current time is 13:00, then the target time interval is [12:00-14:00]. If the target area includes the living room and bedroom, then the electronic device obtains the sorting results of the living room and bedroom under [12:00-14:00] as {bedroom, living room, study} according to "the sorting result under [12:00-14:00] is {bedroom, living room}", and then obtains the respective priorities of the living room and bedroom. Therefore, the electronic device determines the bedroom as the main control area.

[0121] Alternatively, in actual applications, the electronic device may further determine the target time interval in which the current moment falls in the above step S304, and then sort the target areas in each spatial area according to the historical information of the target objects in each target area in the target time interval, to obtain the sorting results of the target areas in each spatial area in the target time interval, and then obtain the priority of each target area in each spatial area.

[0122] For example, the current time is 9:00, the target time interval is [07:00, 12:00], and the target area includes the living room and the bedroom. After the above step S304, the electronic device can sort the living room and the bedroom according to the historical information of the target object existing in the living room and the bedroom in the target time interval [07:00, 12:00], and obtain the sorting result of the living room and the bedroom in [07:00, 12:00] as {living room, bedroom}, and then obtain the respective priorities of the living room and the bedroom. Therefore, the electronic device determines the living room as the main control area.

[0123] In actual applications, the sorting results of each spatial area or each target area in each spatial area in each time interval can also be obtained by the user sorting each spatial area or each target area in each spatial area through an App on the terminal device based on the living habits of the target object, that is, the user sorts each spatial area or each target area in each spatial area in advance according to the historical information of the target object existing in each spatial area or each target area in each spatial area in the time interval for each time interval, and obtains the sorting result of each spatial area or each target area in each spatial area in the time interval; then, when the device control strategy is the sorting strategy, the electronic device determines the sorting result of each target area in the target time interval from the sorting results set by the user in the target time interval, and then obtains the priority of each target area.

[0124] Since the historical information represents at least one of the duration and quantity of the target object's presence in the spatial area (or target area), that is, the historical information represents the target object's living habits; therefore, in this embodiment, the electronic device can sort each spatial area (or target area) in each time period according to the target object's living habits in different time periods, so that the priority of each target area can be obtained based on the sorting result, thereby improving the intelligence level of the control process of the controlled device.

[0125] In an exemplary embodiment, as shown in FIG4 , the above steps, based on the currently configured device control strategy, determine the priority of each target area, and further specifically include the following steps:

[0126] Step S402, when the device control strategy is the second strategy, determining the number of target objects currently existing in each target area, and determining the weight of each target area under the weight strategy.

[0127] Step S404: obtaining the priority of each target area according to the weight of each target area and the number of target objects currently existing in each target area.

[0128] Among them, the second strategy is a strategy for determining the weight of each spatial area based on the historical information of the target object existing in each spatial area. In practical applications, the second strategy is a strategy for electronic devices or users to determine the weight of each spatial area or each target area in each spatial area based on the historical information of the target object existing in each spatial area or each target area in each spatial area; for example, the second strategy is a weight strategy in the App on the terminal device, and the user can assign weights to each spatial area or each target area in each spatial area under the weight strategy based on the living habits of the target object.

[0129] The historical information includes at least one of the duration and quantity of the target object existing in the spatial region or in the target region in the spatial region.

[0130] Specifically, when the device control strategy is the second strategy, the electronic device first determines the number of target objects currently existing in each target area, such as the number of people in each target area, and determines the weight of each target space from the weights pre-determined for each spatial area, or determines the corresponding weight for each target space based on the historical information of the target objects existing in each target area; then, for each target area, the electronic device calculates the priority score of the target area based on the weight of the target area and the number of target objects currently existing, thereby obtaining the priority of each target area; it is easy to understand that the higher the priority score, the higher the corresponding priority, and therefore, the electronic device determines the first sub-device in the target area with the highest corresponding priority score as the main control device.

[0131] Illustratively, the priority score is the product of the weight and the number of target objects.

[0132] That is, in actual applications, the electronic device can preset corresponding weights for each spatial area based on the historical information of the target object existing in each spatial area; then, when the device control strategy is the second strategy, the electronic device determines the weight corresponding to each target area from the weights corresponding to each spatial area to calculate the priority score of each target area.

[0133] Alternatively, in actual applications, the electronic device may determine a corresponding weight for each target area according to historical information of the target object existing in each target area when the device control strategy is the second strategy, so as to calculate a priority score for each target area.

[0134] In actual applications, the weights pre-determined for each spatial area can also be obtained by the user setting the weights for each spatial area through an App on the terminal device, that is, the user sets the corresponding weight for each spatial area in advance based on the historical information of the target object existing in each spatial area; then, when the device control strategy is a weight strategy, the electronic device determines the weight of each target area based on the weight set by the user for each spatial area.

[0135] Since the historical information represents at least one of the duration and the number of target objects present in the spatial area (or target area), that is, the historical information represents the living habits of the target object; therefore, in this embodiment, the electronic device can determine the corresponding weight for each spatial area (or target area) according to the living habits of the target object, so that the priority of each target area can be obtained based on the weight and the number of target objects present, thereby improving the intelligence level of the control process of the controlled device.

[0136] In an exemplary embodiment, as shown in FIG5 , the above steps, based on the currently configured device control strategy, determine the priority of each target area, and further specifically include the following steps:

[0137] Step S502: when the device control strategy is the third strategy, a marked target area is determined in each target area based on the third strategy.

[0138] Step S504: The priority of the marked target area is determined as the first priority, and the priority of the unmarked target area among the target areas is determined as the second priority.

[0139] Among them, the third strategy is a strategy for marking each of the spatial areas according to the historical information that the target object exists in each of the spatial areas. In practical applications, the third strategy is a strategy for electronic devices or users to mark specific areas of each spatial area or each target area in each spatial area according to the historical information that the target object exists in each spatial area or each target area in each spatial area; for example, the third strategy is a selection strategy within an App on a terminal device, and the user can select specific areas in each spatial area or each target area in each spatial area and mark them under the selection strategy based on the living habits of the target object.

[0140] The historical information includes at least one of the duration and quantity of the target object existing in the spatial region or in the target region in the spatial region.

[0141] Among them, the second priority is lower than the first priority.

[0142] Specifically, under the third strategy, the electronic device can predict the area with the greatest corresponding environmental adjustment demand in each spatial area or each target area in each spatial area based on the historical information of the existence of the target object in each spatial area or each target area in each spatial area, and mark the area; then, the electronic device determines the marked target area in each target area, and determines the priority of the marked target area as the first priority, and determines the priority of each unmarked target area as the second priority. Since the second priority is lower than the first priority, the electronic device determines the first sub-device in the marked target area as the main control area.

[0143] In actual applications, the marking of spatial areas or target areas in spatial areas can also be performed by the user through an App on the terminal device, that is, the user manually marks each spatial area or any one of the target areas in each spatial area under the selection strategy; then, when the device control strategy is the selection strategy, the electronic device determines the priority of the target area marked by the user as the first priority, and determines the priority of the target area not marked by the user as the second priority.

[0144] In actual applications, under the third strategy, the electronic device can determine the first sub-device in the marked target area as the master control device in a future time period; in the future time period, unless the marked target area changes (for example, the mark of the target area is canceled, and other spatial areas or target areas are marked), or the device control strategy changes, the first sub-device in the marked target area will always serve as the master control device to decide the control process of the controlled device.

[0145] Since the historical information represents at least one of the duration and quantity of the target object's presence in the spatial area (or target area), that is, the historical information represents the living habits of the target object; therefore, in this embodiment, the electronic device can mark a specific area in each spatial area (or target area) according to the living habits of the target object, and determine the priority of each target area according to the marking status of each target area (whether it is marked), thereby improving the intelligence level of the control process of the controlled device.

[0146] In an exemplary embodiment, the above step of determining the priority of each target area based on the currently configured device control strategy further specifically includes the following: when the device control strategy is the fourth strategy, determining that each target area has the same priority.

[0147] Among them, the fourth strategy is a strategy that each target area has the same priority; in actual application, the fourth strategy is an average strategy in the App on the device terminal. The user can set each target area to have the same priority by selecting the average strategy on the App.

[0148] Specifically, when the device control strategy of the electronic device is the fourth strategy, the electronic device determines that each target area has the same priority, that is, each target area is a target area with the highest priority. Therefore, the electronic device determines the first sub-device in each target area as the main control device.

[0149] In this embodiment, the electronic device can determine that each target area has an equal priority in response to the currently configured fourth strategy.

[0150] In an exemplary embodiment, the first sub-device in each spatial area is also used to obtain expected environmental data; wherein the expected environmental data is data characterizing the state that the user expects the environment to be adjusted in the spatial area to achieve; in actual applications, the expected environmental data is a numerical state that the user expects the environment to be adjusted to achieve, such as an expected temperature value, an expected humidity value, etc.

[0151] The first sub-device is also integrated with an input module, and the user can set the desired environmental data through the input module of the first sub-device.

[0152] Furthermore, the user can also control the controlled device through the input module of the first sub-device, for example, control the power on and off of the controlled device, switch the working mode of the controlled device, etc.

[0153] Furthermore, the first sub-device is also integrated with an output module, which is an electronic display screen. The electronic display screen can display the current environmental data acquired by the first sub-device, and can also display relevant parameters of the electronic device or controlled device, such as the environmental decision data currently used to decide the control process of the controlled device.

[0154] In a specific application, the user may also set the first sub-device as the master device through the input module of the first sub-device.

[0155] In practical applications, if the environment to be adjusted is temperature, the controlled device is a central air conditioning system, and the electronic device is a thermostat matched with the central air conditioning system. The first sub-device is a temperature control partner matched with the central air conditioning system.

[0156] In the above step S208, generating an environmental adjustment instruction corresponding to the environmental decision data specifically includes the following contents: generating an environmental adjustment instruction with reducing the environmental difference between the environmental decision data and the target environmental data as the adjustment target.

[0157] The target environment data is the latest expected environment data acquired by each first sub-device.

[0158] Specifically, the first sub-device can obtain the current environmental data of the spatial area in real time through the integrated environmental sensor, and transmit the obtained current environmental data to the electronic device; in addition, the user can also set the expected environmental data through the input module integrated in the first sub-device, and the first sub-device transmits the expected environmental data set by the user to the electronic device; therefore, the electronic device can use the latest expected environmental data transmitted by each first sub-device as the target environmental data, and reduce the environmental difference between the environmental decision data and the target environmental data as the adjustment target, generate corresponding environmental adjustment instructions, and send the environmental adjustment instructions to the controlled device, so that the controlled device performs corresponding actions, adjusts the environment in each target area, and makes the current environmental data of each target area approach the target environmental data.

[0159] Exemplarily, the electronic device calculates the difference between the environmental decision data and the target environmental data to obtain the environmental adjustment amount, then generates an environmental adjustment instruction corresponding to the environmental adjustment amount, and then sends the environmental adjustment instruction to the controlled device so that the controlled device works according to the environmental adjustment amount.

[0160] In this embodiment, the electronic device can obtain the desired environment data set by the user based on the first sub-device, and can then accurately control the controlled device based on the environmental decision data and the desired environment data, so that the controlled device can accurately adjust the indoor environment.

[0161] In an exemplary embodiment, the smart device shown in FIG. 1 further includes a second sub-device communicatively connected to the electronic device.

[0162] In this embodiment, each spatial region is provided with a second sub-device; the second sub-device is used to determine whether there is a target object currently in the corresponding spatial region, and to determine the number of target objects.

[0163] The second sub-device is a sensor that takes a target object as a sensing target. For example, if the target object is a person, the second sub-device is a human body sensor.

[0164] Specifically, the second sub-device can sense in real time whether there is a target object in the spatial area where it is located, and when sensing that there is at least one target object currently, transmit sensing information to the electronic device, where the sensing information is used to characterize the existence of the sensed target object, and the sensing information can also carry the number of sensed target objects; the electronic device determines the spatial area as the target area based on the sensing information transmitted by the second sub-device.

[0165] In this embodiment, the electronic device can monitor the existence of the target object in each spatial area in real time based on the second sub-device, so that when the target object enters a certain spatial area, the spatial area can be determined as the target area, and the environmental adjustment of the target area can be achieved by controlling the controlled device.

[0166] In an exemplary embodiment, in the above step S208, after generating an environmental adjustment instruction corresponding to the environmental decision data and controlling the controlled device to perform corresponding actions based on the environmental adjustment instruction to adjust the environment in each target area, it also specifically includes the following contents: when the number of target objects in any spatial area changes, a new target area is determined from the spatial area, and the steps of determining the main control device in the first sub-device corresponding to each target area are returned to adjust the environment in the new target area.

[0167] Specifically, when the number of target objects in any spatial area of ​​the electronic device changes, for example, the number of target objects in the spatial area decreases or increases, or for example, the existence of target objects in the spatial area changes from existence to non-existence, or from non-existence to existence, the target area in the spatial area where at least one target object currently exists is re-determined, and the re-determined target area is used as each new target area; then the above steps S204 to S208 are returned to adjust the environment in each new target area.

[0168] In practical applications, the number of target objects in the spatial area is obtained according to detection by the second sub-device in each spatial area.

[0169] In this embodiment, by real-time monitoring of the changes in the number of target objects in each spatial area, it is possible to timely adjust the environmental regulation in the target area where the target objects are active according to the activities of the target objects in each spatial area, thereby further improving the intelligence level of the control process of the controlled device.

[0170] The embodiment of the present application also provides an application scenario, please refer to FIG. 6 , the application of the above device control method in the application scenario is as follows:

[0171] The spatial area is each room in the house, the electronic device is a thermostat set in any room, the controlled device is a central air conditioning system, the first sub-device is a temperature control companion set in each room, and the second sub-device is a human body sensor set in each room. The temperature control companion has a temperature sensor integrated therein.

[0172] In practical applications, the thermostat can be integrated with a temperature control companion, so there is no need to set up a temperature control companion in the room where the thermostat is set.

[0173] In practical applications, the thermostat may also be integrated with a gateway, so the above device control method may also be applied in the application scenario shown in FIG. 7 .

[0174] In actual application, when the thermostat companion is started, it will send a pairing signal, and the user can complete the binding process with the thermostat through the App on the terminal device. If the pairing is not successfully completed within the set time window, the App will display a prompt message to guide the user to retry the pairing operation; once the pairing is successful, the electronic screen of the thermostat companion will display the binding parameters related to the thermostat, clearly indicating the pairing status. One thermostat can be associated with multiple thermostat companions, and users can manage the bound thermostat companions at any time through the App, including canceling or modifying their control permissions.

[0175] In actual applications, the Temperature Control Companion can still be used as an independent temperature sensor even if it is not bound to a thermostat.

[0176] Specifically, the temperature control companion is used to detect the temperature in the room in real time; the human body sensor is used to sense human activities in the room in real time to determine whether there is human activity, and when human activity is sensed, the sensing information is transmitted to the thermostat; based on the sensing information detected by the human body sensor, the thermostat determines the room where the human body sensor is located as the target area.

[0177] When there is only one target area, that is, when there is human activity in only one room, the thermostat determines the target area as the main control area, and determines the temperature control partner in the main control area as the main control device; then the temperature in the main control area detected by the main control device is obtained, and the temperature is used as the decision temperature, and the air conditioner is controlled to adjust the temperature in the target area according to the decision temperature and the target temperature set by the user, so that the temperature in the target area reaches the target temperature.

[0178] Specifically, as shown in FIG8 , a schematic diagram of the binding relationship between the thermostat and the thermostat companion is shown. When the thermostat in room 1 is bound to a thermostat companion (the thermostat companion 1 in room 2), if there are people in room 2, the thermostat will use the temperature data collected by the thermostat companion 1 as the basis for adjustment decisions. Assuming that the temperature of room 1 is 24 degrees and the temperature of room 2 is 22 degrees, and the user wants to increase the temperature of room 2 to 26 degrees, the thermostat will start the adjustment process based on the data of the thermostat companion 1 so that the temperature of room 2 reaches the user's desired comfort level.

[0179] For example, when the thermostat detects that there is human activity only in the living room through the human body sensor, the thermostat controls the air conditioner to adjust the temperature in the living room according to the temperature detected by the temperature control partner in the living room.

[0180] When there are multiple target areas, that is, when there are people active in multiple rooms, the thermostat flexibly determines the decision temperature based on the device control strategy set by the user to balance and meet the temperature requirements of the entire living environment (each room).

[0181] Specifically, as shown in FIG9 , another schematic diagram of the binding relationship between the thermostat and the temperature control partner is shown. When the thermostat in room 1 is bound to multiple temperature control partners (temperature control partner 1 in room 2, temperature control partner 2 in room 3), if there are people in multiple rooms among room 1, room 2 and room 3, the thermostat can intelligently select the decision basis based on the temperature data obtained by real-time monitoring of each temperature control partner. When the thermostat detects changes in the activities of people in different rooms, the thermostat will automatically update its decision temperature data source to ensure that the temperature is always adjusted based on the data provided by the temperature control partner of the most relevant room at the moment.

[0182] In the specific implementation, a variety of device control strategies are provided for users to choose from, including time + space sorting strategy, weight strategy, average strategy and selection strategy.

[0183] Under the time + space sorting strategy, users can sort the spaces according to their living habits and time periods, for example:

[0184] 07:00-12:00: Living room, study, bedroom;

[0185] 12:00-14:00: Bedroom, living room, study;

[0186] 14:00-18:00: study, living room, bedroom;

[0187] 18:00-21:00: Living room, study, bedroom;

[0188] 21:00-07:00: Bedroom, study, living room;

[0189] Between 07:00 and 12:00, when the thermostat detects that there are people in the living room, study and bedroom, it sets the thermostat companion in the living room as the main control device according to the space order set in advance by the user, and uses the temperature detected by the thermostat companion in the living room as the decision temperature to control the air conditioner to adjust the temperature of the living room, study and bedroom to ensure that the temperature in the living room reaches the target temperature set by the user.

[0190] Under the weight strategy, users can assign weights to each room, and the thermostat will decide the master device based on the weights of each room and the number of people in the room. For example, assuming the weight of the bedroom is 0.35, the living room is 0.4, and the study is 0.25, and there are 2 people in the living room, 1 person in the study and bedroom, then the priority score of the bedroom is 0.35*1=0.35, the priority score of the living room is 0.4*2=0.8, and the priority score of the study is 0.25*1=0.25. Therefore, the thermostat sets the thermostat companion in the living room as the master device, uses the temperature detected by the thermostat companion in the living room as the decision temperature, and controls the air conditioner to adjust the temperature of multiple rooms including the living room, study, and bedroom to ensure that the temperature of the living room reaches the target temperature set by the user.

[0191] Under the average strategy, when the thermostat detects that there are people in multiple rooms such as the living room, study, and bedroom, the average temperature of multiple rooms is used as the decision temperature, and the air conditioner is controlled to adjust the temperature of multiple rooms such as the living room, study, and bedroom.

[0192] Under the selection strategy, the user can actively select a temperature control companion as the master device. The temperature control companion will always remain in the master state for the next period of time (such as 12 hours). Even if the human sensor data changes, the thermostat will not automatically switch the master device.

[0193] In actual applications, the thermostat uses the difference between the decision temperature and the target temperature as the temperature adjustment amount, and controls the air conditioner to adjust the temperature of the room where people are active according to the temperature adjustment amount; therefore, it is easy to understand that the thermostat will make the overall temperature in each room approach the target temperature, thereby achieving balanced temperature adjustment in each room.

[0194] For example, assuming that the temperature of the living room is 28 degrees, the temperature of the study is 30 degrees, the temperature of the bedroom is 27 degrees, and the target temperature is 26 degrees; then under the time + space sorting strategy or weight strategy, assuming that the temperature of the living room is used as the decision temperature, the thermostat will control the air conditioner with a temperature adjustment amount of 2 degrees. The temperature of the living room will eventually reach 26 degrees, and the temperatures of the study and bedroom will approach 26 degrees, achieving balanced temperature adjustment in each room.

[0195] For another example, under the average strategy, the average temperature of the three rooms is 28.3 degrees, then the thermostat will control the air conditioner with a temperature adjustment amount of 2.3 degrees, so that the temperature of the three rooms will approach 26 degrees, achieving balanced temperature adjustment in each room.

[0196] In actual applications, under the average strategy, the thermostat can treat each temperature control partner as a master control device. Therefore, the target temperature set on each temperature control partner will activate the thermostat's control of the air conditioner.

[0197] In this embodiment, users can flexibly customize personalized temperature control strategies according to their living habits and preferences, so that the thermostat can intelligently determine the decision temperature and automatically update the decision temperature when detecting changes in the activities of people in the room, ensuring that the temperature data of the most relevant room is always used as the decision temperature basis for temperature adjustment. Based on the above process, the thermostat can automatically determine the most suitable main control device to ensure the comfort and temperature balance of the entire home environment, improve energy efficiency, and achieve energy conservation and emission reduction, which is particularly suitable for modern families that require fine temperature control.

[0198] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0199] Based on the same inventive concept, the embodiment of the present application also provides a device control device for implementing the device control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more device control device embodiments provided below can refer to the limitations on the device control method above, and will not be repeated here.

[0200] In an exemplary embodiment, as shown in FIG10 , a device control apparatus is provided, comprising: a target area determination module 1002, a master control device determination module 1004, a decision data determination module 1006 and a controlled device control module 1008, wherein:

[0201] The target area determination module 1002 is used to determine the target area where at least one target object currently exists from at least one spatial area associated with the controlled device; each spatial area is provided with a first sub-device, and the first sub-device is used to obtain the current environmental data in the corresponding spatial area.

[0202] The master control device determination module 1004 is used to determine a master control device in the first sub-devices corresponding to each target area.

[0203] The decision data determination module 1006 is used to determine the environmental decision data according to the current environmental data detected by the main control device.

[0204] The controlled device control module 1008 is used to generate an environment adjustment instruction corresponding to the environment decision data, and control the controlled device to perform corresponding actions based on the environment adjustment instruction to adjust the environment in each target area.

[0205] In an exemplary embodiment, the decision data determination module 1006 is also used to determine the current environmental data detected by the main control device as environmental decision data if the number of the main control device is one; if the number of the main control devices is multiple, calculate the average value of the current environmental data detected by each main control device and determine the average value as the environmental decision data.

[0206] In an exemplary embodiment, the master device determining module 1004 is further configured to determine a master device from the first sub-devices corresponding to each target area according to the priority of each target area if there are multiple target areas.

[0207] In an exemplary embodiment, the master control device determination module 1004 is further used to determine the priority of each target area based on the currently configured device control strategy; the device control strategy is used to characterize the control requirements of the target object for the controlled device.

[0208] In an exemplary embodiment, the master control device determination module 1004 is also used to determine the target time interval into which the current moment falls according to multiple time intervals under the first strategy when the device control strategy is the first strategy; the first strategy is a strategy for sorting each spatial area in each time interval according to historical information of the target object existing in each spatial area in each time interval; the historical information includes at least one of the duration and quantity of the target object existing in the spatial area; determining the sorting result of each target area in the target time interval; and obtaining the priority of each target area according to the sorting result.

[0209] In an exemplary embodiment, the master control device determination module 1004 is also used to determine the number of target objects currently existing in each target area and the weight of each target area under the second strategy when the device control strategy is the second strategy; the second strategy is a strategy for determining the weight of each spatial area based on historical information of the target objects existing in each spatial area; the historical information includes at least one of the duration and number of target objects existing in the spatial area; the priority of each target area is obtained based on the weight of each target area and the number of target objects currently existing in each target area.

[0210] In an exemplary embodiment, the master control device determination module 1004 is also used to determine the marked target area in each target area based on the third strategy when the device control strategy is the third strategy; the third strategy is a strategy for marking each spatial area according to the historical information of the target object existing in each spatial area; the historical information includes at least one of the duration and quantity of the target object existing in the spatial area; the priority of the marked target area is determined as the first priority, and the priority of the unmarked target area in each target area is determined as the second priority; the second priority is lower than the first priority.

[0211] In an exemplary embodiment, the first sub-device in each spatial area is also used to obtain desired environmental data.

[0212] The controlled device control module 1008 is also used to generate an environmental adjustment instruction with the reduction of the environmental difference between the environmental decision data and the target environmental data as the adjustment target; the target environmental data is the latest expected environmental data obtained by each first sub-device.

[0213] In an exemplary embodiment, each spatial region is provided with a second sub-device; the second sub-device is used to determine whether a target object currently exists in the corresponding spatial region.

[0214] In an exemplary embodiment, the target region determining module 1002 is further configured to determine a new target region from the spatial region when the number of target objects in any spatial region changes.

[0215] The master control device determination module 1004 is further configured to return to the step of determining the master control device in the first sub-devices corresponding to each target area, so as to adjust the environment in the new target area.

[0216] Each module in the above-mentioned device control device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0217] The present application also provides a device control system. The specific limitations in one or more device control system embodiments provided below can refer to the limitations on the device control method above and will not be repeated here.

[0218] In an exemplary embodiment, a device control system includes an electronic device, a controlled device, and a first sub-device.

[0219] The first sub-device is used to obtain current environment data in the corresponding spatial area.

[0220] In practical applications, the first sub-device may be a temperature control companion that integrates a temperature sensor, an input module, and an output module.

[0221] In practical applications, the first sub-device may be arranged in each spatial area.

[0222] An electronic device, used to determine a target area where at least one target object currently exists from at least one spatial area associated with a controlled device; a first sub-device is provided in each spatial area; a main control device is determined in the first sub-device corresponding to each target area; environmental decision data is determined based on current environmental data detected by the main control device; an environmental adjustment instruction corresponding to the environmental decision data is generated, and the controlled device is controlled to perform a corresponding action based on the environmental adjustment instruction.

[0223] The electronic device is communicatively connected with the first sub-device.

[0224] In practical applications, the electronic device may be a thermostat, and the environmental data may be temperature.

[0225] The controlled device is used to execute corresponding actions in response to the environment adjustment instruction to adjust the environment in each target area.

[0226] The electronic device is communicatively connected with the controlled device.

[0227] In practical applications, the controlled device may be a central control device, such as a central air conditioning system, a central humidity control device, a central air purifier device, and the like.

[0228] In an exemplary embodiment, the device control system further includes a second sub-device disposed in each spatial area.

[0229] In actual applications, the user's terminal device can communicate with the device control system to control the device control system and then control the controlled device.

[0230] The second sub-device is used to determine whether the target object currently exists in the corresponding spatial area.

[0231] The electronic device is communicatively connected with the second sub-device.

[0232] In practical applications, when the target object is a human body, the second sub-device may be a human body sensor for detecting whether there is a human body in the corresponding spatial area. When the second sub-device in the corresponding spatial area detects that there is a human body in the spatial area, the spatial area where the human body exists may be determined as a target area, and the main control device and corresponding environmental decision data may be determined based on the target area to adjust the environment of each target area.

[0233] In an exemplary embodiment, the first sub-device is further used to obtain expected environment data.

[0234] In actual applications, when the first sub-device is a temperature control companion, as shown in Figure 11, the first sub-device can also integrate an electronic display screen 1102 and a button 1104; the electronic display screen 1104 serves as an output module of the temperature control companion, which can display the detected temperature and related parameters of the thermostat or air conditioner, such as the decision temperature, target temperature, working mode, etc.; the button 1104 serves as an input module of the temperature control companion, and the user can use the button 1104 to set the target temperature and control the controlled device, such as controlling the power on and off of the controlled device, switching the working mode of the controlled device, etc., or setting the temperature control companion as the master device.

[0235] In an exemplary embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG12. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a device control method is implemented. The display unit of the electronic device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad on the electronic device housing, or an external keyboard, touchpad or mouse.

[0236] Those skilled in the art will understand that the structure shown in FIG. 12 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0237] In an exemplary embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0238] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0239] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0240] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0241] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0242] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A device control method, characterized in that: The method comprises: Determine a target area where at least one target object currently exists from at least one spatial area associated with the controlled device; each of the spatial areas is provided with a first sub-device, and the first sub-device is used to obtain current environmental data in the corresponding spatial area; Determining a master control device in the first sub-devices corresponding to the respective target areas; Determining environmental decision data according to the current environmental data detected by the main control device; Generate an environmental adjustment instruction corresponding to the environmental decision data, and control the controlled device to perform a corresponding action based on the environmental adjustment instruction to adjust the environment in each of the target areas.

2. The method according to claim 1, characterized in that: The determining of environmental decision data according to the current environmental data detected by the main control device includes: If the number of the master control device is one, determining the current environment data detected by the master control device as the environment decision data; If there are multiple master control devices, the average value of the current environment data detected by each of the master control devices is calculated, and the average value is determined as the environment decision data.

3. The method according to claim 1, characterized in that The determining of a master control device in the first sub-devices corresponding to the target areas includes: If there are multiple target areas, the master control device is determined from the first sub-devices corresponding to each target area according to the priority of each target area.

4. The method according to claim 3, characterized in that Before determining the master control device in the first sub-devices corresponding to the target areas according to the priorities of the target areas, the method further includes: Based on the currently configured device control strategy, the priority of each target area is determined; the device control strategy is used to characterize the control demand of the target object for the controlled device.

5. The method according to claim 4, characterized in that The determining the priority of each target area based on the currently configured device control strategy includes: In the case where the device control strategy is the first strategy, the target time interval into which the current moment falls is determined according to a plurality of time intervals under the first strategy; the first strategy is a strategy for sorting each of the spatial regions in each of the time intervals according to historical information of the target object existing in each of the spatial regions in each of the time intervals; the historical information includes at least one of the duration and the number of the target object existing in the spatial region; Determine a ranking result of each of the target areas in the target time interval; According to the sorting result, the priority of each target area is obtained.

6. The method according to claim 4, characterized in that The determining the priority of each of the target areas based on the currently configured device control strategy further includes: In the case where the device control strategy is the second strategy, determining the number of the target objects currently existing in each of the target areas, and determining the weight of each of the target areas under the second strategy; the second strategy is a strategy for determining the weight of each of the spatial areas based on historical information of the target objects existing in each of the spatial areas; the historical information includes at least one of the duration and the number of the target objects existing in the spatial area; The priority of each target area is obtained according to the weight of each target area and the number of the target objects currently existing in each target area.

7. The method according to claim 4, characterized in that The determining the priority of each of the target areas based on the currently configured device control strategy further includes: In the case where the device control strategy is the third strategy, a marked target area is determined in each of the target areas based on the third strategy; the third strategy is a strategy for marking each of the spatial areas according to historical information of the target object existing in each of the spatial areas; the historical information includes at least one of the duration and the number of the target objects existing in the spatial area; The priority of the marked target area is determined as a first priority, and the priority of the unmarked target area in each target area is determined as a second priority; the second priority is lower than the first priority.

8. The method according to any one of claims 1 to 7, characterized in that: The first sub-device in each of the spatial regions is further used to obtain expected environmental data; The generating of the environment adjustment instruction corresponding to the environment decision data includes: Generate the environmental adjustment instruction with reducing the environmental difference between the environmental decision data and the target environmental data as the adjustment target; The target environment data is the latest expected environment data acquired by each of the first sub-devices.

9. The method according to any one of claims 1 to 7, characterized in that: A second sub-device is provided in each of the spatial regions; the second sub-device is used to determine whether the target object currently exists in the corresponding spatial region.

10. The method according to any one of claims 1 to 7, characterized in that: After generating an environment adjustment instruction corresponding to the environment decision data, and controlling the controlled device to perform a corresponding action based on the environment adjustment instruction to adjust the environment in each of the target areas, the method further includes: When the number of the target objects in any of the spatial areas changes, a new target area is determined from the spatial area, and the step of returning to the first sub-device corresponding to each of the target areas to determine the master control device is performed to adjust the environment in the new target area.

11. A device control device, characterized in that: The device comprises: A target area determination module is used to determine a target area where at least one target object currently exists from at least one spatial area associated with the controlled device; each of the spatial areas is provided with a first sub-device, and the first sub-device is used to obtain current environmental data in the corresponding spatial area; A master control device determination module, configured to determine a master control device in the first sub-devices corresponding to the respective target areas; A decision data determination module, used to determine environmental decision data according to the current environmental data detected by the main control device; The controlled device control module is used to generate an environmental adjustment instruction corresponding to the environmental decision data, and control the controlled device to perform a corresponding action based on the environmental adjustment instruction to adjust the environment in each of the target areas.

12. A device control system, characterized in that: The system includes an electronic device, a controlled device and a first sub-device; The first sub-device is used to obtain current environment data in the corresponding spatial area; The electronic device is used to determine a target area where at least one target object currently exists from at least one of the spatial areas associated with the controlled device; each of the spatial areas is provided with the first sub-device; a master control device is determined in the first sub-devices corresponding to each of the target areas; and environmental decision data is determined based on the current environmental data detected by the master control device; Generate an environment adjustment instruction corresponding to the environment decision data, and control the controlled device to perform a corresponding action based on the environment adjustment instruction; The controlled device is used to execute corresponding actions in response to the environment adjustment instruction to adjust the environment in each of the target areas.

13. The device control system according to claim 12, characterized in that: The device control system further includes a second sub-device disposed in each of the spatial regions; The second sub-device is used to determine whether the target object currently exists in the corresponding spatial area.

14. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.