Device control method and apparatus, electronic device, and storage medium
By dividing a large space into unit areas, acquiring status data, calculating deviations, and generating control commands, the problem of cumbersome adjustment of intelligent devices in large spaces is solved, achieving automated environmental status adjustment and improved accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN LUMIUNITED TECH CO LTD
- Filing Date
- 2023-03-16
- Publication Date
- 2026-07-10
AI Technical Summary
In large open spaces, the configuration process for adjusting environmental conditions using multiple smart devices is too cumbersome and makes it difficult to achieve accurate environmental control. This is especially true in non-standardized large spaces where the cross-influence of devices and the high cost of user participation are significant.
By dividing the target space into multiple unit areas, acquiring the status data of each area, calculating the environmental deviation data, and determining the adjustment data of the controlled equipment based on this, the system generates equipment control commands to automatically adjust the environmental state, avoiding tedious configuration operations for users.
It enables automatic adjustment of the environmental status of each unit area in a large space, improves the accuracy of environmental status adjustment, and reduces the complexity of user configuration operations and labor costs.
Smart Images

Figure CN116339165B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and more specifically, to a device control method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the development of IoT technology, smart devices are gradually being deployed in various spaces to provide users with intelligent control services. For example, a smart air conditioner can be deployed in the living room, automatically turning on when the homeowner returns home.
[0003] It's understandable that for smaller, enclosed spaces, such as living rooms, a single smart air conditioner can achieve good temperature control, and the configuration for a single smart air conditioner to turn on automatically is relatively simple. However, in larger open spaces, such as offices or lecture halls, the accuracy of a single smart device in adjusting the environment is lower, and multiple smart devices are often needed to achieve a good environmental control effect. This also makes the configuration for automatic control of multiple smart devices too cumbersome for users.
[0004] As can be seen from the above, while improving the accuracy of smart devices in adjusting environmental conditions, the overly complicated configuration of automatic control of multiple smart devices by users remains to be addressed. Summary of the Invention
[0005] This application provides a device control method, apparatus, electronic device, and storage medium, which can solve the problem that, despite improving the accuracy of intelligent devices in adjusting environmental conditions, the user configuration process during device control remains overly cumbersome in related technologies. The technical solution is as follows:
[0006] According to one aspect of this application, a device control method is provided, the method comprising: acquiring region status data corresponding to each unit region in a target space; the region status data being used to indicate the environmental state of the corresponding unit region; determining environmental deviation data for each unit region based on the region status data corresponding to each unit region; the environmental deviation data being used to indicate the deviation between the environmental state of the unit region and the target environmental state; determining environmental adjustment data for each controlled device in the target space based on the environmental deviation data of each unit region; the environmental adjustment data being used to indicate the actions performed by the controlled device to adjust the environmental state of the associated unit region; and controlling the controlled device in the target space to perform corresponding actions based on the environmental adjustment data of each controlled device in the target space.
[0007] According to one aspect of this application, a device control apparatus includes: a status data acquisition module, configured to acquire region status data corresponding to each unit region in a target space; the region status data is used to indicate the environmental status of the corresponding unit region; a region adjustment determination module, configured to determine environmental deviation data of each unit region based on the region status data corresponding to each unit region; the environmental deviation data is used to indicate the deviation between the environmental status of the unit region and the target environmental status; a device adjustment determination module, configured to determine environmental adjustment data of each controlled device in the target space based on the environmental deviation data of each unit region; the environmental adjustment data is used to indicate the actions performed by the controlled device to adjust the environmental status of the associated unit region; and a device control module, configured to control the controlled devices in the target space to perform corresponding actions based on the environmental adjustment data of each controlled device in the target space.
[0008] In an exemplary embodiment, the area adjustment determination module includes: a first weight determination unit, configured to determine first weight data of the sensing device for the associated unit area based on the sensing device associated with each unit area; the sensing device is configured to sense the environmental state of the associated unit area; and a deviation calculation unit, configured to calculate the deviation between the area state data corresponding to each unit area and the target environmental state data, and combine the first weight data of the sensing device associated with each unit area to obtain environmental deviation data of each unit area.
[0009] In an exemplary embodiment, the device adjustment determination module 950 includes: a second weight determination unit, configured to determine second weight data for each controlled device relative to the associated unit region based on the ratio between the effective control range of each controlled device and the range of the associated unit region; and a data calculation unit, configured to calculate environmental adjustment data for each controlled device in the target space based on environmental deviation data of each unit region and the second weight data of the controlled devices associated with each unit region.
[0010] In one exemplary embodiment, the apparatus further includes: a condition detection module, configured to detect whether the target space meets the periodic control conditions; if not, to notify the stop control module; if yes, to notify the device control module and the timing module. The stop control module is configured to stop controlling the controlled devices in the target space to perform corresponding actions. The device control module is configured to control the controlled devices in the target space to perform corresponding actions based on the environmental adjustment data of each controlled device in the target space. The timing module is configured to start a timer, and when the timer value reaches a set time, return to the step of obtaining the area state data corresponding to each unit area in the target space.
[0011] In an exemplary embodiment, the device control module 970 includes: an instruction generation unit, configured to generate device control instructions corresponding to each of the controlled devices based on environmental adjustment data of each of the controlled devices; an adjustment state detection unit, configured to detect whether the device state of each of the controlled devices is an adjustable state; and an instruction sending unit, configured to send the corresponding device control instructions to the controlled devices in the adjustable state, so that each of the controlled devices in the target space performs a corresponding action in response to the corresponding device control instructions.
[0012] In an exemplary embodiment, the instruction sending unit includes: a priority determination subunit, configured to determine the priority of each controlled device based on the deviation between the environmental state of the unit area associated with each controlled device and the target environmental state and / or the pedestrian flow in the unit area associated with each controlled device; and an instruction sending subunit, configured to send corresponding device control instructions to the controlled devices in the adjustable state according to the priority of each controlled device.
[0013] In one exemplary embodiment, the controlled device includes a light adjustment device; the apparatus further includes: if environmental deviation data of the unit area indicates that the environmental state of the unit area does not meet the target environmental state, then notifying an open state detection module; if so, notifying a light object control module. The open state detection module is used to detect whether the state of the light object controlled by the light adjustment device is open; the light object adjusts the brightness and / or temperature of the target environmental state through state switching between open and closed states; the light object control module is used to control the light adjustment device to perform a closing action on the light object.
[0014] In one exemplary embodiment, the controlled device is an environmental control device, and the sensing device is an environmental sensing device.
[0015] According to one aspect of this application, an electronic device includes: at least one processor, at least one memory, and at least one communication bus, wherein a computer program is stored in the memory, and the processor reads the computer program from the memory via the communication bus; when the computer program is executed by the processor, it implements the device control method described above.
[0016] According to one aspect of this application, a storage medium stores a computer program thereon, which, when executed by a processor, implements the device control method described above.
[0017] According to one aspect of this application, a computer program product includes a computer program stored in a storage medium, a processor of a computer device reads the computer program from the storage medium, and the processor executes the computer program, causing the computer device to implement the device control method as described above when executed.
[0018] The beneficial effects of the technical solution provided in this application are:
[0019] In the above technical solution, after obtaining the regional state data corresponding to each unit area in the target space, the environmental deviation data of each unit area can be obtained. This determines the deviation between the environmental state of each unit area and the target environmental state. Based on the determined deviation, the environmental adjustment data of each controlled device in the target space is obtained. This further determines the actions performed by each controlled device to adjust the environmental state of the associated unit area. Finally, the controlled devices in the target space are controlled to perform corresponding actions, so that the environmental state of each unit area meets the target environmental state. Thus, the environmental state of each unit area in the target space is automatically adjusted, avoiding the need for users to perform overly cumbersome configuration operations for the automatic control of multiple intelligent devices. This effectively solves the problem of overly cumbersome user configuration operations in the device control process of related technologies while improving the accuracy of intelligent devices in adjusting the environmental state. Attached Figure Description
[0020] To more clearly illustrate the technical solutions provided in this application, the accompanying drawings used in the description of the various embodiments of this application will be briefly introduced below.
[0021] Figure 1 This is a schematic diagram of the implementation environment according to the embodiments of this application;
[0022] Figure 2 This is a flowchart illustrating a device control method according to an exemplary embodiment;
[0023] Figure 3 yes Figure 2 A schematic diagram of each unit area in the target space and its associated smart devices in the corresponding embodiment;
[0024] Figure 3a yes Figure 2 A schematic diagram of the interface of an embodiment showing the target environment state configuration involved in the corresponding embodiment;
[0025] Figure 4 yes Figure 2 A flowchart of step 330 in one embodiment corresponds to the following example;
[0026] Figure 4a yes Figure 4A schematic diagram of the interface of an embodiment showing the configuration of the first weight data involved in the corresponding embodiment;
[0027] Figure 4b yes Figure 4 A schematic diagram of the interface of another embodiment showing the configuration of the first weight data involved in the corresponding embodiment;
[0028] Figure 5 yes Figure 2 A flowchart of step 350 in one embodiment corresponds to the following example;
[0029] Figure 6 This is a flowchart illustrating another device control method according to an exemplary embodiment;
[0030] Figure 7 This is a schematic diagram illustrating the specific implementation of a device control method in an application scenario;
[0031] Figure 8 This is a structural block diagram of a device control apparatus according to an exemplary embodiment;
[0032] Figure 9 This is a hardware structure diagram of a server according to an exemplary embodiment;
[0033] Figure 10 This is a structural block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0034] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0035] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this application means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0036] As mentioned earlier, in some large open spaces, such as offices and lecture halls, deploying a single smart device may not be enough to achieve the actual environmental condition adjustment goals. In order to improve the accuracy of smart devices in adjusting the environmental condition, it is often necessary to deploy multiple smart devices to achieve a good environmental condition adjustment effect.
[0037] On the one hand, when users face multiple smart devices in a large space, the configuration process for achieving automatic control of these devices is often overly cumbersome. Furthermore, if the deployment of smart devices changes or new user needs arise, reconfiguration cannot be performed in a simple and easy-to-understand manner, lacking scalability and versatility, thus increasing labor costs.
[0038] On the other hand, due to the non-standardization of large spaces, such as the different models, sizes, and installation locations of multiple smart devices, users find it difficult to fully understand the environmental conditions of the large space and make appropriate device control operations. Furthermore, as the number of smart devices increases, different smart devices may have overlapping effects in different areas of the large space, making reasonable and accurate control behavior increasingly difficult. This also hinders the expansion and maintenance of automatic control equipment and further increases labor costs.
[0039] As can be seen from the above, even with improved accuracy in regulating environmental conditions, the related technologies still suffer from the drawback of overly cumbersome user configuration operations during device control. This is especially true for device control in large spaces, where user involvement is relatively high, resulting in high labor costs.
[0040] Therefore, the device control method provided in this application enables accurate automatic adjustment of the target environment state in the target space, thereby avoiding overly cumbersome configuration operations for users to automatically control multiple smart devices. Accordingly, the device control method is applicable to device control devices, which can be deployed on electronic devices, such as gateways, servers, or user terminals.
[0041] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0042] Figure 1 This is a schematic diagram of the implementation environment involved in a device control method. The implementation environment includes a user terminal 110, a smart device 130, a central control device 150, a server 170, and a router 190.
[0043] Specifically, user terminal 110, which can also be considered as user terminal or terminal, can deploy (or install) the client associated with smart device 130. This user terminal 110 can be an electronic device such as a smartphone, tablet, laptop, desktop computer, smart control panel, or other device with display and control functions, without limitation here.
[0044] The client, associated with the smart device 130, is essentially where the user registers an account and configures the smart device 130. For example, the configuration includes adding a device identifier to the smart device 130, so that when the client runs on the user terminal 110, it can provide the user with functions such as device display and device control of the smart device 130. This client can be in the form of an application or a web page. Correspondingly, the interface for displaying the device on the client can be in the form of a program window or a web page, and there is no limitation here.
[0045] The smart device 130 is deployed in the central control device 150 and communicates with the central control device 150 through its own configured communication module, thereby being controlled by the central control device 150. For example, the central control device 150 can be a gateway. It should be understood that "smart device 130" generally refers to one of multiple smart devices 130. This application embodiment only uses smart device 130 as an example; that is, this application embodiment does not limit the number or type of smart devices deployed in the central control device 150. In one application scenario, the smart device 130 accesses the central control device 150 through a local area network, thus being deployed in the central control device 150. The process of the smart device 130 accessing the central control device 150 through the local area network includes: the central control device 150 first establishes a local area network, and the smart device 130 joins the local area network established by the central control device 150 by connecting to it. This local area network includes, but is not limited to, ZIGBEE or Bluetooth. Among them, the smart device 130 can be a smart printer, smart fax machine, smart camera, smart air conditioner, smart door lock, smart light, or electronic devices such as human body sensor, door and window sensor, temperature and humidity sensor, water immersion sensor, natural gas alarm, smoke alarm, wall switch, wall socket, wireless switch, wireless wall sticker switch, cube controller, curtain motor, etc., equipped with a communication module.
[0046] The interaction between user terminal 110 and smart device 130 can be achieved through a local area network (LAN) or a wide area network (WAN). In one application scenario, user terminal 110 establishes a wired or wireless communication connection with central control device 150 via router 190. This connection could be, for example, wired or wireless methods including but not limited to Wi-Fi, allowing user terminal 110 and central control device 150 to be deployed on the same LAN. This enables user terminal 110 to interact with smart device 130 via the LAN. In another application scenario, user terminal 110 establishes a wired or wireless communication connection with central control device 150 via server 170. This connection could be, for example, wired or wireless methods including but not limited to 2G, 3G, 4G, 5G, and Wi-Fi, allowing user terminal 110 and central control device 150 to be deployed on the same WAN. This enables user terminal 110 to interact with smart device 130 via the WAN.
[0047] The server-side 170 can also be considered as the cloud, cloud platform, platform side, server side, etc. This server-side 170 can be a single server, a server cluster consisting of multiple servers, or a cloud computing center consisting of multiple servers, in order to better provide backend services to a massive number of user terminals 110. For example, backend services include device control services.
[0048] In one application scenario, based on the various smart devices 130 in the target space, the server 170 provides device control services to the user.
[0049] Specifically, as the smart device 130 interacts with the central control device 150, the smart device 130 reports device status data to the central control device 150, and the central control device 150 forwards the data to the server 170.
[0050] For the server 170, after receiving the device status data reported by the smart device 130, it can obtain the regional status data corresponding to each unit area in the target space, thereby determining the environmental deviation data of each unit area, and based on the environmental deviation data of each unit area, determining the environmental adjustment data of each smart device 130 in the target space, thereby controlling the smart device 130 in the target space to perform corresponding actions.
[0051] Please see Figure 2 This application provides a device control method, which is applicable to electronic devices, specifically electronic devices that can be... Figure 1 The server-side 170 in the implementation environment shown can also be... Figure 1 The central control device 150 and user terminal 110 are shown in the implementation environment.
[0052] In the following method embodiments, for ease of description, the execution subject of each step of the method is an electronic device, but this does not constitute a specific limitation.
[0053] like Figure 2 As shown, the method may include the following steps:
[0054] Step 310: Obtain the regional state data corresponding to each unit region in the target space.
[0055] First, it should be noted that the target space refers to the space where environmental conditions need to be adjusted. This target space can be a relatively large open space, such as an office, lecture hall, or cinema, or a relatively small enclosed space, such as a living room or bedroom in a house. There is no limit to the area of the target space. The environmental conditions include, but are not limited to, temperature, humidity, and brightness.
[0056] The inventors recognized that users, especially when implementing automated control of smart devices in large spaces, often struggle to fully understand the environmental conditions and make appropriate control decisions. Furthermore, as the number of smart devices deployed in a large space increases, different devices may interact and influence each other in different areas, making accurate and reasonable control increasingly difficult. Therefore, this embodiment proposes a spatial unitization approach to provide device control services based on the smallest unit space, thus simplifying the process. Specifically, spatial unitization involves dividing the target space into multiple unit regions, each considered the smallest unit space within that target space. The division rules can be flexibly set according to the actual needs of the application scenario. For example, the division can be based on equal unit division (each unit region has the same area), or it can be based on the number of associated smart devices (each unit region has the same number of associated smart devices). No specific limitations are imposed here. It should be noted that the association of a unit region with a smart device can be considered as some or all of the smart device being located within the unit region.
[0057] In one possible implementation, the intelligent devices associated with the unit area include controlled devices and sensing devices. The controlled devices are used to perform actions to adjust the environmental state of the associated unit area, and the sensing devices are used to sense the environmental state of the associated unit area. For example, the controlled devices can be environmental control devices, such as air conditioners, fans, curtain motors, etc.; the sensing devices can be environmental sensing devices, such as temperature and humidity sensors, light sensors, door and window sensors, etc.
[0058] Figure 3 A schematic diagram illustrating the various unit areas within a target region and their associated smart devices in one embodiment is shown. Figure 3 In this framework, following the rule of equal unit division, the target space is divided into six unit regions: Region 1, Region 2, Region 3, Region 4, Region 5, and Region 6. Different unit regions are associated with different intelligent devices. For example, Region 1 is associated with Sensor 1, Sensor 5, and Air Conditioner 1; Region 4 is associated with Sensor 1, Sensor 3, and Air Conditioner 3. It is worth noting that the unit regions associated with the same intelligent device may differ. For instance, Sensor 1 is located at the intersection of Regions 1, 2, 4, and 5, meaning it is associated with each of these regions. Of course, different intelligent devices may also be associated with the same unit region; for example, Air Conditioner 1 and Air Conditioner 2 are both associated with Region 2.
[0059] It should be noted that, Figure 3 The circle represents the effective sensing / control range of a smart device. For example, for air conditioner 1, the circle represents its effective temperature control range; for sensor 1, the circle represents its effective sensing range. In other words, a smart device includes at least a controlled device and a sensing device. The controlled device refers to a smart device used to regulate environmental conditions, such as an air conditioner, with its effective control range represented by a circle. The sensing device refers to a smart device used to sense environmental conditions, such as a sensor, with its effective sensing range represented by a circle.
[0060] Secondly, the regional status data is used to indicate the environmental status of the corresponding unit region.
[0061] by Figure 3 Taking region 1 as an example, the associated controlled devices for region 1 include air conditioner 1, and the associated sensing devices include sensor 1 and sensor 5. Sensor 1 and sensor 5 can sense the environmental state of region 1, and air conditioner 1 can adjust the environmental state of region 1. It should be understood that in order for air conditioner 1 to better adjust the environmental state of region 1, it is first necessary to understand the current environmental state of region 1, that is, to sense the environmental state of region 1 through sensor 1 and / or sensor 5.
[0062] Therefore, the regional status data corresponding to a unit area is essentially formed by the device status data of the sensing devices associated with that unit area, in order to understand the current environmental status of that unit area. (Continuing with...) Figure 3 Taking region 1 as an example, the region status data for region 1 includes the device status data of sensor 1 and / or the device status data of sensor 5. Further assuming that sensor 1 and sensor 5 are temperature sensors, the device status data is used to indicate the temperature of region 1 sensed by the temperature sensor. In this case, the region status data corresponding to region 1 is used to indicate the temperature of region 1.
[0063] The acquisition of the regional status data corresponding to the unit area can come from the real-time device status data reported by the sensing devices associated with the unit area, or from the device status data pre-stored in the electronic device, which is reported by the sensing devices associated with the unit area within a historical time period. Specifically, if the electronic device is a gateway, the device status data of the sensing devices is directly reported to the gateway; if the electronic device is a server, the device status data of the sensing devices is reported to the server through the gateway. This embodiment does not impose any limitations on this.
[0064] Step 330: Determine the environmental deviation data for each unit area based on the regional status data corresponding to each unit area.
[0065] The environmental deviation data indicates the deviation between the environmental state of a unit area and the target environmental state. The target environmental state refers to the environmental state that the user expects the target space / unit area to achieve, essentially reflecting the user's preference for the environmental state of the target space / unit area. For example, the target environmental state could mean that the user expects the temperature of the target space / unit area to be within the target temperature range of 24℃~26℃, or it could mean that the user expects the temperature of the target space / unit area to be at the target temperature of 26℃; no limitation is made here. This target environmental state can be pre-configured personalized according to the user's preference for the environmental state of the target space / unit area. Figure 3a This illustrates a schematic diagram of the interface for configuring the target environment state in one embodiment. Figure 3a The image shows a region configuration interface. In this interface, users can add new unit regions in the target space using the "Add Region" control 301 and delete corresponding unit regions (e.g., region 4) using the "Delete" control 302. Furthermore, users can configure a uniform target environment state (i.e., target temperature range 26℃~27℃) for all unit regions (regions 1 to 5) in the target space using the "Global Preferences" control 303, and can also configure a target environment state (i.e., target temperature range 26℃~27℃) individually for a corresponding unit region (e.g., region 3) using the "Edit" control 304. In addition... Figure 3 In addition, users can also access the device association interface from the area configuration interface through the “Associate Device-5” control 305, so that they can modify the smart devices associated with the corresponding unit area in the target space in the device association interface, such as modifying the name of the smart device, modifying the device category of the smart device, modifying whether the smart device is allowed to be associated with the unit area, etc.
[0066] After obtaining the regional status data corresponding to each unit area, we can understand the environmental status of each unit area. Then, by combining the target environmental status, we can determine the deviation between the environmental status of each unit area and the target environmental status, that is, obtain the environmental deviation data of each unit area.
[0067] Still with Figure 3 For example, in region 1, if the user expects the temperature of the target space / unit area to be within the target temperature range of 24℃~26℃, and the region status data corresponding to region 1 indicates that the environmental status of region 1 is 29℃, then the environmental deviation data of region 1 indicates that the environmental status of region 1 deviates from the target environmental status by 3℃.
[0068] Step 350: Determine the environmental adjustment data of each controlled device in the target space based on the environmental deviation data of each unit area.
[0069] Among them, environmental control data is used to indicate the actions performed by the controlled equipment to adjust the environmental state of the associated unit area.
[0070] As mentioned earlier, the environmental deviation data for Region 1 indicates that the environmental state of Region 1 deviates from the target environmental state by 3°C. Figure 3 In this context, the controlled equipment associated with region 1 includes air conditioner 1. It can be understood that adjusting the environmental state of region 1 to meet the target environmental state essentially means controlling air conditioner 1 to lower the temperature by 3°C. Similarly, adjusting the environmental state of region 2 essentially means controlling air conditioners 1 and 2 associated with region 2 to perform corresponding actions.
[0071] Based on this, after determining the environmental deviation data of each unit area, we can understand the deviation between the environmental state of each unit area and the target environmental state. In order to ensure that the environmental state of each unit area can meet the effect of the target environmental state, it is necessary to control the controlled equipment associated with each unit area to perform corresponding actions, thereby compensating for the deviation between the environmental state of each unit area and the target environmental state, and thus obtaining the environmental adjustment data of each controlled equipment in the target space.
[0072] It should be noted that the environmental control data of each controlled device in the target space can also be understood as the environmental control data of the controlled devices associated with each unit area. For example, such as Figure 3 As shown, when air conditioner 1 is located at the boundary between region 1 and region 2, the environmental control data of air conditioner 1 in the target space refers to both the environmental control data of air conditioner 1 associated with region 1 and the environmental control data of air conditioner 1 associated with region 2.
[0073] Step 370: Based on the environmental adjustment data of each controlled device in the target space, control the controlled devices in the target space to perform corresponding actions.
[0074] Specifically, based on the environmental adjustment data of each controlled device in the target space, a device control command corresponding to each controlled device is generated, and the device control command is sent to the corresponding controlled device, so that each controlled device in the target space responds to the corresponding device control command and performs the corresponding action.
[0075] Using the previous example, for an electronic device, if the environmental adjustment data of air conditioner 1 indicates that air conditioner 1 should perform the action of reducing the temperature by 3°C in order to adjust the environmental state of area 1, then the corresponding device control command for air conditioner 1 is generated as "reduce the temperature by 3°C", and the device control command is sent to air conditioner 1, thereby controlling air conditioner 1 to reduce the temperature by 3°C.
[0076] It is understood that in some embodiments, electronic devices can send device control commands to each controlled device synchronously via multicast, while in other embodiments, electronic devices can send corresponding device control commands to each controlled device sequentially via unicast. Based on this, in one possible implementation, corresponding device control commands are sent to each controlled device according to their priority. The priority of each controlled device can be manually set by the user according to the actual needs of the application scenario, or it can be set automatically. Taking automatic setting as an example, priorities can be set for each controlled device based on an adjustment threshold. For example, if air conditioner 1 needs to lower the temperature by 3°C and air conditioner 2 needs to lower the temperature by 1°C, and the adjustment threshold is 1°C, then air conditioner 1 has a higher priority than air conditioner 2. That is, the greater the deviation between the environmental state of the unit area associated with the controlled device and the target environmental state, the higher the priority of the controlled device. Alternatively, priorities can be set for each controlled device by combining human body sensors and / or image acquisition devices (such as cameras). That is, based on the human body sensors and / or cameras acquiring the pedestrian traffic in each unit area, the higher the pedestrian traffic, the higher the priority of the controlled device associated with that unit area.
[0077] In this approach, the priorities of each controlled device differ. On the one hand, higher-priority controlled devices can participate in the adjustment of the environmental state of their associated unit areas first. For example, each unit area is only allowed to be adjusted by the highest-priority controlled device. On the other hand, the environmental state of the unit area associated with a higher-priority controlled device is adjusted first, which helps to improve the flexibility of device control in each unit area of the target space, thereby improving the user experience.
[0078] In one possible implementation, before sending the corresponding device control command to each controlled device, it is checked whether the device status of each controlled device is adjustable. An adjustable state means that the controlled device can respond to the device control command and perform the corresponding action; conversely, a non-adjustable state means that the controlled device cannot respond to the device control command and therefore cannot perform the corresponding action.
[0079] Taking air conditioners as an example, the adjustable temperature range of an air conditioner is usually set between 18℃ and 30℃. If the temperature of the air conditioner has reached the lower limit of the adjustable temperature range of 18℃ or the upper limit of 30℃, the air conditioner is considered to be in an unadjustable state. Otherwise, if the temperature of the air conditioner is still within the adjustable temperature range, the air conditioner is considered to be in an adjustable state.
[0080] Based on this, after determining whether the device status of each controlled device is adjustable, on the one hand, corresponding device control commands are sent to the controlled devices in the adjustable state; on the other hand, sending corresponding device control commands to the controlled devices in the non-adjustable state is stopped. Of course, in other embodiments, the priority of each controlled device can also be considered when sending corresponding device control commands to the controlled devices in the adjustable state. For example, for a certain unit area, if the highest priority controlled device is non-adjustable, then the second highest priority controlled device is selected for adjustment. This is not a specific limitation.
[0081] This approach avoids sending control commands to non-adjustable controlled devices, which helps improve the success rate of device control, increases the efficiency of device control, and further enhances the user experience.
[0082] Through the above process, the environmental state of each unit area in the target space is automatically adjusted, avoiding the need for users to perform overly cumbersome configuration operations for the automatic control of multiple intelligent devices. This effectively solves the problem of overly cumbersome user configuration operations during the device control process in related technologies.
[0083] Please see Figure 4 In one exemplary embodiment, step 330 may include the following steps:
[0084] Step 331: Based on the sensing devices associated with each unit area, determine the first weight data of the sensing devices for the associated unit areas.
[0085] The first weight data for the sensing device, relative to its associated unit area, indicates the device's influence over that area. It can be understood that the greater the influence, the larger the first weight data. For example, the greater the proportion of the sensing device's effective sensing range within the associated unit area, the greater its influence, and the larger the second weight data.
[0086] The first weighting data is pre-configured for calculating the environmental deviation data of each unit area and stored in electronic devices. Figure 4a and Figure 4b This illustrates a schematic diagram of the interface for configuring the first weighted data in one embodiment. Figure 4aThe image shows the device association interface. In this interface, users can use the "Add Device" control 401 to add associated sensing devices to each unit area, and use the "Delete" control 402 to delete sensing devices (e.g., device C2) associated with a corresponding unit area (e.g., area 1). Users can also use the "Edit" control 403 to access the device configuration interface from the device association interface. Figure 4b As shown, in the device configuration interface, users can configure the name of the sensing device (e.g., T3), the device category (e.g., temperature sensor), and whether the sensing device is associated with a unit area (e.g., area 1 and area 2), as well as its first weight data for the associated unit area (e.g., the first weight data for area 1 is 0.6).
[0087] As mentioned earlier, sensing devices refer to intelligent devices used to sense environmental conditions. Please refer back to [link to previous section]. Figure 3 The sensing devices associated with each unit area are sensors. Taking sensor 1 as an example, in... Figure 3 In this example, the unit regions associated with sensor 1 include region 1, region 2, region 4, and region 5. Therefore, the first weight data for sensor 1 regarding region 1 can be configured as 0.5, the first weight data for sensor 1 regarding region 2 can be configured as 0.2, the first weight data for sensor 1 regarding region 4 can be configured as 0.2, and the first weight data for sensor 1 regarding region 5 can be configured as 0.1. It is worth noting that the sum of the first weight data for each region for sensor 1 does not exceed 1. In other words, the sum of the first weight data for the sensing device regarding its associated unit regions does not exceed 1; in short, the sum of the first weight data for a single sensing device externally does not exceed 1.
[0088] As can be seen from the above, in this embodiment, the size of the first weight data is related to the area ratio of the effective sensing range of the sensing device in the associated area. The larger the area ratio of the effective sensing range in the associated area, the larger the first weight data should be. Of course, in other embodiments, the configuration rules of the first weight data can also be flexibly set by the user according to the actual needs of the application scenario, which does not constitute a specific limitation.
[0089] After configuring the first weight data, it can be read from the electronic device when calculating the environmental deviation data of each unit area.
[0090] Step 333: Calculate the deviation between the regional state data and the target environmental state data corresponding to each unit area, and combine it with the first weight data of the sensing devices associated with each unit area to obtain the environmental deviation data of each unit area.
[0091] The target environmental state data can be flexibly set according to the actual needs of the application scenario. This target environmental state data is used to indicate the target environmental state, which can refer to the environmental state of the target space or the environmental state of each unit area. In one possible implementation, the target environmental state data includes either the target temperature or the target temperature range.
[0092] Still with Figure 3 For example, in region 1, Figure 3 In the diagram, region 1 includes sensor 1 and sensor 5. Therefore, the region status data corresponding to region 1 includes the device status data of sensor 1 (sensing a temperature of 29°C in region 1) and the device status data of sensor 5 (sensing a temperature of 28°C in region 1).
[0093] Assuming the target environmental state data is a target temperature range of 24℃~26℃, and assuming that the first weight data of sensor 1 for region 1 is 0.5 and the first weight data of sensor 5 for region 1 is 0.2, based on this, the environmental deviation data D1 of region 1 is calculated according to the following formula (1):
[0094] D1=(26℃-29℃)×0.5+(26℃-28℃)×0.2=-1.9℃(1).
[0095] Therefore, based on the environmental deviation data D1 of region 1, it can be understood that the temperature of region 1 deviates from the target temperature range by 1.9℃, which means that region 1 currently has a cooling requirement.
[0096] It is worth mentioning that the sum of the first weight data of the sensing devices does not exceed 1. However, the sum of the first weight data of the sensing devices associated with a unit area may exceed 1. In this case, compared with the sum of the first weight data of the sensing devices associated with a unit area being less than 1, the calculation method of the environmental deviation data of each unit area will be different.
[0097] In one possible implementation, if the first weight data of each sensing device associated with a unit area is less than 1, the environmental deviation data of the unit area is calculated by weighted summation, as shown in the above calculation formula (1); in another possible implementation, if the first weight data of each sensing device associated with a unit area is greater than or equal to 1, the environmental deviation data of the unit area is calculated by weighted average, as shown in the following calculation formula (2).
[0098] Specifically, in Figure 3 In the diagram, region 4 includes sensor 1 and sensor 3. Therefore, the region status data corresponding to region 4 includes the device status data of sensor 1 (sensing a temperature of 29°C in region 4) and the device status data of sensor 3 (sensing a temperature of 28°C in region 4).
[0099] Assuming the target environmental state data is a target temperature range of 24℃~26℃, and assuming that the first weight data of sensor 1 for region 4 is 0.5 and the first weight data of sensor 3 for region 4 is 0.6, the environmental deviation data D4 of region 4 is calculated according to the following formula (2):
[0100] D4=(26℃-29℃)×0.5 / (0.5+0.6)+(26℃-28℃)×0.6 / (0.5+0.6)=-2.45℃(2).
[0101] Therefore, based on the environmental deviation data D4 of region 4, it can be understood that the temperature of region 4 deviates from the target temperature range by 2.45℃, which means that region 4 also currently has a need for cooling.
[0102] It should be noted that, for the target environmental state data as the target temperature range, if the temperature of the area sensed by the sensing device is greater than the upper limit of the target temperature range of 26°C, the deviation is calculated by subtracting the area state data from the target environmental state data. Conversely, if the temperature of the area sensed by the sensing device is less than the lower limit of the target temperature range of 24°C, the deviation is calculated by subtracting the target environmental state data from the area state data. In addition, for the environmental deviation data of a unit area, when the environmental deviation data is positive, it indicates that the unit area has a heating requirement; conversely, when the environmental deviation data is negative, it indicates that the unit area has a cooling requirement.
[0103] Under the above embodiments, the spatial unitization processing method can be flexibly applied to various types of target spaces, transforming the control of equipment in large spaces into the control of equipment in the smallest unit spaces. That is, based on the environmental deviation data of each unit area, the environmental state adjustment needs of each unit area are understood, so that reasonable and accurate equipment control behavior can be realized for various types of target spaces.
[0104] Please see Figure 5 In one exemplary embodiment, step 350 may include the following steps:
[0105] Step 351: Determine the second weight data of each controlled device for the associated unit area based on the ratio between the effective control range of each controlled device and the associated unit area.
[0106] The second weight data for the controlled device relative to its associated unit area indicates the influence of the controlled device on that unit area. It can be understood that the greater the influence, the larger the second weight data. For example, the greater the proportion of the controlled device's effective control range within the associated unit area, the greater its influence, and the larger the second weight data.
[0107] Similarly, the first weighted data for the sensing device is for the associated unit area, while the second weighted data is pre-configured and stored in the electronic device for calculating the environmental adjustment data of each controlled device in the target space. As mentioned earlier, the controlled device refers to an intelligent device used to adjust the environmental state; please refer back to [link to previous section]. Figure 3 The controlled equipment associated with each unit area is an air conditioner. Taking air conditioner 1 as an example, in... Figure 3 In this example, the unit areas associated with air conditioner 1 include area 1 and area 2. Therefore, the second weight data of air conditioner 1 for area 1 can be configured as 0.6, and the second weight data of air conditioner 1 for area 2 can be configured as 0.3. It is worth mentioning that the sum of the second weight data of air conditioner 1 for each area does not exceed 1. In other words, the sum of the second weight data of the controlled device for its associated unit areas does not exceed 1. In short, the sum of the second weight data of a single controlled device to the outside world does not exceed 1.
[0108] As can be seen from the above, in this embodiment, the size of the second weight data is related to the area ratio of the effective adjustment range of the controlled device in the associated region. The larger the area ratio of the effective adjustment range in the associated region, the larger the second weight data should be. Of course, in other embodiments, the configuration rules of the second weight data can also be flexibly set by the user according to the actual needs of the application scenario, which does not constitute a specific limitation.
[0109] After configuring the second weight data, it is possible to read the second weight data from the electronic device when calculating the environmental adjustment data of each controlled device in the target space.
[0110] This approach can flexibly respond to changes in smart devices within the target space / unit area. For smart devices, only the configuration of the first or second weight data is required, without the need for users to perform complex reconfiguration, which simplifies the user's configuration process.
[0111] Step 353: Based on the environmental deviation data of each unit area and the second weight data of the controlled equipment associated with each unit area, calculate the environmental adjustment data of each controlled equipment in the target space.
[0112] by Figure 3 For example, in the case of air conditioning 1, Figure 3 In the diagram, the unit regions associated with air conditioner 1 include region 1 and region 2. It is assumed that the environmental deviation data for region 1 is -2.45℃ and the environmental deviation data for region 2 is -3℃. It is also assumed that the second weight data for air conditioner 1 for region 1 is 0.6 and the second weight data for air conditioner 1 for region 2 is 0.3.
[0113] Therefore, the environmental adjustment data AD1 of air conditioner 1 is calculated according to the following formula (3):
[0114] AD1=(-2.45℃×0.6)+(-3℃×0.3)=-2.37℃(3).
[0115] Therefore, based on the environmental adjustment data AD1 of air conditioner 1, it can be understood that in order to adjust the environmental state of associated area 1 and area 2, air conditioner 1 needs to perform the action of reducing the temperature by 2.37°C, so that the environmental state of associated area 1 and area 2 can meet the target environmental state.
[0116] With the cooperation of the above embodiments, a spatial unitization processing method is realized, which transforms the control of equipment in a large space into the control of equipment in the smallest unit space. That is, the environmental state of each unit area is adjusted based on the environmental adjustment data of each controlled device in the target space, thereby realizing reasonable and accurate equipment control for various target spaces.
[0117] Please see Figure 6 In an exemplary embodiment, prior to step 370, the method may further include the following steps:
[0118] Step 510: Check whether the target space meets the periodic control conditions.
[0119] Among them, the periodic control condition is used to indicate whether the electronic device periodically adjusts the environmental state of each unit area in the target space.
[0120] The periodic control condition can be flexibly set according to the actual needs of the application scenario. In one possible implementation, the periodic control condition can be set to the target space being occupied or the unit area being occupied, that is, if the target space is occupied or the unit area is occupied, the target space is considered to meet the periodic control condition; in another possible implementation, the periodic control condition can be set to at least one smart device in the target space and / or unit area being turned on, that is, if at least one smart device in the target space and / or unit area is turned on, the target space is considered to meet the periodic control condition.
[0121] If the target space does not meet the periodic control conditions, then step 530 is executed, instructing the electronic device to periodically adjust the environmental state of each unit area in the target space.
[0122] If the target space meets the periodic control conditions, then step 370 is executed, that is, based on the environmental adjustment data of each controlled device in the target space, the controlled devices in the target space are controlled to perform corresponding actions, and then step 550 is entered, instructing the electronic device to periodically adjust the environmental state of each unit area in the target space.
[0123] Step 530: Stop the controlled devices in the target space from performing corresponding actions.
[0124] Step 550: Start the timer.
[0125] When the timer reaches the set time, return to step 310, which is to obtain the regional state data corresponding to each unit area in the target space, and continue to adjust the environmental state of each unit area based on the regional state data corresponding to each unit area.
[0126] The time setting can be flexibly set according to the actual needs of the application scenario. For example, the time setting can be set to 10 minutes, without any specific limitation.
[0127] In the above process, the periodic automatic adjustment of environmental conditions can not only control each smart device reasonably and accurately, but also avoid excessive user intervention. It also avoids the cumbersome configuration operations that users would have to perform for the automatic control of multiple smart devices, effectively reducing labor costs and improving the user experience.
[0128] Figure 7 This is a schematic diagram illustrating the specific implementation of a device control method in an application scenario. In this scenario, the controlled devices include air conditioners and lighting control devices. Sensing devices include temperature sensors and light sensors. The various unit areas within the target space and the target environmental state are pre-configured. The environmental state of each unit area refers to its temperature, and the target environmental state is represented by a target temperature range of 24℃ to 26℃. The lighting control devices include curtain control devices, and correspondingly, the objects receiving light include curtains.
[0129] In step 701, based on the regional state data corresponding to each unit region in the target space, the temperature control requirements of each unit region are determined. The temperature control requirements of each unit region are represented by the environmental deviation data of each unit region. For example, if the environmental deviation data of a certain unit region indicates that the temperature of that unit region is less than the lower limit of the target temperature range, then the temperature control requirement of that unit region is determined to be a heating requirement; or, if the environmental deviation data of a certain unit region indicates that the temperature of that unit region is greater than the upper limit of the target temperature range, then the temperature control requirement of that unit region is determined to be a cooling requirement.
[0130] In step 702, for a unit area with cooling requirements, it is detected whether the status of the lighting object controlled by the lighting adjustment device associated with that unit area is in the "on" state. If yes, proceed to step 703; otherwise, proceed to step 704.
[0131] In step 703, the lighting adjustment device is controlled to shut down the illuminated object, and then the process proceeds to step 704. In other words, for a unit area requiring cooling, if the lighting intensity in that unit area is strong and / or the illuminated object is on, the illuminated object can be shut down first. By reducing the lighting intensity, the cooling requirement is met to some extent, while also achieving energy-saving requirements in equipment control.
[0132] In step 704, based on the temperature control requirements of each unit area, the adjustment requirements of the air conditioners associated with each unit area are determined. The adjustment requirements of each air conditioner are represented by its environmental adjustment data. For example, the environmental adjustment data of a certain air conditioner indicates that the air conditioner should lower the temperature by 3°C.
[0133] In step 705, assuming the adjustment threshold is 1°C, if the environmental adjustment data of the air conditioner indicates that the temperature reduction of the air conditioner is greater than 1°C, it is considered that the adjustment demand of the air conditioner meets the adjustment threshold, and the process proceeds to step 706. Otherwise, if the adjustment demand of the air conditioner does not meet the adjustment threshold, the adjustment demand of the air conditioner is ignored.
[0134] In step 706, it is detected whether the equipment status of each air conditioner that meets the adjustment threshold is in an adjustable state. If yes, proceed to step 707; otherwise, ignore the adjustment needs of air conditioners in an unadjustable state.
[0135] In step 707, based on the adjustment requirements of each air conditioner, equipment control commands corresponding to each air conditioner are generated. Then, the process proceeds to step 708.
[0136] In step 708, assuming the periodic control condition is that the air conditioner is in the on state, if the periodic control condition is met, the corresponding equipment control command is sent to each air conditioner in the on state, and the process returns to step 701. Conversely, if the periodic control condition is not met, the adjustment needs of each air conditioner are ignored, and the environmental state adjustment of each unit area is terminated. The sending of equipment control commands can be based on the priority of each air conditioner; for example, the air conditioner with the highest priority sends the equipment control command first.
[0137] In this application scenario, automated temperature control services are implemented, which periodically and automatically control the temperature of each unit area in the target space to maintain it within the target temperature range of 24℃~26℃. This is not only applicable to various types of target spaces, but also requires minimal user intervention, effectively solving the problems existing in the collaborative temperature control of large spaces with multiple intelligent devices.
[0138] Compared with related technologies, the device control schemes provided in the embodiments of this application have the following advantages:
[0139] (1) To meet the adjustment needs of multiple smart devices in a large space, modular device ownership is achieved, and collaborative self-adjustment of the large space is accomplished through fine-grained decoupling management;
[0140] (2) It enables automatic adjustment of the environmental status of each unit area in the target space, avoiding the need for users to perform overly complicated configuration operations for automatic control of multiple smart devices, and effectively reducing labor costs.
[0141] (3) It can flexibly respond to changes in the unit areas of the smart device in the target space, such as the movement, addition and deletion of the smart device. The smart device only needs to complete the configuration of the first weight data or the second weight data of the associated area, without the user having to reconfigure the complex linkage. The configuration has been well completed in terms of sinking and decoupling, which facilitates operation and maintenance management and further simplifies the user's configuration operation, which is conducive to reducing labor costs.
[0142] (4) There are no restrictions on the size of the space. It can be flexibly applied to various types of target spaces and can effectively solve the pain points of large spaces with multiple sensors and devices in coordinating and adjusting the environmental state.
[0143] The following are embodiments of the apparatus described in this application, which can be used to execute the device control method involved in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the method embodiments of the device control method involved in this application.
[0144] Please see Figure 8 This application provides a device control apparatus 900, including but not limited to: a status data acquisition module 910, a region adjustment determination module 930, a device adjustment determination module 950, and a device control module 970.
[0145] The status data acquisition module 910 is used to acquire the region status data corresponding to each unit region in the target space. The region status data is used to indicate the environmental status of the corresponding unit region.
[0146] The area adjustment determination module 930 is used to determine the environmental deviation data of each unit area based on the area status data corresponding to each unit area. The environmental deviation data is used to indicate the deviation between the environmental state of the unit area and the target environmental state.
[0147] The equipment adjustment determination module 950 is used to determine the environmental adjustment data of each controlled device in the target space based on the environmental deviation data of each unit area. The environmental adjustment data is used to instruct the controlled devices to perform actions to adjust the environmental state of the associated unit area.
[0148] The equipment control module 970 is used to control the controlled equipment in the target space to perform corresponding actions based on the environmental adjustment data of each controlled equipment in the target space.
[0149] In an exemplary embodiment, the region adjustment determination module 930 includes: a first weight determination unit and a deviation calculation unit.
[0150] The first weight determination unit is used to determine the first weight data of the sensing device for the associated unit area based on the sensing device associated with each unit area; the sensing device is used to sense the environmental state of the associated unit area.
[0151] The deviation calculation unit is used to calculate the deviation between the regional state data and the target environmental state data corresponding to each unit area, and combine it with the first weight data of the sensing devices associated with each unit area to obtain the environmental deviation data of each unit area.
[0152] In an exemplary embodiment, the device adjustment determination module 950 includes: a second weight determination unit and a data calculation unit.
[0153] The second weight determination unit is used to determine the second weight data of each controlled device for the associated unit area based on the ratio between the effective control range of each controlled device and the range of the associated unit area.
[0154] The data calculation unit is used to calculate the environmental adjustment data of each controlled device in the target space based on the environmental deviation data of each unit area and the second weight data of the controlled devices associated with each unit area.
[0155] In one exemplary embodiment, the device further includes a condition detection module, a stop control module, and a timing module.
[0156] The condition detection module is used to detect whether the target space meets the periodic control conditions. If not, it notifies the stop control module. If yes, it notifies the device control module 970 and the timing module.
[0157] The stop control module is used to stop the controlled device in the target space from performing corresponding actions.
[0158] The equipment control module 970 is used to control the controlled devices in the target space to perform corresponding actions based on the environmental adjustment data of each controlled device in the target space.
[0159] The timing module is used to start the timer, and when the timer value reaches the set time, it returns to the step of obtaining the region status data corresponding to each unit region in the target space.
[0160] In an exemplary embodiment, the device control module 970 includes: an instruction generation unit, an adjustment state detection unit, and an instruction sending unit.
[0161] The instruction generation unit is used to generate equipment control instructions corresponding to each of the controlled devices based on the environmental adjustment data of each of the controlled devices.
[0162] The adjustment state detection unit is used to detect whether the equipment state of each of the controlled devices is adjustable.
[0163] The instruction sending unit is used to send corresponding device control instructions to the controlled devices in the adjustable state, so that each of the controlled devices in the target space performs a corresponding action in response to the corresponding device control instructions.
[0164] In an exemplary embodiment, the instruction sending unit includes: a priority determination subunit and an instruction sending subunit.
[0165] The priority determination subunit is used to determine the priority of each controlled device based on the deviation between the environmental state of the unit area associated with each controlled device and the target environmental state and / or the pedestrian flow in the unit area associated with each controlled device.
[0166] The instruction sending subunit is used to send corresponding device control instructions to the controlled devices in the adjustable state according to the priority of each controlled device.
[0167] In one exemplary embodiment, the controlled device includes a light adjustment device. The apparatus further includes an on / off state detection module and a light object control module.
[0168] If the environmental deviation data of the unit area indicates that the environmental state of the unit area does not meet the target environmental state, then the activation state detection module is notified. If so, the lighting object control module is notified.
[0169] The status detection module is used to detect whether the status of the object being illuminated by the illumination adjustment device is in an "on" state. The object being illuminated adjusts the brightness and / or temperature of the target environment by switching between an "on" and "off" state.
[0170] The lighting object control module is used to control the lighting adjustment device to perform the action of turning off the lighting object.
[0171] In one exemplary embodiment, the controlled device is an environmental control device, and the sensing device is an environmental sensing device.
[0172] It should be noted that the device control device provided in the above embodiments is only illustrated by the division of the above functional modules when controlling the device. In actual applications, the above functions can be assigned to different functional modules as needed. That is, the internal structure of the device control device will be divided into different functional modules to complete all or part of the functions described above.
[0173] Furthermore, the device control apparatus and device control method embodiments provided in the above embodiments belong to the same concept, and the specific way in which each module performs operations has been described in detail in the method embodiments, and will not be repeated here.
[0174] Figure 9 A schematic diagram of the structure of a server is shown according to an exemplary embodiment. This server is suitable for... Figure 1 The server-side 170 shown is applicable to the device control method and is used in the implementation environment.
[0175] It should be noted that this server is merely an example adapted to this application and should not be construed as providing any limitation on the scope of use of this application. Nor should this server be interpreted as requiring or depending on any specific feature. Figure 9 One or more components of the exemplary server 2000 shown.
[0176] The hardware architecture of Server 2000 can vary significantly due to differences in configuration or performance, such as... Figure 9 As shown, the server 2000 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU) 270.
[0177] Specifically, power supply 210 is used to provide operating voltage for the various hardware devices on server 2000.
[0178] Interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. For example, to perform... Figure 1 The diagram illustrates the interaction between the central control device 150 and the server 170 in the implementation environment.
[0179] Of course, in other examples adapted in this application, interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input / output interface 235, and at least one USB interface 237, etc. Figure 9 As shown, this does not constitute a specific limitation.
[0180] The memory 250 serves as a carrier for resource storage and can be a read-only memory, random access memory, disk, or optical disk, etc. The resources stored on it include the operating system 251, application programs 253, and data 255, etc., and the storage method can be temporary storage or permanent storage.
[0181] The operating system 251 is used to manage and control the various hardware devices and application programs 253 on the server 200, so as to enable the central processing unit 270 to perform calculations and processing on the massive data 255 in the memory 250. It can be Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0182] Application 253 is a computer program that performs at least one specific task based on operating system 251, and may include at least one module ( Figure 9 (Not shown), each module may contain a computer program for server 2000. For example, the device control device may be considered as application 253 deployed on server 2000.
[0183] Data 255 can be photos, pictures, etc. stored on a disk, or it can be area status data, etc., stored in memory 250.
[0184] The central processing unit 270 may include one or more processors and is configured to communicate with the memory 250 via at least one communication bus to read computer programs stored in the memory 250, thereby performing operations and processing on massive amounts of data 255 stored in the memory 250. For example, a device control method may be implemented by the central processing unit 270 reading a series of computer programs stored in the memory 250.
[0185] Furthermore, this application can also be implemented through hardware circuits or a combination of hardware circuits and software. Therefore, the implementation of this application is not limited to any specific hardware circuit, software, or combination thereof.
[0186] Please see Figure 10 This application provides an electronic device 4000, which may include: a server, a gateway, a smartphone, a tablet computer, a desktop computer, a laptop computer, etc.
[0187] exist Figure 10 The electronic device 4000 includes at least one processor 4001, at least one communication bus 4002, and at least one memory 4003.
[0188] The processor 4001 and memory 4003 are connected, for example, via a communication bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.
[0189] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0190] The communication bus 4002 may include a path for transmitting information between the aforementioned components. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0191] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0192] The memory 4003 stores a computer program, and the processor 4001 reads the computer program stored in the memory 4003 through the communication bus 4002.
[0193] When the computer program is executed by the processor 4001, it implements the device control methods in the above embodiments.
[0194] Furthermore, this application provides a storage medium storing a computer program, which, when executed by a processor, implements the device control methods described in the above embodiments.
[0195] This application provides a computer program product including a computer program stored in a storage medium. A processor of a computer device reads the computer program from the storage medium and executes the computer program, causing the computer device to perform the device control methods described in the above embodiments.
[0196] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0197] The above are only some embodiments of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A device control method, characterized in that, The method includes: Acquire the regional state data corresponding to each unit region in the target space; the regional state data is used to indicate the environmental state of the corresponding unit region; Based on the deviation between the regional state data corresponding to each unit area and the target environmental state data, and in conjunction with the first weight data of the sensing devices associated with each unit area, the environmental deviation data of each unit area is determined; the environmental deviation data is used to indicate the deviation between the environmental state of the unit area and the target environmental state; the target environmental state data is used to indicate the target environmental state that the user expects the target space and / or unit area to achieve; the first weight data is related to the area ratio of the effective sensing range of the sensing device in the associated unit area; Based on the environmental deviation data of each unit area and the second weight data of the controlled devices associated with each unit area, the environmental adjustment data of each controlled device in the target space is determined; the environmental adjustment data is used to indicate the actions performed by the controlled devices to adjust the environmental state of the associated unit area; the second weight data is related to the area ratio of the effective adjustment range of the controlled devices in the associated unit area; Based on the environmental adjustment data of each controlled device in the target space, the controlled devices in the target space are controlled to perform corresponding actions.
2. The method as described in claim 1, characterized in that, The step of determining the environmental deviation data of each unit area based on the deviation between the regional state data corresponding to each unit area and the target environmental state data, and in conjunction with the first weight data of the sensing devices associated with each unit area, includes: Based on the sensing devices associated with each unit area, a first weight data for the sensing devices for the associated unit area is determined; the sensing devices are used to sense the environmental state of the associated unit area. The deviation between the regional state data and the target environmental state data corresponding to each unit area is calculated, and combined with the first weight data of the sensing devices associated with each unit area, the environmental deviation data of each unit area is obtained.
3. The method as described in claim 1, characterized in that, The step of determining the environmental adjustment data of each controlled device in the target space based on the environmental deviation data of each unit area and the second weight data of the controlled devices associated with each unit area includes: Based on the ratio between the effective control range of each controlled device and the range of the associated unit area, a second weight data for each controlled device relative to the associated unit area is determined; Based on the environmental deviation data of each unit area and the second weight data of the controlled equipment associated with each unit area, the environmental adjustment data of each controlled equipment in the target space is calculated.
4. The method as described in claim 1, characterized in that, Before controlling the controlled devices in the target space to perform corresponding actions based on the environmental adjustment data of each controlled device in the target space, the method further includes: Detect whether the target space meets the periodic control conditions; If not, then stop controlling the controlled device in the target space to perform the corresponding actions; If so, based on the environmental adjustment data of each controlled device in the target space, the controlled device in the target space is controlled to perform corresponding actions, and a timer is started. When the value of the timer reaches the set time, the process returns to the step of obtaining the area status data corresponding to each unit area in the target space.
5. The method according to any one of claims 1 to 4, characterized in that, The step of controlling the controlled devices in the target space to perform corresponding actions based on environmental adjustment data of each controlled device in the target space includes: Based on the environmental adjustment data of each of the controlled devices, generate device control commands corresponding to each of the controlled devices; Detect whether the device status of each of the controlled devices is adjustable; Send corresponding device control commands to the controlled devices in the adjustable state, so that each of the controlled devices in the target space performs a corresponding action in response to the corresponding device control commands.
6. The method as described in claim 5, characterized in that, Sending corresponding device control commands to the controlled device in the adjustable state includes: The priority of each controlled device is determined based on the deviation between the environmental state of the unit area associated with each controlled device and the target environmental state and / or the flow of people in the unit area associated with each controlled device. According to the priority of each controlled device, the corresponding device control command is sent to the controlled device in the adjustable state.
7. The method according to any one of claims 1 to 4, characterized in that, The controlled equipment includes a light adjustment device; After determining the environmental deviation data of each unit area based on the deviation between the regional state data corresponding to each unit area and the target environmental state data, and in conjunction with the regional weight data of the sensing devices associated with each unit area, the method further includes: If the environmental deviation data of the unit area indicates that the environmental state of the unit area does not meet the target environmental state, then it is detected whether the state of the illumination object controlled by the illumination adjustment device is in the on state; the illumination object adjusts the brightness and / or temperature of the target environmental state by switching between the on and off states; If so, the lighting adjustment device is controlled to perform the action of turning off the lighting object.
8. The method according to any one of claims 1 to 4, characterized in that, The controlled device is an environmental control device, and the sensing device is an environmental sensing device.
9. A device control system, characterized in that, The device includes: The status data acquisition module is used to acquire the regional status data corresponding to each unit region in the target space; the regional status data is used to indicate the environmental status of the corresponding unit region. The area adjustment determination module is used to determine the environmental deviation data of each unit area based on the deviation between the area state data corresponding to each unit area and the target environmental state data, and in combination with the first weight data of the sensing devices associated with each unit area; the environmental deviation data is used to indicate the deviation between the environmental state of the unit area and the target environmental state; the target environmental state data is used to indicate the target environmental state that the user expects the target space and / or unit area to achieve; the first weight data is related to the area ratio of the effective sensing range of the sensing device in the associated unit area; The equipment adjustment determination module is used to determine the environmental adjustment data of each controlled device in the target space based on the environmental deviation data of each unit area and the second weight data of the controlled devices associated with each unit area; the environmental adjustment data is used to instruct the controlled devices to perform actions to adjust the environmental state of the associated unit area; the second weight data is related to the area ratio of the effective adjustment range of the controlled device in the associated unit area; The equipment control module is used to control the controlled devices in the target space to perform corresponding actions based on the environmental adjustment data of each controlled device in the target space.
10. An electronic device, characterized in that, include: At least one processor, at least one memory, and at least one communication bus, wherein, The memory stores a computer program, and the processor reads the computer program from the memory via the communication bus; When the computer program is executed by the processor, it implements the device control method according to any one of claims 1 to 8.
11. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the device control method as described in any one of claims 1 to 8.