WO2022143202A1 - 智能设备的控制方法、云服务器、终端设备和存储介质 - Google Patents

智能设备的控制方法、云服务器、终端设备和存储介质 Download PDF

Info

Publication number
WO2022143202A1
WO2022143202A1 PCT/CN2021/138920 CN2021138920W WO2022143202A1 WO 2022143202 A1 WO2022143202 A1 WO 2022143202A1 CN 2021138920 W CN2021138920 W CN 2021138920W WO 2022143202 A1 WO2022143202 A1 WO 2022143202A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
instruction
group
home gateway
device group
Prior art date
Application number
PCT/CN2021/138920
Other languages
English (en)
French (fr)
Inventor
陈鹏举
Original Assignee
花瓣云科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 花瓣云科技有限公司 filed Critical 花瓣云科技有限公司
Publication of WO2022143202A1 publication Critical patent/WO2022143202A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Definitions

  • the embodiments of the present application relate to the field of smart home technology, and in particular, to a control method for a smart device, a cloud server, a terminal device, and a storage medium.
  • a variety of smart devices can be connected together through IoT technology.
  • IoT technology For example, audio and video equipment, lighting systems, smart curtains, air conditioners, security equipment, audio and video equipment, digital cinema equipment, and so on.
  • the user controls multiple smart devices. For example, there are 2 lights in the living room, and the user controls the 2 lights in the living room to turn off by voice "turn off the lights in the living room".
  • the cloud server will issue operation instructions for each of the multiple smart devices one by one. For example, in the above scenario, assuming that the two lights in the living room are Light 1 and Light 2, the cloud server will issue an operation command for Light 1 and an operation command for Light 2.
  • the state changes of different smart devices have an obvious sequence. For example, in the above scenario, there is a turn-off delay when lights 1 and 2 are turned off, and the user can feel the order in which the lights are turned off, and the user experience is very poor.
  • the embodiments of the present application provide a control method, a cloud server, a terminal device, and a storage medium for a smart device. Multiple smart devices controlled by a user can respond simultaneously, and device states change simultaneously.
  • a first aspect provides a method for controlling a smart device, which is applied to a cloud server and includes: receiving control information sent by a terminal device, where the control information is used to instruct a user to control multiple smart devices, and determining a user to be controlled according to the control information multiple smart devices, determine multiple smart devices as a temporary device group, wherein, multiple smart devices communicate with the same home gateway, generate group control instructions for the temporary device group according to the control information, and communicate with multiple smart devices.
  • the home gateway sends the group control command.
  • the cloud server determines multiple smart devices controlled by the user as a temporary device group, generates a group control instruction for the temporary device group, and sends a group control instruction to the home gateway.
  • the home gateway has the multicast capability and can send group control instructions to related smart devices, so that multiple smart devices controlled by the user can respond at the same time, and the device status can change at the same time, so that the user cannot perceive the time difference, which improves the user experience.
  • the cloud server determines the multiple smart devices as a temporary device group, which avoids the tedious operation of manually configuring the device group by the user, and improves the user experience.
  • the method before generating the group control instruction for the temporary equipment group according to the control information, the method further includes: generating a temporary equipment group establishment instruction, the temporary equipment group establishment instruction is used to instruct the home gateway to establish a temporary equipment group, and send the temporary equipment group to the home gateway.
  • Send a temporary device group establishment instruction receive a temporary device group establishment response message sent by the home gateway, and store the temporary device group information in response to the temporary device group establishment response message.
  • the temporary device group information includes the identification information of the temporary device group, each smart device The identification information of the home gateway and the identification information of the home gateway.
  • the cloud server explicitly establishes a temporary device group, and notifies the home gateway and the corresponding smart device to also explicitly establish a temporary device group to obtain identification information of the temporary device group. Since the identification information of the temporary device group is relatively small, the size of the instructions transmitted between the subsequent cloud server and the home gateway is reduced, transmission resources are saved, and transmission speed is improved, thereby shortening the response time of the smart device.
  • the group control instruction includes identification information of the temporary device group.
  • the group control instruction only needs to include the identification information of the temporary device group, which saves transmission resources.
  • the transfer speed has been increased, resulting in a faster response time for smart devices.
  • the temporary device group establishment instruction includes identification information of each smart device in the plurality of smart devices.
  • the home gateway can determine the identification information of the temporary device group after establishing the temporary device group according to the temporary device group establishment instruction, and feed back the identification information of the temporary device group to the cloud server, thereby improving the flexibility of the temporary device group of the home gateway. sex.
  • the temporary device group establishment instruction further includes identification information of the temporary device group.
  • the temporary device group establishment instruction carries the identification information of the temporary device group
  • the home gateway establishes the temporary device group according to the temporary device group establishment instruction
  • the identification information of the temporary device group is sent by the cloud server
  • the method further includes: generating a temporary device group deletion instruction, where the temporary device group deletion instruction is used to instruct the home gateway to delete the temporary device group, and the temporary device group deletion instruction is used to delete the temporary device group.
  • the device group deletion instruction includes identification information of the temporary device group, and the temporary device group deletion instruction is sent to the home gateway.
  • the cloud server after the cloud server sends a group control instruction to the temporary device group, it can initiate a process of deleting the temporary device group, so as to delete the invalid temporary device group information in time, which facilitates the management of the device group information and avoids redundant and invalid information.
  • Information occupies local storage resources.
  • control method for the smart device further includes: receiving a temporary device group deletion response message sent by the home gateway, and deleting the temporary device group information in response to the temporary device group deletion response message.
  • the cloud server determines that the home gateway and the corresponding smart device delete the temporary device group information
  • the temporary device group information stored locally is deleted, which improves the accuracy of information maintenance.
  • control method for the smart device further includes: periodically acquiring at least one set of temporary device group information stored locally, and determining at least one target home gateway and each target home gateway according to the at least one set of temporary device group information.
  • Corresponding temporary device group information for each target home gateway, an information deletion instruction is generated according to the temporary device group information corresponding to the target home gateway, and the information deletion instruction is used to instruct the target home gateway to delete the corresponding temporary device group, and the information deletion instruction
  • the identification information of each temporary device group corresponding to the target home gateway is included, and an information deletion instruction is sent to the target home gateway.
  • the cloud server can periodically initiate the process of deleting the temporary device group, so as to delete the invalid temporary device group information in time, which facilitates the management of the device group information and avoids redundant and invalid information occupying local storage resources.
  • control method for the smart device further includes: receiving a deletion response message sent by the target home gateway, and deleting the temporary device group information corresponding to the target home gateway in response to the deletion response message.
  • the cloud server determines that the target home gateway and the corresponding smart device delete the temporary device group information
  • the temporary device group information stored locally is deleted, which improves the accuracy of information maintenance.
  • the group control instruction includes identification information of each smart device in the plurality of smart devices.
  • the cloud server implicitly establishes a temporary device group, and the group control instruction sent by the cloud server includes the identification information of each smart device among the multiple smart devices, the cloud server, the home gateway, and multiple smart devices controlled by the user. There is no need to store the relevant information of the temporary device group, saving local storage resources.
  • the group control instruction includes first instruction content and identification information of each smart device, and the first instruction content is the instruction content executed by each smart device.
  • the group control instruction carries instruction content applicable to multiple smart devices controlled by the user, and the group control instruction is relatively small, which ensures the response delay of the smart devices.
  • the group control instruction includes an instruction to be executed corresponding to each intelligent device, and for each intelligent device, the instruction to be executed includes the identification information of the intelligent device and the content of the second instruction, and the content of the second instruction is: The content of the instruction executed by the smart device.
  • the group control instruction includes an instruction that is separately executed by each smart device controlled by the user, and the instruction execution manner is simple.
  • control information includes at least one of the following: voice information, video information, image information, text information or body motion information.
  • a method for controlling a smart device applied to a terminal device, including: receiving a user's control operation, the control operation being used by the user to control multiple smart devices, and in response to the control operation, acquiring control information input by the user, Send control information to the cloud server.
  • the cloud server determines the multiple smart devices as a temporary device group, which avoids the need for the user to The tedious operation of manually configuring device groups improves user experience.
  • control operation includes at least one of the following: a voice control operation, a body motion control operation, or an operation performed on an interface displayed by the terminal device.
  • control information includes at least one of the following: voice information, video information, image information, text information or body motion information.
  • an apparatus comprising: means or means for performing the steps in any of the above aspects.
  • the apparatus may be a cloud server, a terminal device or a home gateway.
  • a cloud server including a processor, a memory, and a transceiver, where the transceiver is used for communicating with other devices, and the processor is used for calling a program stored in the memory to execute the method provided in the first aspect.
  • a terminal device including a processor, a memory and a transceiver, where the transceiver is used for communicating with other devices, and the processor is used for calling a program stored in the memory to execute the method provided in the second aspect.
  • a control system for an intelligent device including: a home gateway, the cloud server provided in the third or fourth aspect, and the terminal device provided in the third or fourth aspect.
  • a computer-readable storage medium where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer or a processor, the method provided in any of the above aspects is implemented.
  • a program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of a device can read the computer program from the readable storage medium , the at least one processor executes the computer program to cause the device to implement the method provided in any of the above aspects.
  • FIG. 1 is a system architecture diagram to which an embodiment of the present application is applicable
  • FIG. 2 is a schematic diagram of message sending of a multicast capability of a home gateway according to an embodiment of the present application
  • Fig. 3 is a kind of flow chart of the control method of intelligent equipment
  • Fig. 4 is a kind of light-off effect diagram of the process shown in Fig. 3;
  • Fig. 5 is another kind of flow chart of the control method of intelligent equipment
  • Fig. 6 is a kind of interface schematic diagram of mobile phone when user configures equipment group
  • Fig. 7 is a light-off effect diagram of the process shown in Fig. 5;
  • FIG. 8 is a flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • FIG. 9 is a light-off effect diagram of the process shown in FIG. 8.
  • FIG. 10 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • FIG. 11 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • FIG. 12 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • FIG. 13 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • FIG. 14 is another system architecture diagram to which the embodiments of the present application are applicable.
  • 15 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • 16 is a schematic structural diagram of a cloud server provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a terminal device provided by an embodiment of the application.
  • FIG. 18 is a schematic structural diagram of a home gateway provided by an embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • FIG. 1 is a system architecture diagram to which this embodiment of the present application is applicable.
  • the system may include: a terminal device, a cloud server, a home gateway, and multiple smart devices.
  • FIG. 1 includes three smart devices, which are smart devices 1 to 3 respectively.
  • An application program (application, APP) for managing the smart device is installed on the terminal device, and the name and developer of the application program are not limited in this embodiment of the present application.
  • the system can be divided into a user side, a cloud side, and a smart device side.
  • the user side includes terminal devices, the cloud side includes cloud servers, and the smart device side includes home gateways and smart devices.
  • the terminal device and the cloud server, the cloud server and the home gateway, and the home gateway and the smart device can communicate.
  • the embodiments of this application do not limit the communication method, the communication protocol to be followed, and the communication content.
  • the communication manner may include wireless communication and wired communication, and the wireless communication may include mobile communication, Bluetooth communication or wireless fidelity (Wi-Fi) communication.
  • Wi-Fi wireless fidelity
  • the user can control multiple smart devices through the terminal device.
  • the user can control device state changes of multiple smart devices in real time.
  • the user may regularly control the device state changes of multiple smart devices according to a predetermined time, and the information transmitted between the devices may include time information.
  • a terminal device is also called an electronic device, and some examples of the terminal device are: a mobile phone, a wearable device, a tablet computer, a palmtop computer, a notebook computer, and the like.
  • Cloud servers are also known as servers, internet of things (IoT) or IoT clouds.
  • Home gateways are also called gateways or control devices. Examples of some smart devices are: lights, speakers, air conditioners, etc.
  • the embodiments of the present application do not limit the manner in which the user controls the smart device.
  • it may include, but is not limited to, at least one of the following: voice control, body motion control, text control, or control through related touch operations on the APP interface.
  • the terminal device obtains the control information input by the user, and sends the control information to the cloud server.
  • the cloud server sends instructions to the relevant smart devices through the home gateway according to the control information sent by the mobile phone, and the smart devices execute the instructions, thereby realizing the user's control of the smart devices.
  • Application scenario 1 The user enters the voice "turn on the lights in the living room” through the APP on the mobile phone, and there are 2 lights in the living room.
  • Application Scenario 2 The user enters the voice "turn off the lights in the living room and the master bedroom" through the APP on the mobile phone. There are 2 lights in the living room, marked as light 1 and light 2 respectively. There is 1 light in the master bedroom, labeled light 3.
  • Application Scenario 3 The user opens the APP half an hour before going home, and calls the camera through the APP. The user performs a preset action in front of the camera, and the preset action is used to turn on the air conditioners in the living room and dining room. There is 1 air conditioner in the living room and 1 air conditioner in the dining room.
  • the embodiments of the present application are described by taking the terminal device as a mobile phone, the smart device as a lamp, and the above-mentioned second application scenario as an example.
  • the multicast capability of the home gateway means that after receiving an instruction sent by the cloud server, the home gateway can send corresponding instructions to multiple smart devices according to the instruction sent by the cloud server.
  • the smart device receives and executes the instruction sent by the home gateway.
  • the user can ignore the time difference between the execution of instructions by multiple smart devices, that is, the multiple smart devices present the effect of simultaneously executing instructions and changing device states at the same time. For example, in the above application scenario 2, the lamp 1, lamp 2 in the living room, and lamp 3 in the master bedroom are turned off at the same time, and the user cannot perceive the difference in the turn-off time of each lamp.
  • each instruction in the embodiments of the present application includes instruction content and identification information of the instruction execution object.
  • the function of the command is different, and the content of the command is different.
  • the content of the instruction is saved, and the identification information of the instruction execution object is described in detail.
  • the home gateway receives the instruction 0 sent by the cloud server, and the instruction 0 is used to instruct to turn off the light 1 to the light 3 .
  • lamp 1 , lamp 2 and lamp 3 are divided into the same device group, and the device group has a device group identifier.
  • the cloud server, home gateway, lamp 1, lamp 2, and lamp 3 all store device group identifiers.
  • the home gateway can multicast instruction 1 to lamp 1, lamp 2 and lamp 3, where instruction 1 includes the device group identification.
  • lamp 1, lamp 2 and lamp 3 receive instruction 1, they determine that the device group identifier in instruction 1 is the same as the identifier of the device group to which they belong, and then execute instruction 1.
  • the home gateway multicasts an instruction to multiple smart devices according to the traditional multicast manner, and the instruction is small and occupies less transmission resources.
  • the home gateway may broadcast instruction 2 to lamp 1, lamp 2 and lamp 3, and instruction 2 includes the identifier of lamp 1, lamp 2 and lamp 2. logo and lamp 3 logo.
  • instruction 2 is executed.
  • this implementation is similar in that the home gateway broadcasts an instruction to multiple smart devices. The difference is that in this implementation, instruction 2 includes the identifier of each lamp, and the instruction The larger it is, the more transmission resources it occupies.
  • the home gateway may encapsulate the execution instructions required by the light 1, the light 2, and the light 3 into one instruction and broadcast it.
  • the home gateway broadcasts an instruction 3, and the instruction 3 includes three independent instructions, which are an instruction 31, an instruction 32, and an instruction 33, respectively.
  • the instruction 31 is an instruction to be executed by the lamp 1 , including the identifier of the lamp 1 .
  • the instruction 32 is an instruction to be executed by the lamp 2 , including the identifier of the lamp 2 .
  • the instruction 33 is the instruction to be executed by the lamp 3 , including the identifier of the lamp 3 .
  • the home gateway can simultaneously send the instruction 31 to the lamp 1, send the instruction 32 to the lamp 2, and send the instruction 32 to the lamp in a multi-threaded concurrent manner.
  • Lamp 1, Lamp 2 and Lamp 3 respectively receive and execute corresponding instructions.
  • the home gateway sends instructions to each smart device at the same time, which ensures that the time difference between multiple smart devices executing the instructions is very small, and the user cannot perceive the time difference.
  • the instructions sent by the home gateway to each smart device are small and occupy less transmission resources.
  • the home gateway may send instructions serially. Specifically, the instruction 31 is sent to the lamp 1 at time T1, the instruction 32 is sent to the lamp 2 at the time T2, and the instruction 33 is sent to the lamp 3 at the time T3. Correspondingly, Lamp 1, Lamp 2 and Lamp 3 receive and execute corresponding instructions.
  • the time difference between the home gateway serially sending instructions must be within a preset range, that is, the time difference between T2 and T1 , the time difference between T3 and T2 is within a preset range.
  • This embodiment of the present application does not limit the value of the preset range, which may be set according to the user's perception time.
  • the instructions sent by the home gateway to each smart device are small and occupy less transmission resources.
  • the concept of a device group and a temporary device group are similar, and both include multiple smart devices that communicate with the same home gateway.
  • the difference is that the device group is manually configured by the user on the user side, and the cloud server can create a device group based on the device group information configured by the user.
  • the temporary device group is not configured by the user, but is established by the cloud server according to the control information input by the user.
  • Smart devices, device groups, temporary device groups, and home gateways all have identification information, and the identification information may include names and/or identifications for uniquely distinguishing different objects.
  • the identification information of the temporary device group may include the name of the temporary device group and/or the identifier of the temporary device group, so as to uniquely distinguish different temporary device groups.
  • the identification information may take an identification as an example.
  • the group control instruction refers to the instruction sent by the cloud server for a device group or temporary device group
  • the single control instruction refers to the instruction sent by the cloud service for a single smart device.
  • a single smart device can communicate with the cloud server directly, or communicate with the cloud server through a home gateway.
  • FIG. 3 is a flowchart of a control method of a smart device
  • FIG. 4 is a light-off effect diagram of the process shown in FIG. 3
  • the control method of the smart device may include:
  • the mobile phone obtains control information input by a user.
  • This embodiment does not limit the relevant operations performed by the user, the manner in which the mobile phone obtains the control information input by the user, and the content of the control information.
  • the mobile phone can acquire voice information input by the user through a microphone, and the control information is specifically voice information.
  • the mobile phone can acquire an image of the user through a camera, and the control information is specifically image information.
  • control information may include, but is not limited to, at least one of the following types of information: voice information, video information, image information, text information, or body motion information.
  • control information may include the user's voice "turn off the lights in the living room and the master bedroom".
  • the mobile phone sends the control information to the cloud server.
  • the cloud server receives the control information sent by the mobile phone.
  • the cloud server determines the smart device to be controlled by the user according to the control information.
  • the cloud server can use the relevant algorithm of intention recognition to determine the smart device to be controlled by the user according to the control information.
  • This embodiment does not limit the implementation of the intention recognition.
  • the information types included in the control information are different, and the methods of intention recognition can be different. .
  • it is realized through technologies such as speech recognition, semantic recognition, and image processing.
  • the cloud server may perform intention identification on the control information through a neural network model, a deep learning model, or a machine learning model, and the type and training method of the model are not limited in this embodiment.
  • the smart devices to be controlled by the user include: lamp 1, lamp 2 in the living room, and lamp 3 in the master bedroom.
  • the cloud server generates a control instruction according to the control information.
  • the control instructions may include the identification of the smart device.
  • control instruction may include instruction 1, instruction 2, and instruction 3.
  • instruction 1 includes the identification of the lamp 1, which is used to instruct the lamp 1 to be turned off.
  • command 2 is used to instruct light 2 to turn off
  • command 3 is used to instruct light 3 to be turned off.
  • the cloud server sends instruction 1 to the home gateway.
  • the home gateway receives the instruction 1 sent by the cloud server.
  • the home gateway sends the instruction 1 to the lamp 1 .
  • the light 1 receives the instruction 1 sent by the home gateway, and executes the instruction 1 to turn off the light 1 .
  • the cloud server sends instruction 2 to the home gateway.
  • the home gateway sends the instruction 2 to the lamp 2 .
  • the cloud server sends instruction 3 to the home gateway.
  • the home gateway sends the instruction 3 to the lamp 3 .
  • this embodiment does not limit the execution order of S305-S306, S307-S308, and S309-S310.
  • instruction 1, instruction 2 and instruction 3 may also be referred to as single-control instructions.
  • the cloud server determines multiple smart devices controlled by the user, it sequentially sends instructions for different smart devices to the home gateway in a serial transmission manner, and there is a time difference in sending instructions for different smart devices.
  • different smart devices receive and execute instructions at different times, and there is a time difference between device state changes, and users can also perceive the time difference between device state changes. For example, in the above application scenario 2, as shown in FIG. 4 , light 1 is turned off at time T1, light 2 is turned off at time T2, and light 3 is turned off at time T3, and the device state changes have an obvious sequence.
  • FIG. 5 is another flowchart of a method for controlling a smart device
  • FIG. 6 is a schematic diagram of an interface of a mobile phone when a user configures a device group
  • FIG. 7 is a light-off effect diagram of the process shown in FIG. 5 .
  • the control method of the smart device may include:
  • the mobile phone obtains the device group information configured by the user.
  • the device group information includes identification information of each smart device in the device group.
  • the device group information may further include identification information of the device group.
  • the user can configure lights 1, 2 and 3 in the living room as a device group.
  • the device group can be configured by voice, for example, the user says "configure the lamp 1, lamp 2 in the living room and the lamp in the master bedroom as a device group".
  • the mobile phone can obtain the device group information configured by the user through the microphone.
  • the user can operate in the relevant interface of the APP to configure multiple smart devices into a device group.
  • the device management interface 61 of the APP is currently displayed on the mobile phone, and the device management interface 61 includes the device group configured by the user. Lamp 1, Lamp 2 and Lamp 3.
  • the mobile phone sends the device group information to the cloud server.
  • the cloud server receives the device group information sent by the mobile phone.
  • the cloud server generates a device group establishment instruction according to the device group information.
  • the device group establishment instruction is used to instruct the home gateway to establish a device group.
  • the device group establishment instruction may include identification information of each smart device in the device group.
  • the device group establishment instruction may further include identification information of the device group.
  • the device group establishment instruction may instruct the home gateway to configure lamp 1, lamp 2 in the living room, and lamp 3 in the master bedroom as a device group.
  • the cloud server sends the device group establishment instruction to the home gateway.
  • the home gateway receives the device group establishment instruction sent by the cloud server.
  • messages can be exchanged between the home gateway and the smart device to establish a device group, and related information of the device group can be synchronized.
  • This embodiment does not limit the message interaction process.
  • the home gateway and the smart device may establish the device group according to the identification information of the device group.
  • the home gateway and the smart device may negotiate with each other to determine the identification information of the device group, establish the device group, and use the identification information of the device group. The information is fed back to the cloud server.
  • both the home gateway and the smart devices in the device group store the relevant information of the device group, so as to facilitate subsequent reception and processing of relevant instructions for the device group.
  • the device group identifiers are stored in the home gateway, lamp 1, lamp 2 and lamp 3.
  • the mobile phone obtains control information input by the user.
  • the mobile phone sends the control information to the cloud server.
  • the cloud server determines the smart device to be controlled by the user according to the control information.
  • the cloud server generates a group control instruction according to the control information.
  • the cloud server can generate a group control instruction for the device group.
  • the group control instruction may include identification information of the device group.
  • the group control instruction includes the device group identifiers of the device groups where the light 1, the light 2 and the light 3 are located, and is used to instruct the light 1, the light 2 and the light 3 to be turned off.
  • S507 The cloud server sends a group control instruction to the home gateway.
  • the home gateway receives the group control instruction sent by the cloud server.
  • the home gateway sends a group control instruction to light 1 , light 2 and light 3 .
  • lamp 1, lamp 2 and lamp 3 receive the group control instruction sent by the home gateway and execute it.
  • the execution effect of the above application scenario 2 can be referred to (a) in FIG. 7 , and the lamp 1 , the lamp 2 and the lamp 3 can be turned off at the time T1 at the same time.
  • the multiple smart devices can be pre-configured as a device group in the APP of the mobile phone, and the cloud server, the home gateway and the corresponding smart device synchronize the device group information, Thus, the user can control the device group.
  • a user controls multiple smart devices randomly, and at different times and in different scenarios, multiple smart devices are randomly combined.
  • the user must configure the device group on the mobile phone in advance.
  • the information of the device group needs to be modified. For example, as shown in (b) of Figure 7, if a lamp is added in the master bedroom, marked as lamp 4, the established equipment group "lamps in the living room and master bedroom" should be modified, otherwise the lamp will not be realized 4 The effect of turning off lights 1 to 3 at the same time.
  • the name of the device group in the voice should be the same as the name of the pre-established device group. For example, if the user's voice is "turn off the lights in the living room and dining room", the user needs to arrange the lights in the living room and dining room into a device group in advance, and name the device group "lights in the living room and dining room". In this way, when the user says “turn off the lights in the living room and dining room", the lights in the living room and dining room will be turned off at the same time.
  • the lights in the living room and dining room may be changed by the implementation of the embodiment shown in FIG. 3 . Close sequentially one by one.
  • users can use the combination of existing device groups or use the combination of existing device groups and a single smart device to control multiple devices, reducing the number of new device groups configured, but for all smart devices controlled by the user. , still cannot respond at the same time, and there is a significant time difference between the device status changes.
  • the user wants to control the lights in the living room, the master bedroom and the second bedroom.
  • the lights in the living room and the master bedroom have been pre-configured as a device group, and the user's voice can be "put the living room and the master bedroom. Turn off the lights in the second bedroom.”
  • the control method of the smart device, after S508 may further include:
  • the cloud server generates a single control instruction according to the control information.
  • lamp 1, lamp 2, and lamp 3 are preconfigured as a device group, and lamp 5 in the second bedroom is not in the device group.
  • the cloud server can generate a single control instruction for lamp 5 according to the control information.
  • the single control command includes the identification information of the lamp 5 .
  • S506 and S509 may be implemented in one step.
  • the cloud server sends a single-control instruction to the home gateway.
  • the home gateway receives the single-control instruction sent by the cloud server.
  • the home gateway sends a single control instruction to the lamp 5 .
  • the lamp 5 receives the single-control instruction sent by the home gateway, and executes it.
  • the cloud server sends group control instructions and single control instructions to the home gateway in serial transmission mode.
  • the smart devices that belong to the same device group can respond at the same time, but the smart devices that do not belong to the device group cannot respond at the same time.
  • there is a time difference in the device state change and the user can also perceive the time difference in the device state change.
  • the lamp 1, the lamp 2 and the lamp 3 can be turned off at the time T1 at the same time, and the lamp 5 is turned off at the time T2.
  • the device state changes of lamp 5 have an obvious sequence.
  • An embodiment of the present application provides a method for controlling a smart device.
  • multiple smart devices can respond at the same time, and device states can change simultaneously.
  • the user does not need to configure the device group in advance, and the cloud server can establish a temporary device group according to the user's control information, and send a group control instruction to the home gateway for the temporary device group.
  • the home gateway has multicast capability and can send group control instructions to related smart devices. In this way, the tedious operation of manually configuring the device group by the user is avoided, multiple smart devices respond simultaneously, and the device status changes simultaneously, and the user can randomly control multiple smart devices at the same time, which improves the user experience.
  • FIG. 8 is a flowchart of a method for controlling a smart device provided by an embodiment of the present application
  • FIG. 9 is a light-off effect diagram of the process shown in FIG. 8
  • the control method of the smart device may include:
  • the mobile phone obtains control information input by the user.
  • the mobile phone sends the control information to the cloud server.
  • the cloud server determines the smart device to be controlled by the user according to the control information.
  • the cloud server determines the smart device to be controlled by the user as a temporary device group, and generates a group control instruction for the temporary device group according to the control information.
  • the temporary device group includes lamp 1 , lamp 2 and lamp 3 .
  • the cloud server sends a group control instruction to the home gateway.
  • the home gateway receives the group control instruction sent by the cloud server.
  • S803 The home gateway sends a group control instruction to the smart devices in the temporary device group.
  • the home gateway may send the group control instruction in the manner shown in FIG. 2 .
  • the lamp 1 , the lamp 2 and the lamp 3 can be turned off simultaneously at time T1 .
  • FIG. 10 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • this embodiment provides an implementation manner of S801 to S803 in FIG. 8 .
  • S803 adopts the method shown in (a) of FIG. 2 .
  • S801 may include S1001 to S1006, and a temporary device group is established in an explicit manner, and the cloud server, home gateway and smart device store relevant information of the temporary device group.
  • S802 is specifically S1007, and S803 is specifically S1008.
  • the method for controlling a smart device provided in this embodiment may include:
  • the cloud server generates a temporary device group establishment instruction according to the smart device to be controlled by the user.
  • the temporary device group establishment instruction is used to instruct the home gateway to establish a temporary device group.
  • the temporary device group establishment instruction includes identification information of the smart device to be controlled by the user.
  • the temporary device group establishment instruction may further include identification information of the temporary device group.
  • the temporary device group establishment instruction may instruct the home gateway to configure lamp 1, lamp 2 in the living room, and lamp 3 in the master bedroom as a temporary device group.
  • the cloud server sends a temporary device group establishment instruction to the home gateway.
  • the home gateway receives the temporary device group establishment instruction sent by the cloud server.
  • messages can be exchanged between the home gateway and the smart device to be controlled by the user to establish a temporary device group, and related information of the temporary device group is stored.
  • This embodiment does not limit the message interaction process.
  • the home gateway and the smart device to be controlled by the user may establish the temporary device group according to the identification information of the temporary device group.
  • the home gateway and the smart device to be controlled by the user can negotiate with each other to determine the identification information of the temporary device group, and establish the temporary device group. group, and feed back the identification information of the temporary device group to the cloud server.
  • the home gateway and the smart device to be controlled by the user both store the relevant information of the temporary device group, so as to facilitate subsequent reception and processing of relevant instructions for the temporary device group.
  • the home gateway, lamp 1, lamp 2 and lamp 3 all store temporary device group identifiers.
  • the home gateway sends a temporary device group establishment response message to the cloud server.
  • the cloud server receives the temporary device group establishment response message sent by the home gateway.
  • the temporary device group establishment response message is used to indicate whether the home gateway successfully establishes the temporary device group.
  • the content included in the temporary device group establishment instruction is different, the content included in the temporary device group establishment response message may be different.
  • the temporary device group establishment instruction includes: identification information of the smart device to be controlled by the user.
  • the home gateway feeds back the identification information of the temporary device group to the cloud server, that is, the temporary device group establishment response message includes the identification information of the temporary device group, which is used to indicate the home gateway.
  • the temporary device group was successfully created.
  • the home gateway can determine the identification information of the temporary device group, which improves the flexibility of the home gateway temporary device group.
  • the temporary device group establishment instruction includes: identification information of the smart device to be controlled by the user and identification information of the temporary device group.
  • the home gateway establishes the temporary device group according to the temporary device group establishment instruction, the identification information of the temporary device group is sent by the cloud server, and the implementation manner is simple.
  • the temporary device group establishment response message may include indication information, and when the values of the indication information are different, it indicates whether the home gateway successfully establishes the temporary device group.
  • the implementation manner of the indication information is not limited in this embodiment.
  • the indication information may be 1 bit in length and take a value of 0 or 1.
  • the cloud server stores the temporary device group information.
  • the cloud server stores the temporary device group information.
  • the temporary device group information includes: identification information of the temporary device group, identification information of the smart devices in the temporary device group, and identification information of the home gateway.
  • the home gateway is specifically a home gateway that communicates with the smart devices in the temporary device group, and the identification information of the home gateway can uniquely distinguish different home gateways.
  • the cloud server may store the temporary device group information in the temporary device group list, and the temporary device group list is used for unified management of all the temporary device group lists.
  • the cloud server generates a group control instruction for the temporary device group according to the control information, where the group control instruction includes identification information of the temporary device group.
  • the group control instruction includes the temporary device group identifiers of the temporary device groups where the lights 1, 2 and 3 are located, which are used to instruct to turn off the lights 1, 2 and 3.
  • the cloud server sends a group control instruction to the home gateway.
  • the home gateway receives the group control instruction sent by the cloud server.
  • the home gateway sends a group control instruction to the temporary device group.
  • the method shown in (a) in FIG. 2 is used for sending.
  • the cloud server identifies the multiple smart devices controlled by the user based on the user's control information, and the user controls multiple smart devices.
  • Multiple smart devices controlled by the user form a temporary device group, save the relevant information of the temporary device group, and the cloud server can send a group control instruction to the home gateway for the temporary device group.
  • the home gateway and a plurality of smart devices controlled by the user also store the relevant information of the temporary device group.
  • the home gateway adopts the traditional multicast method to multicast group control instructions to multiple smart devices controlled by the user, which saves transmission resources and improves the effect of multiple smart devices responding at the same time.
  • a user can randomly control multiple smart devices simultaneously, multiple smart devices respond simultaneously, and device states change simultaneously, so that the user cannot perceive the time difference, which improves user experience.
  • S1001 and S1006 may be implemented in one step, and S1002 and S1007 may be implemented in one step, that is, the temporary device group establishment instruction and the group control instruction may be implemented in one instruction.
  • FIG. 11 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application. On the basis of the embodiment shown in FIG. 10 , this embodiment involves deleting the relevant information of the temporary device group. As shown in FIG. 11 , the method for controlling a smart device provided in this embodiment, after S1007 in FIG. 10 , may further include:
  • the cloud server generates a temporary device group deletion instruction.
  • the temporary device group deletion instruction is used to instruct the home gateway to delete the temporary device group.
  • the temporary device group deletion instruction includes identification information of the temporary device group.
  • the temporary device group deletion instruction may further include: identification information of the smart devices in the temporary device group.
  • S1102 The cloud server sends a temporary device group deletion instruction to the home gateway.
  • the home gateway receives the temporary device group deletion instruction sent by the cloud server.
  • messages can be exchanged between the home gateway and the smart devices in the temporary device group to delete the temporary device group and delete the relevant information of the temporary device group saved locally.
  • This embodiment does not limit the message interaction process.
  • the home gateway sends a deletion instruction to Lamp 1, Lamp 2 and Lamp 3, and the deletion instruction includes the identification information of the temporary device group.
  • Lamp 1, Lamp 2 and Lamp 3 delete the relevant information of the temporary device group saved locally, and send response information to the home gateway to indicate whether to delete the temporary device group.
  • This embodiment does not limit the specific content of the response information.
  • this embodiment does not limit the manner in which the home gateway sends the deletion instruction.
  • the serial transmission method can be used, for example, the transmission is sent to the lamp 1 first, then to the lamp 2, and then to the lamp 3.
  • it may be sent to Lamp 1, Lamp 2, and Lamp 3 at the same time in a parallel sending manner, for example, in a multi-thread concurrent manner.
  • both the home gateway and the smart devices in the temporary device group delete the relevant information of the temporary device group stored locally, which facilitates the management of the device group information and avoids redundant and invalid information occupying resources.
  • S1104 The home gateway sends a temporary device group deletion response message to the cloud server.
  • the cloud server receives the temporary device group deletion response message sent by the home gateway.
  • the temporary device group deletion response message is used to indicate whether the home gateway successfully deletes the temporary device group.
  • the temporary device group deletion response message may include identification information of the temporary device group, which is used to indicate that the temporary device group is successfully deleted.
  • the temporary device group deletion response message may include indication information, and when the values of the indication information are different, indicate whether the home gateway successfully deletes the temporary device group.
  • the implementation manner of the indication information is not limited in this embodiment.
  • the indication information may be 1 bit in length and take a value of 0 or 1.
  • the cloud server deletes the temporary device group information.
  • the cloud server deletes the temporary device group information.
  • a process of deleting the temporary device group can be initiated.
  • the cloud server sends a temporary device group deletion instruction to the home gateway, and notifies the home gateway and the smart device to delete the temporary device group.
  • the cloud server feed back a response message to the cloud server.
  • the cloud server After determining that the home gateway and the smart device delete the temporary device group, the cloud server also deletes the temporary device group information saved locally. , home gateways, and smart devices delete the temporary device group.
  • the smart device control method provided in this embodiment can delete invalid temporary device group information in time, which facilitates the management of device group information, avoids redundant and invalid information occupying local storage resources, and facilitates subsequent establishment of new temporary device groups. Improve the effectiveness and accuracy of communication.
  • S1006 and S1101 may be implemented in one step
  • S1007 and S1102 may be implemented in one step, that is, the group control instruction and the temporary device group deletion instruction may be implemented in one instruction.
  • S1001, S1006 and S1101 may be implemented in one step
  • S1002, S1007 and S1102 may be implemented in one step, that is, the temporary device group establishment instruction, the group control instruction and the temporary device group deletion Instructions can be implemented in a single instruction.
  • the method for controlling a smart device may further include:
  • the cloud server periodically obtains at least one set of temporary device group information stored locally.
  • the target home gateway corresponding to the temporary device group information is acquired.
  • At least one target home gateway and temporary device group information corresponding to each target home gateway are acquired according to the at least two sets of temporary device group information.
  • the cloud server generates an information deletion instruction for each target home gateway, and the information deletion instruction is used to instruct the target home gateway to delete the corresponding temporary device group.
  • the information deletion instruction includes identification information of the temporary device group corresponding to the target home gateway.
  • the information deletion instruction may further include: identification information of smart devices in the temporary device group corresponding to the target home gateway.
  • the cloud server sends corresponding information deletion instructions to each target home gateway respectively.
  • the target home gateway receives the information deletion instruction sent by the cloud server.
  • the target home gateway deletes the temporary device group indicated by the information deletion instruction according to the information deletion instruction.
  • the target home gateway sends an information deletion response message to the cloud server.
  • the cloud server receives the information deletion response message sent by the target home gateway.
  • the information deletion response message is used to indicate whether the home gateway successfully deletes the temporary device group.
  • the information deletion response message may include identification information of the deleted temporary device group.
  • the cloud server deletes the corresponding temporary device group information.
  • this process is used to delete the temporary device group information stored on the cloud server, home gateway and smart device.
  • the interaction information between each device in this process is similar to the interaction information in S1101-S1105, the difference is that: through S1101-S1105, after the cloud server sends a group control instruction for the temporary device group, the related information of the temporary device group can be deleted in time information, and this process is used to periodically delete temporary device group information.
  • this process it is ensured that invalid temporary device group information can be deleted, which facilitates the management of device group information, avoids redundant and invalid information occupying local storage resources, and facilitates the subsequent establishment of new temporary device groups, which improves the effectiveness of communication. and accuracy.
  • the temporary device group deletion response message in S1004 indicates that the home gateway has not successfully deleted the temporary device group, or the cloud server does not receive the temporary device group deletion response fed back by the home gateway due to abnormal network communication or service interruption
  • invalid information can be deleted through this process, which improves the management effect of device group information.
  • this embodiment does not limit the period for deleting the temporary device group information, for example, 30 minutes.
  • the user will continuously change the device state for multiple smart devices. For example, when a user arrives home at 11 o'clock in the evening, after entering the door, he generally turns on the lights in the bedroom and kitchen, and then enters the bedroom. The user voice can be "turn on the lights in the living room and kitchen", and after 5 minutes, the user voice can be "turn off the lights in the living room and kitchen”.
  • the cloud server can save the relevant information of the temporary device group within a preset time period after creating a temporary device group, and delete it after the preset time period has passed. This embodiment does not limit the value of the preset time period.
  • FIG. 12 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • this embodiment provides an implementation manner of S801 to S803 in FIG. 8 .
  • S803 may adopt the manners shown in (b) to (e) in FIG. 2 .
  • S801 is specifically S1201, and a temporary device group is established in an implicit manner, and the cloud server, the home gateway and the smart device do not need to store the relevant information of the temporary device group.
  • S802 is specifically S1202, and S803 is specifically S1203.
  • the method for controlling a smart device provided in this embodiment may include:
  • the cloud server generates a group control instruction according to the control information and the smart device to be controlled by the user, where the group control instruction includes identification information of the smart device to be controlled by the user.
  • the cloud server determines multiple smart devices to be controlled by the user as a temporary device group, and generates a group control instruction for the temporary device group.
  • a temporary device group is implicitly established, and the cloud server does not need to store the relevant information of the temporary device group. Since the group control instruction includes the identification information of each smart device to be controlled by the user, the group control instruction in this embodiment is larger than the group control instruction in the embodiment shown in FIG. 10 , but saves storage of temporary equipment. Local resource for group information.
  • the group control instruction includes the identification information of lamp 1, the identification information of lamp 2 and the identification information of lamp 3, and is used to instruct to turn off lamp 1, lamp 2 and lamp 3.
  • S1202 The cloud server sends a group control instruction to the home gateway.
  • the home gateway receives the group control instruction sent by the cloud server.
  • the home gateway sends a group control instruction to the smart device to be controlled by the user.
  • the smart devices to be controlled by the user include light 1, light 2 and light 3, and the home gateway can send group control instructions in the manners shown in (b) to (e) in FIG. 2 .
  • the specific content of the group control instruction may be different depending on the sending method.
  • the group control instruction may include identification information and instruction content of each smart device to be controlled by the user, and reference may be made to instruction 2 shown in (b) of FIG. 2 .
  • the home gateway may send the group control instruction in the manner shown in (b) in FIG. 2 .
  • the group control instruction carries instruction content applicable to multiple smart devices controlled by the user, and the group control instruction is relatively small, which ensures the response delay of the smart devices.
  • the group control instruction may include an instruction to be executed separately by each smart device to be controlled by the user, and reference may be made to instruction 3 shown in (c) of FIG. 2 .
  • the home gateway may send the group control instruction in the manners shown in (b) to (e) in FIG. 2 .
  • the group control instruction includes an instruction that is separately executed by each smart device controlled by the user, and the instruction execution manner is simple.
  • the cloud server identifies the multiple smart devices controlled by the user based on the user's control information, and the user controls multiple smart devices.
  • Multiple smart devices controlled by the user are determined as a temporary device group, and the cloud server can send a group control instruction to the home gateway for the temporary device group, where the group control instruction includes identification information of each smart device controlled by the user.
  • the cloud server, home gateway and multiple smart devices controlled by the user do not need to store the relevant information of the temporary device group, saving local storage resources.
  • FIG. 13 is another flowchart of a method for controlling a smart device provided by an embodiment of the present application.
  • the execution body of this embodiment is a cloud server. Based on the embodiments shown in FIGS. 8 to 12 , this embodiment involves the cloud server determining whether a group control instruction can be used for multiple smart devices controlled by the user.
  • the method for controlling a smart device provided in this embodiment after S303 in FIG. 8 , may further include:
  • the networking information is used to indicate the connection relationship between the smart device and other devices after connecting to the network. For example, whether the smart device accesses the network through the home gateway, the related information of the connected home gateway, and so on.
  • the networking information may include identification information of the home gateway.
  • the networking information may further include identification information of the smart device.
  • the networking information may include identification information of the smart device.
  • S1302. Determine whether multiple smart devices belong to the same home gateway according to the networking information.
  • the capability information of the home gateway is used to indicate whether the home gateway has the multicast capability.
  • the multicast capability of the home gateway reference may be made to the related description in FIG. 2 .
  • the capability information of the home gateway may be reported to the cloud server after the home gateway is connected to the network.
  • the cloud server may actively query the capability information of the home gateway through message interaction with the home gateway.
  • the subsequent steps are performed. Specifically, in the embodiment shown in FIG. 8, continue to execute S801; in the embodiment shown in FIG. 10, continue to execute S1001; in the embodiment shown in FIG. 12, continue to execute S1201.
  • FIG. 14 is another system architecture diagram to which the embodiment of the application is applied
  • FIG. 15 is another flowchart of the control method of the smart device provided by the embodiment of the application.
  • this embodiment provides another implementation manner of the control method of the smart device, which is applicable to the scenario shown in FIG. 14 .
  • lamp 1, lamp 2 and lamp 3 communicate with the cloud server and the terminal device through home gateway 1, and home gateway 1 has multicast capability.
  • the lamp 4 and the lamp 5 communicate with the cloud server and the terminal device through the home gateway 2, and the home gateway 2 does not have the multicast capability.
  • the lamp 6 and the lamp 7 communicate with the cloud server and the terminal device through the home gateway 3, and the home gateway 3 has the multicast capability.
  • the lamp 8 does not communicate with the cloud server and the terminal device through the home gateway.
  • Multiple smart devices controlled by the user include at least two of the networking modes 1 to 4. For example, an example is: the user controls light 1 and light 2 under home gateway 1, light 4 and light 5 under home gateway 2, light 6 and light 8 under home gateway 3.
  • the cloud server can generate group control instructions for the home gateway. For details, please refer to the group control instructions in the embodiments shown in FIGS. 8 to 12 . .
  • a single-control instruction can be generated, and reference may be made to the single-control instruction in the embodiments shown in FIG. 3 to FIG. 5 .
  • the cloud server can send group control instructions and single control instructions at the same time in a multi-threaded concurrent manner, thereby shortening the time delay for sending instructions.
  • Multiple smart devices controlled by the user can respond at the same time, and the device status changes at the same time, shortening the time and improving the user experience. .
  • control method for a smart device may further include:
  • the cloud server generates a control instruction according to the control information.
  • control instructions may include a group control instruction, a single control instruction 1, a single control instruction 2, a single control instruction 3, and a single control instruction 4.
  • group control instruction is directed to the temporary device group formed by the lamp 1 and the lamp 2 under the home gateway 1, and is used to turn off the lamp 1 and the lamp 2. Since the home gateway 2 does not support the multicast capability, the single control instruction 1 and the single control instruction 2 are respectively directed to the light 4 and the light 5 under the home gateway 2, and are used to turn off the light 4 and the light 5 respectively.
  • the single control command 3 is aimed at the light 6 under the home gateway 3, and is used to turn off the light 6.
  • the single control command 4 is for the light 8 which communicates directly with the cloud server.
  • the cloud server sends a group control instruction to the home gateway 1 .
  • the cloud server sends the single control instruction 1 to the home gateway 2 .
  • the cloud server sends the single control instruction 2 to the home gateway 2 .
  • the cloud server sends the single-control instruction 3 to the home gateway 3 .
  • the cloud server sends the single control instruction 4 to the lamp 8 .
  • S1502-S1506 are sent simultaneously in a multi-thread concurrent manner.
  • the terminal device and the home gateway can communicate without going through the cloud server.
  • the related operations performed by the cloud server can be performed on the terminal device, and the terminal device has the ability to perform related operations.
  • Corresponding hardware and/or software modules for example, in the embodiment shown in FIG. 8 , the mobile phone can determine the smart device to be controlled by the user according to the control information, determine the smart device to be controlled by the user as a temporary device group, and generate a group control instruction for the temporary device group according to the control information, And send group control instructions to the home gateway.
  • the process of establishing a temporary device group shown in FIG. 10 the process of deleting a temporary device group shown in FIG. 11 , and the like are implemented.
  • the terminal device, cloud server and home gateway include corresponding hardware and/or software modules for executing each function.
  • the present application can be implemented in hardware or in the form of a combination of hardware and computer software in conjunction with the algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
  • the terminal device, the cloud server, and the home gateway can be divided into functional modules according to the foregoing method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. in the module.
  • the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • the names of the modules in the embodiments of the present application are schematic, and the names of the modules are not limited in actual implementation.
  • FIG. 16 is a schematic structural diagram of a cloud server provided by an embodiment of the present application.
  • the cloud server provided in this embodiment may include:
  • a receiving module 1601 configured to receive control information sent by a terminal device; the control information is used to instruct a user to control multiple smart devices;
  • Intent recognition module 1602 configured to determine the multiple smart devices to be controlled by the user according to the control information, and determine the multiple smart devices as a temporary device group; wherein the multiple smart devices and the same home gateway communication;
  • the temporary equipment group management module 1603 is further configured to generate a temporary equipment group establishment instruction; the temporary equipment group establishment instruction is used to indicate establishing the temporary device group by the home gateway;
  • the sending module 1604 is further configured to send the temporary device group establishment instruction to the home gateway;
  • the receiving module 1601 is further configured to receive a temporary device group establishment response message sent by the home gateway;
  • the temporary equipment group management module 1603 is further configured to, in response to the temporary equipment group establishment response message, store temporary equipment group information; the temporary equipment group information includes the identification information of the temporary equipment group, each of the The identification information of the device and the identification information of the home gateway.
  • the group control instruction includes identification information of the temporary device group.
  • the temporary device group establishment instruction includes identification information of each smart device in the plurality of smart devices.
  • the temporary device group establishment instruction further includes identification information of the temporary device group.
  • the temporary device group management module 1603 is further configured to:
  • the temporary equipment group deletion instruction is used to instruct the home gateway to delete the temporary equipment group, and the temporary equipment group deletion instruction includes identification information of the temporary equipment group;
  • the sending module 1604 is further configured to send the temporary device group deletion instruction to the home gateway.
  • the receiving module 1601 is also used for:
  • the temporary equipment group management module 1603 is further configured to delete the temporary equipment group information in response to the temporary equipment group deletion response message.
  • the temporary device group management module 1603 is further configured to:
  • an information deletion instruction is generated according to the temporary device group information corresponding to the target home gateway, where the information deletion instruction is used to instruct the target home gateway to delete the corresponding temporary device group, and the information deletion instruction includes Identification information of each temporary device group corresponding to the target home gateway;
  • the sending module 1604 is further configured to send the information deletion instruction to the target home gateway.
  • the receiving module 1601 is further configured to receive a deletion response message sent by the target home gateway;
  • the temporary device group management module 1603 is further configured to, in response to the deletion response message, delete the temporary device group information corresponding to the target home gateway.
  • the group control instruction includes identification information of each smart device in the plurality of smart devices.
  • the group control instruction includes first instruction content and identification information of each of the smart devices, where the first instruction content is an instruction content executed by each of the smart devices.
  • the group control instruction includes a to-be-executed instruction corresponding to each of the smart devices; for each of the smart devices, the to-be-executed instruction includes the identification information of the smart device and the content of the second instruction, where the The second instruction content is the instruction content executed by the smart device.
  • control information includes at least one of the following: voice information, video information, image information, text information or body motion information.
  • the cloud server provided in this embodiment is used to perform the related operations of the cloud server in the method embodiment of the present application, and the technical principles and technical effects are similar, and details are not repeated here.
  • FIG. 17 is a schematic structural diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 17 , the terminal device provided in this embodiment may include:
  • a receiving module 1701 configured to receive a user's control operation; the control operation is used by the user to control multiple smart devices;
  • a processing module 1702 configured to acquire control information input by a user in response to the control operation
  • the sending module 1703 is configured to send the control information to the cloud server.
  • control operation includes at least one of the following: a voice control operation, a body motion control operation, or an operation performed on an interface displayed by the terminal device.
  • control information includes at least one of the following: voice information, video information, image information, text information or body motion information.
  • the terminal device provided in this embodiment is used to perform related operations of the terminal device in the method embodiment of the present application, and the technical principles and technical effects are similar, and details are not described herein again.
  • FIG. 18 is a schematic structural diagram of a home gateway provided by an embodiment of the present application.
  • the home gateway provided in this embodiment may include: a sending module 1801 , a processing module 1802 , and a receiving module 1803 .
  • the sending module 1801 is used for sending data to other devices. For example, a group control instruction is sent to the smart device, and a temporary device group establishment response message, a temporary device group deletion response message, or a deletion instruction response message is sent to the cloud server.
  • the receiving module 1803 is used for receiving data from other devices. For example, a group control instruction, a temporary device group establishment instruction, a temporary device group deletion instruction, or a deletion instruction are received from the cloud server.
  • the processing module 1802 is used for establishing a temporary device group, deleting a temporary device group, and the like.
  • the home gateway provided in this embodiment is used to perform the related operations of the home gateway in the method embodiment of the present application, and the technical principles and technical effects are similar, and details are not repeated here.
  • FIG. 19 is a schematic structural diagram of a device provided by an embodiment of the present application, which shows another structure of the device provided by an embodiment of the present application, and the device may be a terminal device, a cloud server, or a home gateway.
  • the device includes: a processor 1901 , a receiver 1902 , a transmitter 1903 , a memory 1904 and a bus 1905 .
  • the processor 1901 includes one or more processing cores, and the processor 1901 executes various functional applications and information processing by running software programs and modules.
  • the receiver 1902 and the transmitter 1903 may be implemented as a communication component, which may be a baseband chip.
  • the memory 1904 is connected to the processor 1901 through a bus 1905.
  • the memory 1904 may be configured to store at least one program instruction
  • the processor 1901 may be configured to execute the at least one program instruction, so as to implement the technical solutions of the foregoing embodiments.
  • the implementation principle and technical effect thereof are similar to the related embodiments of the above method, and are not repeated here.
  • FIG. 19 only shows one memory and one processor. In an actual device, there may be multiple processors and memories.
  • the memory may also be referred to as a storage medium or a storage device, etc., which is not limited in this embodiment of the present application.
  • the processor may include a baseband processor and a central processing unit.
  • the baseband processor is mainly used to process communication data
  • the central processing unit is mainly used to execute software programs and process data of the software programs.
  • the baseband processor and the central processing unit may be integrated into one processor, or may be independent processors, which are interconnected through technologies such as a bus.
  • a device may include multiple baseband processors to adapt to different network standards, a device may include multiple central processors to enhance its processing capability, and various components of the device may be connected through various buses.
  • the baseband processor can also be expressed as a baseband processing circuit or a baseband processing chip.
  • the central processing unit can also be expressed as a central processing circuit or a central processing chip.
  • the function of processing the communication protocol and communication data can be built in the processor, or stored in the memory in the form of a software program, and the processor executes the software program to realize the baseband processing function.
  • the memory can be integrated in the processor or independent of the processor.
  • the memory includes a cache, which can store frequently accessed data/instructions.
  • the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SS), etc., or may also be a volatile memory (volatile memory), for example Random-access memory (RAM).
  • Memory is, without limitation, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
  • the methods provided by the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • When implemented in software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line, DSL), or wireless (eg, infrared, wireless, microwave, etc.)
  • a readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media.
  • the available media can be magnetic media (eg, floppy disks, hard disks, magnetic tapes) ), optical media (eg, digital video disc (DWD), or semiconductor media (eg, SSD), etc.).
  • the embodiments of the present application provide a computer program product, which enables the device to execute the technical solutions in the foregoing embodiments when the computer program product runs on a device.
  • the implementation principle and technical effect thereof are similar to those of the above-mentioned related embodiments, which will not be repeated here.
  • the embodiments of the present application provide a computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a device, the device enables the device to execute the technical solutions of the foregoing embodiments.
  • the implementation principle and technical effect thereof are similar to those of the above-mentioned related embodiments, which will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请实施例适用于智能家居技术领域,提供一种智能设备的控制方法、云服务器、终端设备和存储介质,适用于用户控制多个智能设备的场景。智能设备的控制方法包括:终端设备获取用户输入的控制信息后,发送给云服务器。云服务器根据控制信息确定用户控制的多个智能设备,将多个智能设备确定为临时设备组,根据控制信息生成针对临时设备组的组控指令,其中,多个智能设备与同一个家庭网关通信,云服务器向家庭网关发送组控指令。由于云服务器将用户控制的多个智能设备确定为一个临时设备组,针对临时设备组生成组控指令,向家庭网关发送一条组控指令,可以实现多个智能设备同时响应,设备状态同时变化。

Description

智能设备的控制方法、云服务器、终端设备和存储介质
本申请要求于2020年12月30日提交国家知识产权局、申请号为202011628001.2、申请名称为“智能设备的控制方法、云服务器、终端设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及智能家居技术领域,尤其涉及一种智能设备的控制方法、云服务器、终端设备和存储介质。
背景技术
随着通信技术和物联网技术的发展,人们对智能家居设备的使用越来越频繁。在智能家居场景中,通过物联网技术可以将多种智能设备连接到一起。例如,音视频设备、照明系统、智能窗帘、空调、安防设备、影音设备、数字影院设备,等等。在一些场景中,用户会控制多个智能设备。例如,客厅中有2个灯,用户通过语音“把客厅的灯关了”控制客厅中的2个灯关闭。
目前,云服务器会针对多个智能设备中的每个智能设备逐一下发操作指令。例如,在上面场景中,假设,客厅中的2个灯分别为灯1和灯2,云服务器会针对灯1下发一次操作指令,针对灯2下发一次操作指令。当逐一对每个智能设备进行操作时,不同智能设备的状态变化有明显的先后顺序。例如,在上面场景中,灯1和灯2的关闭存在关闭时延,用户可以感受到灯关闭的先后顺序,用户体验很差。
发明内容
本申请实施例提供一种智能设备的控制方法、云服务器、终端设备和存储介质,用户控制的多个智能设备可以同时响应,设备状态同时变化。
第一方面,提供了一种智能设备的控制方法,应用于云服务器,包括:接收终端设备发送的控制信息,控制信息用于指示用户对多个智能设备进行控制,根据控制信息确定用户待控制的多个智能设备,将多个智能设备确定为临时设备组,其中,多个智能设备与同一个家庭网关通信,根据控制信息生成针对临时设备组的组控指令,向与多个智能设备通信的家庭网关发送组控指令。
第一方面提供的智能设备的控制方法,由云服务器将用户控制的多个智能设备确定为一个临时设备组,针对临时设备组生成组控指令,向家庭网关发送一条组控指令。家庭网关具有组播能力,可以向相关的智能设备发送组控指令,从而,用户控制的多个智能设备可以同时响应,设备状态可以同时变化,用户感知不到时间差,提升了用户体验。而且,用户控制多个智能设备时,不需要用户预先在终端设备上配置设备组,而是云服务器将多个智能设备确定为一个临时设备组,避免了用户人工配置设备组的繁琐操作,提升了用户感受。
一种可能的实现方式中,根据控制信息生成针对临时设备组的组控指令之前,还包括:生成临时设备组建立指令,临时设备组建立指令用于指示家庭网关建立临时设备组,向家庭网关发送临时设备组建立指令,接收家庭网关发送的临时设备组建立响应消息,响应于临时设备组建立响应消息,存储临时设备组信息,临时设备组信息包括临时设备组的标识信息、每个智能设备的标识信息和家庭网关的标识信息。
在该实现方式中,云服务器显性建立临时设备组,并通知家庭网关和相应的智能设备也显性建立临时设备组,获得临时设备组的标识信息。由于临时设备组的标识信息相对较小,减小了后续云服务器与家庭网关之间传输的指令的大小,节省了传输资源,提高了传输速度,从而缩短了智能设备的响应时间。
一种可能的实现方式中,组控指令包括临时设备组的标识信息。
在该实现方式中,由于云服务器、家庭网关和相应的智能设备显性建立临时设备组,同步了临时设备组信息,组控指令中包括临时设备组的标识信息即可,节省了传输资源,提高了传输速度,从而缩短了智能设备的响应时间。
一种可能的实现方式中,临时设备组建立指令包括多个智能设备中每个智能设备的标识信息。
在该实现方式中,家庭网关可以根据临时设备组建立指令建立临时设备组后,确定临时设备组的标识信息,将临时设备组的标识信息反馈给云服务器,提升了家庭网关临时设备组的灵活性。
一种可能的实现方式中,临时设备组建立指令还包括临时设备组的标识信息。
在该实现方式中,临时设备组建立指令中携带临时设备组的标识信息,家庭网关根据临时设备组建立指令建立临时设备组,临时设备组的标识信息是云服务器发送的,实现方式简单。
一种可能的实现方式中,向与多个智能设备通信的家庭网关发送组控指令之后,还包括:生成临时设备组删除指令,临时设备组删除指令用于指示家庭网关删除临时设备组,临时设备组删除指令包括临时设备组的标识信息,向家庭网关发送临时设备组删除指令。
在该实现方式中,云服务器针对临时设备组发送组控指令后,可以发起删除临时设备组的流程,从而及时删除无效的临时设备组信息,便于设备组信息的管理,避免了冗余无效的信息占用本地存储资源。
一种可能的实现方式中,智能设备的控制方法还包括:接收家庭网关发送的临时设备组删除响应消息,响应于临时设备组删除响应消息,删除临时设备组信息。
在该实现方式中,云服务器确定家庭网关和相应的智能设备删除临时设备组信息后,再删除本地保存的临时设备组信息,提高了信息维护的准确性。
一种可能的实现方式中,智能设备的控制方法还包括:周期性获取本地存储的至少一组临时设备组信息,根据至少一组临时设备组信息确定至少一个目标家庭网关以及每个目标家庭网关对应的临时设备组信息,对于每个目标家庭网关,根据该目标家庭网关对应的临时设备组信息生成信息删除指令,信息删除指令用于指示该目标家庭网关删除对应的临时设备组,信息删除指令包括该目标家庭网关对应的每个临时设备组的标识信息,向该目标家庭网关发送信息删除指令。
在该实现方式中,云服务器可以周期性发起删除临时设备组的流程,从而及时删除无 效的临时设备组信息,便于设备组信息的管理,避免了冗余无效的信息占用本地存储资源。
一种可能的实现方式中,智能设备的控制方法还包括:接收目标家庭网关发送的删除响应消息,响应于删除响应消息,删除目标家庭网关对应的临时设备组信息。
在该实现方式中,云服务器确定目标家庭网关和相应的智能设备删除临时设备组信息后,再删除本地保存的临时设备组信息,提高了信息维护的准确性。
一种可能的实现方式中,组控指令包括多个智能设备中每个智能设备的标识信息。
在该实现方式中,云服务器隐性建立临时设备组,云服务器发送的组控指令中包括多个智能设备中每个智能设备的标识信息,云服务器、家庭网关和用户控制的多个智能设备不用存储临时设备组的相关信息,节省了本地存储资源。
一种可能的实现方式中,组控指令包括第一指令内容和每个智能设备的标识信息,第一指令内容为每个智能设备执行的指令内容。
在该实现方式中,组控指令携带针对用户控制的多个智能设备均适用的指令内容,组控指令相对较小,确保了智能设备的响应时延。
一种可能的实现方式中,组控指令包括每个智能设备分别对应的待执行指令,对于每个智能设备,待执行指令包括该智能设备的标识信息和第二指令内容,第二指令内容为该智能设备执行的指令内容。
在该实现方式中,组控指令包括用户控制的每个智能设备分别执行的指令,指令执行方式简单。
一种可能的实现方式中,控制信息包括下列中的至少一种:语音信息、视频信息、图像信息、文字信息或肢体动作信息。
第二方面,提供了一种智能设备的控制方法,应用于终端设备,包括:接收用户的控制操作,控制操作用于用户控制多个智能设备,响应于控制操作,获取用户输入的控制信息,向云服务器发送控制信息。
第二方面提供的智能设备的控制方法,用户控制多个智能设备时,不需要用户预先在终端设备上配置设备组,而是云服务器将多个智能设备确定为一个临时设备组,避免了用户人工配置设备组的繁琐操作,提升了用户感受。
一种可能的实现方式中,控制操作包括下列中的至少一种:语音控制操作、肢体动作控制操作或在终端设备显示的界面上进行的操作。
一种可能的实现方式中,控制信息包括下列中的至少一种:语音信息、视频信息、图像信息、文字信息或肢体动作信息。
第三方面,提供一种装置,包括:用于执行以上任一方面中各个步骤的单元或手段(means)。
一种可能的实现方式中,装置可以为云服务器、终端设备或家庭网关。
第四方面,提供一种云服务器,包括处理器、存储器和收发器,收发器用于与其他设备通信,处理器用于调用存储器中存储的程序,以执行第一方面提供的方法。
第五方面,提供一种终端设备,包括处理器、存储器和收发器,收发器用于与其他设备通信,处理器用于调用存储器中存储的程序,以执行第二方面提供的方法。
第六方面,提供一种智能设备的控制系统,包括:家庭网关、第三或第四方面提供的云服务器和第三或第四方面提供的终端设备。
第七方面,提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当指令在计算机或处理器上运行时,实现以上任一方面提供的方法。
第八方面,提供一种程序产品,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得该设备实施以上任一方面提供的方法。
附图说明
图1为本申请实施例适用的一种系统架构图;
图2为本申请实施例提供的家庭网关组播能力的消息发送示意图;
图3为智能设备的控制方法的一种流程图;
图4为图3所示流程的一种关灯效果图;
图5为智能设备的控制方法的另一种流程图;
图6为用户配置设备组时手机的一种界面示意图;
图7为图5所示流程的关灯效果图;
图8为本申请实施例提供的智能设备的控制方法的一种流程图;
图9为图8所示流程的一种关灯效果图;
图10为本申请实施例提供的智能设备的控制方法的另一种流程图;
图11为本申请实施例提供的智能设备的控制方法的又一种流程图;
图12为本申请实施例提供的智能设备的控制方法的又一种流程图;
图13为本申请实施例提供的智能设备的控制方法的又一种流程图;
图14为本申请实施例适用的另一种系统架构图;
图15为本申请实施例提供的智能设备的控制方法的又一种流程图;
图16为本申请实施例提供的云服务器的一种结构示意图;
图17为本申请实施例提供的终端设备的一种结构示意图;
图18为本申请实施例提供的家庭网关的一种结构示意图;
图19为本申请实施例提供的设备的一种结构示意图。
具体实施方式
下面结合附图描述本申请实施例。
本申请实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。本申请实施例中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本申请实施例提供的智能设备的控制方法、云服务器、终端设备和系统,适用于同时控制多个智能设备的场景。示例性的,图1为本申请实施例适用的一种系统架构图。如图1所示,系统可以包括:终端设备、云服务器、家庭网关和多个智能设备,例如,图1中包括3个智能设备,分别为智能设备1~3。终端设备上安装有用于管理智能设备的应用程序(application,APP),本申请实施例对应用程序的名称和开发者不做限定。为了方便说明,系统可以划分为用户侧、云侧和智能设备侧。用户侧包括终端设备,云侧包括云服务 器,智能设备侧包括家庭网关和智能设备。终端设备与云服务器、云服务器与家庭网关、家庭网关与智能设备之间可以进行通信,本申请实施例对通信方式、遵循的通信协议以及通信内容不做限定。例如,通信方式可以包括无线通信和有线通信,无线通信可以包括:移动通信、蓝牙通信或无线保真(wireless fidelity,Wi-Fi)通信。通过各个设备之间的通信,用户可以实现通过终端设备控制多个智能设备。可选的,在一种实现方式中,用户可以实时控制多个智能设备的设备状态变化。可选的,在另一种实现方式中,用户可以按照约定时间定时控制多个智能设备的设备状态变化,各个设备之间传输的信息可以包括时间信息。
本申请实施例对终端设备、云服务器、家庭网关和智能设备的类型、名称和数量不做限定。例如,终端设备也称为电子设备,一些终端设备的举例为:手机、可穿戴设备、平板电脑、掌上电脑、笔记本电脑等。云服务器也称为服务器、联网智能设备(internet of things,IoT)或IoT云。家庭网关也称为网关或控制设备,一些智能设备的举例为:灯、音箱、空调等。
需要说明,本申请实施例对用户控制智能设备的方式不做限定。例如,可以包括但不限于下列中的至少一种:语音控制、肢体动作控制、文字控制或通过在APP界面上的相关触控操作控制。通常,终端设备获取用户输入的控制信息,将控制信息发送给云服务器。云服务器根据手机发送的控制信息通过家庭网关向相关的智能设备发送指令,智能设备执行指令,从而实现了用户对智能设备的控制。
需要说明,本申请实施例对应用场景不做限定。例如,一些应用场景的举例可以为:
应用场景一、用户通过手机上的APP输入语音“把客厅的灯打开”,客厅中有2个灯。
应用场景二、用户通过手机上的APP输入语音“把客厅和主卧的灯关了”,客厅中有2个灯,分别标记为灯1和灯2。主卧中有1个灯,标记为灯3。
应用场景三、用户在回家前半小时打开APP,通过APP调用摄像头。用户在摄像头前做预设动作,预设动作用于打开客厅和餐厅的空调。客厅中有1个空调,餐厅中有1个空调。
为了方便说明,本申请实施例以终端设备为手机、智能设备为灯、上述应用场景二为例进行说明。
首先,对本申请中的概念进行说明。
1、家庭网关的组播能力
在本申请实施例中,家庭网关的组播能力是指家庭网关接收到云服务器发送的一条指令后,可以根据云服务器发送的指令向多个智能设备发送相应指令。相应的,智能设备接收并执行家庭网关发送的指令。并且,用户可以忽略多个智能设备执行指令的时间差,即,多个智能设备呈现出同时执行指令、设备状态同时变化的效果。例如,在上述应用场景二中,客厅中的灯1、灯2以及主卧中的灯3呈现出同时关闭的效果,用户感知不到各个灯的关灯时间差。
需要说明,本申请实施例中的每个指令,包括指令内容和指令执行对象的标识信息。指令的作用不同,指令内容不同。为了方便说明,本申请实施例中关于指令的描述中,节省了指令内容,详细说明指令执行对象的标识信息。
下面结合图2和上述应用场景二对不同设备组实现方案下家庭网关的组播能力进行说明。其中,家庭网关接收云服务器发送的指令0,指令0用于指示关闭灯1~灯3。
可选的,在一种实现方式中,如图2中的(a)所示,灯1、灯2和灯3被划分至同一个设备组中,设备组具有设备组标识。云服务器、家庭网关、灯1、灯2和灯3均存储有设备组标识。家庭网关可以向灯1、灯2和灯3组播指令1,指令1包括设备组标识。相应的,灯1、灯2和灯3接收到指令1后,确定指令1中的设备组标识与自己所属的设备组的标识相同,则执行指令1。在该实现方式中,家庭网关按照传统的组播方式向多个智能设备组播一条指令,指令较小,占用的传输资源少。
可选的,在另一种实现方式中,如图2中的(b)所示,家庭网关可以向灯1、灯2和灯3广播指令2,指令2中包括灯1的标识、灯2的标识和灯3的标识。相应的,灯1、灯2和灯3接收到指令2后,确定指令2中包括自己的标识,则执行指令2。该实现方式与图2中的(a)所示方式相比,相同之处在于,家庭网关向多个智能设备广播一条指令,区别在于,本实现方式中指令2包括每个灯的标识,指令较大,占用的传输资源多。
可选的,在又一种实现方式中,家庭网关可以将灯1、灯2和灯3所需执行指令封装在一条指令中并广播。如图2中的(c)所示,家庭网关广播指令3,指令3包括3条独立的指令,分别为指令31、指令32和指令33。指令31为灯1所需执行指令,包括灯1的标识。指令32为灯2所需执行指令,包括灯2的标识。指令33为灯3所需执行指令,包括灯3的标识。相应的,灯1、灯2和灯3接收到指令3后,根据标识确定指令3中包括自己执行的指令,则从指令3中拆分出相应指令并执行。该实现方式与图2中的(a)所示方式相比,相同之处在于,家庭网关向多个智能设备广播一条指令,区别在于,本实现方式中指令3包括每个灯执行的指令,指令3较大,占用的传输资源多。
可选的,在又一种实现方式中,如图2中的(d)所示,家庭网关可以通过多线程并发的方式同时向灯1发送指令31、向灯2发送指令32,以及向灯3发送指令33。相应的,灯1、灯2和灯3分别接收并执行对应的指令。在该实现方式中,家庭网关同时向每个智能设备发送指令,确保了多个智能设备执行指令的时间差非常小,用户感知不到时间差。而且,家庭网关向每个智能设备发送的指令较小,占用的传输资源少。
可选的,在又一种实现方式中,如图2中的(e)所示,家庭网关可以串行发送指令。具体的,在T1时刻向灯1发送指令31、在T2时刻向灯2发送指令32,在T3时刻向灯3发送指令33。相应的,灯1、灯2和灯3接收并执行对应的指令。在该实现方式中,为了确保多个智能设备执行指令的时间差较小,使得用户感知不到时间差,家庭网关串行发送指令的时间差要在预设范围内,即,T2与T1之间的时间差、T3与T2之间的时间差在预设范围内。本申请实施例对所述预设范围的取值不做限定,可以根据用户的感知时间进行设置。而且,家庭网关向每个智能设备发送的指令较小,占用的传输资源少。
2、智能设备、设备组和临时设备组
设备组和临时设备组的概念相似,均包括与同一个家庭网关通信的多个智能设备。区别在于:设备组是用户在用户侧人工配置的,云服务器可以根据用户配置的设备组信息建立设备组。临时设备组不是用户配置的,是云服务器根据用户输入的控制信息建立的。
3、标识信息
智能设备、设备组、临时设备组和家庭网关均具有标识信息,标识信息可以包括名称 和/或标识,用于唯一区分不同的对象。例如,临时设备组的标识信息可以包括临时设备组的名称和/或临时设备组的标识,用于唯一区分不同的临时设备组。
在本申请实施例的一些实现方式中,标识信息可以以标识作为示例。
4、组控指令和单控指令
组控指令是指云服务器针对设备组或临时设备组发送的指令,单控指令是指云服务针对单个智能设备发送的指令。可选的,单个智能设备可以直接与云服务器通信,也可以通过家庭网关与云服务器通信。
下面结合图3和图4对智能设备的控制方法的一种实现方式进行说明。图3为智能设备的控制方法的一种流程图,图4为图3所示流程的一种关灯效果图。如图3所示,智能设备的控制方法可以包括:
S301、手机获取用户输入的控制信息。
本实施例对用户进行的相关操作、手机获取用户输入的控制信息的方式以及控制信息的内容不做限定。例如,用户进行语音控制,相应的,手机可以通过麦克风获取用户输入的语音信息,控制信息具体为语音信息。又例如,用户进行肢体动作控制,相应的,手机可以通过摄像头获取用户的图像,控制信息具体为图像信息。
可选的,控制信息可以包括但不限于下列中至少一种类型的信息:语音信息、视频信息、图像信息、文字信息或肢体动作信息。
例如,在上述应用场景二中,控制信息可以包括用户语音“把客厅和主卧的灯关了”。
S302、手机将控制信息发送给云服务器。
相应的,云服务器接收手机发送的控制信息。
S303、云服务器根据控制信息确定用户待控制的智能设备。
其中,云服务器可以采用意图识别的相关算法根据控制信息确定用户待控制的智能设备,本实施例对意图识别的实现方式不做限定,控制信息包括的信息类型不同,进行意图识别的方式可以不同。例如,通过语音识别、语义识别、图像处理等技术实现。可选的,云服务器可以通过神经网络模型、深度学习模型或机器学习模型对控制信息进行意图识别,本实施例对模型的类型和训练方法不做限定。
例如,在上述应用场景二中,用户待控制的智能设备包括:客厅中的灯1、灯2以及主卧中的灯3。
S304、云服务器根据控制信息生成控制指令。
控制指令可以包括智能设备的标识。
例如,在上述应用场景二中,控制指令可以包括指令1、指令2和指令3。指令1包括灯1的标识,用于指示关闭灯1。相似的,指令2用于指示关闭灯2,指令3用于指示关闭灯3。
S305、云服务器向家庭网关发送指令1。
相应的,家庭网关接收云服务器发送的指令1。
S306、家庭网关向灯1发送指令1。
相应的,灯1接收家庭网关发送的指令1,并执行指令1,关闭灯1。
S307、云服务器向家庭网关发送指令2。
S308、家庭网关向灯2发送指令2。
S309、云服务器向家庭网关发送指令3。
S310、家庭网关向灯3发送指令3。
需要说明,本实施例对S305~S306、S307~S308、S309~S310的执行顺序不做限定。
需要说明,指令1、指令2和指令3也可以称为单控指令。
可见,在该实现方式中,云服务器确定用户控制的多个智能设备后,采用串行发送方式依次向家庭网关发送针对不同智能设备的指令,不同智能设备的指令的发送存在时间差。相应的,不同的智能设备在不同的时刻接收并执行指令,设备状态变化存在时间差,用户也可以感知到设备状态变化的时间差。例如,在上述应用场景二中,如图4所示,灯1在T1时刻关闭、灯2在T2时刻关闭,灯3在T3时刻关闭,设备状态变化有明显的先后顺序。
下面结合图5~图7对智能设备的控制方法的另一种实现方式进行说明。图5为智能设备的控制方法的另一种流程图,图6为用户配置设备组时手机的一种界面示意图,图7为图5所示流程的关灯效果图。如图5所示,智能设备的控制方法可以包括:
S501、手机获取用户配置的设备组信息。
其中,设备组信息包括设备组中每个智能设备的标识信息。
可选的,设备组信息还可以包括设备组的标识信息。
例如,在上述应用场景二中,用户想关闭客厅的灯和主卧的灯,用户可以将客厅的灯1、灯2以及主卧的灯3配置为一个设备组。
本实施例对用户进行的相关操作、手机获取用户配置的设备组信息的方式不做限定。可选的,用户打开手机上的APP后,可以通过语音配置设备组,例如,用户说“将客厅中的灯1、灯2和主卧的灯配置为一个设备组”。相应的,手机可以通过麦克风获取用户配置的设备组信息。可选的,用户可以在APP的相关界面中进行操作,将多个智能设备配置为一个设备组。示例性的,如图6所示,手机当前显示APP的设备管理界面61,设备管理界面61中包括用户已配置的设备组,例如,设备组的名称为“客厅和主卧的灯”,包括灯1、灯2和灯3。
S502、手机将设备组信息发送给云服务器。
相应的,云服务器接收手机发送的设备组信息。
S503、云服务器根据设备组信息生成设备组建立指令。
其中,设备组建立指令用于指示家庭网关建立设备组。设备组建立指令可以包括设备组中每个智能设备的标识信息。可选的,设备组建立指令还可以包括设备组的标识信息。
例如,在上述应用场景二中,设备组建立指令可以指示家庭网关将客厅的灯1、灯2以及主卧的灯3配置为一个设备组。
S504、云服务器将设备组建立指令发送给家庭网关。
相应的,家庭网关接收云服务器发送的设备组建立指令。
S505、根据设备组建立指令建立设备组。
具体的,家庭网关与智能设备之间可以进行消息交互建立设备组,并同步设备组的相关信息。本实施例对消息交互过程不做限定。
可选的,在一种实现方式中,若设备组建立指令包括设备组的标识信息,家庭网关与智能设备可以根据设备组的标识信息建立设备组。
可选的,在另一种实现方式中,若设备组建立指令不包括设备组的标识信息,家庭网关与智能设备可以相互协商确定设备组的标识信息,建立设备组,并将设备组的标识信息反馈给云服务器。
通过该步骤,家庭网关和设备组中的智能设备均存储有设备组的相关信息,以便于后续接收和处理针对设备组的相关指令。
例如,在上述应用场景二中,家庭网关、灯1、灯2和灯3均存储有设备组标识。
S301、手机获取用户输入的控制信息。
S302、手机将控制信息发送给云服务器。
S303、云服务器根据控制信息确定用户待控制的智能设备。
其中,S301~S303可以参见图3所示实施例中的相关描述,此处不再赘述。
S506、云服务器根据控制信息生成组控指令。
具体的,由于预先将用户控制的多个智能设备配置为一个设备组,云服务器可以生成针对设备组的组控指令。组控指令可以包括设备组的标识信息。
例如,在上述应用场景二中,组控指令包括灯1、灯2和灯3所在设备组的设备组标识,用于指示关闭灯1、灯2和灯3。
S507、云服务器向家庭网关发送组控指令。
相应的,家庭网关接收云服务器发送的组控指令。
S508、家庭网关向灯1、灯2和灯3发送组控指令。
相应的,灯1、灯2和灯3接收家庭网关发送的组控指令,并执行。
采用该实现方式,上述应用场景二的执行效果可以参见图7中的(a),灯1、灯2和灯3可以在T1时刻同时关闭。
可见,在该实现方式中,用户对多个智能设备进行控制时,可以在手机的APP中预先将多个智能设备配置为设备组,云服务器、家庭网关和相应的智能设备同步设备组信息,从而,用户可以针对该设备组进行控制。
通常,用户控制多个智能设备是随机的,在不同时间和不同场景中,多个智能设备是随机组合的。采用本实施例提供的智能设备的控制方法,对于用户随机控制的每一组多个智能设备,用户都要在手机上提前配置设备组。而且,对于已存在的设备组,如果设备组中智能设备发生变化,例如,智能设备损坏或新增了智能设备,需要对该设备组的信息进行修改。例如,如图7中的(b)所示,假设主卧中增加一个灯,标记为灯4,则要对已建立的设备组“客厅和主卧的灯”进行修改,否则将无法实现灯4与灯1~3同时关闭的效果。
在本实施例中,用户针对设备组进行控制时,语音中设备组的名称要与预先建立的设备组的名称相同。例如,用户语音为“把客厅和餐厅的灯关了”,用户需要预先将客厅和餐厅的灯编排为一个设备组,并把设备组命名为“客厅和餐厅的灯”。这样,当用户说出“把客厅和餐厅的灯关了”时,客厅和餐厅的灯才会同时关闭。如果设备组的名称不是“客厅和餐厅的灯”,那么当用户说出“把客厅和餐厅的灯关了”时,可能会通过图3所示实施例的实现方式将客厅和餐厅中的灯逐一顺序关闭。
可选的,用户可以利用已存在设备组之间的组合或者利用已存在设备组与单个智能设 备的组合进行多设备控制,减少配置新设备组的数量,但是对于用户控制的所有智能设备而言,依然无法同时响应,设备状态变化存在明显时间差。例如,如图7中的(c)所示,用户要控制客厅、主卧和次卧的灯,客厅和主卧的灯已经预先配置为一个设备组,用户语音可以为“把客厅和主卧的灯关了,把次卧的灯关了”。在该场景中,如图5所示,智能设备的控制方法,S508之后还可以包括:
S509、云服务器根据控制信息生成单控指令。
具体的,灯1、灯2和灯3预先配置为设备组,次卧的灯5不在该设备组内,云服务器可以根据控制信息生成针对灯5的单控指令。单控指令包括灯5的标识信息。
需要说明,S506和S509可以在一个步骤中实现。
S510、云服务器向家庭网关发送单控指令。
相应的,家庭网关接收云服务器发送的单控指令。
S511、家庭网关向灯5发送单控指令。
相应的,灯5接收家庭网关发送的单控指令,并执行。
需要说明,若S506和S509在一个步骤中实现,本实施例对S507~S508、S510~S511的执行顺序不做限定。
可见,在本实现方式中,云服务器采用串行发送方式向家庭网关发送组控指令和单控指令,属于同一个设备组的智能设备可以同时响应,不属于该设备组的智能设备无法同时响应,设备状态变化存在时间差,用户也可以感知到设备状态变化的时间差。例如,在上面示例中,如图7中的(c),灯1、灯2和灯3可以在T1时刻同时关闭,灯5则在T2时刻关闭。相比于灯1、灯2和灯3,灯5的设备状态变化有明显的先后顺序。
本申请实施例提供一种智能设备的控制方法,相比于图3所示实施例,多个智能设备可以同时响应,设备状态可以同时变化。相比于图5所示实施例,不需要用户预先配置设备组,云服务器可以根据用户的控制信息建立临时设备组,针对临时设备组向家庭网关发送一条组控指令。家庭网关具有组播能力,可以向相关的智能设备发送组控指令。这样,避免了用户人工配置设备组的繁琐操作,多个智能设备同时响应,设备状态同时变化,用户可以随机对多个智能设备同时控制,提升了用户感受。
下面结合图8~图9对本申请实施例提供的智能设备的控制方法进行说明。图8为本申请实施例提供的智能设备的控制方法的一种流程图,图9为图8所示流程的一种关灯效果图。如图8所示,智能设备的控制方法可以包括:
S301、手机获取用户输入的控制信息。
S302、手机将控制信息发送给云服务器。
S303、云服务器根据控制信息确定用户待控制的智能设备。
其中,S301~S303可以参见图3所示实施例中的相关描述,此处不再赘述。
S801、云服务器将用户待控制的智能设备确定为临时设备组,根据控制信息生成针对临时设备组的组控指令。
例如,在上述应用场景二中,临时设备组包括灯1、灯2和灯3。
S802、云服务器向家庭网关发送组控指令。
相应的,家庭网关接收云服务器发送的组控指令。
S803、家庭网关向临时设备组中的智能设备发送组控指令。
具体的,家庭网关可以采用图2所示方式发送组控指令。
采用本实施例提供的智能设备的控制方法,在上述应用场景二中,如图9所示,灯1、灯2和灯3可以在T1时刻同时关闭。
图10为本申请实施例提供的智能设备的控制方法的另一种流程图。本实施例在图8所示实施例的基础上,提供了图8中S801~S803的一种实现方式。在本实施例中,S803采用图2中的(a)所示方式。S801可以包括S1001~S1006,采用显性方式建立临时设备组,云服务器、家庭网关和智能设备存储有临时设备组的相关信息。S802具体为S1007,S803具体为S1008。如图10所示,本实施例提供的智能设备的控制方法,可以包括:
S1001、云服务器根据用户待控制的智能设备生成临时设备组建立指令。
其中,临时设备组建立指令用于指示家庭网关建立临时设备组。临时设备组建立指令包括用户待控制的智能设备的标识信息。可选的,临时设备组建立指令还可以包括临时设备组的标识信息。
例如,在上述应用场景二中,临时设备组建立指令可以指示家庭网关将客厅的灯1、灯2以及主卧的灯3配置为一个临时设备组。
S1002、云服务器向家庭网关发送临时设备组建立指令。
相应的,家庭网关接收云服务器发送的临时设备组建立指令。
S1003、根据临时设备组建立指令建立临时设备组。
具体的,家庭网关与用户待控制的智能设备之间可以进行消息交互建立临时设备组,并存储临时设备组的相关信息。本实施例对消息交互过程不做限定。
可选的,在一种实现方式中,若临时设备组建立指令包括临时设备组的标识信息,家庭网关与用户待控制的智能设备可以根据临时设备组的标识信息建立临时设备组。
可选的,在另一种实现方式中,若临时设备组建立指令不包括临时设备组的标识信息,家庭网关与用户待控制的智能设备可以相互协商确定临时设备组的标识信息,建立临时设备组,并将临时设备组的标识信息反馈给云服务器。
通过该步骤,家庭网关和用户待控制的智能设备均存储有临时设备组的相关信息,以便于后续接收和处理针对临时设备组的相关指令。
例如,在上述应用场景二中,家庭网关、灯1、灯2和灯3均存储有临时设备组标识。
S1004、家庭网关向云服务器发送临时设备组建立响应消息。
相应的,云服务器接收家庭网关发送的临时设备组建立响应消息。其中,临时设备组建立响应消息用于指示家庭网关是否成功建立临时设备组。临时设备组建立指令包括的内容不同时,临时设备组建立响应消息包括的内容可以不同。
可选的,在一种实现方式中,临时设备组建立指令包括:用户待控制的智能设备的标识信息。相应的,家庭网关根据临时设备组建立指令建立临时设备组后,将临时设备组的标识信息反馈给云服务器,即,临时设备组建立响应消息包括临时设备组的标识信息,用于指示家庭网关成功建立临时设备组。在该实现方式中,家庭网关可以确定临时设备组的标识信息,提升了家庭网关临时设备组的灵活性。
可选的,在另一种实现方式中,临时设备组建立指令包括:用户待控制的智能设备的 标识信息和临时设备组的标识信息。相应的,家庭网关根据临时设备组建立指令建立临时设备组,临时设备组的标识信息是云服务器发送的,实现方式简单。临时设备组建立响应消息可以包括指示信息,当指示信息的取值不同时,指示家庭网关是否成功建立临时设备组。本实施例对指示信息的实现方式不做限定,例如,指示信息可以为1bit长度,取值为0或1。
S1005、响应于临时设备组建立响应消息,云服务器存储临时设备组信息。
具体的,若临时设备组建立响应消息指示家庭网关成功建立临时设备组,则云服务器存储临时设备组信息。
其中,临时设备组信息包括:临时设备组的标识信息、临时设备组中智能设备的标识信息和家庭网关的标识信息。家庭网关具体为与临时设备组中智能设备通信的家庭网关,家庭网关的标识信息可以唯一区分不同的家庭网关。
可选的,云服务器可以将临时设备组信息存储在临时设备组列表中,临时设备组列表用于对所有的临时设备组列表进行统一管理。
S1006、云服务器根据控制信息生成针对临时设备组的组控指令,组控指令包括临时设备组的标识信息。
例如,在上述应用场景二中,组控指令包括灯1、灯2和灯3所在临时设备组的临时设备组标识,用于指示关闭灯1、灯2和灯3。
S1007、云服务器向家庭网关发送组控指令。
相应的,家庭网关接收云服务器发送的组控指令。
S1008、家庭网关向临时设备组发送组控指令。
具体的,本步骤采用图2中的(a)所示的方式进行发送。
可见,本实施例提供的智能设备的控制方法,用户控制多个智能设备时,用户不需要预先在手机上配置设备组,由云服务器基于用户的控制信息识别用户控制的多个智能设备,将用户控制的多个智能设备组成临时设备组,保存临时设备组的相关信息,云服务器可以针对临时设备组向家庭网关发送一条组控指令。家庭网关和用户控制的多个智能设备也存储有临时设备组的相关信息。家庭网关根据云服务器发送的组控指令,采用传统的组播方式向用户控制的多个智能设备组播组控指令,节省了传输资源,提高了多个智能设备同时响应的效果。本实施例提供的智能设备的控制方法,用户可以随机对多个智能设备同时控制,多个智能设备同时响应,设备状态同时变化,用户感知不到时间差,提升了用户体验。
需要说明的是,在一些场景中,S1001和S1006可以在一个步骤中实现,S1002和S1007可以在一个步骤中实现,即,临时设备组建立指令和组控指令可以在一条指令中实现。
图11为本申请实施例提供的智能设备的控制方法的又一种流程图。本实施例在图10所示实施例的基础上,涉及删除临时设备组的相关信息。如图11所示,本实施例提供的智能设备的控制方法,在图10中S1007之后,还可以包括:
S1101、云服务器生成临时设备组删除指令。
其中,临时设备组删除指令用于指示家庭网关删除临时设备组。临时设备组删除指令包括临时设备组的标识信息。可选的,临时设备组删除指令还可以包括:临时设备组中智能设备的标识信息。
S1102、云服务器向家庭网关发送临时设备组删除指令。
相应的,家庭网关接收云服务器发送的临时设备组删除指令。
S1103、根据临时设备组删除指令删除临时设备组。
具体的,家庭网关与临时设备组中的智能设备之间可以进行消息交互以删除临时设备组,删除本地保存的临时设备组的相关信息。本实施例对消息交互过程不做限定。
例如,家庭网关向灯1、灯2和灯3发送删除指令,删除指令中包括临时设备组的标识信息。灯1、灯2和灯3接收删除指令后,删除本地保存的临时设备组的相关信息,并向家庭网关发送响应信息,用于指示是否删除临时设备组。本实施例对响应信息的具体内容不做限定。
其中,本实施例对家庭网关发送删除指令的方式不做限定。可选的,可以通过串行发送方式,例如,先向灯1发送,再向灯2发送,然后向灯3发送。可选的,可以通过并行发送方式,例如通过多线程并发的方式同时向灯1、灯2和灯3发送。
通过该步骤,家庭网关和临时设备组中的智能设备均删除本地存储的临时设备组的相关信息,便于设备组信息管理,避免了冗余无效的信息占用资源。
S1104、家庭网关向云服务器发送临时设备组删除响应消息。
相应的,云服务器接收家庭网关发送的临时设备组删除响应消息。其中,临时设备组删除响应消息用于指示家庭网关是否成功删除临时设备组。
可选的,临时设备组删除响应消息可以包括临时设备组的标识信息,用于指示成功删除临时设备组。
可选的,临时设备组删除响应消息可以包括指示信息,当指示信息的取值不同时,指示家庭网关是否成功删除临时设备组。本实施例对指示信息的实现方式不做限定,例如,指示信息可以为1bit长度,取值为0或1。
S1105、响应于临时设备组删除响应消息,云服务器删除临时设备组信息。
具体的,若临时设备组删除响应消息指示家庭网关成功删除临时设备组,则云服务器删除临时设备组信息。
本实施例提供的智能设备的控制方法,在云服务器针对临时设备组发送组控指令后,可以发起删除临时设备组的流程。云服务器向家庭网关发送临时设备组删除指令,通知家庭网关和智能设备删除临时设备组。相应的,家庭网关和智能设备删除临时设备组后,向云服务器反馈响应消息,云服务器在确定家庭网关和智能设备删除临时设备组后,也删除本地保存的临时设备组信息,从而,云服务器、家庭网关和智能设备均删除临时设备组。本实施例提供的智能设备的控制方法,可以及时删除无效的临时设备组信息,便于设备组信息的管理,避免了冗余无效的信息占用本地存储资源,也便于后续建立新的临时设备组,提升了通信的有效性和准确性。
需要说明的是,在一些场景中,S1006和S1101可以在一个步骤中实现,S1007和S1102可以在一个步骤中实现,即,组控指令和临时设备组删除指令可以在一条指令中实现。
需要说明的是,在一些场景中,S1001、S1006和S1101可以在一个步骤中实现,S1002、S1007和S1102可以在一个步骤中实现,即,临时设备组建立指令、组控指令和临时设备组删除指令可以在一条指令中实现。
可选的,本实施例提供的智能设备的控制方法,还可以包括:
云服务器周期性获取本地存储的至少一组临时设备组信息。
若临时设备组信息为一组,则获取该临时设备组信息对应的目标家庭网关。
若临时设备组信息为至少两组,则根据至少两组临时设备组信息获取至少一个目标家庭网关以及每个目标家庭网关对应的临时设备组信息。
云服务器针对每个目标家庭网关生成信息删除指令,信息删除指令用于指示目标家庭网关删除对应的临时设备组。信息删除指令包括目标家庭网关对应的临时设备组的标识信息。可选的,信息删除指令还可以包括:目标家庭网关对应的临时设备组中智能设备的标识信息。
云服务器向每个目标家庭网关分别发送对应的信息删除指令。相应的,目标家庭网关接收云服务器发送的信息删除指令。
目标家庭网关根据信息删除指令删除信息删除指令指示的临时设备组。
目标家庭网关向云服务器发送信息删除响应消息。相应的,云服务器接收目标家庭网关发送的信息删除响应消息。其中,信息删除响应消息用于指示家庭网关是否成功删除临时设备组。可选的,信息删除响应消息可以包括删除的临时设备组的标识信息。
若信息删除响应消息指示目标家庭网关成功删除临时设备组,则云服务器删除相应的临时设备组信息。
可见,该流程用于删除云服务器、家庭网关和智能设备上存储的临时设备组信息。该流程中各个设备之间的交互信息与S1101~S1105中的交互信息原理相似,区别在于:通过S1101~S1105,可以在云服务器针对临时设备组发送组控指令后及时删除该临时设备组的相关信息,而本流程用于周期性删除临时设备组信息。通过该流程,确保了可以删除无效的临时设备组信息,便于设备组信息的管理,避免了冗余无效的信息占用本地存储资源,也便于后续建立新的临时设备组,提升了通信的有效性和准确性。例如,在S1004中临时设备组删除响应消息指示家庭网关没有成功删除临时设备组的场景中,或者,在网络通信异常或服务中断而导致的云服务器没有接收到家庭网关反馈的临时设备组删除响应消息的场景中,通过本流程可以删除无效信息,提升了设备组信息的管理效果。
需要说明,本实施例对删除临时设备组信息的周期不做限定,例如,30分钟。
需要说明,在一些应用场景中,用户针对多个智能设备会连续的改变设备状态。例如,用户晚上11点到家,进门后一般先打开卧室和厨房的灯,随后进入卧室。用户语音可以为“把客厅和厨房的灯打开”,5分钟后,用户语音为“把客厅和厨房的灯关了”。为了避免云服务器频繁的新建临时设备组和删除临时设备组,云服务器新建临时设备组后可以在预设时间段内保存该临时设备组的相关信息,超过预设时间段之后再删除。本实施例对预设时间段的取值不做限定。
图12为本申请实施例提供的智能设备的控制方法的另一种流程图。本实施例在图8所示实施例的基础上,提供了图8中S801~S803的一种实现方式。在本实施例中,S803可以采用图2中的(b)~(e)所示方式。S801具体为S1201,采用隐性方式建立临时设备组,云服务器、家庭网关和智能设备上不需要存储临时设备组的相关信息。S802具体为S1202,S803具体为S1203。如图12所示,本实施例提供的智能设备的控制方法,可以包括:
S1201、云服务器根据控制信息和用户待控制的智能设备生成组控指令,组控指令包括用户待控制的智能设备的标识信息。
具体的,云服务器将用户待控制的多个智能设备确定为一个临时设备组,生成针对该临时设备组的一条组控指令。通过在组控指令中携带用户待控制的每个智能设备的标识信息,隐性建立临时设备组,云服务器不用存储该临时设备组的相关信息。由于组控指令包括用户待控制的每个智能设备的标识信息,本实施例中的组控指令相比于图10所示实施例中的组控指令,指令较大,但节省了存储临时设备组信息的本地资源。
例如,在上述应用场景二中,组控指令包括灯1的标识信息、灯2的标识信息和灯3的标识信息,用于指示关闭灯1、灯2和灯3。
S1202、云服务器向家庭网关发送组控指令。
相应的,家庭网关接收云服务器发送的组控指令。
S1203、家庭网关向用户待控制的智能设备发送组控指令。
例如,在上述应用场景二中,用户待控制的智能设备包括灯1、灯2和灯3,家庭网关可以采用图2中的(b)~(e)所示方式发送组控指令。其中,发送方式不同,组控指令的具体内容可以不同。
可选的,在一种实现方式中,组控指令可以包括用户待控制的每个智能设备的标识信息和指令内容,可以参见图2中的(b)所示的指令2。相应的,家庭网关可以采用图2中的(b)所示方式发送组控指令。在该实现方式中,组控指令携带针对用户控制的多个智能设备均适用的指令内容,组控指令相对较小,确保了智能设备的响应时延。
可选的,在另一种实现方式中,组控指令可以包括用户待控制的每个智能设备分别执行的指令,可以参见图2中的(c)所示的指令3。相应的,家庭网关可以采用图2中的(b)~(e)所示方式发送组控指令。在该实现方式中,组控指令包括用户控制的每个智能设备分别执行的指令,指令执行方式简单。
可见,本实施例提供的智能设备的控制方法,用户控制多个智能设备时,用户不需要预先在手机上配置设备组,由云服务器基于用户的控制信息识别用户控制的多个智能设备,将用户控制的多个智能设备确定为一个临时设备组,云服务器可以针对临时设备组向家庭网关发送一条组控指令,组控指令中包括用户控制的每个智能设备的标识信息。而且,云服务器、家庭网关和用户控制的多个智能设备不用存储临时设备组的相关信息,节省了本地存储资源。本实施例提供的智能设备的控制方法,用户可以随机对多个智能设备同时控制,多个智能设备同时响应,设备状态同时变化,用户感知不到时间差,提升了用户体验。
图13为本申请实施例提供的智能设备的控制方法的又一种流程图,本实施例的执行主体为云服务器。本实施例在图8~图12所示实施例的基础上,涉及云服务器确定针对用户控制的多个智能设备是否可以采用组控指令。如图13所示,本实施例提供的智能设备的控制方法,在图8中S303之后,还可以包括:
S1301、获取用户待控制的多个智能设备的组网信息。
其中,组网信息用于指示智能设备连接网络后与其他设备的连接关系。例如,智能设备是否通过家庭网关接入网络,接入的家庭网关的相关信息,等等。
可选的,若智能设备通过家庭网关连接网络,组网信息可以包括家庭网关的标识信息。 可选的,组网信息还可以包括智能设备的标识信息。
可选的,若智能设备没有通过家庭网关连接网络,组网信息可以包括智能设备的标识信息。
S1302、根据组网信息判断多个智能设备是否属于相同的家庭网关。
如果多个智能设备属于相同的家庭网关,则继续执行S1303。
S1303、若多个智能设备属于相同的家庭网关,则获取该家庭网关的能力信息。
其中,家庭网关的能力信息用于指示家庭网关是否具有组播能力。家庭网关的组播能力可以参见图2的相关描述。
可选的,家庭网关的能力信息可以是家庭网关连接网络后,向云服务器上报的。
可选的,云服务器可以通过与家庭网关之间的消息交互主动查询家庭网关的能力信息。
S1304、根据能力信息判断家庭网关是否具有组播能力。
如果家庭网关的能力信息指示家庭网关具有组播能力,则执行后续步骤。具体的,在图8所示实施例中,继续执行S801;在图10所示实施例中,继续执行S1001;在图12所示实施例中,继续执行S1201。
图14为本申请实施例适用的另一种系统架构图,图15为本申请实施例提供的智能设备的控制方法的又一种流程图。本实施例在图13所示实施例的基础上,提供了智能设备的控制方法的另一种实现方式,适用于图14所示场景。如图14所示,在组网方式1中,灯1、灯2和灯3通过家庭网关1与云服务器和终端设备通信,家庭网关1具有组播能力。在组网方式2中,灯4和灯5通过家庭网关2与云服务器和终端设备通信,家庭网关2不具有组播能力。在组网方式3中,灯6和灯7通过家庭网关3与云服务器和终端设备通信,家庭网关3具有组播能力。在组网方式4中,灯8未通过家庭网关与云服务器和终端设备通信。用户控制的多个智能设备,包括组网方式1~4中的至少两种。例如,一个示例为:用户控制家庭网关1下的灯1和灯2、家庭网关2下的灯4和灯5、家庭网关3下的灯6以及灯8。
在该场景中,执行图13所示方法时,S1302中可以确定用户控制的多个智能设备属于多个家庭网关,S1304中可以确定某些家庭网关不具有组播能力。针对具有组播能力的家庭网关,若该家庭网关下用户控制多个智能设备,则云服务器可以针对该家庭网关生成组控指令,具体参见图8~图12所示实施例中的组控指令。针对不具有组播能力的家庭网关,或者直接与云服务器通信的智能设备,则可以生成单控指令,可以参见图3~图5所示实施例中的单控指令。云服务器可以采用多线程并发的方式同时发送组控指令和单控指令,从而缩短发送指令的时间延迟,为用户控制的多个智能设备可以同时响应、设备状态同时变化缩短时间,提升了用户感受。
如图14和图15所示,本实施例提供的智能设备的控制方法,还可以包括:
S1501、云服务器根据控制信息生成控制指令。
具体的,控制指令可以包括组控指令、单控指令1、单控指令2、单控指令3和单控指令4。其中,组控指令针对家庭网关1下灯1和灯2组成的临时设备组,用于关闭灯1和灯2。由于家庭网关2不支持组播能力,单控指令1和单控指令2分别针对家庭网关2下的灯4和灯5,分别用于关闭灯4和灯5。单控指令3针对家庭网关3下的灯6,用于关 闭灯6。单控指令4针对直接与云服务器通信的灯8。
S1502、云服务器向家庭网关1发送组控指令。
S1503、云服务器向家庭网关2发送单控指令1。
S1504、云服务器向家庭网关2发送单控指令2。
S1505、云服务器向家庭网关3发送单控指令3。
S1506、云服务器向灯8发送单控指令4。
其中,S1502~S1506采用多线程并发的方式同时发送。
需要说明的是,在一些应用场景中,终端设备与家庭网关之间可以通信,不必通过云服务器,在该场景中,云服务器执行的相关操作可以在终端设备上执行,终端设备具有执行相关操作对应的硬件和/或软件模块。例如,在图8所示实施例中,手机可以根据控制信息确定用户待控制的智能设备,将用户待控制的智能设备确定为临时设备组,根据控制信息生成针对临时设备组的组控指令,并向家庭网关发送组控指令。例如,实现图10所示的建立临时设备组的过程,图11所示的删除临时设备组的过程,等。
可以理解的是,终端设备、云服务器和家庭网关为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对终端设备、云服务器和家庭网关进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。需要说明的是,本申请实施例中模块的名称是示意性的,实际实现时对模块的名称不做限定。
图16为本申请实施例提供的云服务器的一种结构示意图。如图16所示,本实施例提供的云服务器,可以包括:
接收模块1601,用于接收终端设备发送的控制信息;所述控制信息用于指示用户对多个智能设备进行控制;
意图识别模块1602,用于根据所述控制信息确定用户待控制的所述多个智能设备,将所述多个智能设备确定为临时设备组;其中,所述多个智能设备与同一个家庭网关通信;
临时设备组管理模块1603,用于根据所述控制信息生成针对所述临时设备组的组控指令;
发送模块1604,用于向与所述多个智能设备通信的所述家庭网关发送所述组控指令。
可选的,所述临时设备组管理模块1603在根据所述控制信息生成针对临时设备组的组控指令之前,还用于,生成临时设备组建立指令;所述临时设备组建立指令用于指示所述家庭网关建立所述临时设备组;
所述发送模块1604还用于,向所述家庭网关发送所述临时设备组建立指令;
所述接收模块1601还用于,接收所述家庭网关发送的临时设备组建立响应消息;
所述临时设备组管理模块1603还用于,响应于所述临时设备组建立响应消息,存储临时设备组信息;所述临时设备组信息包括所述临时设备组的标识信息、每个所述智能设备的标识信息和所述家庭网关的标识信息。
可选的,所述组控指令包括所述临时设备组的标识信息。
可选的,所述临时设备组建立指令包括所述多个智能设备中每个智能设备的标识信息。
可选的,所述临时设备组建立指令还包括所述临时设备组的标识信息。
可选的,所述临时设备组管理模块1603还用于:
生成临时设备组删除指令;所述临时设备组删除指令用于指示所述家庭网关删除所述临时设备组,所述临时设备组删除指令包括所述临时设备组的标识信息;
所述发送模块1604还用于,向所述家庭网关发送所述临时设备组删除指令。
可选的,所述接收模块1601还用于:
接收所述家庭网关发送的临时设备组删除响应消息;
所述临时设备组管理模块1603还用于,响应于所述临时设备组删除响应消息,删除所述临时设备组信息。
可选的,所述临时设备组管理模块1603还用于:
周期性获取本地存储的至少一组临时设备组信息;
根据所述至少一组临时设备组信息确定至少一个目标家庭网关以及每个所述目标家庭网关对应的临时设备组信息;
对于每个所述目标家庭网关,根据该目标家庭网关对应的临时设备组信息生成信息删除指令,所述信息删除指令用于指示该目标家庭网关删除对应的临时设备组,所述信息删除指令包括该目标家庭网关对应的每个临时设备组的标识信息;
所述发送模块1604还用于,向该目标家庭网关发送所述信息删除指令。
可选的,所述接收模块1601还用于,接收所述目标家庭网关发送的删除响应消息;
所述临时设备组管理模块1603还用于,响应于所述删除响应消息,删除所述目标家庭网关对应的临时设备组信息。
可选的,所述组控指令包括所述多个智能设备中每个智能设备的标识信息。
可选的,所述组控指令包括第一指令内容和每个所述智能设备的标识信息,所述第一指令内容为每个所述智能设备执行的指令内容。
可选的,所述组控指令包括每个所述智能设备分别对应的待执行指令;对于每个所述智能设备,所述待执行指令包括该智能设备的标识信息和第二指令内容,所述第二指令内容为该智能设备执行的指令内容。
可选的,所述控制信息包括下列中的至少一种:语音信息、视频信息、图像信息、文字信息或肢体动作信息。
本实施例提供的云服务器,用于执行本申请方法实施例中云服务器的相关操作,技术原理和技术效果相似,此处不再赘述。
图17为本申请实施例提供的终端设备的一种结构示意图。如图17所示,本实施例提供的终端设备,可以包括:
接收模块1701,用于接收用户的控制操作;所述控制操作用于所述用户控制多个智能设备;
处理模块1702,用于响应于所述控制操作,获取用户输入的控制信息;
发送模块1703,用于向云服务器发送所述控制信息。
可选的,所述控制操作包括下列中的至少一种:语音控制操作、肢体动作控制操作或在终端设备显示的界面上进行的操作。
可选的,所述控制信息包括下列中的至少一种:语音信息、视频信息、图像信息、文字信息或肢体动作信息。
本实施例提供的终端设备,用于执行本申请方法实施例中终端设备的相关操作,技术原理和技术效果相似,此处不再赘述。
图18为本申请实施例提供的家庭网关的一种结构示意图。如图18所示,本实施例提供的家庭网关,可以包括:发送模块1801、处理模块1802和接收模块1803。
发送模块1801,用于向其他设备发送数据。例如,向智能设备发送组控指令,向云服务器发送临时设备组建立响应消息、临时设备组删除响应消息或删除指令响应消息。
接收模块1803,用于从其他设备接收数据。例如,从云服务器接收组控指令、临时设备组建立指令、临时设备组删除指令或删除指令。
处理模块1802,用于建立临时设备组、删除临时设备组等。
本实施例提供的家庭网关,用于执行本申请方法实施例中家庭网关的相关操作,技术原理和技术效果相似,此处不再赘述。
图19为本申请实施例提供的设备的一种结构示意图,其示出了本申请实施例提供的设备的另一种结构,所述设备可以为终端设备、云服务器或家庭网关。如图19所示,该设备包括:处理器1901、接收器1902、发射器1903、存储器1904和总线1905。处理器1901包括一个或者多个处理核心,处理器1901通过运行软件程序以及模块,从而执行各种功能的应用以及信息处理。接收器1902和发射器1903可以实现为一个通信组件,该通信组件可以是一块基带芯片。存储器1904通过总线1905和处理器1901相连。存储器1904可用于存储至少一个程序指令,处理器1901用于执行至少一个程序指令,以实现上述实施例的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本领域技术人员可以理解,为了便于说明,图19仅示出了一个存储器和处理器。在实际的设备中,可以存在多个处理器和存储器。存储器也可以称为存储介质或者存储设备等,本申请实施例对此不做限制。
作为一种可选的实现方式,处理器可以包括基带处理器和中央处理器,基带处理器主要用于对通信数据进行处理,中央处理器主要用于执行软件程序,处理软件程序的数据。本领域技术人员可以理解,基带处理器和中央处理器可以集成在一个处理器中,也可以是各自独立的处理器,通过总线等技术互联。本领域技术人员可以理解,设备可以包括多个基带处理器以适应不同的网络制式,设备可以包括多个中央处理器以增强其处理能力,设备的各个部件可以通过各种总线连接。该基带处理器也可以表述为基带处理电路或者基带处理芯片。该中央处理器也可以表述为中央处理电路或者中央处理芯片。对通信协议以及 通信数据进行处理的功能可以内置在处理器中,也可以以软件程序的形式存储在存储器中,由处理器执行软件程序以实现基带处理功能。该存储器可以集成在处理器中,也可以独立在处理器之外。该存储器包括高速缓存Cache,可以存放频繁访问的数据/指令。
在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
在本申请实施例中,存储器可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SS)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,不限于此。
本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。本申请各实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,DWD)、或者半导体介质(例如,SSD)等。
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在设备运行时,使得所述设备执行上述实施例中的技术方案。其实现原理和技术效果与上述相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机可读存储介质,其上存储有程序指令,所述程序指令被设备执行时,使得所述设备执行上述实施例的技术方案。其实现原理和技术效果与上述相关实施例类似,此处不再赘述。
综上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (19)

  1. 一种智能设备的控制方法,其特征在于,包括:
    接收终端设备发送的控制信息;所述控制信息用于指示用户对多个智能设备进行控制;
    根据所述控制信息确定用户待控制的所述多个智能设备,将所述多个智能设备确定为临时设备组;其中,所述多个智能设备与同一个家庭网关通信;
    根据所述控制信息生成针对所述临时设备组的组控指令;
    向与所述多个智能设备通信的所述家庭网关发送所述组控指令。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述控制信息生成针对所述临时设备组的组控指令之前,还包括:
    生成临时设备组建立指令;所述临时设备组建立指令用于指示所述家庭网关建立所述临时设备组;
    向所述家庭网关发送所述临时设备组建立指令;
    接收所述家庭网关发送的临时设备组建立响应消息;
    响应于所述临时设备组建立响应消息,存储临时设备组信息;所述临时设备组信息包括所述临时设备组的标识信息、每个所述智能设备的标识信息和所述家庭网关的标识信息。
  3. 根据权利要求2所述的方法,其特征在于,所述组控指令包括所述临时设备组的标识信息。
  4. 根据权利要求2或3所述的方法,其特征在于,所述临时设备组建立指令包括所述多个智能设备中每个智能设备的标识信息。
  5. 根据权利要求4所述的方法,其特征在于,所述临时设备组建立指令还包括所述临时设备组的标识信息。
  6. 根据权利要求2-5中任一项所述的方法,其特征在于,所述向与所述多个智能设备通信的所述家庭网关发送所述组控指令之后,还包括:
    生成临时设备组删除指令;所述临时设备组删除指令用于指示所述家庭网关删除所述临时设备组,所述临时设备组删除指令包括所述临时设备组的标识信息;
    向所述家庭网关发送所述临时设备组删除指令。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    接收所述家庭网关发送的临时设备组删除响应消息;
    响应于所述临时设备组删除响应消息,删除所述临时设备组信息。
  8. 根据权利要求2-7中任一项所述的方法,其特征在于,所述方法还包括:
    周期性获取本地存储的至少一组临时设备组信息;
    根据所述至少一组临时设备组信息确定至少一个目标家庭网关以及每个所述目标家庭网关对应的临时设备组信息;
    对于每个所述目标家庭网关,根据该目标家庭网关对应的临时设备组信息生成信息删除指令,所述信息删除指令用于指示该目标家庭网关删除对应的临时设备组,所述信息删除指令包括该目标家庭网关对应的每个临时设备组的标识信息;
    向该目标家庭网关发送所述信息删除指令。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    接收所述目标家庭网关发送的删除响应消息;
    响应于所述删除响应消息,删除所述目标家庭网关对应的临时设备组信息。
  10. 根据权利要求1所述的方法,其特征在于,所述组控指令包括所述多个智能设备中每个智能设备的标识信息。
  11. 根据权利要求10所述的方法,其特征在于,所述组控指令包括第一指令内容和每个所述智能设备的标识信息,所述第一指令内容为每个所述智能设备执行的指令内容。
  12. 根据权利要求10所述的方法,其特征在于,所述组控指令包括每个所述智能设备分别对应的待执行指令;对于每个所述智能设备,所述待执行指令包括该智能设备的标识信息和第二指令内容,所述第二指令内容为该智能设备执行的指令内容。
  13. 根据权利要求1-12中任一项所述的方法,其特征在于,所述控制信息包括下列中的至少一种:语音信息、视频信息、图像信息、文字信息或肢体动作信息。
  14. 一种智能设备的控制方法,其特征在于,包括:
    接收用户的控制操作;所述控制操作用于所述用户控制多个智能设备;
    响应于所述控制操作,获取用户输入的控制信息;
    向云服务器发送所述控制信息。
  15. 根据权利要求14所述的方法,其特征在于,所述控制操作包括下列中的至少一种:语音控制操作、肢体动作控制操作或在终端设备显示的界面上进行的操作。
  16. 根据权利要求14或15所述的方法,其特征在于,所述控制信息包括下列中的至少一种:语音信息、视频信息、图像信息、文字信息或肢体动作信息。
  17. 一种云服务器,其特征在于,包括处理器、存储器和收发器,所述收发器用于与其他设备通信,所述处理器用于调用所述存储器中存储的程序,以执行如权利要求1-13中任一项所述的方法。
  18. 一种终端设备,其特征在于,包括处理器、存储器和收发器,所述收发器用于与其他设备通信,所述处理器用于调用所述存储器中存储的程序,以执行如权利要求14-16中任一项所述的方法。
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在设备上运行时,使得所述设备执行如权利要求1-13中任一项所述的方法,或执行如权利要求14-16中任一项所述的方法。
PCT/CN2021/138920 2020-12-30 2021-12-16 智能设备的控制方法、云服务器、终端设备和存储介质 WO2022143202A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011628001.2A CN114765565A (zh) 2020-12-30 2020-12-30 智能设备的控制方法、云服务器、终端设备和存储介质
CN202011628001.2 2020-12-30

Publications (1)

Publication Number Publication Date
WO2022143202A1 true WO2022143202A1 (zh) 2022-07-07

Family

ID=82258681

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/138920 WO2022143202A1 (zh) 2020-12-30 2021-12-16 智能设备的控制方法、云服务器、终端设备和存储介质

Country Status (2)

Country Link
CN (1) CN114765565A (zh)
WO (1) WO2022143202A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379309A (zh) * 2022-08-16 2022-11-22 万物互动(广东)技术有限公司 消毒设备控制方法、电子设备及计算机可读存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117666370A (zh) * 2022-08-29 2024-03-08 华为技术有限公司 一种智能设备控制方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577534A (zh) * 2014-10-15 2016-05-11 珠海格力电器股份有限公司 家庭智能网关及智能家居系统
CN105807617A (zh) * 2014-12-30 2016-07-27 西安Tcl软件开发有限公司 智能家居设备的控制方法及装置
CN107154868A (zh) * 2017-04-24 2017-09-12 北京小米移动软件有限公司 智能设备控制方法及装置
US20200064797A1 (en) * 2018-08-23 2020-02-27 Johnson Controls Technology Company System and method for distributed device configuration and authorization
CN111596562A (zh) * 2020-05-15 2020-08-28 杭州涂鸦信息技术有限公司 设备控制方法、云端设备及计算机存储介质

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202750280U (zh) * 2012-07-11 2013-02-20 苏州市华工照明科技有限公司 基于物联网的智慧照明管理云系统
CN107896179B (zh) * 2016-10-01 2021-04-09 杭州鸿雁智能科技有限公司 一种家居设备的群组控制方法
CN108572554A (zh) * 2017-03-07 2018-09-25 中移(杭州)信息技术有限公司 一种智能家居控制系统、方法及相关设备
CN110392349A (zh) * 2018-04-23 2019-10-29 九阳股份有限公司 一种智能设备分组方法和移动终端
CN108600061A (zh) * 2018-05-03 2018-09-28 中南大学 智能家居系统
CN108693779B (zh) * 2018-06-08 2021-10-01 广州市威士丹利智能科技有限公司 智能家居控制系统及方法
CN111315074A (zh) * 2020-03-09 2020-06-19 淮安市蓝控电子科技有限公司 一种基于无线通讯的教室智能化照明系统
CN111800923B (zh) * 2020-06-05 2023-05-12 深圳市晟瑞科技有限公司 一种灯光控制方法、装置、可读存储介质及终端设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577534A (zh) * 2014-10-15 2016-05-11 珠海格力电器股份有限公司 家庭智能网关及智能家居系统
CN105807617A (zh) * 2014-12-30 2016-07-27 西安Tcl软件开发有限公司 智能家居设备的控制方法及装置
CN107154868A (zh) * 2017-04-24 2017-09-12 北京小米移动软件有限公司 智能设备控制方法及装置
US20200064797A1 (en) * 2018-08-23 2020-02-27 Johnson Controls Technology Company System and method for distributed device configuration and authorization
CN111596562A (zh) * 2020-05-15 2020-08-28 杭州涂鸦信息技术有限公司 设备控制方法、云端设备及计算机存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379309A (zh) * 2022-08-16 2022-11-22 万物互动(广东)技术有限公司 消毒设备控制方法、电子设备及计算机可读存储介质
CN115379309B (zh) * 2022-08-16 2023-10-20 万物互动技术股份有限公司 消毒设备控制方法、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN114765565A (zh) 2022-07-19

Similar Documents

Publication Publication Date Title
WO2022143202A1 (zh) 智能设备的控制方法、云服务器、终端设备和存储介质
US10003654B2 (en) Universal internet of things (IoT) smart translator
JP5607067B2 (ja) 複数のアプリケーションによる制御をサポートする無線アクセスポイント
US10783929B2 (en) Managing playback groups
US20160164933A1 (en) Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system
US9906600B2 (en) Method and apparatus for initiating a high-power connection via a low-power interface
WO2016169231A1 (zh) 一种基于蓝牙组建稳态微微网的方法及其系统
US11974338B2 (en) Pairing devices by proxy
US20220232276A1 (en) Remotely Controlling Playback Devices
JP7170707B2 (ja) 同様の照明サービスを提供する照明デバイスのグループに関するデューティスケジュールの決定
WO2021174536A1 (zh) 一种通信方法及相关装置
WO2016095388A1 (zh) 一种媒体文件当前播放位置的共享方法
WO2023202678A1 (zh) 设备控制方法、装置、电子设备及存储介质
US20190306054A1 (en) Contextual Routing of Media Data
US20210084089A1 (en) Audio streaming from host bluetooth device to multiple receiving bluetooth devices
WO2022143339A1 (zh) 跨网段发现的方法、路由设备及系统
CN115883572A (zh) 外设共享方法及装置
WO2022068553A1 (zh) 车辆通信方法、装置、计算机可读介质及电子设备
US11082808B1 (en) Multicast traffic management
WO2024022256A1 (zh) 一种设备间连接的管理方法、设备及系统
US11706278B2 (en) Prioritized MSRP transmissions to reduce traffic interruptions
WO2024103418A1 (zh) 音频控制方法及装置
US11109209B2 (en) Bluetooth device, method of operating bluetooth device, and non-transitory computer readable storage medium
CN116634212A (zh) 投屏管理方法、装置、设备及存储介质
KR20230144074A (ko) 로컬 클라우드를 위한 근거리 통신망(lan)과 함께 논스톱 컨트롤러를 사용하는 방법 및 장치

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 1205 DATED 08/11/2023)