Equipment control method and device, equipment, storage medium and computer program product
By defining the mapping of spatial capabilities and equipment capabilities in equipment automation control, the problems of high configuration cost and low execution success rate of equipment automation control are solved, and efficient equipment control that automatically adapts to equipment changes is achieved.
Patent Information
- Application Number
- CN202411807382.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-11
AI Technical Summary
In the prior art, the automation control configuration cost of equipment is high and the execution success rate is low, especially when the equipment changes, it requires reconfiguration, which increases the user's workload and configuration cost.
By defining the mapping of spatial capabilities and equipment capabilities, the spatial triggering capabilities and equipment execution capabilities of the target space are determined, and the equipment changes are automatically adapted to equipment changes and automated control is achieved.
It saves user configuration costs, improves the execution success rate of device control, can automatically adapt to device changes, and reduces user operation difficulty and configuration complexity.
Smart Images

Figure CN119603093A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things. Specifically, the present application relates to a device control method, apparatus, electronic device, storage medium and computer program product. Background Art
[0002] With the rapid development of IoT technology, the types of smart devices are becoming more and more diverse, and have been widely used and promoted. For example, in a smart home scenario, smart fans and smart air conditioners can be deployed in the living room, and the temperature of the living room can be automatically adjusted through the automatic control of smart fans and smart air conditioners.
[0003] At present, the automatic control of equipment usually requires users to configure in advance. For example, in order to automatically control the smart fans and smart air conditioners deployed in the living room, users not only need to manually select the smart fans and smart air conditioners, but also need to manually set the two smart devices to perform what actions in what environment, so as to realize the automatic control of the smart fans and smart air conditioners and ultimately achieve the purpose of automatically adjusting the temperature of the living room.
[0004] However, once the device changes, some problems will occur in the above configuration method, which will eventually affect the automatic control of the device. For example, when the smart fan deployed in the living room is removed, the automatic control that relies on the smart fan and smart air conditioner to automatically adjust the living room temperature will not be executed correctly. At this time, the user needs to reconfigure the automatic adjustment of the living room temperature to rely only on the smart air conditioner deployed in the living room. This invisibly increases the user's configuration workload and configuration costs, and the execution success rate of device control is bound to be reduced. Summary of the invention
[0005] The embodiments of the present application provide a device control method, apparatus, electronic device, storage medium and computer program product, which can solve the problems of high user configuration cost and low execution success rate of device control in related technologies. The technical solution is as follows:
[0006] According to one aspect of the present application, a device control method includes: determining the spatial trigger capability of the target space; the spatial trigger capability is obtained by mapping the device trigger capability of at least one device under the target space; if it is monitored that the spatial trigger capability meets the spatial trigger condition in the configured spatial linkage scheme, then determining the spatial execution action associated with the spatial trigger condition in the spatial linkage scheme; the spatial execution action indicates the spatial execution capability of the target space when the spatial trigger condition is met; based on the mapping relationship between the device execution capability and the spatial execution capability of each of the devices under the target space, determining at least one target device whose device execution capability meets the spatial execution capability, and controlling each of the target devices to execute the spatial execution action respectively.
[0007] According to one aspect of the present application, a device control method comprises: displaying selectable spatial trigger conditions, and obtaining a selected spatial trigger condition in response to a selection operation triggered by the spatial trigger condition; the spatial trigger condition indicates a condition satisfied by a spatial trigger capability of a target space, and the spatial trigger capability is obtained by mapping a device trigger capability of at least one device in the target space; displaying selectable spatial execution actions, and obtaining a selected spatial execution action in response to a selection operation triggered by a spatial execution action; the spatial execution action indicates a spatial execution capability of the target space, and a mapping relationship exists between the spatial execution capability and the device execution capability of at least one device in the target space; generating a spatial linkage scheme for the target space based on the selected spatial trigger condition and the spatial execution action configuration, so that when the spatial trigger capability of the target space satisfies the spatial trigger condition in the spatial linkage scheme through the configured spatial linkage scheme, each target device in the target space is controlled to respectively execute a spatial execution action associated with the spatial trigger condition in the spatial linkage scheme; the target device refers to a device whose device execution capability meets the spatial execution capability.
[0008] According to one aspect of the present application, a device control device comprises: a capability determination module, which is used to determine the spatial trigger capability of a target space; the spatial trigger capability is obtained by mapping the device trigger capability of at least one device under the target space; an action determination module, which is used to determine the spatial execution action associated with the spatial trigger condition in the configured spatial linkage scheme if it is monitored that the spatial trigger capability meets the spatial trigger condition in the configured spatial linkage scheme; the spatial execution action indicates the spatial execution capability of the target space when the spatial trigger condition is met; an action execution module, which is used to determine at least one target device whose device execution capability meets the spatial execution capability based on the mapping relationship between the device execution capability and the spatial execution capability of each device under the target space, and control each of the target devices to respectively execute the spatial execution action.
[0009] In an exemplary embodiment, the capability determination module is further used to determine the device trigger capability of at least one device in the target space; and obtain the space trigger capability of the target space by mapping the device trigger capability of each of the devices.
[0010] In an exemplary embodiment, the capability determination module is further used to obtain status data of each of the devices in the target space; perform data analysis and processing on the status data of each of the devices to determine the device trigger capability of each of the devices.
[0011] In an exemplary embodiment, the capability determination module is also used to determine the device type of each of the devices; different device types are used to describe different device trigger capabilities of each of the devices; the device trigger capabilities of each of the devices belonging to the same device type are converted to obtain the spatial trigger capabilities of the target space corresponding to the same device type.
[0012] In an exemplary embodiment, the action execution module is also used to determine at least one of the space execution capabilities of the target space based on the space execution action; among the devices under the target space, search whether there is a device whose device execution capability is the same as any one of the space execution capabilities; if so, use the searched device as the target device.
[0013] In an exemplary embodiment, the apparatus is also used to determine the device execution capability of each of the devices based on feedback data of each of the devices and / or device attribute data; the feedback data is returned based on the test instructions received by the device and is used to indicate the test action successfully executed by the device.
[0014] In an exemplary embodiment, the apparatus is also used to perform data analysis and processing on feedback data and / or device attribute data of each of the devices to determine the specific execution capabilities of each of the devices; based on a mapping relationship between specific execution capabilities and device execution capabilities, the specific execution capabilities of each of the devices are mapped to corresponding device execution capabilities.
[0015] In an exemplary embodiment, the apparatus is also used to send a test instruction set to each of the devices in the target space; the test instruction set includes a number of test instructions, each of the test instructions is used to instruct the device to perform different test actions; and receive feedback data returned by each of the devices based on each of the test instructions.
[0016] In an exemplary embodiment, the apparatus is also used to perform change detection on each of the devices in the target space to obtain a change detection result; the change detection result is used to indicate the devices that have changed in the target space; and based on the devices that have changed and the devices that have not changed in the target space, the status of the space linkage scheme is updated.
[0017] In an exemplary embodiment, the apparatus is also used to, if the changed device is the deleted device, map the spatial trigger capability based on the device trigger capability of the unchanged device; monitor whether the mapped spatial trigger capability satisfies the spatial trigger condition and / or spatial execution capability in the spatial linkage scheme; if not, update the status of the spatial linkage scheme from a valid state to an invalid state or a deleted state.
[0018] In an exemplary embodiment, the apparatus is also used to, if the changed device is a newly added device, map the spatial trigger capability based on the device trigger capability of the changed device and the unchanged device; monitor whether the mapped spatial trigger capability satisfies the spatial trigger condition and / or spatial execution capability in the spatial linkage scheme that is in an invalid state; if so, update the state of the spatial linkage scheme from an invalid state to a valid state.
[0019] According to one aspect of the present application, a device control device comprises: a condition selection module, which is used to display selectable spatial trigger conditions, and obtain the selected spatial trigger condition in response to a selection operation triggered by the spatial trigger condition; the spatial trigger condition indicates the condition satisfied by the spatial trigger capability of the target space, and the spatial trigger capability is obtained by mapping the device trigger capability of at least one device under the target space; an action selection module, which is used to display selectable spatial execution actions, and obtain the selected spatial execution action in response to a selection operation triggered by the spatial execution action; the spatial execution action indicates the spatial execution capability of the target space, and there is a mapping relationship between the spatial execution capability and the device execution capability of at least one device under the target space; a solution generation module, which is used to generate a spatial linkage solution based on the selected spatial trigger condition and the spatial execution action, so that when the spatial trigger capability of the target space meets the spatial trigger condition in the spatial linkage solution through the configured spatial linkage solution, each target device under the target space is controlled to respectively execute the spatial execution action associated with the spatial trigger condition in the spatial linkage solution; the target device refers to a device whose device execution capability meets the spatial execution capability.
[0020] In an exemplary embodiment, the device is also used to display an automatic configuration interface; the automatic configuration interface is used to display a configured spatial linkage plan; and at least one of the spatial trigger conditions, spatial execution actions, and / or states of the configured spatial linkage plan is displayed on the automatic configuration interface.
[0021] In an exemplary embodiment, the device is also used to, if a device change message is detected, display operation items of the space linkage plan recommended for the changed device; the device change message is used to prompt that there is a changed device in the target space; the operation items include an adding operation item for adding the changed device to the recommended space linkage plan; in response to a trigger operation on the adding operation item, the changed device is added to the recommended space linkage plan, and the updated status of the space linkage plan is displayed in the automatic configuration interface.
[0022] According to one aspect of the present application, an electronic device includes at least one processor and at least one memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the device control method as described above is implemented.
[0023] According to one aspect of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by one or more processors, the device control method as described above is implemented.
[0024] According to one aspect of the present application, a computer program product includes a computer program, and when the computer program is executed by one or more processors, the device control method as described above is implemented.
[0025] The beneficial effects of the technical solution provided by this application are:
[0026] In the above technical scheme, based on the spatial trigger conditions and the associated spatial execution actions in the configured spatial linkage scheme, it is not only possible to save the user's configuration cost, but also possible to improve the execution success rate of the automatic control of the target device in the target space. Specifically, first, the spatial trigger capability of the target space is determined based on the device trigger capability of at least one device in the target space. Then, when it is monitored that the spatial trigger capability meets the spatial trigger condition in the spatial linkage scheme, the spatial execution action associated with the spatial trigger condition in the spatial linkage scheme is determined. Finally, based on the mapping relationship between the device execution capability and the spatial execution capability of each device in the target space, at least one target device whose device execution capability meets the spatial execution capability is determined to control each target device to execute the spatial execution action respectively. That is to say, by defining the mapping of spatial capability and device capability, that is, the mapping of spatial trigger capability and device trigger capability, and the mapping of spatial execution capability and device execution capability. On the one hand, the user's configuration can be simplified from each device in the target space to the target space itself, so that the user only needs to perform a small amount of configuration for the target space to complete the setting and management of each device in the target space, which greatly reduces the difficulty of user configuration and is conducive to improving configuration efficiency. On the other hand, regardless of whether there is any equipment change in the target space after the space linkage solution is configured, the space linkage solution that the automatic control relies on can achieve automatic adaptation based on the mapping of space capabilities and equipment capabilities. For example, when the smart fan deployed in the living room is removed, the space linkage solution can automatically adapt to only rely on the smart air conditioner deployed in the living room to automatically adjust the living room temperature, so that the target device that executes the space execution action can automatically adapt to the smart air conditioner, which fully guarantees the successful execution of the equipment control, thereby effectively solving the problems of high user configuration cost and low execution success rate of equipment control in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0028] Figure 1 It is a schematic diagram of the implementation environment involved in this application;
[0029] Figure 2 is a hardware structure diagram of an electronic device according to an exemplary embodiment;
[0030] Figure 3 is a flow chart of a device control method according to an exemplary embodiment;
[0031] Figure 4 yes Figure 3 A flowchart of step 510 in one embodiment of the corresponding embodiment;
[0032] Figure 5 yes Figure 3 A flowchart of step 550 in one embodiment corresponding to the embodiment;
[0033] Figure 6a is a flow chart showing a state of updating a space linkage solution based on a deleted device according to an exemplary embodiment;
[0034] Figure 6b is a flowchart showing a state of updating a space linkage solution based on a newly added device according to an exemplary embodiment;
[0035] Figure 7 is a flow chart of another device control method according to an exemplary embodiment;
[0036] Figure 8a is a schematic diagram showing optional spatial trigger conditions according to an exemplary embodiment;
[0037] Figure 8b is a schematic diagram showing optional space execution actions according to an exemplary embodiment;
[0038] Figure 8c is a schematic diagram showing a spatial linkage scheme configured based on spatial trigger conditions and spatial execution actions according to an exemplary embodiment;
[0039] Figure 9a is a flow chart of another device control method according to an exemplary embodiment;
[0040] Figure 9b is a schematic diagram of a configured space linkage solution according to an exemplary embodiment;
[0041] Fig.9c is a schematic diagram of a state conversion process of a space linkage solution according to an exemplary embodiment;
[0042] Figures 10a to 10d It is a schematic diagram of a specific implementation of a device control method in an application scenario;
[0043] Fig.11is a structural block diagram of a device control apparatus according to an exemplary embodiment;
[0044] Fig.12 is a structural block diagram of another device control apparatus according to an exemplary embodiment;
[0045] Fig.13 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0046] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0047] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present disclosure refers to the presence of the 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 refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0048] As mentioned above, in order to realize automatic control of equipment, users are often required to configure it in advance.
[0049] On the one hand, in some scene-based device controls, the configuration process requires users to not only manually select devices and scenes, but also set corresponding trigger conditions and execution actions. This configuration method requires users to have certain professional knowledge and operational skills, which will invisibly increase the complexity and workload of user configuration and affect configuration efficiency.
[0050] On the other hand, once a device in the target space changes, the user needs to reconfigure it, which increases the user's configuration workload and configuration costs, and the success rate of device control execution will also be affected.
[0051] In order to solve the above problems, some solutions propose that when a device in the target space fails, it is determined whether the scenario applied by the failed device is invalid. If it is completely invalid, the completely invalid scenario is deleted; if it is partially invalid, the partially invalid scenario is marked to facilitate determination that there are still some smart devices that can be used normally in the marked scenario.
[0052] Other solutions propose that when a new device is added to the target space, the scene template library is traversed to obtain the scene template to which the new device belongs, and a specific scene is generated based on the scene template to achieve automatic control of the new device. However, in the above solutions, the user's configuration is for each device in the target space. If the number of devices in the target space increases, the complexity and workload of the user's configuration will also increase, which will not only result in very limited savings in configuration costs, but also inevitably affect the execution success rate of device control if configuration errors are caused by overly complex configurations.
[0053] It can be seen that the related technology still has defects such as high user configuration cost and low execution success rate of device control.
[0054] To this end, the device control method provided by the present application can not only effectively save the user's configuration cost and thus effectively improve the configuration efficiency, but also can effectively improve the execution success rate of device control regardless of whether the device changes. Accordingly, the device control method is applicable to a device control device, which can be deployed in an electronic device. The electronic device can be a computer device configured with a von Neumann architecture, for example, the computer device includes a desktop computer, a laptop computer, a server, etc.; the electronic device can also be an electronic device with a central control function, for example, the electronic device includes a gateway, etc.; the electronic device can also refer to a portable and mobile electronic device, for example, the electronic device includes a smart phone, a tablet computer, etc.
[0055] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0056] Figure 1 Schematic diagram of an implementation environment involved in a device control method. The implementation environment at least includes a user terminal 110, a smart device 130, a server 170, and a network device. Figure 1 In the embodiment, the network devices include a gateway 150 and a router 190, which is not specifically limited herein.
[0057] Among them, the user terminal 110, which can also be considered as a user end or terminal, can deploy (also understood as install) the client associated with the smart device 130. This user terminal 110 can be an electronic device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart control panel, other devices with display and control functions, etc., which are not limited here.
[0058] Among them, the client is associated with the smart device 130, which essentially means that the user registers an account in the client and configures the smart device 130 in the client. For example, the configuration includes adding a device identifier to the smart device 130, so that when the client is run in 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. Accordingly, the interface for device display on the client can be in the form of a program window or a web page, which is not limited here.
[0059] The smart device 130 is deployed in the gateway 150, and communicates with the gateway 150 through its own configured communication module, and is then controlled by the gateway 150. It should be understood that the smart device 130 generally refers to one of the multiple smart devices 130, and the embodiment of the present application only takes the smart device 130 as an example, that is, the embodiment of the present application does not limit the number and device type of smart devices deployed in the gateway 150. In an application scenario, the smart device 130 accesses the gateway 150 through a local area network, and is thus deployed in the gateway 150. The process of the smart device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the smart device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150. This local area network includes, but is not limited to: ZIGBEE or Bluetooth. Among them, the smart device 130 can be a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart door lock, a smart light, or a human body sensor equipped with a communication module, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall sticker switch, a magic cube controller, a curtain motor, a millimeter wave radar, etc.
[0060] The interaction between the user terminal 110 and the smart device 130 can be achieved through a local area network or a wide area network. In one application scenario, the user terminal 110 establishes a communication connection between the router 190 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to WIFI, so that the user terminal 110 and the gateway 150 are deployed in the same local area network, so that the user terminal 110 can interact with the smart device 130 through the local area network path. In another application scenario, the user terminal 110 establishes a communication connection between the server 170 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to 2G, 3G, 4G, 5G, WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, so that the user terminal 110 can interact with the smart device 130 through the wide area network path.
[0061] The server end 170 may also be considered as a cloud, a cloud platform, a platform end, a service end, etc. The server end 170 may be a server, a server cluster consisting of multiple servers, or a cloud computing center consisting of multiple servers, so as to better provide background services to a large number of user terminals 110. For example, the background service includes a device control service.
[0062] In one application scenario, the device control method can be implemented based on the interaction between the user terminal 110 and the server 170. On the user terminal 110, selectable spatial trigger conditions and spatial execution actions are displayed, and the user can select the corresponding spatial trigger conditions and spatial execution actions from them, so as to complete the configuration of the spatial linkage scheme according to the selected spatial trigger conditions and spatial execution actions. In some embodiments, the spatial linkage scheme can be directly generated by the user terminal 110 based on the selected spatial trigger conditions and spatial execution action configurations, and then sent to the server 170. In other embodiments, the spatial linkage scheme can also be generated by the server 170 based on the received spatial trigger conditions and spatial execution action configurations after the user terminal 110 sends the selected spatial trigger conditions and spatial execution actions to the server 170.
[0063] For the server side 170, after completing the configuration of the spatial linkage scheme, the automatic control of each device in the target space can be realized based on the configured spatial linkage scheme. Specifically, first, the spatial trigger capability of the target space is determined based on the device trigger capability of at least one device in the target space, and then, when it is monitored that the spatial trigger capability meets the spatial trigger condition in the spatial linkage scheme, the spatial execution action associated with the spatial trigger condition in the spatial linkage scheme is determined, and finally, based on the mapping relationship between the device execution capability of each device in the target space and the spatial execution capability, at least one target device whose device execution capability meets the spatial execution capability is determined to control each target device to perform the spatial execution action respectively.
[0064] Therefore, based on the mapping of space capabilities and device capabilities, the user's configuration can be simplified from targeting each device in the target space to targeting the target space itself, and the automatic control of the device can be automatically adapted as the device changes occur, avoiding the impact on the execution success rate of device control, thereby effectively solving the problems of high user configuration costs and low execution success rate of device control in related technologies.
[0065] See also Figure 2 , Figure 2 is a hardware structure diagram of an electronic device according to an exemplary embodiment. It should be noted that the electronic device is only an example adapted to the present application and cannot be considered to provide any limitation on the scope of use of the present application. The electronic device cannot be interpreted as requiring dependence on or having Figure 2 One or more components of exemplary electronic device 200 are shown.
[0066] The hardware structure of the electronic device 200 may vary greatly due to different configurations or performances, such as Figure 2 As shown, the electronic device 200 includes: a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .
[0067] Specifically, the power supply 210 is used to provide operating voltage for each hardware device on the electronic device 200 .
[0068] The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. Figure 1 Taking the server 170 in the implementation environment as an example, based on this interface, Figure 1 The interaction between the user terminal 110 and the server 170 in the implementation environment is shown.
[0069] Of course, in other examples adapted by the present application, the 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 2 As shown, this is not intended to be a specific limitation.
[0070] The memory 250 is a carrier for storing resources, which may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 251, an application 253 and data 255, etc. The storage method may be temporary storage or permanent storage.
[0071] Among them, the operating system 251 is used to manage and control various hardware devices and application programs 253 on the electronic device 200 to enable the central processor 270 to calculate and process the massive data 255 in the memory 250. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0072] The application program 253 is a computer program formed by computer-readable instructions based on the operating system 251 to complete at least one specific task, and may include at least one module ( Figure 2 Each module may include corresponding computer-readable instructions. For example, the device control device may be regarded as an application 253 deployed on the electronic device 200.
[0073] The data 255 may be photos, pictures, etc. stored in a disk, or may be a configured space linkage solution, etc., stored in the memory 250 .
[0074] The central processor 270 may include one or more processors and is configured to communicate with the memory 250 through at least one communication bus to read the computer program stored in the memory 250, thereby realizing the operation and processing of the mass data 255 in the memory 250. For example, the device control method is completed in the form of the central processor 270 reading the application program 253 stored in the memory 250.
[0075] In addition, the present application can also be implemented through hardware circuits or hardware circuits combined with software. Therefore, the implementation of the present application is not limited to any specific hardware circuits, software, or a combination of the two.
[0076] Based on the configured space linkage solution, it is possible to realize the automatic control of each device in the target space, thereby improving the execution success rate of device control. The device control process is now described in detail in conjunction with the following embodiments:
[0077] See also Figure 3The present application embodiment provides a device control method, which is applicable to an electronic device, for example, the electronic device may be Figure 1 The gateway 150 or server 170 in the implementation environment is shown. The hardware structure of the electronic device can be as follows Figure 2 shown.
[0078] In the following method embodiments, for ease of description, the execution subject of each step of the method is taken as an electronic device as an example for illustration, but this does not constitute a specific limitation.
[0079] Step 510, determine the spatial triggering capability of the target space.
[0080] The space trigger capability is obtained by mapping the device trigger capability of at least one device in the target space.
[0081] First of all, it should be noted that the device trigger capability refers to the trigger capability possessed by the device, and correspondingly, the spatial trigger capability refers to the trigger capability possessed by the target space due to the device deployed therein. Among them, the trigger capability refers to a specific event that the device can detect. For example, assuming that the device is a temperature sensor, since the temperature sensor can detect changes in ambient temperature, it can be considered that the device trigger capability of the temperature sensor, that is, the trigger capability possessed by the temperature sensor, is to identify changes in ambient temperature. Accordingly, if the temperature sensor is deployed in the target space, then the spatial trigger capability of the target space can be to identify changes in ambient temperature, that is, the trigger capability possessed by the temperature sensor deployed therein is to identify changes in ambient temperature. It should be understood that the spatial trigger capability of the target space will not change accordingly due to the number of devices deployed therein (non-zero). For example, assuming that the number of temperature sensors deployed in the target space increases from 1 to 3 or decreases from 3 to 1, the target space always has the trigger capability to identify changes in ambient temperature due to the temperature sensor deployed therein.
[0082] It is further explained that in the present embodiment, different device types are used to describe different device triggering capabilities of each device. Then, as the device types of each device are different, the device triggering capabilities of each device will also be different. When devices of different device types are deployed in the target space, the target space will have different triggering capabilities accordingly due to the devices of different device types deployed. For example, temperature sensors and human body sensors are deployed in the target space. At this time, the spatial triggering capability of the target space includes the triggering capability of identifying changes in ambient temperature and the triggering capability of identifying whether there is a person. In other words, the spatial triggering capability of the target space can change accordingly due to the devices of different device types deployed therein.
[0083] Therefore, for each device deployed in the target space, its trigger capability, i.e., device trigger capability, can be mapped to the space-level trigger capability, i.e., the space trigger capability of the target space. In other words, the space trigger capability is obtained by mapping the device trigger capability of at least one device in the target space.
[0084] After the spatial trigger capability of the target space is obtained by mapping the device trigger capability of at least one device in the target space, a spatial trigger condition can be formed based on the spatial trigger capability of the target space. The spatial trigger condition is used to indicate the conditions satisfied by the spatial trigger capability of the target space, that is, the conditions satisfied by a specific event detected by the device. Taking the spatial trigger capability as an example, which can be the recognition of changes in ambient temperature, the spatial trigger condition can be the recognition that the ambient temperature of the target space rises to 28 degrees Celsius. At this point, the corresponding spatial trigger capability of the target space can be monitored for different spatial trigger conditions, so that space-level device control can be achieved later.
[0085] Step 530: If it is monitored that the spatial trigger capability meets the spatial trigger condition in the configured spatial linkage scheme, then determine the spatial execution action associated with the spatial trigger condition in the spatial linkage scheme.
[0086] Among them, the spatial linkage solution is used to realize the automatic control of each device in the target space to perform the corresponding spatial execution action by monitoring whether the spatial trigger capability of the target space meets the spatial trigger condition. In one possible implementation, the spatial trigger condition refers to the condition satisfied by the spatial trigger capability of the target space. In one possible implementation, the spatial execution action indicates the spatial execution capability of the target space, and the spatial execution capability refers to the execution capability of the target space due to the equipment deployed therein, and the execution capability refers to the specific action that the equipment can perform.
[0087] For the spatial linkage scheme that has been configured for the target space, the essence is to start from the perspective of the target space, not only the spatial trigger capability that needs to be monitored in the target space is configured, but also the spatial execution action that the device in the target space needs to execute when the spatial trigger capability meets the spatial trigger condition. In other words, the spatial linkage scheme stores the spatial trigger conditions and spatial execution actions that have an associated relationship.
[0088] Then, in order to realize the automatic control of each device in the target space, after the electronic device detects that the spatial trigger capability of the target space meets the spatial trigger condition, it can obtain the spatial execution action associated with the spatial trigger condition based on the configured spatial linkage plan, so as to determine the spatial execution capability of the target space.
[0089] Step 550, based on the mapping relationship between the device execution capability of each device in the target space and the space execution capability, determine at least one target device whose device execution capability meets the space execution capability, and control each target device to execute the space execution action respectively.
[0090] Still taking the air conditioner as an example, the air conditioner can be turned on or off, so the equipment execution capability of the air conditioner, that is, the execution capability possessed by the air conditioner, at least includes turning on and off the air conditioner. Accordingly, if the air conditioner is deployed in the target space, then the spatial execution capability of the target space can include turning on and off the air conditioner, that is, the execution capability possessed by the target space due to the air conditioner deployed therein can include turning on and off the air conditioner. It should be understood that the spatial execution capability of the target space will not change accordingly due to the number of devices deployed therein (non-zero). For example, assuming that the number of air conditioners deployed in the target space increases from 1 to 3 or decreases from 3 to 1, the target space always has the execution capability of turning on and off the air conditioner due to the air conditioner deployed therein.
[0091] It is further explained that different device types can also be used to describe the different device execution capabilities of each device. Then, as the device types of each device are different, the device execution capabilities of each device will also be different. When devices of different device types are deployed in the target space, the target space will have different execution capabilities accordingly due to the devices of different device types deployed. For example, the target space is deployed with an air conditioner companion and an air conditioner of the same device type. At this time, the spatial execution capabilities of the target space can include turning on and off the air conditioner; or, the target space is deployed with lights and air conditioners of different device types. At this time, the spatial execution capabilities of the target space can include not only turning on and off the air conditioner, but also turning off and turning on the lights. In other words, the spatial triggering capability of the target space can change accordingly due to the devices of different device types deployed.
[0092] Therefore, for each device deployed in the target space, its execution capability, i.e., the device execution capability, can be mapped to the space-level execution capability, i.e., the space execution capability of the target space. In other words, there is a mapping relationship between the space execution capability of the target space and the device execution capability of at least one device in the target space.
[0093] Then, based on the mapping relationship between the device execution capability of each device in the target space and the space execution capability, the electronic device can determine the target device for executing the space execution action. In other words, the target device refers to a device whose device execution capability meets the space execution capability. It can also be understood that there is a mapping relationship between the device execution capability and the space execution capability of the target space and the device deployed in the target space can be used as the target device.
[0094] Taking the target space as a bedroom as an example, after determining that the spatial execution action of the bedroom is to fully turn on the air conditioner, the electronic device first determines that the spatial execution capability of the bedroom when the spatial trigger condition is met is to turn on the air conditioner. Then, the electronic device searches for at least one target device whose device execution capability is to turn on the air conditioner among the devices deployed in the bedroom. Finally, the electronic device can control each target device to perform the spatial execution action of turning on the air conditioner respectively.
[0095] Through the above process, regardless of whether equipment changes occur in the target space after the space linkage solution is configured, the space linkage solution that the automated control relies on can achieve automatic adaptation based on the mapping of space capabilities and equipment capabilities. For example, when the smart fan deployed in the living room is removed, the space linkage solution can automatically adapt to automatically adjust the living room temperature by relying only on the smart air conditioner deployed in the living room, so that the target device that executes the space execution action can automatically adapt to the smart air conditioner, which fully guarantees the successful execution of equipment control and greatly improves the execution success rate of equipment control.
[0096] See also Figure 4 In an exemplary embodiment, step 510 may include the following steps:
[0097] Step 511, determining the device triggering capability of at least one device in the target space.
[0098] As mentioned above, the device trigger capability refers to the trigger capability of the device, and the trigger capability refers to the specific events that the device can detect.
[0099] In a possible implementation, the determination of the trigger capability of a device may be based on device attribute data. The device attribute data may be derived from a device specification and / or device description document provided by a device manufacturer, etc., which records the trigger capability of the device. For example, in the device specification of a human body sensor, it may be indicated that the human body sensor may have the trigger capability of detecting human body movement, temperature change, etc.
[0100] In one possible implementation, the determination of the device triggering capability can be based on status data. The determination process may include the following steps: Step 1, obtaining the status data of each device in the target space. The status data is used to describe the device status, and specifically may be used to describe the triggering situation after the device is triggered based on its triggering capability, including but not limited to human body sensing, temperature change, etc. Step 2, performing data analysis and processing on the status data of each device to determine the device triggering capability of each device. The data analysis and processing may include at least one or more algorithms such as pattern recognition and data analysis to determine the specific events that each device can detect.
[0101] In this way, the device triggering capability of the device can be accurately determined so as to provide corresponding options for the device configuration for the user to choose from, thereby helping to save the user's configuration cost and improve configuration efficiency.
[0102] Step 513, the space trigger capability of the target space is obtained by mapping the device trigger capability of each device.
[0103] First of all, it should be noted that the device trigger capability refers to the trigger capability possessed by the device, and correspondingly, the spatial trigger capability refers to the trigger capability possessed by the target space due to the device deployed therein. Among them, the trigger capability refers to a specific event that the device can detect. For example, assuming that the device is a temperature sensor, since the temperature sensor can detect changes in ambient temperature, it can be considered that the device trigger capability of the temperature sensor, that is, the trigger capability possessed by the temperature sensor, is to identify changes in ambient temperature. Accordingly, if the temperature sensor is deployed in the target space, then the spatial trigger capability of the target space can be to identify changes in ambient temperature, that is, the trigger capability possessed by the temperature sensor deployed therein is to identify changes in ambient temperature. It should be understood that the spatial trigger capability of the target space will not change accordingly due to the number of devices deployed therein (non-zero). For example, assuming that the number of temperature sensors deployed in the target space increases from 1 to 3 or decreases from 3 to 1, the target space always has the trigger capability to identify changes in ambient temperature due to the temperature sensor deployed therein.
[0104] It is further explained that in this embodiment, different device types are used to describe different device triggering capabilities of each device. Then, as the device types of each device are different, the device triggering capabilities of each device will also be different. When devices of different device types are deployed in the target space, the target space will have different triggering capabilities accordingly due to the devices of different device types deployed. For example, temperature sensors and human body sensors are deployed in the target space. At this time, the spatial triggering capability of the target space includes the triggering capability of identifying changes in ambient temperature and the triggering capability of identifying whether someone is moving. In other words, the spatial triggering capability of the target space can change accordingly due to the devices of different device types deployed.
[0105] Therefore, for each device deployed in the target space, its trigger capability, i.e., device trigger capability, can be mapped to the space-level trigger capability, i.e., the space trigger capability of the target space. In other words, the space trigger capability is obtained by mapping the device trigger capability of at least one device in the target space.
[0106] In a possible implementation, mapping of device triggering capability to space triggering capability is implemented based on device type. The mapping process may include the following steps:
[0107] The first step is to determine the device type of each device.
[0108] Among them, different device types are used to describe different device triggering capabilities of each device. Then, as the device types of each device are different, the device execution capabilities of each device will also be different. When devices of different device types are deployed in the target space, the target space will have different execution capabilities accordingly due to the devices of different device types deployed. For example, the target space is deployed with an air conditioner companion and an air conditioner of the same device type. At this time, the spatial execution capabilities of the target space can include turning on and off the air conditioner; or, the target space is deployed with lights and air conditioners of different device types. At this time, the spatial execution capabilities of the target space can include not only turning on and off the air conditioner, but also turning off and turning on the lights. In other words, the spatial triggering capabilities of the target space can change accordingly due to the devices of different device types deployed.
[0109] In the second step, the device triggering capabilities of each device belonging to the same device type are converted to obtain the spatial triggering capabilities of the target space corresponding to the same device type.
[0110] Of course, in some embodiments, the device triggering capabilities of devices belonging to different device types are converted to obtain the spatial triggering capabilities of the target space corresponding to the different device types.
[0111] Taking the temperature sensor and the human body sensor as examples, it is assumed that the device trigger capability of the temperature sensor includes identifying changes in ambient temperature, and the device trigger capability of the human body sensor includes identifying changes in ambient temperature and identifying whether a person is moving. From the perspective of identifying changes in ambient temperature, the two belong to the same device type, so the spatial trigger capability of the target space corresponding to the same device type can be identifying changes in ambient temperature. From the perspective of the trigger capability of the human body sensor to identify whether a person is moving, the two can also be considered to be different device types. At this time, the spatial trigger capability of the target space corresponding to the different device types can also be identifying whether a person is moving. Therefore, for the temperature sensor and human body sensor deployed in the target space, the spatial trigger capability of the target space includes identifying changes in ambient temperature and identifying whether a person is moving.
[0112] Under the influence of the above-mentioned embodiments, on the one hand, the device triggering capability can be accurately determined, and then the space triggering capability can be accurately determined, so as to provide a basis for users to configure space linkage solutions, thereby enabling space-level device control to be realized, which can not only improve the execution success rate of device control, but also enable users to enjoy the convenience and comfort brought by space linkage, which is conducive to improving user experience.
[0113] On the other hand, based on the mapping of device trigger capability and space trigger capability, even if the device trigger capability changes due to changes in the target space, as long as the space trigger capability does not change, the effectiveness of the space linkage solution can be guaranteed and the user can avoid reconfiguration. This not only saves the user's configuration cost, but also fully guarantees the execution success rate of space-level device control.
[0114] See also Figure 5 In an exemplary embodiment, step 550 may include the following steps:
[0115] Step 551, determine at least one spatial execution capability of the target space based on the spatial execution action.
[0116] After determining the spatial execution action associated with the spatial trigger condition in the spatial linkage solution, it is necessary to search for a target device for executing the spatial execution action in the target space.
[0117] In this embodiment, the search for the target device is based on the mapping relationship between the device execution capability and the spatial execution capability, that is, there is a mapping relationship between the device execution capability and the spatial execution capability of the target space, and the device deployed in the target space can be used as the target device. In short, the target device refers to a device whose device execution capability meets the spatial execution capability. To this end, before searching for the target device, it is first necessary to determine the spatial execution capability of the target space, and then it is necessary to determine the device execution capability of each device under the target space, so that the spatial execution capability and the device execution capability can be matched in the subsequent process.
[0118] Step 553, among the devices in the target space, search for a device whose execution capability is the same as the execution capability of any space.
[0119] If a device having the same execution capability as any space execution capability is found, step 555 is executed.
[0120] If no device with the same execution capability as any of the spatial execution capabilities is found, it means that there is no target device that can execute the spatial execution action under the target space. It can also be considered that the configured spatial linkage plan is in an invalid state due to the lack of necessary equipment. At this time, you can directly return to step 510 and continue to monitor whether the spatial trigger capability meets the spatial trigger condition in the configured spatial linkage plan. You can also wait for the configured spatial linkage plan to be updated from an invalid state to a valid state before returning to step 510.
[0121] Step 555: Use the searched device as the target device.
[0122] The target device refers to a device whose device execution capability is the same as the space execution capability.
[0123] After determining the target device, the electronic device can control the target device to execute the spatial execution action associated with the spatial trigger condition in the spatial linkage solution.
[0124] In the above process, the target device is searched for, so that the device control at the space level can be converted into individual device control, thereby ensuring that the spatial cascade formed by the spatial trigger condition-spatial execution action can be realized.
[0125] As mentioned above, the space execution capability refers to the execution capability of the target space due to the devices deployed therein, the device execution capability refers to the execution capability of the device, and the execution capability refers to the specific actions that the device can perform. Based on this, before determining at least one target device whose device execution capability meets the space execution capability, the method may further include the following steps:
[0126] Based on the feedback data of each device and / or the device attribute data, the device execution capability of each device is determined. In a possible implementation, the device attribute data may be derived from the device specification and device description documents provided by the device manufacturer, etc., which record the execution capabilities of the device. For example, in the device specification of a smart light, it may be indicated that the smart light has the execution capabilities of switching, brightness adjustment, color setting, mode switching, etc.
[0127] In one possible implementation, feedback data is used to indicate the test action successfully executed by the device, that is, the test action successfully executed by the device indicates that the device has the execution capability to execute the test action. Among them, the feedback data is returned based on the test instruction received by the device, and the specific process may include the following steps: the first step is to send a test instruction set to each device in the target space. Among them, the test instruction set includes several test instructions, and each test instruction is used to instruct the device to perform different test actions. The second step is to receive feedback data returned by each device based on each test instruction. It can be understood that if the device has the execution capability to perform a certain test action, when it receives the corresponding test instruction, it can respond to the test instruction and perform the corresponding test action, and then generate feedback data for the successful execution of the test action. For the electronic device, it can receive the feedback data to determine the device execution capability of the device based on the feedback data later. Therefore, after obtaining the device attribute data of each device and / or the feedback data, the device execution capability of each device can be determined separately. The determination process may include the following steps:
[0128] The first step is to perform data analysis and processing on the feedback data and / or device attribute data of each device to determine the specific execution capability of each device.
[0129] Among them, feedback data is returned based on the test instructions received by the device and is used to indicate the test actions successfully executed by the device; device attribute data can come from the device specification and device description documents provided by the device manufacturer, which record the execution capabilities of the device.
[0130] In a possible implementation, data analysis processing includes but is not limited to device classification, etc.
[0131] Taking the target space as a bedroom as an example, assuming that smart lights A and smart lights B are deployed in the bedroom, through device classification, it is determined that smart lights A and smart lights B have different models C1 and C2 respectively. Based on the execution capabilities of the smart light of model C1 including switching, brightness adjustment, and color setting, and the execution capabilities of the smart light of model C2 including switching, brightness adjustment, and mode switching, it can be determined that the specific execution capabilities of smart light A include switching, brightness adjustment, and color setting, and the specific execution capabilities of smart light B include switching, brightness adjustment, and mode switching.
[0132] In the second step, based on the mapping relationship between specific execution capabilities and device execution capabilities, the specific execution capabilities of each device are mapped to the corresponding device execution capabilities.
[0133] In this embodiment, in order to simplify the complexity of user configuration, the device execution capabilities of different models of devices are configured through a unified standard. In other words, even if the specific execution capabilities of the devices differ slightly in naming or other forms due to different models, the device execution capabilities of different models of devices always have a unified standard.
[0134] Still taking the aforementioned smart light as an example, no matter whether the model of the smart light is C1 or C2, the smart light is pre-configured with standardized device execution capabilities, specifically including execution capability 1, execution capability 2, execution capability 3, and execution capability 4, and the mapping relationship between the above-mentioned execution capabilities and specific execution capabilities is stored, such as the mapping relationship between execution capability 1 and the switch, the mapping relationship between execution capability 2 and brightness adjustment, and so on. Then, after standardization and mapping, it can be determined that the device execution capabilities of smart light A include execution capability 1, execution capability 2, and execution capability 3, and the device execution capabilities of smart light B include execution capability 1, execution capability 2, and execution capability 4. It can be understood that for a bedroom where smart light A and smart light B are deployed, the spatial execution capabilities of the bedroom can include execution capability 1, execution capability 2, execution capability 3, and execution capability 4.
[0135] Through the coordination of the above-mentioned embodiments, based on the mapping of device execution capabilities and space execution capabilities, even if the target space undergoes device changes, as long as there are still executable target devices for the space execution action, the effectiveness of the space linkage solution can be guaranteed, avoiding user reconfiguration. This not only saves the user's configuration costs, but also fully guarantees the execution success rate of space-level device control.
[0136] In one possible implementation, the state of the spatial linkage scheme may include a valid state and an invalid state. In another possible implementation, the state of the spatial linkage scheme may also include a deleted state. In another possible implementation, the state of the spatial linkage scheme may also include an open state and a closed state. It should be understood that only a spatial linkage scheme in a valid state can be enabled and disabled. It can also be considered that the valid state further includes an open state and a closed state.
[0137] In one possible implementation, the various states of the spatial linkage scheme can be transformed into each other. On the one hand, if the changed device refers to a deleted device, this may cause the spatial trigger condition or spatial execution action in the spatial linkage scheme to become invalid due to the deleted device, and the state of the spatial linkage scheme can be updated from a valid state to an invalid state or a deleted state; on the other hand, if the changed device refers to a newly added device, this may cause the spatial trigger condition or spatial execution action in the invalid state of the spatial linkage scheme to become valid again due to the newly added device, and the state of the spatial linkage scheme can be updated from an invalid state to a valid state.
[0138] Based on this, the method may further include the following steps:
[0139] The first step is to perform change detection on each device in the target space and obtain the change detection results.
[0140] The change detection result is used to indicate the devices that have changed in the target space.
[0141] The second step is to update the status of the space linkage solution based on the changed and unchanged devices in the target space.
[0142] It is worth mentioning that Figure 1 For the implementation environment shown, after detecting changes in each device in the target space, the gateway 150 can determine the changed devices in the target space, and then update the status of the space linkage solution based on the changed devices and unchanged devices in the target space.
[0143] Specifically, combined Figure 6a and Figure 6bAs shown, on the one hand, if the changed device is a deleted device, the gateway 150 maps the spatial trigger capability based on the device trigger capability of the unchanged device (i.e., the remaining device), and monitors whether the mapped spatial trigger capability satisfies the spatial trigger condition and / or spatial execution capability in the spatial linkage scheme. If satisfied, the state of the spatial linkage scheme is kept unchanged; if not satisfied, the state of the spatial linkage scheme is updated from a valid state to an invalid state or a deleted state, and the state of the spatial linkage scheme is synchronized to the server end 170. It is worth mentioning that here, whether the state of the spatial linkage scheme is updated from a valid state to an invalid state or a deleted state, the gateway 150 can notify the user to make a selection by sending a device change message to the user terminal 110, which has been described in detail in the above embodiments and will not be repeated here.
[0144] On the other hand, if the changed device is a newly added device, the gateway 150 maps the spatial triggering capability based on the device triggering capability of the changed device (i.e., the newly added device) and the unchanged device (i.e., the old device), and monitors whether the mapped spatial triggering capability satisfies the spatial triggering condition and / or spatial execution capability in the spatial linkage scheme that is in an invalid state. If not, the state of the spatial linkage scheme remains unchanged; if satisfied, the state of the spatial linkage scheme is updated from an invalid state to a valid state, and the state of the spatial linkage scheme is synchronized to the server side 170. Similarly, whether the state of the spatial linkage scheme is updated here, the gateway 150 can also prompt the user whether to add the new device to the invalid spatial linkage scheme by sending a device change message to the user terminal 110.
[0145] In the above process, even if the device in the target space changes, as long as there are still executable target devices for the space execution action, the effectiveness of the space linkage solution can be guaranteed, avoiding user reconfiguration. This not only saves the user's configuration cost, but also fully guarantees the execution success rate of space-level device control.
[0146] In order to save the user's configuration cost and improve configuration efficiency, the device configuration provided in each embodiment of the present application is for the target space itself, rather than for each device under the target space, so that space-level device control can be achieved, thereby fully ensuring that the execution success rate of device control is improved. Figures 7 to 9c The device configuration process is described in detail below:
[0147] See also Figure 7 The present application embodiment provides a device control method, which is applicable to an electronic device, for example, the electronic device may be Figure 1 The user terminal 110 in the implementation environment is shown. The hardware structure of the electronic device can be as follows: Figure 2 shown.
[0148] In the following method embodiments, for ease of description, the execution subject of each step of the method is taken as an electronic device as an example for illustration, but this does not constitute a specific limitation.
[0149] like Figure 7 As shown, the method may include the following steps:
[0150] Step 310 , displaying selectable spatial triggering conditions, and obtaining the selected spatial triggering condition in response to a selection operation triggered by the spatial triggering condition.
[0151] Among them, the spatial trigger condition indicates the conditions satisfied by the spatial trigger capability of the target space. It should be understood that the target space refers to an environment for implementing device control, in which several devices are deployed. Users configure these devices based on electronic devices to achieve device control based on the target space. The target space can be adjusted accordingly according to different application scenarios. For example, in a smart home scenario, the target space can refer to the whole house, or any subspace in the whole house (such as a bedroom, living room, etc.), and in a smart office scenario, the target space can refer to an office building, or any subspace in the office building (such as a conference room, laboratory, etc.), and this embodiment does not limit this.
[0152] First of all, it should be noted that the device trigger capability refers to the trigger capability possessed by the device, and correspondingly, the spatial trigger capability refers to the trigger capability possessed by the target space due to the device deployed therein. Among them, the trigger capability refers to a specific event that the device can detect. For example, assuming that the device is a temperature sensor, since the temperature sensor can detect changes in ambient temperature, it can be considered that the device trigger capability of the temperature sensor, that is, the trigger capability possessed by the temperature sensor, is to identify changes in ambient temperature. Accordingly, if the temperature sensor is deployed in the target space, then the spatial trigger capability of the target space can be to identify changes in ambient temperature, that is, the trigger capability possessed by the temperature sensor deployed therein is to identify changes in ambient temperature. It should be understood that the spatial trigger capability of the target space will not change accordingly due to the number of devices deployed therein (non-zero). For example, assuming that the number of temperature sensors deployed in the target space increases from 1 to 3 or decreases from 3 to 1, the target space always has the trigger capability to identify changes in ambient temperature due to the temperature sensor deployed therein.
[0153] It is further explained that in this embodiment, different device types are used to describe different device triggering capabilities of each device. Then, as the device types of each device are different, the device triggering capabilities of each device will also be different. When devices of different device types are deployed in the target space, the target space will have different triggering capabilities accordingly due to the devices of different device types deployed. For example, temperature sensors and human body sensors are deployed in the target space. At this time, the spatial triggering capability of the target space includes the triggering capability of identifying changes in ambient temperature and the triggering capability of identifying whether someone is moving. In other words, the spatial triggering capability of the target space can change accordingly due to the devices of different device types deployed.
[0154] Therefore, for each device deployed in the target space, its trigger capability, i.e., device trigger capability, can be mapped to the space-level trigger capability, i.e., the space trigger capability of the target space. In other words, the space trigger capability is obtained by mapping the device trigger capability of at least one device in the target space.
[0155] After the spatial trigger capability of the target space is obtained by mapping the device trigger capability of at least one device in the target space, a spatial trigger condition can be formed based on the spatial trigger capability of the target space. The spatial trigger condition is used to indicate the conditions satisfied by the spatial trigger capability of the target space, that is, the conditions satisfied by the specific event detected by the device. For example, if the spatial trigger capability can be the recognition of changes in ambient temperature, the spatial trigger condition can be the recognition that the ambient temperature of the target space rises to 28 degrees Celsius.
[0156] In order to realize space-level device control, first, the electronic device will provide users with optional space trigger conditions so that users can select the space trigger conditions that meet their needs.
[0157] Figure 8a A schematic diagram showing an alternative spatial trigger condition in one embodiment is shown. Figure 8aAs shown, after determining that the target space is a bedroom, the electronic device can display a condition configuration interface 401 for configuring space trigger conditions in the bedroom. In the condition configuration interface 401, the temperature rises to, the temperature drops to, is above the specified temperature, is below the specified temperature, etc. are displayed. Assuming that the user clicks "temperature rises to", the electronic device can determine that the user has selected "temperature rises to". At this time, the electronic device will combine the "temperature rises to" selected by the user and the specific temperature (such as 26°C, 27°C, etc.) to display the optional space trigger conditions to the user. The space trigger conditions include but are not limited to the temperature rising to 26°C, the temperature rising to 27°C, etc. If the user selects 26°C based on "temperature rises to" and clicks "OK", the electronic device can detect this click operation and further determine that the space trigger condition selected by the user is the temperature rising to 26°C. Among them, the click operation can be regarded as a selection operation triggered by the space trigger condition. It is worth mentioning that the electronic device can display the optional space trigger conditions to the user in the form of a pop-up interface 402 superimposed on the top of the condition configuration interface 401, such as Figure 8a As shown, it can also be displayed in another interface different from the condition configuration interface 401, which does not constitute a specific limitation here.
[0158] After the user selects the spatial trigger condition, the electronic device can subsequently implement spatial-level device control based on the spatial trigger condition selected by the user.
[0159] Step 330 , displaying selectable spatial execution actions, and obtaining a selected spatial execution action in response to a selection operation triggered by the spatial execution action.
[0160] Among them, the spatial execution action indicates the spatial execution capability of the target space.
[0161] First of all, it should be noted that the device execution capability refers to the execution capability possessed by the device, and accordingly, the spatial execution capability refers to the execution capability possessed by the target space due to the device deployed therein. Among them, the execution capability refers to the specific action that the device can perform. For example, assuming that the device is an air conditioner, the air conditioner can be turned on or off, so the device execution capability of the air conditioner, that is, the execution capability possessed by the air conditioner, at least includes turning on the air conditioner and turning off the air conditioner. Accordingly, if the air conditioner is deployed in the target space, then the spatial execution capability of the target space can include turning on the air conditioner and turning off the air conditioner, that is, the execution capability possessed by the target space due to the air conditioner deployed therein can include turning on the air conditioner and turning off the air conditioner. It should be understood that the spatial execution capability of the target space will not change accordingly due to the number of devices deployed therein (non-zero). For example, assuming that the number of air conditioners deployed in the target space increases from 1 to 3 or decreases from 3 to 1, the target space always has the execution capability of turning on and off the air conditioner because of the air conditioner deployed therein.
[0162] It is further explained that in this embodiment, different device types can also be used to describe the different device execution capabilities of each device. Then, as the device types of each device are different, the device execution capabilities of each device will also be different. When devices of different device types are deployed in the target space, the target space will have different execution capabilities accordingly due to the devices of different device types deployed. For example, the target space is deployed with an air-conditioning companion and an air-conditioner of the same device type. At this time, the spatial execution capabilities of the target space can include turning on and off the air-conditioner; or, the target space is deployed with lights and air-conditioners of different device types. At this time, the spatial execution capabilities of the target space can include not only turning on and off the air-conditioner, but also turning off and turning on the lights. In other words, the spatial triggering capability of the target space can change accordingly due to the devices of different device types deployed.
[0163] Therefore, for each device deployed in the target space, its execution capability, i.e., the device execution capability, can be mapped to the space-level execution capability, i.e., the space execution capability of the target space. It can also be understood that there is a mapping relationship between the space execution capability and the device execution capability of at least one device in the target space. In other words, the space execution capability can be obtained by mapping the device execution capability of at least one device in the target space.
[0164] After the spatial execution capability of the target space is obtained by mapping the device execution capability of at least one device under the target space, the corresponding spatial execution action can be determined based on the spatial execution capability of the target space, that is, the spatial execution action indicates the spatial execution capability of the target space. For example, assuming that the spatial execution capability of the target space includes turning off the air conditioner, then the spatial execution action of the target space can be to turn off the air conditioner completely.
[0165] In order to achieve spatial-level device control, the electronic device will also provide users with optional spatial execution actions so that users can choose the spatial execution action that meets their needs.
[0166] Figure 8b A schematic diagram showing an alternative space execution action in one embodiment is shown, Figure 8b As shown in the figure, after determining that the target space is a bedroom, the electronic device can display the action configuration interface for configuring the space execution action of the bedroom. In the action configuration interface, the optional space execution actions are displayed, including but not limited to fully turning on the air conditioner, fully turning off the air conditioner, turning all air conditioners to a specified temperature, turning all air conditioners to a specified mode, air conditioner intelligent conditions, air conditioner intelligent scenario instructions, etc. Assuming that the user clicks "fully turning on the air conditioner", the electronic device can detect this click operation and then determine that the space execution action selected by the user is "fully turning on the air conditioner". Among them, the click operation can be regarded as a selection operation triggered by the space execution action.
[0167] After the user selects a space to perform an action, the electronic device can subsequently implement space-level device control based on the space to perform the action selected by the user.
[0168] Step 350 , generating a spatial linkage solution for the target space based on the selected spatial trigger condition and the spatial execution action configuration.
[0169] Among them, the spatial linkage solution is used to realize the automatic control of each target device in the target space by monitoring the spatial triggering capability of the target space. Each target device refers to a device whose device execution capability meets the spatial execution capability of the target space.
[0170] Figure 8c A schematic diagram of an embodiment of a spatial linkage solution based on spatial trigger conditions and spatial execution actions is shown. Figure 8c In the example, for the target space being a bedroom, the space trigger condition "temperature rises to 26°C", i.e. "when", selected by the user is displayed, and the space execution action "air conditioner fully turned on" selected by the user is also displayed, i.e. "then". If the user clicks "Add", the electronic device can detect the click operation, thereby determining that the user expects to generate a space linkage solution for the bedroom based on the configurations of "temperature rises to 26°C" and "air conditioner fully turned on".
[0171] After completing the configuration of the spatial linkage plan for the target space, the electronic device can control each target device under the target space to respectively execute the spatial execution actions associated with the spatial trigger conditions in the spatial linkage plan through the configured spatial linkage plan when it detects that the spatial trigger capability of the target space meets the spatial trigger conditions in the spatial linkage plan.
[0172] Through the above process, the mapping of space capabilities and device capabilities is defined, that is, the mapping of space trigger capabilities and device trigger capabilities, as well as the mapping of space execution capabilities and device execution capabilities. This simplifies the user's configuration from each device in the target space to the target space itself. Therefore, the user only needs to perform a small amount of configuration for the target space to complete the setting and management of each device in the target space, which greatly reduces the difficulty of user configuration operations and is conducive to improving configuration efficiency.
[0173] See also Figure 9a In an exemplary embodiment, after step 350, the method may further include the following steps:
[0174] Step 410: display the automation configuration interface.
[0175] Among them, the automatic configuration interface is used to display the configured space linkage solution.
[0176] After completing the configuration of the spatial linkage scheme of the target space, in order to facilitate the user to view the configured spatial linkage scheme, in this embodiment, the electronic device provides an automatic configuration interface to display the configured spatial linkage scheme to the user. It should be understood that this automatic configuration interface can be an interface for displaying all configured spatial linkage schemes, or it can be an interface for only the configured spatial linkage scheme for the target space, which is not limited in this embodiment.
[0177] Step 430 , at least one of the space triggering conditions, space execution actions, and / or states of the configured space linkage solution is displayed on the automation configuration interface.
[0178] In this embodiment, for the configured space linkage scheme, in the automation configuration interface, not only the space triggering conditions and space execution actions of the space linkage scheme can be displayed, but also the status of the space linkage scheme can be displayed.
[0179] In one possible implementation, the state of the spatial linkage scheme may include a valid state and an invalid state. In another possible implementation, the state of the spatial linkage scheme may also include a deleted state. In another possible implementation, the state of the spatial linkage scheme may also include an open state and a closed state. It should be understood that only a spatial linkage scheme in a valid state can be enabled and disabled. It can also be considered that the valid state further includes an open state and a closed state.
[0180] Figure 9b A schematic diagram showing an embodiment of a configured spatial linkage solution is shown in FIG. Figure 9b As shown, in the automation configuration interface 501, the configured space linkage scheme for the bedroom "turn on the air conditioning for cooling when the bedroom is 26 degrees" is displayed, and the space trigger condition "the temperature rises to 26 degrees" and the space execution action "turn on the air conditioner" are specifically displayed. The status of the space linkage scheme is also displayed as the on state through the turned-on switch icon 502. Of course, in other embodiments, the status of the space linkage scheme can also be displayed as the off state through the turned-off switch icon, or the status of the space linkage scheme can be displayed as the invalid state / deleted state through grayscale display, icon "!", icon "X", etc., and this embodiment does not constitute a specific limitation on this.
[0181] In one possible implementation, the various states of the spatial linkage scheme can be transformed into each other. On the one hand, if the changed device refers to a deleted device, this may cause the spatial trigger condition or spatial execution action in the spatial linkage scheme to become invalid due to the deleted device, and the state of the spatial linkage scheme can be updated from a valid state to an invalid state or a deleted state; on the other hand, if the changed device refers to a newly added device, this may cause the spatial trigger condition or spatial execution action in the invalid state of the spatial linkage scheme to become valid again due to the newly added device, and the state of the spatial linkage scheme can be updated from an invalid state to a valid state. The state conversion process can include the following steps:
[0182] Specifically, in the first step, the electronic device detects whether there is a device change message. The device change message is used to prompt that there is a changed device in the target space. The changed device can refer to a deleted device or a newly added device. It is explained here that the device change message is obtained based on the change detection of each device in the target space. Figure 1 Taking the user terminal 110 and the gateway 150 in the illustrated implementation environment as an example, the gateway 150 first performs change detection on each device in the target space to obtain a change detection result, so as to indicate the changed devices in the target space through the change detection result; then, the gateway 150 can generate a device change message based on the changed devices in the target space indicated by the change detection result, and send the device change message to the user terminal 110. At this time, the user terminal 110 can receive the device change message, and then determine whether there is a changed device in the target space by detecting whether the device change message is detected.
[0183] In the second step, if a device change message is detected, the operation items of the recommended spatial linkage scheme for the changed device are displayed. The operation items include a join operation item for adding the changed device to the recommended spatial linkage scheme. Of course, in other embodiments, the operation items may also include a do not join operation item for not adding the changed device to the recommended spatial linkage scheme, a join and enable operation item for adding the changed device to the recommended spatial linkage scheme and enabling the spatial linkage scheme, etc., which are not specifically limited here.
[0184] The third step is to respond to the trigger operation for the adding operation item, add the changed device to the recommended space linkage plan, and display the updated status of the space linkage plan in the automation configuration interface.
[0185] Fig.9c A schematic diagram showing the state transformation process of the space linkage scheme in an embodiment is shown. Fig.9cIn the figure, the space linkage solution 503 for the bedroom which is in an invalid state due to the lack of necessary equipment such as air conditioners is "turn on the air conditioner for cooling when the bedroom is 26 degrees". As the air conditioner Q3 is added to the bedroom, the electronic device will accordingly display the recommended space linkage solution 503 for the air conditioner Q3, and display the operation items for the space linkage solution 503. The operation items include not adding the operation item 504, adding the operation item 505, and adding and starting the operation item 506. If the user clicks on the adding operation item 505, the electronic device will be able to detect the click operation, and then add the air conditioner Q3 to the invalid space linkage solution 503, so that the state of the space linkage solution 503 can be updated from the invalid state to the valid state due to the addition of the air conditioner Q3. Among them, the click operation is regarded as a trigger operation for the adding operation item. It is worth mentioning that in Figure 6b In the figure, the failure state of the space linkage scheme is indicated by the icon "!". In other embodiments, the failure state can also be indicated by grayscale display or other icon lights, which does not constitute a specific limitation here.
[0186] Based on this, in the automation configuration interface, the electronic device can accordingly display the updated status of the space linkage plan as a valid status.
[0187] It is worth mentioning that Figure 1 For the implementation environment shown, after the gateway 150 performs change detection on each device in the target space to obtain the change detection result to determine the changed device in the target space, it can also update the status of the space linkage solution based on the changed devices and unchanged devices in the target space. Figure 6a and Figure 6b As shown, on the one hand, if the changed device is a deleted device, the gateway 150 maps the spatial trigger capability based on the device trigger capability of the unchanged device (i.e., the remaining device), and monitors whether the mapped spatial trigger capability satisfies the spatial trigger condition and / or spatial execution capability in the spatial linkage scheme. If satisfied, the state of the spatial linkage scheme is kept unchanged; if not satisfied, the state of the spatial linkage scheme is updated from a valid state to an invalid state or a deleted state, and the state of the spatial linkage scheme is synchronized to the server end 170. It is worth mentioning that here, whether the state of the spatial linkage scheme is updated from a valid state to an invalid state or a deleted state, the gateway 150 can notify the user to make a selection by sending a device change message to the user terminal 110, which has been described in detail in the above embodiments and will not be repeated here.
[0188] On the other hand, if the changed device is a newly added device, the gateway 150 maps the spatial triggering capability based on the device triggering capability of the changed device (i.e., the newly added device) and the unchanged device (i.e., the old device), and monitors whether the mapped spatial triggering capability satisfies the spatial triggering condition and / or spatial execution capability in the spatial linkage scheme that is in an invalid state. If not, the state of the spatial linkage scheme remains unchanged; if satisfied, the state of the spatial linkage scheme is updated from an invalid state to a valid state, and the state of the spatial linkage scheme is synchronized to the server side 170. Similarly, whether the state of the spatial linkage scheme is updated here, the gateway 150 can also prompt the user whether to add the new device to the invalid spatial linkage scheme by sending a device change message to the user terminal 110.
[0189] With the cooperation of the above-mentioned embodiments, the user only needs a small amount of operations to complete the automatic conversion of the status of the spatial linkage plan, avoiding the need for the user to reconfigure when the equipment changes, further effectively saving the user's configuration costs, thereby being able to further effectively improve the configuration efficiency.
[0190] Figures 10a to 10d This is a schematic diagram of a specific implementation of a device control method in an application scenario. Fig.10a The specific implementation diagram of the network topology in this application scenario is shown. Fig.10b The specific implementation diagram of the mapping between device triggering capability and space triggering capability in this application scenario is shown. Fig.10c The specific implementation diagram of the mapping between device execution capabilities and space execution capabilities in this application scenario is shown. Fig.10d The specific timing diagram of the spatial linkage solution configuration process in this application scenario is shown.
[0191] This application scenario is a smart home scenario, in which a smart home system is provided. The smart home system is suitable for Figure 1 The implementation environment shown includes but is not limited to: user terminals, gateways, various smart devices, and server-side. Among them, the user terminal can be a smart phone or a tablet computer; the smart device can be divided into a sensor device and an execution device. The sensor device can detect specific events, that is, the sensor device has a trigger capability (device trigger capability), and the execution device can execute specific actions, that is, the execution device has an execution capability (device execution capability). In the smart home system, the above electronic devices transmit data through a pre-established network connection to implement the device control method. The specific network topology is as follows: Fig.10a shown.
[0192] In order to achieve unified management of devices of different device types and models, a mapping between device capabilities and space capabilities will be performed. This mapping can also enable the smart home system to maintain the stability of automatic control when devices change. Fig.10b As shown in the figure, the target space in the smart home scenario has the trigger capability due to the sensor devices deployed therein, that is, the spatial trigger capability of the target space is mapped by the device trigger capability of at least one sensor device in the target space. For example, both the human body sensor and the temperature sensor have the trigger capability to identify changes in ambient temperature. Since the device trigger capabilities of the two are the same, as the two are deployed in the target space, the spatial trigger capability of the target space can be mapped to identify changes in ambient temperature, and further generate spatial trigger conditions, such as "the temperature rises above 28 degrees Celsius." Fig.10c As shown in the figure, the target space in the smart home scenario has the execution capability due to the execution devices deployed therein, that is, the spatial execution capability of the target space is mapped by the device execution capability of at least one execution device under the target space. For example, the air conditioner companion and the air conditioner both have the execution capability to turn off the air conditioner. Since the device execution capabilities of the two are the same, as the two are deployed in the target space, the spatial execution capability of the target space can be mapped to turn off the air conditioner, and further a spatial execution action can be generated from this, such as "turn off all air conditioners".
[0193] After configuring the trigger conditions for generating space and the space execution actions, you can further configure the space linkage scheme for generating the target space, such as Fig.10dAs shown, after the user terminal completes the configuration of the spatial trigger conditions and spatial execution actions in the spatial linkage plan, the user terminal sends the configured spatial linkage plan to the gateway storage. Based on the mapping of device trigger capabilities and spatial trigger capabilities, the gateway can monitor whether the spatial trigger capabilities obtained by mapping the device trigger capabilities of each sensor device in the target space meet the spatial trigger conditions based on the spatial linkage plan. If so, based on the mapping of device execution capabilities and spatial execution capabilities, the gateway notifies each execution device of the same device execution capability converted from the spatial execution capability to execute the spatial execution action respectively. At the same time, the status of the spatial linkage plan, the device status of each sensor device (i.e., the trigger status), and the device status of each execution device (i.e., the execution status) are synchronously updated in the user terminal and the server. For example, if a user wants to implement space-level linkage control of the night mode in the bedroom, the space trigger condition will be configured as 10 pm, and the space execution action will be bedroom light execution capability 4 (mode switching), adjusting the brightness to 50%, and the corresponding space linkage plan will be generated from this configuration. Then, based on the space linkage plan, the gateway will be able to send corresponding control instructions to the bedroom light at 10 pm, so that the bedroom light executes mode switching and adjusts the brightness to 50%, and finally realizes the night mode of the bedroom light. It is worth mentioning that based on the above-mentioned space-level device control, as long as at least one smart light is still deployed in the target space, the problem of difficulty in successfully implementing the night mode due to the reduction in the number of bedroom lights can be avoided.
[0194] In this application scenario, the user's configuration process is simplified by mapping the triggering capability and execution capability of the device at the spatial level, which is specifically reflected in: 1. Configuring linkage only requires spatial conditional action configuration, reducing the complexity and mismatch risks caused by a large number of devices, so that users can not only easily configure spatial-level linkage rules, but also fully enjoy the convenience of coordinated work of various devices under the smart home system; 2. When the device changes, the impact on the automation configuration is reduced, thereby improving the usability and stability of the smart home system; 3. Users do not need to consider the differences in execution capabilities of various devices, they only need to select the corresponding standard execution capability as the capability of the space and adjust the parameters; 4. Users can complete the configuration of spatial-level linkage rules according to the actual triggering capability and execution capability of the device, and enjoy the convenience and comfortable experience brought by the smart home space linkage.
[0195] Compared with related technologies, (1) Simplified configuration and management: Through space-level triggering and execution capability mapping, users only need to perform a small amount of configuration to complete the setup and management of the smart home system, greatly reducing the difficulty of operation; (2) Enhanced system stability and flexibility: The system can automatically adapt to the increase and decrease and changes of equipment, ensure the stable operation of automation rules, and avoid automation failures caused by equipment changes; (3) Improved user experience: Through automatic detection and adjustment functions, users can more conveniently maintain and manage the smart home system, improving the overall user experience.
[0196] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0197] The following is an embodiment of the device of the present application, which can be used to execute the device control method involved in the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the method embodiment of the device control method involved in the present application.
[0198] See also Fig.11 In an embodiment of the present application, a device control apparatus 900 is provided, including but not limited to: a capability determination module 910, an action determination module 930, and an action execution module 950.
[0199] Among them, the capability determination module 910 is used to determine the space trigger capability of the target space; the space trigger capability is obtained by mapping the device trigger capability of at least one device in the target space.
[0200] The action determination module 930 is used to determine the spatial execution action associated with the spatial trigger condition in the spatial linkage scheme if it is monitored that the spatial trigger capability meets the spatial trigger condition in the configured spatial linkage scheme; the spatial execution action indicates the spatial execution capability of the target space.
[0201] The action execution module 950 is used to determine at least one target device whose device execution capability meets the space execution capability based on the mapping relationship between the device execution capability of each device in the target space and the space execution capability, and control each target device to execute the space execution action respectively.
[0202] In an exemplary embodiment, the capability determination module 910 is further used to determine the device trigger capability of at least one device in the target space; and obtain the space trigger capability of the target space by mapping the device trigger capability of each device.
[0203] In an exemplary embodiment, the capability determination module 910 is further used to obtain status data of each device in the target space; perform data analysis and processing on the status data of each device to determine the device trigger capability of each device.
[0204] In an exemplary embodiment, the capability determination module 910 is also used to determine the device type of each device; different device types are used to describe different device trigger capabilities of each device; the device trigger capabilities of each device belonging to the same device type are converted to obtain the spatial trigger capabilities of the target space corresponding to the same device type.
[0205] In an exemplary embodiment, the action execution module 950 is also used to determine at least one spatial execution capability of the target space based on the spatial execution action; among the devices under the target space, search whether there is a device whose device execution capability is the same as any spatial execution capability; if so, use the searched device as the target device.
[0206] In an exemplary embodiment, the device 900 is also used to determine the device execution capability of each device based on feedback data of each device and / or device attribute data; the feedback data is returned based on the test instructions received by the device and is used to indicate the test action successfully executed by the device.
[0207] In an exemplary embodiment, the device 900 is also used to perform data analysis and processing on the feedback data and / or device attribute data of each device to determine the specific execution capabilities of each device; based on the mapping relationship between the specific execution capabilities and the device execution capabilities, the specific execution capabilities of each device are mapped to the corresponding device execution capabilities.
[0208] In an exemplary embodiment, the apparatus 900 is also used to send a test instruction set to each device in the target space; the test instruction set includes a number of test instructions, each test instruction is used to instruct the device to perform different test actions; and receive feedback data returned by each device based on each test instruction.
[0209] In an exemplary embodiment, the device 900 is also used to perform change detection on each device in the target space to obtain a change detection result; the change detection result is used to indicate the changed devices in the target space; based on the changed devices and unchanged devices in the target space, the status of the space linkage scheme is updated.
[0210] In an exemplary embodiment, the device 900 is also used to, if the changed device is a deleted device, map the spatial trigger capability based on the device trigger capability of the unchanged device; monitor whether the mapped spatial trigger capability meets the spatial trigger conditions and / or spatial execution capability in the spatial linkage scheme; if not, update the status of the spatial linkage scheme from a valid state to an invalid state or a deleted state.
[0211] In an exemplary embodiment, the device 900 is also used to, if the changed device is a newly added device, map the spatial trigger capability based on the device trigger capability of the changed device and the unchanged device; monitor whether the mapped spatial trigger capability meets the spatial trigger condition and / or spatial execution capability in the spatial linkage scheme that is in an invalid state; if so, update the state of the spatial linkage scheme from an invalid state to a valid state.
[0212] See also Fig.12 In an embodiment of the present application, a device control apparatus 1000 is also provided, including but not limited to: a condition selection module 1010, an action selection module 1030, and a solution generation module 1050.
[0213] Among them, the condition selection module 1010 is used to display selectable spatial trigger conditions, and obtain the selected spatial trigger condition in response to the selection operation triggered by the spatial trigger condition; the spatial trigger condition indicates the conditions satisfied by the spatial trigger capability of the target space, and the spatial trigger capability is obtained by mapping the device trigger capability of at least one device under the target space.
[0214] The action selection module 1030 is used to display selectable spatial execution actions, and obtain the selected spatial execution action in response to a selection operation triggered by the spatial execution action; the spatial execution action indicates the spatial execution capability of the target space, and there is a mapping relationship between the spatial execution capability and the device execution capability of at least one device under the target space.
[0215] The plan generation module 1050 generates a spatial linkage plan based on the selected spatial trigger conditions and spatial execution actions, so that when the spatial trigger capability of the target space is monitored through the configured spatial linkage plan to meet the spatial trigger conditions in the spatial linkage plan, each target device under the target space is controlled to respectively execute the spatial execution actions associated with the spatial trigger conditions in the spatial linkage plan; the target device refers to a device whose device execution capability meets the spatial execution capability.
[0216] In an exemplary embodiment, the device 1000 is also used to display an automated configuration interface; the automated configuration interface is used to display a configured spatial linkage plan; and at least one of the spatial trigger conditions, spatial execution actions, and / or states of the configured spatial linkage plan is displayed on the automated configuration interface.
[0217] In an exemplary embodiment, the device 1000 is also used to display operation items of the space linkage plan recommended for the changed device if a device change message is detected; the device change message is used to prompt that there is a changed device in the target space; the operation items include an adding operation item for adding the changed device to the recommended space linkage plan; in response to a trigger operation on the adding operation item, the changed device is added to the recommended space linkage plan, and the updated status of the space linkage plan is displayed in the automatic configuration interface.
[0218] It should be noted that the device control device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when performing device control. In actual applications, the above-mentioned 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.
[0219] In addition, the device control apparatus and the device control method provided in the above embodiments belong to the same concept, wherein the specific manner in which each module performs operations has been described in detail in the method embodiments and will not be repeated here.
[0220] See also Fig.13 In an embodiment of the present application, an electronic device 4000 is provided, and the electronic device 4000 may include: a desktop computer, a laptop computer, a server, a smart phone, a tablet computer, etc.
[0221] exist Fig.13 In the embodiment, the electronic device 4000 includes at least one processor 4001 and at least one memory 4003.
[0222] The data interaction between the processor 4001 and the memory 4003 can be realized through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. 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 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0223] Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual 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 the present application.
[0224] 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 may implement or execute 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 computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0225] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a computer program in the form of instructions or data structures and can be accessed by the electronic device 4000, but is not limited to this.
[0226] The memory 4003 stores a computer program, and the processor 4001 can read the computer program stored in the memory 4003 through the communication bus 4002 .
[0227] The computer program is executed by one or more processors 4001 to implement the device control method in the above-mentioned embodiments.
[0228] In addition, an embodiment of the present application provides a storage medium on which a computer program is stored. The computer program is executed by one or more processors to implement the device control method as described above.
[0229] A computer program product is provided in an embodiment of the present application, including a computer program, which is executed by one or more processors to implement the device control method as described above.
[0230] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A device control method, characterized in that: The method comprises: Determine a spatial trigger capability of a target space; the spatial trigger capability is obtained by mapping a device trigger capability of at least one device in the target space; If it is monitored that the spatial trigger capability meets the spatial trigger condition in the configured spatial linkage scheme, then determining the spatial execution action associated with the spatial trigger condition in the spatial linkage scheme; the spatial execution action indicates the spatial execution capability of the target space when the spatial trigger condition is met; Based on the mapping relationship between the device execution capability of each device in the target space and the space execution capability, at least one target device whose device execution capability meets the space execution capability is determined, and each target device is controlled to execute the space execution action respectively.
2. The method according to claim 1, characterized in that The spatial triggering capability of determining the target space includes: Determining a device trigger capability of at least one device in the target space; The spatial trigger capability of the target space is obtained by mapping the device trigger capability of each of the devices.
3. The method according to claim 2, characterized in that The determining the device triggering capability of at least one device in the target space includes: Acquire status data of each of the devices in the target space; Data analysis and processing are performed on the status data of each of the devices to determine the device triggering capability of each of the devices.
4. The method according to claim 2, characterized in that The obtaining of the spatial trigger capability of the target space by mapping the device trigger capability of each device includes: Determine a device type of each of the devices; different device types are used to describe different device triggering capabilities of each of the devices; The device triggering capability of each of the devices belonging to the same device type is converted to obtain the space triggering capability of the target space corresponding to the same device type.
5. The method according to claim 1, characterized in that The determining, based on the mapping relationship between the device execution capability of each device in the target space and the space execution capability, at least one target device whose device execution capability meets the space execution capability includes: Determining at least one of the spatial execution capabilities of the target space based on the spatial execution action; Searching among the devices under the target space whether there is a device having the same execution capability as any one of the space execution capabilities; If yes, the searched device is used as the target device.
6. The method according to claim 1, characterized in that Before determining at least one target device whose device execution capability meets the space execution capability based on the mapping relationship between the device execution capability of each device in the target space and the space execution capability, the method further includes: The device execution capability of each of the devices is determined based on feedback data of each of the devices and / or device attribute data; the feedback data is returned based on the test instructions received by the device and is used to indicate the test action successfully executed by the device.
7. The method according to claim 6, characterized in that Determining the device execution capability of each device based on the feedback data of each device and / or the device attribute data includes: Performing data analysis and processing on the feedback data and / or device attribute data of each of the devices to determine the specific execution capability of each of the devices; Based on the mapping relationship between the specific execution capability and the device execution capability, the specific execution capability of each device is mapped to the corresponding device execution capability.
8. The method according to claim 6, characterized in that Before determining the device execution capability of each device based on the feedback data of each device and / or the device attribute data, the method further includes: Sending a test instruction set to each of the devices in the target space; the test instruction set includes a plurality of the test instructions, each of the test instructions is used to instruct the device to perform a different test action; Receive feedback data returned by each of the devices based on each of the test instructions.
9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: Performing change detection on each of the devices in the target space to obtain a change detection result; the change detection result is used to indicate the device that has changed in the target space; Based on the changed devices and the unchanged devices in the target space, the status of the space linkage solution is updated.
10. The method according to claim 9, characterized in that The updating process of the state of the space linkage scheme based on the changed devices and the unchanged devices in the target space includes: If the changed device is the deleted device, mapping of the spatial trigger capability is performed based on the device trigger capability of the unchanged device; Monitoring whether the mapped spatial trigger capability satisfies the spatial trigger condition and / or spatial execution capability in the spatial linkage solution; If not, the status of the space linkage scheme is updated from a valid state to an invalid state or a deleted state.
11. The method according to claim 9, characterized in that The updating process of the state of the space linkage scheme based on the changed devices and the unchanged devices in the target space includes: If the changed device is a newly added device, mapping of spatial trigger capabilities is performed based on the device trigger capabilities of the changed device and the unchanged device; Monitoring whether the spatial trigger capability obtained by mapping satisfies the spatial trigger condition and / or spatial execution capability in the spatial linkage scheme that is in an invalid state; If yes, the status of the space linkage scheme is updated from an invalid state to a valid state.
12. A device control method, characterized in that: The method comprises: Displaying selectable spatial trigger conditions, and obtaining the selected spatial trigger condition in response to a selection operation triggered on the spatial trigger condition; the spatial trigger condition indicates a condition satisfied by a spatial trigger capability of a target space, and the spatial trigger capability is obtained by mapping a device trigger capability of at least one device in the target space; Displaying optional spatial execution actions, and obtaining a selected spatial execution action in response to a selection operation triggered by the spatial execution action; the spatial execution action indicates the spatial execution capability of the target space, and there is a mapping relationship between the spatial execution capability and the device execution capability of at least one device under the target space; A spatial linkage plan for the target space is generated based on the selected spatial trigger conditions and spatial execution action configuration, so that when the spatial trigger capability of the target space is monitored through the configured spatial linkage plan to meet the spatial trigger conditions in the spatial linkage plan, each target device under the target space is controlled to respectively execute the spatial execution actions associated with the spatial trigger conditions in the spatial linkage plan; the target device refers to a device whose device execution capability meets the spatial execution capability.
13. The method according to claim 12, characterized in that After generating the spatial linkage solution of the target space based on the selected spatial trigger condition and the spatial execution action configuration, the method further includes: Display the automatic configuration interface; the automatic configuration interface is used to display the configured space linkage solution; At least one of the spatial triggering conditions, spatial execution actions, and / or states of the configured spatial linkage solution is displayed on the automation configuration interface.
14. The method according to claim 13, characterized in that After displaying at least one of the spatial triggering conditions, spatial execution actions, and / or states of the configured spatial linkage scheme on the automation configuration interface, the method further includes: If a device change message is detected, an operation item of a space linkage solution recommended for the changed device is displayed; the device change message is used to prompt that there is a changed device in the target space; the operation item includes an adding operation item for adding the changed device to the recommended space linkage solution; In response to a trigger operation for the adding operation item, the changed device is added to the recommended space linkage solution, and the updated status of the space linkage solution is displayed in the automatic configuration interface.
15. An electronic device comprising at least one processor and at least one memory, wherein: A computer program is stored in the memory, wherein the computer program, when executed by the processor, implements the device control method according to any one of claims 1 to 14.
16. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by one or more processors, the device control method according to any one of claims 1 to 14 is implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by one or more processors, the device control method according to any one of claims 1 to 14 is implemented.
Citation Information
Cited By
Equipment control method and device, electronic equipment, storage medium and product
CN121143081A