WO2020168571A1 - Device control method, apparatus, system, electronic device and cloud server - Google Patents

Device control method, apparatus, system, electronic device and cloud server Download PDF

Info

Publication number
WO2020168571A1
WO2020168571A1 PCT/CN2019/075947 CN2019075947W WO2020168571A1 WO 2020168571 A1 WO2020168571 A1 WO 2020168571A1 CN 2019075947 W CN2019075947 W CN 2019075947W WO 2020168571 A1 WO2020168571 A1 WO 2020168571A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud server
information
control instruction
scene
vendor
Prior art date
Application number
PCT/CN2019/075947
Other languages
French (fr)
Chinese (zh)
Inventor
刘京强
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201980081076.2A priority Critical patent/CN113170000B/en
Priority to PCT/CN2019/075947 priority patent/WO2020168571A1/en
Publication of WO2020168571A1 publication Critical patent/WO2020168571A1/en

Links

Images

Classifications

    • 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

  • This application relates to the field of smart home technology, and more specifically, to a device control method, device, system, electronic device, and cloud server.
  • a smart scene means that multiple smart devices perform corresponding actions when a certain trigger condition occurs, which can greatly improve user experience.
  • this application proposes a device control method, device, system, electronic device, and cloud server to solve the foregoing problems.
  • an embodiment of the present application provides a device control method, which is applied to an electronic device that accesses a cloud server, and the method includes: responding to a scene trigger event and acquiring device information in a scene corresponding to the scene trigger event,
  • the device information includes the information of the first device and the information of the second device.
  • the first device and the second device belong to different vendors; determine the first vendor cloud server corresponding to the first device and the The second vendor cloud server corresponding to the second device; generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to control the The first control instruction of the first device is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
  • an embodiment of the present application provides a device control method applied to a cloud server accessed by an electronic device, and the method includes: the cloud server receives scene trigger information sent by the electronic device; and acquiring the scene The device information in the scene corresponding to the trigger information, the device information includes the information of the first device and the information of the second device, the first device and the second device belong to different manufacturers; determine the first device The first vendor cloud server corresponding to the device and the second vendor cloud server corresponding to the second device; generate a control instruction based on the scene trigger information, and send the first control instruction for controlling the first device to the The cloud server of the first vendor sends a second control instruction for controlling the second device to the cloud server of the second vendor.
  • the embodiments of the present application provide a device control method, which is applied to a device control system.
  • the device control system includes an electronic device, a cloud server, a first device, a second device, a cloud server of a first manufacturer, and a second device.
  • the cloud server of the manufacturer is respectively communicatively connected with the electronic device, the cloud server of the first manufacturer, and the cloud server of the second manufacturer, and the cloud server of the first manufacturer is communicatively connected with the first device, so
  • the cloud server of the second vendor is in communication connection with the second device, and the method includes: the electronic device responds to a scene trigger event to obtain device information in a scene corresponding to the scene trigger event, and the device information includes all The device information of the first device and the device information of the second device, the first device and the second device belong to different vendors; determine the first vendor's cloud server and the device corresponding to the first device The second manufacturer cloud server corresponding to the second device; generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server; the cloud server uses the control instruction to control the Sending the first control instruction of the first device to the first vendor cloud server, and sending the second control instruction for controlling the second device in the control instruction to the second vendor cloud server;
  • the first vendor cloud server controls the first device to
  • an embodiment of the present application provides a device control device, which is applied to an electronic device that accesses a cloud server, and the device includes: an acquisition module configured to respond to a scene trigger event and acquire a scene corresponding to the scene trigger event
  • the device information in the device information includes the information of the first device and the information of the second device.
  • the first device and the second device belong to different manufacturers; the determining module is used to determine the first device The corresponding first vendor cloud server and the second vendor cloud server corresponding to the second device; a sending module, configured to generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, the The control instruction is used to instruct the cloud server to send a first control instruction for controlling the first device to the first vendor cloud server, and to send a second control instruction for controlling the second device to all The cloud server of the second vendor.
  • an embodiment of the present application provides a device control device, which is applied to a cloud server accessed by an electronic device, and the device includes: a receiving module for the cloud server to receive scene trigger information sent by the electronic device ; Acquisition module for acquiring device information in the scene corresponding to the scene trigger information, the device information including the information of the first device and the information of the second device, the first device and the second device Belonging to different vendors; a determining module, used to determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device; sending module, used to generate control based on the scenario trigger information Instruction, sending a first control instruction for controlling the first device to the first vendor cloud server, and sending a second control instruction for controlling the second device to the second vendor cloud server.
  • an embodiment of the present application provides a device control system, which includes an electronic device, a cloud server, a first device, a second device, a cloud server from a first vendor, and a cloud server from a second vendor.
  • the electronic device, the first vendor cloud server, and the second vendor cloud server are in communication connection, the first vendor cloud server is in communication connection with the first device, and the second vendor cloud server is in communication with the second vendor.
  • a device communication connection wherein: the electronic device is configured to respond to a scene trigger event to obtain device information in a scene corresponding to the scene trigger event, and the device information includes the device information of the first device and the first device Device information of the second device.
  • the first device and the second device belong to different vendors; the electronic device is used to determine the first vendor cloud server and the second device corresponding to the first device The corresponding cloud server of the second manufacturer; the electronic device is configured to generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server; the cloud server is configured to control the The first control instruction for controlling the first device in the instruction is sent to the first vendor cloud server, and the second control instruction for controlling the second device in the control instruction is sent to the second Vendor cloud server; the first vendor cloud server is configured to control the first device to respond based on the first control instruction; the second vendor cloud server is configured to control the plant based on the second control instruction The second device responds.
  • an embodiment of the present application provides an electronic device, including: a memory; one or more processors coupled to the memory; one or more programs, wherein the one or more application programs are Stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method.
  • an embodiment of the present application provides a cloud server, including: a memory; one or more processors coupled to the memory; one or more programs, wherein the one or more application programs are Stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the foregoing method.
  • the device control method, device, system, electronic device, and cloud server provided by the embodiments of the present application respond to a scene trigger event, obtain information about the first device and information about the second device in the scene corresponding to the scene trigger event, and determine the first device
  • the cloud server of the first vendor corresponding to a device and the cloud server of the second vendor corresponding to the second device generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server.
  • the control instruction is used to instruct the cloud server to use
  • the first control instruction for controlling the first device is sent to the cloud server of the first manufacturer
  • the second control instruction for controlling the second device is sent to the cloud server of the second manufacturer, thereby determining the scene in the scene corresponding to the scene trigger event
  • Multiple devices, through the cloud server respectively send control instructions to multiple vendors' cloud servers corresponding to the multiple devices, to achieve linkage control of multiple vendors' devices, and to improve scene linkage efficiency.
  • Figure 1 shows a schematic diagram of a device control system provided by an embodiment of the present application
  • FIG. 2 shows a sequence diagram of a device control method provided by an embodiment of the present application
  • FIG. 3 shows a schematic flowchart of a device control method provided by an embodiment of the present application
  • FIG. 4 shows a schematic flowchart of a device control method provided by another embodiment of the present application.
  • FIG. 5 shows a schematic flowchart of a device control method provided by another embodiment of the present application.
  • FIG. 6 shows a schematic flowchart of a device control method provided by another embodiment of the present application.
  • FIG. 7 shows a schematic flowchart of a device control method provided by another embodiment of the present application.
  • FIG. 8 shows a schematic flowchart of step S604 of the device control method shown in FIG. 7 of the present application
  • FIG. 9 shows a schematic flowchart of a device control method provided by yet another embodiment of the present application.
  • FIG. 10 shows a schematic flowchart of step S708 of the device control method shown in FIG. 9 of the present application
  • FIG. 11 shows a schematic flowchart of a device control method provided by another embodiment of the present application.
  • Fig. 12 shows a block diagram of a device control apparatus provided by an embodiment of the present application.
  • FIG. 13 shows a block diagram of a device control device provided by another embodiment of the present application.
  • FIG. 14 shows a block diagram of an electronic device used to execute the device control method according to the embodiment of the present application
  • FIG. 15 shows a block diagram of a cloud server used to execute the device control method according to the embodiment of the present application
  • Fig. 16 shows a storage unit for storing or carrying program codes for implementing the device control method according to the embodiment of the present application.
  • Smart home connects various devices in the home (such as air conditioners, lights, refrigerators, washing machines, etc.) through the Internet of Things technology to provide home appliance control, lighting control, remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, and HVAC Various controls such as control, infrared forwarding and programmable timing control.
  • the control of various devices can be completed by electronic devices.
  • the control of various devices can be achieved by installing applications from manufacturers corresponding to various devices on the electronic devices, for example, When the smart home includes device A, device B, and device C, and device A belongs to manufacturer A, device B belongs to manufacturer B, and device C belongs to manufacturer C, you need to install the application of manufacturer A in the electronic device to control device A , Install B manufacturer's application program to control B equipment and install C manufacturer's application program to control C equipment.
  • the user when the user expects device A, device B, and device C to interact, they need to enter the application of manufacturer A, the application of manufacturer B, and the application of manufacturer C to operate, and the operation process is cumbersome.
  • the inventor has discovered through long-term research and proposed the device control method, device, system, electronic device, and cloud server provided by the embodiments of the present application.
  • the control instructions are sent to the cloud servers of multiple vendors corresponding to the multiple devices, so as to realize the linkage control of the devices of multiple vendors and improve the efficiency of scene linkage.
  • the specific device control method is described in detail in the subsequent embodiments.
  • FIG. 1 shows a device control system 10 that can be used in the device control method provided by an embodiment of the present application.
  • the device control system 10 includes an electronic device 100, a cloud server 200, a first device 300, and a second device 400 ,
  • the first manufacturer’s cloud server 500 and the second manufacturer’s cloud server 600 wherein the cloud server 200 is respectively connected to the electronic device 100, the first manufacturer’s cloud server 500, and the second manufacturer’s cloud server 600 to realize the communication with the electronic device 100, Data interaction between the cloud server 500 of the first manufacturer and the cloud server 600 of the second manufacturer.
  • the cloud server 500 of the first manufacturer communicates with the first device 300 to realize the data interaction with the first device 300.
  • the cloud server 600 is in communication connection with the second device 400 to realize data interaction with the second device 400.
  • the electronic device 100 can include but is not limited to smart phones, tablet computers, wearable electronic devices, etc.
  • the first device 300 can include, but is not limited to, air conditioners, floor heating, fresh air, curtains, lights, TVs, refrigerators, electric fans, etc.
  • the second device 400 may include, but is not limited to, air conditioners, floor heating, fresh air, curtains, lights, televisions, refrigerators, electric fans, and the like.
  • FIG. 2 shows a sequence diagram of a device control method provided by an embodiment of the present application.
  • the process shown in Figure 2 will be described in detail below.
  • the device control method is applied to a device control system.
  • the device control system includes: an electronic device, a cloud server, a first device, a second device, and a first vendor cloud server And a second-vendor cloud server, the cloud server is respectively connected to the electronic device, the first-vendor cloud server, and the second-vendor cloud server
  • the device control method may include steps S101 to S106.
  • Step S101 The electronic device responds to a scene trigger event to obtain device information in a scene corresponding to the scene trigger event, where the device information includes device information of the first device and device information of the second device, The first device and the second device belong to different manufacturers.
  • the electronic device may preset and store multiple scenarios for the user to select triggering or automatic triggering.
  • the multiple scenes may be manually configured by the user, or automatically configured by the electronic device.
  • the user can set the name of the scene, trigger conditions, included equipment, Configure the tasks to be performed;
  • the electronic device can confirm the use or confirm the trigger to the user in a recommended form, for example, "away from home scene", "at home scene", “get up”
  • the user can modify or delete the scene recommended by the electronic device, which is not limited here.
  • the electronic device when the electronic device stores a scene, it can store scene trigger events corresponding to the scene at the same time. Therefore, the electronic device can monitor the scene trigger event for the scene, and it can be understood that when the scene trigger event is detected, it will make a response corresponding to the scene trigger event.
  • the device information in the scene corresponding to the scene trigger event can be acquired, where the device information in the scene may include multiple devices and linkage relationships of multiple devices And the trigger conditions of multiple devices, for example, when the device information in the scene includes TV, air conditioner, light and curtain, then the linkage relationship of the multiple devices can include TV on, air conditioner on, light on, and curtain off, and The trigger conditions for the multiple devices may include when the TV is on, the air conditioner is on, the lights are on, and the curtains are off.
  • the device information can include the information of the first device and the second device , And the first device and the second device belong to different manufacturers.
  • the scene trigger event may include at least one of a touch operation trigger event, a timing trigger event, a device state trigger event, and a voice trigger event.
  • Step S102 Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device may be determined respectively.
  • the scene corresponding to the scene trigger event can be configured corresponding to the first device during configuration.
  • the corresponding first manufacturer and the second manufacturer corresponding to the second device can be understood that after the first manufacturer corresponding to the first device is determined, the first manufacturer cloud server corresponding to the first manufacturer can be determined correspondingly , That is, determine the first vendor cloud server corresponding to the first device.
  • you can correspondingly determine the second vendor cloud server corresponding to the second vendor that is, determine the The second vendor cloud server corresponding to the second device.
  • the correspondence between the device and the vendor's cloud server can be established, for example, the correspondence between the first device and the first vendor's cloud server and the second device
  • the corresponding relationship between the cloud server of the second manufacturer and the second vendor’s cloud server, and the corresponding relationship is stored locally in the electronic device. Therefore, after acquiring the first device and the second device in the scene corresponding to the scene trigger event, it is based on the stored The correspondence relationship may determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • Step S103 Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server.
  • the electronic device responds to the scene trigger event to realize the linkage control of the first device and the second device included in the scene corresponding to the scene trigger event. Therefore, the first device and the second device can be controlled according to the scene set in the scene.
  • the linkage relationship between a device and a second device controls the first device and the second device to respond respectively.
  • the electronic device can generate a control instruction based on the scene trigger event, where the control instruction can be used to control the first device and the second device, and then send the control instruction to the cloud connected to the electronic device via the network Server, it is understandable that the electronic device may send the control instruction to the cloud server via a wireless network or a data network, where when the electronic device sends the control instruction to the cloud server via a data network, the data network may include a 2G network, 3G network or 4G network, etc., are not limited here.
  • Step S104 The cloud server sends the first control instruction used to control the first device in the control instruction to the first vendor cloud server, and uses the control instruction to control the second device
  • the second control instruction of is sent to the cloud server of the second manufacturer.
  • the control instruction may include the control instruction of the first device and the control instruction of the second device at the same time, that is, the control instruction can realize the control of the first device and the second device at the same time. Therefore, the cloud server can send the control instruction to the cloud server of the first vendor and the cloud server of the second vendor, and then the cloud server of the first vendor analyzes the control instruction to extract the first control instruction pair for the first device The first device is controlled. Similarly, the cloud server of the second manufacturer analyzes the control instruction, and extracts the second control instruction for the second device to control the second device.
  • control instruction may respectively include a first control instruction for controlling the first device and a second control instruction for controlling the second device. Therefore, the cloud server may use the control instruction for controlling the first device.
  • the first control instruction is sent to the cloud server of the first vendor
  • the second control instruction for controlling the second device is sent to the cloud server of the second vendor, simplifying the analysis and extraction operations of the cloud server of the first vendor and the cloud server of the second vendor.
  • Step S105 The first vendor cloud server controls the first device to respond based on the first control instruction.
  • the first vendor cloud server controls the first device to respond based on the first control instruction. For example, if the first device is an air conditioner, and the first control instruction includes "adjust the air conditioner to 26°", then the cloud server of the first manufacturer corresponding to the first device can adjust the temperature of the air conditioner to 26 based on the first control instruction. °.
  • Step S106 The second vendor cloud server controls the second device to respond based on the second control instruction.
  • the cloud server of the second manufacturer controls the second device to respond based on the second control instruction. For example, if the second device is a TV, and the second control instruction includes "turn on the TV", then the cloud server of the second manufacturer corresponding to the second device can turn on the TV based on the second control instruction.
  • the electronic device responds to the scene trigger event, and the first device and the second device of different manufacturers in the scene corresponding to the scene trigger event can be controlled to respond at the same time, that is, Cross-vendor device control is realized through electronic devices, which facilitates the setting and control of linkage scenes.
  • the electronic device responds to a scene trigger event to obtain device information in the scene corresponding to the scene trigger event.
  • the device information includes information about a first device and information about a second device.
  • the first device And the second device belong to a different vendor, determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device, generate a control instruction based on the scenario trigger event, and send the control instruction to the cloud server,
  • the cloud server sends the first control instruction for controlling the first device in the control instruction to the cloud server of the first manufacturer, and sends the second control instruction for controlling the second device in the control instruction to the cloud server of the second manufacturer,
  • the cloud server of the first vendor controls the first device to respond based on the first control instruction
  • the cloud server of the second vendor controls the second device to respond based on the second control instruction, thereby determining the scene in the scene corresponding to the scene trigger event
  • FIG. 3 shows a schematic flowchart of a device control method according to an embodiment of the present application.
  • the device control method is applied to the device control apparatus 700 shown in FIG. 12 and the electronic device 100 (as shown in FIG. 14) equipped with the device control device 700, wherein the electronic device Communication and connection with the cloud server, the following will take an electronic device as an example to illustrate the specific process of this embodiment.
  • the flow shown in FIG. 3 will be described in detail below, and the device control method may include steps S201 to S203.
  • Step S201 In response to a scene trigger event, obtain device information in a scene corresponding to the scene trigger event.
  • the device information includes information about a first device and information about a second device.
  • the first device and the second device The equipment belongs to different manufacturers.
  • Step S202 Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • Step S203 Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
  • step S201 to step S203 please refer to step S101 to step S106, which will not be repeated here.
  • the device control method responds to a scene trigger event, obtains information of the first device and information of the second device in the scene corresponding to the scene trigger event, and determines the first vendor cloud server corresponding to the first device
  • the cloud server of the second manufacturer corresponding to the second device generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to control the first control of the first device
  • the instruction is sent to the cloud server of the first vendor, and the second control instruction for controlling the second device is sent to the cloud server of the second vendor, so that multiple devices in the scene corresponding to the scene trigger event are determined, and the cloud server transmits
  • the control instructions are respectively sent to the cloud servers of multiple vendors corresponding to multiple devices to realize the linkage control of multiple vendors' devices and improve the efficiency of scene linkage.
  • FIG. 4 shows a schematic flowchart of a device control method according to another embodiment of the present application.
  • the process shown in FIG. 4 will be described in detail below, and the device control method may include steps S301 to S306.
  • Step S301 The electronic device displays scene controls.
  • the scene trigger event is a touch operation trigger event.
  • the electronic device displays scene controls, where the scene controls can be displayed in the form of cards or buttons, which is not limited here.
  • the number of scene controls displayed by the electronic device can be selected according to the number of configured scenes. For example, when the number of configured scenes is 6, 6 scene controls can be displayed; when the number of configured scenes is When the number is 10, you can choose to display the scene controls corresponding to 8 of the scenes, and hide the scene controls corresponding to the 2 scenes, and display the corresponding hidden 2 scenes when the user touches the designated position or triggers the designated operation Scene controls.
  • the order in which the electronic device displays the scene controls can be arranged from front to back according to the frequency of the user's touch operation, the user's preference, the priority set by the user, etc., which will not be repeated here.
  • Step S302 Detect a touch operation acting on the scene control.
  • the electronic device detects the touch operation acting on the scene control, where the touch operation may include single-finger tap, multi-finger tap, single-finger long press, single-finger long press, and multi-finger long press , Heavy pressure, multiple clicks, sliding operations, pressing area, etc.
  • the single-finger click refers to the operation of clicking on the scene control with a single finger
  • the multi-finger clicking refers to the simultaneous clicking of multiple fingers on the scene control Operation
  • single-finger long press means that a single finger presses on the scene control for longer than the preset time
  • multi-finger long press means that multiple fingers press on the scene control at the same time for longer than the preset time
  • heavy press means that the pressing force on the scene control exceeds Preset strength
  • multiple clicks means that the number of clicks within a preset time exceeds the preset number of times
  • sliding operation refers to the operation of sliding a single finger on the scene control
  • pressing area means that the pressing area of a single finger on the scene control exceed
  • Step S303 Determine whether the touch operation conforms to the specified touch operation.
  • the electronic device may be provided with a designated touch operation, and the designated touch operation is used as a basis for determining the touch operation detected by the electronic device.
  • the designated touch operation can be pre-stored locally by the electronic device, or can be set at the time of judgment.
  • the designated touch operation can be automatically configured by the electronic device, can be manually set by the user, or It can be transmitted to the electronic device after the server configuration is completed, which is not limited here. Therefore, in this embodiment, after detecting the touch operation, the electronic device can compare the touch operation with the designated touch operation to determine whether the touch operation meets the designated touch operation.
  • Step S304 When the touch operation conforms to the specified touch operation, in response to the touch operation, obtain device information in the scene corresponding to the touch operation trigger event, where the device information includes the first device And the information of the second device, the first device and the second device belong to different manufacturers.
  • the electronic device when it is determined that the touch operation conforms to the specified touch operation, it can be determined that the user corresponding to the electronic device has triggered the touch operation trigger event. Therefore, the electronic device can respond to the touch operation to obtain information corresponding to the touch operation trigger event. Device information in the scene.
  • Step S305 Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • Step S306 Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
  • step S304 to step S306 please refer to step S101 to step S106, which will not be repeated here.
  • an electronic device displays a scene control, detects a touch operation acting on the scene control, and determines whether the touch operation conforms to a specified touch operation, and when the touch operation conforms to the specified touch operation During the control operation, in response to the touch operation, obtain the information of the first device and the information of the second device in the scene corresponding to the touch operation trigger event, and determine that the first manufacturer's cloud server corresponding to the first device corresponds to the second device
  • the second manufacturer’s cloud server generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the first
  • the vendor cloud server sends the second control instruction for controlling the second device to the second vendor cloud server.
  • this embodiment can also trigger a scene through a touch operation, which improves the efficiency of scene triggering.
  • FIG. 5 shows a schematic flowchart of a device control method provided by another embodiment of the present application.
  • the process shown in FIG. 5 will be described in detail below, and the device control method may include steps S401 to S405.
  • Step S401 Detect the current time.
  • the scene trigger event is a timing trigger event.
  • the current time can be detected through a timer built into the electronic device.
  • Step S402 Determine whether the current time reaches a designated time.
  • the electronic device may be set with a designated time, and the designated time is used as a basis for determining the current time detected by the electronic device.
  • the designated time can be pre-stored locally by the electronic device, or can be set at the time of judgment.
  • the designated time can be automatically configured by the electronic device, manually set by the user, or configured by the server After completion, it is transmitted to the electronic device, which is not limited here. Therefore, in this embodiment, after detecting the current time, the electronic device can compare the current time with the designated time to determine whether the current time reaches the designated time.
  • the designated time may be 6 pm (home time), or 7 am (time away from home), etc.
  • Step S403 When the current time reaches the specified time, in response to the current time, obtain device information in the scene corresponding to the timing trigger event, where the device information includes the information of the first device and the second device , The first device and the second device belong to different manufacturers.
  • the electronic device can respond to the current time to obtain device information in the scene corresponding to the timing trigger event.
  • Step S404 Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • Step S405 Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
  • step S403 to step S405 please refer to step S101 to step S106, which will not be repeated here.
  • the device control method provided by another embodiment of the present application detects the current time and determines whether the current time reaches the specified time, and when the current time reaches the specified time, responds to the current time to obtain the first device in the scene corresponding to the timing trigger event
  • the control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the cloud server of the first manufacturer, and send the second control instruction for controlling the second device to the cloud server of the second manufacturer.
  • this embodiment can also trigger the scene periodically to improve the efficiency of scene triggering.
  • FIG. 6 shows a schematic flowchart of a device control method provided by another embodiment of the present application.
  • the flow shown in FIG. 6 will be described in detail below, and the device control method may include steps S501 to S506.
  • Step S501 Obtain the target device, and generate a subscription device event based on the target device.
  • the scene trigger event is a device state trigger event.
  • one device or several devices can be selected from multiple devices as the target device, where the target device may be the first device and/or the second device, or may be other than the first device and the second device. Other equipment is not limited here.
  • the target device is acquired, and a subscribed device event is generated based on the target device, where the subscribed device event is used to instruct the target cloud server corresponding to the target device to feed back a status confirmation when the status information of the target device meets the specified status information Information, that is, the target cloud server can monitor the state information of the target device based on the subscribed device event, and compare the state information with the specified state information in real time. When it is determined that the state information matches the specified state information, generate The status confirmation information is fed back to the cloud server connected to the electronic device to instruct the cloud server to send the status confirmation information to the electronic device.
  • Step S502 Determine the target cloud server corresponding to the target device.
  • the target cloud server corresponding to the target device can be determined.
  • the target vendor and/or target cloud server corresponding to the target device can be configured and stored at the same time. Therefore, it can be based on the target vendor and/or target cloud server corresponding to the pre-configured target device.
  • the cloud service determines the target cloud server corresponding to the target device.
  • Step S503 Send the subscription device event to the cloud server, and instruct the cloud server to send the subscription device event to the target cloud server, and the subscription device event is used to indicate that the target cloud server is in the When the status information of the target device conforms to the specified status information, the status confirmation information is fed back.
  • the electronic device can send the subscription device event to the cloud server connected to the electronic device via the network. It is understandable that the electronic device can send the subscription device time to the cloud server via a wireless network or a data network.
  • the data network may include a 2G network, a 3G network, or a 4G network, etc., which is not limited here.
  • the cloud server can obtain the target server corresponding to the target device contained in the subscription device event, and then send the subscription device event to the target cloud server to indicate the target The cloud server feeds back the status confirmation information when the status information of the target device meets the specified status information.
  • Step S504 When receiving the status confirmation information of the corresponding target device sent by the cloud server, respond to the status confirmation information to obtain the device information in the scene corresponding to the device status trigger event, and the device information includes the first Information about a device and information about a second device, the first device and the second device belong to different manufacturers.
  • the cloud server After the cloud server receives the status confirmation information fed back by the target cloud server, it will send the device status information to the electronic device. Therefore, the electronic device can monitor the status confirmation information and receive the status confirmation information. When confirming the information, in response to the status confirmation information, the device information in the scene corresponding to the device status trigger event is obtained.
  • Step S505 Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • Step S506 Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
  • step S504 to step S506 please refer to step S101 to step S106, which will not be repeated here.
  • the device control method obtaineds a target device and generates a subscription device event based on the target device, determines the target cloud server corresponding to the target device, sends the subscription device event to the cloud server, and instructs the cloud server to
  • the subscribed device event is sent to the target cloud server, and the subscribed device event is used to instruct the target cloud server to feed back status confirmation information when the target device's status information meets the specified status information, and when the target device status confirmation information sent by the cloud server is received
  • obtain the information of the first device and the information of the second device in the scene corresponding to the device status trigger event obtain the information of the first device and the information of the second device in the scene corresponding to the device status trigger event, and determine the first vendor cloud server corresponding to the first device and the second device corresponding to the second device.
  • the vendor cloud server generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the first vendor cloud server , Sending the second control instruction for controlling the second device to the cloud server of the second manufacturer.
  • this embodiment can also trigger scenes based on the device status, which improves the efficiency of scene triggering.
  • FIG. 7 shows a schematic flowchart of a device control method provided by yet another embodiment of the present application.
  • the flow shown in FIG. 7 will be described in detail below, and the device control method may include steps S601 to S604.
  • Step S601 Detect the voice information input to the electronic device.
  • the scene trigger event is a voice trigger event.
  • the electronic device can collect the input voice information through a built-in sound collection device, where the sound collection device can be a microphone or a recording device of the electronic device.
  • the voice information input to the electronic device includes but is not limited to the voice information input by the user, the voice information generated by the environment, the voice information input by other electronic devices, etc., optionally, in this embodiment, the voice information of the electronic device is input to the user Perform testing.
  • Step S602 Extract the voice content of the voice information.
  • the voice content in the voice information is extracted, for example, keywords in the voice information are extracted.
  • the sentence corresponding to the voice information can be segmented to obtain multiple phrases, and then the content of each phrase can be obtained separately; as another way, the sentence corresponding to the voice information can be directly recognized to obtain the The voice content of the voice message.
  • Step S603 Determine whether the voice content includes designated voice content.
  • the electronic device may be provided with designated voice content, and the designated voice content is used as a judgment basis for the voice content extracted by the electronic device.
  • the designated voice content can be pre-stored locally by the electronic device, or it can be set at the time of judgment.
  • the designated voice content can be automatically configured by the electronic device, manually set by the user, or by After the server configuration is completed, it is transmitted to the electronic device, which is not limited here. Therefore, in this embodiment, after the voice content in the voice information is obtained, the voice content can be compared with the specified voice content to determine whether the voice content includes the specified voice content. For example, if the specified voice content is "start the first scene" and the voice content is "please start the first scene", then it can be determined that the voice content includes the specified voice content.
  • Step S604 When the voice content includes the specified voice content, respond to the voice information to obtain device information in the scene corresponding to the voice trigger event, and the device information includes the information of the first device and the second device. Information about the device, the first device and the second device belong to different manufacturers.
  • the electronic device can respond to the voice information to obtain device information in the scene corresponding to the voice trigger event.
  • FIG. 8 shows a schematic flowchart of step S604 of the device control method shown in FIG. 7 of the present application.
  • the process shown in FIG. 8 will be described in detail below, and the method may specifically include the following steps:
  • Step S6041 When the voice content includes the designated voice content, extract voiceprint information of the voice information.
  • the electronic device may also extract voiceprint information in the voice information.
  • the voiceprint is the sound wave spectrum carrying speech information that can be displayed by electroacoustic instruments. It is understandable that the production of human language is a complex physiological and physical process between the human language center and the vocal organs.
  • the voice used by people in speech The organs-tongue, teeth, throat, lungs, and nasal cavity are very different in size and shape from each person, so the voiceprint patterns of any two people are different.
  • the acoustic characteristics of each person's voice have both relative stability and variability, and they are not absolute and static.
  • This variation can come from physiology, pathology, psychology, simulation, camouflage, and is also related to environmental interference. Nevertheless, because everyone’s vocal organs are different, in general, people can still distinguish different people’s voices or judge whether they are the same person’s voice.
  • Step S6042 Determine whether the voiceprint information matches the specified voiceprint information.
  • the electronic device may be provided with designated voiceprint information, and the designated voiceprint information is used as a judgment basis for the voiceprint information extracted from the voice information input to the electronic device.
  • the specified voiceprint information may be real user voiceprint information corresponding to the electronic device. Therefore, after obtaining the voiceprint information of the voice information, the voiceprint information may be compared with the specified voiceprint information to determine Whether the input voice information is the real user of the electronic device, it is understandable that when the voiceprint information matches the specified voiceprint information, it can be determined that the voice information input to the electronic device is the real user input of the electronic device; when the voiceprint information When the specified voiceprint information does not match, it can be determined that the voice information input to the electronic device is not a real user input of the electronic device.
  • Step S6043 When the voiceprint information matches the specified voiceprint information, respond to the voice information to obtain device information in the scene corresponding to the voice trigger event.
  • the device in the scene corresponding to the voice trigger event can be obtained in response to the voice information information.
  • Step S605 Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • Step S606 Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
  • step S604 to step S606 please refer to step S101 to step S106, which will not be repeated here.
  • the device control method provided in yet another embodiment of the present application detects voice information input to an electronic device, extracts the voice content of the voice information, and determines whether the voice content includes specified voice content.
  • the voice content includes the specified voice content
  • the sound According to the voice information, obtain the information of the first device and the information of the second device in the scene corresponding to the voice trigger event, and determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device,
  • a control instruction is generated based on the scene trigger event, and the control instruction is sent to the cloud server.
  • the control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the cloud server of the first manufacturer.
  • the second control instruction for controlling the second device is sent to the cloud server of the second manufacturer.
  • this embodiment can also trigger scenes through voice to improve scene triggering efficiency.
  • FIG. 9 shows a schematic flowchart of a device control method provided by yet another embodiment of the present application.
  • the flow shown in FIG. 9 will be described in detail below.
  • the device control method may include step S701 to step S709:
  • Step S701 In response to a scene trigger event, obtain device information in a scene corresponding to the scene trigger event.
  • the device information includes information about a first device and information about a second device.
  • the first device and the second device The equipment belongs to different manufacturers.
  • Step S702 Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • step S701-step S702 please refer to step S101-step S102, which will not be repeated here.
  • Step S703 Obtain the target state information of the first device and the target state information of the second device configured in the scene corresponding to the scene trigger event.
  • the target state information of the device in the scene will be configured, that is, the state information that the device is expected to reach.
  • the target state information of the first device and the target state information of the second device can be configured in the scene corresponding to the scene trigger event.
  • the first device is an air conditioner
  • the second device is a TV
  • the target status information of the second device is "26°"
  • the target status information of the second device is "open”.
  • Step S704 Acquire current state information of the first device and current state information of the second device.
  • the current status information of the first device can be monitored through the cloud server of the first manufacturer and fed back to the electronic device through the cloud server, and the current status information of the second device can be monitored through the cloud server of the second manufacturer and passed through the cloud server Feedback to electronic equipment.
  • the current state information of the first device and the current state information of the second device may be acquired in real time, may be acquired at predetermined intervals, or may be acquired in response to a scene trigger event, which is not limited here.
  • Step S705 Determine whether the target state information of the first device is consistent with the current state information of the first device, and determine whether the target state information of the second device is consistent with the current state information of the second device, Obtain the judgment result.
  • the first device is an air conditioner and the target status information is "26°”, if the current status information of the first device is "26°”, then the target of the first device The status information is consistent with the current status information. If the current status information of the first device is "20°", then the target status information of the first device is inconsistent with the current status information.
  • Step S706 When the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device, and the target state information of the second device is inconsistent with the current state information of the second device, A control instruction is generated based on the scene trigger event and the judgment result, and the control instruction is sent to the cloud server. The control instruction is used to instruct the cloud server to control the first device of the first device. The control instruction is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
  • the control instruction includes a first control instruction for controlling the first device and a second control instruction for controlling the second device, and the first control instruction is sent to
  • the cloud server of the first vendor instructs the cloud server of the first vendor to adjust the current state of the first device to the target state, and sends the second control instruction to the cloud server of the second vendor to instruct the cloud server of the second vendor to change the current state of the second device
  • the state is adjusted to the target state.
  • Step S707 Monitor the feedback information sent by the cloud server.
  • the cloud server sends the first control instruction to the cloud server of the first manufacturer, and if the sending of the first instruction fails, the cloud server sends feedback information to the electronic device; similarly, the cloud server sends the second control instruction to the cloud server of the second manufacturer For the server, if the sending of the second instruction fails, the cloud server sends feedback information to the electronic device. Therefore, as a way, the electronic device monitors the feedback information sent by the cloud server.
  • Step S708 When it is monitored that the feedback information indicates that the control instruction has failed to be sent, the control instruction is re-sent to the cloud server through the delayed backoff algorithm, and the control instruction is used to instruct the cloud server to use
  • the first control instruction for controlling the first device is sent to the first vendor cloud server
  • the second control instruction for controlling the second device is sent to the second vendor cloud server.
  • the control instruction can be re-sent to the cloud server to instruct the cloud server to control the first control of the first device in the control instruction.
  • the instruction is sent to the cloud server of the first manufacturer, and the second control instruction for controlling the second device is sent to the cloud server of the second manufacturer.
  • the control instruction can be re-sent through the delayed backoff algorithm, and when the number of re-sending instructions reaches a specified number of times, the re-sending is stopped, where the specified number of times may include 3 times.
  • FIG. 10 shows a schematic flowchart of step S708 of the device control method shown in FIG. 9 of the present application.
  • the following will elaborate on the process shown in FIG. 10, and the method may specifically include the following steps:
  • Step S7081 When it is monitored that the feedback information indicates that the control instruction has failed to be sent, it is determined whether the scene trigger event meets the specified trigger event.
  • the specified trigger event may include a timing trigger event and a device state trigger event.
  • Step S7082 When the trigger event matches the specified trigger event, re-send the control instruction to the cloud server through the delayed backoff algorithm, and the control instruction is used to instruct the cloud server to be used to control the first A first control instruction for a device is sent to the first vendor cloud server, and a second control instruction for controlling a second device is sent to the second vendor cloud server.
  • the instruction information can be re-sent.
  • Step S709 When the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device and the target state information of the second device is consistent with the current state information of the second device , Generate the first control instruction based on the scene trigger event and the judgment result, and send the first control instruction to the cloud server, and the first control instruction is used to instruct the cloud server to The first control instruction is sent to the first device.
  • the first control instruction used to control the first device based on the trigger event and the judgment result can be used to send the first control instruction to the cloud server of the first manufacturer to instruct the cloud server of the first manufacturer to The current state of the first device is adjusted to the target state.
  • the device control method responds to a scene trigger event, obtains information about a first device and a second device in a scene corresponding to the scene trigger event, and determines the first vendor cloud corresponding to the first device
  • the second vendor cloud server corresponding to the server and the second device obtains the target state information of the first device and the target state information of the second device configured in the scene corresponding to the scene trigger event, and obtains the current state information of the first device and The current state information of the second device, when the target state information of the first device is inconsistent with the current state information and the target state information of the second device is inconsistent with the current state information, a control instruction is generated and sent to the cloud server,
  • the control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the cloud server of the first manufacturer, and send the second control instruction for controlling the second device to the cloud server of the second manufacturer, and If the transmission fails, it is retransmitted through the delayed backoff algorithm.
  • the first control instruction is generated and the second device is A control instruction is sent to the cloud server, and the first control instruction is used to instruct the cloud server to send the first control instruction to the cloud server of the first manufacturer.
  • this embodiment monitors the device status in the scene, and when the status information meets the conditions, no control instruction is sent, which reduces the amount of data transmission.
  • FIG. 11 shows a schematic flowchart of a device control method according to another embodiment of the present application.
  • the device control method is applied to the device control device 800 shown in FIG. 13 and the cloud server 200 (FIG. 15) configured with the device control device 800, and the following will focus on the device control device 800 shown in FIG.
  • the process is described in detail, and the device control method may include step S801-step S804:
  • Step S801 The cloud server receives the scene trigger information sent by the electronic device.
  • the electronic device generates scene trigger information in response to the scene trigger event, and sends the scene trigger information to the cloud server to process the scene trigger information through the cloud server.
  • Step S802 Obtain device information in the scene corresponding to the scene trigger information.
  • the device information includes information about a first device and information about a second device.
  • the first device and the second device belong to different Vendor.
  • Step S803 Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • Step S804 Generate a control instruction based on the scene trigger information, send the first control instruction for controlling the first device to the first vendor cloud server, and set the second control instruction for controlling the second device The instruction is sent to the cloud server of the second manufacturer.
  • step S801 to step S804 please refer to step S101 to step S106, which will not be repeated here.
  • the cloud server receives the scene trigger information sent by the electronic device, obtains the information of the first device and the information of the second device in the scene corresponding to the scene trigger information, and determines the first device
  • the corresponding cloud server of the first vendor and the cloud server of the second vendor corresponding to the second device generate control instructions based on the scene trigger event, and send the first control instruction for controlling the first device to the cloud server of the first vendor, and use
  • the second control instruction for controlling the second device is sent to the cloud server of the second manufacturer.
  • this embodiment can also trigger a scene through a touch operation, which improves the efficiency of scene triggering.
  • FIG. 12 shows a block diagram of a device control apparatus 700 according to an embodiment of the present application.
  • the device control apparatus 700 is applied to the above-mentioned electronic device 100. The following will describe the block diagram shown in FIG. 12.
  • the device control apparatus 700 includes: an acquisition module 710, a determination module 720, and a sending module 730, wherein:
  • the acquisition module 710 is configured to respond to a scene trigger event and acquire device information in a scene corresponding to the scene trigger event.
  • the device information includes information about the first device and information about the second device.
  • the second device belongs to a different manufacturer.
  • the acquisition module 710 includes: a scene control display submodule, a touch operation detection submodule, a touch operation judgment submodule, and a touch operation response submodule ,among them:
  • the scene control display sub-module is used for the electronic device to display the scene control.
  • the touch operation detection sub-module is used to detect the touch operation acting on the scene control.
  • the touch operation judging sub-module is used to judge whether the touch operation meets the specified touch operation.
  • the touch operation response sub-module is configured to respond to the touch operation when the touch operation matches the specified touch operation, and obtain device information in the scene corresponding to the touch operation trigger event.
  • the acquisition module 710 includes: a time detection sub-module, a time judgment sub-module, and a time response sub-module, wherein:
  • Time detection sub-module used to detect the current time.
  • the time judgment sub-module is used for whether the current time reaches the specified time.
  • the time response submodule is configured to respond to the current time when the current time reaches the specified time, and obtain device information in the scene corresponding to the timing trigger event.
  • the acquisition module 710 includes: a target device acquisition submodule, a target cloud server determination submodule, a subscription device event sending submodule, and a status information response submodule, where :
  • the target device acquisition sub-module is used to acquire the target device and generate subscription device events based on the target device.
  • the target cloud server determining sub-module is used to determine the target cloud server corresponding to the target device.
  • the subscription device event sending submodule is used to send the subscription device event to the cloud server, and instruct the cloud server to send the subscription device event to the target cloud server, and the subscription device event is used to instruct all
  • the target cloud server feeds back the status confirmation information when the status information of the target device meets the specified status information.
  • the status information response submodule is configured to respond to the status confirmation information and obtain the device information in the scene corresponding to the device status trigger event when receiving the status confirmation information corresponding to the target device sent by the cloud server.
  • the acquisition module 710 includes: a voice information detection submodule, a voice content extraction submodule, a voice content judgment submodule, and a voice information response submodule, wherein:
  • the voice information detection sub-module is used to detect voice information input to the electronic device.
  • the voice content extraction sub-module is used to extract the voice content of the voice information.
  • the voice content judgment sub-module is used to judge whether the voice content includes specified voice content.
  • the voice information response sub-module is configured to respond to the voice information when the voice content includes the specified voice content, and obtain device information in a scene corresponding to the voice trigger event. Further, the voice information response submodule includes: a voiceprint information extraction unit, a voiceprint information judgment unit, and a voice information response unit, wherein:
  • the voiceprint information extraction unit is configured to extract voiceprint information of the voice information when the voice content includes the specified voice content.
  • the voiceprint information judging unit is used to judge whether the voiceprint information matches the specified voiceprint information.
  • the voice information response unit is configured to respond to the voice information when the voiceprint information matches the specified voiceprint information, and obtain device information in a scene corresponding to the voice trigger event.
  • the determining module 720 is configured to determine a first vendor cloud server corresponding to the first device and a second vendor cloud server corresponding to the second device.
  • the sending module 730 is configured to generate a control instruction based on the scene trigger event and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to control the first device of the first device A control instruction is sent to the cloud server of the first vendor, and a second control instruction for controlling the second device is sent to the cloud server of the second vendor. Further, the sending module 730 includes: a target status information acquisition submodule, a current status information acquisition submodule, a status information judgment submodule, a first sending submodule, and a second sending submodule, wherein:
  • the target state information acquisition sub-module is configured to acquire the target state information of the first device and the target state information of the second device configured in the scene corresponding to the scene trigger event.
  • the current status information acquisition submodule is used to acquire the current status information of the first device and the current status information of the second device.
  • the state information judging sub-module is used to judge whether the target state information of the first device is consistent with the current state information of the first device, and to judge whether the target state information of the second device is consistent with that of the second device.
  • the current status information is consistent, and the judgment result is obtained.
  • the first sending submodule is used for when the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device and the target state information of the second device is the same as the current state information of the second device
  • a control instruction is generated based on the scene trigger event and the judgment result, and the control instruction is sent to the cloud server.
  • the control instruction is used to instruct the cloud server to control the first
  • a first control instruction for a device is sent to the first vendor cloud server, and a second control instruction for controlling the second device is sent to the second vendor cloud server.
  • the second sending submodule is used for when the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device and the target state information of the second device is the same as that of the second device
  • the first control instruction is generated based on the scene trigger event and the judgment result, and the first control instruction is sent to the cloud server, and the first control instruction is used to instruct all
  • the cloud server sends the first control instruction to the first device.
  • the device control apparatus 700 further includes: a monitoring module and a control module, wherein:
  • the monitoring module is used to monitor the feedback information sent by the cloud server.
  • the control module is configured to re-send the control instruction to the cloud server through a delayed backoff algorithm when the feedback information indicates that the control instruction has failed to be sent, and the control instruction is used to instruct the cloud server
  • the first control instruction for controlling the first device is sent to the first vendor cloud server
  • the second control instruction for controlling the second device is sent to the second vendor cloud server.
  • the control module includes: a trigger event judgment sub-module and a control sub-module, wherein:
  • the trigger event judging sub-module is used to judge whether the scene trigger event conforms to the specified trigger event when the feedback information indicates that the control instruction has failed to be sent.
  • the control sub-module is configured to re-send the control instruction to the cloud server through the delayed backoff algorithm when the trigger event matches the specified trigger event, and the control instruction instructs the cloud server to be used for control
  • the first control instruction of the first device is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
  • FIG. 13 shows a block diagram of a device control apparatus 800 according to another embodiment of the present application.
  • the device control device 800 is applied to the above-mentioned cloud server 200. The following will describe the block diagram shown in FIG. 13.
  • the device control device 800 includes: a receiving module 810, an acquiring module 820, a determining module 830, and a sending module 840, wherein: receive
  • the receiving module 810 is configured to receive the scene trigger information sent by the electronic device by the cloud server.
  • the acquiring module 820 is configured to acquire device information in the scene corresponding to the scene trigger information.
  • the device information includes the information of the first device and the information of the second device.
  • the first device and the second device Belong to different manufacturers.
  • the determining module 830 is configured to determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
  • the sending module 840 is configured to generate a control instruction based on the scene trigger information, send a first control instruction for controlling the first device to the first vendor cloud server, and send a control instruction for controlling the second device
  • the second control instruction is sent to the cloud server of the second manufacturer.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • an embodiment of the present application also provides a device control system 10, which includes an electronic device 100, a cloud server 200, a first device 300, a second device 400, a first vendor cloud server 500, and a second vendor cloud server 600.
  • the cloud server 200 is in communication connection with the electronic device 100, the first vendor cloud server 500, and the second vendor cloud server 600, and the first vendor cloud server 500 is in communication connection with the first device 300,
  • the second vendor cloud server 600 is in communication connection with the second device 400, wherein:
  • the electronic device 100 is configured to respond to a scene trigger event and obtain device information in a scene corresponding to the scene trigger event.
  • the device information includes the device information of the first device 300 and the device information of the second device 400 Device information, the first device 300 and the second device 400 belong to different manufacturers.
  • the electronic device 100 is configured to determine the first vendor cloud server 500 corresponding to the first device 300 and the second vendor cloud server 600 corresponding to the second device 400.
  • the electronic device 100 is configured to generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server 200.
  • the cloud server 200 is configured to send the first control instruction used to control the first device 300 in the control instruction to the first vendor cloud server 500, and use the control instruction to control the The second control instruction of the second device 400 is sent to the second vendor cloud server 600.
  • the first vendor cloud server 500 is configured to control the first device 300 to respond based on the first control instruction.
  • the second vendor cloud server 600 is configured to control the second device 400 to respond based on the second control instruction.
  • FIG. 14 shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or an e-book.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a screen 130, and one or more application programs, of which one or more application programs may be stored in the memory 120 and configured To be executed by one or more processors 110, one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the electronic device 100 may adopt at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may be integrated with one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc.
  • the data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
  • the screen 130 may be a liquid crystal display (Liquid Crystal Display, LCD), may be an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • LCD Liquid Crystal Display
  • OLED Organic Light-Emitting Diode
  • the screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof. constitute.
  • FIG. 15 shows a structural block diagram of a cloud server 200 according to an embodiment of the present application.
  • the cloud server 200 in this application may include one or more of the following components: a processor 210, a memory 220, and one or more application programs.
  • One or more application programs may be stored in the memory 220 and configured to be Or multiple processors 210 execute, and one or more programs are configured to execute the method described in the foregoing method embodiment.
  • the processor 210 and the memory 220 please refer to the descriptions of the processor 110 and the memory 120, which will not be repeated here.
  • FIG. 16 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 900 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 900 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 900 has storage space for the program code 910 for executing any method steps in the above-mentioned methods. These program codes can be read out from or written into one or more computer program products.
  • the program code 910 may be compressed in an appropriate form, for example.
  • the device control method, device, system, electronic device, and cloud server respond to a scene trigger event to obtain information about the first device and information about the second device in the scene corresponding to the scene trigger event.
  • Information determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device, generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct
  • the cloud server sends the first control instruction for controlling the first device to the cloud server of the first manufacturer, and sends the second control instruction for controlling the second device to the cloud server of the second manufacturer, thereby triggering the event by determining the scene.

Landscapes

  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present application discloses a device control method, an apparatus, a system, an electronic device and a cloud server. The method includes: in response to a scene triggering event, acquiring the information of the first device and the information of the second device in the scene corresponding to the scene triggering event; determining the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device; generating control instructions based on the scene triggering event; and sending the control instructions to the cloud server, the control instructions are used to instruct the cloud server to send the first control instruction for controlling the first device to the first vendor cloud server, and to send the second control instruction for controlling the second device to the second vendor cloud server. The present application determines a plurality of devices in the scene corresponding to the scene triggering event, and sends the control instructions to a plurality of vendor cloud servers corresponding to the plurality of devices respectively through the cloud server, achieving the linkage control of a plurality of vendor devices, and improving the scene linkage efficiency.

Description

设备控制方法、装置、系统、电子设备以及云服务器Device control method, device, system, electronic device and cloud server 技术领域Technical field
本申请涉及智能家居技术领域,更具体地,涉及一种设备控制方法、装置、系统、电子设备以及云服务器。This application relates to the field of smart home technology, and more specifically, to a device control method, device, system, electronic device, and cloud server.
背景技术Background technique
在智能家居中,智能场景是指在一定的触发条件发生时多个智能设备执行相应的动作,可以大大提升用户体验。In a smart home, a smart scene means that multiple smart devices perform corresponding actions when a certain trigger condition occurs, which can greatly improve user experience.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种设备控制方法、装置、系统、电子设备以及云服务器,以解决上述问题。In view of the foregoing problems, this application proposes a device control method, device, system, electronic device, and cloud server to solve the foregoing problems.
第一方面,本申请实施例提供了一种设备控制方法,应用于接入云服务器的电子设备,所述方法包括:响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商;确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器;基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。In the first aspect, an embodiment of the present application provides a device control method, which is applied to an electronic device that accesses a cloud server, and the method includes: responding to a scene trigger event and acquiring device information in a scene corresponding to the scene trigger event, The device information includes the information of the first device and the information of the second device. The first device and the second device belong to different vendors; determine the first vendor cloud server corresponding to the first device and the The second vendor cloud server corresponding to the second device; generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to control the The first control instruction of the first device is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
第二方面,本申请实施例提供了一种设备控制方法,应用于电子设备接入的云服务器,所述方法包括:所述云服务器接收所述电子设备发送的场景触发信息;获取所述场景触发信息所对应的场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商;确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器;基于所述场景触发信息生成控制指令,将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。In a second aspect, an embodiment of the present application provides a device control method applied to a cloud server accessed by an electronic device, and the method includes: the cloud server receives scene trigger information sent by the electronic device; and acquiring the scene The device information in the scene corresponding to the trigger information, the device information includes the information of the first device and the information of the second device, the first device and the second device belong to different manufacturers; determine the first device The first vendor cloud server corresponding to the device and the second vendor cloud server corresponding to the second device; generate a control instruction based on the scene trigger information, and send the first control instruction for controlling the first device to the The cloud server of the first vendor sends a second control instruction for controlling the second device to the cloud server of the second vendor.
第三方面,本申请实施例提供了一种设备控制方法,应用于设备控制系统,所述设备控制系统包括电子设备、云服务器、第一设备、第二设备、第一厂商云服务器以及第二厂商云服务器,所述云服务器分别与所述电子设备、所述第一厂商云服务器以及所述第二厂商云服务器通信连接,所述第一厂商云服务器与所述第一设备通信连接,所述第二厂商云服务器与所述第二设备通信连接,所述方法包括:所述电子设备响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括所述第一设备的设备信息和所述第二设备的设备信息,所述第一设备和所述第二设备属于不同的厂商;确定所述第一设备对应的所述第一厂商云服务器和所述第二设备对应的所述第二厂商云服务器;基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器;所述云服务器将所述控制指令中用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将所述控制指令中用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器;所述第一厂商云服务器基于所述第一控制指令控制所述第一设备做出响应;所述第二厂商云服务器基于所述第二控制指令控制所述第二设备做出响应。In the third aspect, the embodiments of the present application provide a device control method, which is applied to a device control system. The device control system includes an electronic device, a cloud server, a first device, a second device, a cloud server of a first manufacturer, and a second device. The cloud server of the manufacturer is respectively communicatively connected with the electronic device, the cloud server of the first manufacturer, and the cloud server of the second manufacturer, and the cloud server of the first manufacturer is communicatively connected with the first device, so The cloud server of the second vendor is in communication connection with the second device, and the method includes: the electronic device responds to a scene trigger event to obtain device information in a scene corresponding to the scene trigger event, and the device information includes all The device information of the first device and the device information of the second device, the first device and the second device belong to different vendors; determine the first vendor's cloud server and the device corresponding to the first device The second manufacturer cloud server corresponding to the second device; generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server; the cloud server uses the control instruction to control the Sending the first control instruction of the first device to the first vendor cloud server, and sending the second control instruction for controlling the second device in the control instruction to the second vendor cloud server; The first vendor cloud server controls the first device to respond based on the first control instruction; the second vendor cloud server controls the second device to respond based on the second control instruction.
第四方面,本申请实施例提供了一种设备控制装置,应用于接入云服务器的电子设备,所述装置包括:获取模块,用于响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商;确定模块,用于确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器;发送模块,用于基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。In a fourth aspect, an embodiment of the present application provides a device control device, which is applied to an electronic device that accesses a cloud server, and the device includes: an acquisition module configured to respond to a scene trigger event and acquire a scene corresponding to the scene trigger event The device information in the device information includes the information of the first device and the information of the second device. The first device and the second device belong to different manufacturers; the determining module is used to determine the first device The corresponding first vendor cloud server and the second vendor cloud server corresponding to the second device; a sending module, configured to generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, the The control instruction is used to instruct the cloud server to send a first control instruction for controlling the first device to the first vendor cloud server, and to send a second control instruction for controlling the second device to all The cloud server of the second vendor.
第五方面,本申请实施例提供了一种设备控制装置,应用于电子设备接入的云服务器,所述装置包括:接收模块,用于所述云服务器接收所述电子设备发送的场景触发信息;获取模块,用于获取所述场景触发信息所对应的场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商;确定模块,用于确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器;发送模块,用于基于所述场景触发信息生成控制指令,将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。In a fifth aspect, an embodiment of the present application provides a device control device, which is applied to a cloud server accessed by an electronic device, and the device includes: a receiving module for the cloud server to receive scene trigger information sent by the electronic device ; Acquisition module for acquiring device information in the scene corresponding to the scene trigger information, the device information including the information of the first device and the information of the second device, the first device and the second device Belonging to different vendors; a determining module, used to determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device; sending module, used to generate control based on the scenario trigger information Instruction, sending a first control instruction for controlling the first device to the first vendor cloud server, and sending a second control instruction for controlling the second device to the second vendor cloud server.
第六方面,本申请实施例提供了一种设备控制系统,包括电子设备、云服务器、第一设备、第二设备、第一厂商云服务器以及第二厂商云服务器,所述云服务器分别与所述电子设备、所述第一厂商云服务器以及所述第二厂商云服务器通信连接,所述第一厂商云服务器与所述第一设备通信连接,所述第二厂商云服 务器与所述第二设备通信连接,其中:所述电子设备,用于响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括所述第一设备的设备信息和所述第二设备的设备信息,所述第一设备和所述第二设备属于不同的厂商;所述电子设备,用于确定所述第一设备对应的所述第一厂商云服务器和所述第二设备对应的所述第二厂商云服务器;所述电子设备,用于基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器;所述云服务器,用于将所述控制指令中用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将所述控制指令中用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器;所述第一厂商云服务器,用于基于所述第一控制指令控制所述第一设备做出响应;所述第二厂商云服务器,用于基于所述第二控制指令控制所述第二设备做出响应。In a sixth aspect, an embodiment of the present application provides a device control system, which includes an electronic device, a cloud server, a first device, a second device, a cloud server from a first vendor, and a cloud server from a second vendor. The electronic device, the first vendor cloud server, and the second vendor cloud server are in communication connection, the first vendor cloud server is in communication connection with the first device, and the second vendor cloud server is in communication with the second vendor. A device communication connection, wherein: the electronic device is configured to respond to a scene trigger event to obtain device information in a scene corresponding to the scene trigger event, and the device information includes the device information of the first device and the first device Device information of the second device. The first device and the second device belong to different vendors; the electronic device is used to determine the first vendor cloud server and the second device corresponding to the first device The corresponding cloud server of the second manufacturer; the electronic device is configured to generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server; the cloud server is configured to control the The first control instruction for controlling the first device in the instruction is sent to the first vendor cloud server, and the second control instruction for controlling the second device in the control instruction is sent to the second Vendor cloud server; the first vendor cloud server is configured to control the first device to respond based on the first control instruction; the second vendor cloud server is configured to control the plant based on the second control instruction The second device responds.
第七方面,本申请实施例提供了一种电子设备,包括:存储器;一个或多个处理器,与所述存储器耦接;一个或多个程序,其中,所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述方法。In a seventh aspect, an embodiment of the present application provides an electronic device, including: a memory; one or more processors coupled to the memory; one or more programs, wherein the one or more application programs are Stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method.
第八方面,本申请实施例提供了一种云服务器,包括:存储器;一个或多个处理器,与所述存储器耦接;一个或多个程序,其中,所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述方法。In an eighth aspect, an embodiment of the present application provides a cloud server, including: a memory; one or more processors coupled to the memory; one or more programs, wherein the one or more application programs are Stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method.
第九方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the foregoing method.
本申请实施例提供的设备控制方法、装置、系统、电子设备以及云服务器,响应场景触发事件,获取该场景触发事件所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将该控制指令发送至云服务器,该控制指令用于指示该云服务器将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器,从而通过确定场景触发事件所对应的场景中的多个设备,并通过云服务器将控制指令分别发送至多个设备所对应的多个厂商云服务器,实现多个厂商的设备的联动控制,提升场景联动效率。The device control method, device, system, electronic device, and cloud server provided by the embodiments of the present application respond to a scene trigger event, obtain information about the first device and information about the second device in the scene corresponding to the scene trigger event, and determine the first device The cloud server of the first vendor corresponding to a device and the cloud server of the second vendor corresponding to the second device generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server. The control instruction is used to instruct the cloud server to use The first control instruction for controlling the first device is sent to the cloud server of the first manufacturer, and the second control instruction for controlling the second device is sent to the cloud server of the second manufacturer, thereby determining the scene in the scene corresponding to the scene trigger event Multiple devices, through the cloud server, respectively send control instructions to multiple vendors' cloud servers corresponding to the multiple devices, to achieve linkage control of multiple vendors' devices, and to improve scene linkage efficiency.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1示出了本申请实施例提供的设备控制系统的示意图;Figure 1 shows a schematic diagram of a device control system provided by an embodiment of the present application;
图2示出了本申请实施例提供的设备控制方法的时序图;FIG. 2 shows a sequence diagram of a device control method provided by an embodiment of the present application;
图3示出了本申请一个实施例提供的设备控制方法的流程示意图;FIG. 3 shows a schematic flowchart of a device control method provided by an embodiment of the present application;
图4示出了本申请又一个实施例提供的设备控制方法的流程示意图;FIG. 4 shows a schematic flowchart of a device control method provided by another embodiment of the present application;
图5示出了本申请再一个实施例提供的设备控制方法的流程示意图;FIG. 5 shows a schematic flowchart of a device control method provided by another embodiment of the present application;
图6示出了本申请另一个实施例提供的设备控制方法的流程示意图;FIG. 6 shows a schematic flowchart of a device control method provided by another embodiment of the present application;
图7示出了本申请又再一个实施例提供的设备控制方法的流程示意图;FIG. 7 shows a schematic flowchart of a device control method provided by another embodiment of the present application;
图8示出了本申请的图7所示的设备控制方法的步骤S604的流程示意图;FIG. 8 shows a schematic flowchart of step S604 of the device control method shown in FIG. 7 of the present application;
图9示出了本申请又另一个实施例提供的设备控制方法的流程示意图;FIG. 9 shows a schematic flowchart of a device control method provided by yet another embodiment of the present application;
图10示出了本申请的图9所示的设备控制方法的步骤S708的流程示意图;FIG. 10 shows a schematic flowchart of step S708 of the device control method shown in FIG. 9 of the present application;
图11示出了本申请还一个实施例提供的设备控制方法的流程示意图;FIG. 11 shows a schematic flowchart of a device control method provided by another embodiment of the present application;
图12示出了本申请一个实施例提供的设备控制装置的模块框图;Fig. 12 shows a block diagram of a device control apparatus provided by an embodiment of the present application;
图13示出了本申请又一个实施例提供的设备控制装置的模块框图;FIG. 13 shows a block diagram of a device control device provided by another embodiment of the present application;
图14示出了本申请实施例用于执行根据本申请实施例的设备控制方法的电子设备的框图;FIG. 14 shows a block diagram of an electronic device used to execute the device control method according to the embodiment of the present application;
图15示出了本申请实施例用于执行根据本申请实施例的设备控制方法的云服务器的框图;FIG. 15 shows a block diagram of a cloud server used to execute the device control method according to the embodiment of the present application;
图16示出了本申请实施例的用于保存或者携带实现根据本申请实施例的设备控制方法的程序代码的存储单元。Fig. 16 shows a storage unit for storing or carrying program codes for implementing the device control method according to the embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
随着物联网技术的发展,智能家居深入各个家庭中,由于其带来的便利性,深受众多家庭的喜爱。智能家居通过物联网技术将家中的各种设备(如空调、照明灯、冰箱、洗衣机等)连接到一起,提供家电控制、照明控制、远程控制、室内外遥控、防盗报警、环境监测、暖通控制、红外转发以及可编程定时控制等多种控制。With the development of the Internet of Things technology, smart homes have penetrated into various families, and because of the convenience it brings, they are deeply loved by many families. Smart home connects various devices in the home (such as air conditioners, lights, refrigerators, washing machines, etc.) through the Internet of Things technology to provide home appliance control, lighting control, remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, and HVAC Various controls such as control, infrared forwarding and programmable timing control.
并且,随着科学技术的发展,各种设备的控制可以由电子设备来完成,例如,通过在电子设备上安装与各种设备对应的厂商的应用程序来实现对各种设备的控制,例如,当智能家居中包括A设备、B设备 以及C设备,且A设备属于A厂商、B设备属于B厂商、C设备属于C厂商时,则需要在电子设备安装A厂商的应用程序对A设备进行控制、安装B厂商的应用程序对B设备进行控制以及安装C厂商的应用程序对C设备进行控制。但是,当用户期望A设备、B设备以及C设备进行联动时,需要分别进入A厂商的应用程序、B厂商的应用程序以及C厂商的应用程序进行操作,操作过程繁琐。针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的设备控制方法、装置、系统、电子设备以及云服务器,通过确定场景触发事件所对应的场景中的多个设备,并通过云服务器将控制指令分别发送至多个设备所对应的多个厂商云服务器,实现多个厂商的设备的联动控制,提升场景联动效率。其中,具体的设备控制方法在后续的实施例中进行详细的说明。Moreover, with the development of science and technology, the control of various devices can be completed by electronic devices. For example, the control of various devices can be achieved by installing applications from manufacturers corresponding to various devices on the electronic devices, for example, When the smart home includes device A, device B, and device C, and device A belongs to manufacturer A, device B belongs to manufacturer B, and device C belongs to manufacturer C, you need to install the application of manufacturer A in the electronic device to control device A , Install B manufacturer's application program to control B equipment and install C manufacturer's application program to control C equipment. However, when the user expects device A, device B, and device C to interact, they need to enter the application of manufacturer A, the application of manufacturer B, and the application of manufacturer C to operate, and the operation process is cumbersome. In response to the above problems, the inventor has discovered through long-term research and proposed the device control method, device, system, electronic device, and cloud server provided by the embodiments of the present application. By determining multiple devices in the scene corresponding to the scene trigger event, And through the cloud server, the control instructions are sent to the cloud servers of multiple vendors corresponding to the multiple devices, so as to realize the linkage control of the devices of multiple vendors and improve the efficiency of scene linkage. Among them, the specific device control method is described in detail in the subsequent embodiments.
下面对本申请所涉及的一种应用环境进行介绍。An application environment involved in this application is introduced below.
请参阅图1,图1示出了可用于本申请实施例提供的设备控制方法的设备控制系统10,该设备控制系统10包括电子设备100、云服务器200、第一设备300、第二设备400、第一厂商云服务器500以及第二厂商云服务器600,其中,云服务器200分别与电子设备100、第一厂商云服务器500以及第二厂商云服务器600通信连接,以分别实现与电子设备100、第一厂商云服务器500以及第二厂商云服务器600之间的数据交互,第一厂商云服务器500与第一设备300通信连接,以实现与第一设备300的之间的数据交互,第二厂商云服务器600与第二设备400通信连接,以实现与第二设备400之间的数据交互。Please refer to FIG. 1, which shows a device control system 10 that can be used in the device control method provided by an embodiment of the present application. The device control system 10 includes an electronic device 100, a cloud server 200, a first device 300, and a second device 400 , The first manufacturer’s cloud server 500 and the second manufacturer’s cloud server 600, wherein the cloud server 200 is respectively connected to the electronic device 100, the first manufacturer’s cloud server 500, and the second manufacturer’s cloud server 600 to realize the communication with the electronic device 100, Data interaction between the cloud server 500 of the first manufacturer and the cloud server 600 of the second manufacturer. The cloud server 500 of the first manufacturer communicates with the first device 300 to realize the data interaction with the first device 300. The cloud server 600 is in communication connection with the second device 400 to realize data interaction with the second device 400.
其中,该电子设备100可以但不限于包括智能手机、平板电脑、穿戴式电子设备等,该第一设备300可以但不限于包括空调、地暖、新风、窗帘、灯、电视、冰箱、电扇等,该第二设备400可以但不限于包括空调、地暖、新风、窗帘、灯、电视、冰箱、电扇等。Wherein, the electronic device 100 can include but is not limited to smart phones, tablet computers, wearable electronic devices, etc., and the first device 300 can include, but is not limited to, air conditioners, floor heating, fresh air, curtains, lights, TVs, refrigerators, electric fans, etc., The second device 400 may include, but is not limited to, air conditioners, floor heating, fresh air, curtains, lights, televisions, refrigerators, electric fans, and the like.
实施例Example
请参阅图2,图2示出了本申请实施例提供的设备控制方法的时序图。下面将针对图2所示的流程进行详细的阐述,所述设备控制方法应用于设备控制系统,该设备控制系统包括:电子设备、云服务器、第一设备、第二设备、第一厂商云服务器以及第二厂商云服务器,该云服务器分别与电子设备、第一厂商云服务器以及第二厂商云服务器通信连接,所述第一厂商云服务器与第一设备通信连接,所述第二厂商云服务器与第二设备通信连接,所述设备控制方法可以包括步骤S101至S106。Please refer to FIG. 2, which shows a sequence diagram of a device control method provided by an embodiment of the present application. The process shown in Figure 2 will be described in detail below. The device control method is applied to a device control system. The device control system includes: an electronic device, a cloud server, a first device, a second device, and a first vendor cloud server And a second-vendor cloud server, the cloud server is respectively connected to the electronic device, the first-vendor cloud server, and the second-vendor cloud server To communicate with the second device, the device control method may include steps S101 to S106.
步骤S101:所述电子设备响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括所述第一设备的设备信息和所述第二设备的设备信息,所述第一设备和所述第二设备属于不同的厂商。Step S101: The electronic device responds to a scene trigger event to obtain device information in a scene corresponding to the scene trigger event, where the device information includes device information of the first device and device information of the second device, The first device and the second device belong to different manufacturers.
在本实施例中,电子设备可以预先设置并存储多个场景,以供用户选择触发或自动触发。其中,该多个场景可以是用户手动配置,也可以是电子设备自动配置,具体地,当该多个场景是由用户手动配置时,用户可以对场景的名称、触发条件、所包括的设备、执行的任务等进行配置;当该多个场景是由电子设备自动配置时,电子设备可以以推荐的形式给用户确认使用或确认触发,例如,“离家场景”、“到家场景”、“起床场景”或“睡眠场景”等,当然,可以理解的,用户可以对电子设备推荐的场景进行修改或删除,在此不做限定。In this embodiment, the electronic device may preset and store multiple scenarios for the user to select triggering or automatic triggering. Wherein, the multiple scenes may be manually configured by the user, or automatically configured by the electronic device. Specifically, when the multiple scenes are manually configured by the user, the user can set the name of the scene, trigger conditions, included equipment, Configure the tasks to be performed; when the multiple scenes are automatically configured by the electronic device, the electronic device can confirm the use or confirm the trigger to the user in a recommended form, for example, "away from home scene", "at home scene", "get up" Of course, it is understandable that the user can modify or delete the scene recommended by the electronic device, which is not limited here.
作为一种方式,电子设备在存储场景时,可以同时存储该场景对应的场景触发事件。因此,电子设备可以对针对场景的场景触发事件进行监控,可以理解,当检测到该场景触发事件发生时,则做出与该场景触发事件所对应的响应。于本实施例中,当检测到该场景触发事件时,可以获取该场景触发事件所对应的场景中的设备信息,其中,该场景中的设备信息可以包括多个设备、多个设备的联动关系以及多个设备的触发条件等,例如,当场景中的设备信息包括电视、空调、电灯以及窗帘,那么,该多个设备的联动关系可以包括电视开、空调开、电灯开以及窗帘关,且该多个设备的触发条件可以包括当电视开时,空调开、电灯开以及窗帘关。作为一种方式,该场景中的多个设备可以属于同一个厂商,也可以属于不同的商场,可选的,在本实施例中,该设备信息中可以包括第一设备的信息和第二设备的信息,且第一设备和第二设备属于不同的厂商。As a way, when the electronic device stores a scene, it can store scene trigger events corresponding to the scene at the same time. Therefore, the electronic device can monitor the scene trigger event for the scene, and it can be understood that when the scene trigger event is detected, it will make a response corresponding to the scene trigger event. In this embodiment, when the scene trigger event is detected, the device information in the scene corresponding to the scene trigger event can be acquired, where the device information in the scene may include multiple devices and linkage relationships of multiple devices And the trigger conditions of multiple devices, for example, when the device information in the scene includes TV, air conditioner, light and curtain, then the linkage relationship of the multiple devices can include TV on, air conditioner on, light on, and curtain off, and The trigger conditions for the multiple devices may include when the TV is on, the air conditioner is on, the lights are on, and the curtains are off. As a way, multiple devices in this scenario can belong to the same manufacturer or different shopping malls. Optionally, in this embodiment, the device information can include the information of the first device and the second device , And the first device and the second device belong to different manufacturers.
其中,在本实施例中,所述场景触发事件可以包括触控操作触发事件、定时触发事件、设备状态触发事件以及语音触发事件中的至少一种。Wherein, in this embodiment, the scene trigger event may include at least one of a touch operation trigger event, a timing trigger event, a device state trigger event, and a voice trigger event.
步骤S102:确定所述第一设备对应的所述第一厂商云服务器和所述第二设备对应的所述第二厂商云服务器。Step S102: Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
进一步地,在确定该场景中的第一设备和第二设备后,可以分别确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器。作为一种方式,该场景在配置时,在配置设备的同时,可以配置该设备所对应的厂商,于本实施例中,该场景触发事件所对应的场景在配置时,可以对应配置第一设备所对应的第一厂商以及配置第二设备所对应的第二厂商,可以理解的,在确定该第一设备所对应的第一厂商后,可以对应确定该第一厂商对应的第一厂商云服务器,即确定该第一设备对应的第一厂商云服务器,同样的,在确定该第二设备所对应的第二厂商后,可以对应确定该第二厂商对应的第二厂商云服务器,即确定该第二设备对应的第二厂商云服务器。Further, after determining the first device and the second device in the scenario, the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device may be determined respectively. As a way, when configuring the scene, while configuring the device, you can configure the manufacturer corresponding to the device. In this embodiment, the scene corresponding to the scene trigger event can be configured corresponding to the first device during configuration. The corresponding first manufacturer and the second manufacturer corresponding to the second device can be understood that after the first manufacturer corresponding to the first device is determined, the first manufacturer cloud server corresponding to the first manufacturer can be determined correspondingly , That is, determine the first vendor cloud server corresponding to the first device. Similarly, after determining the second vendor corresponding to the second device, you can correspondingly determine the second vendor cloud server corresponding to the second vendor, that is, determine the The second vendor cloud server corresponding to the second device.
作为另一种方式,在场景配置时或场景配置之前,可以建立设备和厂商云服务器之间的对应关系,例如,建立第一设备和第一厂商云服务器之间的对应关系以及建立第二设备和第二厂商云服务器之间的对应关系,并将该对应关系存储在电子设备本地,因此,在获取该场景触发事件所对应的场景中的第一设备和第二设备后,再基于存储的对应关系可以确定该第一设备所对应的第一厂商云服务器和第二设备所对应的第二厂商云服务器。As another way, during or before the scene configuration, the correspondence between the device and the vendor's cloud server can be established, for example, the correspondence between the first device and the first vendor's cloud server and the second device The corresponding relationship between the cloud server of the second manufacturer and the second vendor’s cloud server, and the corresponding relationship is stored locally in the electronic device. Therefore, after acquiring the first device and the second device in the scene corresponding to the scene trigger event, it is based on the stored The correspondence relationship may determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
步骤S103:基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器。Step S103: Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server.
在本实施例中,电子设备响应该场景触发事件,以实现该场景触发事件所对应的场景中所包含的第一设备和第二设备的联动控制,因此,可以按照该场景中设定的第一设备和第二设备之间的联动关系分别控制第一设备和第二设备做出响应。作为一种方式,该电子设备可以基于该场景触发事件生成控制指令,其中,该控制指令可以用于控制第一设备和第二设备,然后通过网络将该控制指令发送至与电子设备连接的云服务器,可以理解的,该电子设备可以通过无线网络或数据网络将该控制指令发送至云服务器,其中,当电子设备通过数据网络将控制指令发送至云服务器时,该数据网络可以包括2G网络、3G网络或4G网络等,在此不做限定。In this embodiment, the electronic device responds to the scene trigger event to realize the linkage control of the first device and the second device included in the scene corresponding to the scene trigger event. Therefore, the first device and the second device can be controlled according to the scene set in the scene. The linkage relationship between a device and a second device controls the first device and the second device to respond respectively. As a way, the electronic device can generate a control instruction based on the scene trigger event, where the control instruction can be used to control the first device and the second device, and then send the control instruction to the cloud connected to the electronic device via the network Server, it is understandable that the electronic device may send the control instruction to the cloud server via a wireless network or a data network, where when the electronic device sends the control instruction to the cloud server via a data network, the data network may include a 2G network, 3G network or 4G network, etc., are not limited here.
步骤S104:所述云服务器将所述控制指令中用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将所述控制指令中用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S104: The cloud server sends the first control instruction used to control the first device in the control instruction to the first vendor cloud server, and uses the control instruction to control the second device The second control instruction of is sent to the cloud server of the second manufacturer.
其中,作为一种方式,该控制指令可以同时包括第一设备的控制指令和第二设备的控制指令,也就是说,通过该控制指令,可以同时实现对第一设备和第二设备的控制。因此,该云服务器可以将该控制指令分别发送至第一厂商云服务器和第二厂商云服务器,然后第一厂商云服务器再对该控制指令进行分析,提取针对第一设备的第一控制指令对第一设备进行控制,同样的,第二厂商云服务器再对该控制指令进行分析,提取针对第二设备的第二控制指令对第二设备进行控制。Wherein, as a manner, the control instruction may include the control instruction of the first device and the control instruction of the second device at the same time, that is, the control instruction can realize the control of the first device and the second device at the same time. Therefore, the cloud server can send the control instruction to the cloud server of the first vendor and the cloud server of the second vendor, and then the cloud server of the first vendor analyzes the control instruction to extract the first control instruction pair for the first device The first device is controlled. Similarly, the cloud server of the second manufacturer analyzes the control instruction, and extracts the second control instruction for the second device to control the second device.
作为另一种方式,该控制指令可以分别包括用于控制第一设备的第一控制指令和用于控制第二设备的第二控制指令,因此,该云服务器可以将用于控制第一设备的第一控制指令发送至第一厂商云服务器,以及将用于控制第二设备的第二控制指令发送至第二厂商云服务器,简化第一厂商云服务器和第二厂商云服务器的分析提取操作。As another way, the control instruction may respectively include a first control instruction for controlling the first device and a second control instruction for controlling the second device. Therefore, the cloud server may use the control instruction for controlling the first device. The first control instruction is sent to the cloud server of the first vendor, and the second control instruction for controlling the second device is sent to the cloud server of the second vendor, simplifying the analysis and extraction operations of the cloud server of the first vendor and the cloud server of the second vendor.
步骤S105:所述第一厂商云服务器基于所述第一控制指令控制所述第一设备做出响应。Step S105: The first vendor cloud server controls the first device to respond based on the first control instruction.
在本实施例中,第一厂商云服务器在接收到第一控制指令后,基于该第一控制指令控制第一设备做出响应。例如,该第一设备为空调,该第一控制指令包括“将空调调整到26°”,那么,该第一设备对应的第一厂商云服务器可以基于该第一控制指令将空调温度调整到26°。In this embodiment, after receiving the first control instruction, the first vendor cloud server controls the first device to respond based on the first control instruction. For example, if the first device is an air conditioner, and the first control instruction includes "adjust the air conditioner to 26°", then the cloud server of the first manufacturer corresponding to the first device can adjust the temperature of the air conditioner to 26 based on the first control instruction. °.
步骤S106:所述第二厂商云服务器基于所述第二控制指令控制所述第二设备做出响应。Step S106: The second vendor cloud server controls the second device to respond based on the second control instruction.
同时,第二厂商云服务器在接收到第二控制指令后,基于该第二控制指令控制第二设备做出响应。例如,该第二设备为电视,该第二控制指令包括“将电视打开”,那么,该第二设备对应的第二厂商云服务器可以基于该第二控制指令将电视打开。Meanwhile, after receiving the second control instruction, the cloud server of the second manufacturer controls the second device to respond based on the second control instruction. For example, if the second device is a TV, and the second control instruction includes "turn on the TV", then the cloud server of the second manufacturer corresponding to the second device can turn on the TV based on the second control instruction.
可以理解的,在本实施例中,通过电子设备响应场景触发事件,可以同时控制该场景触发事件所对应的场景中的不同厂商的第一设备和第二设备做出响应,也就是说,可以通过电子设备实现跨厂商的设备控制,方便联动场景的设置和控制。It is understandable that in this embodiment, the electronic device responds to the scene trigger event, and the first device and the second device of different manufacturers in the scene corresponding to the scene trigger event can be controlled to respond at the same time, that is, Cross-vendor device control is realized through electronic devices, which facilitates the setting and control of linkage scenes.
本申请实施例提供的设备控制方法,电子设备响应场景触发事件,获取该场景触发事件所对应场景中的设备信息,该设备信息包括第一设备的信息和第二设备的信息,该第一设备和第二设备属于不同的厂商,确定第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将该控制指令发送至云服务器,该云服务器将该控制指令中用于控制第一设备的第一控制指令发送至第一厂商云服务器,将控制指令中用于控制第二设备的第二控制指令发送至第二厂商云服务器,该第一厂商云服务器基于该第一控制指令控制第一设备做出响应,第二厂商云服务器基于第二控制指令控制第二设备做出响应,从而通过确定场景触发事件所对应的场景中的多个设备,并通过云服务器将控制指令分别发送至多个设备所对应的多个厂商云服务器,实现多个厂商的设备的联动控制,提升场景联动效率。In the device control method provided by the embodiment of the present application, the electronic device responds to a scene trigger event to obtain device information in the scene corresponding to the scene trigger event. The device information includes information about a first device and information about a second device. The first device And the second device belong to a different vendor, determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device, generate a control instruction based on the scenario trigger event, and send the control instruction to the cloud server, The cloud server sends the first control instruction for controlling the first device in the control instruction to the cloud server of the first manufacturer, and sends the second control instruction for controlling the second device in the control instruction to the cloud server of the second manufacturer, The cloud server of the first vendor controls the first device to respond based on the first control instruction, and the cloud server of the second vendor controls the second device to respond based on the second control instruction, thereby determining the scene in the scene corresponding to the scene trigger event Multiple devices, through the cloud server, respectively send control instructions to multiple vendors' cloud servers corresponding to the multiple devices, to achieve linkage control of multiple vendors' devices, and to improve scene linkage efficiency.
请参阅图3,图3示出了本申请一个实施例提供的设备控制方法的流程示意图。在具体的实施例中,所述设备控制方法应用于如图12所示的设备控制装置700以及配置有所述设备控制装置700的电子设备100(如图14所示),其中,该电子设备与云服务器通信连接,下面将以电子设备为例,说明本实施例的具体流程。下面将针对图3所示的流程进行详细的阐述,所述设备控制方法可以包括步骤S201至S203。Please refer to FIG. 3, which shows a schematic flowchart of a device control method according to an embodiment of the present application. In a specific embodiment, the device control method is applied to the device control apparatus 700 shown in FIG. 12 and the electronic device 100 (as shown in FIG. 14) equipped with the device control device 700, wherein the electronic device Communication and connection with the cloud server, the following will take an electronic device as an example to illustrate the specific process of this embodiment. The flow shown in FIG. 3 will be described in detail below, and the device control method may include steps S201 to S203.
步骤S201:响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商。Step S201: In response to a scene trigger event, obtain device information in a scene corresponding to the scene trigger event. The device information includes information about a first device and information about a second device. The first device and the second device The equipment belongs to different manufacturers.
步骤S202:确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器。Step S202: Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
步骤S203:基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S203: Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
其中,步骤S201-步骤S203的具体描述请参阅步骤S101-步骤S106,在此不再赘述。For the specific description of step S201 to step S203, please refer to step S101 to step S106, which will not be repeated here.
本申请一个实施例提供的设备控制方法,响应场景触发事件,获取该场景触发事件所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将该控制指令发送至云服务器,该控制指令用于指示该云服务器将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器,从而通过确定场景触发事件所对应的场景中的多个设备,并通过云服务器将控制指令分别发送至多个设备所对应的多个厂商云服务器,实现多个厂商的设备的联动控制,提升场景联动效率。The device control method provided by an embodiment of the present application responds to a scene trigger event, obtains information of the first device and information of the second device in the scene corresponding to the scene trigger event, and determines the first vendor cloud server corresponding to the first device The cloud server of the second manufacturer corresponding to the second device generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to control the first control of the first device The instruction is sent to the cloud server of the first vendor, and the second control instruction for controlling the second device is sent to the cloud server of the second vendor, so that multiple devices in the scene corresponding to the scene trigger event are determined, and the cloud server transmits The control instructions are respectively sent to the cloud servers of multiple vendors corresponding to multiple devices to realize the linkage control of multiple vendors' devices and improve the efficiency of scene linkage.
请参阅图4,图4示出了本申请又一个实施例提供的设备控制方法的流程示意图。下面将针对图4所示的流程进行详细的阐述,所述设备控制方法可以包括步骤S301至S306。Please refer to FIG. 4, which shows a schematic flowchart of a device control method according to another embodiment of the present application. The process shown in FIG. 4 will be described in detail below, and the device control method may include steps S301 to S306.
步骤S301:所述电子设备展示场景控件。Step S301: The electronic device displays scene controls.
在本实施例中,所述场景触发事件为触控操作触发事件。作为一种方式,该电子设备展示场景控件,其中,该场景控件可以以卡片的形式进行展示、也可以以按钮的形式进行展示,在此不做限定。另外,该电子设备展示的场景控件的数量可以根据已配置的场景的数量多少进行选择,例如,当已配置的场景的数量为6个时,可以展示6个场景控件;当已配置的场景的数量为10个时,可以选择展示其中8个场景所对应的场景控件,并隐藏2个场景对应的场景控件,并在用户触控指定位置或触发指定操作时,展示该隐藏的2个场景对应的场景控件。进一步地,该电子设备展示场景控件的顺序可以按照用户触控操作的频率、用户的喜好程度、用户设置的优先级等从前到后排列,在此不再赘述。In this embodiment, the scene trigger event is a touch operation trigger event. As a way, the electronic device displays scene controls, where the scene controls can be displayed in the form of cards or buttons, which is not limited here. In addition, the number of scene controls displayed by the electronic device can be selected according to the number of configured scenes. For example, when the number of configured scenes is 6, 6 scene controls can be displayed; when the number of configured scenes is When the number is 10, you can choose to display the scene controls corresponding to 8 of the scenes, and hide the scene controls corresponding to the 2 scenes, and display the corresponding hidden 2 scenes when the user touches the designated position or triggers the designated operation Scene controls. Further, the order in which the electronic device displays the scene controls can be arranged from front to back according to the frequency of the user's touch operation, the user's preference, the priority set by the user, etc., which will not be repeated here.
步骤S302:检测作用于所述场景控件上的触控操作。Step S302: Detect a touch operation acting on the scene control.
作为一种方式,电子设备对作用于场景控件上的触控操作进行检测,其中,该触控操作可以包括单指点击、多指点击、单指长按、单指长按、多指长按、重压、多次点击、滑动操作、按压面积等,其中,所述单指点击是指单指在场景控件上进行点击的操作;多指点击是指多指在场景控件上同时进行点击的操作;单指长按是指单指在场景控件上按压超过预设时长;多指长按是指多指同时在场景控件上按压超过预设时长;重压是指在场景控件上按压力度超过预设力度;多次点击是指在预设时间内点击次数超过预设次数;滑动操作是指单指在场景控件上进行滑动的操作;按压面积是指在场景控件上的单指按压面积超过预设面积。As a way, the electronic device detects the touch operation acting on the scene control, where the touch operation may include single-finger tap, multi-finger tap, single-finger long press, single-finger long press, and multi-finger long press , Heavy pressure, multiple clicks, sliding operations, pressing area, etc., wherein the single-finger click refers to the operation of clicking on the scene control with a single finger; the multi-finger clicking refers to the simultaneous clicking of multiple fingers on the scene control Operation; single-finger long press means that a single finger presses on the scene control for longer than the preset time; multi-finger long press means that multiple fingers press on the scene control at the same time for longer than the preset time; heavy press means that the pressing force on the scene control exceeds Preset strength; multiple clicks means that the number of clicks within a preset time exceeds the preset number of times; sliding operation refers to the operation of sliding a single finger on the scene control; pressing area means that the pressing area of a single finger on the scene control exceeds Default area.
步骤S303:判断所述触控操作是否符合指定触控操作。Step S303: Determine whether the touch operation conforms to the specified touch operation.
其中,电子设备可以设置有指定触控操作,该指定触控操作用于作为电子设备检测到的触控操作的判断依据。其中,可以理解的,该指定触控操作可以由电子设备预先存储在本地,也可以在判断时再进行设置,另外,该指定触控操作可以由电子设备自动配置、可以由用户手动设置、也可以由服务器配置完成后传输至电子设备,在此不做限定。因此,在本实施例中,电子设备在检测到触控操作后,可以将该触控操作与指定触控操作进行比较,以判断该触控操作是否符合指定触控操作。The electronic device may be provided with a designated touch operation, and the designated touch operation is used as a basis for determining the touch operation detected by the electronic device. Among them, it is understandable that the designated touch operation can be pre-stored locally by the electronic device, or can be set at the time of judgment. In addition, the designated touch operation can be automatically configured by the electronic device, can be manually set by the user, or It can be transmitted to the electronic device after the server configuration is completed, which is not limited here. Therefore, in this embodiment, after detecting the touch operation, the electronic device can compare the touch operation with the designated touch operation to determine whether the touch operation meets the designated touch operation.
步骤S304:当所述触控操作符合所述指定触控操作时,响应所述触控操作,获取所述触控操作触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和第二设备属于不同的厂商。Step S304: When the touch operation conforms to the specified touch operation, in response to the touch operation, obtain device information in the scene corresponding to the touch operation trigger event, where the device information includes the first device And the information of the second device, the first device and the second device belong to different manufacturers.
其中,当确定该触控操作符合指定触控操作时,可以确定该电子设备对应的用户触发了触控操作触发事件,因此,电子设备可以响应该触控操作获取与触控操作触发事件所对应场景中的设备信息。Wherein, when it is determined that the touch operation conforms to the specified touch operation, it can be determined that the user corresponding to the electronic device has triggered the touch operation trigger event. Therefore, the electronic device can respond to the touch operation to obtain information corresponding to the touch operation trigger event. Device information in the scene.
步骤S305:确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器。Step S305: Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
步骤S306:基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S306: Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
其中,步骤S304-步骤S306的具体描述请参阅步骤S101-步骤S106,在此不再赘述。For the specific description of step S304 to step S306, please refer to step S101 to step S106, which will not be repeated here.
本申请又一个实施例提供的设备控制方法,电子设备展示场景控件,检测作用于该场景控件上的触控操作,判断该触控操作是否符合指定触控操作,当该触控操作符合指定触控操作时,响应该触控操作,获取触控操作触发事件所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将该控制指令发送至云服务器,该控制指令用于指示该云服务器将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器。相较于图4所示的设备控制方法,本实施例还可以通过触控操作触发场景,提升场景触发效率。In the device control method provided by another embodiment of the present application, an electronic device displays a scene control, detects a touch operation acting on the scene control, and determines whether the touch operation conforms to a specified touch operation, and when the touch operation conforms to the specified touch operation During the control operation, in response to the touch operation, obtain the information of the first device and the information of the second device in the scene corresponding to the touch operation trigger event, and determine that the first manufacturer's cloud server corresponding to the first device corresponds to the second device The second manufacturer’s cloud server generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the first The vendor cloud server sends the second control instruction for controlling the second device to the second vendor cloud server. Compared with the device control method shown in FIG. 4, this embodiment can also trigger a scene through a touch operation, which improves the efficiency of scene triggering.
请参阅图5,图5示出了本申请再一个实施例提供的设备控制方法的流程示意图。下面将针对图5所示的流程进行详细的阐述,所述设备控制方法可以包括步骤S401至S405。Please refer to FIG. 5, which shows a schematic flowchart of a device control method provided by another embodiment of the present application. The process shown in FIG. 5 will be described in detail below, and the device control method may include steps S401 to S405.
步骤S401:检测当前时间。Step S401: Detect the current time.
在本实施例中,所述场景触发事件为定时触发事件。作为一种方式,可以通过电子设备内置的计时器 对当前时间进行检测。In this embodiment, the scene trigger event is a timing trigger event. As a way, the current time can be detected through a timer built into the electronic device.
步骤S402:判断所述当前时间是否到达指定时间。Step S402: Determine whether the current time reaches a designated time.
其中,电子设备可以设置有指定时间,该指定时间用于作为电子设备检测到的当前时间的判断依据。其中,可以理解的,该指定时间可以由电子设备预先存储在本地,也可以在判断时再进行设置,另外,该指定时间可以由电子设备自动配置、可以由用户手动设置、也可以由服务器配置完成后传输至电子设备,在此不做限定。因此,在本实施例中,电子设备在检测到当前时间后,可以将该当前时间与指定时间进行比较,以判断该当前时间是否到达指定时间。其中,该指定时间可以为下午6点(回家时间),也可以为上午7点(离家时间)等。Wherein, the electronic device may be set with a designated time, and the designated time is used as a basis for determining the current time detected by the electronic device. Among them, it is understandable that the designated time can be pre-stored locally by the electronic device, or can be set at the time of judgment. In addition, the designated time can be automatically configured by the electronic device, manually set by the user, or configured by the server After completion, it is transmitted to the electronic device, which is not limited here. Therefore, in this embodiment, after detecting the current time, the electronic device can compare the current time with the designated time to determine whether the current time reaches the designated time. Among them, the designated time may be 6 pm (home time), or 7 am (time away from home), etc.
步骤S403:当所述当前时间到达所述指定时间时,响应所述当前时间,获取所述定时触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商。Step S403: When the current time reaches the specified time, in response to the current time, obtain device information in the scene corresponding to the timing trigger event, where the device information includes the information of the first device and the second device , The first device and the second device belong to different manufacturers.
其中,当确定该当前时间到达指定时间时,可以确定当前时间符合了定时触发事件,因此,电子设备可以响应该当前时间,获取定时触发事件所对应场景中的设备信息。Wherein, when it is determined that the current time reaches the specified time, it can be determined that the current time meets the timing trigger event. Therefore, the electronic device can respond to the current time to obtain device information in the scene corresponding to the timing trigger event.
步骤S404:确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器。Step S404: Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
步骤S405:基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S405: Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
其中,步骤S403-步骤S405的具体描述请参阅步骤S101-步骤S106,在此不再赘述。For the specific description of step S403 to step S405, please refer to step S101 to step S106, which will not be repeated here.
本申请再一个实施例提供的设备控制方法,检测当前时间,判断该当前是否达到指定时间,当该当前时间达到指定时间时,响应该当前时间,获取定时触发事件所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将该控制指令发送至云服务器,该控制指令用于指示该云服务器将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器。相较于图4所示的设备控制方法,本实施例还可以通过定时触发场景,提升场景触发效率。The device control method provided by another embodiment of the present application detects the current time and determines whether the current time reaches the specified time, and when the current time reaches the specified time, responds to the current time to obtain the first device in the scene corresponding to the timing trigger event Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device, generate a control instruction based on the scenario trigger event, and send the control instruction to the cloud server The control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the cloud server of the first manufacturer, and send the second control instruction for controlling the second device to the cloud server of the second manufacturer. Compared with the device control method shown in FIG. 4, this embodiment can also trigger the scene periodically to improve the efficiency of scene triggering.
请参阅图6,图6示出了本申请另一个实施例提供的设备控制方法的流程示意图。下面将针对图6所示的流程进行详细的阐述,所述设备控制方法可以包括步骤S501至S506。Please refer to FIG. 6, which shows a schematic flowchart of a device control method provided by another embodiment of the present application. The flow shown in FIG. 6 will be described in detail below, and the device control method may include steps S501 to S506.
步骤S501:获取所述目标设备,并基于所述目标设备生成订阅设备事件。Step S501: Obtain the target device, and generate a subscription device event based on the target device.
在本实施例中,所述场景触发事件为设备状态触发事件。其中,可以从多个设备中选择其中一个设备或几个设备作为目标设备,其中,该目标设备可以为第一设备和/或第二设备,也可以为第一设备和第二设备之外的其他设备,在此不做限定。进一步地,获取该目标设备,并基于该目标设备生成订阅设备事件,其中,该订阅设备事件用于指示该目标设备对应的目标云服务器在该目标设备的状态信息符合指定状态信息时反馈状态确认信息,也就是说,该目标云服务器可以基于该订阅设备事件对目标设备的状态信息进行监控,并实时将该状态信息与指定状态信息进行比较,当确定该状态信息符合指定状态信息时,生成状态确认信息并将该状态确认信息反馈至与所述电子设备连接的云服务器,以指示该云服务器将该状态确认信息发送至所述电子设备。In this embodiment, the scene trigger event is a device state trigger event. Among them, one device or several devices can be selected from multiple devices as the target device, where the target device may be the first device and/or the second device, or may be other than the first device and the second device. Other equipment is not limited here. Further, the target device is acquired, and a subscribed device event is generated based on the target device, where the subscribed device event is used to instruct the target cloud server corresponding to the target device to feed back a status confirmation when the status information of the target device meets the specified status information Information, that is, the target cloud server can monitor the state information of the target device based on the subscribed device event, and compare the state information with the specified state information in real time. When it is determined that the state information matches the specified state information, generate The status confirmation information is fed back to the cloud server connected to the electronic device to instruct the cloud server to send the status confirmation information to the electronic device.
步骤S502:确定所述目标设备对应的目标云服务器。Step S502: Determine the target cloud server corresponding to the target device.
其中,在获取目标设备后,可以确定与该目标设备对应的目标云服务器。作为一种方式,该目标设备在配置时,可以同时配置并存储该目标设备所对应的目标厂商和/或目标云服务器,因此,可以基于预先配置的目标设备所对应的目标厂商和/或目标云服务确定该目标设备对应的目标云服务器。Wherein, after obtaining the target device, the target cloud server corresponding to the target device can be determined. As a way, when the target device is configured, the target vendor and/or target cloud server corresponding to the target device can be configured and stored at the same time. Therefore, it can be based on the target vendor and/or target cloud server corresponding to the pre-configured target device. The cloud service determines the target cloud server corresponding to the target device.
步骤S503:将所述订阅设备事件发送至所述云服务器,指示所述云服务器将所述订阅设备事件发送至所述目标云服务器,所述订阅设备事件用于指示所述目标云服务器在所述目标设备的状态信息符合指定状态信息时反馈所述状态确认信息。Step S503: Send the subscription device event to the cloud server, and instruct the cloud server to send the subscription device event to the target cloud server, and the subscription device event is used to indicate that the target cloud server is in the When the status information of the target device conforms to the specified status information, the status confirmation information is fed back.
进一步地,电子设备可以通过网络将该订阅设备事件发送至与电子设备连接的云服务器,可以理解的,电子设备可以通过无线网络或数据网络将订阅设备时间发送至云服务器,,当电子设备通过数据网络将订阅设备事件发送至云服务器时,该数据网络可以包括2G网络、3G网络或4G网络等,在此不做限定。另外,该云服务器在接收到该订阅设备事件后,可以获取该订阅设备事件中所包含的目标设备所对应的目标服务器,然后将该订阅设备事件发送至所述目标云服务器,以指示该目标云服务器在目标设备的状态信息符合指定状态信息时反馈该状态确认信息。Further, the electronic device can send the subscription device event to the cloud server connected to the electronic device via the network. It is understandable that the electronic device can send the subscription device time to the cloud server via a wireless network or a data network. When the electronic device passes When the data network sends the subscription device event to the cloud server, the data network may include a 2G network, a 3G network, or a 4G network, etc., which is not limited here. In addition, after receiving the subscription device event, the cloud server can obtain the target server corresponding to the target device contained in the subscription device event, and then send the subscription device event to the target cloud server to indicate the target The cloud server feeds back the status confirmation information when the status information of the target device meets the specified status information.
步骤S504:当接收到所述云服务器发送的对应目标设备的状态确认信息时,响应所述状态确认信息,获取所述设备状态触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商。Step S504: When receiving the status confirmation information of the corresponding target device sent by the cloud server, respond to the status confirmation information to obtain the device information in the scene corresponding to the device status trigger event, and the device information includes the first Information about a device and information about a second device, the first device and the second device belong to different manufacturers.
其中,云服务器在接收到目标云服务器反馈的状态确认信息后,会将该设备状态信息下发给所述电子 设备,因此,电子设备可以对该状态确认信息进行监控,并在接收到该状态确认信息时,响应该状态确认信息,获取设备状态触发事件所对应场景中的设备信息。Wherein, after the cloud server receives the status confirmation information fed back by the target cloud server, it will send the device status information to the electronic device. Therefore, the electronic device can monitor the status confirmation information and receive the status confirmation information. When confirming the information, in response to the status confirmation information, the device information in the scene corresponding to the device status trigger event is obtained.
步骤S505:确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器。Step S505: Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
步骤S506:基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S506: Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
其中,步骤S504-步骤S506的具体描述请参阅步骤S101-步骤S106,在此不再赘述。For the specific description of step S504 to step S506, please refer to step S101 to step S106, which will not be repeated here.
本申请另一个实施例提供的设备控制方法,获取目标设备并基于该目标设备生成订阅设备事件,确定该目标设备对应的目标云服务器,将该订阅设备事件发送至云服务器,指示该云服务器将订阅设备事件发送至目标云服务器,该订阅设备事件用于指示该目标云服务器在目标设备的状态信息符合指定状态信息时反馈状态确认信息,当接收到云服务器发送的目标设备的状态确认信息时,响应该状态确认信息,获取该设备状态触发事件所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将该控制指令发送至云服务器,该控制指令用于指示该云服务器将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器。相较于图4所示的设备控制方法,本实施例还可以通过设备状态触发场景,提升场景触发效率。The device control method provided in another embodiment of the present application obtains a target device and generates a subscription device event based on the target device, determines the target cloud server corresponding to the target device, sends the subscription device event to the cloud server, and instructs the cloud server to The subscribed device event is sent to the target cloud server, and the subscribed device event is used to instruct the target cloud server to feed back status confirmation information when the target device's status information meets the specified status information, and when the target device status confirmation information sent by the cloud server is received In response to the status confirmation information, obtain the information of the first device and the information of the second device in the scene corresponding to the device status trigger event, and determine the first vendor cloud server corresponding to the first device and the second device corresponding to the second device. The vendor cloud server generates a control instruction based on the scene trigger event, and sends the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the first vendor cloud server , Sending the second control instruction for controlling the second device to the cloud server of the second manufacturer. Compared with the device control method shown in FIG. 4, this embodiment can also trigger scenes based on the device status, which improves the efficiency of scene triggering.
请参阅图7,图7示出了本申请又再一个实施例提供的设备控制方法的流程示意图。下面将针对图7所示的流程进行详细的阐述,所述设备控制方法可以包括步骤S601至S604。Please refer to FIG. 7, which shows a schematic flowchart of a device control method provided by yet another embodiment of the present application. The flow shown in FIG. 7 will be described in detail below, and the device control method may include steps S601 to S604.
步骤S601:检测输入所述电子设备的语音信息。Step S601: Detect the voice information input to the electronic device.
在本实施例中,所述场景触发事件为语音触发事件。作为一种方式,电子设备可以通过内置的声音采集装置采集输入的语音信息,其中,该声音采集装置可以是电子设备的麦克风或录音装置等。另外,输入电子设备的语音信息包括但不限于用户输入的语音信息、环境产生的语音信息、其他电子设备输入的语音信息等,可选择,在本实施例中,对用户输入电子设备的语音信息进行检测。In this embodiment, the scene trigger event is a voice trigger event. As a way, the electronic device can collect the input voice information through a built-in sound collection device, where the sound collection device can be a microphone or a recording device of the electronic device. In addition, the voice information input to the electronic device includes but is not limited to the voice information input by the user, the voice information generated by the environment, the voice information input by other electronic devices, etc., optionally, in this embodiment, the voice information of the electronic device is input to the user Perform testing.
步骤S602:提取所述语音信息的语音内容。Step S602: Extract the voice content of the voice information.
进一步地,对该语音信息中的语音内容进行提取,例如,提取该语音信息中的关键词。作为一种方式,可以对该语音信息对应的语句进行分词,获得多个词组,然后分别获取每个词组的内容;作为另一种方式,直接对该语音信息对应的语句进行识别,以获取该语音信息的语音内容。Further, the voice content in the voice information is extracted, for example, keywords in the voice information are extracted. As a way, the sentence corresponding to the voice information can be segmented to obtain multiple phrases, and then the content of each phrase can be obtained separately; as another way, the sentence corresponding to the voice information can be directly recognized to obtain the The voice content of the voice message.
步骤S603:判断所述语音内容是否包括指定语音内容。Step S603: Determine whether the voice content includes designated voice content.
作为一种方式,电子设备可以设置有指定语音内容,该指定语音内容用于作为电子设备提取获得的语音内容的判断依据。其中,可以理解的,该指定语音内容可以由电子设备预先存储在本地,也可以在判断时再进行设置,另外,该指定语音内容可以由电子设备自动配置、可以由用户手动设置、也可以由服务器配置完成后传输至电子设备,在此不做限定。因此,在本实施例中,在获得该语音信息中的语音内容后,可以将该语音内容与指定语音内容进行比较,以判断该语音内容是否包括指定语音内容。例如,该指定语音内容为“启动第一场景”,该语音内容为“请启动第一场景”,那么,可以确定该语音内容中包括指定语音内容。As a way, the electronic device may be provided with designated voice content, and the designated voice content is used as a judgment basis for the voice content extracted by the electronic device. It is understandable that the designated voice content can be pre-stored locally by the electronic device, or it can be set at the time of judgment. In addition, the designated voice content can be automatically configured by the electronic device, manually set by the user, or by After the server configuration is completed, it is transmitted to the electronic device, which is not limited here. Therefore, in this embodiment, after the voice content in the voice information is obtained, the voice content can be compared with the specified voice content to determine whether the voice content includes the specified voice content. For example, if the specified voice content is "start the first scene" and the voice content is "please start the first scene", then it can be determined that the voice content includes the specified voice content.
步骤S604:当所述语音内容包括所述指定语音内容时,响应所述语音信息,获取与所述语音触发事件对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商。Step S604: When the voice content includes the specified voice content, respond to the voice information to obtain device information in the scene corresponding to the voice trigger event, and the device information includes the information of the first device and the second device. Information about the device, the first device and the second device belong to different manufacturers.
其中,当确定该语音内容包括指定语音内容时,可以确定语音信息符合了语音触发事件,因此,电子设备可以响应该语音信息,获取语音触发事件对应场景中的设备信息。Wherein, when it is determined that the voice content includes the specified voice content, it can be determined that the voice information meets the voice trigger event. Therefore, the electronic device can respond to the voice information to obtain device information in the scene corresponding to the voice trigger event.
请参阅图8,图8示出了本申请的图7所示的设备控制方法的步骤S604的流程示意图。下面将针对图8所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 8, which shows a schematic flowchart of step S604 of the device control method shown in FIG. 7 of the present application. The process shown in FIG. 8 will be described in detail below, and the method may specifically include the following steps:
步骤S6041:当所述语音内容包括所述指定语音内容时,提取所述语音信息的声纹信息。Step S6041: When the voice content includes the designated voice content, extract voiceprint information of the voice information.
作为一种方式,在确定该语音内容包括指定语音内容时,该电子设备还可以提取该语音信息中的声纹信息。其中,声纹是可以用电声学仪器显示的携带言语信息的声波频谱,可以理解的,人类语言的产生是人体语言中枢与发声器官之间一个复杂的生理物理过程,人在讲话时使用的发声器官-舌、牙齿、喉头、肺、鼻腔在尺寸和形态方面每个人的差异很大,所以任何两个人的声纹图谱都有差异。每个人的语音声学特征既有相对稳定性,又有变异性,不是绝对的、一成不变的。这种变异可来自生理、病理、心理、模拟、伪装,也与环境干扰有关。尽管如此,由于每个人的发音器官都不尽相同,因此在一般情况下,人们仍能区别不同的人的声音或判断是否是同一人的声音。As a way, when it is determined that the voice content includes the specified voice content, the electronic device may also extract voiceprint information in the voice information. Among them, the voiceprint is the sound wave spectrum carrying speech information that can be displayed by electroacoustic instruments. It is understandable that the production of human language is a complex physiological and physical process between the human language center and the vocal organs. The voice used by people in speech The organs-tongue, teeth, throat, lungs, and nasal cavity are very different in size and shape from each person, so the voiceprint patterns of any two people are different. The acoustic characteristics of each person's voice have both relative stability and variability, and they are not absolute and static. This variation can come from physiology, pathology, psychology, simulation, camouflage, and is also related to environmental interference. Nevertheless, because everyone’s vocal organs are different, in general, people can still distinguish different people’s voices or judge whether they are the same person’s voice.
步骤S6042:判断所述声纹信息是否与指定声纹信息匹配。Step S6042: Determine whether the voiceprint information matches the specified voiceprint information.
进一步地,电子设备可以设置有指定声纹信息,该指定声纹信息用于作为从输入电子设备的语音信息中提取的声纹信息的判断依据。其中,该指定声纹信息可以为电子设备所对应的真实用户声 纹信息,因此,在获取所述语音信息的声纹信息后,可以将该声纹信息与指定声纹信息进行比较,以判断输入的语音信息是否为电子设备的真实用户,可以理解的,当该声纹信息与指定声纹信息匹配时,可以确定输入电子设备的语音信息为电子设备的真实用户输入;当该声纹信息与指定声纹信息不匹配时,可以确定输入电子设备的语音信息不是电子设备的真实用户输入。Further, the electronic device may be provided with designated voiceprint information, and the designated voiceprint information is used as a judgment basis for the voiceprint information extracted from the voice information input to the electronic device. Wherein, the specified voiceprint information may be real user voiceprint information corresponding to the electronic device. Therefore, after obtaining the voiceprint information of the voice information, the voiceprint information may be compared with the specified voiceprint information to determine Whether the input voice information is the real user of the electronic device, it is understandable that when the voiceprint information matches the specified voiceprint information, it can be determined that the voice information input to the electronic device is the real user input of the electronic device; when the voiceprint information When the specified voiceprint information does not match, it can be determined that the voice information input to the electronic device is not a real user input of the electronic device.
步骤S6043:当所述声纹信息与所述指定声纹信息匹配时,响应所述语音信息,获取与所述语音触发事件对应场景中的设备信息。Step S6043: When the voiceprint information matches the specified voiceprint information, respond to the voice information to obtain device information in the scene corresponding to the voice trigger event.
其中,当确定该声纹信息与指定声纹信息匹配,即确定输入电子设备的语音信息为电子设备的真实用户输入时,可以响应该语音信息,获取与该语音触发事件对应的场景中的设备信息。Wherein, when it is determined that the voiceprint information matches the specified voiceprint information, that is, it is determined that the voice information input to the electronic device is a real user input of the electronic device, the device in the scene corresponding to the voice trigger event can be obtained in response to the voice information information.
步骤S605:确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器。Step S605: Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
步骤S606:基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S606: Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to use a first control instruction to control the first device Send to the first vendor cloud server, and send a second control instruction for controlling the second device to the second vendor cloud server.
其中,步骤S604-步骤S606的具体描述请参阅步骤S101-步骤S106,在此不再赘述。For the specific description of step S604 to step S606, please refer to step S101 to step S106, which will not be repeated here.
本申请又再一个实施例提供的设备控制方法,检测输入电子设备的语音信息,提取该语音信息的语音内容,判断该语音内容是否包括指定语音内容,当该语音内容包括指定语音内容时,响应该语音信息,获取与语音触发事件所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将该控制指令发送至云服务器,该控制指令用于指示该云服务器将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器。相较于图4所示的设备控制方法,本实施例还可以通过语音触发场景,提升场景触发效率The device control method provided in yet another embodiment of the present application detects voice information input to an electronic device, extracts the voice content of the voice information, and determines whether the voice content includes specified voice content. When the voice content includes the specified voice content, the sound According to the voice information, obtain the information of the first device and the information of the second device in the scene corresponding to the voice trigger event, and determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device, A control instruction is generated based on the scene trigger event, and the control instruction is sent to the cloud server. The control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the cloud server of the first manufacturer. The second control instruction for controlling the second device is sent to the cloud server of the second manufacturer. Compared with the device control method shown in FIG. 4, this embodiment can also trigger scenes through voice to improve scene triggering efficiency.
请参阅图9,图9示出了本申请又另一个实施例提供的设备控制方法的流程示意图。下面将针对图9所示的流程进行详细的阐述,所述设备控制方法可以包括步骤S701-步骤S709:Please refer to FIG. 9, which shows a schematic flowchart of a device control method provided by yet another embodiment of the present application. The flow shown in FIG. 9 will be described in detail below. The device control method may include step S701 to step S709:
步骤S701:响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商。Step S701: In response to a scene trigger event, obtain device information in a scene corresponding to the scene trigger event. The device information includes information about a first device and information about a second device. The first device and the second device The equipment belongs to different manufacturers.
步骤S702:确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器。Step S702: Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
其中,步骤S701-步骤S702的具体描述请参阅步骤S101-步骤S102,在此不再赘述。For the specific description of step S701-step S702, please refer to step S101-step S102, which will not be repeated here.
步骤S703:获取所述场景触发事件所对应场景中配置的所述第一设备的目标状态信息和所述第二设备的目标状态信息。Step S703: Obtain the target state information of the first device and the target state information of the second device configured in the scene corresponding to the scene trigger event.
其中,场景在配置时会配置该场景中的设备的目标状态信息,即期望该设备达到的状态信息。于本实施例中,场景触发事件对应的场景中可以配置第一设备的目标状态信息和第二设备的目标状态信息,例如,该第一设备为空调,第二设备为电视,且第一设备的目标状态信息为“26°”,第二设备的目标状态信息为“打开”。Among them, when the scene is configured, the target state information of the device in the scene will be configured, that is, the state information that the device is expected to reach. In this embodiment, the target state information of the first device and the target state information of the second device can be configured in the scene corresponding to the scene trigger event. For example, the first device is an air conditioner, the second device is a TV, and the first device The target status information of the second device is "26°", and the target status information of the second device is "open".
步骤S704:获取所述第一设备的当前状态信息和所述第二设备的当前状态信息。Step S704: Acquire current state information of the first device and current state information of the second device.
进一步地,可以通过第一厂商云服务器对第一设备的当前状态信息进行监测并通过云服务器反馈到电子设备,以及通过第二厂商云服务器对第二设备的当前状态信息进行监测并通过云服务器反馈到电子设备。其中,第一设备的当前状态信息和第二设备的当前状态信息可以是实时获取、可以是间隔预定时长获取、也可以是在响应场景触发事件时获取,在此不做限定。Further, the current status information of the first device can be monitored through the cloud server of the first manufacturer and fed back to the electronic device through the cloud server, and the current status information of the second device can be monitored through the cloud server of the second manufacturer and passed through the cloud server Feedback to electronic equipment. Wherein, the current state information of the first device and the current state information of the second device may be acquired in real time, may be acquired at predetermined intervals, or may be acquired in response to a scene trigger event, which is not limited here.
步骤S705:判断所述第一设备的目标状态信息是否与所述第一设备的当前状态信息一致,以及判断所述第二设备的目标状态信息是否与所述第二设备的当前状态信息一致,获得判断结果。Step S705: Determine whether the target state information of the first device is consistent with the current state information of the first device, and determine whether the target state information of the second device is consistent with the current state information of the second device, Obtain the judgment result.
进一步地,将第一设备的目标状态信息和当前状态信息进行比较,以判断该第一设备的目标状态信息是否与当前状态信息一致;以及将第二设备的目标状态信息与当前状态信息进行比较,以判断该第二设备的目标状态信息是否与当前状态信息一致。以第一设备为例,当所述第一设备为空调,且目标状态信息为“26°”,若所述第一设备的当前状态信息为“26°”,那么,该第一设备的目标状态信息和当前状态信息一致,若所述第一设备的当前状态信息为“20°”,那么,该第一设备的目标状态信息和当前状态信息不一致。Further, compare the target state information of the first device with the current state information to determine whether the target state information of the first device is consistent with the current state information; and compare the target state information of the second device with the current state information , To determine whether the target state information of the second device is consistent with the current state information. Taking the first device as an example, when the first device is an air conditioner and the target status information is "26°", if the current status information of the first device is "26°", then the target of the first device The status information is consistent with the current status information. If the current status information of the first device is "20°", then the target status information of the first device is inconsistent with the current status information.
步骤S706:当所述判断结果为第一设备的目标状态信息与所述第一设备的当前状态信息不一致且所述第二设备的目标状态信息与所述第二设备的当前状态信息不一致时,基于所述场景触发事件和所述判断结果生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S706: When the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device, and the target state information of the second device is inconsistent with the current state information of the second device, A control instruction is generated based on the scene trigger event and the judgment result, and the control instruction is sent to the cloud server. The control instruction is used to instruct the cloud server to control the first device of the first device. The control instruction is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
其中,当第一设备的目标状态信息和当前状态信息不一致且第二设备的目标状态信息和当前状态信息不一致时,表征该第一设备的状态信息和第二设备的状态信息均需要进行调整,因此,可以基于该触发事件和判断结果生成控制指令,该控制指令包括用于控制第一设备的第一控制指令和用于控制第二设备的第 二控制指令,将该第一控制指令发送至第一厂商云服务器,指示第一厂商云服务器将第一设备的当前状态调整为目标状态,将该第二控制指令发送至第二厂商云服务器,指示第二厂商云服务器将第二设备的当前状态调整为目标状态。Wherein, when the target state information of the first device is inconsistent with the current state information and the target state information of the second device is inconsistent with the current state information, the state information that characterizes the first device and the state information of the second device need to be adjusted, Therefore, a control instruction can be generated based on the trigger event and the judgment result. The control instruction includes a first control instruction for controlling the first device and a second control instruction for controlling the second device, and the first control instruction is sent to The cloud server of the first vendor instructs the cloud server of the first vendor to adjust the current state of the first device to the target state, and sends the second control instruction to the cloud server of the second vendor to instruct the cloud server of the second vendor to change the current state of the second device The state is adjusted to the target state.
步骤S707:监听所述云服务器发送的反馈信息。Step S707: Monitor the feedback information sent by the cloud server.
其中,云服务器将第一控制指令发送至第一厂商云服务器,如果第一指令发送失败,则云服务器发送反馈信息至电子设备;同样的,云服务器将第二控制指令发送至第二厂商云服务器,如果第二指令发送失败,则云服务器发送反馈信息至电子设备,因此,作为一种方式,电子设备对云服务器发送的反馈信息进行监听。Wherein, the cloud server sends the first control instruction to the cloud server of the first manufacturer, and if the sending of the first instruction fails, the cloud server sends feedback information to the electronic device; similarly, the cloud server sends the second control instruction to the cloud server of the second manufacturer For the server, if the sending of the second instruction fails, the cloud server sends feedback information to the electronic device. Therefore, as a way, the electronic device monitors the feedback information sent by the cloud server.
步骤S708:当监听到所述反馈信息指示所述控制指令发送失败时,通过延时退避算法重新将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S708: When it is monitored that the feedback information indicates that the control instruction has failed to be sent, the control instruction is re-sent to the cloud server through the delayed backoff algorithm, and the control instruction is used to instruct the cloud server to use The first control instruction for controlling the first device is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
作为一种方式,如果监听到该反馈信息指示控制指令发送失败时,则可以重新将该控制指令发送至云服务器,以指示该云服务器将该控制指令中用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器。在本实施例中,可以通过延迟退避算法重新发送控制指令,并且在重新发送指令的次数达到指定次数时,停止重新发送,其中,该指定次数可以包括3次。As a way, if it is monitored that the feedback information indicates that the control instruction has failed to be sent, the control instruction can be re-sent to the cloud server to instruct the cloud server to control the first control of the first device in the control instruction. The instruction is sent to the cloud server of the first manufacturer, and the second control instruction for controlling the second device is sent to the cloud server of the second manufacturer. In this embodiment, the control instruction can be re-sent through the delayed backoff algorithm, and when the number of re-sending instructions reaches a specified number of times, the re-sending is stopped, where the specified number of times may include 3 times.
请参阅图10,图10示出了本申请的图9所示的设备控制方法的步骤S708的流程示意图。下面将针对图10所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 10, which shows a schematic flowchart of step S708 of the device control method shown in FIG. 9 of the present application. The following will elaborate on the process shown in FIG. 10, and the method may specifically include the following steps:
步骤S7081:当监听到所述反馈信息指示所述控制指令发送失败时,判断所述场景触发事件是否符合指定触发事件。Step S7081: When it is monitored that the feedback information indicates that the control instruction has failed to be sent, it is determined whether the scene trigger event meets the specified trigger event.
作为一种方式,在确定该指令信息发送失败时,可以获取该场景触发事件是否符合指定触发事件,在本实施例中,该指定触发事件可以包括定时触发事件和设备状态触发事件。As a way, when it is determined that the instruction information fails to be sent, it can be obtained whether the scene trigger event conforms to a specified trigger event. In this embodiment, the specified trigger event may include a timing trigger event and a device state trigger event.
步骤S7082:当所述触发事件符合所述指定触发事件时,通过延时退避算法重新将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制第二设备的第二控制指令发送至所述第二厂商云服务器。Step S7082: When the trigger event matches the specified trigger event, re-send the control instruction to the cloud server through the delayed backoff algorithm, and the control instruction is used to instruct the cloud server to be used to control the first A first control instruction for a device is sent to the first vendor cloud server, and a second control instruction for controlling a second device is sent to the second vendor cloud server.
其中,当该触发事件为定时触发事件或设备状态触发事件时,可以重新发送所述指令信息。Wherein, when the trigger event is a timing trigger event or a device state trigger event, the instruction information can be re-sent.
步骤S709:当所述判断结果为所述第一设备的目标状态信息与所述第一设备的当前状态信息不一致且所述第二设备的目标状态信息与所述第二设备的当前状态信息一致时,基于所述场景触发事件和所述判断结果生成所述第一控制指令,将所述第一控制指令发送至所述云服务器,所述第一控制指令用于指示所述云服务器将所述第一控制指令发送至所述第一设备。Step S709: When the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device and the target state information of the second device is consistent with the current state information of the second device , Generate the first control instruction based on the scene trigger event and the judgment result, and send the first control instruction to the cloud server, and the first control instruction is used to instruct the cloud server to The first control instruction is sent to the first device.
其中,当该第一设备的目标状态信息和当前状态信息不一致且第二设备的目标状态信息和当前状态信息一致时,表征该第一设备的状态信息需要进行调整且第二设备的状态信息不需要进行调整,因此,可以基于该触发事件和判断结果用于控制第一设备的第一控制指令,并将该第一控制指令发送至第一厂商云服务器,以指示第一厂商云服务器将所述第一设备的当前状态调整为目标状态。Wherein, when the target state information of the first device is inconsistent with the current state information and the target state information of the second device is consistent with the current state information, the state information representing the first device needs to be adjusted and the state information of the second device is not consistent. Need to be adjusted. Therefore, the first control instruction used to control the first device based on the trigger event and the judgment result can be used to send the first control instruction to the cloud server of the first manufacturer to instruct the cloud server of the first manufacturer to The current state of the first device is adjusted to the target state.
本申请又另一个实施例提供的设备控制方法,响应场景触发事件,获取场景触发事件所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,获取该场景触发事件所对应场景中配置的第一设备的目标状态信息和第二设备的目标状态信息,获取该第一设备的当前状态信息和第二设备的当前状态信息,当该第一设备的目标状态信息与当前状态信息不一致且第二设备的目标状态信息与当前状态信息不一致时,生成控制指令并将该控制指令发送至云服务器,该控制指令用于指示云服务器将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器,并在发送失败是,通过延时退避算法重新发送,当该第一设备的目标状态信息与当前状态信息不一致且第二设备的当前状态信息和当前状态信息一致时,生成第一控制指令并将该第一控制指令发送至云服务器,该第一控制指令用于指示云服务器将第一控制指令发送至第一厂商云服务器。相较于图4所示的设备控制方法,本实施例在对场景中的设备状态进行监控,当状态信息符合条件时,不发送控制指令,减少数据量的传输。The device control method provided by yet another embodiment of the present application responds to a scene trigger event, obtains information about a first device and a second device in a scene corresponding to the scene trigger event, and determines the first vendor cloud corresponding to the first device The second vendor cloud server corresponding to the server and the second device obtains the target state information of the first device and the target state information of the second device configured in the scene corresponding to the scene trigger event, and obtains the current state information of the first device and The current state information of the second device, when the target state information of the first device is inconsistent with the current state information and the target state information of the second device is inconsistent with the current state information, a control instruction is generated and sent to the cloud server, The control instruction is used to instruct the cloud server to send the first control instruction for controlling the first device to the cloud server of the first manufacturer, and send the second control instruction for controlling the second device to the cloud server of the second manufacturer, and If the transmission fails, it is retransmitted through the delayed backoff algorithm. When the target state information of the first device is inconsistent with the current state information and the current state information of the second device is consistent with the current state information, the first control instruction is generated and the second device is A control instruction is sent to the cloud server, and the first control instruction is used to instruct the cloud server to send the first control instruction to the cloud server of the first manufacturer. Compared with the device control method shown in FIG. 4, this embodiment monitors the device status in the scene, and when the status information meets the conditions, no control instruction is sent, which reduces the amount of data transmission.
请参阅图11,图11示出了本申请还一个实施例提供的设备控制方法的流程示意图。在具体的实施例中,所述设备控制方法应用于如图13所示的设备控制装置800以及配置有所述设备控制装置800的云服务器200(图15),下面将针对图11所示的流程进行详细的阐述,所述设备控制方法可以包括步骤S801-步骤S804:Please refer to FIG. 11, which shows a schematic flowchart of a device control method according to another embodiment of the present application. In a specific embodiment, the device control method is applied to the device control device 800 shown in FIG. 13 and the cloud server 200 (FIG. 15) configured with the device control device 800, and the following will focus on the device control device 800 shown in FIG. The process is described in detail, and the device control method may include step S801-step S804:
步骤S801:所述云服务器接收所述电子设备发送的场景触发信息。Step S801: The cloud server receives the scene trigger information sent by the electronic device.
在本实施例中,电子设备响应场景触发事件生成场景触发信息,并将该场景触发信息发送至云服务器,以通过该云服务器对场景触发信息进行处理。In this embodiment, the electronic device generates scene trigger information in response to the scene trigger event, and sends the scene trigger information to the cloud server to process the scene trigger information through the cloud server.
步骤S802:获取所述场景触发信息所对应的场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商。Step S802: Obtain device information in the scene corresponding to the scene trigger information. The device information includes information about a first device and information about a second device. The first device and the second device belong to different Vendor.
步骤S803:确定所述第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器。Step S803: Determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
步骤S804:基于所述场景触发信息生成控制指令,将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Step S804: Generate a control instruction based on the scene trigger information, send the first control instruction for controlling the first device to the first vendor cloud server, and set the second control instruction for controlling the second device The instruction is sent to the cloud server of the second manufacturer.
其中,步骤S801-步骤S804的具体描述请参阅步骤S101-步骤S106,在此不再赘述。For the specific description of step S801 to step S804, please refer to step S101 to step S106, which will not be repeated here.
本申请还一个实施例提供的设备控制方法,云服务器接收电子设备发送的场景触发信息,获取该场景触发信息所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器。相较于图4所示的设备控制方法,本实施例还可以通过触控操作触发场景,提升场景触发效率。In the device control method provided by another embodiment of the present application, the cloud server receives the scene trigger information sent by the electronic device, obtains the information of the first device and the information of the second device in the scene corresponding to the scene trigger information, and determines the first device The corresponding cloud server of the first vendor and the cloud server of the second vendor corresponding to the second device generate control instructions based on the scene trigger event, and send the first control instruction for controlling the first device to the cloud server of the first vendor, and use The second control instruction for controlling the second device is sent to the cloud server of the second manufacturer. Compared with the device control method shown in FIG. 4, this embodiment can also trigger a scene through a touch operation, which improves the efficiency of scene triggering.
请参阅图12,图12示出了本申请一个实施例提供的设备控制装置700的模块框图。该设备控制装置700应用于上述电子设备100,下面将针对图12所示的框图进行阐述,所述设备控制装置700包括:获取模块710、确定模块720以及发送模块730,其中:Please refer to FIG. 12, which shows a block diagram of a device control apparatus 700 according to an embodiment of the present application. The device control apparatus 700 is applied to the above-mentioned electronic device 100. The following will describe the block diagram shown in FIG. 12. The device control apparatus 700 includes: an acquisition module 710, a determination module 720, and a sending module 730, wherein:
获取模块710,用于响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商。进一步地,当所述场景触发事件为触控操作触发事件时,所述获取模块710包括:场景控件展示子模块、触控操作检测子模块、触控操作判断子模块以及触控操作响应子模块,其中:The acquisition module 710 is configured to respond to a scene trigger event and acquire device information in a scene corresponding to the scene trigger event. The device information includes information about the first device and information about the second device. The second device belongs to a different manufacturer. Further, when the scene trigger event is a touch operation trigger event, the acquisition module 710 includes: a scene control display submodule, a touch operation detection submodule, a touch operation judgment submodule, and a touch operation response submodule ,among them:
场景控件展示子模块,用于所述电子设备展示场景控件。The scene control display sub-module is used for the electronic device to display the scene control.
触控操作检测子模块,用于检测作用于所述场景控件上的触控操作。The touch operation detection sub-module is used to detect the touch operation acting on the scene control.
触控操作判断子模块,用于判断所述触控操作是否符合指定触控操作。The touch operation judging sub-module is used to judge whether the touch operation meets the specified touch operation.
触控操作响应子模块,用于当所述触控操作符合所述指定触控操作时,响应所述触控操作,获取所述触控操作触发事件所对应场景中的设备信息。The touch operation response sub-module is configured to respond to the touch operation when the touch operation matches the specified touch operation, and obtain device information in the scene corresponding to the touch operation trigger event.
进一步地,当所述场景触发事件为定时触发事件时,所述获取模块710包括:时间检测子模块、时间判断子模块以及时间响应子模块,其中:Further, when the scene trigger event is a timing trigger event, the acquisition module 710 includes: a time detection sub-module, a time judgment sub-module, and a time response sub-module, wherein:
时间检测子模块,用于检测当前时间。Time detection sub-module, used to detect the current time.
时间判断子模块,用于所述当前时间是否到达指定时间。The time judgment sub-module is used for whether the current time reaches the specified time.
时间响应子模块,用于当所述当前时间到达所述指定时间时,响应所述当前时间,获取所述定时触发事件所对应场景中的设备信息。The time response submodule is configured to respond to the current time when the current time reaches the specified time, and obtain device information in the scene corresponding to the timing trigger event.
进一步地,当所述场景触发事件为设备状态触发事件时,所述获取模块710包括:目标设备获取子模块、目标云服务器确定子模块、订阅设备事件发送子模块以及状态信息响应子模块,其中:Further, when the scene trigger event is a device state trigger event, the acquisition module 710 includes: a target device acquisition submodule, a target cloud server determination submodule, a subscription device event sending submodule, and a status information response submodule, where :
目标设备获取子模块,用于获取所述目标设备,并基于所述目标设备生成订阅设备事件。The target device acquisition sub-module is used to acquire the target device and generate subscription device events based on the target device.
目标云服务器确定子模块,用于确定所述目标设备对应的目标云服务器。The target cloud server determining sub-module is used to determine the target cloud server corresponding to the target device.
订阅设备事件发送子模块,用于将所述订阅设备事件发送至所述云服务器,指示所述云服务器将所述订阅设备事件发送至所述目标云服务器,所述订阅设备事件用于指示所述目标云服务器在所述目标设备的状态信息符合指定状态信息时反馈所述状态确认信息。The subscription device event sending submodule is used to send the subscription device event to the cloud server, and instruct the cloud server to send the subscription device event to the target cloud server, and the subscription device event is used to instruct all The target cloud server feeds back the status confirmation information when the status information of the target device meets the specified status information.
状态信息响应子模块,用于当接收到所述云服务器发送的对应目标设备的状态确认信息时,响应所述状态确认信息,获取所述设备状态触发事件所对应场景中的设备信息。The status information response submodule is configured to respond to the status confirmation information and obtain the device information in the scene corresponding to the device status trigger event when receiving the status confirmation information corresponding to the target device sent by the cloud server.
进一步地,当所述场景触发事件为语音触发事件时,所述获取模块710包括:语音信息检测子模块、语音内容提取子模块、语音内容判断子模块以及语音信息响应子模块,其中:Further, when the scene trigger event is a voice trigger event, the acquisition module 710 includes: a voice information detection submodule, a voice content extraction submodule, a voice content judgment submodule, and a voice information response submodule, wherein:
语音信息检测子模块,用于检测输入所述电子设备的语音信息。The voice information detection sub-module is used to detect voice information input to the electronic device.
语音内容提取子模块,用于提取所述语音信息的语音内容。The voice content extraction sub-module is used to extract the voice content of the voice information.
语音内容判断子模块,用于判断所述语音内容是否包括指定语音内容。The voice content judgment sub-module is used to judge whether the voice content includes specified voice content.
语音信息响应子模块,用于当所述语音内容包括所述指定语音内容时,响应所述语音信息,获取与所述语音触发事件对应场景中的设备信息。进一步地,所述语音信息响应子模块包括:声纹信息提取单元、声纹信息判断单元以及语音信息响应单元,其中:The voice information response sub-module is configured to respond to the voice information when the voice content includes the specified voice content, and obtain device information in a scene corresponding to the voice trigger event. Further, the voice information response submodule includes: a voiceprint information extraction unit, a voiceprint information judgment unit, and a voice information response unit, wherein:
声纹信息提取单元,用于当所述语音内容包括所述指定语音内容时,提取所述语音信息的声纹信息。The voiceprint information extraction unit is configured to extract voiceprint information of the voice information when the voice content includes the specified voice content.
声纹信息判断单元,用于判断所述声纹信息是否与指定声纹信息匹配。The voiceprint information judging unit is used to judge whether the voiceprint information matches the specified voiceprint information.
语音信息响应单元,用于当所述声纹信息与所述指定声纹信息匹配时,响应所述语音信息,获取与所述语音触发事件对应场景中的设备信息。The voice information response unit is configured to respond to the voice information when the voiceprint information matches the specified voiceprint information, and obtain device information in a scene corresponding to the voice trigger event.
确定模块720,用于确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器。The determining module 720 is configured to determine a first vendor cloud server corresponding to the first device and a second vendor cloud server corresponding to the second device.
发送模块730,用于基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。进一步地,所述发送模块730包括:目标状态信息获取子模块、当前状态信息获取子模块、状态信息判断子模块、第一发送子模块以及第二发送子模块,其中:The sending module 730 is configured to generate a control instruction based on the scene trigger event and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to control the first device of the first device A control instruction is sent to the cloud server of the first vendor, and a second control instruction for controlling the second device is sent to the cloud server of the second vendor. Further, the sending module 730 includes: a target status information acquisition submodule, a current status information acquisition submodule, a status information judgment submodule, a first sending submodule, and a second sending submodule, wherein:
目标状态信息获取子模块,用于获取所述场景触发事件所对应场景中配置的所述第一设备的目标状态信息和所述第二设备的目标状态信息。The target state information acquisition sub-module is configured to acquire the target state information of the first device and the target state information of the second device configured in the scene corresponding to the scene trigger event.
当前状态信息获取子模块,用于获取所述第一设备的当前状态信息和所述第二设备的当前状态信息。The current status information acquisition submodule is used to acquire the current status information of the first device and the current status information of the second device.
状态信息判断子模块,用于判断所述第一设备的目标状态信息是否与所述第一设备的当前状态信息一致,以及判断所述第二设备的目标状态信息是否与所述第二设备的当前状态信息一致,获得判断结果。The state information judging sub-module is used to judge whether the target state information of the first device is consistent with the current state information of the first device, and to judge whether the target state information of the second device is consistent with that of the second device. The current status information is consistent, and the judgment result is obtained.
第一发送子模块,用于当所述判断结果为第一设备的目标状态信息与所述第一设备的当前状态信息不一致且所述第二设备的目标状态信息与所述第二设备的当前状态信息不一致时,基于所述场景触发事件和所述判断结果生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。The first sending submodule is used for when the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device and the target state information of the second device is the same as the current state information of the second device When the status information is inconsistent, a control instruction is generated based on the scene trigger event and the judgment result, and the control instruction is sent to the cloud server. The control instruction is used to instruct the cloud server to control the first A first control instruction for a device is sent to the first vendor cloud server, and a second control instruction for controlling the second device is sent to the second vendor cloud server.
第二发送子模块,用于当所述判断结果为所述第一设备的目标状态信息与所述第一设备的当前状态信息不一致且所述第二设备的目标状态信息与所述第二设备的当前状态信息一致时,基于所述场景触发事件和所述判断结果生成所述第一控制指令,将所述第一控制指令发送至所述云服务器,所述第一控制指令用于指示所述云服务器将所述第一控制指令发送至所述第一设备。The second sending submodule is used for when the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device and the target state information of the second device is the same as that of the second device When the current state information of the data is consistent, the first control instruction is generated based on the scene trigger event and the judgment result, and the first control instruction is sent to the cloud server, and the first control instruction is used to instruct all The cloud server sends the first control instruction to the first device.
进一步地,所述设备控制装置700还包括:监听模块和控制模块,其中:Further, the device control apparatus 700 further includes: a monitoring module and a control module, wherein:
监听模块,用于监听所述云服务器发送的反馈信息。The monitoring module is used to monitor the feedback information sent by the cloud server.
控制模块,用于当监听到所述反馈信息指示所述控制指令发送失败时,通过延时退避算法重新将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。进一步地,所述控制模块包括:触发事件判断子模块和控制子模块,其中:The control module is configured to re-send the control instruction to the cloud server through a delayed backoff algorithm when the feedback information indicates that the control instruction has failed to be sent, and the control instruction is used to instruct the cloud server The first control instruction for controlling the first device is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server. Further, the control module includes: a trigger event judgment sub-module and a control sub-module, wherein:
触发事件判断子模块,用于当监听到所述反馈信息指示所述控制指令发送失败时,判断所述场景触发事件是否符合指定触发事件。The trigger event judging sub-module is used to judge whether the scene trigger event conforms to the specified trigger event when the feedback information indicates that the control instruction has failed to be sent.
控制子模块,用于当所述触发事件符合所述指定触发事件时,通过延时退避算法重新将所述控制指令发送至所述云服务器,所述控制指令指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。The control sub-module is configured to re-send the control instruction to the cloud server through the delayed backoff algorithm when the trigger event matches the specified trigger event, and the control instruction instructs the cloud server to be used for control The first control instruction of the first device is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
请参阅图13,图13示出了本申请又一个实施例提供的设备控制装置800的模块框图。该设备控制装置800应用于上述云服务器200,下面将针对图13所示的框图进行阐述,所述设备控制装置800包括:接收模块810、获取模块820、确定模块830以及发送模块840,其中:接收Please refer to FIG. 13, which shows a block diagram of a device control apparatus 800 according to another embodiment of the present application. The device control device 800 is applied to the above-mentioned cloud server 200. The following will describe the block diagram shown in FIG. 13. The device control device 800 includes: a receiving module 810, an acquiring module 820, a determining module 830, and a sending module 840, wherein: receive
接收模块810,用于所述云服务器接收所述电子设备发送的场景触发信息。The receiving module 810 is configured to receive the scene trigger information sent by the electronic device by the cloud server.
获取模块820,用于获取所述场景触发信息所对应的场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商。The acquiring module 820 is configured to acquire device information in the scene corresponding to the scene trigger information. The device information includes the information of the first device and the information of the second device. The first device and the second device Belong to different manufacturers.
确定模块830,用于确定所述第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器。The determining module 830 is configured to determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device.
发送模块840,用于基于所述场景触发信息生成控制指令,将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。The sending module 840 is configured to generate a control instruction based on the scene trigger information, send a first control instruction for controlling the first device to the first vendor cloud server, and send a control instruction for controlling the second device The second control instruction is sent to the cloud server of the second manufacturer.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the device and module described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
另外,本申请实施例还提供了一种设备控制系统10,包括电子设备100、云服务器200、第一设备300、第二设备400、第一厂商云服务器500以及第二厂商云服务器600,所述云服务器200分别与所述电子设备100、所述第一厂商云服务器500以及所述第二厂商云服务器600通信连接,所述第一厂商云服务器500与所述第一设备300通信连接,所述第二厂商云服务器600与所述第二设备400通信连接,其中:In addition, an embodiment of the present application also provides a device control system 10, which includes an electronic device 100, a cloud server 200, a first device 300, a second device 400, a first vendor cloud server 500, and a second vendor cloud server 600. The cloud server 200 is in communication connection with the electronic device 100, the first vendor cloud server 500, and the second vendor cloud server 600, and the first vendor cloud server 500 is in communication connection with the first device 300, The second vendor cloud server 600 is in communication connection with the second device 400, wherein:
所述电子设备100,用于响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括所述第一设备300的设备信息和所述第二设备400的设备信息,所述第一设备300和所述第二设备400属于不同的厂商。The electronic device 100 is configured to respond to a scene trigger event and obtain device information in a scene corresponding to the scene trigger event. The device information includes the device information of the first device 300 and the device information of the second device 400 Device information, the first device 300 and the second device 400 belong to different manufacturers.
所述电子设备100,用于确定所述第一设备300对应的所述第一厂商云服务器500和所述第二设备400 对应的所述第二厂商云服务器600。The electronic device 100 is configured to determine the first vendor cloud server 500 corresponding to the first device 300 and the second vendor cloud server 600 corresponding to the second device 400.
所述电子设备100,用于基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器200。The electronic device 100 is configured to generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server 200.
所述云服务器200,用于将所述控制指令中用于控制所述第一设备300的第一控制指令发送至所述第一厂商云服务器500,将所述控制指令中用于控制所述第二设备400的第二控制指令发送至所述第二厂商云服务器600。The cloud server 200 is configured to send the first control instruction used to control the first device 300 in the control instruction to the first vendor cloud server 500, and use the control instruction to control the The second control instruction of the second device 400 is sent to the second vendor cloud server 600.
所述第一厂商云服务器500,用于基于所述第一控制指令控制所述第一设备300做出响应。The first vendor cloud server 500 is configured to control the first device 300 to respond based on the first control instruction.
所述第二厂商云服务器600,用于基于所述第二控制指令控制所述第二设备400做出响应。The second vendor cloud server 600 is configured to control the second device 400 to respond based on the second control instruction.
请参阅图14,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、屏幕130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 14, which shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or an e-book. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a screen 130, and one or more application programs, of which one or more application programs may be stored in the memory 120 and configured To be executed by one or more processors 110, one or more programs are configured to execute the methods described in the foregoing method embodiments.
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120. Various functions and processing data of the electronic device 100. Optionally, the processor 110 may adopt at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). A kind of hardware form to realize. The processor 110 may be integrated with one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc. The data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
进一步地,所述屏幕130可以为液晶显示屏(Liquid Crystal Display,LCD),可以为有机发光二极管(Organic Light-Emitting Diode,OLED)等。所述屏幕130用于显示由用户输入的信息、提供给用户的信息以及所述电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成。Further, the screen 130 may be a liquid crystal display (Liquid Crystal Display, LCD), may be an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. The screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof. constitute.
请参阅图15,其示出了本申请实施例提供的一种云服务器200的结构框图。本申请中的云服务器200可以包括一个或多个如下部件:处理器210、存储器220以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器220中并被配置为由一个或多个处理器210执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。其中,处理器210和存储器220的具体描述请参阅处理器110和存储器120的描述,在此不再赘述。Please refer to FIG. 15, which shows a structural block diagram of a cloud server 200 according to an embodiment of the present application. The cloud server 200 in this application may include one or more of the following components: a processor 210, a memory 220, and one or more application programs. One or more application programs may be stored in the memory 220 and configured to be Or multiple processors 210 execute, and one or more programs are configured to execute the method described in the foregoing method embodiment. For specific descriptions of the processor 210 and the memory 220, please refer to the descriptions of the processor 110 and the memory 120, which will not be repeated here.
请参阅图16,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质900中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 16, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 900 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质900可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质900包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质900具有执行上述方法中的任何方法步骤的程序代码910的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码910可以例如以适当形式进行压缩。The computer-readable storage medium 900 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for the program code 910 for executing any method steps in the above-mentioned methods. These program codes can be read out from or written into one or more computer program products. The program code 910 may be compressed in an appropriate form, for example.
综上所述,本申请实施例提供的设备控制方法、装置、系统、电子设备以及云服务器,响应场景触发事件,获取该场景触发事件所对应场景中的第一设备的信息和第二设备的信息,确定该第一设备对应的第一厂商云服务器和第二设备对应的第二厂商云服务器,基于该场景触发事件生成控制指令,将该控制指令发送至云服务器,该控制指令用于指示该云服务器将用于控制第一设备的第一控制指令发送至第一厂商云服务器,将用于控制第二设备的第二控制指令发送至第二厂商云服务器,从而通过确定场景触发事件所对应的场景中的多个设备,并通过云服务器将控制指令分别发送至多个设备所对应的多个厂商云服务器,实现多个厂商的设备的联动控制,提升场景联动效率。In summary, the device control method, device, system, electronic device, and cloud server provided by the embodiments of the present application respond to a scene trigger event to obtain information about the first device and information about the second device in the scene corresponding to the scene trigger event. Information, determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device, generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct The cloud server sends the first control instruction for controlling the first device to the cloud server of the first manufacturer, and sends the second control instruction for controlling the second device to the cloud server of the second manufacturer, thereby triggering the event by determining the scene. Corresponding to multiple devices in the scene, and through the cloud server to send control instructions to multiple vendors' cloud servers corresponding to the multiple devices, to achieve linkage control of devices from multiple vendors, and to improve the efficiency of scenario linkage.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使 相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种设备控制方法,其特征在于,应用于接入云服务器的电子设备,所述方法包括:A device control method, characterized in that it is applied to an electronic device connected to a cloud server, and the method includes:
    响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商;In response to a scene trigger event, obtain device information in the scene corresponding to the scene trigger event. The device information includes information about a first device and information about a second device. The first device and the second device belong to different Manufacturer
    确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器;Determining a first vendor cloud server corresponding to the first device and a second vendor cloud server corresponding to the second device;
    基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to send a first control instruction for controlling the first device to all The first vendor cloud server sends a second control instruction for controlling the second device to the second vendor cloud server.
  2. 根据权利要求1所述的方法,其特征在于,所述场景触发事件包括触控操作触发事件、定时触发事件、设备状态触发事件以及语音触发事件中的至少一种。The method according to claim 1, wherein the scene trigger event includes at least one of a touch operation trigger event, a timing trigger event, a device state trigger event, and a voice trigger event.
  3. 根据权利要求2所述的方法,其特征在于,当所述场景触发事件为所述触控操作触发事件时,所述响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,包括:The method according to claim 2, wherein when the scene triggering event is the touch operation triggering event, responding to the scene triggering event to obtain device information in the scene corresponding to the scene triggering event, include:
    所述电子设备展示场景控件;The electronic device displays scene controls;
    检测作用于所述场景控件上的触控操作;Detecting a touch operation acting on the scene control;
    判断所述触控操作是否符合指定触控操作;Determine whether the touch operation conforms to a specified touch operation;
    当所述触控操作符合所述指定触控操作时,响应所述触控操作,获取所述触控操作触发事件所对应场景中的设备信息。When the touch operation conforms to the specified touch operation, in response to the touch operation, obtain device information in the scene corresponding to the touch operation trigger event.
  4. 根据权利要求2所述的方法,其特征在于,当所述场景触发事件为所述定时触发事件,所述响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,包括:The method according to claim 2, wherein when the scene trigger event is the timing trigger event, the responding to the scene trigger event and acquiring device information in the scene corresponding to the scene trigger event comprises:
    检测当前时间;Detect current time;
    判断所述当前时间是否到达指定时间;Determine whether the current time reaches the designated time;
    当所述当前时间到达所述指定时间时,响应所述当前时间,获取所述定时触发事件所对应场景中的设备信息。When the current time reaches the specified time, respond to the current time to obtain device information in the scene corresponding to the timing trigger event.
  5. 根据权利要求2所述的方法,其特征在于,当所述场景触发事件为所述设备状态触发事件时,所述响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,包括:The method according to claim 2, wherein when the scene trigger event is the device state trigger event, the responding to the scene trigger event and acquiring device information in the scene corresponding to the scene trigger event comprises :
    当接收到所述云服务器发送的对应目标设备的状态确认信息时,响应所述状态确认信息,获取所述设备状态触发事件所对应场景中的设备信息。When receiving the status confirmation information corresponding to the target device sent by the cloud server, respond to the status confirmation information to obtain the device information in the scene corresponding to the device status trigger event.
  6. 根据权利要求5所述的方法,其特征在于,所述当接收到所述云服务器发送的对应所述目标设备的状态确认信息时,响应所述状态确认信息,获取所述设备状态触发事件所对应场景中的设备信息之前,还包括:The method according to claim 5, wherein when receiving the status confirmation information corresponding to the target device sent by the cloud server, responding to the status confirmation information to obtain the status of the device trigger event Before corresponding to the device information in the scene, it also includes:
    获取所述目标设备,并基于所述目标设备生成订阅设备事件;Acquiring the target device, and generating a subscription device event based on the target device;
    确定所述目标设备对应的目标云服务器;Determine the target cloud server corresponding to the target device;
    将所述订阅设备事件发送至所述云服务器,指示所述云服务器将所述订阅设备事件发送至所述目标云服务器,所述订阅设备事件用于指示所述目标云服务器在所述目标设备的状态信息符合指定状态信息时反馈所述状态确认信息。Send the subscription device event to the cloud server, instruct the cloud server to send the subscription device event to the target cloud server, and the subscription device event is used to indicate that the target cloud server is on the target device When the status information matches the specified status information, the status confirmation information is fed back.
  7. 根据权利要求2所述的方法,其特征在于,当所述场景触发事件为所述语音触发事件时,所述响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,包括:The method according to claim 2, wherein when the scene trigger event is the voice trigger event, the responding to the scene trigger event and obtaining device information in the scene corresponding to the scene trigger event comprises:
    检测输入所述电子设备的语音信息;Detecting voice information input to the electronic device;
    提取所述语音信息的语音内容;Extract the voice content of the voice information;
    判断所述语音内容是否包括指定语音内容;Determine whether the voice content includes specified voice content;
    当所述语音内容包括所述指定语音内容时,响应所述语音信息,获取与所述语音触发事件对应场景中的设备信息。When the voice content includes the specified voice content, responding to the voice information, obtain device information in a scene corresponding to the voice trigger event.
  8. 根据权利要求7所述的方法,其特征在于,所述当所述语音内容包括所述指定语音内容时,响应所述语音信息,获取与所述语音触发事件对应场景中的设备信息,包括:8. The method according to claim 7, wherein said responding to said voice information when said voice content includes said designated voice content and acquiring device information in a scene corresponding to said voice trigger event comprises:
    当所述语音内容包括所述指定语音内容时,提取所述语音信息的声纹信息;When the voice content includes the specified voice content, extracting voiceprint information of the voice information;
    判断所述声纹信息是否与指定声纹信息匹配;Determine whether the voiceprint information matches the specified voiceprint information;
    当所述声纹信息与所述指定声纹信息匹配时,响应所述语音信息,获取与所述语音触发事件对应场景中的设备信息。When the voiceprint information matches the specified voiceprint information, responding to the voice information, obtain device information in a scene corresponding to the voice trigger event.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器,包括:The method according to any one of claims 1-8, wherein the control instruction is generated based on the scene trigger event, and the control instruction is sent to the cloud server, and the control instruction is used to instruct The cloud server sends a first control instruction for controlling the first device to the first vendor cloud server, and sends a second control instruction for controlling the second device to the second vendor cloud server ,include:
    获取所述场景触发事件所对应场景中配置的所述第一设备的目标状态信息和所述第二设备的目标状态信息;Acquiring the target state information of the first device and the target state information of the second device configured in the scene corresponding to the scene trigger event;
    获取所述第一设备的当前状态信息和所述第二设备的当前状态信息;Acquiring current state information of the first device and current state information of the second device;
    判断所述第一设备的目标状态信息是否与所述第一设备的当前状态信息一致,以及判断所述第二设备的目标状态信息是否与所述第二设备的当前状态信息一致,获得判断结果;Determine whether the target state information of the first device is consistent with the current state information of the first device, and determine whether the target state information of the second device is consistent with the current state information of the second device, and obtain the judgment result ;
    当所述判断结果为第一设备的目标状态信息与所述第一设备的当前状态信息不一致且所述第二设备的目标状态信息与所述第二设备的当前状态信息不一致时,基于所述场景触发事件和所述判断结果生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。When the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device and the target state information of the second device is inconsistent with the current state information of the second device, based on the The scene trigger event and the judgment result generate a control instruction, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to send a first control instruction for controlling the first device To the cloud server of the first vendor, send a second control instruction for controlling the second device to the cloud server of the second vendor.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, wherein the method further comprises:
    当所述判断结果为所述第一设备的目标状态信息与所述第一设备的当前状态信息不一致且所述第二设备的目标状态信息与所述第二设备的当前状态信息一致时,基于所述场景触发事件和所述判断结果生成所述第一控制指令,将所述第一控制指令发送至所述云服务器,所述第一控制指令用于指示所述云服务器将所述第一控制指令发送至所述第一厂商云服务器。When the judgment result is that the target state information of the first device is inconsistent with the current state information of the first device and the target state information of the second device is consistent with the current state information of the second device, based on The scene trigger event and the judgment result generate the first control instruction, and send the first control instruction to the cloud server. The first control instruction is used to instruct the cloud server to control the first control instruction. The control instruction is sent to the cloud server of the first manufacturer.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器,之后,还包括:The method according to any one of claims 1-10, wherein the control instruction is generated based on the scene trigger event, and the control instruction is sent to the cloud server, and the control instruction is used to instruct The cloud server sends a first control instruction for controlling the first device to the first vendor cloud server, and sends a second control instruction for controlling the second device to the second vendor cloud server , After that, it also includes:
    监听所述云服务器发送的反馈信息;Monitor the feedback information sent by the cloud server;
    当监听到所述反馈信息指示所述控制指令发送失败时,通过延时退避算法重新将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。When the feedback information is monitored to indicate that the control instruction has failed to be sent, the control instruction is re-sent to the cloud server through the delayed backoff algorithm, and the control instruction is used to indicate that the cloud server will be used to control the The first control instruction of the first device is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
  12. 根据权利要求11所述的方法,其特征在于,所述当监听到所述反馈信息指示所述控制指令发送失败时,通过延时退避算法重新将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器,包括:The method according to claim 11, wherein when the feedback information is monitored to indicate that the control instruction has failed to be sent, the control instruction is re-sent to the cloud server through a delayed backoff algorithm, so The control instruction is used to instruct the cloud server to send a first control instruction for controlling the first device to the first vendor cloud server, and to send a second control instruction for controlling the second device to The second vendor cloud server includes:
    当监听到所述反馈信息指示所述控制指令发送失败时,判断所述场景触发事件是否符合指定触发事件;When it is monitored that the feedback information indicates that the control instruction has failed to be sent, determining whether the scene trigger event meets a specified trigger event;
    当所述触发事件符合所述指定触发事件时,通过延时退避算法重新将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。When the trigger event matches the specified trigger event, the control instruction is re-sent to the cloud server through the delayed backoff algorithm, and the control instruction is used to instruct the cloud server to control the first The first control instruction of the device is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
  13. 一种设备控制方法,其特征在于,应用于电子设备接入的云服务器,所述方法包括:A device control method, characterized in that it is applied to a cloud server accessed by an electronic device, and the method includes:
    所述云服务器接收所述电子设备发送的场景触发信息;Receiving, by the cloud server, scene trigger information sent by the electronic device;
    获取所述场景触发信息所对应的场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商;Acquiring device information in a scene corresponding to the scene trigger information, where the device information includes information about a first device and information about a second device, and the first device and the second device belong to different manufacturers;
    确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器;Determining a first vendor cloud server corresponding to the first device and a second vendor cloud server corresponding to the second device;
    基于所述场景触发信息生成控制指令,将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。Generate a control instruction based on the scene trigger information, send a first control instruction for controlling the first device to the first vendor cloud server, and send a second control instruction for controlling the second device to The second vendor cloud server.
  14. 一种设备控制方法,其特征在于,应用于设备控制系统,所述设备控制系统包括电子设备、云服务器、第一设备、第二设备、第一厂商云服务器以及第二厂商云服务器,所述云服务器分别与所述电子设备、所述第一厂商云服务器以及所述第二厂商云服务器通信连接,所述第一厂商云服务器与所述第一设备通信连接,所述第二厂商云服务器与所述第二设备通信连接,所述方法包括:A device control method, characterized in that it is applied to a device control system, the device control system includes an electronic device, a cloud server, a first device, a second device, a cloud server of a first manufacturer, and a cloud server of a second manufacturer. The cloud server is in communication connection with the electronic device, the first vendor cloud server, and the second vendor cloud server, the first vendor cloud server is in communication connection with the first device, and the second vendor cloud server Connecting to the second device in communication, the method includes:
    所述电子设备响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括所述第一设备的设备信息和所述第二设备的设备信息,所述第一设备和所述第二设备属于不同的厂商;In response to a scene trigger event, the electronic device obtains device information in a scene corresponding to the scene trigger event. The device information includes device information of the first device and device information of the second device. The first device and the second device belong to different manufacturers;
    确定所述第一设备对应的所述第一厂商云服务器和所述第二设备对应的所述第二厂商云服务器;Determining the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device;
    基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器;Generating a control instruction based on the scene trigger event, and sending the control instruction to the cloud server;
    所述云服务器将所述控制指令中用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将所述控制指令中用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器;The cloud server sends the first control instruction used to control the first device in the control instruction to the first vendor cloud server, and sends the second control instruction used to control the second device in the control instruction. Sending a control instruction to the cloud server of the second manufacturer;
    所述第一厂商云服务器基于所述第一控制指令控制所述第一设备做出响应;The first vendor cloud server controls the first device to respond based on the first control instruction;
    所述第二厂商云服务器基于所述第二控制指令控制所述第二设备做出响应。The second vendor cloud server controls the second device to respond based on the second control instruction.
  15. 一种设备控制装置,其特征在于,应用于接入云服务器的电子设备,所述装置包括:An equipment control device, characterized in that it is applied to electronic equipment connected to a cloud server, and the device includes:
    获取模块,用于响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商;The acquisition module is configured to respond to a scene trigger event and acquire device information in the scene corresponding to the scene trigger event. The device information includes information about the first device and information about the second device. The first device and the The second device belongs to a different manufacturer;
    确定模块,用于确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器;A determining module, configured to determine a first vendor cloud server corresponding to the first device and a second vendor cloud server corresponding to the second device;
    发送模块,用于基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器,所述控制指令用于指示所述云服务器将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。The sending module is configured to generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server, where the control instruction is used to instruct the cloud server to control the first device of the first device The control instruction is sent to the first vendor cloud server, and the second control instruction for controlling the second device is sent to the second vendor cloud server.
  16. 一种设备控制装置,其特征在于,应用于电子设备接入的云服务器,所述装置包括:An equipment control device, characterized in that it is applied to a cloud server accessed by electronic equipment, and the device includes:
    接收模块,用于所述云服务器接收所述电子设备发送的场景触发信息;A receiving module, used for the cloud server to receive scene trigger information sent by the electronic device;
    获取模块,用于获取所述场景触发信息所对应的场景中的设备信息,所述设备信息中包括第一设备的信息和第二设备的信息,所述第一设备和所述第二设备属于不同的厂商;The acquisition module is configured to acquire device information in the scene corresponding to the scene trigger information. The device information includes information about a first device and information about a second device. The first device and the second device belong to Different vendors
    确定模块,用于确定所述第一设备对应的第一厂商云服务器和所述第二设备对应的第二厂商云服务器;A determining module, configured to determine a first vendor cloud server corresponding to the first device and a second vendor cloud server corresponding to the second device;
    发送模块,用于基于所述场景触发信息生成控制指令,将用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器。The sending module is configured to generate a control instruction based on the scene trigger information, send the first control instruction for controlling the first device to the first vendor cloud server, and send the first control instruction for controlling the second device The second control instruction is sent to the cloud server of the second manufacturer.
  17. 一种设备控制系统,其特征在于,包括电子设备、云服务器、第一设备、第二设备、第一厂商云服务器以及第二厂商云服务器,所述云服务器分别与所述电子设备、所述第一厂商云服务器以及所述第二厂商云服务器通信连接,所述第一厂商云服务器与所述第一设备通信连接,所述第二厂商云服务器与所述第二设备通信连接,其中:A device control system, characterized in that it includes an electronic device, a cloud server, a first device, a second device, a first vendor cloud server, and a second vendor cloud server. The cloud server is respectively connected to the electronic device and the second vendor. The first vendor's cloud server is in communication connection with the second vendor's cloud server, the first vendor's cloud server is in communication connection with the first device, and the second vendor's cloud server is in communication connection with the second device, wherein:
    所述电子设备,用于响应场景触发事件,获取所述场景触发事件所对应场景中的设备信息,所述设备信息中包括所述第一设备的设备信息和所述第二设备的设备信息,所述第一设备和所述第二设备属于不同的厂商;The electronic device is configured to respond to a scene trigger event to obtain device information in a scene corresponding to the scene trigger event, where the device information includes the device information of the first device and the device information of the second device, The first device and the second device belong to different manufacturers;
    所述电子设备,用于确定所述第一设备对应的所述第一厂商云服务器和所述第二设备对应的所述第二厂商云服务器;The electronic device is used to determine the first vendor cloud server corresponding to the first device and the second vendor cloud server corresponding to the second device;
    所述电子设备,用于基于所述场景触发事件生成控制指令,将所述控制指令发送至所述云服务器;The electronic device is configured to generate a control instruction based on the scene trigger event, and send the control instruction to the cloud server;
    所述云服务器,用于将所述控制指令中用于控制所述第一设备的第一控制指令发送至所述第一厂商云服务器,将所述控制指令中用于控制所述第二设备的第二控制指令发送至所述第二厂商云服务器;The cloud server is configured to send a first control instruction used to control the first device in the control instruction to the first vendor cloud server, and use the control instruction to control the second device Send the second control instruction of the second vendor to the cloud server of the second vendor;
    所述第一厂商云服务器,用于基于所述第一控制指令控制所述第一设备做出响应;The first vendor cloud server is configured to control the first device to respond based on the first control instruction;
    所述第二厂商云服务器,用于基于所述第二控制指令控制所述第二设备做出响应。The second vendor cloud server is configured to control the second device to respond based on the second control instruction.
  18. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器;Memory
    一个或多个处理器,与所述存储器耦接;One or more processors coupled to the memory;
    一个或多个程序,其中,所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-13任一项所述的方法。One or more programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute such as The method of any one of claims 1-13.
  19. 一种云服务器,其特征在于,包括:A cloud server is characterized in that it includes:
    存储器;Memory
    一个或多个处理器,与所述存储器耦接;One or more processors coupled to the memory;
    一个或多个程序,其中,所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求14所述的方法。One or more programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute such as The method of claim 14.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-13任一项所述的方法。A computer readable storage medium, wherein the computer readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-13 .
PCT/CN2019/075947 2019-02-22 2019-02-22 Device control method, apparatus, system, electronic device and cloud server WO2020168571A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980081076.2A CN113170000B (en) 2019-02-22 2019-02-22 Equipment control method, device, system, electronic equipment and cloud server
PCT/CN2019/075947 WO2020168571A1 (en) 2019-02-22 2019-02-22 Device control method, apparatus, system, electronic device and cloud server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/075947 WO2020168571A1 (en) 2019-02-22 2019-02-22 Device control method, apparatus, system, electronic device and cloud server

Publications (1)

Publication Number Publication Date
WO2020168571A1 true WO2020168571A1 (en) 2020-08-27

Family

ID=72144511

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075947 WO2020168571A1 (en) 2019-02-22 2019-02-22 Device control method, apparatus, system, electronic device and cloud server

Country Status (2)

Country Link
CN (1) CN113170000B (en)
WO (1) WO2020168571A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897348A (en) * 2020-08-31 2020-11-06 北京云迹科技有限公司 Control method and system of cloud robot, cloud robot and cloud server
CN112350907A (en) * 2020-11-05 2021-02-09 深圳Tcl新技术有限公司 Scene linkage control method, terminal and computer readable storage medium
CN112769895A (en) * 2020-12-18 2021-05-07 杭州涂鸦信息技术有限公司 Group or scene control method and related device
CN113110147A (en) * 2021-03-31 2021-07-13 青岛海尔科技有限公司 Method and device for cross-platform linkage of intelligent equipment, equipment and storage medium
CN113596235A (en) * 2021-06-30 2021-11-02 青岛海尔科技有限公司 Operation instruction issuing method and device, storage medium and electronic device
CN113633989A (en) * 2021-08-13 2021-11-12 网易(杭州)网络有限公司 Game object display control method and device and electronic equipment
CN113992729A (en) * 2021-10-26 2022-01-28 北京百度网讯科技有限公司 Cloud mobile phone control method, related device and computer program product
CN115469559A (en) * 2022-09-30 2022-12-13 武汉天业视讯信息技术有限公司 Equipment control method and system based on Internet of things technology

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114049597B (en) * 2021-12-24 2022-05-06 北京创米智汇物联科技有限公司 Household scene event detection and identification system and method
CN115103033A (en) * 2022-06-21 2022-09-23 青岛海尔科技有限公司 Device control method, device, storage medium, and electronic apparatus
CN115225420A (en) * 2022-07-18 2022-10-21 深圳市华曦达科技股份有限公司 Security linkage method and device for intelligent household equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794640A (en) * 2015-05-04 2015-07-22 常州永安公共自行车系统股份有限公司 Vehicle management method based on cloud server and cloud server thereof
CN105681142A (en) * 2016-02-29 2016-06-15 华勤通讯技术有限公司 Networking system and networking method
CN106679095A (en) * 2016-12-30 2017-05-17 Tcl集团股份有限公司 Internet access method and device and intelligent air conditioner system
CN107342607A (en) * 2017-06-30 2017-11-10 深圳微克科技有限公司 A kind of control method of charging equipment, device and charging equipment control system
CN109345268A (en) * 2018-09-21 2019-02-15 联桥网云信息科技(长沙)有限公司 Two-dimensional code anti-counterfeiting label, label register method and label identification method based on NFC

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094173A (en) * 2017-04-13 2017-08-25 深圳创维-Rgb电子有限公司 The intelligent control method and server of many equipment
CN107728590A (en) * 2017-09-29 2018-02-23 四川长虹电器股份有限公司 ZigBee intelligent domestic systems and its scene inter-linked controlling method
CN109302471A (en) * 2018-09-26 2019-02-01 四川长虹电器股份有限公司 A kind of Intelligent household scene control system and method
CN109257259B (en) * 2018-11-30 2022-06-24 广东美的制冷设备有限公司 Scene linkage control method and device and household electrical appliance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794640A (en) * 2015-05-04 2015-07-22 常州永安公共自行车系统股份有限公司 Vehicle management method based on cloud server and cloud server thereof
CN105681142A (en) * 2016-02-29 2016-06-15 华勤通讯技术有限公司 Networking system and networking method
CN106679095A (en) * 2016-12-30 2017-05-17 Tcl集团股份有限公司 Internet access method and device and intelligent air conditioner system
CN107342607A (en) * 2017-06-30 2017-11-10 深圳微克科技有限公司 A kind of control method of charging equipment, device and charging equipment control system
CN109345268A (en) * 2018-09-21 2019-02-15 联桥网云信息科技(长沙)有限公司 Two-dimensional code anti-counterfeiting label, label register method and label identification method based on NFC

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897348A (en) * 2020-08-31 2020-11-06 北京云迹科技有限公司 Control method and system of cloud robot, cloud robot and cloud server
CN112350907A (en) * 2020-11-05 2021-02-09 深圳Tcl新技术有限公司 Scene linkage control method, terminal and computer readable storage medium
CN112769895A (en) * 2020-12-18 2021-05-07 杭州涂鸦信息技术有限公司 Group or scene control method and related device
CN112769895B (en) * 2020-12-18 2023-10-13 杭州涂鸦信息技术有限公司 Group or scene control method and related device
CN113110147A (en) * 2021-03-31 2021-07-13 青岛海尔科技有限公司 Method and device for cross-platform linkage of intelligent equipment, equipment and storage medium
CN113596235A (en) * 2021-06-30 2021-11-02 青岛海尔科技有限公司 Operation instruction issuing method and device, storage medium and electronic device
CN113633989A (en) * 2021-08-13 2021-11-12 网易(杭州)网络有限公司 Game object display control method and device and electronic equipment
CN113992729A (en) * 2021-10-26 2022-01-28 北京百度网讯科技有限公司 Cloud mobile phone control method, related device and computer program product
CN113992729B (en) * 2021-10-26 2023-11-07 北京百度网讯科技有限公司 Cloud mobile phone control method, related device and computer program product
CN115469559A (en) * 2022-09-30 2022-12-13 武汉天业视讯信息技术有限公司 Equipment control method and system based on Internet of things technology

Also Published As

Publication number Publication date
CN113170000B (en) 2023-08-01
CN113170000A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
WO2020168571A1 (en) Device control method, apparatus, system, electronic device and cloud server
WO2020228032A1 (en) Scene pushing method, apparatus and system, and electronic device and storage medium
CN105471705B (en) Intelligent control method, equipment and system based on instant messaging
WO2018113405A1 (en) Live broadcast interaction method based on video stream, and corresponding apparatus thereof
US9811870B2 (en) Information processing method, apparatus and payment system
US20150256957A1 (en) User terminal device, audio system, and method for controlling speaker thereof
WO2018120884A1 (en) Method and system for controlling mobile device by pc terminal
US20150029089A1 (en) Display apparatus and method for providing personalized service thereof
US10606367B2 (en) Command relay device, system and method for providing remote assistance/remote control
CN112053683A (en) Voice instruction processing method, device and control system
CN102637127B (en) Method for controlling mouse modules and electronic device
EP3016377B1 (en) Display apparatus, controlling method and display system
WO2019184533A1 (en) Method and apparatus for remotely configuring control panel of intelligent device
CN110855921B (en) Video recording control method and electronic equipment
WO2018184442A1 (en) Terminal control method and device
WO2022052613A1 (en) Camera control method and apparatus, electronic device, and storage medium
WO2022105447A1 (en) Iot device control method, apparatus, terminal, and storage medium
WO2020228033A1 (en) Sdk plug-in loading method and apparatus, and mobile terminal and storage medium
CN103905837A (en) Image processing method and device and terminal
WO2015131813A1 (en) Method and system for operating device
CN111447598A (en) Interaction method and display device
CN106376000B (en) The smart machine control method of integration description file
TWI527000B (en) Infrared contral system and operation method thereof
CN109343761B (en) Data processing method based on intelligent interaction equipment and related equipment
CN112698806A (en) Parameter adjusting method and device, electronic equipment and readable storage medium

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: 19916510

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19916510

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19916510

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25/05/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19916510

Country of ref document: EP

Kind code of ref document: A1