WO2023216995A1 - 设备控制方法、装置、电子设备及存储介质 - Google Patents

设备控制方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023216995A1
WO2023216995A1 PCT/CN2023/092301 CN2023092301W WO2023216995A1 WO 2023216995 A1 WO2023216995 A1 WO 2023216995A1 CN 2023092301 W CN2023092301 W CN 2023092301W WO 2023216995 A1 WO2023216995 A1 WO 2023216995A1
Authority
WO
WIPO (PCT)
Prior art keywords
scene
configuration
target
scenario
attributes
Prior art date
Application number
PCT/CN2023/092301
Other languages
English (en)
French (fr)
Inventor
汤孝义
Original Assignee
深圳绿米联创科技有限公司
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 深圳绿米联创科技有限公司 filed Critical 深圳绿米联创科技有限公司
Publication of WO2023216995A1 publication Critical patent/WO2023216995A1/zh

Links

Classifications

    • 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]
    • 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]

Definitions

  • the present disclosure relates to the technical field of the Internet of Things. Specifically, the present disclosure relates to a device control method, device, electronic device and storage medium.
  • Each embodiment of the present disclosure provides a device control method, device, electronic device, and storage medium.
  • a device control method includes: obtaining device operation data, the device operation data records at least the operation attributes of the device, and the operation attributes are used to indicate actions performed by the device, the At least one of the state after the device performs the action and the time when the device performs the action; determine the device configuration requirements for the target scenario according to the operating attributes of the device recorded in the device operating data, and the device configuration Requirements are used to indicate that at least one of the devices needs to configure a corresponding action in the target scenario; generate a scenario configuration solution for the target scenario according to the device configuration requirements, so that at least one of the devices performs in the target scenario In this case, execute the corresponding action configured according to the scene configuration scheme in the target scene.
  • an equipment control device includes: a log acquirer configured to obtain equipment operating data, where the equipment operating data at least records the operating attributes of the equipment, and the operating attributes are used to indicate the At least one of an action performed by the device, a state after the device performs the action, and a time when the device performs the action; a demand determiner configured to determine based on the operating attributes of the device recorded in the device operating data.
  • the device configuration requirements of the scenario are used to indicate that at least one of the devices needs to configure a corresponding action in the target scenario; a scenario generator configured to generate a scenario for the target scenario according to the device configuration requirements Configure the scheme so that at least one of the devices performs the corresponding action configured according to the scenario configuration scheme in the target scenario when the target scenario is executed.
  • the requirement determiner includes: a new action determiner configured to determine, according to the operating attributes of the device recorded in the device operating data, whether there is a At least one of the devices performs a new action; the new action is different from the action configured for the device in the configured target scenario; if so, the first requirement determiner is notified and is configured to configure at least one of the device
  • the new action performed by the device serves as a device configuration requirement for the configured target scenario to indicate that at least one of the devices needs to reconfigure the corresponding new action in the configured target scenario.
  • the new action determiner includes: a frequency determiner configured to determine, according to the operating attributes of the device recorded in the device operating data, that within the first set time period, the device The frequency of executing the new action; the first set duration refers to the time period in which the configured target scenario is continuously executed multiple times; if the frequency exceeds the frequency threshold, the single device determiner is notified and is configured to determine that there is a The device performed the new action.
  • the new action determiner includes: a quantity determiner configured to determine, based on the operating attributes of the device recorded in the device operating data, that after the configured target scenario is executed, all The number of the devices that performs the new action; if the number exceeds the quantity threshold, a multi-device determiner is configured to determine that there are multiple devices that have performed the new action.
  • the demand determiner includes: a multi-action determiner configured to determine, according to the operating attributes of the device recorded in the device operating data, whether there are multiple The device has performed an action; the second set duration refers to the time period during which multiple devices perform actions continuously; if yes, the second demand determiner is notified and is configured to execute multiple devices respectively.
  • the corresponding actions are used as device configuration requirements for the target scenario to indicate that multiple devices need to configure corresponding actions in the target scenario.
  • the solution generator includes: an attribute creator configured to create an action in the target scenario according to the action that the device needs to configure in the target scenario indicated by the device configuration requirement.
  • the scene configuration attribute of the device is used to indicate the action configured by the device in the target scene;
  • the first solution generator is configured to be based on the created content of each device in the target scene.
  • Scenario configuration attributes are used to generate the scenario configuration scheme.
  • the solution generator includes: an attribute obtainer configured to obtain the scene configuration attributes created by the device in the target scene; an attribute adjuster configured to indicate according to the device configuration requirements The device needs to configure actions in the target scene, and adjust the scene configuration attributes of the device in the target scene; the second solution generator is configured to adjust according to each device in the target scene.
  • the subsequent scene configuration attributes are used to generate the scene configuration scheme.
  • the device further includes: a message pusher configured to generate and push a configuration prompt message, where the configuration prompt message is used to prompt the user whether to confirm configuring the target farm according to the scene configuration scheme.
  • a scene configurator configured to respond to the determination operation of the scene configuration scheme, and configure a corresponding action for at least one of the devices in the target scene according to the scene configuration scheme
  • a device controller configured to respond For performing operations on the target scene, controlling at least one of the devices to perform corresponding actions configured according to the scene configuration scheme in the target scene.
  • an electronic device includes at least one processor and at least one memory, wherein computer readable instructions are stored on the memory; when the computer readable instructions are executed by the processor, such that The electronic device implements the device control method as described above.
  • a computer-readable storage medium has computer-readable instructions stored thereon.
  • the computer-readable instructions are executed by one or more processors, the device control method as described above is implemented. .
  • a computer program product includes computer readable instructions, the computer readable instructions are stored in a storage medium, and a processor of an electronic device reads the computer readable instructions from the storage medium, loads and executes The computer-readable instructions enable the electronic device to implement the device control method as described above.
  • Figure 1 is a schematic diagram of an implementation environment involved in an embodiment of the present disclosure
  • FIG 2 is a schematic diagram showing the interaction between the smart device and the server in the implementation environment shown in Figure 1;
  • Figure 3 is a flow chart of a device control method according to an exemplary embodiment
  • Figure 4 is a flow chart of step 330 in the corresponding embodiment of Figure 3 in one embodiment
  • Figure 5 is a flow chart of step 330 in the corresponding embodiment of Figure 3 in another embodiment
  • Figure 6 is a schematic diagram of generating a scenario configuration solution according to device configuration requirements according to an exemplary embodiment
  • Figure 7 is a flow chart of another device control method according to an exemplary embodiment
  • Figure 8 is a schematic diagram of the configuration prompt message involved in the embodiment corresponding to Figure 7 being pushed to the user;
  • Figures 9 to 11 are sequence diagrams of a device control method in an application scenario
  • Figure 12 is a structural block diagram of an equipment control device according to an exemplary embodiment
  • Figure 13 is a hardware structure diagram of an electronic device according to an exemplary embodiment
  • Figure 14 is a structural block diagram of an electronic device according to an exemplary embodiment.
  • the essence of a scene is a virtual scene created on an electronic device, which corresponds to a real spatial environment, such as a smart home environment.
  • a real smart home environment can be a room where several devices are deployed.
  • the creation of the scene on the electronic device refers to configuring the scene on the electronic device.
  • the mapping of several devices deployed in the smart home environment is realized through the device identification, and through The action identifier is the action corresponding to the configuration of the several devices.
  • the created scene (that is, the configured scene) includes at least the device identifiers of several devices deployed in the smart home environment and the action identifiers of corresponding actions configured for the several devices, where,
  • the device identifier is used to represent the device that is mapped in the target scene in the smart home environment, and the action identifier is used to represent the action configured in the target scene of the device that is mapped to the device identifier.
  • each device in the smart home environment can execute the corresponding actions configured in the scene.
  • the operating attributes of the device are used to indicate at least one of the actions performed by the device, the state of the device after the device performs the action, and the time when the device performs the action.
  • the scene configuration attributes of the device are used to indicate the actions configured by the device in the scene.
  • TTS TTS
  • the full English name is Text To Speech
  • the Chinese meaning is from text to speech.
  • the purpose is to intelligently convert text into a speech stream so that the machine can speak.
  • the device operation data that at least records the operation attributes of the device is obtained to determine the device configuration requirements for the target scenario based on the operation attributes of the device recorded in the device operation data, and generate the device configuration requirements for the target scenario based on the device configuration requirements.
  • the scenario configuration scheme enables at least one device to perform corresponding actions configured in the target scenario according to the scenario configuration scheme. That is to say, it actively understands the user's needs through device operation data, and can automatically adjust the user's needs when determining the dynamic adjustment.
  • the target scenario generates a scenario configuration scheme to avoid users' manual operations to adjust old configured scenarios or create new scenarios, thereby effectively solving the problem of inefficient scenario configuration existing in related technologies.
  • Figure 1 is a schematic diagram of an implementation environment involved in a device control method.
  • the implementation environment includes user terminal 110, smart device 130, gateway 150, server 170 and router 190.
  • the user terminal 110 which can also be considered as a user terminal or terminal, can deploy (also be understood as installation) the client associated with the smart device 130.
  • the user terminal 110 can be a smart phone, a tablet computer, a notebook computer, or a desktop computer. , intelligent control panels, other electronic devices with display and control functions, etc., are not limited here.
  • the client is associated with the smart device 130.
  • the user registers an account in the client and configures the smart device 130 in the client.
  • the configuration includes adding a device identifier to the smart device 130, etc., so that When the client is run in the user terminal 110, it can provide the user with functions such as device display and device control of the smart device 130.
  • the client can be in the form of an application program or a web page.
  • the client performs display and control.
  • the interface can be in the form of a program window or a web page, which is not limited here.
  • the smart device 130 is deployed in the gateway 150, communicates with the gateway 150 through its own configured communication module, and is then controlled by the gateway 150. It should be understood that the smart device 130 generally refers to one of multiple smart devices 130.
  • the embodiment of the present disclosure only takes the smart device 130 as an example. That is to say, the embodiment of the present disclosure does not depend on the number and number of smart devices deployed in the gateway 150. The type is not limited.
  • the smart device 130 accesses the gateway 150 through a local area network and is deployed in the gateway 150 .
  • the process of the intelligent device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the intelligent device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150 .
  • This local area network includes but is not limited to: ZIGBEE or Bluetooth.
  • the smart device 130 can be a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart door lock, a smart light, or a human body sensor equipped with a communication module, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, Smoke alarms, wall switches, wall sockets, wireless switches, wireless wall sticker switches, Rubik's Cube controllers, curtain motors and other electronic equipment.
  • the interaction between the user terminal 110 and the smart device 130 can be realized through a local area network or a wide area network. network implementation.
  • the user terminal 110 establishes a wired or wireless communication connection with the gateway 150 through the router 190.
  • the wired or wireless communication connection includes but is not limited to WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed In the same local area network, the user terminal 110 can interact with the smart device 130 through the local area network path.
  • the user terminal 110 establishes a wired or wireless communication connection with the gateway 150 through the server 170.
  • the wired or wireless communication connection includes but is not limited to 2G, 3G, 4G, 5G, WIFI. etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, so that the user terminal 110 can interact with the smart device 130 through the wide area network path.
  • the server side 170 can also be considered as a cloud, a cloud platform, a platform side, a server side, etc.
  • the server side 170 can be a server, a server cluster composed of multiple servers, or a server cluster composed of multiple servers.
  • a cloud computing center composed of multiple servers is used to better provide background services to a large number of user terminals 110.
  • backend Services include device control services.
  • the device control process is described as follows:
  • the user can configure the target scenario according to his or her actual needs through the user terminal 110, so that the target scenario can be executed next time, so that several devices with device identity mapping in the target scenario can be used. Able to perform the corresponding actions configured in the target scenario.
  • the user controls at least one smart device 130 among the several devices. For example, after entering winter, the brightness of the smart light in the home scene is adjusted from 10% to 30%, then for the smart device 130, the user's control of the smart device 130 will be actively recorded, added to the device operating data, and the device operating data will be sent to the server 170.
  • the device operation data can be obtained, and the device control server is provided to the user based on the device operation data. Specifically, it means that the device operation data is determined based on the device operation data.
  • Target the device configuration requirements of the target scenario to confirm whether the user's needs have been dynamically adjusted. If so, automatically generate a scenario configuration plan for the target scenario based on the device configuration requirements, so that device identification mapping is performed in the target scenario.
  • Several smart devices 130 can execute the corresponding actions configured in the target scene according to the scene configuration scheme, so that the target scene configuration can be automatically updated according to the dynamic adjustment of user needs, which not only improves the efficiency of scene configuration, but also avoids manual operations by users. The complexity greatly reduces the user's cost and helps improve the user experience.
  • the embodiment of the present disclosure provides a device control method, which is suitable for electronic equipment.
  • the electronic equipment can be the gateway 150 in the implementation environment shown in Figure 1, or can also be the gateway 150 shown in Figure 1.
  • the execution subject of each step of the method is an electronic device as an example, but this is not a specific limitation.
  • the method may include the following steps:
  • Step 310 Obtain device operation data.
  • the equipment operation data at least records the operation attributes of the equipment.
  • the equipment operating data is essentially a record of each action performed by the device. It not only records each action performed by the device, but also records the status of the device after the action is performed. Of course, in other embodiments, the device operation data also records the time each time the device performs an action. In one possible implementation, device operation data is stored in the device in the form of operation logs.
  • the operating attributes of the device can be used to indicate one or more of the actions performed by the device, the state of the device after the device performs the action, the time when the device performs the action, and so on.
  • the action performed by the device is specific to the target scene, that is, the action performed by the device is an action configured by the device in the target scene.
  • the device For the device, every time the device performs an action, it will correspondingly store the action performed by the device this time. The time when the device performs the action this time and the status of the device after the device performs the action are added to the device operating data as the device's operating attributes.
  • the device forwards the device operating data to the server through the gateway. Specifically, the device reports the device operating data to the gateway based on the local area network, and the device operating data is forwarded to the server by the gateway. In a possible implementation manner, the electronic device reports device operation data to the server based on the wide area network.
  • the equipment operation data can be derived from the equipment operation data reported by the equipment in real time, so as to process the equipment operation data in real time and improve the real-time nature of the processing, or it can also be derived from a historical time
  • the equipment operation data reported by the equipment stored in the segment in real time is used to facilitate batch processing of equipment operation data and improve processing efficiency.
  • Step 330 Determine the device configuration requirements for the target scenario based on the operating attributes of the device recorded in the device operating data.
  • the device operation data is a record of each action performed by the device. It should be understood that the device operation data will also record any actions performed by the device again after the scene is executed.
  • the execution of the home scene actually means automatically turning on the lights, increasing the brightness of the lights, closing the windows, closing the curtains, and turning on the air conditioner; as the weather gradually gets colder, at least the air conditioner There is no need to turn it on. That is to say, at this time, when the user goes home and the home scene is executed, the user still needs to turn off the air conditioner.
  • the equipment operation data not only the opening action configured by the air conditioner in the return home scene is recorded, but also the closing action performed by the air conditioner after the return home scene is executed.
  • the user can be determined whether the user's needs have been dynamically adjusted.
  • the user turns off the air conditioner after the return home scene is executed.
  • the electronic device performs the configured opening action of the air conditioner in the return home scene recorded in the device operation data, and the air conditioner is executed after the return home scene is executed.
  • the air conditioner is executed after the return home scene is executed.
  • the device configuration requirement is used to indicate that at least one device needs to configure a corresponding action in the target scenario, that is, it reflects the dynamic adjustment of the user's needs.
  • the equipment configuration requirements are used to indicate that the air conditioner needs to be configured with a shutdown action in the home scene.
  • the target scene is the home scene
  • the device is the air conditioner
  • the corresponding action is the shutdown action.
  • step 330 may include the following steps: Step 331, according to the operating attributes of the device recorded in the device operating data, determine whether there are multiple devices within the second set time period.
  • the action is executed, and the second set duration refers to the time period during which multiple devices continuously execute the action; for example, the second set duration is 10 minutes, which means that multiple devices continuously execute the action within the 10 minutes; Step 333, if If yes, then the corresponding actions performed by multiple devices will be used as device configuration requirements for the target scenario to indicate that multiple devices need to configure corresponding actions in the target scenario.
  • the user continuously controls multiple devices to perform corresponding actions within a period of time (for example, 10 minutes). That is to say, if the user expects to quickly perform corresponding actions on multiple devices next time, If the device realizes one-key control, it may take a lot of time to configure the target scene, which may be the reconfiguration of the target scene or the creation of the target scene. At this time, it is considered that the user's needs have been dynamically adjusted. . in, The actions performed by the device may be actions configured by the device in the target scenario, or may refer to new actions that are not configured by the device in the target scenario, which are not limited here.
  • step 330 may include the following steps: Step 332, according to the operating attributes of the device recorded in the device operating data, determine whether there is at least one after the configured target scenario is executed. The device has performed a new action, and the new action is different from the action configured for the device in the configured target scenario; step 334, if yes, the new action performed by at least one device is used as the device configuration requirement for the target scenario, so as to Indicates that at least one device needs to be reconfigured with the corresponding new action in the configured target scenario.
  • the user still controls one or more devices, that is, controls the one or more devices to perform new actions that are not configured in the target scenario, that is, the user has executed
  • the target scenario may not meet the user's needs, and it is also considered that the user's needs have been dynamically adjusted.
  • the electronic device determines the frequency of new actions performed by the device within a first set time period based on the operating attributes of the device recorded in the device operation data.
  • the first set time period refers to the configured target scenario.
  • a time period for multiple consecutive executions for example, if the first set time is 3 days, it means that the configured target scenario has been executed multiple times within the 3 days; if the frequency exceeds the frequency threshold, it is determined that a device has performed a new action.
  • the target scenario is executed multiple times continuously within the first set time period (for example, 3 days), and the same device executes new actions that are not configured in the target scenario multiple times, it is deemed that the user's demand has occurred. dynamically adjusted.
  • the electronic device determines the number of devices that perform new actions after the configured target scenario is executed based on the operating attributes of the device recorded in the device operating data; if the number exceeds the quantity threshold, it is determined that there are multiple devices device performed a new action. In this way, if after the target scenario is executed, multiple devices perform new actions that are not configured in the target scenario, it can also be considered that the user's needs have been dynamically adjusted.
  • both the first set duration and the second set duration can be flexibly adjusted according to the actual needs of the application scenario, and are not limited here.
  • the first set time period is 3 days.
  • the quantity threshold and frequency threshold can also be flexibly adjusted according to the actual needs of the application scenario, and are not specifically limited here.
  • the quantity threshold is 3.
  • Step 350 Generate a scenario configuration solution for the target scenario according to the device configuration requirements.
  • a scenario configuration plan can be generated for the target scenario.
  • the target scene may refer to an old scene that has been created.
  • the scene configuration plan refers to a plan for adjusting the created scene configuration attributes of the device in the target scene; the target scene may also refer to a new scene that has not been created.
  • the scene configuration plan refers to a plan for creating scene configuration attributes of the device in the target scene.
  • the scene configuration scheme at least includes scene configuration attributes of the device.
  • the scene configuration method The case also includes the device identification of the device.
  • the scene configuration attribute of the device is used to indicate at least one of an action configured by the device in the target scene and a state after the device executes the action configured in the target scene.
  • step 350 may include the following steps: create the scene configuration attributes of the device in the target scene according to the actions indicated by the device configuration requirements that the device needs to be configured in the target scene; Scenario configuration attributes to generate a scenario configuration scheme.
  • step 350 may include the following steps: Obtain the created scene configuration attributes of the device in the target scene; According to the actions indicated by the device configuration requirements, the device needs to be configured in the target scene, and configure the scene of the device in the target scene. Adjust the configuration attributes; generate a scene configuration plan based on the adjusted scene configuration attributes of each device in the target scene.
  • the electronic device converts the actions indicated by the device configuration requirements that need to be configured in the target scene into the scene configuration attributes of the device, and adds them to the scene configuration scheme to facilitate the configuration of the target scene.
  • the device configuration requirements indicate that the smart light needs to be configured with the action of adjusting the brightness to 30% in the home scene.
  • the scene configuration attribute of the smart light indicates that the action of the smart light configured in the home scene is to adjust. If the brightness is adjusted to 10%, then, through comparison, the brightness will be adjusted to 30% as a new scene configuration attribute of the smart light, and added to the scene configuration scheme, so that after the next target scene is executed, the smart light will Adjust brightness to 30%.
  • the scene configuration attribute is also used to indicate the state of the device after executing the action configured in the target scene, which is not specifically limited here.
  • the scene configuration attribute of the smart light indicates that the brightness of the smart light after performing the action in the home scene is 10%. Then, by comparing it with the brightness of 30% indicated by the device configuration requirements, it will be The brightness is 30%. As a new scene configuration attribute of the smart light, it is added to the scene configuration scheme, so that the smart light will adjust the brightness to 30% after the next target scene is executed.
  • the electronic device After generating the scene configuration scheme, the electronic device will configure the target scene according to the scene configuration scheme.
  • the scene configuration plan is sent to the user terminal, so that the user terminal configures a corresponding action for at least one device in the target scene according to the scene configuration plan. Then, as the user executes the target scene with one click through the user terminal, he or she can control at least one device that has been mapped with device identifiers in the target scene, and perform corresponding actions configured in the target scene according to the scene configuration scheme.
  • the method may also include the following steps:
  • Step 410 Generate a configuration prompt message.
  • the configuration prompt message is used to prompt the user whether to configure the target scenario according to the confirmed scenario configuration plan.
  • Step 430 Push the configuration prompt message to the user terminal.
  • a configuration prompt message will be pushed to the user terminal.
  • a configuration prompt message is displayed.
  • a configuration prompt message 602 is displayed: "Master, do you want to adjust the "go home” scene?" If the user Clicking the "Confirm” control 603 indicates that the user wants to adjust the home scene.
  • the intelligent control panel automatically reconfigures the target scene home scene according to the scene configuration plan. In this way, the user is provided with an entrance to quickly adjust the target scene, and the user can realize the reconfiguration of the target scene by triggering the operation of the entrance.
  • the electronic device sends a configuration prompt message to the smart device to control the smart device to provide voice prompts to the user according to the configuration prompt message.
  • the configuration prompt message in the form of text can be converted into voice feedback to the user, for example, "Master, do you want to create a scene?". In this way, an efficient voice interaction mode is realized. The user does not need any manual operation and only needs to answer "yes" to create the target scene.
  • the user interaction mode regarding the configuration of the target scene is realized.
  • the interaction mode can be a trigger mode or a voice mode.
  • the user can simply and efficiently realize the configuration of the target scene, which can be the target scene.
  • the reconfiguration can also be the creation of the target scene.
  • the user does not need to worry about which device should be configured with which action in the target scene. This can greatly reduce the complexity of the user's manual operation and thus greatly reduce the user's time. The cost of use will ultimately help improve the user experience.
  • FIGS 9 to 11 are schematic diagrams of specific implementation of a device control method in an application scenario. This application scenario is applicable to the equipment in the implementation environment shown in Figure 1.
  • the user terminal 110 is a smart control panel, so that the user can directly control the smart device 130 to perform corresponding actions through the smart control panel, or indirectly control the smart device by executing the created target scene with one click through the smart control panel.
  • 130 performs the actions configured in the target scenario; the smart device 130 is deployed at the gateway 150, accesses the gateway 150 through the local area network and is controlled to perform corresponding actions, and can interact with the server 170 through the wide area network, or, through the local area network The data is forwarded by the gateway 150 to the server 170 .
  • the first scenario configuration scheme :
  • the user configures the target scenario according to his or her actual needs through the user terminal 110, and through the execution of the target scenario, device identification mapping is performed in the target scenario Several smart devices 130 execute corresponding actions configured in the target scene, thereby causing the several smart devices to The device 130 reports corresponding device operation data to the server 170 respectively.
  • the user controls one of the several smart devices 130 , for the smart device 130 , while being controlled to perform corresponding actions, the user's actively recorded information about the smart device 130 will also be recorded.
  • Control as the operation attribute of the smart device 130 , is added to the device operation data of the smart device 130 , and the device operation data is reported to the server 170 .
  • step 801 if it is determined that within the first set time period (3 days) during which the target scene has been executed multiple times continuously, the smart device 130 has also executed new actions multiple times, that is, it is different from the target scene. Based on the action configured for the smart device 130, it is considered that the executed target scenario may not meet the user's needs, and then it is considered that the user's needs have been adjusted, the device configuration requirements are determined, and a scenario configuration plan is generated based on the device configuration requirements, so as to This notifies the user terminal 110 to update the target scene configuration.
  • the user terminal 110 after receiving the scene configuration plan, it can adjust the configuration of the target scene according to the scene configuration plan, so as to meet the dynamically adjusted needs of the user.
  • the second scenario configuration plan :
  • the user will control multiple smart devices 130 among several smart devices 130 .
  • step 802 if it is determined that after the target scene is executed, multiple smart devices 130 are controlled to perform corresponding actions, it is also considered that the executed target scene may not meet the user's needs. If it is further considered that the user's needs have been adjusted, the device configuration requirements are determined, and a scenario configuration plan is generated based on the device configuration requirements, thereby notifying the user terminal 110 to update the target scenario configuration.
  • the configuration of the target scene will be adjusted according to the scene configuration plan sent by the server 170, so as to meet the dynamically adjusted needs of the user.
  • Both of the above two scenario configuration solutions are based on the fact that the target scenario has been executed, and the user still controls one or more smart devices 130 after the target scenario is executed, thereby actively understanding the user's dynamic needs and achieving the satisfaction of the user's dynamic needs. .
  • the target scenario is not executed.
  • the target scenario may have been created or may not have been created yet, and the user directly configures multiple smart devices.
  • the device 130 is controlled, which specifically means that the user continuously controls the multiple smart devices 130 to perform actions within the second set time period (10 minutes).
  • step 803 if it is determined that the multiple smart devices 130 have been controlled to perform corresponding actions within 10 minutes, it is considered that if the user expects to be able to quickly access the multiple smart devices next time 130 To achieve one-click control, it may take a lot of time to configure the target scene, which may be to reconfigure the target scene that has been created, or to configure the target scene that has not yet been created, and then consider the user's needs. If an adjustment occurs, the device configuration requirements are determined, and a scenario configuration plan is generated based on the device configuration requirements, thereby notifying the user terminal 110 to update the target scenario configuration.
  • the target scene will be created according to the scene configuration plan sent by the server 170, that is, corresponding actions will be configured for the multiple smart devices 130 in the target scene, so as to satisfy the user's dynamic adjustment needs. needs.
  • the target scenario has not been executed, based on the user continuously controlling multiple devices within a time period (10 minutes) to perform corresponding actions, the user's dynamic needs can also be proactively understood. To meet the dynamic needs of users.
  • the target scene configuration is automatically updated according to the dynamic adjustment of user needs, which not only improves the efficiency of scene configuration, but also avoids the complexity of manual operations by users, greatly reduces the user's cost of use, and is conducive to improving the user's Use experience.
  • an embodiment of the present disclosure provides a device control device 900, which can be deployed on the gateway 150 in the implementation environment shown in Figure 1, and can also be deployed on the user terminal 110 in the implementation environment shown in Figure 1 , server side 170.
  • the equipment control device 900 includes but is not limited to: a log acquirer 910 , a requirement determiner 930 and a solution generator 950 .
  • the log obtainer 910 is configured to obtain device operation data, and the device operation data at least records the operation attributes of the device.
  • the operation attribute is configured to indicate at least one of an action performed by the device, a state after the device performs the action, and a time when the device performs the action.
  • the requirement determiner 930 is configured to determine the device configuration requirement for the target scenario based on the operating attributes of the device recorded in the device operating data, and the device configuration requirement is configured to indicate that at least one device needs to configure a corresponding action in the target scenario.
  • the solution generator 950 is configured to generate a scene configuration solution for the target scenario according to the device configuration requirements, so that at least one device, when the target scenario is executed, performs corresponding actions configured according to the scene configuration solution in the target scenario.
  • the requirement determiner includes: a new action determiner configured to determine, according to the operating attributes of the device recorded in the device operating data, whether there is at least one device that performs a new action after the configured target scenario is executed. Action; the new action is different from the action configured for the device in the configured target scenario; if yes, the first user is notified
  • the determiner is configured to use a new action performed by at least one device as a device configuration requirement for the configured target scenario to indicate that at least one device needs to reconfigure the corresponding new action in the configured target scenario.
  • the new action determiner includes: a frequency determiner configured to determine, according to the operating attributes of the device recorded in the device operating data, the frequency of the new action performed by the device within the first set time period; first The set duration refers to the time period during which the configured target scenario is executed multiple times in succession; if the frequency exceeds the frequency threshold, the single device determiner is notified, configured to determine that a device has performed a new action.
  • the new action determiner includes: a quantity determiner configured to determine the number of devices that perform the new action after the configured target scenario is executed according to the operating attributes of the device recorded in the device operating data; If the number exceeds the quantity threshold, the multi-device determiner is configured to determine that there are multiple devices that have performed the new action.
  • the demand determiner includes: a multi-action determiner configured to determine whether multiple devices have performed actions within the second set time period based on the operating attributes of the device recorded in the device operating data;
  • the second set duration refers to the time period during which multiple devices continuously perform actions; if yes, the second requirement determiner is notified and configured to use the corresponding actions performed by multiple devices respectively as device configuration requirements for the target scenario, so as to Indicates that multiple devices need to configure corresponding actions in the target scenario.
  • the solution generator includes: an attribute creator configured to create scene configuration attributes of the device in the target scene according to actions indicated by the device configuration requirements that the device needs to configure in the target scene; the scene configuration attribute is used An action for instructing the device to be configured in the target scenario; the first solution generator is configured to generate a scenario configuration solution based on the created scenario configuration attributes of each device in the target scenario.
  • the solution generator includes: an attribute obtainer configured to obtain the created scene configuration attributes of the device in the target scene; an attribute adjuster configured to configure the device in the target scene according to the device configuration requirements indicated.
  • the action is to adjust the scene configuration attributes of the equipment in the target scene;
  • the second plan generator is configured to generate a scene configuration plan based on the adjusted scene configuration attributes of each device in the target scene.
  • the device further includes: a message pusher, configured to generate and push a configuration prompt message, where the configuration prompt message is used to prompt the user whether to confirm configuring the target scene according to the scene configuration scheme; a scene configurator, configured to respond In response to the determination operation of the scene configuration plan, configure a corresponding action for at least one device in the target scene according to the scene configuration plan; the device controller is configured to control at least one device to execute in the target scene in response to the execution operation of the target scene. Corresponding actions configured according to the scene configuration scheme.
  • Figure 13 shows a schematic structural diagram of an electronic device according to an exemplary embodiment. This electronic device can be applied to Figure 1 shows the gateway 150, server side 170, etc. in the implementation environment.
  • this electronic device is only an example adapted to the present disclosure and cannot be considered to provide any limitation on the scope of use of the present disclosure.
  • the electronic device is also not to be construed as being dependent on or required to have one or more components of the exemplary electronic device 2000 shown in FIG. 13 .
  • the hardware structure of the electronic device 2000 may vary greatly due to different configurations or performance. As shown in FIG. 13, 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.
  • the power supply 210 is used to provide 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, the interaction between the user terminal 110 and the server 170 in the implementation environment shown in FIG. 1 is performed.
  • the interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input-output interface 235, at least one USB interface 237, etc., as shown in Figure 13, which is not intended to be used here. This constitutes a specific limitation.
  • the memory 250 can be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
  • the resources stored thereon include the operating system 251, application programs 253, data 255, etc., and the storage method can be short-term storage or permanent storage. .
  • the operating system 251 is used to manage and control each hardware device and application program 253 on the electronic device 2000, so as to realize the operation and processing of the massive data 255 in the memory 250 by the central processor 270, which can be Windows ServerTM, Mac OS XTM , UnixTM, LinuxTM, FreeBSDTM, etc.
  • the application program 253 is a computer readable instruction based on the operating system 251 to complete at least one specific work. It may include at least one module (not shown in FIG. 13 ), and each module may include a computer program for the electronic device 2000 . Readable instructions.
  • the device control device may be regarded as an application program 253 deployed on the electronic device 2000.
  • the data 255 can be photos, pictures, etc. stored in the disk, or can also be equipment operation data, scene configuration plans, etc., stored in the memory 250 .
  • the central processing unit 270 may include one or more processors, and is configured to communicate with the memory 250 through at least one communication bus to read the computer readable instructions stored in the memory 250, and thereby implement processing of the massive data 255 in the memory 250. operation and processing. For example, the device control method is completed by the central processor 270 reading a series of computer readable instructions stored in the memory 250 .
  • present disclosure can also be implemented through hardware circuits or hardware circuits combined with software. Therefore, implementation of the present disclosure is not limited to any specific hardware circuit, software, or combination of the two.
  • an embodiment of the present disclosure provides an electronic device 4000.
  • the electronic device 4000 may include: a smartphone, a tablet computer, a desktop computer, a notebook computer, an intelligent control panel, and other devices with display and control functions. Server and so on.
  • the electronic device 4000 includes at least one processor 4001 , at least one communication bus 4002 and at least one memory 4003 .
  • the communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003.
  • the communication bus 4002 may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus or an EISA (Extended Industry Standard Architecture) bus, etc.
  • the communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of presentation, only one thick line is used in Figure 14, but it does not mean that there is only one bus or one type of bus.
  • the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and/or data reception.
  • a transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as data transmission and/or data reception.
  • the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present disclosure.
  • the processor 4001 can be a CPU (Central Processing Unit, central processing unit), a general-purpose processor, a DSP (Digital Signal Processor, a data signal processor), an ASIC (Application Specific Integrated Circuit, an application-specific integrated circuit), or an FPGA (Field Programmable Gate Array). , field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various illustrative logical blocks, modules and circuits described in connection with this disclosure.
  • the processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
  • the memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory) or other types that can store information and instructions.
  • Dynamic storage devices can also be EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compression Optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or can be used to carry or store the desired program instructions or code in the form of instructions or data structures and can be used by the electronic device 4000 for access to any other media, but not limited to this.
  • Computer-readable instructions are stored in the memory 4003, and the processor 4001 can read the computer-readable instructions stored in the memory 4003 through the communication bus 4002.
  • an embodiment of the present disclosure provides a storage medium on which computer readable instructions are stored.
  • the computer readable instructions are executed by a processor, the device control method as described above is implemented.
  • An embodiment of the present disclosure provides a computer program product.
  • the computer program product includes computer readable instructions.
  • the computer readable instructions are stored in a storage medium.
  • the processor of the electronic device reads the computer readable instructions from the storage medium, loads and executes them.
  • the computer-readable instructions enable the electronic device to implement the device control method as described above.
  • the application product may use any programming language and be in the form of source code, object code, or intermediate code between the source code and the object code, such as a partially compiled form or any other desired form.
  • the scene configuration scheme can be automatically generated for the target scene, and the target scene configuration can be automatically updated according to the dynamic adjustment of user needs. This not only improves the efficiency of scene configuration, but also avoids the complexity of manual operations by users, greatly reducing user usage. cost, which is conducive to improving the user experience.
  • the computer-readable instructions can be stored in a computer. readable storage medium and loaded and executed by the processor. When executed, the computer-readable instructions may include the processes of the above method embodiments.
  • the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种设备控制方法,包括:获取设备运行数据,设备运行数据至少记录了设备的运行属性(310);根据设备运行数据中记录的设备的运行属性,确定针对目标场景的设备配置需求,设备配置需求用于指示至少一个设备需要在目标场景中配置对应的动作(330);根据设备配置需求为目标场景生成场景配置方案,使得至少一个设备在目标场景执行的情况下,执行在目标场景中根据场景配置方案配置的对应动作(350)。

Description

设备控制方法、装置、电子设备及存储介质
本公开要求2022年5月11日递交、发明名称为“设备控制方法、装置、电子设备及存储介质”的中国专利申请CN202210532411.X的优先权,在此通过引用将其全部内容合并于此。
技术领域
本公开涉及物联网技术领域,具体而言,本公开涉及一种设备控制方法、装置、电子设备及存储介质。
背景技术
随着物联网技术的飞速发展,智能家居已逐步深入到居家生活的各个领域,为了提高用户对智能家居中智能设备的操作便捷性,不仅可以配置设备联动,例如,若探测到客厅有人,则自动开灯,还可以配置各种场景,例如,若用户配置了“回家场景”,那么,当用户回家,通过用户对“回家场景”的一键执行,则自动开灯、灯光亮度调高、关上窗户、闭合窗帘、打开空调等等。
然而,在环境、天气、季节、时间段等因素的影响下,用户的需求往往需要动态调整,例如,天冷了,空调没必要打开,也就是说,之前已配置好的场景无法满足用户的需求,用户还需要手动控制智能设备以满足其自身的实际需求。可见,整个过程,受限于用户的手动操作,不仅导致场景配置的效率不高,还增加了用户操作的复杂度,大大提高了用户的使用成本,降低了用户的使用体验。
由上可知,如何提高场景配置的效率尚待解决。
发明内容
本公开各实施例提供了一种设备控制方法、装置、电子设备及存储介质。
根据本公开实施例的一个方面,一种设备控制方法,包括:获取设备运行数据,所述设备运行数据至少记录了设备的运行属性,所述运行属性用于指示所述设备执行的动作、所述设备执行动作后的状态、所述设备执行动作的时间中的至少一种;根据所述设备运行数据中记录的所述设备的运行属性,确定针对目标场景的设备配置需求,所述设备配置需求用于指示至少一个所述设备需要在所述目标场景中配置对应的动作;根据所述设备配置需求为所述目标场景生成场景配置方案,使得至少一个所述设备在所述目标场景执行的情况下,执行在所述目标场景中根据所述场景配置方案配置的对应动作。
根据本公开实施例的一个方面,一种设备控制装置,包括:日志获取器,配置为获取设备运行数据,所述设备运行数据至少记录了设备的运行属性,所述运行属性用于指示所述设备执行的动作、所述设备执行动作后的状态、所述设备执行动作的时间中的至少一种;需求确定器,配置为根据所述设备运行数据中记录的所述设备的运行属性,确定针对目标 场景的设备配置需求,所述设备配置需求用于指示至少一个所述设备需要在所述目标场景中配置对应的动作;方案生成器,配置为根据所述设备配置需求为所述目标场景生成场景配置方案,使得至少一个所述设备在所述目标场景执行的情况下,执行在所述目标场景中根据所述场景配置方案配置的对应动作。
在一示例性实施例中,所述需求确定器包括:新动作确定器,配置为根据所述设备运行数据中记录的所述设备的运行属性,确定在已配置的目标场景执行后,是否存在至少一个所述设备执行了新动作;所述新动作区别于在已配置的目标场景中为所述设备配置的动作;若为是,则通知第一需求确定器,配置为将至少一个所述设备执行的所述新动作,作为针对已配置的目标场景的设备配置需求,以指示至少一个所述设备需要在已配置的目标场景中重新配置对应的所述新动作。
在一示例性实施例中,所述新动作确定器包括:频次确定器,配置为根据所述设备运行数据中记录的所述设备的运行属性,确定在第一设定时长内,所述设备执行所述新动作的频次;所述第一设定时长是指已配置的目标场景连续执行多次的时间段;若所述频次超过频次阈值,则通知单设备确定器,配置为确定存在一个所述设备执行了所述新动作。
在一示例性实施例中,所述新动作确定器包括:数量确定器,配置为根据所述设备运行数据中记录的所述设备的运行属性,确定在已配置的目标场景执行后,执行所述新动作的所述设备的数量;若所述数量超过数量阈值,则通过多设备确定器,配置为确定存在多个所述设备执行了所述新动作。
在一示例性实施例中,所述需求确定器包括:多动作确定器,配置为根据所述设备运行数据中记录的所述设备的运行属性,确定第二设定时长内,是否存在多个所述设备执行了动作;所述第二设定时长是指连续多个所述设备执行动作的时间段;若为是,则通知第二需求确定器,配置为将多个所述设备分别执行的对应动作,作为针对所述目标场景的设备配置需求,以指示多个所述设备需要在所述目标场景中配置对应的动作。
在一示例性实施例中,所述方案生成器包括:属性创建器,配置为根据所述设备配置需求指示的所述设备需要在所述目标场景中配置的动作,在所述目标场景中创建所述设备的场景配置属性;所述场景配置属性用于指示所述设备在所述目标场景中配置的动作;第一方案生成器,配置为根据所述目标场景中各所述设备已创建的场景配置属性,生成所述场景配置方案。
在一示例性实施例中,所述方案生成器包括:属性获取器,配置为获取所述目标场景中所述设备已创建的场景配置属性;属性调整器,配置为根据所述设备配置需求指示的所述设备需要在所述目标场景中配置的动作,对所述目标场景中所述设备的场景配置属性进行调整;第二方案生成器,配置为根据所述目标场景中各所述设备调整后的场景配置属性,生成所述场景配置方案。
在一示例性实施例中,所述装置还包括:消息推送器,配置为生成配置提示消息并进行推送,所述配置提示消息用于提示用户是否确认根据所述场景配置方案配置所述目标场 景;场景配置器,配置为响应于针对所述场景配置方案的确定操作,根据所述场景配置方案在所述目标场景中为至少一个所述设备配置对应的动作;设备控制器,配置为响应于针对所述目标场景的执行操作,控制至少一个所述设备执行在所述目标场景中根据所述场景配置方案配置的对应动作。
根据本申请的一个方面,一种电子设备,包括至少一个处理器以及至少一个存储器,其中,所述存储器上存储有计算机可读指令;所述计算机可读指令被所述处理器执行时,使得电子设备实现如上所述的设备控制方法。
根据本申请的一个方面,一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,以实现如如上所述的设备控制方法。
根据本公开的一个方面,一种计算机程序产品,计算机程序产品包括计算机可读指令,计算机可读指令存储在存储介质中,电子设备的处理器从存储介质读取计算机可读指令,加载并执行该计算机可读指令,使得电子设备实现如上所述的设备控制方法。
附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是根据本公开实施例所涉及的实施环境的示意图;
图2是图1所示出实施环境中的智能设备与服务器端交互的示意图;
图3是根据一示例性实施例示出的一种设备控制方法的流程图;
图4是图3对应实施例中步骤330在一个实施例的流程图;
图5是图3对应实施例中步骤330在另一个实施例的流程图;
图6是根据一示例性实施例示出的根据设备配置需求生成场景配置方案的示意图;
图7是根据一示例性实施例示出的另一种设备控制方法的流程图;
图8是图7对应实施例所涉及的配置提示消息向用户推送的示意图;
图9至图11是一应用场景中一种设备控制方法的时序图;
图12是根据一示例性实施例示出的一种设备控制装置的结构框图;
图13是根据一示例性实施例示出的一种电子设备的硬件结构图;
图14是根据一示例性实施例示出的一种电子设备的结构框图。
具体实施方式
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本公开,而不能解释为对本公开的限制。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。
下面是对本公开涉及的几个名词进行的介绍和解释:
场景,实质是创建在电子设备的虚拟场景,该场景对应于真实的空间环境,如智能家居环境。例如,真实的智能家居环境可以是部署了若干个设备的房间。那么,该场景在电子设备的创建,亦即是指在电子设备对场景进行配置,具体是指,在场景中,通过设备标识实现对智能家居环境中部署的该若干个设备的映射,并通过动作标识为该若干个设备配置对应的动作。也可以理解为,在已创建的场景(亦即已配置的场景)中,至少包括智能家居环境中部署的若干个设备的设备标识、为该若干个设备配置的对应动作的动作标识,其中,设备标识用于表示智能家居环境中在目标场景进行了映射的设备,动作标识用于表示进行设备标识映射的设备在目标场景中配置的动作。基于此,通过场景的执行,便能够实现智能家居环境中的各设备执行在场景中配置的对应动作。
设备的运行属性,用于指示设备执行的动作、设备执行动作后的状态、设备执行动作的时间中的至少一种。
设备的场景配置属性,用于指示设备在场景中配置的动作。
TTS,英文全称为Text To Speech,中文含义为从文本到语音,作为人机对话的一部分,目的在于将文本智能地转化为语音流,使得机器能够说话。
本公开提供的技术方案带来的有益效果是:
在上述技术方案中,获取至少记录了设备的运行属性的设备运行数据,以根据设备运行数据中记录的设备的运行属性,确定针对目标场景的设备配置需求,并根据设备配置需求为目标场景生成场景配置方案,使得至少一个设备能够根据场景配置方案,执行在目标场景中配置的对应动作,也就是说,通过设备运行数据主动了解用户的需求,在确定用户的需求动态调整时,能够自动为目标场景生成场景配置方案,避免用户手动操作来调整已配置的旧场景或者创建新场景,从而能够有效地解决相关技术中存在的场景配置的效率不高的问题。
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。
图1为一种设备控制方法所涉及的实施环境的示意图。该实施环境包括用户终端110、智能设备130、网关150、服务器端170和路由器190。
具体地,用户终端110,也可以认为是用户端或者终端,可进行智能设备130关联的客户端的部署(也理解为安装),此用户终端110可以是智能手机、平板电脑、笔记本电脑、台式电脑、智能控制面板、其他具有显示和控制功能的设备等电子设备,在此不进行限定。
其中,客户端,与智能设备130关联,实质是用户在客户端中进行账户注册,并在客户端中对智能设备130进行配置,例如,该配置包括为智能设备130添加设备标识等,以使得用户终端110中运行客户端时,能够为用户提供关于智能设备130的设备显示、设备控制等功能,此客户端可以是应用程序形式,也可以是网页形式,相应地,客户端进行显示和控制的界面则可以是程序窗口形式,还可以是网页页面形式的,此处也并未加以限定。
智能设备130部署在网关150中,并通过其自身所配置的通信模块与网关150通信,进而受控于网关150。应当理解,智能设备130泛指多个智能设备130中的一个,本公开实施例仅以智能设备130举例说明,也即是,本公开实施例对部署在网关150中的智能设备的数量和设备类型并未加以限定。在一个应用场景中,智能设备130通过局域网络接入网关150,从而部署于网关150中。智能设备130通过局域网络接入网关150的过程包括:由网关150首先建立一个局域网络,智能设备130通过连接该网关150,从而加入该网关150建立的局域网络中。此局域网络包括但不限于:ZIGBEE或者蓝牙。其中,智能设备130可以是智能打印机、智能传真机、智能摄像机、智能空调、智能门锁、智能灯或者配置了通信模块的人体传感器、门窗传感器、温湿度传感器、水浸传感器、天然气报警器、烟雾报警器、墙壁开关、墙壁插座、无线开关、无线墙贴开关、魔方控制器、窗帘电机等电子设备。
用户终端110与智能设备130之间的交互,例如,用户通过用户终端110对场景的一键执行,以控制智能设备130执行在该场景中配置的动作,可以通过局域网络实现,还可以通过广域网络实现。在一个应用场景中,用户终端110通过路由器190与网关150之间建立有线或者无线等方式的通信连接,例如,该有线或者无线等方式包括但不限于WIFI等,使得用户终端110与网关150部署于同一个局域网络,进而使得用户终端110可通过局域网络路径实现与智能设备130之间的交互。在另一个应用场景中,用户终端110通过服务器端170与网关150之间建立有线或者无线等方式的通信连接,例如,该有线或者无线等方式包括但不限于2G、3G、4G、5G、WIFI等,使得用户终端110与网关150部署于同一个广域网络,进而使得用户终端110可通过广域网络路径实现与智能设备130之间的交互。
其中,服务器端170,也可以认为是云端、云平台、平台端、服务端等等,此服务器端170可以是一台服务器,也可以是由多台服务器构成的一个服务器集群,或者是由多台服务器构成的云计算中心,以便于更好地向海量用户终端110提供后台服务。例如,后台 服务包括设备控制服务。
在一种可能的实现方式,以智能设备130在广域网络中与服务器端170交互为例,对设备控制过程进行以下说明:
如图2所示,用户可通过用户终端110,按照自身的实际需求配置目标场景,以便于下次可以通过该目标场景的执行,使得在该目标场景中进行了设备标识映射的若干个设备,能够执行在该目标场景中配置的对应动作。
随着用户的需求发生动态调整,例如,用户对该若干个设备中的至少一个智能设备130进行了控制,例如,进入冬天后,将智能灯在回家场景中执行的亮度由10%调整至30%,则对于智能设备130而言,将主动记录用户对该智能设备130的控制,添加至设备运行数据,并将该设备运行数据发送至服务器端170。
就服务器端170而言,在智能设备130发送了设备运行数据之后,便能够获取到该设备运行数据,并基于该设备运行数据为用户提供设备控制服务器,具体是指,基于该设备运行数据确定针对目标场景的设备配置需求,以此来确认用户的需求是否发生了动态调整,若为是,则自动根据设备配置需求为目标场景生成场景配置方案,使得在该目标场景中进行了设备标识映射的若干个智能设备130,能够根据场景配置方案,执行在目标场景中配置的对应动作,实现目标场景配置跟随用户需求的动态调整而自动更新,不仅提高了场景配置的效率,而且避免用户手动操作的复杂度,大大降低了用户的使用成本,有利于提升用户的使用体验。
请参阅图3,本公开实施例提供了一种设备控制方法,该方法适用于电子设备,该电子设备具体可以是图1所示出实施环境中的网关150,还可以是图1所示出实施环境中的用户终端110、服务器端170。
在下述方法实施例中,为了便于描述,以该方法各步骤的执行主体为电子设备为例进行说明,但是并非对此构成具体限定。
如图3所示,该方法可以包括以下步骤:
步骤310,获取设备运行数据。
其中,设备运行数据至少记录了设备的运行属性。
首先说明的是,设备运行数据实质是对设备每一次执行的动作的记录,不仅记录了设备每一次执行的动作,还记录了设备在执行动作后的状态。当然,在其他实施例中,设备运行数据还记录了设备每一次执行动作的时间。在一种可能的实现方式,设备运行数据在设备中以操作日志方式存储。
基于此,设备的运行属性可以用于指示设备执行的动作、设备执行动作后的状态、设备执行动作的时间等等中的一种或者多种。在一种可能的实现方式,设备执行的动作针对目标场景而言,即设备执行的动作为设备在目标场景中配置的动作。
对于设备而言,设备在每一次执行动作之后,都将相应地存储设备本次执行的动作、 设备本次执行动作的时间、设备本次执行动作后的状态,以作为设备的运行属性添加至设备运行数据。在一种可能的实现方式,设备通过网关将设备运行数据转发至服务器端,具体是指,设备基于局域网络向网关上报设备运行数据,该设备运行数据由网关转发至服务器端。在一种可能的实现方式,电子设备基于广域网络向服务器端上报设备运行数据。
那么,对于电子设备而言,关于设备运行数据的获取,设备运行数据可以来源于设备实时上报的设备运行数据,以便于实时处理设备运行数据,提高处理的实时性,还可以来源于一个历史时间段内存储的设备实时上报的设备运行数据,以便于批量处理设备运行数据,提高处理的效率。
步骤330,根据设备运行数据中记录的设备的运行属性,确定针对目标场景的设备配置需求。
如前所述,设备运行数据是对设备每一次执行的动作的记录,应当理解,设备运行数据也会对场景执行后设备再次执行的任意动作进行记录。举例来说,天热时,当用户回家,回家场景的执行,实际上是指自动开灯、灯光亮度调高、关上窗户、闭合窗帘、打开空调;随着天逐渐变冷,至少空调没必要打开了,也就是说,此时,当用户回家,在回家场景执行后,用户还需要将空调关闭。上述过程中,对于设备运行数据来说,不仅记录了空调执行回家场景中配置的打开动作,还记录了回家场景执行后空调执行的关闭动作。
由此可见,通过设备运行数据中记录的设备的运行属性,便能够确定用户的需求是否发生了动态调整。继续以上述例子来说,天冷后,用户在回家场景执行后将空调关闭,电子设备基于设备运行数据中记录的回家场景中空调执行配置的打开动作、以及回家场景执行后空调执行关闭动作,便能够确定用户的需求发生了动态调整,即针对回家场景而言,用户的需求从打开空调调整为关闭空调。
本实施例中,设备配置需求,用于指示至少一个设备需要在目标场景中配置对应的动作,亦即是反映了用户的需求发生了动态调整。仍以上述例子来说,设备配置需求,用于指示空调需要在回家场景中配置关闭动作,其中,目标场景为回家场景,设备是指空调,对应的动作为关闭动作。
在一种可能的实现方式,如图4所示,步骤330可以包括以下步骤:步骤331,根据设备运行数据中记录的设备的运行属性,确定在第二设定时长内,是否存在多个设备执行了动作,第二设定时长是指连续多个设备执行动作的时间段;例如,第二设定时长为10分钟,表示该10分钟内连续多个设备执行了动作;步骤333,若为是,则将多个设备分别执行的对应动作,作为针对目标场景的设备配置需求,以指示多个设备需要在目标场景中配置对应的动作。
此种方式下,目标场景虽然未执行,但是用户在一个时间段(例如10分钟)内连续控制多个设备分别执行了对应动作,也就是说,若用户期望下次可以快捷地对该多个设备实现一键控制,则可能需要耗费大量的时间来进行目标场景的配置,既可能是目标场景的重新配置,也可能是目标场景的创建,此时,便视为用户的需求发生了动态调整。其中, 设备执行的动作可以是设备在目标场景中配置的动作,还可以是指设备在目标场景中未配置的新动作,此处并未进行限定。
在一种可能的实现方式,如图5所示,步骤330可以包括以下步骤:步骤332,根据设备运行数据中记录的设备的运行属性,确定在已配置的目标场景执行后,是否存在至少一个设备执行了新动作,新动作区别于在已配置的目标场景中为设备配置的动作;步骤334,若为是,则将至少一个设备执行的新动作,作为针对目标场景的设备配置需求,以指示至少一个设备需要在已配置的目标场景中重新配置对应的新动作。
此种方式下,针对目标场景已执行而言,用户仍然对一个或者多个设备进行了控制,即控制该一个或者多个设备执行了目标场景中未配置的新动作,也就是说,已执行的目标场景可能无法满足用户的需求,便也视为用户的需求发生了动态调整。
其中,针对目标场景已执行而言,关于是否存在至少一个设备执行了在目标场景中未配置的新动作,包括以下两种可能的确认方式:
在一种可能的实现方式,电子设备根据设备运行数据中记录的设备的运行属性,确定在第一设定时长内,设备执行新动作的频次,第一设定时长是指已配置的目标场景连续执行多次的时间段;例如,第一设定时长为3天,表示该3天内已配置的目标场景连续执行了多次;若频次超过频次阈值,则确定存在一个设备执行了新动作。此种方式下,若目标场景在第一设定时长(例如3天)内连续多次被执行,并且同一个设备多次执行了目标场景中未配置的新动作,便视为用户的需求发生了动态调整。
在一种可能的实现方式,电子设备根据设备运行数据中记录的设备的运行属性,确定在已配置的目标场景执行后,执行新动作的设备的数量;若数量超过数量阈值,则确定存在多个设备执行了新动作。此种方式下,若目标场景执行后,多个设备都执行了目标场景中未配置的新动作,也可以视为用户的需求发生了动态调整。
需要说明的是,第一设定时长和第二设定时长,均可以根据应用场景的实际需要灵活地调整,此处并未加以限定。例如,第一设定时长为3天。同理,数量阈值和频次阈值,也均可以根据应用场景的实际需要灵活地调整,此处也并未进行具体限定。例如,数量阈值为3个。
由上可知,多个设备在同一个时间段内受控执行动作,或者,同一个设备多次在目标场景执行后受控执行新动作,都将被自动归纳为属于用户需求发生动态调整的范畴,从而能够作为满足用户自身的实际需求而配置目标场景的依据。
步骤350,根据设备配置需求为目标场景生成场景配置方案。
在确定针对目标场景的设备配置需求之后,便能够为目标场景生成场景配置方案。该目标场景可以是指已创建的旧场景,对应地,场景配置方案是指对该目标场景中设备已创建的场景配置属性进行调整的方案;该目标场景还可以是指未创建的新场景,对应地,场景配置方案是指对该目标场景中设备的场景配置属性进行创建的方案。在一种可能的实现方式,场景配置方案至少包括设备的场景配置属性。在一种可能的实现方式,场景配置方 案还包括设备的设备标识。其中,设备的场景配置属性,用于指示设备在目标场景中配置的动作、设备执行目标场景中配置的动作后的状态中的至少一种。
在一种可能的实现方式,步骤350可以包括以下步骤:根据设备配置需求指示的设备需要在目标场景中配置的动作,在目标场景中创建设备的场景配置属性;根据目标场景中各设备已创建的场景配置属性,生成场景配置方案。
在一种可能的实现方式,步骤350可以包括以下步骤:获取目标场景中设备已创建的场景配置属性;根据设备配置需求指示的设备需要在目标场景中配置的动作,对目标场景中设备的场景配置属性进行调整;根据目标场景中各设备调整后的场景配置属性,生成场景配置方案。
也就是说,如图6所示,电子设备将设备配置需求指示的设备需要在目标场景中配置的动作,转化为设备的场景配置属性,并添加至场景配置方案中,以便于目标场景的配置。例如,设备配置需求指示智能灯需要在回家场景中配置调整亮度至30%的动作,若已创建的目标场景中,智能灯的场景配置属性指示智能灯在回家场景中配置的动作为调整亮度至10%,那么,通过比对,便会将调整亮度至30%,作为智能灯的新的场景配置属性,添加至场景配置方案中,从而使得下一次目标场景执行后,智能灯便会将亮度调整至30%。当然,在其他实施例中,场景配置属性还用于指示设备执行目标场景中配置的动作后的状态,此处并非构成具体限定。
仍以前述例子进行说明,智能灯的场景配置属性指示智能灯在回家场景中执行动作后的亮度为10%,那么,通过与设备配置需求指示的亮度为30%进行比对,便会将亮度为30%,作为智能灯的新的场景配置属性,添加至场景配置方案中,从而使得下一次目标场景执行后,智能灯便会将亮度调整至30%。
在生成场景配置方案之后,电子设备将根据场景配置方案对目标场景进行配置。在一个可能的实现方式,将场景配置方案发送至用户终端,以便于用户终端根据场景配置方案在目标场景中为至少一个设备配置对应的动作。那么,随着用户通过用户终端对目标场景的一键执行,便能够控制在目标场景中进行了设备标识映射的至少一个设备,执行在目标场景中根据场景配置方案配置的对应动作。
上述过程中,通过设备运行数据中记录的设备的运行属性,能够主动了解用户的需求,在确定用户的需求发生了动态调整时,便能够自动为目标场景生成满足动态调整后用户需求的场景配置方案,避免用户手动操作来调整已配置的旧场景或者创建新场景,不仅能够提高场景配置的效率,而且避免用户手动操作的复杂度,大大降低了用户的使用成本,有利于提升用户的使用体验,从而能够有效地解决相关技术中存在的场景配置的效率不高的问题。
请参阅图7,本公开实施例中提供了一种可能的实现方式,步骤350之后,该方法还可以包括以下步骤:
步骤410,生成配置提示消息。
其中,配置提示消息用于提示用户是否根据确认场景配置方案配置目标场景。
步骤430,向用户终端推送配置提示消息。
为了避免目标场景在智能家居环境不适用,也可以认为是避免用户不满意目标场景,本实施例中,在根据场景配置方案进行目标场景的配置之前,将向用户终端推送配置提示消息。
在一种可能的实现方式,显示配置提示消息。以电子设备为智能控制面板为例,如图8所示,在智能控制面板的显示界面601中,显示了配置提示消息602:“主人,是不是想调整“回家”场景?”,若用户点击“确认”控件603,则表示用户想调整回家场景,此时,由智能控制面板自动根据场景配置方案重新配置目标场景回家场景。此种方式下,为用户提供了快捷调整目标场景的入口,用户通过该入口的触发操作,便能够实现目标场景的重新配置。
在一种可能的实现方式,电子设备将配置提示消息发送至智能设备,以控制智能设备根据配置提示消息对用户进行语音提示。对于智能设备来说,通过该智能设备配置的语音输出模块所提供的TTS技术,便能够将文本形式的配置提示消息转化为语音反馈给用户,例如,“主人,是不是想创建场景?”。此种方式下,实现了高效的语音交互模式,用户无需任何手动操作,仅需要回答“是”,便能够实现目标场景的创建。
在上述实施例的作用下,实现了关于目标场景配置的用户交互模式,可是触发方式的交互模式,也可以是语音方式的交互模式,用户能够简单高效地实现目标场景的配置,可以是目标场景的重新配置,还可以是目标场景的创建,用户完全不需要关心在目标场景中应该对哪一个设备配置哪一种动作,从而能够大大地降低用户手动操作的复杂度,进而极大地降低用户的使用成本,最终有利于提升用户的使用体验。
图9至图11是一应用场景中一种设备控制方法的具体实现示意图。该应用场景适用于图1所示出实施环境中的设备。
在该应用场景中,用户终端110为智能控制面板,使得用户可通过智能控制面板直接控制智能设备130执行相应的动作,或者通过智能控制面板一键执行已创建的目标场景而间接地控制智能设备130执行其在目标场景中配置的动作;智能设备130部署于网关150,通过局域网络接入网关150而受控执行相应的动作,并且通过广域网络可与服务器端170交互,或者,通过局域网络由网关150转发数据至服务器端170。
现结合图9至图11,对设备控制过程中涉及的三种目标场景配置方案进行以下说明:
第一种场景配置方案:
如图9所示,在第一种场景配置方案中,用户通过用户终端110,按照自身的实际需求配置了目标场景,并通过该目标场景的执行,使得在该目标场景中进行了设备标识映射的若干个智能设备130,执行在该目标场景中配置的对应动作,进而使得该若干个智能设 备130分别上报对应的设备运行数据至服务器端170。
随着用户对该若干个智能设备130中的其中一个智能设备130控制,对于该智能设备130而言,在受控执行相应动作的同时,还会将主动记录的关于用户对该智能设备130的控制,作为该智能设备130的运行属性,添加至该智能设备130的设备运行数据,并将该设备运行数据上报至服务器端170。
对于服务器端170而言,通过执行步骤801,若判定目标场景连续多次执行的第一设定时长(3天)内,该智能设备130也多次执行了新动作,即区别于目标场景中为该智能设备130配置的动作,便认为已执行的目标场景可能无法满足用户的需求,进而认为用户的需求发生了调整,则确定设备配置需求,并根据该设备配置需求生成场景配置方案,以此通知用户终端110进行目标场景配置的更新。
此时,对于用户终端110而言,在接收到场景配置方案之后,便能够根据该场景配置方案对目标场景的配置进行调整,以此来满足用户动态调整后的需求。
第二种场景配置方案:
如图10所示,在第二种场景配置方案中,区别于第一种场景配置方案,在执行目标场景之后,用户将对若干个智能设备130中的多个智能设备130加以控制。
此时,对于服务器端170而言,通过执行步骤802,若判定目标场景执行后,多个智能设备130分别受控执行了对应动作,便也认为已执行的目标场景可能无法满足用户的需求,进而认为用户的需求发生了调整,则确定设备配置需求,并根据该设备配置需求生成场景配置方案,以此通知用户终端110进行目标场景配置的更新。
相应地,在用户终端110中,将根据服务器端170发送的场景配置方案对目标场景的配置进行调整,以此来满足用户动态调整后的需求。
上述两种场景配置方案,均是目标场景已执行,基于用户在目标场景执行后仍然对一个或者多个智能设备130加以控制,从而主动了解到用户的动态需求,实现对用户的动态需求的满足。
第三种场景配置方案:
如图11所示,在第三种场景配置方案中,区别于前两种场景配置方案,并未执行目标场景,该目标场景可能已创建了,也可能尚未创建,而用户直接对多个智能设备130进行了控制,具体是指用户在第二设定时长(10分钟)内连续控制该多个智能设备130执行动作。
此时,对于服务器端170而言,通过执行步骤803,若判定多个智能设备130在10分钟内分别受控执行了对应动作,便认为若用户期望下次可以快捷地对该多个智能设备130实现一键控制,则可能需要耗费大量的时间来进行目标场景的配置,既可能是对已创建的目标场景的重新配置,也可能是对尚未创建的目标场景进行配置,进而认为用户的需求发生了调整,则确定设备配置需求,并根据该设备配置需求生成场景配置方案,以此通知用户终端110进行目标场景配置的更新。
相应地,在用户终端110中,将根据服务器端170发送的场景配置方案进行目标场景的创建,即在目标场景中为该多个智能设备130配置对应的动作,以此来满足用户动态调整后的需求。
可见,在第三种场景配置方案中,目标场景虽然未执行,但是基于用户在一个时间段(10分钟)内连续控制多个设备分别执行了对应动作,也能够主动了解到用户的动态需求,实现对用户的动态需求的满足。
在本应用场景中,实现目标场景配置跟随用户需求的动态调整而自动更新,不仅提高了场景配置的效率,而且避免用户手动操作的复杂度,大大降低了用户的使用成本,有利于提升用户的使用体验。
应该理解的是,虽然上述各实施例的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述各实施例中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
下述为本公开装置实施例,可以用于执行本公开所涉及的设备控制方法。对于本公开装置实施例中未披露的细节,请参照本公开所涉及的设备控制方法的方法实施例。
请参阅图12,本公开实施例中提供了一种设备控制装置900,可以部署于图1所示出实施环境中的网关150,还可以部署于图1所示出实施环境中的用户终端110、服务器端170。
该设备控制装置900包括但不限于:日志获取器910、需求确定器930以及方案生成器950。
其中,日志获取器910,配置为获取设备运行数据,设备运行数据至少记录了设备的运行属性。运行属性配置为指示设备执行的动作、设备执行动作后的状态、设备执行动作的时间中的至少一种。
需求确定器930,配置为根据设备运行数据中记录的设备的运行属性,确定针对目标场景的设备配置需求,设备配置需求配置为指示至少一个设备需要在目标场景中配置对应的动作。
方案生成器950,配置为根据设备配置需求为目标场景生成场景配置方案,使得至少一个设备在目标场景执行的情况下,执行在目标场景中根据场景配置方案配置的对应动作。
在一示例性实施例中,需求确定器包括:新动作确定器,配置为根据设备运行数据中记录的设备的运行属性,确定在已配置的目标场景执行后,是否存在至少一个设备执行了新动作;新动作区别于在已配置的目标场景中为设备配置的动作;若为是,则通知第一需 求确定器,配置为将至少一个设备执行的新动作,作为针对已配置的目标场景的设备配置需求,以指示至少一个设备需要在已配置的目标场景中重新配置对应的新动作。
在一示例性实施例中,新动作确定器包括:频次确定器,配置为根据设备运行数据中记录的设备的运行属性,确定在第一设定时长内,设备执行新动作的频次;第一设定时长是指已配置的目标场景连续执行多次的时间段;若频次超过频次阈值,则通知单设备确定器,配置为确定存在一个设备执行了新动作。
在一示例性实施例中,新动作确定器包括:数量确定器,配置为根据设备运行数据中记录的设备的运行属性,确定在已配置的目标场景执行后,执行新动作的设备的数量;若数量超过数量阈值,则通过多设备确定器,配置为确定存在多个设备执行了新动作。
在一示例性实施例中,需求确定器包括:多动作确定器,配置为根据设备运行数据中记录的设备的运行属性,确定第二设定时长内,是否存在多个设备执行了动作;第二设定时长是指连续多个设备执行动作的时间段;若为是,则通知第二需求确定器,配置为将多个设备分别执行的对应动作,作为针对目标场景的设备配置需求,以指示多个设备需要在目标场景中配置对应的动作。
在一示例性实施例中,方案生成器包括:属性创建器,配置为根据设备配置需求指示的设备需要在目标场景中配置的动作,在目标场景中创建设备的场景配置属性;场景配置属性用于指示设备在目标场景中配置的动作;第一方案生成器,配置为根据目标场景中各设备已创建的场景配置属性,生成场景配置方案。
在一示例性实施例中,方案生成器包括:属性获取器,配置为获取目标场景中设备已创建的场景配置属性;属性调整器,配置为根据设备配置需求指示的设备需要在目标场景中配置的动作,对目标场景中设备的场景配置属性进行调整;第二方案生成器,配置为根据目标场景中各设备调整后的场景配置属性,生成场景配置方案。
在一示例性实施例中,装置还包括:消息推送器,配置为生成配置提示消息并进行推送,配置提示消息用于提示用户是否确认根据场景配置方案配置目标场景;场景配置器,配置为响应于针对场景配置方案的确定操作,根据场景配置方案在目标场景中为至少一个设备配置对应的动作;设备控制器,配置为响应于针对目标场景的执行操作,控制至少一个设备执行在目标场景中根据场景配置方案配置的对应动作。
需要说明的是,上述实施例所提供的设备控制装置在进行设备控制时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即设备控制装置的内部结构将划分为不同的功能模块,以完成以上描述的全部或者部分功能。
另外,上述实施例所提供的设备控制装置与设备控制方法的实施例属于同一构思,其中各个模块执行操作的具体方式已经在方法实施例中进行了详细描述,此处不再赘述。
图13根据一示例性实施例示出的一种电子设备的结构示意。该电子设备可以适用于 图1所示出实施环境中的网关150、服务器端170等。
需要说明的是,该电子设备只是一个适配于本公开的示例,不能认为是提供了对本公开的使用范围的任何限制。该电子设备也不能解释为需要依赖于或者必须具有图13示出的示例性的电子设备2000中的一个或者多个组件。
电子设备2000的硬件结构可因配置或者性能的不同而产生较大的差异,如图13所示,电子设备2000包括:电源210、接口230、至少一存储器250、以及至少一中央处理器(CPU,Central Processing Units)270。
具体地,电源210用于为电子设备2000上的各硬件设备提供工作电压。
接口230包括至少一有线或无线网络接口231,用于与外部设备交互。例如,进行图1所示出实施环境中用户终端110与服务器端170之间的交互。
当然,在其余本公开适配的示例中,接口230还可以进一步包括至少一串并转换接口233、至少一输入输出接口235以及至少一USB接口237等,如图13所示,在此并非对此构成具体限定。
存储器250作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作***251、应用程序253及数据255等,存储方式可以是短暂存储或者永久存储。
其中,操作***251用于管理与控制电子设备2000上的各硬件设备以及应用程序253,以实现中央处理器270对存储器250中海量数据255的运算与处理,其可以是Windows ServerTM、Mac OS XTM、UnixTM、LinuxTM、FreeBSDTM等。
应用程序253是基于操作***251之上完成至少一项特定工作的计算机可读指令,其可以包括至少一模块(图13未示出),每个模块都可以分别包含有对电子设备2000的计算机可读指令。例如,设备控制装置可视为部署于电子设备2000的应用程序253。
数据255可以是存储于磁盘中的照片、图片等,还可以是设备运行数据、场景配置方案等,存储于存储器250中。
中央处理器270可以包括一个或多个以上的处理器,并设置为通过至少一通信总线与存储器250通信,以读取存储器250中存储的计算机可读指令,进而实现对存储器250中海量数据255的运算与处理。例如,通过中央处理器270读取存储器250中存储的一系列计算机可读指令的形式来完成设备控制方法。
此外,通过硬件电路或者硬件电路结合软件也能同样实现本公开,因此,实现本公开并不限于任何特定硬件电路、软件以及两者的组合。
请参阅图14,本公开实施例中提供了一种电子设备4000,该电子设备4000可以包括:智能手机、平板电脑、台式电脑、笔记本电脑、智能控制面板、其他具有显示和控制功能的设备、服务器等等。
在图14中,该电子设备4000包括至少一个处理器4001、至少一条通信总线4002以及至少一个存储器4003。
其中,处理器4001和存储器4003之间的数据交互,可以通过至少一个通信总线4002实现。该通信总线4002可包括一通路,用于在处理器4001和存储器4003之间传输数据。通信总线4002可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。通信总线4002可以分为地址总线、数据总线、控制总线等。为便于表示,图14中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
可选地,电子设备4000还可以包括收发器4004,收发器4004可以用于该电子设备与其他电子设备之间的数据交互,如数据的发送和/或数据的接收等。需要说明的是,实际应用中收发器4004不限于一个,该电子设备4000的结构并不构成对本公开实施例的限定。
处理器4001可以是CPU(Central Processing Unit,中央处理器),通用处理器,DSP(Digital Signal Processor,数据信号处理器),ASIC(Application Specific Integrated Circuit,专用集成电路),FPGA(Field Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本公开公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器4001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。
存储器4003可以是ROM(Read Only Memory,只读存储器)或可存储静态信息和指令的其他类型的静态存储设备,RAM(Random Access Memory,随机存取存储器)或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM(Electrically Erasable Programmable Read Only Memory,电可擦可编程只读存储器)、CD-ROM(Compact Disc Read Only Memory,只读光盘)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序指令或代码并能够由电子设备4000存取的任何其他介质,但不限于此。
存储器4003上存储有计算机可读指令,处理器4001可以通过通信总线4002读取存储器4003中存储的计算机可读指令。
该计算机可读指令被处理器4001执行时实现上述各实施例中的设备控制方法。
此外,本公开实施例中提供了一种存储介质,该存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时,以实现如如上所述的设备控制方法。
本公开实施例中提供了一种计算机程序产品,计算机程序产品包括计算机可读指令,计算机可读指令存储在存储介质中,电子设备的处理器从存储介质读取计算机可读指令,加载并执行该计算机可读指令,使得电子设备实现如上所述的设备控制方法。其中,该应用程序产品可以使用任何编程语言,并采用源代码、目标代码或者在源代码和目标代码之间的中间代码的形式,诸如部分编译的形式或者任何其它所需的形式。
与相关技术相比,通过设备运行数据主动了解用户的需求,在确定用户的需求动态调 整时,能够自动为目标场景生成场景配置方案,实现目标场景配置跟随用户需求的动态调整而自动更新,不仅提高了场景配置的效率,而且避免用户手动操作的复杂度,大大降低了用户的使用成本,有利于提升用户的使用体验。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过计算机可读指令来完成,或通过指令控制相关的硬件来完成,该计算机可读指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上所述仅是本公开的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。

Claims (15)

  1. 一种设备控制方法,由电子设备执行,所述方法包括:
    获取设备运行数据,所述设备运行数据至少记录了设备的运行属性;所述运行属性用于指示所述设备执行的动作、所述设备执行动作后的状态、所述设备执行动作的时间中的至少一种;
    根据所述设备运行数据中记录的所述设备的运行属性,确定针对目标场景的设备配置需求;所述设备配置需求用于指示至少一个所述设备需要在所述目标场景中配置对应的动作;
    根据所述设备配置需求为所述目标场景生成场景配置方案,使得至少一个所述设备在所述目标场景执行的情况下,执行在所述目标场景中根据所述场景配置方案配置的对应动作。
  2. 如权利要求1所述的方法,其中,所述根据所述设备运行数据中记录的所述设备的运行属性,确定针对目标场景的设备配置需求,包括:
    根据所述设备运行数据中记录的所述设备的运行属性,确定在已配置的目标场景执行后,是否存在至少一个所述设备执行了新动作;所述新动作区别于在已配置的目标场景中为所述设备配置的动作;
    若为是,则将至少一个所述设备执行的所述新动作,作为针对已配置的目标场景的设备配置需求,以指示至少一个所述设备需要在已配置的目标场景中重新配置对应的所述新动作。
  3. 如权利要求2所述的方法,其中,所述根据所述设备运行数据中记录的所述设备的运行属性,确定在已配置的目标场景执行后,是否存在至少一个所述设备执行了新动作,包括:
    根据所述设备运行数据中记录的所述设备的运行属性,确定在第一设定时长内,所述设备执行所述新动作的频次;所述第一设定时长是指已配置的目标场景连续执行多次的时间段;
    若所述频次超过频次阈值,则确定存在一个所述设备执行了所述新动作。
  4. 如权利要求2所述的方法,其中,所述根据所述设备运行数据中记录的所述设备的运行属性,确定在已配置的目标场景执行后,是否存在至少一个所述设备执行了新动作,包括:
    根据所述设备运行数据中记录的所述设备的运行属性,确定在已配置的目标场景执行后,执行所述新动作的所述设备的数量;
    若所述数量超过数量阈值,则确定存在多个所述设备执行了所述新动作。
  5. 如权利要求1所述的方法,其中,所述根据所述设备运行数据中记录的所述设备的运行属性,确定针对目标场景的设备配置需求,包括:
    根据所述设备运行数据中记录的所述设备的运行属性,确定在第二设定时长内,是否 存在多个所述设备执行了动作;所述第二设定时长是指连续多个所述设备执行动作的时间段;
    若为是,则将多个所述设备分别执行的对应动作,作为针对所述目标场景的设备配置需求,以指示多个所述设备需要在所述目标场景中配置对应的动作。
  6. 如权利要求1所述的方法,其中,所述根据所述设备配置需求为所述目标场景生成场景配置方案,包括:
    根据所述设备配置需求指示的所述设备需要在所述目标场景中配置的动作,在所述目标场景中创建所述设备的场景配置属性,所述场景配置属性至少指示了所述设备在所述目标场景中配置的动作;
    根据所述目标场景中各所述设备已创建的场景配置属性,生成所述场景配置方案。
  7. 如权利要求1所述的方法,其中,所述根据所述设备配置需求为所述目标场景生成场景配置方案,包括:
    获取所述目标场景中所述设备已创建的场景配置属性;
    根据所述设备配置需求指示的所述设备需要在所述目标场景中配置的动作,对所述目标场景中所述设备的场景配置属性进行调整;
    根据所述目标场景中各所述设备调整后的场景配置属性,生成所述场景配置方案。
  8. 如权利要求1至7任一项所述的方法,其中,所述根据所述设备配置需求为所述目标场景生成场景配置方案之后,所述方法还包括:
    生成配置提示消息并进行推送,所述配置提示消息用于提示用户是否确认根据所述场景配置方案配置所述目标场景;
    响应于针对所述场景配置方案的确定操作,根据所述场景配置方案在所述目标场景中为至少一个所述设备配置对应的动作;
    响应于针对所述目标场景的执行操作,控制至少一个所述设备执行在所述目标场景中根据所述场景配置方案配置的对应动作。
  9. 一种设备控制装置,部署于网关,所述装置包括:
    日志获取器,配置为获取设备运行数据,所述设备运行数据至少记录了设备的运行属性;所述运行属性用于指示所述设备执行的动作、所述设备执行动作后的状态、所述设备执行动作的时间中的至少一种;
    需求确定器,配置为根据所述设备运行数据中记录的所述设备的运行属性,确定针对目标场景的设备配置需求,所述设备配置需求用于指示至少一个所述设备需要在所述目标场景中配置对应的动作;
    方案生成器,配置为根据所述设备配置需求为所述目标场景生成场景配置方案,使得至少一个所述设备在所述目标场景执行的情况下,执行在所述目标场景中根据所述场景配置方案配置的对应动作。
  10. 如权利要求9所述的装置,其中,所述需求确定模块包括:新动作确定单元,用于根据所述设备运行数据中记录的所述设备的运行属性,确定在已配置的目标场景执行后,是否存在至少一个所述设备执行了新动作;所述新动作区别于在已配置的目标场景中为所述设备配置的动作;若为是,则通知第一需求确定单元,用于将至少一个所述设备执行的所述新动作,作为针对已配置的目标场景的设备配置需求,以指示至少一个所述设备需要在已配置的目标场景中重新配置对应的所述新动作。
  11. 如权利要求9所述的装置,其中,所述需求确定模块包括:多动作确定单元,用于根据所述设备运行数据中记录的所述设备的运行属性,确定第二设定时长内,是否存在多个所述设备执行了动作;所述第二设定时长是指连续多个所述设备执行动作的时间段;若为是,则通知第二需求确定单元,用于将多个所述设备分别执行的对应动作,作为针对所述目标场景的设备配置需求,以指示多个所述设备需要在所述目标场景中配置对应的动作。
  12. 如权利要求9所述的装置,其中,所述方案生成模块包括:属性创建单元,用于根据所述设备配置需求指示的所述设备需要在所述目标场景中配置的动作,在所述目标场景中创建所述设备的场景配置属性;所述场景配置属性用于指示所述设备在所述目标场景中配置的动作;第一方案生成单元,用于根据所述目标场景中各所述设备已创建的场景配置属性,生成所述场景配置方案。
  13. 如权利要求9所述的装置,其中,所述方案生成模块包括:属性获取单元,用于获取所述目标场景中所述设备已创建的场景配置属性;属性调整单元,用于根据所述设备配置需求指示的所述设备需要在所述目标场景中配置的动作,对所述目标场景中所述设备的场景配置属性进行调整;第二方案生成单元,用于根据所述目标场景中各所述设备调整后的场景配置属性,生成所述场景配置方案。
  14. 一种电子设备,包括:至少一个处理器以及至少一个存储器,其中,
    所述存储器上存储有计算机可读指令;
    所述计算机可读指令被所述处理器执行时,使得电子设备实现1至8中任一项所述的设备控制方法。
  15. 一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器以实现如权利要求1至8中任一项所述的设备控制方法。
PCT/CN2023/092301 2022-05-11 2023-05-05 设备控制方法、装置、电子设备及存储介质 WO2023216995A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210532411.X 2022-05-11
CN202210532411.XA CN115167157A (zh) 2022-05-11 2022-05-11 设备控制方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023216995A1 true WO2023216995A1 (zh) 2023-11-16

Family

ID=83483865

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/092301 WO2023216995A1 (zh) 2022-05-11 2023-05-05 设备控制方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN115167157A (zh)
WO (1) WO2023216995A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115167157A (zh) * 2022-05-11 2022-10-11 深圳绿米联创科技有限公司 设备控制方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150268647A1 (en) * 2014-03-20 2015-09-24 Electronics And Telecommunications Research Institute User based home automation method, apparatus thereof, and supporting method and apparatus therefor
CN112130458A (zh) * 2020-09-14 2020-12-25 青岛海尔科技有限公司 目标设备的控制方法及装置、存储介质、电子装置
CN113703334A (zh) * 2021-09-22 2021-11-26 深圳市欧瑞博科技股份有限公司 智能场景的更新方法以及装置
CN115167157A (zh) * 2022-05-11 2022-10-11 深圳绿米联创科技有限公司 设备控制方法、装置、电子设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150268647A1 (en) * 2014-03-20 2015-09-24 Electronics And Telecommunications Research Institute User based home automation method, apparatus thereof, and supporting method and apparatus therefor
CN112130458A (zh) * 2020-09-14 2020-12-25 青岛海尔科技有限公司 目标设备的控制方法及装置、存储介质、电子装置
CN113703334A (zh) * 2021-09-22 2021-11-26 深圳市欧瑞博科技股份有限公司 智能场景的更新方法以及装置
CN115167157A (zh) * 2022-05-11 2022-10-11 深圳绿米联创科技有限公司 设备控制方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN115167157A (zh) 2022-10-11

Similar Documents

Publication Publication Date Title
US10185534B2 (en) Control method, controller, and recording medium
CN109040200B (zh) 物联网设备的接入方法及装置
EP3557339A1 (en) Linked control method for internet-of-things gateway and internet-of-things gateway
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
CN108683574A (zh) 一种设备控制方法、服务器和智能家居***
US20160373269A1 (en) Device control method, controller, and recording medium
US20160372112A1 (en) Managing Interactions between Users and Applications
CN113572799B (zh) 设备接入控制平台的方法、装置和服务器
WO2023216995A1 (zh) 设备控制方法、装置、电子设备及存储介质
Salvi et al. Jamura: a conversational smart home assistant built on Telegram and Google Dialogflow
US20200380968A1 (en) Voice response interfacing with multiple smart devices of different types
CN118200349A (zh) 生成基于IoT的通知并提供命令的方法和***
US20230289198A1 (en) Configuring application scene
Yamanoue et al. A m2m system using arduino, android and wiki software
WO2020228033A1 (zh) Sdk插件的加载方法、装置、移动终端以及存储介质
CN115793481A (zh) 设备控制方法、装置、电子设备及存储介质
CN112929246A (zh) 操作指令的处理方法、存储介质、程序产品及用户终端
Sai et al. Smart Home Messenger Notifications System using IoT
CN112131015A (zh) 一种信息处理方法、装置、云服务器和存储介质
CN113593541A (zh) 数据处理方法、装置、电子设备和计算机存储介质
WO2023202678A1 (zh) 设备控制方法、装置、电子设备及存储介质
WO2023226768A1 (zh) 设备控制方法、装置、设备及存储介质
US20220138597A1 (en) Problem solving using selected datasets of internet-of-things system
WO2024016539A1 (zh) 设备的控制方法、装置、存储介质及电子装置
CN114167742B (zh) 边缘数据处理方法、装置、计算机设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23802767

Country of ref document: EP

Kind code of ref document: A1