CN116346869A - Equipment control method, device, electronic equipment and storage medium - Google Patents

Equipment control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116346869A
CN116346869A CN202310318785.6A CN202310318785A CN116346869A CN 116346869 A CN116346869 A CN 116346869A CN 202310318785 A CN202310318785 A CN 202310318785A CN 116346869 A CN116346869 A CN 116346869A
Authority
CN
China
Prior art keywords
target
space
equipment
data
target space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310318785.6A
Other languages
Chinese (zh)
Inventor
吴慧芳
张龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202310318785.6A priority Critical patent/CN116346869A/en
Publication of CN116346869A publication Critical patent/CN116346869A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application provides a device control method, a device, electronic equipment and a storage medium, and relates to the technical field of Internet of things. The method comprises the following steps: acquiring resource data of a target space; the resource data is related to state data reported by each device in the target space; searching triggering conditions matched with the resource data of the target space in the configured linkage data; the triggering condition in the linkage data is configured according to the resource data of the target space; based on the association relation between the triggering condition and the equipment control service in the linkage data, determining the equipment control service with the association relation with the searched triggering condition; and obtaining a device control instruction aiming at the target device according to the determined device control service, and sending the device control instruction to the target device, so that the target device responds to the device control instruction to execute corresponding actions. The method and the device save the reconfiguration cost of the user, improve the efficiency of automatic control and greatly improve the execution success rate of the equipment control service.

Description

Equipment control method, device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of internet of things, in particular to a device control method, a device, electronic equipment and a storage medium.
Background
With the rapid development of the internet of things technology, equipment control services provided by various intelligent scenes are more and more abundant. Taking the smart home scenario as an example, the device control service may be a device control service based on a scenario (such as a home scenario), or may be an automation-based device control service.
Currently, device control services are typically tied to the device state of the device. Taking an automation-based device control service as an example, a user is required to configure trigger conditions and device execution actions in a client in advance according to the device state of each device so as to realize device automation control. For devices that are relatively small in part for a single amount of space, the presentation logic is relatively clear and the user operation is relatively simple.
However, for a large number of devices and a large number of device types, such as switches, sockets, lamps, and sensors, the automation configuration meeting the actual scene needs of the user requires high labor cost, the user operation is complicated, and the execution success rate of the corresponding automation configuration is affected once the devices change in the later period.
Disclosure of Invention
The device control method, the device, the electronic device and the storage medium can save the reconfiguration cost of the user, improve the efficiency of automatic control and improve the execution success rate of the device control service. The technical scheme is as follows:
according to one aspect of the application, a device control method includes: acquiring resource data of a target space; the resource data are related to state data reported by each device in the target space; searching trigger conditions matched with the resource data of the target space in the configured linkage data; the triggering condition in the linkage data is configured according to the resource data of the target space; determining equipment control service with an incidence relation with the searched triggering condition based on the incidence relation between the triggering condition and the equipment control service in the linkage data; and obtaining a device control instruction aiming at the target device according to the determined device control service, and sending the device control instruction to the target device, so that the target device responds to the device control instruction to execute corresponding actions.
According to one aspect of the present application, an apparatus control device, the device comprises: the data acquisition module is used for acquiring resource data of the target space; the resource data are related to state data reported by each device in the target space; the condition searching module is used for searching the triggering condition matched with the resource data of the target space in the configured linkage data; the triggering condition in the linkage data is configured according to the resource data of the target space; the service determining module is used for determining the equipment control service with the incidence relation with the searched triggering condition based on the incidence relation between the triggering condition and the equipment control service in the linkage data; and the instruction sending module is used for obtaining the equipment control instruction aiming at the target equipment according to the determined equipment control service and sending the equipment control instruction to the target equipment so that the target equipment responds to the equipment control instruction to execute corresponding actions.
In an exemplary embodiment, the data acquisition module includes: the first direct calculation unit is used for calculating and obtaining the resource data of the target space according to the state data reported by each device in the target space if the target space is a subspace; a first subspace determining unit, configured to determine each subspace belonging to the target space if the target space is a parent space; the second direct calculation unit is used for calculating and obtaining the resource data of the target space according to the state data reported by each device in each subspace belonging to the target space; or an indirect calculation unit, configured to calculate, according to the reporting status data of each device in each subspace belonging to the target space, obtain resource data of each subspace in the target space, and synthesize the resource data of each subspace in the target space into resource data of the target space.
In an exemplary embodiment, the device control service is configured to instruct a spatial device to perform a corresponding action, where the spatial device is created according to a space to which the target device belongs; the instruction sending module comprises: a candidate device determining unit configured to determine, based on the spatial device indicated by the device control service, at least one device having the same device attribute as the spatial device in a space to which the target device belongs; a target device determining unit configured to determine the target device based on devices having the same device attribute as the spatial device; the instruction generation unit is used for executing corresponding actions according to the target equipment and the space equipment indicated by the equipment control service and generating equipment control instructions for the target equipment; the device control instructions are used for instructing the target device to execute corresponding actions.
In an exemplary embodiment, the target device determining unit includes: a habit mining subunit, configured to perform equipment usage habit mining based on historical behavior data; and the equipment screening subunit is used for screening the target equipment which accords with the equipment using habit from all the equipment with the same equipment attribute as the space equipment.
In an exemplary embodiment, the instruction sending module includes: the first direct sending unit is used for sending the equipment control instruction to the target equipment if the space to which the target equipment belongs is a subspace; a third subspace determining unit, configured to determine each subspace in the space to which the target device belongs if the space to which the target device belongs is a parent space; a first indirect sending unit, configured to send the device control instruction to each network device in each subspace in the space where the target device belongs, so that the device control instruction is forwarded to the target device through each network device; or a second direct sending unit, configured to directly send the device control instruction to the target device.
In an exemplary embodiment, the apparatus further comprises: the space updating module is used for acquiring the binding relation between each device in the target space and updating the space of each device based on the binding relation; and the data updating module is used for receiving the state data reported by each device after updating the space, and updating the resource data of the target space according to the state data reported by each device in the target space.
In an exemplary embodiment, the apparatus further comprises: the binding request receiving module is used for receiving binding requests initiated by all devices in the target space; and the connection establishment module is used for responding to the binding request, establishing connection between the target space and each device in the target space, and enabling each device to store the binding relation with the target space through connection.
In an exemplary embodiment, the apparatus further comprises: the push message generation module is used for generating a push message about the linkage configuration inlet if the target space is consistent with the space of the target equipment so as to display the linkage configuration inlet in the client; the configuration request receiving module is used for receiving the linkage configuration request; the linkage configuration request is generated through triggering operation for the linkage configuration inlet, and the linkage configuration inlet is used for indicating whether to configure corresponding linkage data according to the resource data of the target space and the equipment control service; and the data extraction module is used for extracting linkage data which is indicated to be configured by the linkage configuration inlet from the linkage configuration request and storing the linkage data so as to search the trigger condition matched with the resource data of the target space in the configured linkage data.
According to one aspect of the present application, an electronic device comprises: at least one processor, at least one memory, and at least one communication bus, wherein the memory stores computer programs, and the processor reads the computer programs in the memory through the communication bus; the computer program, when executed by a processor, implements the device control method as described above.
According to one aspect of the present application, a storage medium has stored thereon a computer program which, when executed by a processor, implements the device control method as described above.
According to one aspect of the present application, a computer program product, comprising a computer program, the computer program being stored in a storage medium, a processor of a computer device reading the computer program from the storage medium, the processor executing the computer program such that the computer device, when executing, implements a device control method as described above.
The beneficial effects that this application provided technical scheme brought are:
according to the technical scheme, based on the resource data for indicating the space state of the target space, the trigger condition matched with the resource data of the target space can be searched in the configured linkage data, and further, based on the association relation between the trigger condition and the equipment control service in the linkage data, the equipment control service associated with the searched trigger condition is determined, so that the equipment control instruction aiming at the target equipment is obtained according to the determined equipment control service, and the equipment control instruction is sent to the target equipment, so that the target equipment responds to the equipment control to execute corresponding actions, namely, based on the automatic equipment control service, the equipment control service is not limited to the equipment state binding of the equipment, and can be provided by the target space, for example, the ' bedroom lamp ' is preconfigured in a client side according to the target space (bedroom lamp), but not the ' bedroom lamp is preconfigured according to the equipment (bedroom lamp), even if the bedroom is offline or fails, the implementation of the ' bedroom lamp ' is not affected, the trigger condition is prevented from being incapable of automatically executing preconfigured actions due to the equipment failure, the automatic reconfiguration of the equipment is prevented, the success rate is improved, the success rate is greatly improved, the success rate of the control is controlled by the equipment is greatly improved, and the equipment is controlled based on the user equipment is not.
Drawings
In order to more clearly illustrate the technical solutions provided by the present application, the drawings that are used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic illustration of an implementation environment according to an embodiment of the present application;
FIG. 2 is a schematic illustration of linkage data configuration in an automation scenario in accordance with an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method of device control, according to an example embodiment;
FIG. 3a is a schematic diagram of an interface of a user terminal for displaying resource data of a target space according to the embodiment of FIG. 3;
FIG. 3b is a schematic diagram of a linkage data configuration framework based on an automation-based device control service in accordance with the corresponding embodiment of FIG. 3;
FIG. 3c is a schematic diagram of various forms of linkage data according to the corresponding embodiment of FIG. 3;
FIG. 4a is a schematic diagram illustrating a calculation manner of resource data of the target space according to the embodiment of FIG. 3;
FIG. 4b is a schematic diagram of a device control instruction transmission according to the corresponding embodiment of FIG. 3;
FIG. 5 is a flowchart illustrating another device control method according to an example embodiment;
FIG. 6 is a flow chart of step 420 in one embodiment of the corresponding embodiment of FIG. 5;
FIG. 7a is a flowchart illustrating another device control method according to an example embodiment;
FIG. 7b is a schematic diagram of a linkage arrangement inlet according to the corresponding embodiment of FIG. 7 a;
FIG. 8 is a flow chart of step 370 in one embodiment in the corresponding embodiment of FIG. 3;
FIG. 9 is a flow chart of step 373 in one embodiment of the corresponding embodiment of FIG. 8;
fig. 10 is a block diagram showing a structure of a device control apparatus according to an exemplary embodiment;
FIG. 11 is a hardware block diagram of a server shown in accordance with an exemplary embodiment;
fig. 12 is a block diagram illustrating a configuration of an electronic device according to an exemplary embodiment.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
As described above, since the device control service is bound to the device status of the device, when a part of the devices providing the device control service is offline or fails, the automation-based device control service cannot be implemented, and at this time, the automation-based device control service needs to be reconfigured, which increases the operation and maintenance costs of the device control.
Currently, the device control service is manually configured by a user through a client, the number and types of devices influence the complexity of configuration, and as the number and types of devices increase, the configuration of the device control based on the devices becomes more complicated, not only increases the complexity of configuration, but also greatly increases the learning cost of the user.
When the number and the type of the devices are small, the configuration logic is relatively clear, the configuration process is simple, and the user can easily get up. For example, only one desk lamp is arranged in the bedroom, and the user can accurately control the desk lamp in the bedroom to be turned on by configuring the equipment control command of turning on the lamp.
However, as the number and types of devices increase, the configuration logic becomes relatively fuzzy, resulting in a great increase in the difficulty of configuration, and as the requirements of different scenarios are met, there may be an interactive relationship between the devices, or different devices need to be configured with different device control instructions, which makes the user need to put more time and effort into configuration, so as to avoid the risk of configuration errors, and greatly increase the learning cost of the user. For example, the lamps in the bedroom include a crystal lamp, a desk lamp and a night lamp, and if the user configures the device control command "turn on" it is impossible to determine which one of the lamps is turned on, and at this time, the user needs to not only clearly know the various types of lamps in the bedroom, but also configure the corresponding device control commands for the different types of lamps, respectively, so that the different types of lamps in the bedroom can be designated to be turned on.
In addition, for a configured device control instruction, once the device changes, such as the device goes offline or fails, or the spatial layout of the device changes, such as the device moves from a bedroom to a living room, if the device control instruction is not reconfigured, the successful execution of the device control instruction is likely to be affected, so that the operation and maintenance cost of the device control is increased, and the flexibility and self-growth are lacking, so that the user experience is finally affected.
As can be seen from the above, the related art still has the defects that the user operation is complicated, the operation and maintenance cost of the device control is too high, and the execution success rate of the automatic configuration is easily affected.
Therefore, the device control method provided by the application can effectively reduce the operation and maintenance cost of the device control and the complexity of configuration in the device control, and is correspondingly suitable for a device control device which can be deployed in an electronic device, such as a gateway, a server and the like.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment involved in a device control method. The implementation environment includes user terminal 110, intelligent device 130, gateway 150, server side 170, and router 190.
Specifically, the user terminal 110 may be considered as a user terminal or a terminal, and the deployment (also understood as installation) of the client associated with the smart device 130 may be performed, where the user terminal 110 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, an intelligent control panel, other electronic devices with display and control functions, and the like, and is not limited herein.
The client is associated with the smart device 130, and is essentially 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 running in the user terminal 110, functions related to device display, device control, and the like of the smart device 130 can be provided for the user, where the client may be in the form of an application program, or may be in the form of a web page, and accordingly, an interface for the client to perform device display and control may be in the form of a program window, or may be in the form of a web page, which is not limited herein.
The intelligent device 130 is disposed in the gateway 150 and communicates with the gateway 150 through its own configured communication module, and is further controlled by the gateway 150. It should be understood that smart device 130 is generally referred to as one of a plurality of smart devices 130, and embodiments of the present application are merely illustrated with smart device 130, i.e., embodiments of the present application are not limited in the number and type of smart devices deployed in gateway 150. In one application scenario, intelligent device 130 accesses gateway 150 via a local area network, thereby being deployed in gateway 150. The process of intelligent device 130 accessing gateway 150 through a local area network includes: a local area network is first established by gateway 150 and intelligent device 130 joins the local area network established by gateway 150 by connecting to gateway 150. Such local area networks include, but are not limited to: ZIGBEE or bluetooth. The intelligent device 130 may be an intelligent printer, an intelligent fax machine, an intelligent camera, an intelligent air conditioner, an intelligent door lock, an intelligent lamp, an intelligent sound box, an intelligent television, an intelligent refrigerator, or an electronic device such as a human body sensor, 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 paste switch, a magic cube controller, a curtain motor, etc. which are configured with a communication module.
Interaction between user terminal 110 and intelligent device 130 may be accomplished through a local area network, or through a wide area network. In an application scenario, the ue 110 establishes a communication connection between the router 190 and the gateway 150 in a wired or wireless manner, for example, including but not limited to WIFI, so that the ue 110 and the gateway 150 are disposed in the same local area network, and further the ue 110 may implement interaction with the smart device 130 through a local area network path. In another application scenario, the ue 110 establishes a wired or wireless communication connection between the server 170 and the gateway 150, for example, but not limited to, 2G, 3G, 4G, 5G, WIFI, etc., so that the ue 110 and the gateway 150 are deployed in the same wide area network, and further the ue 110 may implement interaction with the smart device 130 through a wide area network path.
The server 170 may be considered as a cloud, a cloud platform, a server, etc., where the server 170 may be a server, a server cluster formed by a plurality of servers, or a cloud computing center formed by a plurality of servers, so as to better provide background services to a large number of user terminals 110. For example, the background services include device control services.
Assuming that an automation scene providing an automation-based device control service has been configured, as shown in fig. 2, a scene identifier "home scene" displayed in the scene display page 302 indicates the configured automation scene 306, then when the user clicks on the scene identifier "home scene" of the automation scene 306, the scene details page 701 of the automation scene 306 may be entered. In the scene detail page 701, the linkage data configured in the automation scene 306 includes trigger conditions and actions executed by the device, specifically, the trigger conditions displayed are: the vestibule is occupied with people, and the displayed equipment executes the following actions: the living room is turned on, the living room is turned on for air conditioning, a condition adding entry 703 for adding a trigger condition and an action adding entry 706 for adding an action performed by the device are also displayed, in addition, the trigger condition is modified by the control 702, and the action performed by the device is modified by the controls 704 and 705. Based on this, with the configuration of the linkage data related to the automation scene 306, when the user returns home to open the intelligent door lock, the trigger condition "the person is in the vestibule" configured in the automation scene 306 is considered to be satisfied, and at this time, the equipment with the action, i.e. the living room lamp and the living room air conditioner, configured in the automation scene 306 can automatically execute the corresponding action, i.e. automatically turn on the living room lamp and automatically turn on the living room air conditioner, thereby realizing the automatic execution of the returning home scene.
As the user configures the linkage data associated with the automation-based device control service via the client in the user terminal 110, the gateway 150/server 170 can be requested to provide the device control service to the user.
Specifically, for example, after acquiring the resource data for indicating the space state of the target space, the server 170 can search the linkage data for a trigger condition (e.g. a person in a vestibule) that matches the resource data of the target space, and then determine, based on the association relationship between the trigger condition and the device control service in the linkage data, the device control service (e.g. turning on a living room, turning on an air conditioner in a living room, etc.) associated with the found trigger condition, to obtain a device control instruction (e.g. turning on a living room light, turning on an air conditioner in a living room, etc.) for the target device 130 (e.g. the living room light, the living room air conditioner in a living room, etc.). At this time, for the target device 130, after the server 170 sends the device control instruction to the target device 130, the device control instruction can be received, and a corresponding action can be performed in response to the device control instruction.
Referring to fig. 3, an embodiment of the present application provides a device control method, which is suitable for an electronic device, and the electronic device may specifically be a server 170 in the implementation environment shown in fig. 1, or may be a gateway 150 in the implementation environment shown in fig. 1.
In the following method embodiments, for convenience of description, the execution subject of each step of the method is described as an electronic device, but this configuration is not particularly limited.
As shown in fig. 3, the method may include the steps of:
in step 310, resource data of the target space is acquired.
The resource data is related to state data reported by each device in the target space.
First, the target space refers to a space set for a user to provide a device control service. The space may be a room or an area set in various scenes, for example, in an intelligent home scene, the target space may specifically refer to a living room, a bedroom, a study room, a restaurant, a kitchen, etc. set in the intelligent home scene, or a family covering the living room, the bedroom, the study room, the restaurant, the kitchen, etc. may be taken as the target space, or the living room may be taken as a guest receiving area, the restaurant may be taken as a dining area, and the bedroom and the study room may be divided into leisure areas, so as to obtain different target spaces; in the intelligent park scene, the target space may be an entertainment area, a fitness area, a leisure area, or the like provided in the intelligent park scene, and the specific type of the target space is not limited herein.
It will be appreciated that the types of target spaces are different, and that the target space may be a parent space or a child space. Taking the smart home scenario as an example, if the target space is a living room, the target space is regarded as a subspace, and if the target space is a leisure area including a bedroom and a study room, the target space is regarded as a parent space, and the parent space includes other subspaces such as the bedroom and the study room, that is, the parent space includes other subspaces, and the subspaces do not include other subspaces. In a different scenario, even if the type of the target space is the same, it may be different whether the target space is a parent space, for example, in a smart home scenario, if the target space is a leisure area including a bedroom and a study room, the target space is a parent space, whereas in a smart park scenario, if the target space is a leisure area, the target space is a child space.
TABLE 1 calculation strategy for resource data of target space (I)
Figure BDA0004150980020000101
As can be seen from table 1, the resource data in the target space is related to the status data reported by each device in the target space, and the status data of each device is reported by each device to the electronic device for indicating the device status of each device. The device status of the device may be used to describe the operating condition of the device, e.g., the device status includes online, offline, malfunctioning, etc., and may also be used to describe the operating mode of the device, e.g., the device status includes temperature sensed by a temperature sensor, humidity sensed by a humidity sensor, whether a person is reflected by the temperature sensed by a human sensor, etc. It will be appreciated that the resource data of the target space may be used to describe occupancy of the target space, e.g., the target space is unmanned, occupied, etc., and may also be used to describe specific occupancy of the target space, e.g., the target space is used for sleeping, reading, dining, receiving guests, leisure, viewing, overnight, etc., and may also be used to describe behavioral events related to the target space, e.g., behavioral events including, but not limited to: entering the target space, exiting the target space, etc., without limitation.
In one possible implementation manner, if the target space is a parent space, determining each subspace belonging to the target space, and calculating to obtain resource data of the target space according to state data reported by each device in each subspace belonging to the target space, so as to determine a space state of the parent space.
Specifically, as shown in fig. 4a, the calculation of the resource data includes a direct calculation method and an indirect calculation method, and the direct calculation method includes the following steps: according to the state data reported by each device in each subspace belonging to the target space, calculating to obtain the resource data of the target space; the indirect calculation mode comprises the following steps: according to the report state data of each device in each subspace belonging to the target space, calculating to obtain the resource data of each subspace belonging to the target space, and synthesizing the resource data of each subspace belonging to the target space into the resource data of the target space.
For example, in connection with table 1, it is assumed that the target space is a home, which contains subspaces of a vestibule, a living room, etc., as a mother space, in which the vestibule is installed with the body sensors a and b, and the living room is installed with the body sensor c. Then, for each subspace, the status data of each human body sensor at least comprises the temperature sensed by each human body sensor, so as to reflect whether a person exists in each subspace. Regarding the space state of the home, i.e. whether a person exists in the home, if the temperatures sensed by the body sensor a and the body sensor b respectively reflect the presence of a person in the vestibule, and the temperatures sensed by the body sensor c reflect the absence of a person in the living room, on one hand, the temperatures sensed by the body sensor a and the body sensor b respectively may be synthesized into the vestibule sensed temperature (reflecting the presence of a person in the vestibule), the temperature sensed by the body sensor c is then taken as the living room sensed temperature (reflecting the absence of a person in the living room), and finally the home sensed temperature is jointly determined based on the vestibule and the living room sensed temperatures respectively, so that the presence of a person in the home is determined based on the home sensed temperature; on the other hand, the human body sensors in the subspaces are directly combined to determine whether a person exists in the household, namely if the temperature sensed by any one of the human body sensors a, b and c reflects the person exists in the subspaces, the temperature sensed by the household is determined to reflect the person exists in the household.
In one possible implementation manner, if the target space is a subspace, the resource data of the target space is obtained by calculation according to the status data reported by each device in the target space, so as to determine the space status of the subspace.
Still referring to table 1, the foregoing example will be described assuming that the target space is a vestibule (i.e., a room), and that no other subspace is included as a subspace. Then, it is assumed that the hallway is installed with the body sensors a and b, and at this time, the status data of each body sensor at least includes the temperature sensed by each body sensor for reflecting whether a person is in the hallway.
Based on this, the space state of the vestibule, that is, whether or not a person is present in the vestibule, is reflected based on the temperature sensed by the vestibule, which is determined based on the temperature sensed by either one of the human sensors a, b in the vestibule.
The above can be known that, regarding the space state of the mother space, the state data declared by each device in each subspace can be directly determined, in this way, the data source is accurate, which is beneficial to improving the accuracy of space state determination, and is especially suitable for the situation that the number of subspaces is less and the total number of devices in each subspace is less; the method can also be used for determining the resource data of each subspace according to the state data reported by each device in each subspace, and then determining the resource data of each subspace indirectly, so that the method is beneficial to improving the efficiency of determining the space state, and is particularly suitable for the situations that the space structure is complex and the total number of devices in each subspace is large, and the method for determining the space state is not limited in the embodiment.
Of course, in addition to the state data reported by the temperature sensor, the humidity sensor, the body sensor, and the like as shown in table 1, the resource data reflecting the space state such as whether the target space is occupied or not, whether the target space is comfortable, and the like may be calculated according to the state data reported by other devices, and the calculation strategy is shown in table 2, which is not particularly limited herein.
TABLE 2 calculation strategy of resource data of target space (II)
Figure BDA0004150980020000121
After the resource data of the target space is obtained, an equipment control service based on automation can be provided for the user based on the resource data.
It is worth mentioning that the electronic device may also send the obtained resource data of the target space to the user terminal, so that the user terminal provides the user with real-time environmental condition display about the target space according to the received resource data of the target space, so that the user can know the real-time environmental condition of the target space more clearly and intuitively, and thus the configuration of the device control service is performed more accurately. Fig. 3a shows an interface schematic diagram of resource data of a target space displayed in a user terminal, in fig. 3a, a household is taken as the target space, and not only the current day energy consumption and the current month energy consumption of the household, but also real-time temperatures of a plurality of subspaces (such as a primary lying, a secondary lying and a living room) in the household, device states (such as a light on, an air conditioner on) of different types of devices in the subspaces, and the like are displayed.
And 330, searching for a trigger condition matched with the resource data of the target space in the configured linkage data.
The triggering conditions in the linkage data are configured according to the resource data of the target space.
That is, the resource data of the target space that matches the trigger condition may be considered as the resource data of the target space that enables the trigger condition to be satisfied.
Referring back to fig. 2, taking the automation scene as an example of the "home scene", the linkage data configured in the "home scene" includes: the triggering condition is that people exist in the vestibule, and the equipment control service is that the living room is turned on and the living room is turned on for air conditioning. That is, the linkage data indicates at least that if the resource data of the target space is such that the trigger condition "person in vestibule" is satisfied, the device control service "living room lights, living room air conditioner on" is executed. The target space is a vestibule, the resource data of the target space refers to whether people exist in the vestibule or not reflected by the temperature sensed by the human body sensor in the vestibule, and the equipment control service refers to the lighting of a living room and the air conditioning of the living room.
Then, based on the temperature sensed by any one of the human body sensors in the vestibule, if a person is reflected in the vestibule, the resource data (person is in the vestibule) representing the target space causes the trigger condition indicated by the linkage data configured in the "home scene" to be satisfied, that is, the trigger condition matching with the resource data of the target space is found in the linkage data.
In this way, if the triggering condition meets the resource data (vestibule person) depending on the target space, and does not depend on a certain device (human body sensor a or b), then when a certain device changes, for example, the human body sensor a is offline or fails, the change of the human body sensor a does not influence the successful triggering of the triggering condition because the human body sensor b is still online in the vestibule, thereby fully guaranteeing the success rate of realizing the device control service, and simultaneously improving the flexibility and expansibility of the device control service, and further being beneficial to improving the user experience.
In this description, the linkage data is configured in advance by the client in the user terminal in order that the electronic device (e.g., the server) can provide the device control service based on automation for the user, and then, for the electronic device, after the user terminal completes the configuration of the linkage data corresponding to each automation scene, the linkage data sent by the user terminal can be received and stored, so that when the device control service based on automation is provided for the user, the configured linkage data can be obtained to search the trigger condition matched with the resource data of the target space.
In one possible implementation, the device control service is configured to instruct the spatial device to perform a corresponding action; the space device is created from the space to which the target device belongs. For example, the target devices are a living room air conditioner a and a living room air conditioner B, and correspondingly, the space device can be created according to the living room of the living room air conditioner a and the living room air conditioner B, which is understood to refer to any air conditioner device in the living room, and if the device control service is "the living room air conditioner is fully opened", all the air conditioners (the air conditioners a and B) in the living room are instructed to execute corresponding opening actions.
In one possible implementation, the device control service is used to instruct the target device to perform a corresponding action. For example, if the device control service is "living room air conditioner a", the target device air conditioner a is instructed to perform a corresponding opening action.
Fig. 3b shows a schematic diagram of a linkage data configuration framework for an automation-based device control service. In fig. 3b, the interface 301 illustrates a configuration manner of linkage data for a device, in which the trigger condition 302 may be configured according to a device state of the device, and the device control service 303 may be used to instruct the target device to perform a corresponding action; the interface 304 also illustrates a configuration manner of linkage data for a space, in which the trigger condition 305 may be configured according to resource data of a target space, and the device control service 306 may be configured to instruct a spatial device to execute a corresponding action, where the resource data of the target space is calculated from a device state of each device in the target space based on the calculation policy 307, and the device control service is converted into a device control instruction for the target device based on the calculation policy 308.
Therefore, in combination with the configuration mode of the linkage data for the equipment and the configuration mode of the linkage data for the space, as shown in fig. 3c, the linkage data 401 of equipment triggering-space execution can be configured, the linkage data 402 of space triggering-space execution can be configured, the linkage data 403 of space triggering-equipment execution can be configured, the equipment control service based on automation is realized through the linkage data in different forms, the original flexibility and openness are not affected, the understanding cost and the learning cost of a user can be greatly reduced, and the operation and maintenance cost in equipment control can be controlled in a large scale.
And 350, determining the equipment control service with the association relation with the searched triggering condition based on the association relation between the triggering condition and the equipment control service in the linkage data.
As described above, the trigger condition and the device control service, which have the association relationship in the linkage data, are configured in advance by the user via the client in the user terminal, in other words, the association relationship between the trigger condition and the device control service is substantially stored in the linkage data.
Still illustrated in fig. 2 as a "home scene", the linkage data configured in the "home scene" includes: the triggering condition is that people exist in the vestibule, and the equipment control service is that the living room is turned on and the living room is turned on for air conditioning. Therefore, in the linkage data, the association relation between the trigger condition 'people in the vestibule' and the equipment control service 'living room on lamp and living room on air conditioner' is substantially stored.
Then, after determining that the trigger condition is "people in vestibule", the device control service can be obtained as "living room is on and living room is on air conditioner" based on the association relation stored in the linkage data.
And step 370, obtaining a device control instruction for the target device according to the determined device control service, and sending the device control instruction to the target device.
The device control instruction is used for indicating the target device to execute corresponding actions.
After determining the device control service, device control instructions for the target device can be further determined. Still further, in the foregoing example, assuming that the lamp d and the air conditioner e are installed in the living room, after the device control service is "the living room is turned on and the living room is turned on", the device control command 1 for the lamp d in the living room and the device control command 2 for the air conditioner e in the living room can be further obtained. The device control command 1 is used for indicating that the lamp d is turned on, and the device control command 2 is used for indicating that the air conditioner e is turned on.
Of course, in other embodiments, the manner in which the device control instructions for the target device are obtained by the device control service is not particularly limited herein, as shown in table 3.
Table 3 device control services and device control instructions for target devices
Figure BDA0004150980020000151
/>
Figure BDA0004150980020000161
It will be appreciated that, since the living room serves as a subspace, no other subspaces are included, and then, after determining the device control instructions for the target device, the corresponding device control instructions can be directly sent to the target device. That is, in one possible implementation, if the space to which the target device belongs is a subspace, the device control instruction is directly sent to the target device.
For example, the device control instruction 1 is sent to the light d in the living room, and the device control instruction 2 is sent to the air conditioner e in the living room. Then, upon receiving the device control instruction, the target device can perform a corresponding action in response to the device control instruction. For example, the lamp d performs an on-operation, and the air conditioner e performs an on-operation.
As described above, the space is not limited to the subspace as the type is different, but may be a parent space, for example, a home may be a parent space, and may further include subspaces such as a living room, a bedroom, a study room, a restaurant, and a kitchen, and at this time, after determining a device control instruction for a target device, two instruction transmission methods exist for determining that the space to which the target device belongs is a parent space: indirect transmission and direct transmission. In one possible implementation, indirect transmission refers to: if the space of the target device is the parent space, determining each subspace in the space of the target device, and sending the device control instruction to each network device of each subspace in the space of the target device, so as to forward the device control instruction to the target device through each network device. In one possible implementation, direct transmission refers to: if the space of the target equipment is the mother space, determining each subspace in the space of the target equipment, and directly sending the equipment control instruction to the target equipment.
For example, if the space to which the target device belongs is a home, the subspaces belonging to the home include, but are not limited to, a living room, a study room, a bedroom, etc., and if the device control service provided by the home is "home light is fully on", and if the lights d, f, g are installed in the living room, the device control command 3 for the light d in the living room, the device control command 4 for the light f in the study room, and the device control command 5 for the light g in the bedroom can be determined, at this time, the device control commands 3-5 can be directly sent to the lights d, f, g through a wide area network path (shown by a dotted line in fig. 4), or the device control commands 3-5 can be sent to the living room network devices, the study room network devices, and the bedroom network devices to which the lights d, f, g are respectively connected first, and then the device control commands 3-5 can be sent to the lights d, f, g through a local area network path (shown by a solid line in fig. 4). Then, after receiving the device control instructions 3-5, respectively, each target device (lamps d, f, g) can perform a corresponding action (turn on) in response to the device control instructions 3-5.
Through the process, the equipment control service provided by the space is realized, for a user, the equipment control service based on automation is not limited to be bound with the equipment state of equipment, the equipment control service can be provided by the target space, even if a certain equipment in the target space is offline or fails, the realization of the equipment control service is not influenced, the decoupling with the equipment state is realized, the phenomenon that the equipment cannot automatically execute the preconfigured action due to the fact that the triggering condition cannot be met due to the equipment failure is avoided, the equipment control service based on automation is further avoided being reconfigured, the reconfiguration cost of the user and the operation and maintenance cost of the equipment control are saved, the efficiency of the automation control is improved, the execution success rate of the equipment control service is also greatly improved, and the user does not need to pay attention to the specific number and the type of the equipment in the target space, so that the complexity of configuration in the equipment control is reduced.
In addition, based on the state data reported by each device in different subspaces, resource data of different subspaces and parent spaces are provided, device resource sharing can be formed on the global space, and the automatic configuration requirements of users in different scenes can be met more flexibly, so that device control services can be provided for the users better, and the user experience is improved.
Referring to fig. 5, in an exemplary embodiment, prior to step 310, the method may further include the steps of:
step 440, obtaining the binding relation between each device in the target space and the target space, and updating the space to which each device belongs based on the binding relation.
Specifically, prior to step 440, the binding process of each device in the target space with the target space includes the following steps:
step 420, receiving a binding request initiated by each device in the target space.
The binding request is used to bind the target space for the device, and may also be considered as indicating that a connection between the device and the target space is established.
In one possible implementation, for a device, the sending of the binding request is implemented based on distances to a plurality of network devices. For example, a device may send a binding request to a network device closest to it in order to establish a binding relationship between the device and the space to which the network device belongs. Wherein the network device may be adapted for use in gateway 150 in the implementation environment shown in fig. 1, and is not specifically limited herein.
Specifically, as shown in fig. 6, step 420 may include the steps of:
step 421, broadcasting a network access signal to the device, so that the device responds to the network access signal to perform ranging on the network device, and determining the distance between the device and the network device.
That is, in this embodiment, the distance between the device and the network device is obtained by ranging the network device by the device.
The ranging process specifically means that, for the network device, the network access signal may be broadcast to each device belonging to the same space or different spaces, and accordingly, for each device, the network access signals broadcast by the network devices from the same space or different spaces can be received.
Based on the received network access signals, a plurality of distances between the device and the network devices broadcasting the network access signals can be calculated according to a calculation formula d=10 ((abs (RSSI) -a)/(10×n). Where d represents the distance between the device and the network device broadcasting the network access signal, RSSI represents the signal strength of the network access signal, a and n are both super parameters, a represents the signal strength of the network access signal when the device is 1 meter away from the network device, and n represents the propagation coefficient of the network access signal, which can also be considered as an environmental attenuation factor.
In step 423, the receiving device sends a binding request based on the distances to the plurality of network devices.
For each device, after determining the distance between the device and the plurality of network devices, one network device access can be selected from the plurality of network devices based on the distance between the device and the network devices, and then the binding relationship between the device and the space to which the network device belongs can be established as the device accesses the network device.
In this embodiment, the device selects the network device closest to the device to send a binding request. Specifically, after determining the network device closest to the network device, the device requests to establish a communication connection with the network device, and then sends a binding request to the network device based on the established communication connection. For example, in fig. 4, the lamp d in the living room may receive the network access signal sent by the living room network device, the study room network device, and the bedroom network device, and the lamp d and the living room network device are the nearest to each other, at this time, the binding request sent to the living room network device by the lamp d can establish the binding relationship between the lamp d and the living room, and the lamp d may be considered as a device in the living room, and the lamp f may be considered as a device in the study room, and the lamp g may be considered as a device in the bedroom.
Of course, in other embodiments, the device may also directly implement sending the binding request according to the signal strength of the network access signal broadcasted by the network device, for example, the device sends the binding request to the network device with the largest signal strength of the broadcasted network access signal, which is not limited in this embodiment specifically.
Further, in order to improve the accuracy of the binding between the device and the target space, a signal strength threshold and/or a distance threshold may be set, and when the network access signal strength is greater than the signal strength threshold and/or the distance between the device and the network device broadcasting the network access signal is greater than the distance threshold, the device is allowed to send a binding request to the corresponding network device. In this way, the possibility of binding errors can be effectively reduced. Of course, in other embodiments, the user may also manually adjust by means of the user terminal when the binding between the device and the target space is found to be inaccurate.
In step 430, in response to the binding request, a connection is established between the target space and each device therein, and each device is caused to store a binding relationship with the target space through the connection.
After the network equipment receives the space binding request sent by the equipment, the equipment request is determined to be bound with the space where the network equipment is located, and then connection is established between the equipment and the network equipment so as to correspondingly store the association relation between the equipment and the space where the network equipment is located, and further, a basis is provided for automatic update of the space where the equipment is located.
Assuming that one intelligent sound box is located in a bedroom and one intelligent television is located in a living room, at the moment, the intelligent television located in the living room has an association relationship with the living room; the intelligent sound box located in the bedroom has no association relationship with the living room, but has association relationship with the bedroom. If the intelligent sound box is moved to the living room from the bedroom, the intelligent sound box is disconnected with the network equipment in the bedroom and is connected with the network equipment in the living room, so that the intelligent sound box and the bedroom are unbound and bound with the living room, and the association relationship between the intelligent sound box and the living room is correspondingly stored, and at the moment, the space of the intelligent sound box can be automatically updated to the living room from the bedroom based on the association relationship between the intelligent sound box and the living room.
As can be seen, along with the movement of the device in different spaces, the device establishes connection with the network device in the different spaces, so that the device can be bound with the different spaces, and correspondingly, the association relationship between the device and the different spaces is stored, the association between the device and the spaces is enhanced, and the automatic update of the space to which the device belongs can be realized.
And 450, receiving state data reported by each device after updating the space, and updating the resource data of the target space according to the state data reported by each device in the target space.
That is, no matter the state of the equipment is changed or the equipment moves in different target spaces, the resource data of the target spaces are always calculated in real time according to the state data reported by the equipment after the space is updated, so that the equipment control service based on automation is not influenced.
Further, the steps are automatically completed without manual operation of a user, and when the position of the equipment or the network equipment is changed, the equipment can resend a new binding request to the corresponding network equipment based on the network access signal, so that the space of the equipment is updated in time, and further the resource data of the target space is updated in time, thereby ensuring that the triggering condition in the linkage data can be successfully met without influencing the realization of the equipment control service based on automation.
Referring to fig. 7a, in an exemplary embodiment, prior to step 330, the method may further comprise the steps of:
step 510, a linkage configuration request is received.
The linkage configuration request is generated through triggering operation of a linkage configuration entry, and the linkage configuration entry is used for indicating whether linkage data corresponding to equipment control service configuration is configured according to resource data of a target space.
In order to facilitate configuration of linkage data for a user, the electronic device may send a push message about the linkage configuration entry to the user terminal, so that the user terminal provides the linkage configuration entry for the user, i.e., displays the linkage configuration entry in the client. If the user performs a corresponding trigger operation on the linkage configuration entry, it is able to rapidly instruct the electronic device whether to configure corresponding linkage data according to the resource data of the target space and the device control service. The resource data of the target space is used for configuring triggering conditions in the linkage data.
FIG. 7b illustrates a schematic diagram of a ganged configuration entry in one embodiment, as shown in FIG. 7b, in an automated scenario "home scenario", a plurality of ganged configuration entries are provided for user flexibility in configuration. The linkage configuration entry 707 is used for indicating whether to establish an association relationship between the trigger condition "person in vestibule" and the equipment control service "living room on", the linkage configuration entry 708 is used for indicating whether to establish an association relationship between the trigger condition "person in living room" and the equipment control service "living room on air conditioner", and the linkage configuration entry 709 is used for indicating whether to establish the trigger condition "person in living room" and the equipment control service "home light is fully on". It is noted herein that the linkage arrangement portal may be displayed in any control form (e.g., a switch), and is not specifically limited herein.
In fig. 7b, each of the linkage arrangement entries is shown as a switch, and for the linkage arrangement entry 707, if the user slides the switch on, it indicates that the user desires to have a person in the vestibule, and the lights in the living room can be turned on. The sliding operation is regarded as a triggering operation for the linkage configuration entrance. It should be noted that the specific behavior of the triggering operation may also be different according to the input components (such as a touch layer, a mouse, a keyboard, etc. overlaid on the display screen) configured by the user terminal. For example, the user terminal is a smart phone configured with a touch layer, and the triggering operation can be gesture operations such as clicking and sliding; in the case of a notebook computer with a mouse at the user terminal, the triggering operation may be a mechanical operation such as drag, single click, double click, etc., which is not limited herein.
As the user performs a corresponding triggering operation on the linkage configuration entry 707, for the user terminal, the triggering operation can be detected, so as to determine corresponding linkage data "the hall is on", and initiate a linkage configuration request to the electronic device according to the linkage data, so as to instruct the electronic device to establish an association relationship between the triggering condition and the device control service. In the linkage data, the triggering condition is that a person is in the vestibule, and the equipment control service is that a living room is turned on.
In one possible implementation manner, the linkage configuration entry is set for the target space and the space to which the target device belongs, that is, if the target space and the space to which the target device belongs are consistent, a push message about the linkage configuration entry is generated to display the linkage configuration entry in the client, and then a linkage configuration request is initiated to the electronic device based on a trigger operation for the linkage configuration entry, so as to instruct the electronic device to configure corresponding linkage data according to the resource data of the target space and the device control service. For example, assume that the linkage data in which the target space is a bedroom, the target device is a bedroom air conditioner, and the space to which the target device belongs is a bedroom is "bedroom temperature is lower than 23 ℃ to turn on the bedroom air conditioner".
Step 530, extracting linkage data indicating the configuration of the linkage configuration entry from the linkage configuration request and storing the linkage data, so as to find a trigger condition matched with the resource data of the target space in the configured linkage data.
After receiving a linkage configuration request carrying linkage data, the electronic device can extract the linkage data from the linkage configuration request and store the linkage data, so that when an automatic device control service is provided for a user, the stored linkage data can be obtained to search a trigger condition matched with resource data of a target space.
Under the action of the embodiment, linkage configuration functionalization is realized, and for a user, the configuration based on equipment is converted into trigger operation aiming at a linkage configuration inlet, so that the configuration is easier to understand from the perspective of the user, and the management and use cost of the user configuration is greatly reduced.
As previously described, the device control service may be configured to instruct the space device to perform a corresponding action, and may also be configured to instruct the target device to perform a corresponding action, and herein, in conjunction with fig. 8, a process of obtaining a device control instruction for the target device by the device control service configured to instruct the space device to perform a corresponding action is described in detail below:
referring to fig. 8, in an exemplary embodiment, obtaining a device control instruction for a target device according to the determined device control service in step 370 may include the steps of:
step 371, determining at least one device having the same device attribute as the spatial device in the space to which the target device belongs, based on the spatial device indicated by the device control service.
Wherein the device property is related to a high property of the environment where the device is adjustable, e.g. the lamp is used to adjust the brightness of the environment, and the corresponding environment property is brightness, the device property of the lamp is brightness property. Of course, in other embodiments, the device attribute is not limited to a brightness attribute, but may be a temperature attribute, a humidity attribute, a volume attribute, and the like. It is noted here that the device attributes are the same and the device types may differ. For example, the device attribute is a temperature attribute, and the candidate devices may be air conditioners, fans, radiators, and the like having different device types, and the present embodiment does not limit whether the candidate devices having the same device attribute have the same device type.
In step 373, the target device is determined based on the devices having the same device attributes as the spatial device.
The space device is created according to the space to which the target device belongs, and then the space to which the space device belongs refers to the space to which the target device belongs.
For example, in the linkage data "there is a person in a hall light fully on" and the trigger condition is "there is a person in a hall" and the device control service is "the hall light fully on", then, based on the device control service, it can be determined that the space to which the target device belongs is the living room, the space device refers to all the lights in the living room, and thus, it is determined that at least one device having the same device attribute as the space device refers to all the lights in the living room, that is, the target device.
It should be noted that the space to which the target device belongs may refer to a target space, and may refer to another space different from the target space. Step 375, the device control instruction for the target device is generated according to the corresponding actions performed by the target device and the spatial device indicated by the device control service.
In the above-described example, if only the lamp d is installed in the living room, the device control command "turn on the lamp d" for the living room lamp d can be generated by determining that the target device is the living room lamp d and that the operation to be performed is the on operation based on the device control service "the living room lamp is fully on".
After the device control command is sent to the target device, the target device can receive the device control command and execute corresponding actions according to the indication of the device control command. For example, when the lamp d receives the device control command "turn on the lamp d", the turn-on operation is performed.
In the process, the conversion between the equipment control service and the equipment control instruction is realized, on one hand, for a user, the relevant configuration based on the target equipment can be simplified into the relevant configuration based on the space to which the target equipment belongs, so that the user does not need to know the quantity and the type of the target equipment in the space, the complexity of the configuration in the equipment control is simplified, the learning cost of the user is reduced, and the problem that the configuration in the equipment control in the related technology is too complicated can be effectively solved; on the other hand, as for the equipment control service provided by the space, decoupling is carried out with the equipment state, no matter the equipment is added or deleted or the equipment is offline on line, the automation-based equipment control service provided by the electronic equipment for the user is not influenced, the user can avoid intervention, the user can configure from the space dimension, the equipment is more visual and more convenient, and the complexity of configuration in equipment control is further reduced.
As described above, when there are a plurality of devices with the same device attribute in a space, for example, if a bedroom includes a crystal lamp, a desk lamp and a night lamp, if a user configures a device control instruction "turn on the bedroom lamp", it cannot be determined which one of the turned on bedroom lamps is, at this time, the user needs to not only clearly know about the various types of lamps in the bedroom, but also configure corresponding device control instructions for the different types of lamps respectively, so that the turning on of the different types of lamps in the bedroom can be specifically designated, which makes the configuration process of device control complicated, and affects the user experience. For this reason, the inventor provides a device control service that provides a fuzzy instruction, that is, a device for which a control instruction characterized by the device control service is not clear or unique enough, that is, in a space to which a target device belongs, a device having the same device attribute as that of the space device is not unique, and the device control service does not explicitly indicate which device is the target device performing the corresponding action. The process of obtaining a device control instruction for a target device by a device control service that provides a obfuscation instruction will now be described in detail with reference to fig. 9:
Referring to fig. 9, in an exemplary embodiment, step 373 may include the steps of:
at step 3731, device usage habit mining is performed based on the historical behavioral data.
Step 3733, screening and obtaining the target device conforming to the device using habit from the devices with the same device attribute as the space device.
The device control instruction is used for indicating the target device to execute the action, and the target device is a device conforming to the device using habit.
In this embodiment, the process of selecting the target device from the devices having the same device attribute as the spatial device is implemented based on the historical behavior data.
The historical behavior data is historical behavior data for describing the user controlling the device at a historical time. For example, after the user a arrives home at night 20, the living room air conditioner is turned on, and the living room air conditioner is set to 26 ° of the cooling mode, at this time, the living room air conditioner generates a corresponding device log including at least the user (user a), the device identifier (living room air conditioner), the device status (on), the on time (at night 20), the device operation (26 ° of the cooling mode), etc., enters the sleeping room at night 22, turns on the sleeping room air conditioner, and sets the sleeping room air conditioner to the sleeping mode, at this time, the sleeping room air conditioner also generates a device log including at least the user (user a), the device identifier (sleeping room air conditioner), the device status (on), the on time (at night 22), the device operation (sleeping mode), etc. The device log of the living room air conditioner or the device log of the bedroom air conditioner is reported to the background for storage. Taking the implementation environment shown in fig. 1 as an example, in one application scenario, the device log is reported to the network device through the local area network path and forwarded to the server side by the network device, and in another application scenario, the device log is reported to the server side through the wide area network path. Based on this, for the server side, after receiving the above-mentioned device log, the received device log can be stored to the historical behavior data of the user a, so as to provide the device control service for the user a based on the historical behavior data of the user a. It should be appreciated that the corresponding historical behavior data varies from user to user.
From the above, it is known that, as time accumulates, the number of historical behavior data stored in the background increases, and these historical behavior data describe the historical behavior of different users controlling various types of devices at different historical times, and then, for each user's historical behavior data, the historical behavior data will be able to reflect the device usage habits of the corresponding user. For example, when the user B goes to the bedroom for sleeping at night 23, the bedroom night light is turned on, and then based on the historical behavior data of the user B, it can be determined that the usage habit of the user B about the bedroom night light is that the bedroom night light is turned on at night 23.
Therefore, based on the equipment using habit of the user, the conversion between equipment control service providing the fuzzy instruction and the equipment control instruction can be performed, namely, the target equipment is selected from all the equipment with the same equipment attribute as the space equipment according to the equipment using habit of the user, so that the target equipment accords with the equipment using habit of the user. Still referring to the foregoing example, for the electronic device, the space to which the target device belongs is a bedroom, if the device control service providing the fuzzy instruction is "bedroom on lamp" when the user B enters the bedroom for sleeping at night 23, it indicates that the user B instructs any device (any one of the bedroom lamps) having the same brightness attribute as the space device (bedroom lamp) in the bedroom to perform the on operation, at this time, the bedroom crystal lamp, the bedroom table lamp and the bedroom night lamp are all devices having the same brightness attribute as the space device, and based on the analysis of the historical behavior data, the frequency of the bedroom night lamp being turned on at night 23 is high, that is, the user B is used to obtain the target device as the bedroom night lamp from among the bedroom crystal lamp, the bedroom table lamp and the bedroom night lamp conforming to the brightness attribute in the bedroom, so as to obtain the device control instruction "bedroom night lamp small", thereby completing the conversion between the device control service providing the fuzzy instruction and the device control instruction.
In one possible implementation, the translation between the device control services providing the fuzzy instructions and the device control instructions is accomplished by invoking a machine learning model that model trains with historical behavior data as a training set.
In this way, along with the change of the historical behavior data stored in the electronic equipment, the equipment usage habit of the user can be changed, so that the target equipment can be changed, the daily life form of the user, which can be closely attached to the equipment control service provided by the electronic equipment for the user, is fully ensured, the user does not feel, the complexity of configuration in equipment control is reduced, and the user experience is effectively optimized.
Then, after the device control command is sent to the target device, the target device can receive the device control command and execute a corresponding action according to the indication of the device control command. For example, after the bedroom night lamp receives the device control command "turn on bedroom night lamp", the turning on action is performed.
Through the cooperation of the embodiments, the conversion between the equipment control service providing the fuzzy instruction and the equipment control instruction is realized, so that the process of selecting the target equipment from any equipment with the same equipment attribute as the space equipment is transferred from the user to the background, the user does not need to know the quantity and the type of the equipment, the complexity of the configuration in the equipment control is simplified, the learning cost of the user is reduced, and the problem that the configuration in the equipment control in the related technology is too complicated can be effectively solved.
The following is an embodiment of the apparatus of the present application, and may be used to execute the device control method related to the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to a method embodiment of the device control method related to the present application.
Referring to fig. 10, in an embodiment of the present application, an apparatus control device 900 is provided, including but not limited to: a data acquisition module 910, a condition lookup module 930, a service determination module 950, and an instruction sending module 970.
The data acquisition module 910 is configured to acquire resource data of a target space; the resource data is related to status data reported by each device in the target space.
A condition searching module 930, configured to search the configured linkage data for a trigger condition matched with the resource data of the target space; the triggering condition in the linkage data is configured according to the resource data of the target space.
The service determining module 950 is configured to determine, based on the association between the trigger condition and the device control service in the linkage data, a device control service having an association with the found trigger condition.
The instruction sending module 970 is configured to obtain a device control instruction for a target device according to the determined device control service, and send the device control instruction to the target device, so that the target device performs a corresponding action in response to the device control instruction.
In an exemplary embodiment, the data acquisition module 910 includes: a first direct computing unit, a subspace determining unit, a second direct computing unit, and an indirect computing unit.
The first direct calculation unit is used for calculating and obtaining resource data of the target space according to the state data reported by each device in the target space if the target space is a subspace.
And the subspace determining unit is used for determining each subspace belonging to the target space if the target space is the mother space.
And the second direct calculation unit is used for calculating and obtaining the resource data of the target space according to the state data reported by each device in each subspace belonging to the target space.
And the indirect calculation unit is used for calculating the resource data belonging to each subspace in the target space according to the report state data of each device in each subspace belonging to the target space, and synthesizing the resource data belonging to each subspace in the target space into the resource data of the target space.
In an exemplary embodiment, the device control service is configured to instruct a spatial device to perform a corresponding action, the spatial device being created from a space to which the target device belongs.
The instruction sending module 970 includes: a candidate device determination unit, a target device determination unit, and an instruction generation unit.
The candidate device determining unit is used for determining at least one device with the same device attribute as the spatial device in the space to which the target device belongs based on the spatial device indicated by the device control service.
And a target device determining unit configured to determine a target device based on devices having the same device attribute as the spatial device.
The instruction generation unit is used for executing corresponding actions according to the target equipment and the space equipment indicated by the equipment control service and generating equipment control instructions for the target equipment; the device control instructions are for instructing the target device to perform a corresponding action.
In an exemplary embodiment, the target device determining unit includes: custom mining subunits, and device screening subunits.
The habit mining subunit is used for performing equipment use habit mining based on the historical behavior data.
And the equipment screening subunit is used for screening and obtaining target equipment conforming to the equipment using habit from all the equipment with the same equipment attribute as the space equipment.
In an exemplary embodiment, the instruction sending module 970 includes: a first direct transmission unit, a third subspace determination unit, a first indirect transmission unit, and a second direct transmission unit.
The first direct sending unit is used for sending a device control instruction to the target device if the space to which the target device belongs is a subspace.
And the third subspace determining unit is used for determining each subspace in the space of the target equipment if the space of the target equipment is the mother space.
And the first indirect sending unit is used for sending the equipment control instruction to each network equipment of each subspace in the space where the target equipment belongs, so that the equipment control instruction is forwarded to the target equipment through each network equipment.
Or (b)
And the second direct sending unit is used for directly sending the device control instruction to the target device.
In an exemplary embodiment, the apparatus 900 further comprises: a space update module, and a data update module.
The space updating module is used for acquiring the binding relation between each device in the target space and updating the space to which each device belongs based on the binding relation.
And the data updating module is used for receiving the state data reported by each device after the space is updated, and updating the resource data of the target space according to the state data reported by each device in the target space.
In an exemplary embodiment, the apparatus 900 further comprises: a binding request receiving module and a connection establishing module.
The binding request receiving module is used for receiving binding requests initiated by all devices in the target space.
And the connection establishment module is used for responding to the binding request, establishing connection between the target space and each device in the target space, and enabling each device to store the binding relation with the target space through connection.
In an exemplary embodiment, the apparatus 900 further comprises: the device comprises a push message generation module, a configuration request receiving module and a data extraction module.
The push message generation module is used for generating a push message about the linkage configuration entry if the target space is consistent with the space to which the target device belongs, so as to display the linkage configuration entry in the client.
And the configuration request receiving module is used for receiving the linkage configuration request. The linkage configuration request is generated through a trigger operation for a linkage configuration entry, and the linkage configuration entry is used for indicating whether to configure corresponding linkage data according to the resource data of the target space and the equipment control service.
The data extraction module is used for extracting linkage data of the linkage configuration entry indication configuration from the linkage configuration request and storing the linkage data so as to search the trigger condition matched with the resource data of the target space in the configured linkage data.
It should be noted that, in the device control apparatus provided in the foregoing embodiment, only the division of the above functional modules is used as an example, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device control apparatus may be divided into different functional modules to perform all or part of the functions described above.
In addition, the embodiments of the device control apparatus and the device control method provided in the foregoing embodiments belong to the same concept, and the specific manner in which each module performs the operation has been described in detail in the method embodiment, which is not described herein again.
Fig. 11 shows a structural schematic of an electronic device according to an exemplary embodiment. The server is suitable for use in the gateway 150, server side 170 in the implementation environment shown in fig. 1.
It should be noted that this server is only one example adapted to the present application, and should not be construed as providing any limitation on the scope of use of the present application. Nor should the server be construed as necessarily relying on or necessarily having one or more of the components of the exemplary electronic device 2000 illustrated in fig. 11.
The hardware structure of the electronic device 2000 may vary widely depending on the configuration or performance, as shown in fig. 11, the electronic device 2000 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU, central Processing Units) 270.
Specifically, the power supply 210 is configured to provide an operating voltage for each hardware device on the electronic device 2000.
The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. For example, interactions between user terminal 110 and server side 170 in the implementation environment shown in FIG. 1 are performed.
Of course, in other examples of adaptation of the present application, the interface 230 may further include at least one serial-parallel conversion interface 233, at least one input-output interface 235, and at least one USB interface 237, as shown in fig. 11, which is not specifically limited herein.
The memory 250 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, where the resources stored include an operating system 251, application programs 253, and data 255, and the storage mode may be transient storage or permanent storage.
The operating system 251 is used for managing and controlling various hardware devices and applications 253 on the electronic device 2000, so as to implement the operation and processing of the cpu 270 on the mass data 255 in the memory 250, which may be Windows server, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
The application 253 is a computer program that performs at least one specific task based on the operating system 251, and may include at least one module (not shown in fig. 11), each of which may respectively include a computer program for the electronic device 2000. For example, the device control apparatus may be regarded as an application 253 deployed on the electronic device 2000.
The data 255 may be a photograph, a picture, or the like stored in a disk, or may be resource data, status data, linkage data, or the like, and stored in the memory 250.
The central processor 270 may include one or more processors and is configured to communicate with the memory 250 via at least one communication bus to read the computer program stored in the memory 250, thereby implementing the operation and processing of the bulk data 255 in the memory 250. The device control method is accomplished, for example, by the central processor 270 reading a series of computer programs stored in the memory 250.
Furthermore, the present application can be realized by hardware circuitry or by a combination of hardware circuitry and software, and thus, the implementation of the present application is not limited to any specific hardware circuitry, software, or combination of the two.
Referring to fig. 12, in an embodiment of the present application, an electronic device 4000 is provided, and the electronic device 400 may include: gateway, server, etc.
In fig. 12, the electronic device 4000 includes at least one processor 4001, at least one communication bus 4002, and at least one memory 4003.
Wherein the processor 4001 is coupled to the memory 4003, such as via a communication bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004, the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data, etc. It should be noted that, in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The processor 4001 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 4001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
The communication bus 4002 may include a pathway to transfer information between the aforementioned components. The communication bus 4002 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 12, but not only one bus or one type of bus.
Memory 4003 may be, but is not limited to, ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, EEPROM (Electrically Erasable Programmable Read Only Memory ), CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 4003 has stored thereon a computer program, and the processor 4001 reads the computer program stored in the memory 4003 through the communication bus 4002.
The computer program, when executed by the processor 4001, implements the device control method in each of the embodiments described above.
Further, in the embodiments of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the device control method in the above embodiments.
In an embodiment of the present application, a computer program product is provided, which includes a computer program stored in a storage medium. A processor of a computer device reads the computer program from a storage medium, and the processor executes the computer program so that the computer device executes the device control method in the above-described embodiments.
Compared with the related art, on the basis of providing the equipment control service based on the equipment, the space-based equipment control service is supplemented, multiple linkage of equipment-equipment, equipment-space, space-equipment and the like is realized, and the flexibility and the openness of equipment control are enhanced. Based on the equipment control service provided by the space, the user does not need to pay attention to the quantity and the type of the equipment in each space, so that the management and learning cost of the user is greatly reduced, and the related configuration can be performed based on a more easily understood mode, thereby effectively reducing the complexity of the configuration in equipment control. The equipment control service provided based on the space enables the automation to be decoupled from the equipment state, is not only suitable for flexible configuration of household equipment, but also can not influence successful execution of the automation when partial equipment is in online-offline state or in failure state, and the like, can remarkably reduce the cost of user configuration and the operation and maintenance cost in equipment control, improves the efficiency of the automation control, and also greatly improves the execution success rate of the equipment control service. Based on the automatic binding of the equipment and the space, the equipment can be installed and deployed in different spaces at will without user intervention, and the complexity caused by the change of the space to which the equipment belongs in the equipment control is further reduced.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The foregoing is only a partial embodiment of the present application and it should be noted that, for a person skilled in the art, several improvements and modifications can be made without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (11)

1. A method of controlling a device, the method comprising:
acquiring resource data of a target space; the resource data are related to state data reported by each device in the target space;
Searching trigger conditions matched with the resource data of the target space in the configured linkage data; the triggering condition in the linkage data is configured according to the resource data of the target space; determining equipment control service with an incidence relation with the searched triggering condition based on the incidence relation between the triggering condition and the equipment control service in the linkage data;
and obtaining a device control instruction aiming at the target device according to the determined device control service, and sending the device control instruction to the target device, so that the target device responds to the device control instruction to execute corresponding actions.
2. The method of claim 1, wherein the acquiring the resource data of the target space comprises:
if the target space is a subspace, calculating to obtain resource data of the target space according to state data reported by each device in the target space;
if the target space is a mother space, determining each subspace belonging to the target space;
according to the state data reported by each device in each subspace belonging to the target space, calculating to obtain the resource data of the target space; or (b)
According to the report state data of each device in each subspace belonging to the target space, calculating to obtain the resource data of each subspace belonging to the target space, and synthesizing the resource data of each subspace belonging to the target space into the resource data of the target space.
3. The method of claim 1, wherein the device control service is to instruct a spatial device to perform a corresponding action; the space equipment is created according to the space to which the target equipment belongs;
the obtaining the device control instruction for the target device according to the determined device control service comprises the following steps:
determining at least one device with the same device attribute as the spatial device in the space to which the target device belongs based on the spatial device indicated by the device control service;
determining the target device based on devices having the same device attribute as the spatial device;
according to the target equipment and the space equipment indicated by the equipment control service, corresponding actions are executed, and equipment control instructions aiming at the target equipment are generated; the device control instructions are used for instructing the target device to execute corresponding actions.
4. The method of claim 3, wherein the determining the target device based on devices having the same device attributes as the spatial device comprises:
performing equipment use habit mining based on historical behavior data;
and screening the target equipment which accords with the equipment using habit from all the equipment with the same equipment attribute as the space equipment.
5. The method of claim 1, wherein the sending device control instructions to the target device comprises:
if the space of the target equipment is a subspace, sending the equipment control instruction to the target equipment;
if the space of the target equipment is a mother space, determining each subspace in the space of the target equipment;
transmitting the device control instruction to each network device of each subspace in the space to which the target device belongs, so that the device control instruction is forwarded to the target device through each network device; or (b)
And directly sending the device control instruction to the target device.
6. The method of any one of claims 1 to 5, wherein prior to the acquiring the resource data of the target space, the method further comprises:
Acquiring the binding relation between each device in the target space and the target space, and updating the space of each device based on the binding relation;
and receiving the state data reported by each device after the space is updated, and updating the resource data of the target space according to the state data reported by each device in the target space.
7. The method of claim 6, wherein prior to the obtaining the binding relationship between each device in the target space and the target space, the method further comprises:
receiving a binding request initiated by each device in the target space;
and responding to the binding request, establishing connection between the target space and each device, and enabling each device to store a binding relation with the target space through the connection.
8. The method of any one of claims 1 to 5, wherein before searching for a trigger condition matching the resource data of the target space in the configured linkage data, the method further comprises:
if the target space is consistent with the space of the target equipment, generating a push message about the linkage configuration inlet so as to display the linkage configuration inlet in the client;
Receiving a linkage configuration request; the linkage configuration request is generated through triggering operation for the linkage configuration inlet, and the linkage configuration inlet is used for indicating whether to configure corresponding linkage data according to the resource data of the target space and the equipment control service;
and extracting linkage data indicating the configuration of the linkage configuration entrance from the linkage configuration request and storing the linkage data so as to search for a triggering condition matched with the resource data of the target space in the configured linkage data.
9. A device control apparatus, characterized in that the apparatus comprises:
the data acquisition module is used for acquiring resource data of the target space; the resource data are related to state data reported by each device in the target space;
the condition searching module is used for searching the triggering condition matched with the resource data of the target space in the configured linkage data; the triggering condition in the linkage data is configured according to the resource data of the target space;
the service determining module is used for determining the equipment control service with the incidence relation with the searched triggering condition based on the incidence relation between the triggering condition and the equipment control service in the linkage data;
And the instruction sending module is used for obtaining the equipment control instruction aiming at the target equipment according to the determined equipment control service and sending the equipment control instruction to the target equipment so that the target equipment responds to the equipment control instruction to execute corresponding actions.
10. An electronic device, comprising: at least one processor, at least one memory, and at least one communication bus, wherein,
the memory stores a computer program, and the processor reads the computer program in the memory through the communication bus;
the computer program, when executed by the processor, implements the device control method of any one of claims 1 to 8.
11. A storage medium having stored thereon a computer program, which when executed by a processor implements the device control method according to any one of claims 1 to 8.
CN202310318785.6A 2023-03-21 2023-03-21 Equipment control method, device, electronic equipment and storage medium Pending CN116346869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310318785.6A CN116346869A (en) 2023-03-21 2023-03-21 Equipment control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310318785.6A CN116346869A (en) 2023-03-21 2023-03-21 Equipment control method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116346869A true CN116346869A (en) 2023-06-27

Family

ID=86878575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310318785.6A Pending CN116346869A (en) 2023-03-21 2023-03-21 Equipment control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116346869A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116957309A (en) * 2023-09-21 2023-10-27 深圳市明心数智科技有限公司 Textile scene dynamic monitoring method, system and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116957309A (en) * 2023-09-21 2023-10-27 深圳市明心数智科技有限公司 Textile scene dynamic monitoring method, system and medium
CN116957309B (en) * 2023-09-21 2024-01-09 深圳市明心数智科技有限公司 Textile scene dynamic monitoring method, system and medium

Similar Documents

Publication Publication Date Title
CN108092861B (en) Configuration method for realizing equipment linkage, equipment linkage control method and device
CN110578999B (en) Air conditioner, control method and device thereof, and computer-readable storage medium
JP6207734B2 (en) Intelligent device scene mode customization method and apparatus
CN104616675A (en) Method for switching playing equipment and mobile terminal
JP2016503539A (en) Logical sensor server for the logical sensor platform
CN112859636A (en) Intelligent household control method and device, household control equipment and readable storage medium
US20170126525A1 (en) Systems and methods for controlling devices
CN116346869A (en) Equipment control method, device, electronic equipment and storage medium
CN104182232A (en) Method for establishing context-aware applications and user terminal
CN113168334A (en) Data processing method and device, electronic equipment and readable storage medium
CN108234562B (en) Equipment control method, control equipment and controlled equipment
CN115793481A (en) Device control method, device, electronic device and storage medium
CN106020153A (en) Remote home control system based on WIFI and infrared technology and method for realizing the same
CN113852657B (en) Smart home local control method and system based on edge calculation
US20120260113A1 (en) Changing Device Behavior Based on External Information
CN110046316B (en) Method and system for analyzing family data of cell users
KR101616211B1 (en) Scalable networked device dynamic mapping
CN115733705A (en) Space-based information processing method and device, electronic equipment and storage medium
CN114967485A (en) Device control method, device, electronic device and storage medium
CN115016302A (en) Device control method, device and storage medium
CN113496701A (en) Voice interaction system, method, equipment and conference system
CN115167157A (en) Device control method, device, electronic device and storage medium
KR101713000B1 (en) Scenario builder for secnario creation and support
CN113568320A (en) Device control method and device, electronic device and computer-readable storage medium
CN116700067A (en) Instruction optimization method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination