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

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

Info

Publication number
WO2023202678A1
WO2023202678A1 PCT/CN2023/089576 CN2023089576W WO2023202678A1 WO 2023202678 A1 WO2023202678 A1 WO 2023202678A1 CN 2023089576 W CN2023089576 W CN 2023089576W WO 2023202678 A1 WO2023202678 A1 WO 2023202678A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
virtual device
smart
control
devices
Prior art date
Application number
PCT/CN2023/089576
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 WO2023202678A1 publication Critical patent/WO2023202678A1/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, system, electronic device, and storage medium, which can solve the problem of large network delay in executing actions by multiple devices in related technologies.
  • the technical solutions are as follows:
  • a device control method includes: displaying at least one control entry for a virtual device created by at least two smart devices that are allowed to perform at least one same action; responding to the The triggering operation of the control portal generates a device control instruction.
  • the device control instruction is used to instruct the virtual device to perform a setting action corresponding to the control portal.
  • the setting action belongs to at least two people who created the virtual device. An action that an intelligent device is allowed to perform; sending the device control instruction to the virtual device, so that at least two intelligent devices that create the virtual device respond to the device control instruction and execute the setting action synchronously.
  • a device control method includes: receiving a device control instruction sent by a user terminal, the device control instruction being used to instruct a virtual device to perform a setting action, and the virtual device is allowed to Create at least two smart devices that perform at least one same action, and the setting action belongs to the actions that at least two smart devices are allowed to perform; send the said virtual device to at least two smart devices that create the virtual device in a multicast transmission manner.
  • the device control instruction causes at least two smart devices that create the virtual device to respond to the device control instruction and execute the setting action synchronously.
  • a device control apparatus includes: a portal display configured to display at least one control portal for a virtual device, the virtual device consists of at least two devices that are allowed to perform at least one same action.
  • Intelligent device creation a control instruction generator configured to generate a device control instruction in response to a triggering operation on the control portal, and the device control instruction is used to instruct the virtual device to perform a setting action corresponding to the control portal,
  • the setting action is an action allowed to be performed by at least two smart devices that create the virtual device;
  • a control instruction sender is configured to send the device control instruction to the virtual device so that at least two smart devices that create the virtual device Each smart device responds to the device control instruction and executes the setting action synchronously.
  • the device further includes: a device display configured to display in the device list The target device is displayed on the page; a device determiner is configured to determine at least one candidate device based on a virtual device creation instruction for the target device; a device creator is configured to display on the device list page The virtual device created by the target device and at least one candidate device.
  • the apparatus further includes: a portal display configured to display a virtual device creation portal corresponding to the target device; and a creation instruction generator configured to respond to a triggering operation on the virtual device creation portal , generate the virtual device creation instruction.
  • the portal display includes: a first page display configured to display device details of the target device in response to a first selection operation on the target device displayed in the device list page. page; a portal display configured to display the virtual device creation portal on the device details page of the target device.
  • the device determiner includes: a device display configured to display at least one recommended device in response to the virtual device creation instruction, the recommended device being the same as the target device that is allowed to perform at least one A smart device in action; a device determiner configured to determine the selected recommended device as the candidate device in response to a second selection operation on at least one of the displayed recommended devices.
  • the portal display includes: a second page display configured to display a device details page of the virtual device in response to a third selection operation on the virtual device displayed in the device list page; A portal display configured to display at least one of the control portals on the device details page of the virtual device.
  • the setting actions corresponding to different control portals have different action types, so that at least two smart devices that create the virtual device respond to the device control instructions and synchronously execute actions supported by themselves.
  • the set action that matches the type, and the action type supported by the smart device itself is used to indicate the actions that the smart device is allowed to perform.
  • a device control device includes: an instruction receiver configured to receive a device control instruction sent by a user terminal, where the device control instruction is used to instruct a virtual device to perform a setting action,
  • the virtual device is created by at least two smart devices that are allowed to perform at least one same action, and the setting action belongs to the action that the at least two smart devices are allowed to perform;
  • the instruction sender is configured to send a message to the created virtual device in a multicast transmission mode.
  • At least two intelligent devices of the virtual device send the device control instruction, so that at least two intelligent devices that create the virtual device respond to the device control instruction and execute the setting action synchronously.
  • the apparatus further includes: a configuration detector configured to perform virtual device configuration detection on at least two smart devices that create the virtual device based on the device control instruction, and determine that the virtual device is completed At least one first device is configured; the instruction sender includes: a multicast transmitter configured to use at least one of the first devices as a multicast member and send the device control instruction to the multicast member.
  • the apparatus further includes: a configuration data receiver configured to receive virtual device configuration data sent by the user terminal, where the virtual device configuration data is configured to indicate that the virtual device is allowed to execute at least At least two smart devices are created with the same action; a configuration requester is configured to request the smart device that created the virtual device to perform virtual device configuration based on the virtual device configuration data.
  • the apparatus further includes: an instruction distributor configured to, for at least one second device that has not completed the virtual device configuration, send the requested information to each of the second devices in a unicast transmission manner.
  • the device control instructions enable each of the second devices to respectively respond to the device control instructions and perform the setting action.
  • the apparatus further includes: a data receiver configured to, for each smart device that creates the virtual device, receive device status data reported by the smart device, where the device status data is the generated by the smart device executing the setting action in response to the device control instruction, and used to indicate the device status after the smart device executes the setting action; an instruction resender configured to detect the device if If the status data reporting times out, the device control instruction is re-sent to at least two smart devices that created the virtual device in a multicast transmission manner.
  • a data receiver configured to, for each smart device that creates the virtual device, receive device status data reported by the smart device, where the device status data is the generated by the smart device executing the setting action in response to the device control instruction, and used to indicate the device status after the smart device executes the setting action
  • an instruction resender configured to detect the device if If the status data reporting times out, the device control instruction is re-sent to at least two smart devices that created the virtual device in a multicast transmission manner.
  • the apparatus further includes: a state synchronizer configured to perform virtual device marking processing on at least two smart devices that create the virtual device based on the device control instruction, so as to perform virtual device marking processing on the at least one smart device.
  • a state synchronizer configured to perform virtual device marking processing on at least two smart devices that create the virtual device based on the device control instruction, so as to perform virtual device marking processing on the at least one smart device.
  • a device control system includes a user terminal, a gateway and an intelligent device, wherein the user terminal is configured to send the device control instruction to a virtual device, and the virtual device is allowed to execute at least At least two smart devices with the same action are created, and the device control instruction is used to instruct the virtual device to perform a setting action, and the setting action is an action allowed to be performed by at least two smart devices that create the virtual device;
  • the gateway is configured to receive the device control instruction sent by the user terminal, and send the device control instruction to at least two smart devices that create the virtual device in a multicast transmission mode; the smart device is configured to The virtual device is created, and if the device control instruction sent by the gateway is received, the setting action is synchronously executed in response to the device control instruction.
  • an electronic device includes at least one processor and at least one memory, wherein program instructions or codes are stored on the memory; the program instructions or codes are loaded and executed by the processor, The electronic device is allowed to implement the device control method as described above.
  • a storage medium has program instructions or codes stored thereon, and the program instructions or codes are loaded and executed by a processor to implement the device control method as described above.
  • an application product includes program instructions or codes.
  • the program instructions or codes are stored in a storage medium.
  • the processor of the electronic device reads the program instructions or codes from the storage medium, loads and executes them.
  • the program instructions or codes 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
  • Figure 2 is a flow chart of a device control method according to an exemplary embodiment
  • Figure 3 is a schematic diagram of a device details page of a virtual device according to an exemplary embodiment
  • Figure 4 is a method flow chart of a virtual device creation process according to an exemplary embodiment
  • Figure 5 is a schematic diagram of a device list page displaying smart devices according to an exemplary embodiment
  • Figure 6 is a flow chart of step 330 shown in the corresponding embodiment of Figure 2 in one embodiment
  • Figure 7 is a schematic diagram of the device details page of the target device and its jump process according to an exemplary embodiment
  • Figure 8 is a schematic diagram of the virtual device creation page of the target device and its jump process according to an exemplary embodiment
  • Figure 9 is a flow chart of step 350 shown in the corresponding embodiment of Figure 2 in one embodiment
  • Figure 10 is a schematic diagram of virtual device addition according to an exemplary embodiment
  • Figure 11 is a schematic diagram illustrating a page jump process regarding a virtual device according to an exemplary embodiment
  • Figure 12 is a sequence interaction diagram of a device control method in an application scenario according to an exemplary embodiment
  • Figure 13 is a schematic diagram showing a gateway sending device control instructions to a first device and a second device respectively according to an exemplary embodiment
  • Figure 14 is a structural block diagram of an equipment control device according to an exemplary embodiment
  • Figure 15 is a structural block diagram of an equipment control device according to an exemplary embodiment
  • Figure 16 is a hardware structure diagram of a terminal according to an exemplary embodiment
  • FIG. 17 is a hardware structure diagram of a gateway according to an exemplary embodiment
  • Figure 18 is a structural block diagram of an electronic device according to an exemplary embodiment.
  • Multicast Also known as multi-target broadcast and multicast, it is a point-to-multipoint network communication method. It is also considered a network communication method for data transmission between a sender and multiple receivers. The sender Only one copy of data is sent, and the data received by multiple receivers are copies of this data, that is, the same data.
  • Unicast It is a point-to-point network communication method. It is mainly used for data transmission between a sender and a receiver. If it needs to be used for the transmission of the same data between a sender and multiple receivers, it can be used with the group The difference is that the sender needs to send multiple copies of the same data.
  • At least one control entry is displayed for the virtual device.
  • the virtual device is created by at least two intelligent devices that are allowed to perform at least one same action.
  • the device control instructions are generated in response to the triggering operation of the control entry.
  • the device The control instruction is used to instruct the virtual device to perform the setting action corresponding to the control entry, and to send the device control instruction to the virtual device, so that at least two smart devices that create the virtual device respond to the device control instruction and execute the setting action synchronously, thereby allowing At least two smart devices that perform at least one same action can create a virtual device.
  • the essence is to control the at least two smart devices to execute the setting action synchronously, preventing the at least two smart devices from performing the setting action.
  • the devices sequentially execute the set actions, thereby reducing the network delay of multiple devices executing actions, thereby effectively solving the problem of large network delays of multiple devices executing actions existing in related technologies.
  • Figure 1 is a schematic diagram of an implementation environment involved in an embodiment of the present disclosure.
  • 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 page displayed by the client It 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, the embodiment of the present disclosure applies to the smart device deployed in the gateway 150.
  • the quantity and type of equipment are 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, a smart fan, a smart speaker, or a human body sensor equipped with a communication module, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, or a human body sensor equipped with a communication module. Sensors, natural gas alarms, 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 implemented through a local area network or a wide area network.
  • 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.
  • background services include but are not limited to device control services and so on.
  • the user can use the user terminal 110 to generate device control instructions for controlling the virtual device to perform setting actions, and pass the gateway 150/server
  • the terminal 170 sends the device control instruction to at least two smart devices 130 that create the virtual device according to the multicast transmission method, so that the at least two smart devices 130 respond to the device control instruction and execute setting actions synchronously, thereby conveniently Realize the user's synchronous control of multiple smart devices 130 .
  • an embodiment of the present disclosure provides a device control method, which method is suitable for electronic devices.
  • the electronic device can be the user terminal 110 in the implementation environment shown in Figure 1.
  • the description is made taking the execution subject of each step of the method as an electronic device as an example, but this is not a specific limitation.
  • the method may include the following steps:
  • Step 210 Display at least one control portal for the virtual device.
  • a virtual device is created from at least two smart devices that are allowed to perform at least one identical action.
  • smart fans and smart lights there are two smart devices deployed in the bathroom: a smart fan and a smart light.
  • the smart fan and smart light When entering the bathroom, the smart fan and smart light are turned on at the same time.
  • the smart fan and smart light When leaving the bathroom, the smart fan and smart light are turned off at the same time. It can be seen from this that here In a smart home scenario, the actions allowed to be performed by smart fans and smart lights remain the same. Therefore, in order to reduce the network delay for smart fans and smart lights to perform actions, smart fans and smart lights can be created as a virtual device so that Smart fans and smart lights can be turned on or off simultaneously.
  • control portal is used to control at least two smart devices that create virtual devices to execute setting actions synchronously.
  • at least one control entry for the virtual device is displayed on the device details page of the virtual device.
  • each control entry corresponds to a setting action, so that at least two smart devices that create the virtual device execute the setting actions corresponding to the control entry synchronously.
  • the setting actions corresponding to different control portals have different action types, so that at least two smart devices that create virtual devices synchronize and execute setting actions that match the action types they support, where, The action types supported by the smart device itself are used to indicate the actions that the smart device is allowed to perform.
  • FIG. 3 shows a schematic diagram of the device details page of the virtual device in one embodiment.
  • the device details page 201 of the virtual device "brightness lamp” at least three control entries are displayed, namely the brightness control entry. 202. Open the control entrance 203. Close the control entrance 204.
  • the brightness control entrance 202 is used to control the two smart lights to adjust the brightness synchronously.
  • the opening control entrance 203 is used to control two switches and two smart lights to perform opening actions synchronously
  • the closing control entrance 204 is used to control two switches and two smart lights to perform closing actions synchronously.
  • the setting action corresponding to the brightness control entrance is the adjusting brightness action
  • the setting action corresponding to the opening control entrance is the opening action
  • the setting action corresponding to the closing control entrance is the closing action;
  • the action types supported by the switch include turning on and off, which means that the actions allowed by the switch include turning on, turning off, etc.
  • the action types supported by the smart light include turning on, turning off, and adjusting brightness, which means The actions allowed by smart lights include turning on, off, adjusting brightness, etc.
  • the setting actions that match the action types supported by the switch itself include actions such as turning on and off
  • the setting actions that match the action types supported by the smart light itself include actions such as turning on, turning off, and adjusting brightness. .
  • Step 230 In response to the triggering operation on the control portal, generate a device control instruction.
  • the device control instruction is used to instruct the virtual device to perform a setting action corresponding to the control entry, and the setting action is an action allowed to be performed by at least two smart devices that create the virtual device.
  • the actions allowed by the four smart devices that create the virtual device include turning on, turning off, and adjusting brightness.
  • the setting actions corresponding to the control entrance include turning on, turning off, and adjusting brightness. and other actions. Therefore, if it responds to the triggering operation of opening the control entrance, a device control instruction for controlling the virtual device to perform the opening action is generated; if it responds to the triggering operation of closing the control entrance, a device control instruction for controlling the virtual device is generated.
  • a device control instruction for performing a shutdown action; if in response to a triggering operation on the brightness control entry, a device control instruction for controlling the virtual device to perform a brightness adjustment action is generated.
  • Step 250 Send device control instructions to the virtual device, so that at least two smart devices that create the virtual device respond to the device control instructions and execute setting actions synchronously.
  • the device control instructions are implemented in the user terminal 110, gateway 150, smart device
  • the process of transmission between 130 is explained as follows:
  • the gateway 150 As far as the gateway 150 is concerned, after the user terminal 110 sends the device control instruction to the virtual device, it can receive the device control instruction, and then send the device control instruction to at least two smart devices 130 that create the virtual device in a multicast transmission manner. instruction. Therefore, for the smart device 130 that creates the virtual device, if it receives the device control instruction sent by the gateway 150, it will respond to the device control instruction and execute the setting action synchronously.
  • the two switches will be opened synchronously. action, and at the same time, the two smart lights perform the turning on action synchronously; if the device control instruction sent by the gateway 150 is received to control the virtual device to perform the turning off action, the two switches perform the turning off action synchronously, and the two smart lights perform the turning off action synchronously. ; If the device control instruction sent by the gateway 150 for controlling the virtual device to perform the brightness adjustment action is received, the two smart lights will synchronize the brightness adjustment action. It should be noted here that since the action types supported by the switch itself include opening and closing, the switch only performs setting actions that match the action types it supports, that is, actions such as opening and closing.
  • At least two smart devices that are allowed to perform at least one same action can create a virtual device, and by controlling the virtual device to perform the set action, in essence, the at least two smart devices are controlled.
  • the smart devices execute the setting action synchronously, preventing the at least two smart devices from sequentially executing the setting action, thereby reducing the network delay of multiple devices executing the action, thereby effectively solving the multi-device execution problem existing in related technologies.
  • the problem of large action network delay is achieved, that is, at least two smart devices that are allowed to perform at least one same action can create a virtual device, and by controlling the virtual device to perform the set action, in essence, the at least two smart devices are controlled.
  • the smart devices execute the setting action synchronously, preventing the at least two smart devices from sequentially executing the setting action, thereby reducing the network delay of multiple devices executing the action, thereby effectively solving the multi-device execution problem existing in related technologies.
  • the problem of large action network delay is a problem of large action network delay.
  • Figure 4 shows a method flow chart of the virtual device creation process in one embodiment. As shown in Figure 4, the method may include the following steps:
  • Step 310 Display the target device on the device list page.
  • the device list page is used to display multiple smart devices deployed on the gateway, including but not limited to target devices. What is explained here is that a smart device is uniquely represented by a device identifier. For example, smart device A is uniquely represented by a device identifier A, so that by displaying the device identifier A on the device list page, the smart device A deployed on the gateway is displayed on the device. List page.
  • Figure 5(a) shows a schematic diagram of smart device display in one embodiment.
  • device identification A and device identification B are displayed, which respectively represent the devices deployed on the gateway.
  • Smart device A and smart device B where smart device A is the target device.
  • Step 330 Determine at least one candidate device based on the virtual device creation instruction for the target device.
  • the candidate device refers to a smart device that is allowed to perform at least one action that is the same as the action performed by the target device.
  • the candidate device is randomly selected by the user. Specifically, based on the virtual device creation instruction for the target device, the candidate device is prompted to select the candidate device from multiple smart devices displayed on the device list page, and in response to the selection of the multiple smart devices, The selection operation of at least one smart device in the device uses the selected smart device as a candidate device.
  • candidate devices for creating virtual devices together with the target device can be randomly selected by the user to improve virtual device creation. The flexibility of construction will help improve the flexibility of equipment control.
  • the candidate device is recommended by the gateway/server.
  • a request is made to the gateway/server to obtain device recommendation data, where the device recommendation data is used to indicate at least one Recommended device refers to a smart device that is allowed to perform at least one action that is the same as the action performed by the target device; based on the device recommendation data returned by the gateway/server, at least one candidate device is determined.
  • the method of determining at least one candidate device based on the device recommendation data returned by the gateway/server may be randomly selected by the user terminal or randomly selected by the user, which is not limited here.
  • candidate devices for creating a virtual device together with the target device can be recommended by the gateway/server based on historical scene data to ensure the accuracy of candidate device determination and improve the accuracy of virtual device creation. It is helpful to improve the success rate of equipment control.
  • the gateway/server can determine the execution based on historical scene data.
  • the smart device whose actions are the same as those performed by the smart fan is a smart lamp.
  • the smart lamp is then used as a recommended device, and device recommendation data is generated and returned to the user terminal.
  • the device recommendation data at least includes: a device identifier of at least one recommended device.
  • a virtual device can be created from the target device and the at least one candidate device and displayed on the device list page, that is, step 350 is performed.
  • Step 350 Display the virtual device created by the target device and at least one candidate device on the device list page.
  • automatically creating a virtual device based on the target device and at least one candidate device includes: randomly generating a device identifier for the virtual device to display the virtual device in a device list page.
  • the user experience is greatly improved, for example, the convenience of user operations is improved.
  • a virtual device is created based on the target device and at least one candidate device, triggered by an operation.
  • the operation includes at least one of the following: a first confirmation operation, used to confirm that the virtual device is created by the target device and at least one candidate device; an input operation, used to enter a device identification for the virtual device; a selection operation, used to provide the virtual device with Select the deployment location of the device.
  • the deployment location includes but is not limited to: master bedroom, guest bedroom, bathroom, dining room, living room, study, storage room, cloakroom, balcony, kitchen, corridor, etc.
  • Second confirmation operation is used for virtual equipment Confirm the creation is complete.
  • FIG. 5(b) shows a schematic diagram of virtual device display in one embodiment.
  • multiple smart devices are displayed, specifically including: smart devices represented by device identification A.
  • Smart device B represented by device identifier B
  • virtual device C represented by device identifier C.
  • the creation of a virtual device is achieved, that is, multiple smart devices that are allowed to perform at least one same action are created as a virtual device, and by controlling the virtual device to perform the set action, the essence is to control multiple smart devices
  • the setting action is executed synchronously to prevent multiple smart devices from sequentially executing the setting action, thereby reducing the network delay of multiple devices executing actions, thereby effectively solving the problem of long network delays of multiple devices executing actions in related technologies. Big question.
  • step 330 may include the following steps:
  • Step 331 In response to the first selection operation on the target device displayed on the device list page, display the device details page of the target device.
  • Step 332 Display the virtual device creation entry on the device details page of the target device.
  • the device details page of the target device may also display at least one of the following device details of the target device: the device status of the target device; a control portal for controlling the target device to perform setting actions. .
  • Figure 7 shows a schematic diagram of the device details page of the target device and its jump process in one embodiment.
  • the device list page 301 if the user clicks the device identification A, it means that the user selects the smart device 302 as the target device. At this time, the device list page 301 jumps to the device details page 401 of the smart device 302. .
  • the user's click operation is the first selection operation on the target device.
  • the specific behavior of the first selection operation may also be different depending on the input components configured on the electronic device (such as the touch layer, mouse, keyboard, etc. covered on the display screen).
  • the first selection operation may be a gesture operation such as clicking, sliding, etc.; while if the electronic device is a laptop equipped with a mouse, the first selection operation may be dragging, clicking, etc. , double-click and other mechanical operations, this embodiment is not limited to this.
  • the device details page 401 of the smart device 302 displays at least: the device status 402 of the smart device 302 , the control entry 403 of the smart device 302 , and the virtual device creation entry 404 of the smart device 302 .
  • the device status 402 is used to represent the current device status of the smart device 302;
  • the control entry 403 is used to instruct the smart device 302 to perform setting actions;
  • the virtual device creation entry 404 is used to create a virtual device.
  • Step 333 In response to the triggering operation on the virtual device creation entry, generate a virtual device creation instruction for the target device.
  • Step 334 Based on the virtual device creation instruction for the target device, request the server to obtain device recommendation data.
  • the device recommendation data is used to indicate at least one recommended device, which refers to a smart device that is allowed to perform at least one same action as the target device.
  • Step 335 In response to the virtual device creation instruction, display the virtual device creation page of the target device.
  • Step 336 Display the target device and/or at least one recommended device indicated by the device recommendation data on the virtual device creation page of the target device.
  • at least one recommended device is displayed on the virtual device creation page of the target device.
  • Figure 8 shows a schematic diagram of the virtual device creation page of the target device and its jump process in one embodiment.
  • the device recommendation data at least includes: a device identifier of at least one recommended device.
  • device identifier A represents the target device 302
  • device identifier D represents the recommended device 503
  • device identifier E represents the recommended device 504
  • device identifier F represents the recommended device 505 .
  • the user's click operation is the trigger operation for creating an entrance to the virtual device.
  • At least one recommended device indicated by the device recommendation data may still be displayed in the device details page of the target device, for example, displayed in the blank space below the virtual device creation entry. This does not constitute a specific limitation.
  • Step 337 In response to the second selection operation on the displayed at least one recommended device, determine the selected recommended device as a candidate device.
  • the user clicks on the device identification E it means that the user selects the recommended device 504 as a candidate device.
  • the user's click operation is a second selection operation on at least one of the displayed recommended devices.
  • the determination of candidate devices is achieved, ensuring that candidate devices for jointly creating virtual devices with the target device are not only recommended devices recommended by the gateway/server This ensures the accuracy of candidate device determination, improves the accuracy of virtual device creation, and satisfies the user's selection, thereby improving the flexibility of virtual device creation, which in turn helps improve the success rate and flexibility of device control. , which ultimately helps ensure the stability of equipment control.
  • step 350 may include the following steps:
  • Step 351 Generate a virtual device adding instruction triggered by the operation.
  • the operation includes at least one of the following: a first confirmation operation, used to confirm that the virtual device is created by the target device and at least one candidate device; an input operation, used to input a device identifier for the virtual device; and a third selection operation, using The second confirmation operation is used to select a deployment location for the virtual device; the second confirmation operation is used to confirm the completion of creation of the virtual device.
  • Figure 10 shows a schematic diagram of virtual device addition in one embodiment.
  • the user clicks the device identification E it means that the user selects the recommended device 504 as a candidate device.
  • the user clicks the "Next" control 502 it means that the user confirms the target of the virtual device represented by the device identification A.
  • Device 302 and candidate device 504 are created, that is, the user's confirmation operation is regarded as the first confirmation operation.
  • a virtual device adding instruction is generated to display the virtual device in the device list page.
  • the device identification and deployment location of the virtual device are randomly generated by the electronic device, which avoids excessive manual operations by the user, which is conducive to improving the user's operational convenience, and thus is conducive to improving the User experience.
  • in response to the first confirmation operation jump from the virtual device creation page to the virtual device addition page to generate a virtual device addition instruction based on the operation triggered in the virtual device addition page.
  • the input control 602 you can enter "brightness light" for the virtual device as the device identification of the virtual device, and the user's input operation is regarded as an input operation; in the selection control 603, you can select The "default room” (such as the system's default living room) is the deployment location of the virtual device, and the user's selection operation is regarded as the third selection operation; if the user clicks the "Finish” control 604, it means that the user confirms that the virtual device has been created, that is The user's click operation is regarded as the second confirmation operation, and based on at least one of the above operations, a virtual device adding instruction can be generated.
  • Step 353 In response to the virtual device addition instruction, display the virtual device on the device list page.
  • Figure 11 shows a schematic diagram of the page jump process of a virtual device in one embodiment.
  • the virtual device 305 represented by the device identification "brightness light” is displayed on the device list page 301.
  • At least one control entry for the virtual device can be further displayed.
  • at least one control entry for the virtual device is displayed on the device list page.
  • in the device details page of the virtual device at least one control entry for the virtual device is displayed.
  • the virtual device is displayed.
  • Device details page display at least one control entry on the device details page of the virtual device.
  • the device details page of the virtual device may display at least one of the following device details of the virtual device: the device status of the virtual device; the target device for creating the virtual device and at least one candidate device; the virtual device creation entry , used to create virtual devices; the control portal is used to control at least two smart devices that create virtual devices to execute setting actions synchronously.
  • the device identification "brightness light” represents the virtual device 305, that is, the virtual device "brightness light”.
  • the device details page 701 of the virtual device "brightness light” In the device details page 701, the following are displayed: brightness control entry 702, open control entry 703, and close control entry 704 .
  • the device details page 701 of the virtual device "brightness light” also displays the smart device that created the virtual device "brightness light", specifically including: a smart light 302 represented by device identifier A, and a smart switch 504 represented by device identifier E. .
  • the creation of virtual devices is realized based on operation triggers, which not only facilitates users to configure the device identification of virtual devices, but also facilitates users to configure the deployment location of virtual devices, enriches the types of virtual devices, and greatly improves the efficiency of virtual devices. It increases the flexibility of creating virtual devices and helps improve the user experience, for example, increasing the rate of human-computer interaction.
  • the process of realizing device control between the user terminal 110, the gateway 150, and the smart device 130 may include the following steps:
  • Step 801 The user terminal 110 determines at least one candidate device based on a virtual device creation instruction for the target device, and creates a virtual device from the target device and the at least one candidate device.
  • Step 802 Send the virtual device configuration data to the gateway 150.
  • Step 803 The gateway 150 generates a virtual device configuration instruction based on the virtual device configuration data and sends it to the smart device 130.
  • Step 804 The smart device 130 responds to the virtual device configuration instruction and performs virtual device configuration.
  • the virtual device configuration data is used to indicate that the virtual device is created by the target device and at least one candidate device.
  • the virtual device configuration data at least includes: a device identifier of the virtual device, a device identifier of the target device, and a device identifier of at least one candidate device.
  • the target device and at least one candidate device for creating the virtual device can be determined, and then a virtual device configuration instruction can be generated and sent to the corresponding smart device 130, that is, the target device and at least one candidate device.
  • the virtual device configuration instruction at least includes: a device identifier of the virtual device.
  • the smart device 130 after receiving the virtual device configuration instruction, it can perform virtual device configuration in response to the virtual device configuration instruction.
  • the virtual device configuration refers to storing the device identification of the virtual device.
  • smart device B stores the device identification A of virtual device A. Then smart device B knows that it participated in the creation of virtual device A. When it subsequently controls virtual device A to perform setting actions, smart device B will interact with other devices. The smart devices that participate in the creation of virtual device A execute this setting action synchronously.
  • the smart device 130 can be controlled by controlling the virtual device, which specifically includes the following steps:
  • Step 805 The gateway 150 receives the device control instruction sent by the user terminal 110.
  • the device control instruction at least includes: a device identifier of the virtual device and an action identifier of the set action.
  • Step 806 Based on the device control instruction, perform virtual device configuration detection on the target device for creating the virtual device and at least one candidate device, and determine at least one first device that completes the virtual device configuration.
  • virtual device configuration detection refers to determining whether the device identification of the virtual device is stored in the smart device.
  • gateway 150 performs virtual device configuration detection on smart device B, including: gateway 150 sending a virtual device configuration detection request to smart device B; smart device B responds to the virtual device configuration detection request and returns a corresponding request response to gateway 150, The request response carries the device identifier A of the virtual device A.
  • the gateway 150 can determine that the smart device B completes the virtual device configuration of the virtual device A.
  • the smart device 130 that has completed the virtual device configuration is used as the first device, and step 807 is performed.
  • the transmission method is to send device control instructions to each second device respectively, so that each second device performs setting actions in response to the device control instructions.
  • Step 807 Use at least one first device as a multicast member, and send device control instructions to the multicast members, so that each multicast member can execute setting actions synchronously in response to the device control instructions.
  • Figure 13 shows a schematic diagram of the gateway sending device control instructions to the first device and the second device respectively.
  • the transmission mode is essentially multicast.
  • the gateway 150 successively sends two device control instructions (instruction 2 and instruction 3) to each second device according to the unicast transmission mode, so that the two second devices receive the virtual control instructions in the order in which they are received. Perform the setting actions in sequence.
  • Step 808 The gateway 150 receives the device status data reported by the multicast members.
  • the device status data is generated by multicast members performing setting actions, and is used to indicate the device status after multicast members perform setting actions. For example, there are smart fans and smart lights deployed in the bathroom. If the smart fan performs the shutdown action, the device status data is used to indicate that the smart fan's device status is off. Or, if the smart light performs the turn-on action, the device status data is used. Indicates that the device status of the smart light is on.
  • Step 809 Check whether reporting of device status data has timed out.
  • step 210 is executed. On the contrary, if it is detected that the device status data reported by each multicast member has not timed out, it is confirmed that all multicast members have performed the set actions synchronously.
  • Step 810 Resend the device control instructions to the multicast members.
  • the device control instructions are re-sent to all multicast members. In one possible implementation, the device control instructions are re-sent to the multicast members whose upward reporting timeout occurs until all multicast members are confirmed to return device status data on time. That is to say, it is determined that all multicast members have executed the set actions synchronously. In this way, it can not only maximize the success rate of action execution, thereby ensuring the success rate of device control, but also fully guarantee the success rate of device control. stability.
  • multicast member may have performed setting actions and reported device status data has not timed out, then the multicast member can ignore the re-received device control instructions, and for For multicast members that have not performed the setting action, or whose reporting of device status data has timed out, they need to respond to the re-received device control command and re-execute the setting action.
  • the gateway still needs to send multiple instructions in sequence to control multiple smart devices one by one.
  • the gateway only needs to send a single instruction to synchronously control multiple smart devices. For example, control multiple smart devices that create virtual devices to perform opening actions simultaneously, or control multiple smart devices that create virtual devices. Smart devices synchronously execute brightness adjustment actions, etc., thereby avoiding the need for multiple smart devices to perform setting actions in sequence according to the order in which instructions are received. The responsiveness to instructions and the success rate of multi-device control are greatly improved.
  • the process of implementing device control between the user terminal 110, the gateway 150, and the smart device 130 may also include the following steps after step 210:
  • the smart fans and smart lights perform the same action. For example, when entering the bathroom, the smart fan and smart lights are turned on at the same time. When leaving the bathroom, the smart fan and smart lights are turned on. will be closed at the same time.
  • the inventor realized that the above two smart devices are not limited to being controlled by the client associated with the smart device, but can also be controlled by the user's manual operation, or by other smart devices such as smart speakers. This is It may cause the actions performed by the above two smart devices to be out of sync, thus affecting the control of the two smart devices based on virtual devices. For example, the device status of the smart fan is on and the device status of the smart light is off. If the user expects to control the two smart devices by If the virtual devices created by smart fans and smart lights are turned off, it may not be able to meet user needs.
  • synchronization of setting actions performed on multiple smart devices that create virtual devices is implemented.
  • virtual device marking processing is performed on multiple smart devices that create virtual devices.
  • the virtual device marking process is essentially to record the virtual device created by the target device and at least one candidate device in the gateway. It can also be considered that in the gateway, the target device and at least one candidate device will be "bound" into one
  • the virtual device enables the gateway to control the target device and at least one candidate device to always perform actions and report device status data synchronously.
  • virtual device A is created from smart fans and smart lights.
  • the client associated with the smart device it can send a device control instruction to the gateway to instruct virtual device A to perform the turning on action, so that the gateway controls the smart fan and the smart light to perform the turning on action synchronously, which ensures that the smart fan and The smart lights are turned on at the same time.
  • the gateway determines the smart fan and the smart light according to the user's manual operation.
  • the device status data reported synchronously by the lights determines that the device status of the smart fan is on and the device status of the smart light is off, thereby knowing that the smart fan is on and the smart light is off.
  • the gateway will send an instruction to the smart light.
  • the smart light executes the device control instruction of the turning on action to ensure that the smart light and the smart fan can maintain the same device status, that is, to ensure that the smart light and the smart fan execute the turning on action synchronously.
  • the device control process can also be implemented between the user terminal 110, the server 170, the gateway 150, and the smart device 130.
  • virtual device configuration data and device control instructions are both It is forwarded by the server 170 to the gateway 150, as shown by the dotted line in Figure 13. This does not constitute a specific limitation.
  • action execution synchronization through the gateway level fully ensures that multiple smart devices that create virtual devices execute actions simultaneously, which not only effectively enhances the stability of device control, but also helps improve the execution of actions by multiple devices.
  • the speediness enables users to control multiple devices in a unified manner and reduces the network delay in executing actions on multiple devices, which in turn helps improve the user experience.
  • an embodiment of the present disclosure provides an equipment control device 900, including but not limited to: an entrance display module 910, a control instruction generation module 930, and a control instruction sending module 950.
  • the portal display module 910 is configured to display at least one control portal for a virtual device created by at least two smart devices that are allowed to perform at least one same action;
  • the control instruction generation module 930 is configured to generate a device control instruction in response to a triggering operation on the control entry.
  • the device control instruction is used to instruct the virtual device to perform a setting action corresponding to the control entry.
  • the specified action is an action allowed to be performed by at least two smart devices that create the virtual device;
  • the control instruction sending module 950 is configured to send the device control instruction to the virtual device, so that at least two smart devices that create the virtual device respond to the device control instruction and execute the setting action synchronously.
  • the device further includes: a device display configured to display the target in the device list page The device; the device determiner is configured to determine at least one candidate device based on a virtual device creation instruction for the target device; the device creator is configured to display the virtual device created by the target device and the at least one candidate device in the device list page.
  • the apparatus further includes: a portal display configured to display a virtual device creation portal corresponding to the target device; a creation instruction generator configured to generate a virtual device creation instruction in response to a triggering operation on the virtual device creation portal .
  • the portal display includes: a first page display configured to display a device details page of the target device in response to a first selection operation on the target device displayed in the device list page; the portal display configured to display the device details page of the target device.
  • the virtual device creation entry is displayed on the device details page of the target device.
  • the device determiner includes: a device display configured to display at least one recommended device in response to the virtual device creation instruction, where the recommended device is a smart device that is allowed to perform at least one same action as the target device; the device determiner , configured to determine the selected recommended device as a candidate device in response to a second selection operation on the displayed at least one recommended device.
  • the portal display includes: a second page display configured to display a device details page of the virtual device in response to a third selection operation on the virtual device displayed in the device list page; the portal display configured to display At least one control entry is displayed on the device details page of the virtual device.
  • the setting actions corresponding to different control portals have different action types, so that at least two smart devices that create virtual devices respond to device control instructions and synchronously execute actions that match the action types they support.
  • Set actions The action types supported by the smart device itself are used to indicate the actions that the smart device is allowed to perform.
  • an embodiment of the present disclosure provides a device control device 1000, including but not limited to: an instruction receiving module 1010 and an instruction sending module 1050.
  • the instruction receiving module 1010 is configured to receive a device control instruction sent by the user terminal.
  • the device control instruction is used to instruct the virtual device to perform a setting action.
  • the virtual device is created by at least two smart devices that are allowed to perform at least one same action.
  • Setting The action belongs to actions that at least two smart devices are allowed to perform;
  • the instruction sending module 1050 is configured to send device control instructions to at least two intelligent devices creating virtual devices in a multicast transmission manner, so that at least two intelligent devices creating virtual devices respond to the device control instructions and execute setting actions synchronously.
  • the apparatus further includes: a configuration detector configured to perform virtual device configuration detection on at least two smart devices that create the virtual device based on the device control instruction, and determine at least one first device that completes the virtual device configuration.
  • the instruction sender includes: a multicast transmitter configured to use at least one first device as a multicast member and send device control instructions to the multicast members.
  • the apparatus further includes: a configuration data receiver configured to receive virtual device configuration data sent by the user terminal, the virtual device configuration data being configured to indicate that the virtual device is configured by at least two smart devices that are allowed to perform at least one same action.
  • Device creation configured to request the smart device that creates the virtual device to configure the virtual device based on the virtual device configuration data.
  • the apparatus further includes: an instruction distributor configured to send a device control instruction to each second device in a unicast transmission manner for at least one second device that has not completed the virtual device configuration, so that Each second device respectively responds to the device control command and performs a setting action.
  • the apparatus further includes: a data receiver configured to, for each smart device that creates a virtual device, receive device status data reported by the smart device, where the device status data is the execution of the device by the smart device in response to the device control instruction. Generated by a set action, it is used to instruct the smart device to perform the set action on the device status; the command repeater is configured to, if it detects that the device status data reporting timeout is detected, it will send the device status to at least two parties that created the virtual device in accordance with the multicast transmission method. The smart device resends the device control instructions.
  • the apparatus further includes: a state synchronizer configured to perform virtual device marking processing on at least two smart devices that create the virtual device based on the device control instruction, so that when the device states of the at least two smart devices are different, At the same time, control at least two smart devices to maintain the same device state.
  • a state synchronizer configured to perform virtual device marking processing on at least two smart devices that create the virtual device based on the device control instruction, so that when the device states of the at least two smart devices are different, At the same time, control at least two smart devices to maintain the same device state.
  • FIG. 16 is a schematic structural diagram of a terminal according to an exemplary embodiment. This terminal is suitable for The user terminal 110 used in the implementation environment shown in FIG. 1 can be used as the execution subject of the device display method.
  • this terminal 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 terminal is also not to be construed as being dependent on or required to have one or more components of the exemplary terminal 1100 shown in FIG. 16 .
  • the terminal 1100 includes a memory 101, a storage controller 103, one or more (only one is shown in Figure 16) processors 105, a peripheral interface 107, a radio frequency module 109, a positioning module 111, and a camera module 113 , audio module 115, touch screen 117 and key module 119. These components communicate with each other via one or more communication buses/signal lines 121.
  • the memory 101 can be used to store computer programs and modules, such as the computer programs and modules corresponding to the device display method and device in the exemplary embodiment of the present disclosure.
  • the processor 105 executes various operations by running the computer program stored in the memory 101. functions and data processing, that is, completing the device display method.
  • the memory 101 can be a random access memory, such as a high-speed random access memory, a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other solid-state memories.
  • the storage method can be temporary storage or permanent storage.
  • the peripheral interface 107 may include at least one wired or wireless network interface, at least one serial-to-parallel conversion interface, at least one input/output interface, at least one USB interface, etc., for coupling various external input/output devices to the memory 101 and the processor. 105 to achieve communication with various external input/output devices.
  • the radio frequency module 109 is used to send and receive electromagnetic waves, realize mutual conversion of electromagnetic waves and electrical signals, and thereby communicate with other devices through the communication network.
  • Communication networks include cellular telephone networks, wireless local area networks or metropolitan area networks, and the above communication networks can use various communication standards, protocols and technologies.
  • the positioning module 111 is used to obtain the current geographical location of the terminal 1100 .
  • Examples of the positioning module 111 include, but are not limited to, Global Positioning System (GPS), positioning technology based on wireless local area network or mobile communication network.
  • GPS Global Positioning System
  • the camera module 113 belongs to the camera and is used for taking pictures or videos.
  • the captured pictures or videos can be stored in the memory 101 and can also be sent to the host computer through the radio frequency module 109 .
  • the audio module 115 provides an audio interface to the user, which may include one or more microphone interfaces, one or more speaker interfaces, and one or more headphone interfaces. Interact audio data with other devices through the audio interface.
  • the audio data can be stored in the memory 101 and can also be sent through the radio frequency module 109.
  • the touch screen 117 provides an input and output interface between the terminal 1100 and the user. Specifically, the user can perform input operations through the touch screen 117, such as click, touch, slide and other gesture operations, so that the terminal 1100 responds to the input operation.
  • the terminal 1100 displays the output content formed in any form or combination of text, pictures, or videos to the user through the touch screen 117 .
  • the key module 119 includes at least one key to provide an interface for the user to input to the terminal 1100.
  • the user can cause the terminal 1100 to perform different functions by pressing different keys.
  • the sound adjustment button allows the user to adjust the volume of the sound played by the terminal 1100 .
  • terminal 1100 further includes one or more sensors (not shown in Figure 16), which Or multiple sensors include but are not limited to: acceleration sensor, gyroscope sensor, pressure sensor, fingerprint sensor, optical sensor, proximity sensor, etc.
  • sensors include but are not limited to: acceleration sensor, gyroscope sensor, pressure sensor, fingerprint sensor, optical sensor, proximity sensor, etc.
  • FIG. 16 is only illustrative, and the terminal 1100 may also include more or less components than those shown in FIG. 16 , or have different components than those shown in FIG. 16 .
  • Each component shown in Figure 16 can be implemented using hardware, software, or a combination thereof.
  • FIG 17 shows a schematic structural diagram of a gateway according to an exemplary embodiment.
  • This gateway is suitable for the gateway 150 in the implementation environment shown in Figure 1 and can be used as the execution subject of the device control method.
  • this gateway 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 gateway is also not to be construed as being dependent on or having to have one or more components of the exemplary gateway 2000 shown in FIG. 17 .
  • the hardware structure of the gateway 2000 may vary greatly due to different configurations or performance. As shown in Figure 17, the gateway 2000 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU, Central Processing Unit). Processing Units)270.
  • the power supply 210 is used to provide operating voltage for each hardware device on the gateway 2000 .
  • the interface 230 includes at least one wired or wireless network interface for interacting with external devices. For example, the interaction between the user terminal 110 and the gateway 150 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 FIG. 17 , which is not intended 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 gateway 2000, so as to realize the operation and processing of the massive data 255 in the memory 250 by the central processor 270. It can be Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the application program 253 is a program instruction or code that performs at least one specific job based on the operating system 251. It may include at least one module (not shown in Figure 17), and each module may include program instructions for the gateway 2000. or code.
  • the device control device can be regarded as the application program 253 deployed on the gateway 2000.
  • Data 255 can be photos, pictures, etc. stored in a disk, or can also be device control instructions, device status data, 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 program instructions or codes stored in the memory 250, thereby realizing 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 program instructions or codes stored in the memory 250 .
  • present application can also be implemented through hardware circuits or hardware circuits combined with software. Therefore, implementation of the present application is not limited to any specific hardware circuit, software, or combination of the two.
  • an embodiment of the present disclosure provides an electronic device, which is suitable for the user terminal 110, gateway 150, etc. in the implementation environment shown in Figure 1.
  • the electronic device 4000 includes at least one processor 4001 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 18, 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 application.
  • 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.
  • Program instructions or codes are stored in the memory 4003, and the processor 4001 can read the program instructions or codes stored in the memory 4003 through the communication bus 4002.
  • embodiments of the present application provide a storage medium on which program instructions or codes are stored, and the program instructions or codes are loaded and executed by the processor to implement the device control method as described above.
  • the application product includes program instructions or codes.
  • the program instructions or codes are stored in a storage medium.
  • the processor of the electronic device reads the program instructions or codes from the storage medium, loads and executes them.
  • the program instructions or codes 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.

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)
  • Computer And Data Communications (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种设备控制方法、装置、电子设备及存储介质,涉及物联网技术领域。其中,设备控制方法包括:显示针对虚拟设备的至少一控制入口,虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建;响应于对控制入口的触发操作,生成设备控制指令,设备控制指令用于指示虚拟设备执行控制入口对应的设定动作,设定动作属于创建虚拟设备的至少两个智能设备允许执行的动作;向虚拟设备发送设备控制指令,使得创建虚拟设备的至少两个智能设备响应设备控制指令,而同步执行设定动作。解决了相关技术中存在的多设备执行动作网络延时较大的问题。

Description

设备控制方法、装置、电子设备及存储介质
本公开要求2022年4月21日递交、发明名称为“设备控制方法、装置、电子设备及存储介质”的中国专利申请CN 202210423101.4的优先权,在此通过引用将其全部内容合并于此。
技术领域
本公开涉及物联网技术领域,具体而言,本公开涉及一种设备控制方法、装置、电子设备及存储介质。
背景技术
随着物联网技术的飞速发展,智能设备的应用逐渐广泛,为了提高用户对智能设备的操作便捷性,不仅可以设置设备联动,例如,若感测到客厅有人,则自动开灯,还可以设置各种模式,例如,当用户离家,通过离家模式,自动关闭空调、灯、插座开关等等。
然而,目前针对多个智能设备的控制,例如离家模式中的多个智能设备,往往需要基于多条指令逐一控制,也可以认为是,多个智能设备需要顺序执行对应的设定动作,由此产生了较大的网络延时,容易影响用户体验。
由上可知,如何减小多设备执行动作的网络延时尚待解决。
发明内容
本公开各实施例提供了一种设备控制方法、装置、系统、电子设备及存储介质,可以解决相关技术中存在的多设备执行动作网络延时较大的问题。所述技术方案如下:
根据本公开实施例的一个方面,一种设备控制方法,包括:显示针对虚拟设备的至少一控制入口,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建;响应于对所述控制入口的触发操作,生成设备控制指令,所述设备控制指令用于指示所述虚拟设备执行所述控制入口对应的设定动作,所述设定动作属于创建所述虚拟设备的至少两个智能设备允许执行的动作;向所述虚拟设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
根据本公开实施例的一个方面,一种设备控制方法,所述方法包括:接收用户终端发送的设备控制指令,所述设备控制指令用于指示虚拟设备执行设定动作,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建,所述设定动作属于至少两个智能设备允许执行的动作;按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
根据本公开实施例的一个方面,一种设备控制装置,包括:入口显示器,配置为显示针对虚拟设备的至少一控制入口,所述虚拟设备由允许执行至少一个相同动作的至少两个 智能设备创建;控制指令生成器,配置为响应于对所述控制入口的触发操作,生成设备控制指令,所述设备控制指令用于指示所述虚拟设备执行所述控制入口对应的设定动作,所述设定动作属于创建所述虚拟设备的至少两个智能设备允许执行的动作;控制指令发送器,配置为向所述虚拟设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
在一个示例性实施例中,创建所述虚拟设备的至少两个智能设备中,其中一个智能设备作为目标设备,其余智能设备作为候选设备;所述装置还包括:设备显示器,配置为在设备列表页面中显示所述目标设备;设备确定器,配置为基于对所述目标设备的虚拟设备创建指令,确定至少一个所述候选设备;设备创建器,配置为在所述设备列表页面中,显示由所述目标设备和至少一个所述候选设备创建的所述虚拟设备。
在一个示例性实施例中,所述装置还包括:入口显示器,配置为显示所述目标设备对应的虚拟设备创建入口;创建指令生成器,配置为响应于对所述虚拟设备创建入口的触发操作,生成所述虚拟设备创建指令。
在一个示例性实施例中,所述入口显示器包括:第一页面显示器,配置为响应于对所述设备列表页面中显示的所述目标设备的第一选择操作,显示所述目标设备的设备详情页面;入口显示器,配置为将所述虚拟设备创建入口显示在所述目标设备的设备详情页面。
在一个示例性实施例中,所述设备确定器包括:设备显示器,配置为响应于所述虚拟设备创建指令,显示至少一个推荐设备,所述推荐设备为与所述目标设备允许执行至少一个相同动作的智能设备;设备确定器,配置为响应于对显示的至少一个所述推荐设备的第二选择操作,确定选中的所述推荐设备,作为所述候选设备。
在一个示例性实施例中,所述入口显示器包括:第二页面显示器,配置为响应于对设备列表页面中显示的所述虚拟设备的第三选择操作,显示所述虚拟设备的设备详情页面;入口显示器,配置为将至少一所述控制入口显示在所述虚拟设备的设备详情页面。
在一个示例性实施例中,不同控制入口对应的设定动作具有不同的动作类型,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行与自身所支持的动作类型相匹配的所述设定动作,所述智能设备自身所支持的动作类型用于指示所述智能设备允许执行的动作。
根据本公开实施例的一个方面,一种设备控制装置,所述装置包括:指令接收器,配置为接收用户终端发送的设备控制指令,所述设备控制指令用于指示虚拟设备执行设定动作,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建,所述设定动作属于至少两个智能设备允许执行的动作;指令发送器,配置为按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
在一个示例性实施例中,所述装置还包括:配置检测器,配置为基于所述设备控制指令,对创建所述虚拟设备的至少两个智能设备进行虚拟设备配置检测,确定完成虚拟设备 配置的至少一个第一设备;所述指令发送器包括:组播传输器,配置为将至少一个所述第一设备作为组播成员,向所述组播成员发送所述设备控制指令。
在一个示例性实施例中,所述装置还包括:配置数据接收器,配置为接收所述用户终端发送的虚拟设备配置数据,所述虚拟设备配置数据配置为指示所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建;配置请求器,配置为基于所述虚拟设备配置数据,请求创建所述虚拟设备的智能设备进行虚拟设备配置。
在一个示例性实施例中,所述装置还包括:指令分发器,配置为针对未完成虚拟设备配置的至少一个第二设备,按照单播传输方式,分别向每一个所述第二设备发送所述设备控制指令,使得各所述第二设备分别响应所述设备控制指令,而执行所述设定动作。
在一个示例性实施例中,所述装置还包括:数据接收器,配置为针对创建所述虚拟设备的每一个智能设备,接收所述智能设备上报的设备状态数据,所述设备状态数据是所述智能设备响应所述设备控制指令而执行所述设定动作生成的,用于指示所述智能设备执行所述设定动作后的设备状态;指令重发器,配置为若检测到所述设备状态数据上报超时,则按照组播传输方式,向创建所述虚拟设备的至少两个智能设备重新发送所述设备控制指令。
在一个示例性实施例中,所述装置还包括:状态同步器,配置为基于所述设备控制指令,对创建所述虚拟设备的至少两个智能设备进行虚拟设备标记处理,以在所述至少两个智能设备的设备状态不同时,控制所述至少两个智能设备保持相同的设备状态。
根据本公开实施例的一个方面,一种设备控制系统,包括用户终端、网关和智能设备,其中,所述用户终端配置为向虚拟设备发送所述设备控制指令,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建,所述设备控制指令用于指示所述虚拟设备执行设定动作,所述设定动作属于创建所述虚拟设备的至少两个智能设备允许执行的动作;所述网关配置为接收所述用户终端发送的所述设备控制指令,并按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令;所述智能设备配置为创建所述虚拟设备,若接收到所述网关发送的所述设备控制指令,则响应所述设备控制指令而同步执行所述设定动作。
根据本申请的一个方面,一种电子设备,包括至少一个处理器以及至少一个存储器,其中,所述存储器上存储有程序指令或代码;所述程序指令或代码被所述处理器加载并执行,使得电子设备实现如上所述的设备控制方法。
根据本申请的一个方面,一种存储介质,其上存储有程序指令或代码,所述程序指令或代码被处理器加载并执行,以实现如如上所述的设备控制方法。
根据本申请的一个方面,一种应用程序产品,应用程序产品包括程序指令或代码,程序指令或代码存储在存储介质中,电子设备的处理器从存储介质读取程序指令或代码,加载并执行该程序指令或代码,使得电子设备实现如上所述的设备控制方法。
附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍。
图1是根据本公开实施例所涉及的实施环境的示意图;
图2是根据一示例性实施例示出的一种设备控制方法的流程图;
图3是根据一示例性实施例示出的虚拟设备的设备详情页面的示意图;
图4是根据一示例性实施例示出的虚拟设备创建过程的方法流程图;
图5是根据一示例性实施例示出的设备列表页面显示智能设备的示意图;
图6是图2对应实施例示出的步骤330在一个实施例的流程图;
图7是根据一示例性实施例示出的目标设备的设备详情页面及其跳转过程的示意图;
图8是根据一示例性实施例示出的目标设备的虚拟设备创建页面及其跳转过程的示意图;
图9是图2对应实施例示出的步骤350在一个实施例的流程图;
图10是根据一示例性实施例示出的虚拟设备添加的示意图;
图11是根据一示例性实施例示出的关于虚拟设备的页面跳转过程的示意图;
图12是根据一示例性实施例所涉及的应用场景中一种设备控制方法的时序交互图;
图13是根据一示例性实施例示出的网关分别向第一设备和第二设备发送设备控制指令的示意图;
图14是根据一示例性实施例示出的一种设备控制装置的结构框图;
图15是根据一示例性实施例示出的一种设备控制装置的结构框图;
图16是根据一示例性实施例示出的一种终端的硬件结构图;
图17是根据一示例性实施例示出的一种网关的硬件结构图;
图18是根据一示例性实施例示出的一种电子设备的结构框图。
具体实施方式
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本公开,而不能解释为对本公开的限制。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元 和全部组合。
下面是对本公开涉及的几个名词进行的介绍和解释:
组播:又称多目标广播、多播,是一种点对多点的网络通信方式,也认为是一种在一个发送者和多个接收者之间进行数据传输的网络通信方式,发送者只发送一份数据,多个接收者接收到的数据都是该份数据的拷贝,即相同数据。
单播:是一种点对点的网络通信方式,主要应用于一个发送者和一个接收者之间的数据传输,若需要应用于一个发送者与多个接收者之间进行相同数据的传输,与组播的区别在于,发送者需要发送多份相同数据。
本公开提供的技术方案带来的有益效果是:
在上述技术方案中,针对虚拟设备显示有至少一控制入口,该虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建,通过响应对控制入口的触发操作而生成设备控制指令,该设备控制指令用于指示虚拟设备执行控制入口对应的设定动作,并向虚拟设备发送设备控制指令,使得创建虚拟设备的至少两个智能设备响应设备控制指令而同步执行设定动作,由此,允许执行至少一个相同动作的至少两个智能设备便可创建得到一个虚拟设备,通过控制该虚拟设备执行设定动作,实质是控制该至少两智能设备同步执行该设定动作,避免该至少两个智能设备顺序执行该设定动作,以此来减小多设备执行动作的网络延时,从而能够有效地解决相关技术中存在的多设备执行动作网络延时较大的问题。
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。
图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通过路由器190与网关150之间建立有线或者无线等方式的通信连接,例如,该有线或者无线等方式包括但不限于WIFI等,使得用户终端110与网关150部署于同一个局域网络,进而使得用户终端110可通过局域网络路径实现与智能设备130之间的交互。在另一个应用场景中,用户终端110通过服务器端170与网关150之间建立有线或者无线等方式的通信连接,例如,该有线或者无线等方式包括但不限于2G、3G、4G、5G、WIFI等,使得用户终端110与网关150部署于同一个广域网络,进而使得用户终端110可通过广域网络路径实现与智能设备130之间的交互。
其中,服务器端170,也可以认为是云端、云平台、平台端、服务端等等,此服务器端170可以是一台服务器,也可以是由多台服务器构成的一个服务器集群,或者是由多台服务器构成的云计算中心,以便于更好地向海量用户终端110提供后台服务。例如,后台服务包括但不限于设备控制服务等等。
随着用户终端110、网关150、服务器端170、智能设备130之间的交互,用户便能够借助用户终端110,生成用于控制虚拟设备执行设定动作的设备控制指令,并通过网关150/服务器端170按照组播传输方式,将该设备控制指令发送至创建虚拟设备的至少两个智能设备130,使得该至少两个智能设备130响应于该设备控制指令而同步执行设定动作,从而便捷地实现用户对多个智能设备130的同步控制。
请参阅图2,本公开实施例提供了一种设备控制方法,以该方法适用于电子设备,例如,电子设备可以是图1所示出实施环境中的用户终端110,在下述方法实施例中,为了便于描述,以该方法各步骤的执行主体为电子设备为例进行说明,但是并非对此构成具体限定。
如图2所示,该方法可以包括以下步骤:
步骤210,显示针对虚拟设备的至少一控制入口。
首先说明的是,虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建。
举例来说,卫生间中部署有两个智能设备:智能风扇和智能灯,进入卫生间时,智能风扇和智能灯同时开启,离开卫生间时,智能风扇和智能灯则同时关闭。由此可知,在此 智能家居场景中,智能风扇和智能灯允许执行的动作保持相同,那么,为了减小智能风扇和智能灯执行动作的网络延时,便可将智能风扇和智能灯创建为一虚拟设备,以使得智能风扇和智能灯能够同步执行开启或者关闭等动作。
其次,控制入口,用于控制创建虚拟设备的至少两个智能设备同步执行设定动作。在一个可能的实施方式,针对虚拟设备的至少一控制入口显示在虚拟设备的设备详情页面。
针对虚拟设备的至少一控制入口,在一个可能的实施方式,每一个控制入口对应一个设定动作,使得创建虚拟设备的至少两个智能设备,同步执行控制入口对应的设定动作。在一个可能的实施方式,不同控制入口对应的设定动作具有不同的动作类型,使得创建虚拟设备的至少两个智能设备,同步执行与自身所支持的动作类型相匹配的设定动作,其中,智能设备自身所支持的动作类型用于指示智能设备允许执行的动作。
图3示出了一个实施例中虚拟设备的设备详情页面的示意图,如图3所示,在虚拟设备“亮度灯”的设备详情页面201中,至少显示有三个控制入口,分别是亮度控制入口202、开控制入口203、关控制入口204。假设该虚拟设备“亮度灯”由两个开关、以及与该两个开关电性连接的两个智能灯等四个智能设备创建,则亮度控制入口202用于控制两个智能灯同步执行调整亮度动作,开控制入口203用于控制两个开关、两个智能灯同步执行开启动作,关控制入口204用于控制两个开关、两个智能灯同步执行关闭动作。由此可知,在此智能家居场景中,亮度控制入口对应的设定动作为调整亮度动作,开控制入口对应的设定动作为开启动作,关控制入口对应的设定动作为关闭动作;对于创建虚拟设备的四个智能设备而言,开关所支持的动作类型包括开启、关闭,表示开关允许执行的动作包括开启、关闭等动作;智能灯所支持的动作类型包括开启、关闭、调整亮度,表示智能灯允许执行的动作包括开启、关闭、调整亮度等动作。也可以理解为,与开关自身所支持的动作类型相匹配的设定动作包括开启、关闭等动作,与智能灯自身所支持的动作类型相匹配的设定动作包括开启、关闭、调整亮度等动作。
步骤230,响应于对控制入口的触发操作,生成设备控制指令。
其中,设备控制指令用于指示虚拟设备执行控制入口对应的设定动作,设定动作属于创建虚拟设备的至少两个智能设备允许执行的动作。
仍以虚拟设备“亮度灯”举例说明,创建虚拟设备的四个智能设备允许执行的动作包括开启、关闭、调整亮度等动作,相应地,控制入口对应的设定动作包括开启、关闭、调整亮度等动作,由此,若响应于对开控制入口的触发操作,则生成用于控制虚拟设备执行开启动作的设备控制指令;若响应于对关控制入口的触发操作,则生成用于控制虚拟设备执行关闭动作的设备控制指令;若响应于对亮度控制入口的触发操作,则生成用于控制虚拟设备执行调整亮度动作的设备控制指令。
步骤250,向虚拟设备发送设备控制指令,使得创建虚拟设备的至少两个智能设备响应设备控制指令,而同步执行设定动作。
结合图1所示出的实施环境,对设备控制指令在用户终端110、网关150、智能设备 130之间传输的过程进行以下说明:
就网关150来说,在用户终端110向虚拟设备发送设备控制指令之后,便能够接收到该设备控制指令,进而按照组播传输方式,向创建虚拟设备的至少两个智能设备130发送该设备控制指令。由此,对于创建虚拟设备的智能设备130而言,若接收到网关150发送的该设备控制指令,则响应该设备控制指令而同步执行设定动作。
继续以虚拟设备“亮度灯”举例说明,对于创建虚拟设备的四个智能设备而言,若接收到网关150发送的用于控制虚拟设备执行开启动作的设备控制指令,则两个开关同步执行开启动作,同时两个智能灯同步执行开启动作;若接收到网关150发送的用于控制虚拟设备执行关闭动作的设备控制指令,则两个开关同步执行关闭动作,同时两个智能灯同步执行关闭动作;若接收到网关150发送的用于控制虚拟设备执行调整亮度动作的设备控制指令,则两个智能灯同步执行调整亮度动作。在此说明的是,由于开关自身所支持的动作类型包括开启、关闭,故,开关仅执行与自身所支持的动作类型相匹配的设定动作,即开启、关闭等动作。
通过上述过程,实现了多设备的统一快速控制,即允许执行至少一个相同动作的至少两个智能设备可创建得到一个虚拟设备,通过控制该虚拟设备执行设定动作,实质是控制该至少两个智能设备同步执行该设定动作,避免该至少两个智能设备顺序执行该设定动作,以此来减小多设备执行动作的网络延时,从而能够有效地解决相关技术中存在的多设备执行动作网络延时较大的问题。
图4示出了一个实施例中虚拟设备创建过程的方法流程图,如图4所示,该方法可以包括以下步骤:
步骤310,在设备列表页面中显示目标设备。
其中,设备列表页面用于展示部署于网关的多个智能设备,包括但不限于目标设备。在此说明的是,智能设备通过设备标识唯一表示,例如,智能设备A通过设备标识A唯一表示,以在设备列表页面中通过显示设备标识A,来表示部署于网关的智能设备A显示在设备列表页面。
图5(a)示出了一个实施例中智能设备显示的示意图,如图5(a)所示,在设备列表页面301中,显示了设备标识A和设备标识B,分别表示部署于网关的智能设备A和智能设备B,其中,智能设备A为目标设备。
步骤330,基于对目标设备的虚拟设备创建指令,确定至少一个候选设备。
其中,候选设备是指允许执行的至少一个动作与目标设备执行的动作相同的智能设备。
在一个可能的实施方式,候选设备由用户随机选取,具体地,基于对目标设备的虚拟设备创建指令,提示在设备列表页面中显示多个智能设备中选择候选设备,并响应于对多个智能设备中至少一个智能设备的选择操作,将选中的智能设备作为候选设备。也就是说,与目标设备共同创建虚拟设备的候选设备,可以由用户随机选取,以此来提升虚拟设备创 建的灵活性,进而有利于提升设备控制的灵活性。
在一个可能的实施方式,候选设备由网关/服务器端推荐,具体地,基于对目标设备的虚拟设备创建指令,向网关/服务器端请求获取设备推荐数据,其中,设备推荐数据用于指示至少一个推荐设备,该推荐设备是指允许执行的至少一个动作与目标设备执行的动作相同的智能设备;基于网关/服务器端返回的设备推荐数据,确定至少一个候选设备。其中,基于网关/服务器端返回的设备推荐数据确定至少一个候选设备的方式,可以是用户终端随机选取,还可以是用户随机选取,此处并未加以限定。此种实施方式下,与目标设备共同创建虚拟设备的候选设备,可以由网关/服务器端基于历史场景数据进行推荐,以此保证候选设备确定的准确性,来提升虚拟设备创建的准确性,进而有利于提升设备控制的成功率。
举例来说,卫生间中部署有智能风扇和智能灯,智能风扇和智能灯执行的动作相同,那么,若智能风扇为目标设备,对于网关/服务器端而言,基于历史场景数据,便能够确定执行的动作与智能风扇执行的动作相同的智能设备为智能灯,进而将智能灯作为推荐设备,并生成设备推荐数据,返回至用户终端。在一个可能的实施方式,设备推荐数据至少包括:至少一个推荐设备的设备标识。
在确定至少一个候选设备之后,便能够由目标设备和至少一个候选设备创建虚拟设备,并显示在设备列表页面中,即执行步骤350。
步骤350,在设备列表页面中,显示由目标设备和至少一个候选设备创建的虚拟设备。
在一个可能的实施方式,基于目标设备和至少一个候选设备,自动创建虚拟设备,包括:为虚拟设备随机生成设备标识,以在设备列表页面中显示该虚拟设备。在此种实施方式下,极大地提升了用户的使用体验,例如,提升用户操作的便捷性。
在一个可能的实施方式,基于目标设备和至少一个候选设备,由操作触发创建虚拟设备。该操作包括以下至少一种:第一确认操作,用于对虚拟设备由目标设备、以及至少一个候选设备创建进行确认;输入操作,用于为虚拟设备输入设备标识;选择操作,用于为虚拟设备选择部署位置,该部署位置包括但不限于:主卧室、客卧室、卫生间、餐厅、客厅、书房、储物室、衣帽间、阳台、厨房、走廊等等第二确认操作,用于对虚拟设备完成创建进行确认。在此种实施方式下,不仅方便于用户配置虚拟设备的设备标识,同时方便于用户配置虚拟设备的部署位置,丰富了虚拟设备的类型,极大地提升了虚拟设备创建的灵活性,有利于提升用户的使用体验,例如,提升人机互动率。
在完成虚拟设备的创建之后,便能够将该虚拟设备显示在设备列表页面。图5(b)示出了一个实施例中虚拟设备显示的示意图,如图5(b)所示,在设备列表页面301中,显示多个智能设备,具体包括:设备标识A表示的智能设备A、设备标识B表示的智能设备B、以及设备标识C表示的虚拟设备C。
通过上述过程,实现了虚拟设备的创建,即将允许执行至少一个相同动作的多个智能设备创建为一个虚拟设备,通过控制该虚拟设备执行设定动作,实质是控制多个智能设备 同步执行该设定动作,避免多个智能设备顺序执行设定动作,以此来减小多设备执行动作的网络延时,从而能够有效地解决相关技术中存在的多设备执行动作网络延时较大的问题。
请参阅图6,在一个示例性实施例中,步骤330可以包括以下步骤:
步骤331,响应于对设备列表页面中显示的目标设备的第一选择操作,显示目标设备的设备详情页面。
在一个可能的实施方式,从设备列表页面跳转至目标设备的设备详情页面,以显示目标设备的设备详情页面;在一个可能的实施方式,在设备列表页面中显示目标设备的设备详情页面。
步骤332,将虚拟设备创建入口显示在目标设备的设备详情页面。
当然,在其他一些可能的实施方式,在目标设备的设备详情页面中,还可以显示以下至少一种目标设备的设备详情:目标设备的设备状态;控制入口,用于控制目标设备执行设定动作。
图7示出了一个实施例中目标设备的设备详情页面及其跳转过程的示意图。如图7所示,在设备列表页面301中,若用户点击设备标识A,则表示用户选中智能设备302作为目标设备,此时,从设备列表页面301跳转至智能设备302的设备详情页面401。其中,用户的点击操作即为对目标设备的第一选择操作。
值得一提的是,根据电子设备所配置输入组件(例如显示屏幕上覆盖的触摸层、鼠标、键盘等)的不同,第一选择操作的具体行为也可以有所差别。例如,电子设备为配置触摸层的智能手机,第一选择操作可以是点击、滑动等手势操作;而对于电子设备为配置鼠标的笔记本电脑来说,第一选择操作则可以是拖拽、单击、双击等机械操作,本实施例并未对此加以限定。
在图7中,智能设备302的设备详情页面401至少显示了:智能设备302的设备状态402、智能设备302的控制入口403、智能设备302的虚拟设备创建入口404。其中,设备状态402用于表示智能设备302的当前设备状态;控制入口403用于指示智能设备302执行设定动作;虚拟设备创建入口404用于创建虚拟设备。
步骤333,响应于对虚拟设备创建入口的触发操作,生成对目标设备的虚拟设备创建指令。
步骤334,基于对目标设备的虚拟设备创建指令,向服务器端请求获取设备推荐数据。
其中,设备推荐数据用于指示至少一个推荐设备,该推荐设备是指与目标设备允许执行至少一个相同动作的智能设备。
步骤335,响应于虚拟设备创建指令,显示目标设备的虚拟设备创建页面。
步骤336,在目标设备的虚拟设备创建页面中,显示目标设备,和/或,设备推荐数据指示的至少一个推荐设备。在一个可能的实施方式,在目标设备的虚拟设备创建页面中,显示至少一个推荐设备。在一个可能的实施方式,在目标设备的虚拟设备创建页面中,显 示目标设备以及至少一个推荐设备。
图8示出了一个实施例中目标设备的虚拟设备创建页面及其跳转过程的示意图。如图8所示,在目标设备的设备详情页面401中,若用户点击虚拟设备创建入口404,生成对目标设备的虚拟设备创建指令,以此向服务器端请求设备推荐数据。在一个可能的实施方式,设备推荐数据至少包括:至少一个推荐设备的设备标识。例如,在图8中,设备标识A表示目标设备302,设备标识D表示推荐设备503,设备标识E表示推荐设备504,设备标识F表示推荐设备505。其中,用户的点击操作即为对虚拟设备创建入口的触发操作。
可选地,在图8中,响应于虚拟设备创建指令,从目标设备的设备详情页面401跳转至虚拟设备创建页面501,并在虚拟设备创建页面501中显示分别通过设备标识A、D、E、F表示的目标设备302、推荐设备503、推荐设备504、推荐设备505。
当然,在其他实施例中,设备推荐数据指示的至少一个推荐设备还可以仍然显示在目标设备的设备详情页面中,例如,显示在虚拟设备创建入口下方的空白处,此处并非构成具体限定。
步骤337,响应于对显示的至少一个推荐设备的第二选择操作,确定选中的推荐设备,作为候选设备。
继续参阅图8,若用户点击设备标识E,表示用户选中推荐设备504作为候选设备。其中,用户的点击操作即为对显示的至少一个推荐设备的第二选择操作。
通过上述实施例的配合,结合网关/服务器端推荐和用户随机选取的方式,实现了候选设备的确定,保证了与目标设备共同创建虚拟设备的候选设备,不仅来自于网关/服务器推荐的推荐设备,以此保证候选设备确定的准确性,提升了虚拟设备创建的准确性,而且满足于用户的选取,以此提升了虚拟设备创建的灵活性,进而有利于提升设备控制的成功率和灵活性,最终有利于保证设备控制的稳定性。
请参阅图9,在一个示例性实施例中,步骤350可以包括以下步骤:
步骤351,由操作触发生成虚拟设备添加指令。
其中,操作包括以下至少一种:第一确认操作,用于对虚拟设备由目标设备、以及至少一个候选设备创建进行确认;输入操作,用于为虚拟设备输入设备标识;第三选择操作,用于为虚拟设备选择部署位置;第二确认操作,用于对虚拟设备完成创建进行确认。
图10示出了一个实施例中虚拟设备添加的示意图。在图10中,若用户点击设备标识E,则表示用户选中推荐设备504作为候选设备,可选地,若用户点击“下一步”控件502,则表示用户确认虚拟设备由设备标识A表示的目标设备302与候选设备504创建,即用户的确认操作视为第一确认操作。
在一个可能的实施方式,响应于第一确认操作,生成虚拟设备添加指令,以在设备列表页面中显示虚拟设备。在此种实施方式下,虚拟设备的设备标识和部署位置均由电子设备随机生成,避免用户过多的手动操作,有利于提升用户的操作便捷性,进而有利于提升 用户的使用体验。
在一个可能的实施方式,响应于第一确认操作,从虚拟设备创建页面跳转至虚拟设备添加页面,以基于虚拟设备添加页面中触发的操作生成虚拟设备添加指令。继续参阅图10,在输入控件602中,可以为虚拟设备输入“亮度灯”,作为该虚拟设备的设备标识,此用户的输入操作视为输入操作;在选择控件603中,可以为虚拟设备选择“默认房间”(例如系统默认客厅),作为该虚拟设备的部署位置,此用户的选择操作视为第三选择操作;若用户点击“完成”控件604,则表示用户确认虚拟设备完成创建,即用户的点击操作视为第二确认操作,基于上述至少一种操作,便能够生成虚拟设备添加指令。
步骤353,响应于虚拟设备添加指令,将虚拟设备显示在设备列表页面。
图11示出了一个实施例中关于虚拟设备的页面跳转过程的示意图,如图11所示,通过设备标识“亮度灯”表示的虚拟设备305显示在设备列表页面301。
随着设备列表页面中显示虚拟设备,便能够进一步地显示出针对虚拟设备的至少一控制入口。在一个可能的实施方式,在设备列表页面中,显示针对虚拟设备的至少一控制入口。在一个可能的实施方式,在虚拟设备的设备详情页面中,显示针对虚拟设备的至少一控制入口,具体地,响应于对设备列表页面中显示的虚拟设备的第三选择操作,显示虚拟设备的设备详情页面;将至少一控制入口显示在虚拟设备的设备详情页面。
当然,在其他实施例中,虚拟设备的设备详情页面中,可以显示以下至少一种虚拟设备的设备详情:虚拟设备的设备状态;创建虚拟设备的目标设备以及至少一个候选设备;虚拟设备创建入口,用于创建虚拟设备;控制入口,用于控制创建虚拟设备的至少两个智能设备同步执行设定动作。
继续以前述虚拟设备“亮度灯”举例说明,如图11所示,在设备列表页面301中,设备标识“亮度灯”表示虚拟设备305,即虚拟设备“亮度灯”,在用户点击设备标识“亮度灯”之后,从设备列表页面301跳转至虚拟设备“亮度灯”的设备详情页面701,在该设备详情页面701中,显示有:亮度控制入口702、开控制入口703、关控制入口704、虚拟设备创建入口705,例如,用户期望新增加一个智能灯参与虚拟设备“亮度灯”的创建,或者,用户期望调整虚拟设备“亮度灯”的部署位置,都可点击该虚拟设备创建入口705;此外,虚拟设备“亮度灯”的设备详情页面701中,还显示了创建虚拟设备“亮度灯”的智能设备,具体包括:设备标识A表示的智能灯302、设备标识E表示的智能开关504。
在上述实施例的作用下,实现了虚拟设备的创建基于操作触发,不仅方便于用户配置虚拟设备的设备标识,同时方便于用户配置虚拟设备的部署位置,丰富了虚拟设备的类型,极大地提升了虚拟设备创建的灵活性,有利于提升用户的使用体验,例如,提升人机互动率。
现结合本公开实施例所涉及的一种实施环境,对本公开实施例所涉及的一种应用场景 进行介绍。
如图12所示,在一个应用场景中,用户终端110、网关150、智能设备130之间实现设备控制的过程,可以包括以下步骤:
步骤801,用户终端110基于对目标设备的虚拟设备创建指令,确定至少一个候选设备,并由目标设备和至少一个候选设备创建虚拟设备。
步骤802,发送虚拟设备配置数据至网关150。
步骤803,网关150基于虚拟设备配置数据,生成虚拟设备配置指令,并发送至智能设备130。
步骤804,智能设备130响应于虚拟设备配置指令,进行虚拟设备配置。
其中,虚拟设备配置数据,用于指示虚拟设备由目标设备和至少一个候选设备创建。在一个可能的实施方式,虚拟设备配置数据至少包括:虚拟设备的设备标识、目标设备的设备标识、至少一个候选设备的设备标识。
那么,对于网关150而言,基于虚拟设备配置数据,便可确定创建虚拟设备的目标设备和至少一个候选设备,进而生成虚拟设备配置指令,并发送至对应的智能设备130,即目标设备和至少一个候选设备。在一个可能的实施方式,虚拟设备配置指令至少包括:虚拟设备的设备标识。
就智能设备130来说,在接收到虚拟设备配置指令之后,便可响应于该虚拟设备配置指令,进行虚拟设备配置。在一个可能的实施方式,虚拟设备配置,是指存储虚拟设备的设备标识。例如,智能设备B中存储有虚拟设备A的设备标识A,那么,智能设备B便知道自身参与了虚拟设备A的创建,后续控制虚拟设备A执行设定动作时,智能设备B便会与其他参与虚拟设备A创建的智能设备,同步执行该设定动作。
由此,在完成智能设备130关于虚拟设备的虚拟设备配置之后,便可通过对虚拟设备的控制,来控制智能设备130,具体包括以下步骤:
步骤805,网关150接收用户终端110发送的设备控制指令。
在一个可能的实施方式,设备控制指令至少包括:虚拟设备的设备标识、设定动作的动作标识。
步骤806,基于设备控制指令,对创建虚拟设备的目标设备和至少一个候选设备,进行虚拟设备配置检测,确定完成虚拟设备配置的至少一个第一设备。
在一个可能的实施方式,虚拟设备配置检测,是指确定智能设备中是否存储虚拟设备的设备标识。例如,网关150对智能设备B进行虚拟设备配置检测,包括:网关150向智能设备B发送虚拟设备配置检测请求;智能设备B响应于该虚拟设备配置检测请求,向网关150返回相应的请求响应,其中,该请求响应中携带了虚拟设备A的设备标识A。此时,网关150便能够确定智能设备B完成关于虚拟设备A的虚拟设备配置。
将完成虚拟设备配置的智能设备130,作为第一设备,并执行步骤807。
将未完成虚拟设备配置的智能设备130,作为第二设备,并执行以下步骤:按照单播 传输方式,分别向每一个第二设备发送设备控制指令,使得各第二设备响应于设备控制指令而执行设定动作。
步骤807,将至少一个第一设备作为组播成员,向组播成员发送设备控制指令,使得各组播成员响应于设备控制指令而同步执行设定动作。
图13示出了网关分别向第一设备和第二设备发送设备控制指令的示意图。在图13中,由于二个第一设备完成了虚拟设备配置,即该二个第一设备参与了虚拟设备的创建,故,对于该二个第一设备而言,实质是按照组播传输方式,通过一条设备控制指令(指令①)进行控制的,以此实现该二个第一设备同步执行设定动作;由于二个第二设备未完成虚拟设备配置,故,对于该二个第二设备而言,网关150按照单播传输方式,先后发送了两条设备控制指令(指令②和指令③)至每一个第二设备,以使得该二个第二设备按照接收到虚拟控制指令的顺序,依次执行设定动作。
步骤808,网关150接收组播成员上报的设备状态数据。
其中,设备状态数据是组播成员执行设定动作生成的,用于指示组播成员执行设定动作后的设备状态。例如,卫生间中部署有智能风扇和智能灯,若智能风扇执行了关闭动作,则设备状态数据用于指示智能风扇的设备状态为关闭,或者,若智能灯执行了开启动作,则设备状态数据用于指示智能灯的设备状态为开启。
步骤809,检测设备状态数据是否上报超时。
若检测到至少一个组播成员上报设备状态数据超时,则执行步骤210。反之,若检测到各组播成员上报设备状态数据均未超时,则确认所有组播成员均已同步执行设定动作。
步骤810,向组播成员重新发送设备控制指令。
在一个可能的实施方式,向所有组播成员重新发送设备控制指令,在一个可能的实施方式,向上报超时的组播成员重新发送设备控制指令,直至确认所有组播成员按时返回设备状态数据,亦即是确定所有组播成员均已同步执行设定动作,此种方式下,不仅能够最大限度地保证动作执行的成功率,从而保证设备控制的成功率,而且还能够充分地保障设备控制的稳定性。
应当说明的是,针对每一个组播成员,有的组播成员可能已执行了设定动作,并且上报设备状态数据未超时,则该组播成员可忽略重新接收到的设备控制指令,而对于未执行设定动作,或者,上报设备状态数据超时的组播成员来说,则需要再次响应重新接收到的设备控制指令而重新执行设定动作。
上述过程中,就未参与虚拟设备创建的第二设备来说,设备控制未有改进,仍需要网关依次发送多条指令来逐一控制多个智能设备,而就参与虚拟设备创建的第一设备来说,设备控制有了较大改进,即网关仅需要发送一条指令便能够同步控制多个智能设备,例如,控制创建虚拟设备的多个智能设备同步执行开启动作,或者控制创建虚拟设备的多个智能设备同步执行调整亮度动作等,从而避免了多个智能设备按照指令接收顺序依次执行设定动作,针对指令的响应性和多设备控制的成功率都有极大地提高,此外,随着智能设备数 量的增加,更有利于减小多设备执行动作的网络延时,达到多设备同时快速控制的效果,有利于用户的使用体验大大提升,例如,用户希望多个智能设备统一动作,而不是先后动作。
可选地,用户终端110、网关150、智能设备130之间实现设备控制的过程,在步骤210之后,还可以包括以下步骤:
基于设备控制指令,对创建虚拟设备的至少两个智能设备进行虚拟设备标记处理,以在至少两个智能设备的设备状态不同时,控制至少两个智能设备保持相同的设备状态。
如前所述,对于卫生间中部署的智能风扇和智能灯而言,智能风扇和智能灯执行相同动作,例如,进入卫生间时,智能风扇和智能灯同时开启,离开卫生间时,智能风扇和智能灯则同时关闭。然而,发明人意识到,上述两个智能设备,不局限于受控于智能设备关联的客户端,还可以受控于用户的手动操作,或者,受控于智能音箱等其他智能设备,这就可能导致上述两个智能设备执行的动作不同步,从而影响基于虚拟设备对该两个智能设备的控制,例如,智能风扇的设备状态为开启,智能灯的设备状态为关闭,若用户期望控制由智能风扇和智能灯创建的虚拟设备关闭,则可能造成无法满足用户需求。
为此,本实施例中,从网关层面出发,实现对创建虚拟设备的多个智能设备执行设定动作的同步。具体地,对创建虚拟设备的多个智能设备进行虚拟设备标记处理。其中,虚拟设备标记处理,本质上是在网关中,记录虚拟设备由目标设备和至少一个候选设备创建,也可以认为是,在网关中,目标设备和至少一个候选设备将“绑定”为一个虚拟设备,使得网关控制目标设备和至少一个候选设备始终同步执行动作和同步上报设备状态数据。
仍以前述例子进行说明,假设由智能风扇和智能灯创建了虚拟设备A。就智能设备关联的客户端而言,便能够向网关发送用于指示虚拟设备A执行开启动作的设备控制指令,从而使得网关控制智能风扇和智能灯同步执行该开启动作,即保证了智能风扇和智能灯同时开启。
然而,若其中一个智能设备受控于用户的手动操作,例如,用户手动开启智能风扇,而智能灯仍保持关闭,这将影响后续对虚拟设备A的控制,对于此,网关根据智能风扇和智能灯同步上报的设备状态数据,确定智能风扇的设备状态为开启状态、智能灯的设备状态为关闭状态,从而了解到智能风扇开启而智能灯关闭,此时,网关便会向智能灯发送指示该智能灯执行开启动作的设备控制指令,以保证智能灯和智能风扇能够保持相同的设备状态,亦即是,保证智能灯和智能风扇同步执行了开启动作。
当然,根据实际营运的需要,在其他应用场景中,设备控制的过程还可以在用户终端110、服务器端170,网关150、智能设备130之间实现,例如,虚拟设备配置数据和设备控制指令均由服务器端170转发至网关150,如图13中虚线所示,此处并非构成具体限定。
上述过程中,通过网关层面进行的动作执行同步,充分保证了创建虚拟设备的多智能设备同步执行动作,不仅有效地增强了设备控制的稳定性,还有利于提升多设备执行动作 的快捷性,达到用户统一控制多设备的目的,减少多设备执行动作的网络延时,进而有利于提升用户的使用体验。
下述为本公开装置实施例,可以用于执行本公开所涉及的设备显示方法。对于本公开装置实施例中未披露的细节,请参照本公开所涉及的设备显示方法的方法实施例。
请参阅图14,本公开实施例中提供了一种设备控制装置900,包括但不限于:入口显示模块910、控制指令生成模块930以及控制指令发送模块950。
其中,入口显示模块910,配置为显示针对虚拟设备的至少一控制入口,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建;
控制指令生成模块930,配置为响应于对所述控制入口的触发操作,生成设备控制指令,所述设备控制指令用于指示所述虚拟设备执行所述控制入口对应的设定动作,所述设定动作属于创建所述虚拟设备的至少两个智能设备允许执行的动作;
控制指令发送模块950,配置为向所述虚拟设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
在一个示例性实施例中,创建虚拟设备的至少两个智能设备中,其中一个智能设备作为目标设备,其余智能设备作为候选设备;装置还包括:设备显示器,配置为在设备列表页面中显示目标设备;设备确定器,配置为基于对目标设备的虚拟设备创建指令,确定至少一个候选设备;设备创建器,配置为在设备列表页面中,显示由目标设备和至少一个候选设备创建的虚拟设备。
在一个示例性实施例中,装置还包括:入口显示器,配置为显示目标设备对应的虚拟设备创建入口;创建指令生成器,配置为响应于对虚拟设备创建入口的触发操作,生成虚拟设备创建指令。
在一个示例性实施例中,入口显示器包括:第一页面显示器,配置为响应于对设备列表页面中显示的目标设备的第一选择操作,显示目标设备的设备详情页面;入口显示器,配置为将虚拟设备创建入口显示在目标设备的设备详情页面。
在一个示例性实施例中,设备确定器包括:设备显示器,配置为响应于虚拟设备创建指令,显示至少一个推荐设备,推荐设备为与目标设备允许执行至少一个相同动作的智能设备;设备确定器,配置为响应于对显示的至少一个推荐设备的第二选择操作,确定选中的推荐设备,作为候选设备。
在一个示例性实施例中,入口显示器包括:第二页面显示器,配置为响应于对设备列表页面中显示的虚拟设备的第三选择操作,显示虚拟设备的设备详情页面;入口显示器,配置为将至少一控制入口显示在虚拟设备的设备详情页面。
在一个示例性实施例中,不同控制入口对应的设定动作具有不同的动作类型,使得创建虚拟设备的至少两个智能设备响应设备控制指令,而同步执行与自身所支持的动作类型相匹配的设定动作,智能设备自身所支持的动作类型用于指示智能设备允许执行的动作。
请参阅图15,本公开实施例中提供了一种设备控制装置1000,包括但不限于:指令接收模块1010、以及指令发送模块1050。
其中,指令接收模块1010,配置为接收用户终端发送的设备控制指令,设备控制指令用于指示虚拟设备执行设定动作,虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建,设定动作属于至少两个智能设备允许执行的动作;
指令发送模块1050,配置为按照组播传输方式,向创建虚拟设备的至少两个智能设备发送设备控制指令,使得创建虚拟设备的至少两个智能设备响应设备控制指令,而同步执行设定动作。
在一个示例性实施例中,装置还包括:配置检测器,配置为基于设备控制指令,对创建虚拟设备的至少两个智能设备进行虚拟设备配置检测,确定完成虚拟设备配置的至少一个第一设备;指令发送器包括:组播传输器,配置为将至少一个第一设备作为组播成员,向组播成员发送设备控制指令。
在一个示例性实施例中,装置还包括:配置数据接收器,配置为接收用户终端发送的虚拟设备配置数据,虚拟设备配置数据配置为指示虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建;配置请求器,配置为基于虚拟设备配置数据,请求创建虚拟设备的智能设备进行虚拟设备配置。
在一个示例性实施例中,装置还包括:指令分发器,配置为针对未完成虚拟设备配置的至少一个第二设备,按照单播传输方式,分别向每一个第二设备发送设备控制指令,使得各第二设备分别响应设备控制指令,而执行设定动作。
在一个示例性实施例中,装置还包括:数据接收器,配置为针对创建虚拟设备的每一个智能设备,接收智能设备上报的设备状态数据,设备状态数据是智能设备响应设备控制指令而执行设定动作生成的,用于指示智能设备执行设定动作后的设备状态;指令重发器,配置为若检测到设备状态数据上报超时,则按照组播传输方式,向创建虚拟设备的至少两个智能设备重新发送设备控制指令。
在一个示例性实施例中,装置还包括:状态同步器,配置为基于设备控制指令,对创建虚拟设备的至少两个智能设备进行虚拟设备标记处理,以在至少两个智能设备的设备状态不同时,控制至少两个智能设备保持相同的设备状态。
需要说明的是,上述实施例所提供的设备控制装置在进行设备控制时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即设备控制装置的内部结构将划分为不同的功能模块,以完成以上描述的全部或者部分功能。
另外,上述实施例所提供的设备控制装置与设备控制方法的实施例属于同一构思,其中各个模块执行操作的具体方式已经在方法实施例中进行了详细描述,此处不再赘述。
请参阅图16,图16是根据一示例性实施例示出的一种终端的结构示意图。该终端适 用于图1所示出实施环境中的用户终端110,可作为设备显示方法的执行主体。
需要说明的是,该终端只是一个适配于本公开的示例,不能认为是提供了对本公开的使用范围的任何限制。该终端也不能解释为需要依赖于或者必须具有图16中示出的示例性的终端1100中的一个或者多个组件。
如图16所示,终端1100包括存储器101、存储控制器103、一个或多个(图16中仅示出一个)处理器105、外设接口107、射频模块109、定位模块111、摄像模块113、音频模块115、触控屏幕117以及按键模块119。这些组件通过一条或多条通讯总线/信号线121相互通讯。
其中,存储器101可用于存储计算机程序以及模块,如本公开示例性实施例中的设备显示方法及装置对应的计算机程序及模块,处理器105通过运行存储在存储器101内的计算机程序,从而执行各种功能以及数据处理,即完成设备显示方法。
存储器101作为资源存储的载体,可以是随机存储器、例如高速随机存储器、非易失性存储器,如一个或多个磁性存储装置、闪存、或者其它固态存储器。存储方式可以是短暂存储或者永久存储。
外设接口107可以包括至少一有线或无线网络接口、至少一串并联转换接口、至少一输入输出接口以及至少一USB接口等,用于将外部各种输入/输出装置耦合至存储器101以及处理器105,以实现与外部各种输入/输出装置的通信。
射频模块109用于收发电磁波,实现电磁波与电信号的相互转换,从而通过通讯网络与其他设备进行通讯。通信网络包括蜂窝式电话网、无线局域网或者城域网,上述通信网络可以使用各种通信标准、协议及技术。
定位模块111用于获取终端1100的当前所在的地理位置。定位模块111的实例包括但不限于全球卫星定位系统(GPS)、基于无线局域网或者移动通信网的定位技术。
摄像模块113隶属于摄像头,用于拍摄图片或者视频。拍摄的图片或者视频可以存储至存储器101内,还可以通过射频模块109发送至上位机。
音频模块115向用户提供音频接口,其可包括一个或多个麦克风接口、一个或多个扬声器接口以及一个或多个耳机接口。通过音频接口与其它设备进行音频数据的交互。音频数据可以存储至存储器101内,还可以通过射频模块109发送。
触控屏幕117在终端1100与用户之间提供一个输入输出界面。具体地,用户可通过触控屏幕117进行输入操作,例如点击、触摸、滑动等手势操作,以使终端1100对该输入操作进行响应。终端1100则将文字、图片或者视频任意一种形式或者组合所形成的输出内容通过触控屏幕117向用户显示输出。
按键模块119包括至少一个按键,用以提供用户向终端1100进行输入的接口,用户可以通过按下不同的按键使终端1100执行不同的功能。例如,声音调节按键可供用户实现对终端1100播放的声音音量的调节。
在一些实施例中,终端1100还包括一个或者多个传感器(图16中未示出),该一个 或者多个传感器包括但不限于:加速度传感器、陀螺仪传感器、压力传感器、指纹传感器、光学传感器以及接近传感器等等。
可以理解,图16所示的结构仅为示意,终端1100还可包括比图16中所示更多或更少的组件,或者具有与图16所示不同的组件。图16中所示的各组件可以采用硬件、软件或者其组合来实现。
请参阅图17,图17根据一示例性实施例示出的一种网关的结构示意。该网关适用于图1所示出实施环境中的网关150,可作为设备控制方法的执行主体。
需要说明的是,该网关只是一个适配于本公开的示例,不能认为是提供了对本公开的使用范围的任何限制。该网关也不能解释为需要依赖于或者必须具有图17示出的示例性的网关2000中的一个或者多个组件。
网关2000的硬件结构可因配置或者性能的不同而产生较大的差异,如图17所示,网关2000包括:电源210、接口230、至少一存储器250、以及至少一中央处理器(CPU,Central Processing Units)270。
具体地,电源210用于为网关2000上的各硬件设备提供工作电压。
接口230包括至少一有线或无线网络接口,用于与外部设备交互。例如,进行图1所示出实施环境中用户终端110与网关150之间的交互。
当然,在其余本公开适配的示例中,接口230还可以进一步包括至少一串并转换接口233、至少一输入输出接口235以及至少一USB接口237等,如图17所示,在此并非对此构成具体限定。
存储器250作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作系统251、应用程序253及数据255等,存储方式可以是短暂存储或者永久存储。
其中,操作系统251用于管理与控制网关2000上的各硬件设备以及应用程序253,以实现中央处理器270对存储器250中海量数据255的运算与处理,其可以是Windows ServerTM、Mac OS XTM、UnixTM、LinuxTM、FreeBSDTM等。
应用程序253是基于操作系统251之上完成至少一项特定工作的程序指令或代码,其可以包括至少一模块(图17未示出),每个模块都可以分别包含有对网关2000的程序指令或代码。例如,设备控制装置可视为部署于网关2000的应用程序253。
数据255可以是存储于磁盘中的照片、图片等,还可以是设备控制指令、设备状态数据等,存储于存储器250中。
中央处理器270可以包括一个或多个以上的处理器,并设置为通过至少一通信总线与存储器250通信,以读取存储器250中存储的程序指令或代码,进而实现对存储器250中海量数据255的运算与处理。例如,通过中央处理器270读取存储器250中存储的一系列程序指令或代码的形式来完成设备控制方法。
此外,通过硬件电路或者硬件电路结合软件也能同样实现本申请,因此,实现本申请并不限于任何特定硬件电路、软件以及两者的组合。
请参阅图18,本公开实施例中提供了一种电子设备,该电子设备适用于图1所示出实施环境中的用户终端110、网关150等。
在图18中,该电子设备4000包括至少一个处理器4001以及至少一个存储器4003。
其中,处理器4001和存储器4003之间的数据交互,可以通过至少一个通信总线4002实现。该通信总线4002可包括一通路,用于在处理器4001和存储器4003之间传输数据。通信总线4002可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry StandardArchitecture,扩展工业标准结构)总线等。通信总线4002可以分为地址总线、数据总线、控制总线等。为便于表示,图18中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
可选地,电子设备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执行时实现上述各实施例中的设备控制方法。
此外,本申请实施例中提供了一种存储介质,该存储介质上存储有程序指令或代码,所述程序指令或代码被处理器加载并执行,以实现如如上所述的设备控制方法。
本申请实施例中提供了一种应用程序产品,应用程序产品包括程序指令或代码,程序指令或代码存储在存储介质中,电子设备的处理器从存储介质读取程序指令或代码,加载并执行该程序指令或代码,使得电子设备实现如上所述的设备控制方法。其中,该应用程序产品可以使用任何编程语言,并采用源代码、目标代码或者在源代码和目标代码之间的中间代码的形式,诸如部分编译的形式或者任何其它所需的形式。
与相关技术相比,通过将允许执行至少一个相同动作的多个智能设备创建为一个虚拟设备,使得控制该虚拟设备执行设定动作,即为控制多个智能设备同步执行该设定动作,不仅解决了多设备执行动作过程中的爆米花问题(非快速地统一控制)、成功率问题(控制失败)、一致性问题(非同步动作,而是先后动作),而且充分有效地提升了用户操作的便捷性和灵活性,进而能够有效地提升用户的使用体验。
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
以上所述仅是本公开的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。

Claims (17)

  1. 一种设备控制方法,所述方法包括:
    显示针对虚拟设备的至少一控制入口,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建;
    响应于对所述控制入口的触发操作,生成设备控制指令,所述设备控制指令用于指示所述虚拟设备执行所述控制入口对应的设定动作,所述设定动作属于创建所述虚拟设备的至少两个智能设备允许执行的动作;
    向所述虚拟设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
  2. 如权利要求1所述的方法,其中,创建所述虚拟设备的至少两个智能设备中,其中一个智能设备作为目标设备,其余智能设备作为候选设备;
    所述显示针对虚拟设备的至少一控制入口之前,所述方法还包括:
    在设备列表页面中显示所述目标设备;
    基于对所述目标设备的虚拟设备创建指令,确定至少一个所述候选设备;
    在所述设备列表页面中,显示由所述目标设备和至少一个所述候选设备创建的所述虚拟设备。
  3. 如权利要求2所述的方法,其中,所述基于对所述目标设备的虚拟设备创建指令,确定至少一个所述候选设备之前,所述方法还包括:
    显示所述目标设备对应的虚拟设备创建入口;
    响应于对所述虚拟设备创建入口的触发操作,生成所述虚拟设备创建指令。
  4. 如权利要求3所述的方法,其中,所述显示所述目标设备对应的虚拟设备创建入口,包括:
    响应于对所述设备列表页面中显示的所述目标设备的第一选择操作,显示所述目标设备的设备详情页面;
    将所述虚拟设备创建入口显示在所述目标设备的设备详情页面。
  5. 如权利要求2所述的方法,其中,所述基于对所述目标设备的虚拟设备创建指令,确定至少一个所述候选设备,包括:
    响应于所述虚拟设备创建指令,显示至少一个推荐设备,所述推荐设备为与所述目标设备允许执行至少一个相同动作的智能设备;
    响应于对显示的至少一个所述推荐设备的第二选择操作,确定选中的所述推荐设备,作为所述候选设备。
  6. 如权利要求1所述的方法,其中,所述显示针对虚拟设备的至少一控制入口,包括:
    响应于对设备列表页面中显示的所述虚拟设备的第三选择操作,显示所述虚拟设备的设备详情页面;
    将至少一所述控制入口显示在所述虚拟设备的设备详情页面。
  7. 如权利要求1所述的方法,其中,不同控制入口对应的设定动作具有不同的动作类型,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行与自身所支持的动作类型相匹配的所述设定动作,所述智能设备自身所支持的动作类型用于指示所述智能设备允许执行的动作。
  8. 一种设备控制方法,所述方法包括:
    接收用户终端发送的设备控制指令,所述设备控制指令用于指示虚拟设备执行设定动作,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建,所述设定动作属于至少两个智能设备允许执行的动作;
    按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
  9. 如权利要求8所述的方法,其中,所述按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令之前,所述方法还包括:
    基于所述设备控制指令,对创建所述虚拟设备的至少两个智能设备进行虚拟设备配置检测,确定完成虚拟设备配置的至少一个第一设备;
    所述按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令,包括:
    将至少一个所述第一设备作为组播成员,向所述组播成员发送所述设备控制指令。
  10. 如权利要求9所述的方法,其中,所述按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令之前,所述方法还包括:
    针对未完成虚拟设备配置的至少一个第二设备,按照单播传输方式,分别向每一个所述第二设备发送所述设备控制指令,使得各所述第二设备分别响应所述设备控制指令,而执行所述设定动作。
  11. 如权利要求9所述的方法,其中,所述基于所述设备控制指令,对创建所述虚拟设备的至少两个智能设备进行虚拟设备配置检测,确定完成虚拟设备配置的至少一个第一设备之前,所述方法还包括:
    接收所述用户终端发送的虚拟设备配置数据,所述虚拟设备配置数据用于指示所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建;
    基于所述虚拟设备配置数据,请求创建所述虚拟设备的智能设备进行虚拟设备配置。
  12. 如权利要求8所述的方法,其中,所述按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令之后,所述方法还包括:
    针对创建所述虚拟设备的每一个智能设备,接收所述智能设备上报的设备状态数据,所述设备状态数据是所述智能设备响应所述设备控制指令而执行所述设定动作生成的,用于指示所述智能设备执行所述设定动作后的设备状态;
    若检测到所述设备状态数据上报超时,则按照组播传输方式,向创建所述虚拟设备的至少两个智能设备重新发送所述设备控制指令。
  13. 如权利要求8至12任一项所述的方法,其中,所述方法还包括:
    基于所述设备控制指令,对创建所述虚拟设备的至少两个智能设备进行虚拟设备标记处理,以在所述至少两个智能设备的设备状态不同时,控制所述至少两个智能设备保持相同的设备状态。
  14. 一种设备控制装置,所述装置包括:
    入口显示器,配置为显示针对虚拟设备的至少一控制入口,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建;
    控制指令生成器,配置为响应于对所述控制入口的触发操作,生成设备控制指令,所述设备控制指令用于指示所述虚拟设备执行所述控制入口对应的设定动作,所述设定动作属于创建所述虚拟设备的至少两个智能设备允许执行的动作;
    控制指令发送器,配置为向所述虚拟设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
  15. 一种设备控制装置,所述装置包括:
    指令接收器,配置为接收用户终端发送的设备控制指令,所述设备控制指令用于指示虚拟设备执行设定动作,所述虚拟设备由允许执行至少一个相同动作的至少两个智能设备创建,所述设定动作属于至少两个智能设备允许执行的动作;
    指令发送器,配置为按照组播传输方式,向创建所述虚拟设备的至少两个智能设备发送所述设备控制指令,使得创建所述虚拟设备的至少两个智能设备响应所述设备控制指令,而同步执行所述设定动作。
  16. 一种电子设备,包括:至少一个处理器以及至少一个存储器,其中,
    所述存储器上存储有程序指令或代码;
    所述程序指令或代码被所述处理器加载并执行,使得电子设备实现如权利要求1至13中任一项所述的设备控制方法。
  17. 一种存储介质,其上存储有程序指令或代码,所述程序指令或代码被处理器加载并执行,以实现如权利要求1至13中任一项所述的设备控制方法。
PCT/CN2023/089576 2022-04-21 2023-04-20 设备控制方法、装置、电子设备及存储介质 WO2023202678A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210423101.4 2022-04-21
CN202210423101.4A CN114967485A (zh) 2022-04-21 2022-04-21 设备控制方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023202678A1 true WO2023202678A1 (zh) 2023-10-26

Family

ID=82980317

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/089576 WO2023202678A1 (zh) 2022-04-21 2023-04-20 设备控制方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN114967485A (zh)
WO (1) WO2023202678A1 (zh)

Families Citing this family (1)

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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130247033A1 (en) * 2008-12-11 2013-09-19 Harvinder Singh Sawhney System and method for managing virtual machine configurations
CN106997179A (zh) * 2016-01-26 2017-08-01 深圳市领耀东方科技股份有限公司 智能控制平台管理设备的方法和智能控制系统
CN111953520A (zh) * 2020-07-17 2020-11-17 杭州博联智能科技股份有限公司 通过群组虚拟设备实现群体控制的方法、装置、设备及介质
US20210243084A1 (en) * 2020-01-31 2021-08-05 Wyze Labs, Inc. Systems and methods for creating virtual devices
CN113663325A (zh) * 2021-08-31 2021-11-19 腾讯科技(深圳)有限公司 虚拟场景中团队的创建方法、加入方法、装置及存储介质
CN114265344A (zh) * 2021-11-24 2022-04-01 青岛海尔科技有限公司 基于创建虚拟设备组的批量控制的方法、系统及设备
CN114967485A (zh) * 2022-04-21 2022-08-30 深圳绿米联创科技有限公司 设备控制方法、装置、电子设备及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130247033A1 (en) * 2008-12-11 2013-09-19 Harvinder Singh Sawhney System and method for managing virtual machine configurations
CN106997179A (zh) * 2016-01-26 2017-08-01 深圳市领耀东方科技股份有限公司 智能控制平台管理设备的方法和智能控制系统
US20210243084A1 (en) * 2020-01-31 2021-08-05 Wyze Labs, Inc. Systems and methods for creating virtual devices
CN111953520A (zh) * 2020-07-17 2020-11-17 杭州博联智能科技股份有限公司 通过群组虚拟设备实现群体控制的方法、装置、设备及介质
CN113663325A (zh) * 2021-08-31 2021-11-19 腾讯科技(深圳)有限公司 虚拟场景中团队的创建方法、加入方法、装置及存储介质
CN114265344A (zh) * 2021-11-24 2022-04-01 青岛海尔科技有限公司 基于创建虚拟设备组的批量控制的方法、系统及设备
CN114967485A (zh) * 2022-04-21 2022-08-30 深圳绿米联创科技有限公司 设备控制方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN114967485A (zh) 2022-08-30

Similar Documents

Publication Publication Date Title
CN108092861B (zh) 实现设备联动的配置方法、设备联动控制方法及装置
US11546746B2 (en) Method, device, and system for controlling a Bluetooth device over a Bluetooth mesh network
WO2020223854A1 (zh) 设备配网方法、装置、电子设备及存储介质
WO2019222056A1 (en) Bluetooth mesh network provisioning
US20180115612A1 (en) Universal internet of things (iot) smart translator
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
CN108683574A (zh) 一种设备控制方法、服务器和智能家居系统
WO2020181906A1 (zh) 与智能电视交互的方法及装置
CN111459433A (zh) 一种传屏方法、设备及存储介质
CN109617963B (zh) 设备控制方法、装置以及物联网系统
WO2023202678A1 (zh) 设备控制方法、装置、电子设备及存储介质
WO2020168568A1 (zh) 数据处理方法、装置、电子设备及可读存储介质
WO2023024752A1 (zh) 网络优化方法、装置及电子设备
US20210051764A1 (en) Speaker system and network control method thereof
WO2024045985A1 (zh) 屏幕控制方法、屏幕控制装置、电子设备、程序及介质
CN113625589A (zh) 一种设备控制方法、装置、电子设备和存储介质
WO2023226768A1 (zh) 设备控制方法、装置、设备及存储介质
TWI738832B (zh) 基於場景的應用操作方法、裝置、終端設備和操作系統
WO2023216995A1 (zh) 设备控制方法、装置、电子设备及存储介质
WO2024016539A1 (zh) 设备的控制方法、装置、存储介质及电子装置
CN109309965B (zh) 基于云端控制的共用通道的蓝牙通信方法和装置
WO2020081703A1 (en) Method, device, and system for controlling a bluetooth device over a bluetooth mesh network
CN109462841B (zh) 基于共用通道的蓝牙通信方法和装置
WO2024067308A1 (zh) 智能设备控制方法、电子设备及系统
CN117539174A (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: 23791330

Country of ref document: EP

Kind code of ref document: A1