WO2021218442A1 - Communication method, method for controlling internet of things device, and electronic device - Google Patents

Communication method, method for controlling internet of things device, and electronic device Download PDF

Info

Publication number
WO2021218442A1
WO2021218442A1 PCT/CN2021/080423 CN2021080423W WO2021218442A1 WO 2021218442 A1 WO2021218442 A1 WO 2021218442A1 CN 2021080423 W CN2021080423 W CN 2021080423W WO 2021218442 A1 WO2021218442 A1 WO 2021218442A1
Authority
WO
WIPO (PCT)
Prior art keywords
internet
things
things device
parameters
target
Prior art date
Application number
PCT/CN2021/080423
Other languages
French (fr)
Chinese (zh)
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 WO2021218442A1 publication Critical patent/WO2021218442A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • This application relates to the field of smart home, artificial intelligence, and electronic equipment, and more specifically, to a communication method, a method for controlling an Internet of Things device, and an electronic device.
  • a supplier of a smart home product will establish a private Internet of Things (IOT) communication protocol, so that the electrical appliances produced by the supplier can communicate through the private Internet of Things communication protocol.
  • IOT Internet of Things
  • the supplier can provide a multi-appliance communication method, which can use the private Internet of Things communication protocol to quickly establish the connection between the multiple appliances provided by the supplier, so that the user can use the multi-appliance provided by the supplier Communication method to control the multiple electrical appliances.
  • This application provides a communication method, a method for controlling an Internet of Things device, and an electronic device, with the purpose of providing a new device communication mode, which can have relatively higher interaction flexibility.
  • a communication method including: controlling a device to obtain multiple device registration information, the multiple device registration information corresponding to multiple IoT devices, and the device registration information is used to indicate the corresponding IoT device M input parameters and/or N output parameters of, where M is a positive integer, and N is a positive integer; the control device obtains a target strategy, and the target strategy is used to indicate that if a preset condition is established, the target The device executes a target operation; the control device determines that a first Internet of Things device is the target device among the plurality of Internet of Things devices according to the target strategy, and the first Internet of Things device is used to execute the target operation The control device sends first communication instruction information to the first Internet of Things device, where the first communication instruction information is used to instruct the first Internet of Things device to communicate with other things other than the first Internet of Things device Communication with networked devices.
  • the data information that can be transmitted between IoT devices is obtained by obtaining device registration information, which in turn can instruct multiple IoT devices to establish data communication services.
  • policies can also be used to indicate communication between multiple IoT devices, which improves the convenience of controlling communication between IoT devices.
  • M input parameters may include temperature parameters, humidity parameters, time parameters, event parameters, etc.
  • N output parameters may include temperature parameters, humidity parameters, time parameters, event parameters, and so on.
  • M input parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, etc.
  • N output parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
  • M input parameters may include audio parameters, time parameters, event parameters, etc.
  • N output parameters may include audio parameters, time parameters, event parameters, and so on.
  • the M input parameters can include time parameters, event parameters, etc.
  • the N output parameters can include time parameters, event parameters, and so on.
  • the M input parameters may include temperature parameters, time parameters, event parameters, etc.
  • the N output parameters may include time parameters, event parameters, and so on.
  • M input parameters may include brightness parameters, time parameters, event parameters, etc.
  • N output parameters may include brightness parameters, time parameters, event parameters, and so on.
  • the M input parameters may include event parameters, etc.
  • the N output parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
  • the M input parameters may include event parameters, etc.
  • the N output parameters may include time parameters, event parameters, and so on.
  • the M input parameters may include event parameters, etc.
  • the N output parameters may include temperature parameters, humidity parameters, and so on.
  • the provider of the target strategy may be, for example, a third-party strategy provider, or may also be provided by any brand supplier of the Internet of Things device.
  • the embodiment of the present application may not limit the provider of the target strategy.
  • the target strategy includes preset conditions, target operations, and target device information
  • the control device determines the first Internet of Things device among the plurality of Internet of Things devices according to the target strategy, including: The control device determines the first Internet of Things device from the plurality of Internet of Things devices according to at least one of the target operation, the preset condition, and the information of the target device.
  • the first communication indication information is used to instruct the first Internet of Things device to communicate with the second Internet of Things device, and whether the preset condition is established is determined by h
  • the method further includes: the control device executes the communication between the plurality of Internet of Things devices according to the preset conditions.
  • a second Internet of Things device is determined in, the second Internet of Things device has the ability to provide values of the h parameters, and h is a positive integer.
  • the control device is the second Internet of Things device that the first Internet of Things device determines to provide the first Internet of Things device with information about h parameters, which can facilitate the process of establishing a wireless communication connection for the first Internet of Things device. That is to say, the first Internet of Things device can directly establish a wireless communication connection with the second Internet of Things device according to the instructions of the control device, and the first Internet of Things device does not need to independently search for a qualified Internet of Things device.
  • the first communication indication information includes device information of the second Internet of Things device.
  • the first communication indication information includes K pieces of device information of K pieces of equipment to be connected, and the K pieces of equipment information correspond to the K pieces of equipment to be connected one-to-one, and the K pieces of equipment to be connected include the first piece of information.
  • the Internet of Things equipment is
  • the first communication indication information is used to instruct the first Internet of Things device to find: an Internet of Things device that provides the values of the h parameters, or , The Internet of Things device that determines whether the preset condition is established, or, if the preset condition is established, the Internet of Things device that instructs the first Internet of Things device to perform the target operation, and h is a positive integer.
  • the input for the first Internet of Things device to execute the target operation may include parameter input, condition input, and operation input.
  • the communication data between IoT devices can be relatively flexible.
  • the control device can flexibly instruct multiple Internet of Things devices to establish wireless communication connections according to the data that the Internet of Things devices can process.
  • the first communication indication information includes indication information of the h parameters or indication information of the preset condition.
  • the multiple Internet of Things devices may be provided by multiple vendors of different brands.
  • the device registration information further includes at least one of the following: a wireless communication protocol and an Internet of Things communication protocol.
  • the communication protocols and Internet of Things communication protocols that can be supported by the multiple Internet of Things devices can be different .
  • the control device By providing the control device with the protocol supported by the IoT device in advance, it is conducive to the convenience of communication between the subsequent IoT devices.
  • the method further includes: displaying tabs and/or icons related to the target strategy on a display screen.
  • the target strategy can be displayed to the user in a vivid and vivid way such as icons and tabs.
  • the user can directly use the strategy provided by the third party, which helps to reduce the number of manual input of the strategy by the user.
  • the related content includes at least one of the following: a tab, an application icon, and an application search box, and the application includes one or more of the policies.
  • the application includes at least one of the following: a smart morning wake application, a comfortable bathroom application, an intelligent user sensing application, an application for intelligently matching user preferences, and an application for quickly identifying a user's identity.
  • the method further includes: the control device stores a plurality of policy operation documents, and the plurality of policy operation documents corresponds to a plurality of policies in a one-to-one manner, the The multiple strategies include the target strategy; the control device detects the input keyword, and the keyword is used to indicate at least one of the following: the title of the strategy operation document, the type of the execution device, and the parameters in the execution condition , The type of operation to be performed; the control device determines a target strategy operation document in the plurality of strategy operation documents according to the keyword, and the target strategy operation document corresponds to the target strategy; the control device sets the target The policy operation document is fed back to the user.
  • the user can quickly search for the target strategy in the application mall.
  • the policy operation document may be, for example, an application package of a smart application.
  • the policy operation document may be, for example, a summary of a smart application, and the summary includes information such as a title, device type, device identification, parameters, conditions, and operations corresponding to the smart application.
  • the h parameters include at least one of the following: temperature parameters, humidity parameters, time parameters, event parameters, audio parameters, image parameters, video parameters, and brightness parameters .
  • the communication data between the Internet of Things devices can be relatively rich, and the communication process between the Internet of Things devices can be relatively flexible.
  • the first Internet of Things device is at least one of the following: a TV, a smart air conditioner, a smart speaker, a humidity thermometer, a curtain remote control, a smart clock, a smart water heater, a smart camera device, and a smart lamp.
  • the brand supplier of the first Internet of Things device is different from the brand supplier of the second Internet of Things device.
  • both the first Internet of Things device and the second Internet of Things device support an open Internet of Things communication protocol.
  • a communication method including: controlling a device to obtain multiple device registration information, the multiple device registration information corresponding to multiple IoT devices, and the device registration information is used to indicate the corresponding IoT device M input parameters and/or N output parameters of, M is a positive integer, and N is a positive integer; the control device obtains a target strategy, and the target strategy is used to indicate that if a preset condition is established, the target The device executes the target operation, and whether the preset condition is satisfied is determined by h parameters, and h is a positive integer; the control device determines the second Internet of Things device among the plurality of Internet of Things devices according to the target strategy, so The second Internet of Things device has the ability to provide the values of the h parameters; the control device sends second communication instruction information to the second Internet of Things device, and the second communication instruction information is used to indicate the The second Internet of Things device communicates with other Internet of Things devices other than the second Internet of Things device.
  • the data information that can be transmitted between IoT devices is obtained by obtaining device registration information, which in turn can instruct multiple IoT devices to establish data communication services.
  • policies can also be used to indicate communication between multiple IoT devices, which improves the convenience of controlling communication between IoT devices.
  • the method before the control device determines the second Internet of Things device among the plurality of Internet of Things devices according to the target strategy, the method further It includes: the control device determines the h parameters according to the preset condition.
  • the second communication indication information is used to instruct the second Internet of Things device to communicate with the first Internet of Things device.
  • the second communication indication information is used to instruct the second Internet of Things device to find: an Internet of Things device that receives the values of the h parameters, or ,
  • the Internet of Things device that receives the condition establishment indication information, the condition establishment indication information is used to indicate that the preset condition is satisfied, or the Internet of Things device that receives operation indication information, the operation indication information is used to instruct the execution of the target operate.
  • the output of the second Internet of Things device may include parameter output, condition output, and operation output.
  • the communication data between IoT devices can be relatively flexible.
  • the control device can flexibly instruct multiple Internet of Things devices to establish wireless communication connections according to the data that the Internet of Things devices can process.
  • the device registration information further includes at least one of the following: a wireless communication protocol and an Internet of Things communication protocol.
  • the communication protocols and Internet of Things communication protocols that can be supported by the multiple Internet of Things devices can be different .
  • the control device By providing the control device with the protocol supported by the IoT device in advance, it is conducive to the convenience of communication between the subsequent IoT devices.
  • the method further includes: displaying tabs and/or icons related to the target strategy on a display screen.
  • the target strategy can be displayed to the user in a vivid and vivid way such as icons and tabs.
  • the user can directly use the strategy provided by the third party, which helps to reduce the number of manual input of the strategy by the user.
  • the method further includes: the control device stores a plurality of policy operation documents, and the plurality of policy operation documents corresponds to a plurality of policies in a one-to-one manner, the The multiple strategies include the target strategy; the control device detects the input keyword, and the keyword is used to indicate at least one of the following: the title of the strategy operation document, the type of the execution device, and the parameters in the execution condition , The type of operation to be performed; the control device determines a target strategy operation document among the plurality of strategy operation documents according to the keyword, and the target strategy operation document corresponds to the target strategy; The target strategy operation document is fed back to the user.
  • the user can quickly search for the target strategy in the application mall.
  • the h parameters include at least one of the following: temperature parameters, humidity parameters, time parameters, event parameters, audio parameters, image parameters, video parameters, and brightness parameters .
  • the communication data between the Internet of Things devices can be relatively rich, and the communication process between the Internet of Things devices can be relatively flexible.
  • a communication method including: a first Internet of Things device sends a first broadcast message according to a target strategy, where the target strategy is used to instruct the target device to perform a target operation when a preset condition is established , Whether the preset condition is satisfied is determined by h parameters, where h is a positive integer, and the first broadcast message is used to indicate any one of the following: search for IoT devices that provide the values of the h parameters, and search for judgment
  • the Internet of Things device for which the preset condition is established is searched for an Internet of Things device that instructs the first Internet of Things device to perform a target operation when the preset condition is established; the first Internet of Things device receives the second Internet of Things device A first target feedback message sent by an Internet of Things device, where the first target feedback message is a feedback for the first broadcast message; the first Internet of Things device communicates with the second target feedback message according to the first target feedback message.
  • IoT devices communicate.
  • the input for the first Internet of Things device to execute the target operation may include parameter input, condition input, and operation input.
  • the communication data between IoT devices can be relatively flexible.
  • the Internet of Things device can relatively flexibly instruct multiple Internet of Things devices to establish wireless communication connections according to instructions from the control device.
  • the first Internet of Things device sending a first broadcast message according to the target strategy includes: the first Internet of Things device sends the first broadcast message according to the target strategy and according to an open Internet of Things communication protocol;
  • An Internet of Things device receiving a first target feedback message sent by a second Internet of Things device includes: the first Internet of Things device receives a first target feedback message sent by the second Internet of Things device according to the open Internet of Things communication protocol;
  • the first Internet of Things device communicating with the second Internet of Things device according to the first target feedback message includes: the first Internet of Things device according to the open Internet of Things communication protocol, and according to the first Internet of Things communication protocol.
  • a target feedback message communicates with the second Internet of Things device.
  • the method further includes: the first Internet of Things device sends M of the first Internet of Things device to a control device Input parameters and/or N output parameters, M is a positive integer, and N is a positive integer; the first Internet of Things device receives the target strategy sent by the control device.
  • a communication method including: a second Internet of Things device sends a second broadcast message according to second communication instruction information, wherein: the second communication instruction information is used to indicate the second Internet of Things When the device sends the values of the h parameters, the second broadcast message is used to find the device that receives the values of the h parameters, and h is a positive integer, and the second communication indication information is used to indicate all In the case where the second Internet of Things device sends the condition establishment indication information, the second broadcast message is used to find a device that receives the condition establishment indication information, and the condition establishment indication information is used to indicate that the preset condition is established.
  • the second communication indication information is used to indicate that when a preset condition is established, the second Internet of Things device sends operation indication information, and the second broadcast message is used to find a device that receives the operation indication information, so
  • the operation instruction information is used to instruct the execution of the target operation; the second Internet of Things device receives a second target feedback message sent by the first Internet of Things device, and the second target feedback message is for the second broadcast message Feedback; the second Internet of Things device communicates with the first Internet of Things device according to the second target feedback message.
  • the input for the first Internet of Things device to execute the target operation may include parameter input, condition input, and operation input.
  • the communication data between IoT devices can be relatively flexible.
  • the Internet of Things device can relatively flexibly instruct multiple Internet of Things devices to establish wireless communication connections according to instructions from the control device.
  • the second Internet of Things device sending a second broadcast message according to the second communication instruction information includes: the second Internet of Things device sends the second broadcast message according to the Open Internet of Things communication protocol and according to the second communication instruction information.
  • Two broadcast messages; the second Internet of Things device receiving the second target feedback message sent by the first Internet of Things device includes: the second Internet of Things device receives the first Internet of Things device according to the open Internet of Things communication protocol.
  • the second target feedback message of the Internet of Things; the second Internet of Things device communicating with the first Internet of Things device according to the second target feedback message includes: the second Internet of Things device according to the open Internet of Things communication protocol , And communicate with the first Internet of Things device according to the second target feedback message.
  • the method further includes: the second Internet of Things device sends the second Internet of Things device to the control device M input parameters and/or N output parameters of, M is a positive integer, and N is a positive integer; the second Internet of Things device receives the second communication instruction information sent by the control device.
  • a method for controlling an Internet of Things device including: a first Internet of Things device obtains first indication information, where the first indication information is used to instruct to perform a target operation when a preset condition is established; The first Internet of Things device receives h parameter values sent by the second Internet of Things device according to the open Internet of Things communication protocol, where the h parameters are specific values of h parameters, and the h parameters take values One-to-one correspondence with the h parameters, whether the preset condition is satisfied is determined by the h parameters, and h is a positive integer; the first Internet of Things device determines the value of the h parameters according to the Whether a preset condition is established; if the preset condition is established, the first Internet of Things device executes the target operation.
  • the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices.
  • the execution-side device stores policy-related information, and other devices trigger the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
  • the value can be, for example, a numeric value, text, function identifier, binary value, code, etc.
  • the first indication information corresponds to a target strategy
  • the target strategy is used to indicate that when the preset condition is established, the target device executes all In the target operation, the first Internet of Things device corresponds to the target device.
  • the first Internet of Things device can directly obtain the first policy, and can have a relatively simple data transmission process.
  • the first Internet of Things device acquiring first indication information includes: the first Internet of Things device receiving a control device, the second Internet of Things device, or The first indication information sent by the server.
  • the source of the first indication information may be relatively flexible.
  • the method before the first Internet of Things device receives h parameter values sent by the second Internet of Things device according to the open Internet of Things communication protocol, the method further The method includes: the first Internet of Things device sends first communication information to the second Internet of Things device according to the open Internet of Things communication protocol, where the first communication information is used to indicate that the first Internet of Things device needs to be Provide the values of the h parameters.
  • the first Internet of Things may instruct the second Internet of Things device to provide values of h parameters.
  • the first communication information includes indication information of the preset condition
  • the second Internet of Things device before the second Internet of Things device sends h parameter values to the first Internet of Things device, the method further includes: The second Internet of Things device determines the values of the h parameters according to the preset condition.
  • the second Internet of Things device sending h parameter values to the first Internet of Things device includes: when the preset condition is established, the second Internet of Things device sends the first Internet of Things device to the first Internet of Things device.
  • An Internet of Things device sends the h parameter values.
  • the first communication information further includes periodic transmission instruction information, and the periodic transmission instruction information is used to instruct the second Internet of Things device to send the h pieces of information to the first Internet of Things device according to a preset period. Parameter value.
  • whether the preset condition is satisfied is determined by the h parameters and the s parameters, and the s parameters are different from the h parameters.
  • the method further includes: the first Internet of Things device receives the value of the s parameter sent by the third Internet of Things device , The value of the s parameter is a specific value of the s parameter, and the value of the s parameter corresponds to the s parameters one-to-one; the first Internet of Things device takes a value according to the h parameters , Determining whether the preset condition is established includes: the first Internet of Things device determines whether the preset condition is established according to the values of the h parameters and the values of the s parameters.
  • the first Internet of Things device may receive parameter values sent by multiple Internet of Things devices.
  • it is relatively convenient to establish a communication network between IoT devices according to a strategy, and it is also easier to implement a relatively complex operation chain.
  • the method further includes: the first Internet of Things device sending the execution result of the target operation to the fourth Internet of Things device to instruct the first Internet of Things device 4.
  • the Internet of Things device performs other operations corresponding to the target operation.
  • the first IoT device can trigger the operation of the next-level IoT device.
  • it is relatively convenient to establish a communication network between IoT devices according to a strategy, and it is also easier to implement a relatively complex operation chain.
  • the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
  • the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
  • the Internet of Things communication protocol may also define an association relationship between conditions and parameters.
  • the Internet of Things communication protocol may also define an association relationship between the conditions and the operation instruction information.
  • the Internet of Things communication protocol may also define the association relationship between the operation instruction information and the device information.
  • the open IoT communication protocol is the HiLink communication protocol.
  • the method further includes: the first Internet of Things device sends M input parameters of the first Internet of Things device to the control device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the first Internet of Things device receives first communication indication information sent by the control device, and the first communication indication information is used to indicate the first An Internet of Things device communicates with the second Internet of Things device.
  • a method for controlling an Internet of Things device including: a first Internet of Things device acquiring first instruction information, the first instruction information being used to instruct to perform a target operation when a preset condition is established; The first Internet of Things device receives the condition establishment indication information sent by the second Internet of Things device according to the open Internet of Things communication protocol, where the condition establishment indication information is used to indicate that the preset condition is established; the first Internet of Things device is based on The condition establishment indication information and the first indication information execute the target operation.
  • the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices.
  • the execution-side device stores policy-related information, and other devices trigger the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
  • the method further includes: the first Internet of Things device sends M input parameters of the first Internet of Things device to the control device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the first Internet of Things device receives first communication indication information sent by the control device, and the first communication indication information is used to indicate the first An Internet of Things device communicates with the second Internet of Things device.
  • the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
  • the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
  • the open IoT communication protocol is the HiLink communication protocol.
  • a method for controlling an Internet of Things device including: a second Internet of Things device acquiring second indication information, the second instruction information being used to instruct the second Internet of Things device to determine the preset condition Whether it is established, and send the judgment result of whether the preset condition is established to the first Internet of Things device; in the case that the preset condition is established, the second Internet of Things device sends the The first Internet of Things device sends condition establishment indication information, where the condition establishment indication information is used to indicate that the preset condition is established.
  • the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices.
  • the execution-side device stores policy-related information, and other devices trigger the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
  • the method further includes: the second Internet of Things device sending M input parameters of the second Internet of Things device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the second Internet of Things device receives second communication indication information sent by the control device, and the second communication indication information is used to indicate the first 2.
  • the Internet of Things device communicates with the first Internet of Things device.
  • the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
  • the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
  • the open IoT communication protocol is the HiLink communication protocol.
  • a method for controlling an Internet of Things device including: a second Internet of Things device acquiring second indication information, the second instruction information being used to instruct the second Internet of Things device to determine the preset condition Whether it is established; the second Internet of Things device receives second communication information sent by the first Internet of Things device, where the second communication information is used to indicate that the first Internet of Things device needs to be provided with the judgment result of the preset condition.
  • the second Internet of Things device sends conditions to the first Internet of Things device through an open Internet of Things communication protocol if the preset conditions are established according to the second communication information and the second instruction information Establishment indication information, where the condition establishment indication information is used to indicate the establishment of the preset condition.
  • the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices.
  • the execution-side device stores policy-related information, and other devices trigger the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
  • the method further includes: the second Internet of Things device sending M input parameters of the second Internet of Things device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the second Internet of Things device receives second communication indication information sent by the control device, and the second communication indication information is used to indicate the first 2.
  • the Internet of Things device communicates with the first Internet of Things device.
  • the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
  • the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
  • the open IoT communication protocol is the HiLink communication protocol.
  • a method for controlling an Internet of Things device including: a second Internet of Things device acquires third indication information, where the third indication information is used to indicate that the target device is instructed when the preset condition is established Perform a target operation; the second Internet of Things device determines that the target device is the first Internet of Things device according to the third instruction information; when the preset conditions are established, the second Internet of Things device An Internet of Things communication protocol is opened, and operation instruction information is sent to the first Internet of Things device, where the operation instruction information is used to instruct the first Internet of Things device to perform the target operation.
  • the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices.
  • the non-execution-side device stores policy-related information, and the non-execution-side device triggers the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
  • the method further includes: the second Internet of Things device sends M input parameters of the second Internet of Things device to the control device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the second Internet of Things device receives second communication indication information sent by the control device, and the second communication indication information is used to indicate the first 2.
  • the Internet of Things device communicates with the first Internet of Things device.
  • the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
  • the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
  • the open IoT communication protocol is the HiLink communication protocol.
  • an electronic device for executing the method in any one of the foregoing first to ninth aspects.
  • an electronic device including: a memory for storing a program; a processor for executing the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to Perform the method in any one of the foregoing first aspect to the ninth aspect.
  • an electronic device including: a module for executing the method in any one of the foregoing first aspect to the ninth aspect.
  • a computer-readable medium stores program code for device execution.
  • the program code includes method.
  • a computer program product containing instructions is provided.
  • the computer program product runs on a computer, the computer executes the method in any one of the foregoing first to ninth aspects.
  • a chip in a fifteenth aspect, includes a processor and a data interface.
  • the processor reads instructions stored in a memory through the data interface, and executes any one of the first aspect to the ninth aspect. One way to achieve this.
  • the chip may further include a memory in which instructions are stored, and the processor is configured to execute instructions stored on the memory.
  • the processor is configured to execute the method in any one of the implementation manners of the first aspect to the ninth aspect.
  • Figure 1 is a schematic diagram of the hardware structure of an electronic device.
  • Figure 2 is a schematic diagram of the software structure of an electronic device.
  • Figure 3 is an application scenario for multi-device communication.
  • Figure 4 is a communication system for multi-device communication.
  • Fig. 5 is a communication system for multi-device communication provided by an embodiment of the present application.
  • Fig. 6 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • Fig. 10 is a graphical user interface of a smart application mall provided by an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of a method for controlling an Internet of Things device provided by an embodiment of the present application.
  • FIG. 12 is a communication system for communication of multiple Internet of Things devices provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of communication between multiple Internet of Things devices provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of communication between multiple Internet of Things devices provided by an embodiment of the present application.
  • FIG. 15 is a schematic flowchart of a method for controlling an Internet of Things device according to an embodiment of the present application.
  • FIG. 16 is a schematic flowchart of a method for controlling an Internet of Things device provided by an embodiment of the present application.
  • FIG. 17 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 18 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 19 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 20 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 21 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 22 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 23 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the sentences “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized.
  • the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, a video player, and the like.
  • portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like.
  • the above-mentioned electronic devices may not be portable electronic devices, but desktop computers, TVs (or smart screens), notebook computers, smart air conditioners, smart speakers, room temperature meters, hygrometers, Humidity thermometer, curtain remote control machine, smart clock, smart water heater, smart camera device, smart lamp, refrigerator, power switch, electric fan, smart humidifier, air purifier, etc.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, button 190, camera 193, display 194, and subscriber identification module (SIM) card Interface 195 and so on.
  • SIM subscriber identification module
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • different processing units may be independent components, or may be integrated in one or more processors.
  • the electronic device 101 may also include one or more processors 110.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. In this way, repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 101 in processing data or executing instructions is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transceiver (universal asynchronous transceiver) interface.
  • asynchronous receiver/transmitter, UART) interface mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM card interface, and/or USB interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transfer data between the electronic device 101 and the device.
  • the USB interface 130 can also be used to connect earphones and play audio through the earphones.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode
  • FLED flexible light-emitting diode
  • mini light-emitting diode MiniLED
  • micro light-emitting diode MicroLED
  • micro organic light-emitting diode Micro-organic light-emitting diode, Micro-OLED
  • QLED quantum dot light-emitting diode
  • the mobile terminal 100
  • the display screen 194 of the electronic device 100 may be a flexible screen.
  • the flexible screen has attracted much attention due to its unique characteristics and great potential.
  • flexible screens have the characteristics of strong flexibility and bendability, can provide users with new communication methods based on bendable characteristics, and can meet more users' needs for electronic devices.
  • the foldable display screen on the electronic device can be switched between a small screen in a folded configuration and a large screen in an unfolded configuration at any time. Therefore, users use the split screen function on electronic devices equipped with foldable display screens more and more frequently.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera 193 through the lens, and the light signal is converted into an electrical signal. The photosensitive element of the camera 193 transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or more cameras 193.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can execute the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 101 to execute the off-screen display method provided in some embodiments of the present application, as well as various applications and data processing.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more applications (such as photo galleries, contacts, etc.).
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), and the like.
  • the processor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 to cause the electronic device 101 to execute the instructions provided in the embodiments of the present application.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the schematic diagram of the hardware structure of the electronic device 100 shown in FIG. 1 may be a schematic diagram of the hardware structure of a portable electronic device, a desktop computer, a TV, a notebook computer, and the like.
  • the hardware structure may be different from that shown in Figure 1.
  • the smart air conditioner may include a processor 110, a wireless communication module 160, a temperature sensor, a refrigeration system, and a display screen 194, for example.
  • the wireless communication module 160 of the smart air conditioner may be used to receive instruction information from other devices.
  • the processor 110 of the smart air conditioner can run a room temperature adjustment program and process instruction information sent by other devices.
  • Smart air conditioners can operate a refrigeration system to lower the room temperature.
  • the display screen 194 of the smart air conditioner can display the room temperature specified by the user and the like.
  • the smart air conditioner can determine whether the refrigeration system needs to be operated based on the room temperature detected by the temperature sensor. When the room temperature reaches or falls below the room temperature specified by the user, the smart air conditioner can suspend the operation of the refrigeration system. When the room temperature is higher than the room temperature specified by the user, the smart air conditioner can operate the refrigeration system.
  • the smart speaker may include a processor 110, a wireless communication module 160, a speaker 170A, and a microphone 170C, for example.
  • the wireless communication module 160 of the smart speaker can be used to communicate data with other devices.
  • the processor 110 of the smart speaker can run an audio playback program to drive the speaker 170A to play audio.
  • the audio may be, for example, audio data received through the wireless communication module 160 and sent by other devices.
  • the processor 110 of the smart speaker can also run a recording program to drive the microphone 170C to record audio.
  • the smart speaker can send the recorded audio data to other devices through the wireless communication module 160.
  • the smart camera device may include a processor 110, a wireless communication module 160, a camera 193, and a microphone 170C, for example.
  • the wireless communication module 160 of the smart camera device can be used to communicate data with other devices.
  • the processor 110 of the smart camera device can run a video shooting program to drive the camera 193 to capture image information, and drive the microphone 170C to record audio information.
  • the smart camera device can synthesize the captured image information and audio information into video data, and send the video data to other devices through the wireless communication module 160.
  • the room temperature meter may include a processor 110, a wireless communication module 160, a temperature sensor, and a display screen 194, for example.
  • the processor 110 of the room temperature meter can drive the temperature sensor to detect the room temperature, and send the room temperature to other devices through the wireless communication module 160.
  • the display screen 194 of the room temperature meter can display the current room temperature detected by the temperature sensor.
  • the hygrometer may include a processor 110, a wireless communication module 160, a humidity sensor, and a display screen 194, for example.
  • the processor 110 of the hygrometer can drive the humidity sensor to detect the indoor humidity, and send the indoor humidity to other devices through the wireless communication module 160.
  • the display screen 194 of the room temperature meter can display the current humidity detected by the humidity sensor.
  • the humidity thermometer may include a processor 110, a wireless communication module 160, a temperature sensor, a humidity sensor, and a display screen 194, for example.
  • the processor 110 of the humidity thermometer can drive the temperature sensor to detect the room temperature, and send the room temperature to other devices through the wireless communication module 160.
  • the processor 110 of the humidity thermometer may also drive the humidity sensor to detect indoor humidity, and send the indoor humidity to other devices through the wireless communication module 160.
  • the display screen 194 of the humidity thermometer can display the current room temperature detected by the temperature sensor and the current humidity detected by the humidity sensor.
  • the curtain remote control machine may include a processor 110, a wireless communication module 160, and a motor, for example.
  • the processor 110 of the curtain remote control machine may include a program for driving a motor so that the curtain can be opened or closed.
  • the curtain remote control machine can receive the instruction information sent by other devices through the wireless communication module 160.
  • the processor 110 of the curtain remote control machine can run a program for driving the motor according to the instruction information received by the wireless communication module 160.
  • the smart clock may include the processor 110, the wireless communication module 160, and the speaker 170A, for example.
  • the processor 110 of the smart clock can run an alarm clock program. In the case that the current time is the same as the set time in the alarm clock program, the processor 110 capable of smart clock can control the speaker 170A to play a bell.
  • the wireless communication module 160 of the smart clock can receive instruction information sent by other devices.
  • the processor 110 of the smart clock can process the instruction information.
  • the wireless communication module 160 of the smart clock may receive the alarm indication information newly input by the user, and the processor 110 of the smart clock may record the alarm indication information.
  • the smart water heater may include a processor 110, a wireless communication module 160, a heating system, a temperature sensor, and a display screen 194, for example.
  • the wireless communication module 160 of the smart water heater may be used to receive instruction information from other devices.
  • the processor 110 of the smart water heater can run a temperature control program and process the instruction information sent by other devices.
  • the smart water heater can operate the heating system to control the water temperature in the smart water heater.
  • the display screen 194 of the smart water heater can display the current water temperature in the smart water heater.
  • the smart water heater can determine whether the heating system needs to be operated based on the water temperature detected by the temperature sensor. When the water temperature reaches or exceeds the water temperature specified by the user, the smart water heater can suspend the heating system. When the water temperature is lower than the water temperature specified by the user, the smart water heater can operate the heating system.
  • the smart lamp may include a processor 110, a wireless communication module 160, and a lighting system, for example.
  • the wireless communication module 160 of the smart lamp can be used to receive instruction information from other devices.
  • the processor 110 of the smart lamp can run the lighting program and process the instruction information sent by other devices. Through the lighting program, the processor 110 of the smart lamp can turn on or turn off the lighting system, and can also control the lighting system to emit light of different brightness.
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as voice assistant, TV playback, TV series playback, movie playback, audio playback, gallery, browser, clock, settings, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, browsing history, bookmarks, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a TV play interface may include a view that displays text, a view that displays an image, and a view that displays video.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user communication.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompt text information in the status bar sound a prompt tone, and so on.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • surface manager surface manager
  • media library media libraries
  • 3D graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, etc.
  • the software structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer modules or functions than those shown in the figure.
  • the software structure block diagram of the electronic device 100 shown in FIG. 2 may be a hardware structure diagram of a portable electronic device, a desktop computer, a TV, a notebook computer, and the like.
  • a relatively simplified software structure can be provided, so there is no need to go into details here.
  • Figure 3 shows an application scenario for multi-device communication.
  • the user can purchase multiple smart electronic devices and place the multiple smart electronic devices at home. As shown in Fig. 3, the user can purchase a TV 303, a laptop 305, a smart air conditioner 306, a smart speaker 308, a humidity thermometer 311, a curtain remote control 307, a smart clock 312, a smart water heater 304, a smart camera 309, and a smart lamp 310. Wait.
  • the user can carry one or more portable electronic devices, such as the mobile phone 302 shown in FIG. 3.
  • the user can also purchase a device that provides data services for multiple smart electronic devices, such as the router 301 shown in FIG. 3. At least part of the functions that can be implemented by each electronic device has been described above, and there is no need to repeat them here.
  • FIG. 4 shows a communication system for multi-device communication.
  • the communication system may include multiple smart electronic devices as shown in FIG. 3.
  • the communication system may also include a cloud server 401.
  • the multiple smart electronic devices shown in FIG. 3 can communicate data through the Internet of Things communication protocol.
  • the smart electronic device shown in FIG. 3 may also perform data communication with the cloud server 401 through one or more communication protocols such as the Internet of Things communication protocol.
  • the communication system shown in FIG. 4 may include four types of electronic equipment.
  • the first type of electronic device may be a cloud server 401.
  • the cloud server 401 can receive data from multiple smart electronic devices, and provide data services for the multiple smart electronic devices, for example, provide big data storage services, high-speed computing services, etc., for the multiple smart electronic devices.
  • the second type of electronic device may be the Internet of Things device 402.
  • the Internet of Things device 402 may refer to an Internet of Things device with specific functions. In other words, the IoT device 402 can generally provide users with intelligent services in a small number of specific scenarios.
  • the Internet of Things device 402 can be controlled by other smart electronic devices.
  • the Internet of Things device 402 may include, for example, a TV 303, a smart air conditioner 306, a smart speaker 308, a humidity thermometer 311, a curtain remote control machine 307, a smart clock 312, a smart water heater 304, a smart camera 309, a smart lamp 310, etc. as shown in FIG. 3 .
  • the embodiment of the present application does not limit the specific type of the Internet of Things device 402.
  • the third type of electronic device may be the control device 403.
  • the control device 403 can control the Internet of Things device 402 to perform corresponding operations, so that a plurality of Internet of Things devices 402 cooperate to provide intelligent services for users.
  • the control device 403 can also perform data communication with the cloud server 401.
  • the control device 403 may send data related to the user's habit to the cloud server 401, and the cloud server 401 may obtain a method suitable for the user to control the device 403 according to the user's habit, and send the method to the control device 403, thereby
  • the control device 403 can control the Internet of Things device 402 in a method that matches the user's habits.
  • the control device 403 may be, for example, a mobile phone 302, a notebook computer 305, etc. as shown in FIG. 3.
  • the embodiment of the present application does not limit the specific type of the control device 403.
  • the fourth type of electronic device may be a communication service device 404.
  • the communication service device 404 can provide data communication services for multiple smart electronic devices.
  • the communication service device 404 may provide a local area network for the multiple smart electronic devices.
  • the smart electronic device 1 may send data to the communication service device 404, and then the communication service device 404 forwards the data to the smart electronic device 2.
  • the smart electronic device 3 may broadcast data through a local area network, and the smart electronic device 4 may receive the data broadcast by the smart electronic device 3 through the local area network.
  • the smart electronic device 5 may send data to the cloud server 401 through the communication service device 404, and receive the data sent by the cloud server 401 through the communication service device 404.
  • the communication service device 404 may include, for example, a router 301 as shown in FIG. 3 and the like. The embodiment of the present application does not limit the specific type of the communication service device 404.
  • the IoT device 402 can directly establish a wireless communication connection with the control device 403, and perform data communication through an IoT communication protocol (for example, a smart home communication protocol, the Hilink communication protocol 405 shown in FIG. 4, etc.).
  • an IoT communication protocol for example, a smart home communication protocol, the Hilink communication protocol 405 shown in FIG. 4, etc.
  • the Internet of Things device 402 can perform data communication with the control device 403 and the cloud server 401 through the communication service device 404 according to the Internet of Things communication protocol.
  • control device 403 may perform data communication with the cloud server 401 according to a mobile communication network.
  • control device 403 may perform data communication with the cloud server 401 according to the wireless communication network provided by the communication service device 404.
  • the multiple smart electronic devices mentioned above may all be provided by the same supplier.
  • Suppliers can provide users with private IoT communication protocols.
  • the above-mentioned TVs, laptops, smart air conditioners, smart speakers, smart camera devices, humidity thermometers, curtain remote controls, smart clocks, smart water heaters, and smart lamps can all communicate with other smart electronic devices according to the private IoT communication protocol.
  • Communication For example, the smart clock can send time information to the curtain remote control machine through the private Internet of Things communication protocol, so that the curtain remote control machine can control the curtain to open or close at a specified time.
  • the above-mentioned multiple smart electronic devices are provided by different suppliers.
  • the private IoT communication protocols used by different vendors are different.
  • the smart clock is provided by supplier 1, and the private IoT communication protocol provided by supplier 1 is the private IoT communication protocol 1; the curtain remote control machine is provided by supplier 2 and the private IoT communication protocol provided by supplier 2
  • the private Internet of Things communication protocol is the Private Internet of Things communication protocol 2. Since the smart clock cannot send instructions to the curtain remote control through the private IoT communication protocol 2, and the curtain remote control cannot receive the instructions sent by the smart clock through the private IoT communication protocol 1, the user cannot control the curtain remote control through the smart clock Open or close the curtains at a designated time.
  • the user can input a designated condition and a designated operation corresponding to the designated condition to the smart electronic device, so that the smart electronic device can perform the designated operation under the designated condition.
  • the user can input the specified time into the curtain remote control machine, so that the curtain remote control machine can control the curtain to open or close at the specified time.
  • the process of inputting the specified conditions and the specified operation is not very convenient.
  • Fig. 5 is a communication system provided by an embodiment of the present application.
  • a wireless communication connection can be established between multiple devices.
  • the communication system may include a control device and a plurality of Internet of Things devices.
  • the Internet of Things device can establish a wireless communication connection with the control device through a wireless communication protocol.
  • the IoT device may be, for example, a TV 303, a smart air conditioner 306, a smart speaker 308, a humidity thermometer 311, a curtain remote control machine 307, a smart clock 312, a smart water heater 304, a smart camera 309, a smart lamp 310, etc. as shown in FIG.
  • the control device may be, for example, a mobile phone 302 as shown in FIG. 5.
  • the Internet of Things device may perform data communication with the control device through a Bluetooth communication protocol, for example.
  • the Internet of Things device can send a message to the control device through the Bluetooth communication protocol; accordingly, the control device can send a message to the Internet of Things device through the Bluetooth communication protocol.
  • the Internet of Things device can establish a wireless communication connection for data communication with the control device.
  • the Internet of Things device and the control device can access the same wireless local area network, and the wireless local area network can be provided by a communication service device (such as the router 301 in FIG. 5).
  • the IoT device and the control device can communicate through the communication service device.
  • the Internet of Things device can send message 1 to the communication service device, and the message 1 can be forwarded by the communication service device to the control device; accordingly, the control device can send message 2 to the communication service device, and the message 2 can be sent by the communication service device.
  • the service device is forwarded to the IoT device.
  • the Internet of Things device can establish a wireless communication connection for data communication with the control device.
  • FIG. 5 shows a communication system 500 in which a plurality of Internet of Things devices establish a wireless communication connection with a control device.
  • the control device can establish wireless communication connections with multiple Internet of Things devices.
  • the communication between any two IoT devices among the multiple IoT devices may use the control device as a medium.
  • the wireless communication connection between two IoT devices may not use the control device as a medium. In other words, two IoT devices can bypass the control device to establish a wireless communication connection.
  • the process of establishing a wireless communication connection between two Internet of Things devices is described in detail below, and it is not necessary to repeat it here.
  • Fig. 6 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
  • the Internet of Things device may send first device registration information to the control device, where the first device registration information is used to indicate M input parameters of the Internet of Things device, and M is a positive integer.
  • control device receives the first device registration information sent by the Internet of Things device.
  • the control device can determine the M input parameters that can be received by the IoT device according to the registration information of the first device.
  • the control device can establish a wireless communication connection with the Internet of Things device. Establishing a wireless communication connection means that the control device can learn that there is an Internet of Things device around the control device, and the Internet of Things device learns that the control device exists around the Internet of Things device; the control device can communicate with the Internet of Things device Jointly establish a data transmission channel for data communication.
  • the M input parameters may include temperature parameters, humidity parameters, time parameters, event parameters, and so on.
  • the specific application of the temperature parameter may include at least one of the following: indicating the specific value of the current room temperature to the smart air conditioner, indicating the value of the preset temperature to the smart air conditioner, and the like.
  • the preset temperature can be specified by the user, for example.
  • the smart air conditioner can adjust the current settings of the smart air conditioner according to temperature parameters.
  • the specific application of the humidity parameter may include at least one of the following: indicating the specific value of the current indoor humidity to the smart air conditioner, indicating the value of the preset humidity to the smart air conditioner, and the like.
  • the preset humidity can be specified by the user, for example.
  • the smart air conditioner can adjust the current setting of the smart air conditioner according to humidity parameters.
  • the specific application of the time parameter may include at least one of the following: indicating the current time to the smart air conditioner, indicating the preset time or the preset time period to the smart air conditioner, and so on.
  • the preset time and the preset time period can be specified by the user, for example.
  • the preset time and the preset time period may be alarm (or alarm) data, for example.
  • the smart air conditioner is turned on or off at a specified time.
  • the smart air conditioner is turned off.
  • the specific application of the event parameter may include: sending event information to the smart air conditioner, and the smart air conditioner can implement part of the functions of the smart air conditioner according to the event information.
  • the event information may include the indication information of a person in the room, and the smart air conditioner may turn on the smart air conditioner according to the indication information of the person in the room; the event information may also include the indication information that there is no person in the room, and the smart air conditioner may receive the indication information. Turn off the smart air conditioner within a certain period of time.
  • the M input parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
  • the specific application of audio parameters may include at least one of the following: sending a user's semantic instruction to the TV, sending the user's voiceprint data to the TV, sending the data of a voice call to the TV, sending the data of the audio to be played to the TV, and so on.
  • the user's voice commands can correspond to some of the functions that the TV can achieve. For example, the user's voice command can instruct the TV to play a specific program.
  • the user's voiceprint data can be used by the TV to identify the user's identity.
  • the TV can receive voice call data sent by other recording devices, and the TV itself does not need to record.
  • the TV can play the to-be-played audio.
  • the specific application of the image parameter may include at least one of the following: sending the user's face image to the TV, sending the data of the image to be displayed to the TV, and so on.
  • the user's face image can be used for the TV to identify the user's identity.
  • the TV can display the image to be displayed.
  • the specific application of the video parameter may include at least one of the following: sending data of a video call to the TV, sending data of a video to be played to the TV, and so on.
  • the TV can receive video call data sent by other shooting devices without the need for the TV itself to record; the TV can also display the video taken by the other shooting device.
  • the specific application of the time parameter may include at least one of the following: indicating the current time to the TV, indicating the preset time or the preset time period to the TV, and so on.
  • the preset time and the preset time period can be specified by the user, for example.
  • the preset time and the preset time period may be alarm (or alarm) data, for example. For example, turn the TV on or off at a specified time. For another example, when the time for turning on the TV reaches a preset time period, the TV is turned off.
  • the specific application of event parameters may include: sending event information to a TV, and the TV can implement part of the TV's functions according to the event information.
  • the event information may include user preference data
  • the TV may push multimedia data that the user may like according to the user preference data.
  • a user has recently played the theme song of a certain TV series through a smart speaker several times.
  • the smart speaker can indicate to the TV that the user may like the TV series through user preference data, and the TV can push the TV series to the user according to the user preference data.
  • the M input parameters may include audio parameters, time parameters, event parameters, and so on.
  • the specific application of audio parameters may include at least one of the following: sending a user's semantic instruction to the smart speaker, sending audio data for a call to the smart speaker, sending data of the audio to be played to the smart speaker, and so on.
  • the user's voice commands can correspond to some of the functions that smart speakers can achieve. For example, the user's voice command can instruct the smart speaker to increase the volume.
  • the smart speaker can play the audio data for the call.
  • the smart speaker can play the audio to be played.
  • the specific application of the time parameter may include at least one of the following: indicating the current time to the smart speaker, indicating the preset time or the preset time to the smart speaker, and so on.
  • the preset time and the preset time period can be specified by the user, for example.
  • the preset time and time period may be alarm (or alarm) data, for example. For example, turn on or turn off the smart speaker at a specified time. For another example, when the time for turning on the smart speaker reaches a preset period of time, the smart speaker is turned off.
  • the specific application of the event parameter may include: sending event information to the smart speaker, and the smart speaker can implement part of the functions of the smart speaker according to the event information.
  • the event information may include user preference data
  • the smart speaker may push music that the user may like based on the user preference data. For example, if a user recently played a concert video of a certain singer on a TV several times, the TV can indicate to the smart speaker that the user may like the singer through user preference data, and the smart speaker can push the singer’s music to the user based on the user’s preference data .
  • the M input parameters may include time parameters, event parameters, and so on.
  • the specific application of the time parameter may include at least one of the following: indicating the current time to the curtain remote control machine, indicating the preset time or the preset time period to the curtain remote control machine, and so on.
  • the preset time and the preset time period can be specified by the user, for example.
  • the preset time and the preset time period may be alarm (or alarm) data, for example. For example, open or close the curtain remote control machine at a specified time. For another example, when the time for opening the curtain remote control machine reaches a preset period of time, the curtain remote control machine is turned off.
  • the specific application of the event parameter may include: sending event information to the curtain remote control machine, and the curtain remote control machine can implement part of the functions of the curtain remote control machine according to the event information.
  • the event information may include indication information of indoor light intensity.
  • the curtain remote control machine can control the curtain to open to a specified degree according to the indication information of the indoor light intensity. It should be noted that when the curtain is 100% open, the window can not be blocked; when the curtain is 100% closed (ie, 0% open), it can basically block the window.
  • the M input parameters may include temperature parameters, time parameters, event parameters, and so on.
  • the specific application of the temperature parameter may include at least one of the following: indicating the current room temperature to the smart water heater, indicating the value of the preset temperature to the smart water heater, and so on.
  • the preset temperature can be specified by the user, for example.
  • the smart water heater can adjust the currently set heating temperature of the smart water heater according to temperature parameters.
  • the specific application of the time parameter may include at least one of the following: indicating the current time to the smart water heater, indicating the preset time or the preset time period to the smart water heater, and so on.
  • the preset time and the preset time period can be specified by the user, for example.
  • the preset time and the preset time period may be alarm (or alarm) data, for example. For example, turn on or turn off the heating function of a smart water heater at a specified time. For another example, when the heating function of the smart water heater is turned on for a preset period of time, the heating function of the smart water heater is turned off.
  • the specific application of the event parameter may include: sending event information to the smart water heater, and the smart water heater can implement part of the functions of the smart water heater according to the event information.
  • the event information can include the indication information of a person in the room, and the smart water heater can turn on the heating function of the smart water heater according to the indication information of the person in the room; the event information can also include the indication information that there is no person in the room, and the smart water heater can Turn off the heating function of the smart water heater and turn on the heat preservation function of the smart water heater within a certain period of time after the instruction information.
  • the M input parameters may include brightness parameters, time parameters, event parameters, and so on.
  • the specific application of the brightness parameter may include at least one of the following: indicating the current indoor brightness to the smart lamp, indicating the value of the preset brightness to the smart lamp, and the like.
  • the preset brightness can be specified by the user, for example.
  • the smart lamp can adjust the current brightness of the smart lamp according to the brightness parameter.
  • the specific application of the time parameter may include at least one of the following: indicating the current time to the smart lamp, indicating the preset time or the preset time period to the smart lamp, and so on.
  • the preset time and the preset time period can be specified by the user, for example.
  • the preset time and time period may be alarm (or alarm) data, for example. For example, turn on or turn off the lighting function of smart lamps at a specified time. For another example, when the time for turning on the smart lamp reaches a preset period of time, the lighting function of the smart lamp is turned off.
  • the specific application of the event parameter may include: sending event information to a smart lamp, and the smart lamp can implement part of the functions of the smart lamp according to the event information.
  • the event information may include the indication information of a person in the room, and the smart lamp may turn on the lighting function of the smart lamp according to the indication information of the person in the room; the event information may also include the indication information that there is no person in the room. Turn off the lighting function of the smart lamp within a certain period of time after the information is indicated.
  • the M input parameters may include event parameters and the like.
  • the specific application of the event parameter may include: sending event information to a smart camera device, and the smart camera device can implement part of the functions of the smart camera device according to the event information.
  • the event information may include the location information of the user indoors, and the smart camera device can adjust the shooting angle, shooting focus, etc. of the smart camera device according to the location information.
  • the M input parameters may include event parameters and the like.
  • the specific application of the event parameter may include: sending event information to the smart clock, and the smart clock can implement part of the functions of the smart clock according to the event information.
  • a user can set an alarm clock on another Internet of Things device.
  • the other Internet of Things device can send event information to the smart clock.
  • the event information can include the indication information of the alarm clock.
  • the smart clock can add an alarm based on the indication information of the alarm clock. record.
  • the M input parameters may include event parameters and the like.
  • the specific application of the event parameter may include: sending event information to a humidity thermometer, and the humidity thermometer can implement part of the functions of the humidity thermometer according to the event information.
  • the event information may include the indication information that the air conditioner is turned on, and the smart lamp may shorten the temperature detection cycle and the humidity detection cycle according to the indication information that the air conditioner is turned on, and send the temperature and humidity parameters to the air conditioner according to the preset cycle.
  • the first device registration information may further include at least one of the following: interface information of the M input parameters, a wireless communication protocol supported by the Internet of Things device, and Internet of Things communication supported by the Internet of Things device Agreement etc.
  • the first device registration information may include interface information of the M input parameters, for example.
  • the Internet of Things device may use the wireless communication interface 1 to receive the first part of the M input parameters, and the Internet of Things device may use the wireless communication interface 2 to receive the second part of the M input parameters.
  • any input parameter in the first part of input parameters is different from each input parameter in the second part of input parameters.
  • the first device registration information may include, for example, a wireless communication protocol supported by the Internet of Things device.
  • the Internet of Things device 1 can support Bluetooth wireless communication protocol, but does not support Wi-Fi wireless communication protocol, then the Internet of Things device 1 can communicate with other devices (such as control devices, other Internet of Things devices, etc.) through the Bluetooth wireless communication protocol. .
  • the first device registration information may include, for example, an Internet of Things communication protocol supported by the Internet of Things device.
  • the brand supplier of IoT device 1 is brand A
  • the brand supplier of IoT device 2 is brand B
  • the Internet of Things communication protocol supported by the Internet of Things device 1 includes the Internet of Things communication protocol provided by Brand A and the Internet of Things communication protocol provided by Brand B.
  • the Internet of Things communication protocol supported by the Internet of Things device 2 includes the Internet of Things provided by Brand B.
  • Communication protocol, the Internet of Things communication protocol provided by Brand C, the Internet of Things device 1 can communicate with the Internet of Things device 2 through the Internet of Things communication protocol provided by Brand B.
  • the IoT device can support an open IoT communication protocol.
  • the open IoT communication protocol can at least be open to developers of multiple IoT devices.
  • the open IoT communication protocol can be at least partially open to the public, that is, at least part of the open IoT communication protocol is in a non-secret state.
  • the open IoT communication protocol can be used for communication between multiple electronic devices, and the multiple electronic devices can be provided by the same or different vendors.
  • the open IoT communication protocol may be, for example, the HiLink communication protocol.
  • FIG. 7 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
  • the Internet of Things device may send second device registration information to the control device, where the second device registration information is used to indicate N output parameters of the Internet of Things device, and N is a positive integer.
  • control device receives the second device registration information sent by the Internet of Things device.
  • the control device can determine the N output parameters that can be sent by the IoT device according to the registration information of the second device. M and N can be the same or different.
  • the control device can establish a wireless communication connection with the Internet of Things device. Establishing a wireless communication connection means that the control device knows that there is an Internet of Things device around the control device, and the Internet of Things device learns that the control device exists around the Internet of Things device; the control device can work with the Internet of Things device Establish a data transmission channel for data communication.
  • the N output parameters may include temperature parameters, humidity parameters, time parameters, event parameters, and so on.
  • the specific application of the temperature parameter may include: indicating to other IoT devices the specific value of the current room temperature detected by the smart air conditioner, etc.
  • the specific application of the humidity parameter may include: indicating to other IoT devices the specific value of the current indoor humidity detected by the smart air conditioner, etc.
  • the specific application of the time parameter may include at least one of the following: indicating time data obtained by the smart air conditioner to other Internet of Things devices, and indicating alarm clock records recorded by the smart air conditioner to other Internet of Things devices.
  • the specific application of the event parameter may include: sending the event information obtained by the smart air conditioner to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information.
  • the event information is used to indicate that the smart air conditioner currently starts the heating mode.
  • the smart humidifier can start the smart humidifier according to the event information. This helps to provide users with suitable indoor humidity.
  • the N output parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
  • the specific application of audio parameters may include at least one of the following: sending user's semantic instructions to other Internet of Things devices, sending user's voiceprint data to other Internet of Things devices, sending voice call data to other Internet of Things devices, and sending voice call data to other Internet of Things devices.
  • the device sends the data of the audio to be played, etc.
  • the user's voice commands can correspond to some of the functions that other IoT devices can implement. For example, the user's voice command can instruct the smart speaker to increase the volume.
  • the user's voiceprint data can be used by other IoT devices to identify the user. In the case of multiple voiceprint recognition devices in the room, the user can select a TV to record voiceprint information.
  • the TV can record during a call and send the recording data to other IoT devices (such as smart speakers), and the other IoT devices do not need to record themselves.
  • the TV can send the to-be-played audio to other IoT devices (such as smart speakers), so that the other IoT device can play the to-be-played audio.
  • the specific application of the image parameter may include at least one of the following: sending the user's face image to other Internet of Things devices, sending the image currently displayed on the TV to other Internet of Things devices, and so on.
  • the user's face image can be used for other IoT devices to identify the user. For example, when there are multiple facial recognition devices indoors, the user can select a TV to record facial information. Sending the image currently displayed on the TV to other Internet of Things devices is conducive to the realization of the function of copying the screen.
  • the copy screen function can make multiple display devices display the same content.
  • the specific application of the video parameter may include at least one of the following: sending data of a video call to other Internet of Things devices, sending data of a video to be played to other Internet of Things devices, and so on.
  • sending data of a video call to other Internet of Things devices may include at least one of the following: sending data of a video call to other Internet of Things devices, sending data of a video to be played to other Internet of Things devices, and so on.
  • the user can select a scene captured by a TV to make a video call, or select a scene captured by multiple shooting devices, including a TV, to make a video call.
  • the TV can send the acquired video to be played to other display devices for playing, so that the other display devices can share the same media library with the TV.
  • the specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the TV timing, and instructing other Internet of Things devices to record alarm clock records recorded by the TV, and so on.
  • the specific application of the event parameter may include: sending event information obtained by the TV to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information.
  • the event information may include user preference data
  • the other Internet of Things device may push multimedia data that the user may like according to the user preference data. For example, if a user recently played a concert video of a certain singer on a TV several times, the TV can indicate to the smart speaker that the user may like the singer through user preference data, and the smart speaker can push the singer’s music to the user based on the user’s preference data .
  • the N output parameters may include audio parameters, time parameters, event parameters, and so on.
  • the specific application of audio parameters may include at least one of the following: sending user's semantic instructions to other IoT devices, sending user's voiceprint data to other IoT devices, sending audio data for calls to other IoT devices, and sending voice data to other IoT devices.
  • the IoT device sends audio data to be played, etc.
  • the user's voice commands can correspond to some of the functions that other IoT devices can implement. For example, the user's voice command can instruct the TV to play a specific program.
  • the user's voiceprint data can be used by other IoT devices to identify the user. When there are multiple voiceprint recognition devices in the room, the user can choose a smart speaker to record voiceprint information.
  • the smart speaker can record during a call, and send the recording data to other IoT devices (such as a TV), and the other IoT devices do not need to record themselves.
  • the smart speaker can send the audio to be played to other Internet of Things devices (such as a TV), so that the other Internet of Things device can play the audio to be played.
  • the specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the smart speaker, and instructing other Internet of Things devices to record the alarm clock recorded by the smart speaker, etc.
  • the specific application of the event parameter may include: sending the event information obtained by the smart speaker to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information.
  • the event information may include user preference data
  • the other Internet of Things device may push multimedia data that the user may like according to the user preference data.
  • a user has recently played the theme song of a certain TV series through a smart speaker several times.
  • the smart speaker can indicate to the TV that the user may like the TV series through user preference data, and the TV can push the TV series to the user according to the user preference data.
  • the N output parameters may include time parameters, event parameters, and so on.
  • the specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the remote control of the curtain, and instructing other Internet devices of the alarm clock record recorded by the remote control of the curtain, etc.
  • the specific application of the event parameter may include: sending the event information obtained by the curtain remote control machine to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information.
  • the event information may include information indicating the degree of opening of the curtain. Assuming that the smart lamp can receive the event information, the smart lamp can adjust the light-emitting brightness of the smart lamp according to the event information.
  • the N output parameters may include time parameters, event parameters, and so on.
  • the specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the smart water heater, and instructing other Internet of Things devices to record the alarm clock recorded by the smart water heater, and so on.
  • the specific application of the event parameter may include sending event information obtained by the smart water heater to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information.
  • the event information may indicate whether the heating function of the smart water heater is currently turned on.
  • Other IoT devices can determine whether there are users around the smart water heater based on the event information.
  • the N output parameters may include brightness parameters, time parameters, event parameters, and so on.
  • the specific application of the brightness parameter may include: indicating the current luminous intensity of the smart lamp to other IoT devices. For example, multiple smart lamps can synchronize their luminous intensity.
  • the specific application of the time parameter may include at least one of the following: indicating to other IoT devices the time data obtained by the smart lamp timing, and instructing other IoT devices the alarm clock record recorded by the smart lamp, etc.
  • the specific application of the event parameter may include: sending the event information obtained by the smart lamp to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information.
  • the event information can indicate whether the smart lamp is currently turned on.
  • Other IoT devices can determine whether there are users around the smart lamp based on the event information.
  • the N output parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
  • the specific application of audio parameters may include at least one of the following: sending user's semantic instructions to other Internet of Things devices, sending user's voiceprint data to other Internet of Things devices, sending voice call data to other Internet of Things devices, and sending voice call data to other Internet of Things devices.
  • the device sends recording audio, etc.
  • the user's voice commands can correspond to some of the functions that other IoT devices can implement. For example, the user's voice command can instruct the smart speaker to increase the volume, instruct the TV to play a specific program, and so on.
  • the user's voiceprint data can be used by other IoT devices to identify the user. In the case where there are multiple voiceprint recognition devices indoors, the user can select a smart camera to record voiceprint information.
  • the smart camera can record during a call, and send the recording data to other IoT devices (such as smart speakers), and the other IoT devices do not need to record themselves.
  • the smart camera can send the recorded audio to other IoT devices (such as smart speakers), so that the other IoT devices can play the recorded audio.
  • the specific application of the image parameter may include at least one of the following: sending the user's face image to other Internet of Things devices, sending the image captured by the smart camera to other Internet of Things devices, and so on.
  • the user's face image can be used for other IoT devices to identify the user. For example, when there are multiple facial recognition devices indoors, the user can select a smart camera to record facial information. Sending the images captured by the smart camera to other IoT devices is conducive to the flexible display of the captured images.
  • the specific application of the video parameter may include at least one of the following: sending video call data to other Internet of Things devices, sending captured videos to other Internet of Things devices, and so on.
  • sending video call data to other Internet of Things devices When there are multiple shooting devices indoors, the user can select scenes shot by the smart shooting device for a video call, or select scenes shot by multiple shooting devices including the smart shooting device for a video call.
  • Sending the captured video to other IoT devices is conducive to the flexible playback of the captured video.
  • the specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the smart camera, and instructing other Internet of Things devices to record the alarm clock recorded by the smart camera, etc.
  • the specific application of the event parameter may include: sending the event information obtained by the smart camera to other Internet of Things devices, so that the other Internet of Things devices can implement the corresponding function according to the event information.
  • the event information may include indication information that the user appears.
  • the other Internet of Things device may push multimedia data that the user may like according to the indication information of the present user.
  • the smart lamp can turn on the lighting function of the smart lamp according to the indication information of the user.
  • the smart water heater can turn on the heating function of the smart water heater according to the indication information of the user.
  • the N output parameters may include time parameters, event parameters, and so on.
  • the specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the smart clock, and instructing other Internet of Things devices to record the alarm clock recorded by the smart clock, etc.
  • the N output parameters may include temperature parameters, humidity parameters, and so on.
  • the specific application of the temperature parameter may include: sending the specific value of the current room temperature detected by the humidity thermometer to other IoT devices, etc.
  • the specific application of the humidity parameter may include sending the specific value of the current indoor humidity detected by the humidity thermometer to other IoT devices.
  • the second device registration information may further include at least one of the following: interface information of the N output parameters, a wireless communication protocol supported by the Internet of Things device, and Internet of Things communication supported by the Internet of Things device Agreement etc.
  • the second device registration information may include interface information of the N output parameters, for example.
  • the Internet of Things device may use the wireless communication interface 1 to send the first part of the output parameters of the N output parameters, and the Internet of Things device may use the wireless communication interface 2 to send the second part of the output parameters of the N output parameters.
  • any output parameter in the first part of output parameters is different from each output parameter in the second part of output parameters.
  • the second device registration information may include, for example, a wireless communication protocol supported by the Internet of Things device.
  • the Internet of Things device 1 can support Bluetooth wireless communication protocol, but does not support Wi-Fi wireless communication protocol, then the Internet of Things device 1 can communicate with other devices (such as control devices, other Internet of Things devices, etc.) through the Bluetooth wireless communication protocol. .
  • the second device registration information may include, for example, an Internet of Things communication protocol supported by the Internet of Things device.
  • the brand supplier of IoT device 1 is brand A
  • the brand supplier of IoT device 2 is brand B
  • the Internet of Things communication protocol supported by the Internet of Things device 1 includes the Internet of Things communication protocol provided by Brand A and the Internet of Things communication protocol provided by Brand B.
  • the Internet of Things communication protocol supported by the Internet of Things device 2 includes the Internet of Things provided by Brand B.
  • Communication protocol, the Internet of Things communication protocol provided by Brand C, the Internet of Things device 1 can communicate with the Internet of Things device 2 through the Internet of Things communication protocol provided by Brand B.
  • the IoT device can support an open IoT communication protocol.
  • the open IoT communication protocol can at least be open to developers of multiple IoT devices.
  • the open IoT communication protocol can be at least partially open to the public, that is, at least part of the open IoT communication protocol is in a non-secret state.
  • the open IoT communication protocol can be used for communication between multiple electronic devices, and the multiple electronic devices can be provided by the same or different vendors.
  • the open IoT communication protocol may be, for example, the HiLink communication protocol.
  • FIG. 8 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
  • the IoT device may send first device registration information and second device registration information to the control device, where the first device registration information is used to indicate M input parameters of the IoT device, and the second device registration information is used to Indicate N output parameters of the Internet of Things device, where M is a positive integer, and N is a positive integer.
  • control device receives the first device registration information sent by the Internet of Things device.
  • the control device can determine the M input parameters that the IoT device can receive according to the first device registration information, and determine the N output parameters that the IoT device can send according to the second device registration information. M and N can be the same or different.
  • the control device can establish a wireless communication connection with the Internet of Things device. Establishing a wireless communication connection means that the control device knows that there is an Internet of Things device around the control device, and the Internet of Things device learns that the control device exists around the Internet of Things device; the control device can work with the Internet of Things device Establish a data transmission channel for data communication.
  • the embodiment of the application uses the examples shown in Figure 6 and Figure 7 to illustrate the specific implementation of the IoT device sending the first device registration information to the control device, and the specific implementation of the IoT device sending the second device registration information to the control device. The way, I don’t have to go into details here.
  • the control device may receive multiple device registration information (including first device registration information and/or second device registration information) sent by multiple Internet of Things devices, and the multiple Internet of Things devices have a one-to-one correspondence with the multiple device registration information.
  • the device registration information can be used by the IoT device to submit a device registration request to the control device.
  • the control device can establish a wireless communication connection with the multiple Internet of Things devices.
  • After the Internet of Things device sends the device registration information to the control device it may reside in a communication system including multiple Internet of Things devices.
  • the communication system may be the communication system shown in FIG. 4 and FIG. 5.
  • the embodiments of the present application provide a new device communication method, which aims to improve the flexibility of communication between multiple Internet of Things devices.
  • FIG. 9 is a schematic flowchart of a communication method 900 provided by an embodiment of the present application.
  • the control device establishes wireless communication connections with multiple Internet of Things devices respectively.
  • the above example illustrates a definition of the control device in the embodiment of the present application through the example shown in FIG. 4.
  • the control device may be, for example, a mobile phone 302, a notebook computer 305, etc. as shown in FIG. 3.
  • the control device may be, for example, a mobile phone 302 as shown in FIG. 5.
  • the above example illustrates a definition of the Internet of Things device in the embodiment of the present application through the example shown in FIG. 4.
  • the Internet of Things device may be, for example, a TV 303, a smart air conditioner 306, a smart speaker 308, a humidity thermometer 311, a curtain remote control machine 307, a smart clock 312, a smart water heater 304, a smart camera 309, and a smart lamp as shown in FIG. 3 or 5, for example. 310 and so on.
  • FIG. 6 to FIG. 8 have been used to illustrate several possible implementations for the control device to establish wireless communication connections with multiple Internet of Things devices respectively, and it is not necessary to repeat them here.
  • the control device acquires a target strategy, where the target strategy includes preset conditions, target operations, and information about the target device, and the target strategy is used to indicate that, when the preset conditions are established, the target device The target operation is executed, and whether the preset condition is satisfied is determined by h parameters.
  • the preset condition may include one or more conditions.
  • the preset conditions in the target strategy may include, for example, that a user always appears in the target room within 1 hour from the current moment; the target operation may be, for example, the startup device; the information of the target device, for example, Indicates the device located in the target room, and the type of the target device is air conditioner or smart air conditioner.
  • the target room may be a conference room, for example. Within one hour from the current moment in the future, users will always appear in the target room. For example, it may be that the time for the user to reserve the conference room is greater than or equal to 1 hour, and the start time of the conference is the current moment.
  • the h parameters can be event parameters, for example, and the specific content of the event parameters can be that users always appear in the target room within x hours from the current moment; if the preset conditions are established, x can be Greater than or equal to 1.
  • the h parameters can be, for example, a time parameter, and the specific content of the time parameter can be a time period with a duration of x.
  • x can be greater than or equal to 1.
  • the preset conditions in the target strategy may include, for example, that the target user is using the TV; the target operation may be, for example, pushing multimedia data related to the target user’s preferences; the information of the target device may indicate the target, for example The type of device is TV.
  • the target user instructs the smart speaker to turn on the TV through a voice command.
  • the h parameters may be audio parameters, for example.
  • the smart speaker can send the voice command to the TV.
  • the TV can also analyze whether the user who issued the voice command is the target user.
  • the TV can push matching multimedia data to the initiator of the voice command according to the target strategy. In this case, the user who uses the TV can be analyzed by the TV as the target user.
  • the h parameters may be event parameters, for example.
  • the smart speaker can analyze whether the user who issued the voice command is the target user, and send instruction information to the TV.
  • the instruction information is used to instruct the target user to issue a command to start the TV, or the instruction information is used to instruct to turn on the TV, and the current The user used is the target user.
  • the TV can be self-started, and according to the target strategy, push matching multimedia data to the target user.
  • the smart speaker can analyze the user who uses the TV as the target user.
  • the TV pushes multimedia data related to the preferences of the target user. Obviously, this helps to provide users with more appropriate push information.
  • the preset conditions in the target strategy may include, for example, not starting the smart speaker between 0:00-8:00, and the presence of a user in the target room; the target operation may be, for example, playing "You "Good” audio, and start the module that detects voice commands; the information of the target device may indicate, for example, that the type of the target device is a smart speaker, and the target device is located in the target room.
  • the h parameters may include event parameters, for example.
  • the camera in the target room captures the presence of the user.
  • the camera may send instruction information to the smart speaker, and the instruction information may be used to indicate the presence of a user in the target room.
  • the smart speaker can determine whether the current time is between 0:00-8:00 according to its own timing. If the current time is outside 0:00-8:00, the smart speaker can play "Hello" audio and start the module for detecting voice commands.
  • the h parameters may include time parameters and event parameters, for example.
  • the smart light fixture in the target room captures the presence of the user.
  • the smart lamp may send instruction information to the smart speaker, and the instruction information may be used to indicate the presence of a user in the target room.
  • the smart lamp can also receive a message indicating the current time sent by the clock.
  • the smart speaker can play "Hello" audio and activate a module for detecting voice commands.
  • the preset conditions in the target strategy may include, for example, the current time is 8:00; the target operation may be, for example, opening the curtain; the information of the target device may, for example, indicate that the device identification of the target device is the target The device identifier of the curtain remote control machine, which is the unique identifier of the device.
  • the h parameters may include event parameters, for example.
  • the clock can send instruction information to the curtain remote control machine when the current time is 8:00, and the instruction information instructs the curtain remote control machine to open the curtain. Furthermore, the curtain remote control machine can open the curtain according to the instruction information of the clock.
  • the h parameters may include time parameters, for example.
  • the clock can send "open curtains at 8:00" as an alarm record to the curtain remote control machine, and send instructions to the curtain remote control machine at 8:00.
  • the instruction information indicates that the current time is 8:00.
  • the curtain remote control machine can open the curtain according to the instruction information and the alarm clock record.
  • the preset conditions in the target strategy may include, for example, the current season is spring or autumn; the target operation may be, for example, setting the water temperature to 50°C; the information of the target device may, for example, indicate the device of the target device The type is electric water heater.
  • the preset conditions in the target strategy may include, for example, that the current season is summer; the target operation may be, for example, setting the water temperature to 40°C; and the information of the target device may indicate, for example, that the device type of the target device is an electric water heater.
  • the preset conditions in the target strategy may include, for example, that the current season is winter; the target operation may be, for example, setting the water temperature to 60°C; the information of the target device may indicate, for example, that the device type of the target device is an electric water heater.
  • the h parameters may include time parameters, for example.
  • the clock can send the current date to the smart water heater.
  • the smart water heater can determine the current season according to seasonal solar terms. Furthermore, the smart water heater can determine the set water temperature according to the target strategy.
  • the h parameters may include temperature parameters, for example.
  • the smart thermometer can send the current indoor temperature or the current outdoor temperature to the smart water heater.
  • the smart water heater can determine the current season according to the location and determine the corresponding set water temperature.
  • the preset conditions in the target strategy may include, for example, that the curtain is open; the target operation may be, for example, not to activate the lighting function of the smart lamp; the information of the target device may indicate, for example , Which is the same as the room where the curtain is located, and the equipment type is lighting appliances.
  • the h parameters may include time parameters, for example.
  • the clock can send the alarm record of opening curtains from 8:00 to 18:00 to the curtains and smart lamps, and send the current time indication information to the smart lamps at 8:00 and 18:00.
  • the smart lamp may not activate the lighting function of the smart lamp from 8:00 to 18:00 according to the target strategy.
  • the h parameters may include event parameters, for example.
  • the curtain remote control machine opens the curtain, it can send instruction information to the smart lamp, and the instruction information indicates that the curtain has been opened.
  • the smart lamp may not activate the lighting function of the smart lamp when the curtain is in the open state according to the target strategy.
  • the preset conditions in the target strategy may include, for example, that a user appears in the current A position; the target operation may be, for example, adjusting the shooting angle to the A position; the information of the target device may indicate, for example , The device type is shooting device.
  • the h parameters may include event parameters, for example.
  • the smart speaker can determine the presence of a user in the B position according to the sound made by the user, and the smart speaker can send the B position to the smart camera device.
  • the smart camera device can determine the presence of a user in the A position according to the position of the smart speaker relative to the smart camera device and the B position, and the smart camera device can adjust the shooting angle to the A position according to the target strategy.
  • the h parameters may include picture parameters, for example.
  • the camera 1 located on the ceiling takes a top view of the entire room. When a user appears in the room, the camera 1 captures an image and sends the image to other camera devices in the room, such as the camera 2.
  • the camera 2 can determine the presence of a user in the A position based on the image, and the smart camera can adjust the shooting angle to the A position according to the target strategy.
  • the provider of the target strategy may be, for example, a third-party strategy provider, or may also be provided by any brand supplier of the Internet of Things device.
  • the embodiment of the present application may not limit the provider of the target strategy.
  • the multiple Internet of Things devices may be provided by multiple vendors of different brands.
  • FIG. 10 is a graphical user interface (GUI) of a smart application mall provided by an embodiment of the present application.
  • the GUI can be displayed on the control device.
  • the smart application store can also be called an application store (or app store), etc. Or, the smart application store may be a sub-module in the application store (or app store).
  • the GUI may include a plurality of tabs 1001 that can be switched and displayed.
  • the tab 1001 can be used to push popular applications for users.
  • the tab 1001 can be used to display a group of similar applications.
  • the tab 1001 can be used to display the use effect of a specific application. Since the display area of the tab 1001 is relatively large, the content that can be displayed in the tab 1001 can be relatively large, and the schematic diagram of the tab 1001 can be relatively vivid, which is conducive to achieving a relatively effective push effect.
  • the GUI may also include a plurality of application icons 1002.
  • Each application icon 1002 can correspond to one application.
  • Each application can include one or more policies. Any policy is used to perform one or more specific operations on one or more specific devices when one or more specific conditions are established. The one or more specific operations have a one-to-one correspondence. For example, in a case where condition 1 is established, device 1 performs operation 1. For another example, when condition 2 is established, device 2 performs operation 2, and device 3 performs operation 3.
  • a plurality of high-quality smart applications may be displayed in the smart application mall, and the plurality of high-quality smart applications may include "smart morning wake-up application", “comfortable bathroom application”, “smart user sensing application”, and so on.
  • a plurality of high-quality TV applications may be displayed in the smart application mall, and the plurality of high-quality TV applications may include "applications for intelligently matching user preferences", “applications for quickly identifying user identity”, and the like.
  • the "smart morning wakeup application” can be applied to, for example, a scene where a user wakes up in the morning.
  • the “smart morning wake-up application” may include, for example: Strategy 1, the curtain remote control machine opens the curtains at 8:00; Strategy 2, in the room where the user appears, start the TV and broadcast the morning news; Strategy 3, at 8: Start the heating function of the electric water heater at 00 o'clock. That is to say, the curtain remote control machine, TV, and electric water heater can perform corresponding operations respectively to realize the function of "smart morning rise application".
  • the function of the "smart morning wakeup application” may include, for example, providing sunlight indoors at a suitable time, and providing users with the latest current affairs and news in a humanized manner.
  • the "comfort bathroom application” can be applied to a bathroom scene, for example.
  • This "comfort bathroom application” may include, for example, strategy 1, when the user appears in the bathroom, turn on the air purifier; strategy 2, turn off the air purifier after the user leaves the bathroom for 0.5 hours; strategy 3, when the user appears In the case of the bathroom, turn on the smart lamp; strategy 4, turn off the lighting function of the smart lamp 2 minutes after the user leaves the bathroom; strategy 5, turn on the heating function of the electric water heater when the user appears in the bathroom; strategy 6, When the user leaves the bathroom, the heating function of the water heater is turned off, and the heat preservation function of the water heater is turned on.
  • the air purifier, TV, and electric water heater can perform corresponding operations respectively to realize the function of "comfortable bathroom application".
  • the function of the "comfort bathroom application” may include, for example, providing a comfortable washing environment for the user when the user appears in the bathroom, and putting the electrical appliances in the bathroom into a dormant state after the user leaves the bathroom.
  • the “smart user sensing application” can be applied to user identification scenarios, for example.
  • the “smart user sensing application” may include, for example, strategy 1, when the smart speaker receives an abnormal sound, turn on the smart camera 1 closest to the smart speaker; strategy 2, in which the smart camera 1 cannot capture In the case of the target user, the smart speaker broadcasts the location of the abnormal sound; strategy 3, after the smart camera 1 receives the location data of the abnormal sound, according to the location of the smart speaker relative to the smart camera 1, and the Adjust the shooting angle of the abnormal sound to capture the target user's figure; Strategy 4, when the smart camera 1 cannot continue to follow the target user's figure, indicate to the smart camera 2 the target user relative to the smart camera 1 Orientation; Strategy 5, after the smart camera 2 receives the orientation of the target user relative to the smart camera 1, according to the orientation of the smart camera 1 relative to the smart camera 2, and the target user relative to the smart The orientation of the camera 1 is adjusted to adjust the shooting angle to capture the figure of the target user.
  • the smart speaker and multiple smart camera devices can perform corresponding operations respectively to realize the function of "smart user sensing application".
  • the function of the "smart user sensing application” may include, for example, that the target user can follow the behavior of the target user relatively flexibly when the target user appears in a multi-room building.
  • the "smart matching user preference application” can be applied, for example, to a scenario that processes user preference data.
  • the “smart matching user preference application” may include, for example, strategy 1, when the smart speaker generates user preference data 1, sending keywords in the user preference data 1 to the TV; strategy 2, generating user preference data on the TV In the case of 2, the keywords in the user preference data 2 are sent to the smart speaker.
  • smart speakers and TVs can perform corresponding operations respectively to achieve the function of "smart matching user preferences”.
  • the function of "smart matching user preference application” may include, for example, quickly synchronizing user preference data on multiple Internet of Things devices, and pushing information for users relatively flexibly and humanely.
  • the "quickly identifying user identity application” can be applied, for example, to the scenario of user identity verification.
  • the “quickly identifying user identity application” may include, for example: Strategy 1, after the smart speaker verifies the voiceprint information, the user information is sent to the TV.
  • Strategy 2 After the smart camera verifies the facial information, the user information is sent to the TV.
  • smart speakers, smart camera devices, and TVs can perform corresponding operations respectively to achieve the function of "quickly identifying user identity applications”.
  • the function of the "quickly identifying user identity application” may include, for example, quickly synchronizing user identity verification results on multiple Internet of Things devices, and relatively flexible and convenient execution of the user identity verification process.
  • the method further includes: controlling the device to store a plurality of policy operation documents, the policy operation document being an instruction document of the policy, the policy including one or more execution conditions, one or more execution operations, and execution device ,
  • the policy operation document is used to indicate that when the one or more execution conditions are established, the execution device executes the one or more execution operations;
  • the control device receives the input keyword, the key A word is used to indicate at least one of the following: the title of the policy operation document, the type of the execution device, the parameter in the execution condition, at least one execution condition of the one or more execution conditions, the execution The type of operation;
  • the control device determines a target strategy operation document among the plurality of strategy operation documents according to the keyword, and the target strategy operation document corresponds to the target strategy; the control device feeds back the target strategy To the user.
  • the policy operation document may be, for example, an application package of a smart application.
  • the policy operation document may be, for example, a summary of a smart application, and the summary includes information such as a title, device type, device identification, parameters, conditions, and operations corresponding to the smart application.
  • control device can search for at least one policy operation document that matches the keyword among multiple policy operation documents according to the keywords input by the user, and provide the at least one policy operation document to the user.
  • the GUI may also include a search box 1003.
  • the user can search for content or keywords such as the title, device type, device identification, parameters, conditions, operations, etc. of the smart application in the search box 1003.
  • the user can find the "smart morning wakeup application" shown in FIG. 10 through one or more of the following keywords: curtains, TV, water heater, curtain remote control, morning wakeup, news, time, etc.
  • the user can find the "comfort bathroom application” shown in FIG. 10 through one or more of the following keywords: toilet, air purifier, lamp, water heater, heating, lighting, etc.
  • the user can find the "smart user sensing application" shown in Figure 10 through one or more of the following keywords: speaker, orientation, user sensing, camera, shooting, shooting angle, tracking, etc. .
  • the user can find the "smart matching user preference application" shown in FIG. 10 through one or more of the following keywords: user preference, TV, speakers, data synchronization, etc.
  • the user can find the "quick user identification application" shown in Figure 10 through one or more of the following keywords: identity verification, speaker, camera, camera, television, face recognition, sound Pattern recognition, data synchronization, etc.
  • control device feeding back the target strategy to the user includes: displaying information related to the target strategy on a display screen.
  • control device may display the information corresponding to the searched target strategy on the screen.
  • the user can instruct the control device to load the target strategy through gestures and other operations.
  • the introduction of the target smart application is displayed on the user interface.
  • the control device determines a first Internet of Things device among the plurality of Internet of Things devices according to the target policy, the first Internet of Things device conforms to the information of the target device, and the first Internet of Things device Used to perform the target operation.
  • the control device can be based on the target operation indication information, the preset condition indication information, and the target device indication information.
  • the first Internet of Things device is determined from a plurality of Internet of Things devices.
  • the information of the target device indicates a water heater
  • the control device has established a wireless connection with the target water heater in 901, so the control device can determine the target water heater as the first Internet of Things device.
  • the information of the target device indicates the TV
  • the content of the target operation is shooting images
  • the control device has established wireless connections with multiple TVs in 901 but only the target TV of the multiple TVs has the shooting function, then the control device The target TV can be determined as the first Internet of Things device.
  • the information of the target device indicates that the device is identified as identification A, and the control device has established a wireless connection with the target device with identification A in 901, so the control device can determine the target device as the first Internet of Things device.
  • the information of the target device indicates that the face verification is passed, and the control device has established a wireless connection with the target TV that has the function of face recognition and the function of acquiring image parameters in 901, so the control device can determine the target TV as The first IoT device.
  • the control device determines a second Internet of Things device among the plurality of Internet of Things devices according to the preset condition, and the second Internet of Things device has the ability to provide values of the h parameters.
  • the control device can determine the second internet of things device from a plurality of internet of things devices according to the indication information of the preset condition.
  • the ability to provide the values of the h parameters may mean that the second Internet of Things device can obtain the specific values of the h parameters.
  • the second Internet of Things device may also perform other processing on the acquired specific values of the h parameters, such as determining whether a preset condition is established, or instructing other Internet of Things devices to perform operations when the preset condition is established.
  • the method further includes: The h parameters are determined according to the preset condition.
  • the parameters in the preset conditions are displayed. For example, if the temperature is greater than 25°C, in this condition, the display includes the temperature parameter. Therefore, the control device may determine, according to the preset condition, that the device capable of obtaining the display parameters is the first Internet of Things device, and/or determine that the device capable of providing display parameters is the second Internet of Things device.
  • the preset condition can be judged by other implicit parameters.
  • the control device can determine the implicit parameter used to determine whether the preset condition is established; further, the device that can obtain the implicit parameter is the first Internet of Things device, and/or the device that can provide the implicit parameter is determined It is the second IoT device.
  • the control device can choose to execute 903a, or execute 903b, or execute 903a and 903b.
  • control device may execute 904a, and the control device sends first communication instruction information to the first Internet of Things device, where the first communication instruction information is used to instruct the first Internet of Things device
  • the device communicates with other IoT devices other than the first IoT device.
  • control device determines that the first Internet of Things device is related to the target strategy according to the target strategy, and the control device can instruct the first Internet of Things device to establish a wireless communication connection with other related Internet of Things devices.
  • the first communication indication information is used to instruct the first Internet of Things device to establish a wireless communication connection with the second Internet of Things device.
  • the first Internet of Things device establishes a wireless communication connection with the second Internet of Things device according to the first communication instruction information.
  • the control device needs to execute 903b.
  • the first communication indication information includes the device information of the second Internet of Things device (such as the device identifier of the second Internet of Things device, device type, etc.), so that the first Internet of Things device can be based on The device information of the second Internet of Things device sends a wireless communication connection request to the second Internet of Things device.
  • the device information of the second Internet of Things device such as the device identifier of the second Internet of Things device, device type, etc.
  • the first communication indication information includes K pieces of device information of K pieces of equipment to be connected, and the K pieces of equipment information correspond to the K pieces of equipment to be connected one-to-one, and the K pieces of equipment to be connected include the first piece of information.
  • the Internet of Things equipment is
  • the first Internet of Things device respectively establishes wireless communication connections with the K to-be-connected devices according to the first communication instruction information.
  • control device can determine multiple Internet of Things devices that meet the conditions, and send the device information of the multiple Internet of Things devices to the first Internet of Things device, so that the first Internet of Things device can quickly establish connections with multiple Internet of Things devices.
  • Wireless communication connection between devices can be
  • the first communication indication information is further used to instruct the first Internet of Things device to request the second Internet of Things device to provide specific values of the h parameters.
  • the control device can instruct the first Internet of Things device to only request the second Internet of Things device to provide h parameters.
  • specific values of the h'-h parameters may request other IoT devices except the second IoT device.
  • the first communication indication information is used to instruct the first Internet of Things device to find: a type 1 Internet of Things device that provides the values of the h parameters, or to determine whether the preset condition is established Type 2 IoT device, or, if the preset condition is established, a Type 3 IoT device that instructs the first IoT device to perform the target operation.
  • the first Internet of Things device autonomously searches for the Internet of Things device that provides the values of h parameters; in another possible situation, the second Internet of Things device determines whether the preset condition is true or not. , The first Internet of Things device only receives the judgment result of whether the preset condition is established; in another possible situation, the operation corresponding to the establishment of the preset condition is instructed by the second Internet of Things device. In this case, the control device may not execute 903b.
  • the first Internet of Things device needs to obtain information related to the preset condition and the target operation.
  • the aforementioned type 1 IoT devices need to obtain information related to the h parameters.
  • the aforementioned type 1 IoT devices can obtain information related to the preset conditions; the type 1 IoT devices may not obtain information related to the preset conditions.
  • the target operation and information related to the target device are not obtained.
  • the foregoing two types of IoT devices need to obtain information related to the preset conditions; the two types of IoT devices may not obtain information related to the target operation and the target device.
  • the foregoing three types of IoT devices need to obtain information related to the preset conditions and the target operation; the three types of IoT devices may not obtain information related to the target device.
  • the first communication indication information includes indication information of the h parameters or indication information of the preset condition.
  • control device determines h parameters for judging whether the preset condition is established according to the preset condition.
  • control device determines the display parameters and/or implicit parameters related to the preset conditions according to the preset conditions.
  • the first Internet of Things device determines h parameters for judging whether the preset condition is established according to the preset condition.
  • the technical solution for determining the h parameters by the first Internet of Things device to determine whether the n conditions are true is similar to the technical solution for determining the h parameters by the control device, and it is not necessary to repeat them here.
  • the first Internet of Things device sends a first broadcast message according to the first communication indication information, where the first broadcast message is used to indicate any one of the following: looking for values for providing the h parameters
  • the Internet of Things device searching for an Internet of Things device that determines whether the preset condition is established, and looking for an Internet of Things device that instructs the first Internet of Things device to perform the target operation when the preset condition is established;
  • the first Internet of Things device receives a first target feedback message sent by the second Internet of Things device, where the first target feedback message is a feedback for the first broadcast message; the first Internet of Things device is based on the The first target feedback message establishes a wireless communication connection with the second Internet of Things device.
  • the second Internet of Things device receives the first broadcast message sent by the first Internet of Things device; the second Internet of Things device sends the first broadcast message to the first Internet of Things device
  • the first target feedback message is sent, and the first target feedback message is used to indicate any one of the following: the second Internet of Things device provides the values of the h parameters, and the second Internet of Things device determines If the preset condition is established, the second Internet of Things device instructs the first Internet of Things device to perform the target operation when the preset condition is established; the second Internet of Things device establishes the first A wireless communication connection between an Internet of Things device and the second Internet of Things device.
  • a possible implementation is that after determining the values of h parameters that need to be provided by the first Internet of Things device, it can broadcast to find the Internet of Things devices used to provide the values of the h parameters; the second Internet of Things device may Providing the values of the h parameters, the second Internet of Things device can send feedback information to the first Internet of Things device, and then the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device.
  • Another possible implementation is that after determining that the first Internet of Things device needs to know whether the preset condition is established, it can broadcast to search for the Internet of Things device that determines whether the preset condition is established; the second Internet of Things device can determine Whether the preset condition is established, the second Internet of Things device may send feedback information to the first Internet of Things device, and then the first Internet of Things device may establish a wireless communication connection with the second Internet of Things device.
  • Another possible implementation manner is that, after determining that the first Internet of Things device needs to perform the target operation when the preset condition is established, it may broadcast searching for instructions to the first Internet of Things device when the preset condition is established.
  • An Internet of Things device that performs the target operation; a second Internet of Things device can instruct the first Internet of Things device to perform the target operation when the preset conditions are established, and the second Internet of Things device
  • the device may send feedback information to the first Internet of Things device, and then the first Internet of Things device may establish a wireless communication connection with the second Internet of Things device.
  • the target strategy includes L conditions, at least one operation, and information about the target device, L is an integer greater than 1, the L conditions include the preset conditions, and the at least one operation includes all
  • the L conditions include H parameters
  • the H parameters include the h parameters
  • the target strategy is used to indicate that when the L conditions are all established, the target device executes The at least one operation
  • the first communication instruction information is used to instruct to perform the at least one operation when the L conditions are all met
  • the first broadcast message is used to find any one of the following Internet of Things Device: an Internet of Things device that provides the value of any one of the H parameters, an Internet of Things device that determines whether any one of the L conditions is established, and when the L conditions are established, according to the
  • the target strategy indicates an Internet of Things device that instructs the first Internet of Things device to perform the at least one operation; the first Internet of Things device receives multiple first feedback messages sent by multiple Internet of Things devices, and the multiple first A feedback message corresponds to the plurality of IoT devices one-to-one, the
  • the above-mentioned method can enable the first Internet of Things device to establish a connection with multiple Internet of Things devices.
  • the first Internet of Things device needs to be provided with Parameter 1, Parameter 2, and Parameter 3.
  • the second Internet of Things device can only provide Parameter 2, and the first Internet of Things device broadcasts to provide one or more of Parameter 1, Parameter 2, and Parameter 3.
  • IoT devices with three parameters, and receive feedback from IoT device 1 and IoT device 2.
  • the feedback of the Internet of Things device 1 instructs the Internet of Things device 1 to provide parameter 1.
  • the feedback of the Internet of Things device 2 indicates that the Internet of Things device 2 provides parameter 2 and parameter 3.
  • the first Internet of Things device may establish a wireless communication connection with the Internet of Things device 1 and the Internet of Things device 2 respectively.
  • the above process of providing parameters can also be replaced with a process of judging whether the conditions are established.
  • control device may execute 904b, and the control device sends second communication instruction information to the second Internet of Things device, and the second communication instruction information is used to indicate the second Internet of Things device.
  • the device communicates with other IoT devices except the second IoT device.
  • control device determines that the second Internet of Things device is related to the predetermined condition according to the preset conditions in the target strategy, and the control device can instruct the second Internet of Things device to establish a connection with other related Internet of Things devices.
  • Wireless communication connection
  • the second communication indication information is used to instruct the second Internet of Things device to establish a wireless communication connection with the first Internet of Things device.
  • the second Internet of Things device establishes a wireless communication connection with the first Internet of Things device according to the second communication instruction information.
  • the control device needs to execute 903a.
  • the second communication indication information includes the device information of the first Internet of Things device (such as the device identifier of the first Internet of Things device, device type, etc.), so that the second Internet of Things device can be based on The device information of the first Internet of Things device sends a wireless communication connection request to the first Internet of Things device.
  • the device information of the first Internet of Things device such as the device identifier of the first Internet of Things device, device type, etc.
  • the second communication indication information includes the information of the target device, so that the second Internet of Things device can broadcast according to the information of the target device to find information that matches the information of the target device.
  • the Internet of Things device further sends a wireless communication connection request to the first Internet of Things device.
  • the second communication indication information includes K pieces of device information of the K pieces of equipment to be connected, and the K pieces of equipment information correspond to the K pieces of equipment to be connected in a one-to-one correspondence, and the K pieces of equipment to be connected include the first piece of information.
  • the second Internet of Things device respectively establishes wireless communication connections with the K to-be-connected devices according to the second communication instruction information.
  • control device can determine multiple Internet of Things devices that meet the conditions, and send the device information of the multiple Internet of Things devices to the second Internet of Things device, so that the second Internet of Things device can quickly establish connections with multiple Internet of Things devices.
  • Wireless communication connection between devices can be
  • the second communication instruction information is used to instruct the second Internet of Things device to find: 4 types of Internet of Things devices that receive the values of the h parameters, or 5 types of things that receive the indication information that the conditions are satisfied
  • the condition establishment indication information is used to indicate that the preset condition is established, or 6 types of IoT devices that receive operation indication information, and the operation indication information is used to indicate the execution of the target operation.
  • the second Internet of Things device autonomously searches for the Internet of Things device that receives the values of h parameters; in another possible situation, the second Internet of Things device determines whether the preset condition is true or not.
  • the IoT device that meets the requirements only receives the judgment result of whether the preset condition is established; in another possible situation, the operation corresponding to the establishment of the preset condition is instructed by the second IoT device, and the IoT device that meets the requirement only Receive instructions for the operation.
  • the control device may not execute 903a.
  • the foregoing 4 types of IoT devices need to obtain information related to the preset conditions, target operations, and the target device in advance.
  • the foregoing 4 types of IoT devices may obtain information related to the h parameters in advance .
  • the above five types of IoT devices need to obtain information related to the preset conditions, the target operation, and the target device in advance; the five types of IoT devices may not obtain information related to the h parameters in advance.
  • the aforementioned 6 types of IoT devices may not obtain information related to the target operation, the preset conditions, and the h parameters in advance.
  • the second communication indication information includes indication information of the h parameters or indication information of the preset condition.
  • the second communication indication information may be used to instruct the second Internet of Things device to provide the h parameter values to other Internet of Things devices.
  • the second communication instruction information may be used to instruct the second Internet of Things device to provide condition establishment instruction information to other Internet of Things devices, and the condition establishment instruction information is used to indicate a determination result that the preset condition is established.
  • the second Internet of Things device determines h parameters for judging whether the preset condition is established according to the preset condition.
  • the technical solution for determining the h parameters by the second Internet of Things device to determine whether the n conditions are true is similar to the technical solution for determining the h parameters by the control device, and it is not necessary to repeat them here.
  • the second Internet of Things device sends a second broadcast message according to the second communication instruction information, where: the second communication instruction information is used to instruct the second Internet of Things device to send the In the case of the values of h parameters, the second broadcast message is used to find a device that receives the values of the h parameters; when the second communication instruction information is used to instruct the second Internet of Things device to send In the case of condition establishment indication information, the second broadcast message is used to find a device that receives the condition establishment indication information, the condition establishment indication information is used to indicate that the preset condition is established; and the second communication indication information is used In the case of instructing that when the preset condition is established, the second Internet of Things device sends operation instruction information, the second broadcast message is used to find a device that receives the operation instruction information, and the operation instruction information is used Instructs to perform the target operation; the second Internet of Things device receives a second target feedback message sent by the first Internet of Things device, the second target feedback message is a feedback for the second broadcast message; the first 2.
  • the first Internet of Things device receives the second broadcast message sent by the second Internet of Things device; the first Internet of Things device sends the second Internet of Things device to the second Internet of Things device
  • the second target feedback message is sent, and the second target feedback message is used to indicate any one of the following: the first Internet of Things device needs the values of the h parameters, and the first Internet of Things device needs all the values of the h parameters.
  • the first Internet of Things device performs the target operation or needs to receive the operation instruction information; the first Internet of Things device establishes the first Internet of Things device and the first Internet of Things device 2.
  • Wireless communication connection between IoT devices are examples of the first Internet of Things device.
  • a possible implementation is that after determining that the second Internet of Things device needs to provide the values of h parameters, it can broadcast to find the Internet of Things devices that receive the values of the h parameters; the first Internet of Things device needs to receive the h For the value of each parameter, the first Internet of Things device can send feedback information to the second Internet of Things device, and then the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device.
  • Another possible implementation manner is that after determining that the second Internet of Things device needs to determine whether the preset condition is established, it can broadcast to search for the Internet of Things device that receives the judgment result of whether the preset condition is established; the first Internet of Things device The device needs to receive the judgment result, the first Internet of Things device can send feedback information to the second Internet of Things device, and then the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device.
  • Another possible implementation manner is that after determining that the second Internet of Things device needs to instruct other Internet of Things devices to perform the target operation when the preset conditions are established, it may broadcast to search for the Internet of Things that can perform the target operation.
  • the networked device may establish a wireless communication connection with the second Internet of Things device.
  • FIG. 11 is a schematic flowchart of a method 1100 for controlling an Internet of Things device according to an embodiment of the present application.
  • the first Internet of Things device obtains first indication information of a target strategy, where the target strategy includes preset conditions, target operations, and information about the target device, and the target strategy is used to indicate that when the preset conditions are established Next, the target device performs the target operation, whether the preset condition is satisfied is determined by h parameters, and the first indication information is used to indicate that the target operation is performed when the preset condition is satisfied, The first Internet of Things device conforms to the information of the target device, and the first Internet of Things device is used to perform the target operation.
  • FIG. 9 has been used to describe in detail multiple examples of the target strategy and the specific implementation manner for the control device to obtain the target strategy, and it is not necessary to repeat them here.
  • the first Internet of Things device can directly obtain the complete target strategy.
  • the first Internet of Things device downloads the smart application as shown in FIG. 10 from the server.
  • the control device after acquiring the target policy, sends the target policy to the first Internet of Things device.
  • the first Internet of Things device may obtain part of the information in the target policy. In other words, the first Internet of Things device may not obtain information that is irrelevant to the first Internet of Things device. For example, since the first Internet of Things device may be the executor of the target operation, the first Internet of Things device may not obtain the relevant information of the target device in the target policy.
  • the first Internet of Things device receives the first indication information sent by the control device, the second Internet of Things device, or the server.
  • control device sends the first instruction information to the first Internet of Things device, or the second Internet of Things device sends the first instruction information to the first Internet of Things device, or,
  • the server sends the first indication information to the first Internet of Things device.
  • the control device may send information related to the target strategy to the second Internet of Things device, and then the second Internet of Things device sends the first indication information to the first Internet of Things device.
  • the first Internet of Things device stores data related to the first indication information.
  • Fig. 12 shows a communication system including a plurality of Internet of Things devices.
  • the communication system shown in FIG. 12 may not include a control device.
  • the user's mobile phone is turned off, or the user carries the mobile phone with him when going out, so that there is no available control device at home temporarily.
  • the first Internet of Things device stores the first indication information, once the first Internet of Things device determines that the preset condition in the target strategy is established, the first Internet of Things device can perform the target operation.
  • the user when the user first obtains the target strategy or smart application, he may need to control the device to complete the wireless connection and initial configuration of the IoT device; once the configuration related to the target strategy or the smart application is in the first thing After the networked device is completed, even if there is no control device in the communication system, the first Internet of Things device can still perform intelligent operations. Therefore, in the case that there is no available control device in the communication system shown in FIG. 12, the first Internet of Things device and other Internet of Things devices (such as the second Internet of Things device above or below) can also cooperate to execute the target strategy. The corresponding operation.
  • the second Internet of Things device sends h parameter values to the first Internet of Things device, where the h parameter values are specific values of the h parameters, and the h parameter values are the same as those of the h parameters.
  • the h parameters have a one-to-one correspondence.
  • the first Internet of Things device receives the h parameter values sent by the second Internet of Things device.
  • the method further includes: The networked device sends first communication information, where the first communication information is used to indicate that the first IoT device needs to be provided with the values of the h parameters.
  • the first communication information may be used to instruct the second Internet of Things device to send the values of the h parameters to the first Internet of Things device.
  • the second Internet of Things device may send the h parameters to the first Internet of Things device in response to the first communication information sent by the first Internet of Things device.
  • the first communication information includes indication information of the preset condition
  • the second Internet of Things device before the second Internet of Things device sends h parameter values to the first Internet of Things device, the method further includes: The second Internet of Things device determines the values of the h parameters according to the preset condition.
  • the second Internet of Things device can determine the h parameters that need to be provided to the first Internet of Things device according to the preset condition.
  • the embodiments in which the second Internet of Things device determines the display parameters and/or implicit parameters related to the preset conditions according to the preset conditions have been described above. There is no need to go into details here.
  • the second Internet of Things device sending h parameter values to the first Internet of Things device includes: when the preset condition is established, the second Internet of Things device sends the first Internet of Things device to the first Internet of Things device.
  • An Internet of Things device sends the h parameter values.
  • the second Internet of Things device may send the h parameter values to the first Internet of Things device only when the preset conditions are established. In this way, the signaling loss between the second Internet of Things device and the first Internet of Things device can be reduced.
  • the first communication information further includes periodic transmission instruction information, and the periodic transmission instruction information is used to instruct the second Internet of Things device to send the h pieces of information to the first Internet of Things device according to a preset period. Parameter value.
  • the second Internet of Things device may periodically provide the h parameter values to the first Internet of Things device.
  • the first Internet of Things device and the second Internet of Things device communicate through an open Internet of Things communication protocol.
  • the first Internet of Things device receiving h parameter values sent by the second Internet of Things device includes: the first Internet of Things device receives the second Internet of Things according to an open Internet of Things communication protocol The value of the h parameters sent by the device.
  • the second Internet of Things device sending the h parameter values to the first Internet of Things device includes: the second Internet of Things device sends the value of the h parameters to the first Internet of Things device according to an open Internet of Things communication protocol.
  • the networked device sends the h parameter values.
  • the open IoT communication protocol can at least be open to developers of multiple IoT devices. Furthermore, the open IoT communication protocol can be at least partially open to the public, that is, at least part of the open IoT communication protocol is in a non-secret state.
  • the open IoT communication protocol can be used for communication between multiple electronic devices, and the multiple electronic devices can be provided by the same or different vendors.
  • the open IoT communication protocol may be, for example, the HiLink communication protocol.
  • the openness of the open IoT communication protocol may be similar to the openness of global protocols such as Android 4.0 and long term evolution (LTE) communication protocol.
  • the Android 4.0 protocol can be understood as an open application development protocol. Multiple third-party application developers can complete application development on the basis of the Android 4.0 protocol.
  • the LTE communication protocol is also an open communication protocol. Multiple communication service providers can follow the LTE communication protocol to provide users with communication services.
  • the open IoT communication protocol may include any of the following: parameter set, condition set, operation set, device set, and so on.
  • the open IoT communication protocol can define as much content as possible in advance.
  • the parameter set may include as many parameters as possible.
  • Each parameter can have a specific value.
  • the value can be, for example, a numeric value, text, function identifier, binary value, code, etc.
  • the parameter set may include, for example, at least one of the following: temperature parameters, humidity parameters, time parameters, audio parameters, image parameters, video parameters, brightness parameters, event parameters, and so on. The specific implementation manner of each parameter has been described above through the example shown in FIG. 9, and it is not necessary to repeat it in detail here.
  • condition set can include as many conditions as possible.
  • Each condition can include display parameters and/or implicit parameters.
  • FIG. 9 has been used to illustrate the specific implementation manners of various conditions, and it is not necessary to repeat them here.
  • the Internet of Things communication protocol may also define an association relationship between conditions and parameters.
  • the target condition in the condition set corresponds to one or more target parameters in the parameter set.
  • the operation set may include as much operation instruction information as possible.
  • Each operation instruction information can be used to indicate one or more operations. The specific implementation manners of various operations have been described above through the example shown in FIG. 9, and it is not necessary to repeat them in detail here.
  • the Internet of Things communication protocol may also define an association relationship between the conditions and the operation instruction information.
  • the target operation indication information in the operation set corresponds to one or more target conditions in the condition set.
  • the device collection may include as much device information as possible.
  • Each device information can be used to indicate a device or a type of device with the same or similar characteristics.
  • the criteria for classifying device types may include, for example, the model of the device, the function of the device, the identification of the device, and so on.
  • the Internet of Things communication protocol may also define the association relationship between the operation instruction information and the device information.
  • the target operation indication information in the operation set corresponds to one or more target device information in the operation set.
  • the first Internet of Things device and the second Internet of Things device perform data communication through an open Internet of Things communication protocol, which may mean that the first Internet of Things device receives a message sent by the second Internet of Things device according to (or through) the open Internet of Things communication protocol; correspondingly; Ground, the second Internet of Things device broadcasts a message according to (or through) the open Internet of Things communication protocol, and/or, the second Internet of Things device sends a message to the first Internet of Things device according to (or through) the open Internet of Things communication protocol.
  • the first Internet of Things device and the second Internet of Things device carry out data communication through the Open Internet of Things communication protocol.
  • the first Internet of Things device broadcasts messages according to (or through) the Open Internet of Things communication protocol, and/or the first thing
  • the Internet of Things device sends a message to the second Internet of Things device according to (or through) the open Internet of Things communication protocol; accordingly, the second Internet of Things device receives the message sent by the first Internet of Things device according to (or through) the open Internet of Things communication protocol .
  • the first Internet of Things device and the second Internet of Things device may be provided by a supplier of the same brand, and the first Internet of Things device or the second Internet of Things device communicates with the open Internet of Things Agreements can be provided by suppliers of different brands.
  • the first Internet of Things device and the second Internet of Things device may be provided by suppliers of different brands.
  • the first Internet of Things device determines whether the preset condition is established according to the values of the h parameters.
  • the first Internet of Things device executes the target operation.
  • the second Internet of Things device can provide the first Internet of Things device with a basis for determining the preset condition; the establishment of the preset condition can trigger the first Internet of Things device to perform the target operation.
  • the method further includes: the first Internet of Things device receives the third The value of the s parameter sent by the Internet of Things device, the value of the s parameter is the specific value of the s parameters, and the value of the s parameter corresponds to the s parameters one-to-one; the first Internet of Things
  • the device judging whether the preset condition is established according to the values of the h parameters includes: the first Internet of Things device judging the preset according to the values of the h parameters and the values of the s parameters Whether the conditions are met.
  • the first Internet of Things device may obtain the judgment basis of the preset condition from multiple Internet of Things devices.
  • the first Internet of Things device can receive h parameter values sent by the second Internet of Things device, and receive s parameter values sent by the third Internet of Things device. Due to the existence of the target strategy, the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device, and the first Internet of Things device can establish a wireless communication connection with the third Internet of Things device. It can be seen that establishing a wireless communication connection between multiple IoT devices through a strategy can have relatively high convenience.
  • the method further includes: the first Internet of Things device sending the execution result of the target operation to the fourth Internet of Things device.
  • the fourth Internet of Things device receives the execution result of the target operation, and executes other operations corresponding to the target operation.
  • the fourth Internet of Things device can be triggered to perform other operations for the target operation.
  • the second Internet of Things device may send h parameter values to the first Internet of Things device, and the first Internet of Things device may send the execution result of the target operation to the fourth Internet of Things device. Therefore, the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device, and the first Internet of Things device can establish a wireless communication connection with the fourth Internet of Things device.
  • a more complex communication network between the IoT devices can be deduced.
  • multiple strategies can be used to quickly establish a relatively complex communication network between multiple Internet of Things devices, which is conducive to providing more complex intelligent services.
  • FIG. 15 is a schematic flowchart of a method 1500 for controlling an Internet of Things device according to an embodiment of the present application.
  • a second Internet of Things device obtains second indication information of a target strategy, where the target strategy includes preset conditions, target operations, and information about the target device, and the target strategy is used to indicate that when the preset conditions are established
  • the target device executes the target operation, and the second instruction information is used to instruct the second Internet of Things device to determine whether the preset condition is established.
  • the second Internet of Things device may receive the second indication information sent by the control device, the first Internet of Things device or the server.
  • the second Internet of Things device stores data related to the second indication information.
  • the second IoT device can directly obtain the complete target strategy.
  • the second Internet of Things device downloads the smart application as shown in FIG. 10 from the server.
  • the control device sends the target policy to the second Internet of Things device.
  • the second Internet of Things device may obtain part of the information in the target policy. In other words, the second Internet of Things device may not obtain information that is not related to the preset conditions. For example, because the second Internet of Things device is not the executor of the target operation, the second Internet of Things device may not obtain information related to the target operation in the target policy.
  • the first Internet of Things device acquires first indication information of a target strategy, where the first indication information is used to indicate that the target operation is performed when the preset condition is established, and the first Internet of Things device According to the information of the target device, the first Internet of Things device is used to perform the target operation.
  • the second Internet of Things device sends condition establishment indication information to the first Internet of Things device, where the condition establishment indication information is used to indicate that the preset condition is established.
  • the first Internet of Things device receives the condition establishment indication information sent by the second Internet of Things device.
  • the second Internet of Things device executes the judgment process of the preset conditions, and sends the judgment result to the first Internet of Things device.
  • the method further includes: The device sends second communication information, where the second communication information is used to indicate that the first Internet of Things device needs to be provided with the judgment result of the preset condition.
  • the second Internet of Things device receives the second communication information sent by the first Internet of Things device; the second Internet of Things device determines to send to the first Internet of Things device according to the second communication information. The device sends the judgment result of whether the preset condition is satisfied.
  • the second communication information may be used to instruct the second Internet of Things device to determine whether a preset condition is established, and to send the judgment result of the preset condition to the first Internet of Things device.
  • the second Internet of Things device may respond to the second communication information sent by the first Internet of Things device and send the condition establishment indication information to the first Internet of Things device.
  • the second instruction information further includes information of the target device
  • the method further includes: The second Internet of Things device determines to send the judgment result of whether the preset condition is established to the first Internet of Things device according to the information of the target device.
  • the second Internet of Things device can autonomously search for an Internet of Things device that receives the condition establishment indication information.
  • the first Internet of Things device and the second Internet of Things device communicate through an open Internet of Things communication protocol.
  • the first Internet of Things device receiving condition establishment indication information sent by the second Internet of Things device includes: the first Internet of Things device receives the second Internet of Things device according to an open Internet of Things communication protocol The sent condition establishment indication information.
  • the second Internet of Things device sending condition establishment indication information to the first Internet of Things device includes: the second Internet of Things device sends to the first Internet of Things device according to an open Internet of Things communication protocol The condition is met indicating information.
  • the first Internet of Things device executes the target operation according to the condition establishment indication information and the first indication information.
  • FIG. 16 is a schematic flowchart of a method for controlling an Internet of Things device provided by an embodiment of the present application.
  • the second Internet of Things device acquires third indication information of a target strategy, where the target strategy includes preset conditions, target operations, and information about the target device, and the target strategy is used to indicate when the preset conditions are established Next, the target device performs the target operation, and the third indication information is used to indicate that other IoT devices perform the target operation when the preset condition is established.
  • the second Internet of Things device may receive the third indication information sent by the control device, the first Internet of Things device or the server.
  • the second Internet of Things device stores data related to the third indication information.
  • the second IoT device can directly obtain the complete target strategy.
  • the second Internet of Things device downloads the smart application as shown in FIG. 10 from the server.
  • the control device sends the target policy to the second Internet of Things device.
  • the second Internet of Things device may obtain part of the information in the target policy.
  • the second Internet of Things device may not obtain information irrelevant to the preset conditions and target operations.
  • the second Internet of Things device sends operation instruction information to the first Internet of Things device, where the operation instruction information is used to instruct the first Internet of Things device to perform all operations.
  • the target operation is used to instruct the first Internet of Things device to perform all operations.
  • the first Internet of Things device receives the operation instruction information sent by the second Internet of Things device.
  • the second Internet of Things device executes the judgment process of the preset condition, and in the case that the preset condition is established, instructs the first Internet of Things device to perform the target operation.
  • the third instruction information further includes information of the target device, and before the second Internet of Things device sends operation instruction information to the first Internet of Things device, the method further includes: 2.
  • the Internet of Things device determines to provide data to the first Internet of Things device according to the information of the target device.
  • the second Internet of Things device can autonomously search for the Internet of Things device that receives the operation instruction information.
  • the first Internet of Things device and the second Internet of Things device communicate through an open Internet of Things communication protocol.
  • the first Internet of Things device receiving operation instruction information sent by the second Internet of Things device includes: the first Internet of Things device receives the second Internet of Things device according to the open Internet of Things communication protocol.
  • the operation instruction information includes: the first Internet of Things device receives the second Internet of Things device according to the open Internet of Things communication protocol. The operation instruction information.
  • the second Internet of Things device sending operation instruction information to the first Internet of Things device includes: the second Internet of Things device sends all information to the first Internet of Things device according to an open Internet of Things communication protocol.
  • the operation instructions include: the second Internet of Things device sends all information to the first Internet of Things device according to an open Internet of Things communication protocol. The operation instructions.
  • the first Internet of Things device executes the target operation according to the operation instruction information.
  • an electronic device in order to implement the above-mentioned functions, includes hardware and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Those skilled in the art can use different methods for each specific application in combination with the embodiments to implement the described functions, but such implementation should not be considered as going beyond the scope of the present application.
  • the electronic device 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 module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 17 shows a schematic diagram of a possible composition of the electronic device 1700 involved in the foregoing embodiment.
  • the electronic device 1700 may include: an acquisition module 1701, a processing module 1702, and a sending module 1703.
  • the electronic device 1700 may be, for example, the control device described above.
  • the acquiring module 1701 may be used to acquire multiple device registration information, the multiple device registration information corresponding to multiple IoT devices, and the device registration information is used to indicate M input parameters and/or corresponding IoT devices. Or N output parameters, M is a positive integer, and N is a positive integer.
  • the processing module 1702 may be used to respectively establish wireless communication connections with the multiple Internet of Things devices.
  • the acquiring module 1701 may also be used to acquire a target strategy, the target strategy including preset conditions, target operations, and target device information, and the target strategy is used to indicate that, when the preset conditions are established, The target device executes the target operation, and whether the preset condition is satisfied is determined by h parameters.
  • the processing module 1702 may also be used to determine a first Internet of Things device and/or a second Internet of Things device among the plurality of Internet of Things devices according to the target strategy, and the first Internet of Things device conforms to the Information about the target device, the first Internet of Things device is used to perform the target operation, and the second Internet of Things device is used to provide values of the h parameters.
  • the sending module 1703 may be configured to send first communication instruction information to the first Internet of Things device, where the first communication instruction information is used to instruct the first Internet of Things device to communicate with other devices other than the first Internet of Things device.
  • Internet of Things device communication and/or, the sending module 1703 may be used to send second communication instruction information to the second Internet of Things device, where the second communication instruction information is used to instruct the second Internet of Things device to communicate with other devices. Communication with other IoT devices other than the second IoT device.
  • the electronic device provided in this embodiment is used to execute the aforementioned communication method 900, and therefore can achieve the same effect as the aforementioned implementation method.
  • FIG. 18 shows a schematic diagram of a possible composition of the electronic device 1800 involved in the foregoing embodiment.
  • the electronic device 1800 may include: a sending module 1801.
  • the electronic device 1800 may be, for example, the Internet of Things device described above.
  • the sending module 1801 may be used to send device registration information to the control device, where the device registration information is used to indicate M input parameters and N output parameters of the Internet of Things device, where M is a positive integer, and N is a positive integer.
  • the electronic device provided in this embodiment is used to execute the aforementioned communication method 900, and therefore can achieve the same effect as the aforementioned implementation method.
  • FIG. 19 shows a schematic diagram of a possible composition of the electronic device 1900 involved in the foregoing embodiment.
  • the electronic device 1900 may include: an acquisition module 1901.
  • the electronic device 1900 may be, for example, the first Internet of Things device described above.
  • the obtaining module 1901 may be used to obtain first indication information of a target strategy.
  • the target strategy includes preset conditions, target operations, and target device information.
  • the target strategy is used to indicate that when the preset conditions are established In a case, the target device performs the target operation, whether the preset condition is satisfied is determined by h parameters, and the first indication information is used to indicate that the target operation is performed when the preset condition is satisfied.
  • the electronic device 1900 conforms to the information of the target device, and the electronic device 1900 is used to perform the target operation.
  • the acquiring module 1901 may also be configured to receive h parameter values sent by the second Internet of Things device, where the h parameter values are specific values of the h parameters, and the h parameter values are the same as The h parameters have a one-to-one correspondence.
  • the processing module 1902 may be configured to determine whether the preset condition is established according to the values of the h parameters.
  • the processing module 1902 may also be configured to execute the target operation when the preset condition is established.
  • the electronic device provided in this embodiment is used to execute the method 1100 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
  • FIG. 20 shows a schematic diagram of a possible composition of the electronic device 2000 involved in the foregoing embodiment.
  • the electronic device 2000 may include: an acquisition module 2001, processing module 2002.
  • the electronic device 2000 may be, for example, the first Internet of Things device described above.
  • the obtaining module 2001 may be used to obtain first indication information of a target strategy, the target strategy including preset conditions, target operations, and target device information, and the target strategy is used to indicate that when the preset conditions are established
  • the target device performs the target operation, whether the preset condition is satisfied is determined by h parameters, and the first indication information is used to indicate that the target operation is performed when the preset condition is satisfied
  • the electronic device 2000 conforms to the information of the target device, and the electronic device 2000 is used to perform the target operation.
  • the processing module 2002 may be configured to execute the target operation according to the condition establishment indication information and the first indication information.
  • the electronic device provided in this embodiment is used to execute the method 1500 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
  • FIG. 21 shows a schematic diagram of a possible composition of the electronic device 2100 involved in the foregoing embodiment.
  • the electronic device 2100 may include: an acquisition module 2101.
  • the electronic device 2100 may be, for example, the second Internet of Things device described above.
  • the obtaining module 2101 may be used to obtain second indication information of a target strategy, the target strategy including preset conditions, target operations, and target device information, and the target strategy is used to indicate that the preset conditions are met.
  • the target device executes the target operation, and the second instruction information is used to instruct the electronic device 2100 to determine whether the preset condition is established.
  • the sending module 2102 may be configured to send condition establishment indication information to the first Internet of Things device when the preset condition is established, where the condition establishment indication information is used to indicate that the preset condition is established.
  • the electronic device provided in this embodiment is used to execute the method 1500 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
  • FIG. 22 shows a schematic diagram of a possible composition of the electronic device 2200 involved in the foregoing embodiment.
  • the electronic device 2200 may include: a receiving module 2201, processing module 2202.
  • the electronic device 2200 may be, for example, the first Internet of Things device described above.
  • the receiving module 2201 may be configured to receive operation instruction information sent by a second Internet of Things device, where the operation instruction information is used to instruct the electronic device 2200 to perform the target operation.
  • the processing module 2202 may be configured to execute the target operation according to the operation instruction information.
  • the electronic device provided in this embodiment is used to execute the method 1600 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
  • FIG. 23 shows a schematic diagram of a possible composition of the electronic device 2300 involved in the foregoing embodiment.
  • the electronic device 2300 may include: an acquisition module 2301.
  • the electronic device 2300 may be, for example, the second Internet of Things device described above.
  • the obtaining module 2301 may be used to obtain third indication information of a target strategy, the target strategy including preset conditions, target operations, and target device information, and the target strategy is used to indicate that when the preset conditions are established
  • the target device executes the target operation
  • the third indication information is used to indicate that when the preset condition is established, another IoT device is instructed to execute the target operation.
  • the sending module 2302 may be configured to send operation instruction information to the first Internet of Things device when the preset condition is established, where the operation instruction information is used to instruct the first Internet of Things device to perform the target operation.
  • the electronic device provided in this embodiment is used to execute the method 1600 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
  • the electronic device may include a processing module, a storage module, and a communication module.
  • the processing module can be used to control and manage the actions of the electronic device, for example, can be used to support the electronic device to execute the steps executed by the above-mentioned units.
  • the storage module can be used to support the electronic device to execute the storage program code and data.
  • the communication module can be used to support the communication between electronic devices and other devices.
  • the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on.
  • the storage module may be a memory.
  • the communication module may specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, and other devices that communicate with other electronic devices.
  • the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1.
  • This embodiment also provides a computer program product, which when the computer program product runs on a computer, causes the computer to execute the above-mentioned related steps, so as to realize the method of voice control device in the above-mentioned embodiment.
  • the embodiments of the present application also provide a device.
  • the device may specifically be a chip, component or module.
  • the device may include a processor and a memory connected to each other.
  • the memory is used to store computer execution instructions.
  • the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the voice control device method in the foregoing method embodiments.
  • the embodiment of the present application provides a terminal device, which has a function of implementing the behavior of the terminal device in any of the foregoing method embodiments.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to each sub-function of the above-mentioned functions.
  • the terminal device may be user equipment.
  • An embodiment of the present application also provides a communication system, which includes the network device (such as a cloud server) and a terminal device described in any of the foregoing embodiments.
  • the network device such as a cloud server
  • a terminal device described in any of the foregoing embodiments.
  • An embodiment of the present application also provides a communication system, which includes the electronic device and the server described in any of the foregoing embodiments.
  • the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method flow related to the terminal device in any of the above method embodiments is realized.
  • the computer may be the aforementioned terminal device.
  • the embodiments of the present application also provide a computer program or a computer program product including a computer program.
  • the computer program When the computer program is executed on a computer, the computer will enable the computer to implement the interaction with the terminal device in any of the above-mentioned method embodiments.
  • the computer may be the aforementioned terminal device.
  • the embodiments of the present application also provide a device, which is applied to a terminal device, and the device is coupled with a memory, and is used to read and execute instructions stored in the memory, so that the terminal device can execute any of the above-mentioned method implementations.
  • the method flow related to the terminal equipment in the example.
  • the memory may be integrated in the processor or independent of the processor.
  • the device may be a chip (such as a system on a chip (SoC)) on the terminal device.
  • SoC system on a chip
  • processors mentioned in the embodiments of this application may be a central processing unit (central processing unit, CPU), or other general-purpose processors, digital signal processors (digital signal processors, DSP), and application-specific integrated circuits ( application specific integrated circuit (ASIC), ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • CPU central processing unit
  • DSP digital signal processors
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), and electrically available Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • static random access memory static random access memory
  • dynamic RAM dynamic RAM
  • DRAM dynamic random access memory
  • synchronous dynamic random access memory synchronous DRAM, SDRAM
  • double data rate synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous connection dynamic random access memory serial DRAM, SLDRAM
  • direct rambus RAM direct rambus RAM, DR RAM
  • At least one refers to one or more, and “multiple” refers to two or more.
  • the following at least one item (a)” or similar expressions refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a).
  • at least one of a, b, or c or “at least one of a, b, and c” can all mean: a, b, c, ab( That is, a and b), ac, bc, or abc, where a, b, and c can be single or multiple.
  • the size of the sequence number of the above-mentioned processes does not mean the order of execution. Some or all of the steps can be executed in parallel or one after the other, and the execution order of the processes should be based on their functions and The internal logic is determined, and should not constitute any limitation on the implementation process of the embodiments of the present application.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Selective Calling Equipment (AREA)

Abstract

Provided are a communication method, a method for controlling an Internet of Things device, and an electronic device. An Internet of Things device can send device registration information to a control device, and the control device can instruct, according to a strategy in a smart application and according to data communication content which can be executed by the Internet of Things device, a plurality of Internet of Things devices to establish a wireless communication connection. After the Internet of Things devices establish the wireless communication connection, the strategy in the smart application can be executed in a linkage and cooperative manner and in a data communication mode. Provided is a new device communication mode, which aims to improve the flexibility of communication between Internet of Things devices.

Description

通信方法、控制物联网设备的方法、电子设备Communication method, method for controlling internet of things equipment, electronic equipment
本申请要求于2020年4月30日提交中国专利局、申请号为202010375041.4、申请名称为“通信方法、控制物联网设备的方法、电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 30, 2020, the application number is 202010375041.4, and the application name is "communication methods, methods for controlling Internet of things equipment, electronic equipment", the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本申请涉及智能家居领域、人工智能领域及电子设备领域,并且更具体地,涉及一种通信方法、控制物联网设备的方法、电子设备。This application relates to the field of smart home, artificial intelligence, and electronic equipment, and more specifically, to a communication method, a method for controlling an Internet of Things device, and an electronic device.
背景技术Background technique
随着人工智能的发展,用户对智能家居产品的要求越来越高。为此,某个智能家居产品的供应商会建立一种私有物联网(internet of things,IOT)通信协议,使得该供应商所生产的电器可以通过该私有物联网通信协议进行通信。例如,该供应商可以提供一种多电器通信方法,该方法可以利用该私有物联网通信协议,快速建立该供应商提供的多个电器之间的联系,从而用户可以通过供应商提供的多电器通信方法来控制该多个电器。With the development of artificial intelligence, users are increasingly demanding smart home products. To this end, a supplier of a smart home product will establish a private Internet of Things (IOT) communication protocol, so that the electrical appliances produced by the supplier can communicate through the private Internet of Things communication protocol. For example, the supplier can provide a multi-appliance communication method, which can use the private Internet of Things communication protocol to quickly establish the connection between the multiple appliances provided by the supplier, so that the user can use the multi-appliance provided by the supplier Communication method to control the multiple electrical appliances.
用户可能会购买多个供应商生成的电器。然而,不同供应商往往提供不同的私有物联网通信协议。因此不同供应商提供的多个电器之间往往无法通信。这不利于用户便捷地控制多个电器。Users may purchase appliances produced by multiple vendors. However, different vendors often provide different private IoT communication protocols. Therefore, it is often impossible to communicate between multiple appliances provided by different suppliers. This is not conducive for the user to conveniently control multiple electrical appliances.
发明内容Summary of the invention
本申请提供一种通信方法、控制物联网设备的方法、电子设备,目的在于提供一种新的设备通信模式,该设备通信模式可以具有相对更高的交互灵活性。This application provides a communication method, a method for controlling an Internet of Things device, and an electronic device, with the purpose of providing a new device communication mode, which can have relatively higher interaction flexibility.
第一方面,提供了一种通信方法,包括:控制设备获取多个设备注册信息,所述多个设备注册信息与多个物联网设备对应,所述设备注册信息用于指示对应的物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述控制设备获取目标策略,所述目标策略用于指示,在预设条件成立的情况下,目标设备执行目标操作;所述控制设备根据所述目标策略,在所述多个物联网设备中确定第一物联网设备为所述目标设备,所述第一物联网设备用于执行所述目标操作;所述控制设备向所述第一物联网设备发送第一通信指示信息,所述第一通信指示信息用于指示所述第一物联网设备与除所述第一物联网设备以外的其他物联网设备通信。In a first aspect, a communication method is provided, including: controlling a device to obtain multiple device registration information, the multiple device registration information corresponding to multiple IoT devices, and the device registration information is used to indicate the corresponding IoT device M input parameters and/or N output parameters of, where M is a positive integer, and N is a positive integer; the control device obtains a target strategy, and the target strategy is used to indicate that if a preset condition is established, the target The device executes a target operation; the control device determines that a first Internet of Things device is the target device among the plurality of Internet of Things devices according to the target strategy, and the first Internet of Things device is used to execute the target operation The control device sends first communication instruction information to the first Internet of Things device, where the first communication instruction information is used to instruct the first Internet of Things device to communicate with other things other than the first Internet of Things device Communication with networked devices.
在本申请中,通过获取设备注册信息来获知物联网设备之间能够传输的数据信息,进而可以指示多个物联网设备之间建立数据通信服务。策略除了可以指示设备在特定条件下指示特定的动作,还可以用于指示多个物联网设备之间的通信,提高了控制物联网设备通信的便捷度。In this application, the data information that can be transmitted between IoT devices is obtained by obtaining device registration information, which in turn can instruct multiple IoT devices to establish data communication services. In addition to instructing devices to instruct specific actions under specific conditions, policies can also be used to indicate communication between multiple IoT devices, which improves the convenience of controlling communication between IoT devices.
针对智能空调,M个输入参数可以包括温度参数、湿度参数、时间参数、事件参数等,N个输出参数可以包括温度参数、湿度参数、时间参数、事件参数等。For smart air conditioners, M input parameters may include temperature parameters, humidity parameters, time parameters, event parameters, etc., and N output parameters may include temperature parameters, humidity parameters, time parameters, event parameters, and so on.
针对电视,M个输入参数可以包括音频参数、图像参数、视频参数、时间参数、事件参数等,N个输出参数可以包括音频参数、图像参数、视频参数、时间参数、事件参数等。For TV, M input parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, etc., and N output parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
针对智能音箱,M个输入参数可以包括音频参数、时间参数、事件参数等,N个输出参数可以包括音频参数、时间参数、事件参数等。For smart speakers, M input parameters may include audio parameters, time parameters, event parameters, etc., and N output parameters may include audio parameters, time parameters, event parameters, and so on.
针对窗帘遥控机,M个输入参数可以包括时间参数、事件参数等,N个输出参数可以包括时间参数、事件参数等。For the curtain remote control machine, the M input parameters can include time parameters, event parameters, etc., and the N output parameters can include time parameters, event parameters, and so on.
针对智能热水器,M个输入参数可以包括温度参数、时间参数、事件参数等,N个输出参数可以包括时间参数、事件参数等。For the smart water heater, the M input parameters may include temperature parameters, time parameters, event parameters, etc., and the N output parameters may include time parameters, event parameters, and so on.
针对智能灯具,M个输入参数可以包括亮度参数、时间参数、事件参数等,N个输出参数可以包括亮度参数、时间参数、事件参数等。For smart lamps, M input parameters may include brightness parameters, time parameters, event parameters, etc., and N output parameters may include brightness parameters, time parameters, event parameters, and so on.
针对智能摄像装置,M个输入参数可以包括事件参数等,N个输出参数可以包括音频参数、图像参数、视频参数、时间参数、事件参数等。For the smart camera device, the M input parameters may include event parameters, etc., and the N output parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
针对智能时钟,M个输入参数可以包括事件参数等,N个输出参数可以包括时间参数、事件参数等。For the smart clock, the M input parameters may include event parameters, etc., and the N output parameters may include time parameters, event parameters, and so on.
针对湿度温度计,M个输入参数可以包括事件参数等,N个输出参数可以包括温度参数、湿度参数等。For the humidity thermometer, the M input parameters may include event parameters, etc., and the N output parameters may include temperature parameters, humidity parameters, and so on.
目标策略的提供者例如可以是第三方策略提供商,还可以由任一物联网设备的品牌供应商提供,本申请实施例对于目标策略的提供者可以不作限定。The provider of the target strategy may be, for example, a third-party strategy provider, or may also be provided by any brand supplier of the Internet of Things device. The embodiment of the present application may not limit the provider of the target strategy.
可选的,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述控制设备根据所述目标策略,在所述多个物联网设备中确定第一物联网设备,包括:所述控制设备根据所述目标操作、所述预设条件、所述目标设备的信息中的至少一个,从所述多个物联网设备中确定所述第一物联网设备。Optionally, the target strategy includes preset conditions, target operations, and target device information, and the control device determines the first Internet of Things device among the plurality of Internet of Things devices according to the target strategy, including: The control device determines the first Internet of Things device from the plurality of Internet of Things devices according to at least one of the target operation, the preset condition, and the information of the target device.
结合第一方面,在第一方面的某些实现方式中,所述第一通信指示信息用于指示所述第一物联网设备与第二物联网设备通信,所述预设条件是否成立由h个参数判断,在所述控制设备向所述第一物联网设备发送第一通信指示信息之前,所述方法还包括:所述控制设备根据所述预设条件,在所述多个物联网设备中确定第二物联网设备,所述第二物联网设备具有提供所述h个参数的取值的能力,h为正整数。With reference to the first aspect, in some implementations of the first aspect, the first communication indication information is used to instruct the first Internet of Things device to communicate with the second Internet of Things device, and whether the preset condition is established is determined by h Before the control device sends the first communication instruction information to the first Internet of Things device, the method further includes: the control device executes the communication between the plurality of Internet of Things devices according to the preset conditions. A second Internet of Things device is determined in, the second Internet of Things device has the ability to provide values of the h parameters, and h is a positive integer.
在本申请中,控制设备为第一物联网设备确定为该第一物联网设备提供有关h个参数的信息的第二物联网设备,可以便捷第一物联网设备建立无线通信连接的处理过程。也就是说,第一物联网设备可以直接根据控制设备的指示与第二物联网设备建立无线通信连接,第一物联网设备无需自主寻找符合要求的物联网设备。In this application, the control device is the second Internet of Things device that the first Internet of Things device determines to provide the first Internet of Things device with information about h parameters, which can facilitate the process of establishing a wireless communication connection for the first Internet of Things device. That is to say, the first Internet of Things device can directly establish a wireless communication connection with the second Internet of Things device according to the instructions of the control device, and the first Internet of Things device does not need to independently search for a qualified Internet of Things device.
可选的,所述第一通信指示信息包括第二物联网设备的设备信息。Optionally, the first communication indication information includes device information of the second Internet of Things device.
可选的,所述第一通信指示信息包括K个待连接设备的K个设备信息,所述K个设备信息与K个待连接设备一一对应,所述K个待连接设备包括所述第二物联网设备。Optionally, the first communication indication information includes K pieces of device information of K pieces of equipment to be connected, and the K pieces of equipment information correspond to the K pieces of equipment to be connected one-to-one, and the K pieces of equipment to be connected include the first piece of information. 2. Internet of Things equipment.
结合第一方面,在第一方面的某些实现方式中,所述第一通信指示信息用于指示所述第一物联网设备寻找:提供所述h个参数的取值的物联网设备,或者,判断所述预设条件是否成立的物联网设备,或者,在所述预设条件成立的情况下,指示所述第一物联网设备执行所述目标操作的物联网设备,h为正整数。With reference to the first aspect, in some implementations of the first aspect, the first communication indication information is used to instruct the first Internet of Things device to find: an Internet of Things device that provides the values of the h parameters, or , The Internet of Things device that determines whether the preset condition is established, or, if the preset condition is established, the Internet of Things device that instructs the first Internet of Things device to perform the target operation, and h is a positive integer.
在本申请中,第一物联网设备执行目标操作的输入可以包括参数输入、条件输入、操 作输入。物联网设备之间的通信数据可以相对灵活。相应地,控制设备可以根据物联网设备能够处理的数据,灵活地指示多个物联网设备建立无线通信连接。In this application, the input for the first Internet of Things device to execute the target operation may include parameter input, condition input, and operation input. The communication data between IoT devices can be relatively flexible. Correspondingly, the control device can flexibly instruct multiple Internet of Things devices to establish wireless communication connections according to the data that the Internet of Things devices can process.
可选的,所述第一通信指示信息包括所述h个参数的指示信息或所述预设条件的指示信息。Optionally, the first communication indication information includes indication information of the h parameters or indication information of the preset condition.
可选的,所述多个物联网设备可以分别由多个不同品牌的供应商提供。Optionally, the multiple Internet of Things devices may be provided by multiple vendors of different brands.
结合第一方面,在第一方面的某些实现方式中,所述设备注册信息还包括以下至少一种:无线通信协议、物联网通信协议。With reference to the first aspect, in some implementation manners of the first aspect, the device registration information further includes at least one of the following: a wireless communication protocol and an Internet of Things communication protocol.
在本申请中,由于多个物联网设备可以来自不同的品牌供应商,或者,多个物联网设备的硬件配置不同,因此该多个物联网设备可以支持的通信协议、物联网通信协议可以不同。通过预先向控制设备提供物联网设备所支持的协议,有利于后续物联网设备之间通信的便捷性。In this application, since multiple Internet of Things devices can come from different brand suppliers, or the hardware configurations of multiple Internet of Things devices are different, the communication protocols and Internet of Things communication protocols that can be supported by the multiple Internet of Things devices can be different . By providing the control device with the protocol supported by the IoT device in advance, it is conducive to the convenience of communication between the subsequent IoT devices.
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:在显示屏上显示与所述目标策略相关的选项卡和/或图标。With reference to the first aspect, in some implementations of the first aspect, the method further includes: displaying tabs and/or icons related to the target strategy on a display screen.
在本申请中,目标策略可以以图标、选项卡等生动、形象地方式展现给用户。用户可以直接使用第三方提供的策略,有利于减少用户手动输入策略的次数。In this application, the target strategy can be displayed to the user in a vivid and vivid way such as icons and tabs. The user can directly use the strategy provided by the third party, which helps to reduce the number of manual input of the strategy by the user.
可选的,所述相关的内容包括以下至少一种:选项卡、应用图标、应用搜索框,所述应用包括一个或多个所述策略。Optionally, the related content includes at least one of the following: a tab, an application icon, and an application search box, and the application includes one or more of the policies.
可选的,所述应用包括以下至少一种:智能晨起应用、舒适卫生间应用、智能用户感测应用、智能匹配用户喜好应用、快速识别用户身份应用。Optionally, the application includes at least one of the following: a smart morning wake application, a comfortable bathroom application, an intelligent user sensing application, an application for intelligently matching user preferences, and an application for quickly identifying a user's identity.
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:所述控制设备存储多个策略操作文档,所述多个策略操作文档与多个策略一一对应,所述多个策略包括所述目标策略;所述控制设备检测到输入的关键词,所述关键词用于表示以下至少一种:所述策略操作文档的标题、执行设备的类型、执行条件中的参数、执行操作的类型;所述控制设备根据所述关键词,在所述多个策略操作文档中确定目标策略操作文档,所述目标策略操作文档与目标策略对应;所述控制设备将所述目标策略操作文档反馈给用户。With reference to the first aspect, in some implementations of the first aspect, the method further includes: the control device stores a plurality of policy operation documents, and the plurality of policy operation documents corresponds to a plurality of policies in a one-to-one manner, the The multiple strategies include the target strategy; the control device detects the input keyword, and the keyword is used to indicate at least one of the following: the title of the strategy operation document, the type of the execution device, and the parameters in the execution condition , The type of operation to be performed; the control device determines a target strategy operation document in the plurality of strategy operation documents according to the keyword, and the target strategy operation document corresponds to the target strategy; the control device sets the target The policy operation document is fed back to the user.
在本申请中,用户可以在应用商城中快速搜索到目标策略。In this application, the user can quickly search for the target strategy in the application mall.
可选的,所述策略操作文档例如可以是智能应用的应用程序包。Optionally, the policy operation document may be, for example, an application package of a smart application.
在一个示例中,策略操作文档例如可以是智能应用的摘要,该摘要包括该智能应用对应的标题、设备类型、设备标识、参数、条件、操作等信息。In an example, the policy operation document may be, for example, a summary of a smart application, and the summary includes information such as a title, device type, device identification, parameters, conditions, and operations corresponding to the smart application.
结合第一方面,在第一方面的某些实现方式中,所述h个参数包括以下至少一种:温度参数、湿度参数、时间参数、事件参数、音频参数、图像参数、视频参数、亮度参数。With reference to the first aspect, in some implementations of the first aspect, the h parameters include at least one of the following: temperature parameters, humidity parameters, time parameters, event parameters, audio parameters, image parameters, video parameters, and brightness parameters .
在本申请中,物联网设备之间的通信数据可以相对丰富,物联网设备之间的通信过程可以相对灵活。In this application, the communication data between the Internet of Things devices can be relatively rich, and the communication process between the Internet of Things devices can be relatively flexible.
可选的,第一物联网设备为以下至少一种:电视、智能空调、智能音箱、湿度温度计、窗帘遥控机、智能时钟、智能热水器、智能摄像装置、智能灯具。Optionally, the first Internet of Things device is at least one of the following: a TV, a smart air conditioner, a smart speaker, a humidity thermometer, a curtain remote control, a smart clock, a smart water heater, a smart camera device, and a smart lamp.
可选的,第一物联网设备的品牌供应商与第二物联网设备的品牌供应商不同。Optionally, the brand supplier of the first Internet of Things device is different from the brand supplier of the second Internet of Things device.
可选的,所述第一物联网设备、所述第二物联网设备均支持开放物联网通信协议。Optionally, both the first Internet of Things device and the second Internet of Things device support an open Internet of Things communication protocol.
第二方面,提供了一种通信方法,包括:控制设备获取多个设备注册信息,所述多个设备注册信息与多个物联网设备对应,所述设备注册信息用于指示对应的物联网设备的M 个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述控制设备获取目标策略,所述目标策略用于指示,在预设条件成立的情况下,目标设备执行目标操作,所述预设条件是否成立由h个参数判断,h为正整数;所述控制设备根据所述目标策略,在所述多个物联网设备中确定第二物联网设备,所述第二物联网设备具有提供所述h个参数的取值的能力;所述控制设备向所述第二物联网设备发送第二通信指示信息,所述第二通信指示信息用于指示所述第二物联网设备与除所述第二物联网设备以外的其他物联网设备通信。In a second aspect, a communication method is provided, including: controlling a device to obtain multiple device registration information, the multiple device registration information corresponding to multiple IoT devices, and the device registration information is used to indicate the corresponding IoT device M input parameters and/or N output parameters of, M is a positive integer, and N is a positive integer; the control device obtains a target strategy, and the target strategy is used to indicate that if a preset condition is established, the target The device executes the target operation, and whether the preset condition is satisfied is determined by h parameters, and h is a positive integer; the control device determines the second Internet of Things device among the plurality of Internet of Things devices according to the target strategy, so The second Internet of Things device has the ability to provide the values of the h parameters; the control device sends second communication instruction information to the second Internet of Things device, and the second communication instruction information is used to indicate the The second Internet of Things device communicates with other Internet of Things devices other than the second Internet of Things device.
在本申请中,通过获取设备注册信息来获知物联网设备之间能够传输的数据信息,进而可以指示多个物联网设备之间建立数据通信服务。策略除了可以指示设备在特定条件下指示特定的动作,还可以用于指示多个物联网设备之间的通信,提高了控制物联网设备通信的便捷度。In this application, the data information that can be transmitted between IoT devices is obtained by obtaining device registration information, which in turn can instruct multiple IoT devices to establish data communication services. In addition to instructing devices to instruct specific actions under specific conditions, policies can also be used to indicate communication between multiple IoT devices, which improves the convenience of controlling communication between IoT devices.
结合第二方面,在第二方面的某些实现方式中,在所述控制设备根据所述目标策略,在所述多个物联网设备中确定所述第二物联网设备之前,所述方法还包括:所述控制设备根据所述预设条件,确定所述h个参数。With reference to the second aspect, in some implementations of the second aspect, before the control device determines the second Internet of Things device among the plurality of Internet of Things devices according to the target strategy, the method further It includes: the control device determines the h parameters according to the preset condition.
可选的,所述第二通信指示信息用于指示所述第二物联网设备与所述第一物联网设备通信。Optionally, the second communication indication information is used to instruct the second Internet of Things device to communicate with the first Internet of Things device.
结合第二方面,在第二方面的某些实现方式中,所述第二通信指示信息用于指示所述第二物联网设备寻找:接收所述h个参数的取值的物联网设备,或者,接收条件成立指示信息的物联网设备,所述条件成立指示信息用于指示所述预设条件成立,或者,接收操作指示信息的物联网设备,所述操作指示信息用于指示执行所述目标操作。With reference to the second aspect, in some implementations of the second aspect, the second communication indication information is used to instruct the second Internet of Things device to find: an Internet of Things device that receives the values of the h parameters, or , The Internet of Things device that receives the condition establishment indication information, the condition establishment indication information is used to indicate that the preset condition is satisfied, or the Internet of Things device that receives operation indication information, the operation indication information is used to instruct the execution of the target operate.
在本申请中,第二物联网设备的输出可以包括参数输出、条件输出、操作输出。物联网设备之间的通信数据可以相对灵活。相应地,控制设备可以根据物联网设备能够处理的数据,灵活地指示多个物联网设备建立无线通信连接。In this application, the output of the second Internet of Things device may include parameter output, condition output, and operation output. The communication data between IoT devices can be relatively flexible. Correspondingly, the control device can flexibly instruct multiple Internet of Things devices to establish wireless communication connections according to the data that the Internet of Things devices can process.
结合第二方面,在第二方面的某些实现方式中,所述设备注册信息还包括以下至少一种:无线通信协议、物联网通信协议。With reference to the second aspect, in some implementation manners of the second aspect, the device registration information further includes at least one of the following: a wireless communication protocol and an Internet of Things communication protocol.
在本申请中,由于多个物联网设备可以来自不同的品牌供应商,或者,多个物联网设备的硬件配置不同,因此该多个物联网设备可以支持的通信协议、物联网通信协议可以不同。通过预先向控制设备提供物联网设备所支持的协议,有利于后续物联网设备之间通信的便捷性。In this application, since multiple Internet of Things devices can come from different brand suppliers, or the hardware configurations of multiple Internet of Things devices are different, the communication protocols and Internet of Things communication protocols that can be supported by the multiple Internet of Things devices can be different . By providing the control device with the protocol supported by the IoT device in advance, it is conducive to the convenience of communication between the subsequent IoT devices.
结合第二方面,在第二方面的某些实现方式中,所述方法还包括:在显示屏上显示与所述目标策略相关的选项卡和/或图标。With reference to the second aspect, in some implementations of the second aspect, the method further includes: displaying tabs and/or icons related to the target strategy on a display screen.
在本申请中,目标策略可以以图标、选项卡等生动、形象地方式展现给用户。用户可以直接使用第三方提供的策略,有利于减少用户手动输入策略的次数。In this application, the target strategy can be displayed to the user in a vivid and vivid way such as icons and tabs. The user can directly use the strategy provided by the third party, which helps to reduce the number of manual input of the strategy by the user.
结合第二方面,在第二方面的某些实现方式中,所述方法还包括:所述控制设备存储多个策略操作文档,所述多个策略操作文档与多个策略一一对应,所述多个策略包括所述目标策略;所述控制设备检测到输入的关键词,所述关键词用于表示以下至少一种:所述策略操作文档的标题、执行设备的类型、执行条件中的参数、执行操作的类型;所述控制设备根据所述关键词,在所述多个策略操作文档中确定目标策略操作文档,所述目标策略操作文档与所述目标策略对应;所述控制设备将所述目标策略操作文档反馈给用户。With reference to the second aspect, in some implementations of the second aspect, the method further includes: the control device stores a plurality of policy operation documents, and the plurality of policy operation documents corresponds to a plurality of policies in a one-to-one manner, the The multiple strategies include the target strategy; the control device detects the input keyword, and the keyword is used to indicate at least one of the following: the title of the strategy operation document, the type of the execution device, and the parameters in the execution condition , The type of operation to be performed; the control device determines a target strategy operation document among the plurality of strategy operation documents according to the keyword, and the target strategy operation document corresponds to the target strategy; The target strategy operation document is fed back to the user.
在本申请中,用户可以在应用商城中快速搜索到目标策略。In this application, the user can quickly search for the target strategy in the application mall.
结合第二方面,在第二方面的某些实现方式中,所述h个参数包括以下至少一种:温度参数、湿度参数、时间参数、事件参数、音频参数、图像参数、视频参数、亮度参数。With reference to the second aspect, in some implementations of the second aspect, the h parameters include at least one of the following: temperature parameters, humidity parameters, time parameters, event parameters, audio parameters, image parameters, video parameters, and brightness parameters .
在本申请中,物联网设备之间的通信数据可以相对丰富,物联网设备之间的通信过程可以相对灵活。In this application, the communication data between the Internet of Things devices can be relatively rich, and the communication process between the Internet of Things devices can be relatively flexible.
第三方面,提供了一种通信方法,包括:第一物联网设备根据目标策略,发送第一广播消息,所述目标策略用于指示,在预设条件成立的情况下,目标设备执行目标操作,所述预设条件是否成立由h个参数判断,h为正整数,所述第一广播消息用于指示以下任一种:寻找提供所述h个参数的取值的物联网设备,寻找判断所述预设条件是否成立的物联网设备,寻找在所述预设条件成立的情况下,指示所述第一物联网设备执行目标操作的物联网设备;所述第一物联网设备接收第二物联网设备发送的第一目标反馈消息,所述第一目标反馈消息是针对所述第一广播消息的反馈;所述第一物联网设备根据所述第一目标反馈消息,与所述第二物联网设备进行通信。In a third aspect, a communication method is provided, including: a first Internet of Things device sends a first broadcast message according to a target strategy, where the target strategy is used to instruct the target device to perform a target operation when a preset condition is established , Whether the preset condition is satisfied is determined by h parameters, where h is a positive integer, and the first broadcast message is used to indicate any one of the following: search for IoT devices that provide the values of the h parameters, and search for judgment The Internet of Things device for which the preset condition is established is searched for an Internet of Things device that instructs the first Internet of Things device to perform a target operation when the preset condition is established; the first Internet of Things device receives the second Internet of Things device A first target feedback message sent by an Internet of Things device, where the first target feedback message is a feedback for the first broadcast message; the first Internet of Things device communicates with the second target feedback message according to the first target feedback message. IoT devices communicate.
在本申请中,第一物联网设备执行目标操作的输入可以包括参数输入、条件输入、操作输入。物联网设备之间的通信数据可以相对灵活。物联网设备可以根据控制设备的指示,相对灵活地指示多个物联网设备建立无线通信连接。In this application, the input for the first Internet of Things device to execute the target operation may include parameter input, condition input, and operation input. The communication data between IoT devices can be relatively flexible. The Internet of Things device can relatively flexibly instruct multiple Internet of Things devices to establish wireless communication connections according to instructions from the control device.
可选的,所述第一物联网设备根据目标策略,发送第一广播消息,包括:第一物联网设备根据目标策略,根据开放物联网通信协议,发送所述第一广播消息;所述第一物联网设备接收第二物联网设备发送的第一目标反馈消息,包括:所述第一物联网设备根据所述开放物联网通信协议,接收第二物联网设备发送的第一目标反馈消息;所述第一物联网设备根据所述第一目标反馈消息,与所述第二物联网设备进行通信,包括:所述第一物联网设备根据所述开放物联网通信协议,并根据所述第一目标反馈消息,与所述第二物联网设备进行通信。Optionally, the first Internet of Things device sending a first broadcast message according to the target strategy includes: the first Internet of Things device sends the first broadcast message according to the target strategy and according to an open Internet of Things communication protocol; An Internet of Things device receiving a first target feedback message sent by a second Internet of Things device includes: the first Internet of Things device receives a first target feedback message sent by the second Internet of Things device according to the open Internet of Things communication protocol; The first Internet of Things device communicating with the second Internet of Things device according to the first target feedback message includes: the first Internet of Things device according to the open Internet of Things communication protocol, and according to the first Internet of Things communication protocol. A target feedback message communicates with the second Internet of Things device.
可选的,在所述第一物联网设备根据目标策略,发送第一广播消息之前,所述方法还包括:所述第一物联网设备向控制设备发送所述第一物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述第一物联网设备接收所述控制设备发送的所述目标策略。Optionally, before the first Internet of Things device sends the first broadcast message according to the target policy, the method further includes: the first Internet of Things device sends M of the first Internet of Things device to a control device Input parameters and/or N output parameters, M is a positive integer, and N is a positive integer; the first Internet of Things device receives the target strategy sent by the control device.
第四方面,提供了一种通信方法,包括:第二物联网设备根据第二通信指示信息,发送第二广播消息,其中:在所述第二通信指示信息用于指示所述第二物联网设备发送h个参数的取值的情况下,所述第二广播消息用于寻找接收所述h个参数的取值的设备,h为正整数,在所述第二通信指示信息用于指示所述第二物联网设备发送条件成立指示信息的情况下,所述第二广播消息用于寻找接收条件成立指示信息的设备,所述条件成立指示信息用于指示所述预设条件成立,在所述第二通信指示信息用于指示当预设条件成立时,所述第二物联网设备发送操作指示信息的情况下,所述第二广播消息用于寻找接收所述操作指示信息的设备,所述操作指示信息用于指示执行所述目标操作;所述第二物联网设备接收第一物联网设备发送的第二目标反馈消息,所述第二目标反馈消息是针对所述第二广播消息的反馈;所述第二物联网设备根据所述第二目标反馈消息,与所述第一物联网设备通信。In a fourth aspect, a communication method is provided, including: a second Internet of Things device sends a second broadcast message according to second communication instruction information, wherein: the second communication instruction information is used to indicate the second Internet of Things When the device sends the values of the h parameters, the second broadcast message is used to find the device that receives the values of the h parameters, and h is a positive integer, and the second communication indication information is used to indicate all In the case where the second Internet of Things device sends the condition establishment indication information, the second broadcast message is used to find a device that receives the condition establishment indication information, and the condition establishment indication information is used to indicate that the preset condition is established. The second communication indication information is used to indicate that when a preset condition is established, the second Internet of Things device sends operation indication information, and the second broadcast message is used to find a device that receives the operation indication information, so The operation instruction information is used to instruct the execution of the target operation; the second Internet of Things device receives a second target feedback message sent by the first Internet of Things device, and the second target feedback message is for the second broadcast message Feedback; the second Internet of Things device communicates with the first Internet of Things device according to the second target feedback message.
在本申请中,第一物联网设备执行目标操作的输入可以包括参数输入、条件输入、操 作输入。物联网设备之间的通信数据可以相对灵活。物联网设备可以根据控制设备的指示,相对灵活地指示多个物联网设备建立无线通信连接。In this application, the input for the first Internet of Things device to execute the target operation may include parameter input, condition input, and operation input. The communication data between IoT devices can be relatively flexible. The Internet of Things device can relatively flexibly instruct multiple Internet of Things devices to establish wireless communication connections according to instructions from the control device.
可选的,所述第二物联网设备根据第二通信指示信息,发送第二广播消息,包括:第二物联网设备根据开放物联网通信协议,并根据第二通信指示信息,发送所述第二广播消息;所述第二物联网设备接收第一物联网设备发送的第二目标反馈消息,包括:所述第二物联网设备根据所述开放物联网通信协议,接收第一物联网设备发送的第二目标反馈消息;所述第二物联网设备根据所述第二目标反馈消息,与所述第一物联网设备通信,包括:所述第二物联网设备根据所述开放物联网通信协议,并根据所述第二目标反馈消息,与所述第一物联网设备通信。Optionally, the second Internet of Things device sending a second broadcast message according to the second communication instruction information includes: the second Internet of Things device sends the second broadcast message according to the Open Internet of Things communication protocol and according to the second communication instruction information. Two broadcast messages; the second Internet of Things device receiving the second target feedback message sent by the first Internet of Things device includes: the second Internet of Things device receives the first Internet of Things device according to the open Internet of Things communication protocol The second target feedback message of the Internet of Things; the second Internet of Things device communicating with the first Internet of Things device according to the second target feedback message includes: the second Internet of Things device according to the open Internet of Things communication protocol , And communicate with the first Internet of Things device according to the second target feedback message.
可选的,在所述第二物联网设备根据第二通信指示信息,发送第二广播消息之前,所述方法还包括:所述第二物联网设备向控制设备发送所述第二物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述第二物联网设备接收所述控制设备发送的所述第二通信指示信息。Optionally, before the second Internet of Things device sends the second broadcast message according to the second communication instruction information, the method further includes: the second Internet of Things device sends the second Internet of Things device to the control device M input parameters and/or N output parameters of, M is a positive integer, and N is a positive integer; the second Internet of Things device receives the second communication instruction information sent by the control device.
第五方面,提供了一种控制物联网设备的方法,包括:第一物联网设备获取第一指示信息,所述第一指示信息用于指示在预设条件成立的情况下执行目标操作;所述第一物联网设备根据开放物联网通信协议,接收第二物联网设备发送的h个参数取值,所述h个参数取值为h个参数的具体取值,所述h个参数取值与所述h个参数一一对应,所述预设条件是否成立由所述h个参数判断,h为正整数;所述第一物联网设备根据所述h个参数取值,判断所述预设条件是否成立;在所述预设条件成立的情况下,所述第一物联网设备执行所述目标操作。In a fifth aspect, a method for controlling an Internet of Things device is provided, including: a first Internet of Things device obtains first indication information, where the first indication information is used to instruct to perform a target operation when a preset condition is established; The first Internet of Things device receives h parameter values sent by the second Internet of Things device according to the open Internet of Things communication protocol, where the h parameters are specific values of h parameters, and the h parameters take values One-to-one correspondence with the h parameters, whether the preset condition is satisfied is determined by the h parameters, and h is a positive integer; the first Internet of Things device determines the value of the h parameters according to the Whether a preset condition is established; if the preset condition is established, the first Internet of Things device executes the target operation.
在本申请中,物联网设备可以直接通过开放物联网通信协议进行通信,可以减少多个物联网设备之间的通信壁垒。在执行侧设备存储与策略相关的信息,由其他设备触发该执行侧设备执行目标操作,有利于降低对执行侧设备的硬件要求。In this application, the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices. The execution-side device stores policy-related information, and other devices trigger the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
在本申请中,取值例如可以是数值、文本、函数标识、二进制值、代码等。In this application, the value can be, for example, a numeric value, text, function identifier, binary value, code, etc.
结合第五方面,在第五方面的某些实现方式中,所述第一指示信息与目标策略对应,所述目标策略用于指示,在所述预设条件成立的情况下,目标设备执行所述目标操作,所述第一物联网设备与所述目标设备对应。With reference to the fifth aspect, in some implementations of the fifth aspect, the first indication information corresponds to a target strategy, and the target strategy is used to indicate that when the preset condition is established, the target device executes all In the target operation, the first Internet of Things device corresponds to the target device.
在本申请中,第一物联网设备可以直接获取第一策略,可以具有相对简单的数据传输过程。In this application, the first Internet of Things device can directly obtain the first policy, and can have a relatively simple data transmission process.
结合第五方面,在第五方面的某些实现方式中,所述第一物联网设备获取第一指示信息,包括:所述第一物联网设备接收控制设备、所述第二物联网设备或服务器发送的所述第一指示信息。With reference to the fifth aspect, in some implementations of the fifth aspect, the first Internet of Things device acquiring first indication information includes: the first Internet of Things device receiving a control device, the second Internet of Things device, or The first indication information sent by the server.
在本申请中,第一指示信息的来源可以是相对灵活的。In this application, the source of the first indication information may be relatively flexible.
结合第五方面,在第五方面的某些实现方式中,在所述第一物联网设备根据开放物联网通信协议,接收第二物联网设备发送的h个参数取值之前,所述方法还包括:所述第一物联网设备根据所述开放物联网通信协议,向所述第二物联网设备发送第一通信信息,所述第一通信信息用于指示所述第一物联网设备需要被提供所述h个参数的取值。With reference to the fifth aspect, in some implementation manners of the fifth aspect, before the first Internet of Things device receives h parameter values sent by the second Internet of Things device according to the open Internet of Things communication protocol, the method further The method includes: the first Internet of Things device sends first communication information to the second Internet of Things device according to the open Internet of Things communication protocol, where the first communication information is used to indicate that the first Internet of Things device needs to be Provide the values of the h parameters.
在本申请中,第一物联网可以指示第二物联网设备提供h个参数的取值。In this application, the first Internet of Things may instruct the second Internet of Things device to provide values of h parameters.
可选的,所述第一通信信息包括所述预设条件的指示信息,在所述第二物联网设备向 所述第一物联网设备发送h个参数取值之前,所述方法还包括:所述第二物联网设备根据所述预设条件,确定所述h个参数取值。Optionally, the first communication information includes indication information of the preset condition, and before the second Internet of Things device sends h parameter values to the first Internet of Things device, the method further includes: The second Internet of Things device determines the values of the h parameters according to the preset condition.
可选的,所述第二物联网设备向所述第一物联网设备发送h个参数取值,包括:在所述预设条件成立的情况下,所述第二物联网设备向所述第一物联网设备发送所述h个参数取值。Optionally, the second Internet of Things device sending h parameter values to the first Internet of Things device includes: when the preset condition is established, the second Internet of Things device sends the first Internet of Things device to the first Internet of Things device. An Internet of Things device sends the h parameter values.
可选的,所述第一通信信息还包括周期传送指示信息,所述周期传送指示信息用于指示所述第二物联网设备按照预设周期向所述第一物联网设备发送所述h个参数取值。Optionally, the first communication information further includes periodic transmission instruction information, and the periodic transmission instruction information is used to instruct the second Internet of Things device to send the h pieces of information to the first Internet of Things device according to a preset period. Parameter value.
结合第五方面,在第五方面的某些实现方式中,所述预设条件是否成立由所述h个参数以及s个参数判断,所述s个参数与所述h个参数不同,在所述第一物联网设备根据所述h个参数取值,判断所述预设条件是否成立之前,所述方法还包括:所述第一物联网设备接收第三物联网设备发送的s参数取值,所述s参数取值为所述s个参数的具体取值,所述s参数取值与所述s个参数一一对应;所述第一物联网设备根据所述h个参数取值,判断所述预设条件是否成立,包括:所述第一物联网设备根据所述h个参数取值以及所述s个参数取值,判断所述预设条件是否成立。With reference to the fifth aspect, in some implementations of the fifth aspect, whether the preset condition is satisfied is determined by the h parameters and the s parameters, and the s parameters are different from the h parameters. Before the first Internet of Things device determines whether the preset condition is established according to the values of the h parameters, the method further includes: the first Internet of Things device receives the value of the s parameter sent by the third Internet of Things device , The value of the s parameter is a specific value of the s parameter, and the value of the s parameter corresponds to the s parameters one-to-one; the first Internet of Things device takes a value according to the h parameters , Determining whether the preset condition is established includes: the first Internet of Things device determines whether the preset condition is established according to the values of the h parameters and the values of the s parameters.
在本申请中,第一物联网设备可以接收多个物联网设备发送的参数取值。并且,根据策略建立物联网设备之间的通信网络具有相对的便捷度,也更容易实现相对复杂的操作链。In this application, the first Internet of Things device may receive parameter values sent by multiple Internet of Things devices. In addition, it is relatively convenient to establish a communication network between IoT devices according to a strategy, and it is also easier to implement a relatively complex operation chain.
结合第五方面,在第五方面的某些实现方式中,所述方法还包括:所述第一物联网设备将所述目标操作的执行结果发送给第四物联网设备,以指示所述第四物联网设备执行与所述目标操作对应的其他操作。With reference to the fifth aspect, in some implementations of the fifth aspect, the method further includes: the first Internet of Things device sending the execution result of the target operation to the fourth Internet of Things device to instruct the first Internet of Things device 4. The Internet of Things device performs other operations corresponding to the target operation.
在本申请中,第一物联网设备可以触发下一级物联网设备的操作。并且,根据策略建立物联网设备之间的通信网络具有相对的便捷度,也更容易实现相对复杂的操作链。In this application, the first IoT device can trigger the operation of the next-level IoT device. In addition, it is relatively convenient to establish a communication network between IoT devices according to a strategy, and it is also easier to implement a relatively complex operation chain.
结合第五方面,在第五方面的某些实现方式中,所述第一物联网设备与所述第二物联网设备由不同品牌的供应商提供。With reference to the fifth aspect, in some implementation manners of the fifth aspect, the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
结合第五方面,在第五方面的某些实现方式中,所述开放物联网通信协议包括以下至少一种:参数集合、条件集合、操作集合、设备集合。With reference to the fifth aspect, in some implementations of the fifth aspect, the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
可选的,物联网通信协议还可以定义条件与参数之间的关联关系。Optionally, the Internet of Things communication protocol may also define an association relationship between conditions and parameters.
可选的,物联网通信协议还可以定义条件与操作指示信息之间的关联关系。Optionally, the Internet of Things communication protocol may also define an association relationship between the conditions and the operation instruction information.
可选的,物联网通信协议还可以定义操作指示信息与设备信息之间的关联关系。Optionally, the Internet of Things communication protocol may also define the association relationship between the operation instruction information and the device information.
结合第五方面,在第五方面的某些实现方式中,所述开放物联网通信协议为HiLink通信协议。With reference to the fifth aspect, in some implementation manners of the fifth aspect, the open IoT communication protocol is the HiLink communication protocol.
可选的,在所述第一物联网设备获取第一指示信息之前,所述方法还包括:所述第一物联网设备向控制设备发送所述第一物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述第一物联网设备接收所述控制设备发送的第一通信指示信息,所述第一通信指示信息用于指示所述第一物联网设备与所述第二物联网设备通信。Optionally, before the first Internet of Things device acquires the first indication information, the method further includes: the first Internet of Things device sends M input parameters of the first Internet of Things device to the control device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the first Internet of Things device receives first communication indication information sent by the control device, and the first communication indication information is used to indicate the first An Internet of Things device communicates with the second Internet of Things device.
第六方面,提供了一种控制物联网设备的方法,包括:第一物联网设备获取第一指示信息,所述第一指示信息用于指示在预设条件成立的情况下执行目标操作;所述第一物联网设备根据开放物联网通信协议,接收第二物联网设备发送的条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立;所述第一物联网设备根据所述条件成立指示 信息以及所述第一指示信息,执行所述目标操作。In a sixth aspect, a method for controlling an Internet of Things device is provided, including: a first Internet of Things device acquiring first instruction information, the first instruction information being used to instruct to perform a target operation when a preset condition is established; The first Internet of Things device receives the condition establishment indication information sent by the second Internet of Things device according to the open Internet of Things communication protocol, where the condition establishment indication information is used to indicate that the preset condition is established; the first Internet of Things device is based on The condition establishment indication information and the first indication information execute the target operation.
在本申请中,物联网设备可以直接通过开放物联网通信协议进行通信,可以减少多个物联网设备之间的通信壁垒。在执行侧设备存储与策略相关的信息,由其他设备触发该执行侧设备执行目标操作,有利于降低对执行侧设备的硬件要求。In this application, the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices. The execution-side device stores policy-related information, and other devices trigger the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
可选的,在所述第一物联网设备获取第一指示信息之前,所述方法还包括:所述第一物联网设备向控制设备发送所述第一物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述第一物联网设备接收所述控制设备发送的第一通信指示信息,所述第一通信指示信息用于指示所述第一物联网设备与所述第二物联网设备通信。Optionally, before the first Internet of Things device acquires the first indication information, the method further includes: the first Internet of Things device sends M input parameters of the first Internet of Things device to the control device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the first Internet of Things device receives first communication indication information sent by the control device, and the first communication indication information is used to indicate the first An Internet of Things device communicates with the second Internet of Things device.
结合第六方面,在第六方面的某些实现方式中,所述第一物联网设备与所述第二物联网设备由不同品牌的供应商提供。With reference to the sixth aspect, in some implementation manners of the sixth aspect, the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
结合第六方面,在第六方面的某些实现方式中,所述开放物联网通信协议包括以下至少一种:参数集合、条件集合、操作集合、设备集合。With reference to the sixth aspect, in some implementations of the sixth aspect, the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
结合第六方面,在第六方面的某些实现方式中,所述开放物联网通信协议为HiLink通信协议。With reference to the sixth aspect, in some implementation manners of the sixth aspect, the open IoT communication protocol is the HiLink communication protocol.
第七方面,提供了一种控制物联网设备的方法,包括:第二物联网设备获取第二指示信息,所述第二指示信息用于指示所述第二物联网设备判断所述预设条件是否成立,并将所述预设条件是否成立的判断结果发送给第一物联网设备;在所述预设条件成立的情况下,所述第二物联网设备根据开放物联网通信协议,向所述第一物联网设备发送条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立。In a seventh aspect, a method for controlling an Internet of Things device is provided, including: a second Internet of Things device acquiring second indication information, the second instruction information being used to instruct the second Internet of Things device to determine the preset condition Whether it is established, and send the judgment result of whether the preset condition is established to the first Internet of Things device; in the case that the preset condition is established, the second Internet of Things device sends the The first Internet of Things device sends condition establishment indication information, where the condition establishment indication information is used to indicate that the preset condition is established.
在本申请中,物联网设备可以直接通过开放物联网通信协议进行通信,可以减少多个物联网设备之间的通信壁垒。在执行侧设备存储与策略相关的信息,由其他设备触发该执行侧设备执行目标操作,有利于降低对执行侧设备的硬件要求。In this application, the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices. The execution-side device stores policy-related information, and other devices trigger the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
可选的,在所述第二物联网设备获取第二指示信息之前,所述方法还包括:所述第二物联网设备向控制设备发送所述第二物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述第二物联网设备接收所述控制设备发送的第二通信指示信息,所述第二通信指示信息用于指示所述第二物联网设备与所述第一物联网设备通信。Optionally, before the second Internet of Things device acquires the second indication information, the method further includes: the second Internet of Things device sending M input parameters of the second Internet of Things device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the second Internet of Things device receives second communication indication information sent by the control device, and the second communication indication information is used to indicate the first 2. The Internet of Things device communicates with the first Internet of Things device.
结合第七方面,在第七方面的某些实现方式中,所述第一物联网设备与所述第二物联网设备由不同品牌的供应商提供。With reference to the seventh aspect, in some implementation manners of the seventh aspect, the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
结合第七方面,在第七方面的某些实现方式中,所述开放物联网通信协议包括以下至少一种:参数集合、条件集合、操作集合、设备集合。With reference to the seventh aspect, in some implementation manners of the seventh aspect, the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
结合第七方面,在第七方面的某些实现方式中,所述开放物联网通信协议为HiLink通信协议。With reference to the seventh aspect, in some implementation manners of the seventh aspect, the open IoT communication protocol is the HiLink communication protocol.
第八方面,提供了一种控制物联网设备的方法,包括:第二物联网设备获取第二指示信息,所述第二指示信息用于指示所述第二物联网设备判断所述预设条件是否成立;所述第二物联网设备接收第一物联网设备发送的第二通信信息,所述第二通信信息用于指示所述第一物联网设备需要被提供所述预设条件的判断结果;所述第二物联网设备根据所述第二通信信息以及所述第二指示信息,在所述预设条件成立的情况下,通过开放物联网通信协议向所述第一物联网设备发送条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立。In an eighth aspect, a method for controlling an Internet of Things device is provided, including: a second Internet of Things device acquiring second indication information, the second instruction information being used to instruct the second Internet of Things device to determine the preset condition Whether it is established; the second Internet of Things device receives second communication information sent by the first Internet of Things device, where the second communication information is used to indicate that the first Internet of Things device needs to be provided with the judgment result of the preset condition The second Internet of Things device sends conditions to the first Internet of Things device through an open Internet of Things communication protocol if the preset conditions are established according to the second communication information and the second instruction information Establishment indication information, where the condition establishment indication information is used to indicate the establishment of the preset condition.
在本申请中,物联网设备可以直接通过开放物联网通信协议进行通信,可以减少多个物联网设备之间的通信壁垒。在执行侧设备存储与策略相关的信息,由其他设备触发该执行侧设备执行目标操作,有利于降低对执行侧设备的硬件要求。In this application, the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices. The execution-side device stores policy-related information, and other devices trigger the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
可选的,在所述第二物联网设备获取第二指示信息之前,所述方法还包括:所述第二物联网设备向控制设备发送所述第二物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述第二物联网设备接收所述控制设备发送的第二通信指示信息,所述第二通信指示信息用于指示所述第二物联网设备与所述第一物联网设备通信。Optionally, before the second Internet of Things device acquires the second indication information, the method further includes: the second Internet of Things device sending M input parameters of the second Internet of Things device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the second Internet of Things device receives second communication indication information sent by the control device, and the second communication indication information is used to indicate the first 2. The Internet of Things device communicates with the first Internet of Things device.
结合第八方面,在第八方面的某些实现方式中,所述第一物联网设备与所述第二物联网设备由不同品牌的供应商提供。With reference to the eighth aspect, in some implementation manners of the eighth aspect, the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
结合第八方面,在第八方面的某些实现方式中,所述开放物联网通信协议包括以下至少一种:参数集合、条件集合、操作集合、设备集合。With reference to the eighth aspect, in some implementation manners of the eighth aspect, the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
结合第八方面,在第八方面的某些实现方式中,所述开放物联网通信协议为HiLink通信协议。With reference to the eighth aspect, in some implementation manners of the eighth aspect, the open IoT communication protocol is the HiLink communication protocol.
第九方面,提供了一种控制物联网设备的方法,包括:第二物联网设备获取第三指示信息,所述第三指示信息用于指示在所述预设条件成立的情况下指示目标设备执行目标操作;所述第二物联网设备根据所述第三指示信息,确定所述目标设备为第一物联网设备;在所述预设条件成立的情况下,所述第二物联网设备根据开放物联网通信协议,向所述第一物联网设备发送操作指示信息,所述操作指示信息用于指示所述第一物联网设备执行所述目标操作。In a ninth aspect, a method for controlling an Internet of Things device is provided, including: a second Internet of Things device acquires third indication information, where the third indication information is used to indicate that the target device is instructed when the preset condition is established Perform a target operation; the second Internet of Things device determines that the target device is the first Internet of Things device according to the third instruction information; when the preset conditions are established, the second Internet of Things device An Internet of Things communication protocol is opened, and operation instruction information is sent to the first Internet of Things device, where the operation instruction information is used to instruct the first Internet of Things device to perform the target operation.
在本申请中,物联网设备可以直接通过开放物联网通信协议进行通信,可以减少多个物联网设备之间的通信壁垒。在非执行侧设备存储与策略相关的信息,由该非执行侧设备触发执行侧设备执行目标操作,有利于降低对执行侧设备的硬件要求。In this application, the Internet of Things devices can directly communicate through the open Internet of Things communication protocol, which can reduce communication barriers between multiple Internet of Things devices. The non-execution-side device stores policy-related information, and the non-execution-side device triggers the execution-side device to execute the target operation, which helps reduce the hardware requirements for the execution-side device.
可选的,在所述第二物联网设备获取第三指示信息之前,所述方法还包括:所述第二物联网设备向控制设备发送所述第二物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;所述第二物联网设备接收所述控制设备发送的第二通信指示信息,所述第二通信指示信息用于指示所述第二物联网设备与所述第一物联网设备通信。Optionally, before the second Internet of Things device acquires the third indication information, the method further includes: the second Internet of Things device sends M input parameters of the second Internet of Things device to the control device and/ Or N output parameters, where M is a positive integer and N is a positive integer; the second Internet of Things device receives second communication indication information sent by the control device, and the second communication indication information is used to indicate the first 2. The Internet of Things device communicates with the first Internet of Things device.
结合第九方面,在第九方面的某些实现方式中,所述第一物联网设备与所述第二物联网设备由不同品牌的供应商提供。With reference to the ninth aspect, in some implementation manners of the ninth aspect, the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
结合第九方面,在第九方面的某些实现方式中,所述开放物联网通信协议包括以下至少一种:参数集合、条件集合、操作集合、设备集合。With reference to the ninth aspect, in some implementation manners of the ninth aspect, the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
结合第九方面,在第九方面的某些实现方式中,所述开放物联网通信协议为HiLink通信协议。With reference to the ninth aspect, in some implementation manners of the ninth aspect, the open IoT communication protocol is the HiLink communication protocol.
第十方面,提供了一种电子设备,用于执行上述第一方面至第九方面中的任意一种实现方式中的方法。In a tenth aspect, an electronic device is provided for executing the method in any one of the foregoing first to ninth aspects.
第十一方面,提供了一种电子设备,包括:存储器,用于存储程序;处理器,用于执行所述存储器存储的程序,当所述存储器存储的程序被执行时,所述处理器用于执行上述第一方面至第九方面中的任意一种实现方式中的方法。In an eleventh aspect, an electronic device is provided, including: a memory for storing a program; a processor for executing the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to Perform the method in any one of the foregoing first aspect to the ninth aspect.
第十二方面,提供了一种电子设备,包括:包括用于执行上述第一方面至第九方面中的任意一种实现方式中的方法的模块。In a twelfth aspect, an electronic device is provided, including: a module for executing the method in any one of the foregoing first aspect to the ninth aspect.
第十三方面,提供一种计算机可读介质,该计算机可读介质存储用于设备执行的程序代码,该程序代码包括用于执行第一方面至第九方面中的任意一种实现方式中的方法。In a thirteenth aspect, a computer-readable medium is provided, and the computer-readable medium stores program code for device execution. The program code includes method.
第十四方面,提供一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述第一方面至第九方面中的任意一种实现方式中的方法。In a fourteenth aspect, a computer program product containing instructions is provided. When the computer program product runs on a computer, the computer executes the method in any one of the foregoing first to ninth aspects.
第十五方面,提供一种芯片,所述芯片包括处理器与数据接口,所述处理器通过所述数据接口读取存储器上存储的指令,执行上述第一方面至第九方面中的任意一种实现方式中的方法。In a fifteenth aspect, a chip is provided. The chip includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface, and executes any one of the first aspect to the ninth aspect. One way to achieve this.
可选地,作为一种实现方式,所述芯片还可以包括存储器,所述存储器中存储有指令,所述处理器用于执行所述存储器上存储的指令,当所述指令被执行时,所述处理器用于执行第一方面至第九方面中的任意一种实现方式中的方法。Optionally, as an implementation manner, the chip may further include a memory in which instructions are stored, and the processor is configured to execute instructions stored on the memory. When the instructions are executed, the The processor is configured to execute the method in any one of the implementation manners of the first aspect to the ninth aspect.
附图说明Description of the drawings
图1是一种电子设备的硬件结构示意图。Figure 1 is a schematic diagram of the hardware structure of an electronic device.
图2是一种电子设备的软件结构示意图。Figure 2 is a schematic diagram of the software structure of an electronic device.
图3是一种多设备通信的应用场景。Figure 3 is an application scenario for multi-device communication.
图4是一种用于多设备通信的通信***。Figure 4 is a communication system for multi-device communication.
图5是本申请实施例提供的一种用于多设备通信的通信***。Fig. 5 is a communication system for multi-device communication provided by an embodiment of the present application.
图6是本申请实施例提供的一种控制设备与物联网设备的通信示意图。Fig. 6 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
图7是本申请实施例提供的一种控制设备与物联网设备的通信示意图。FIG. 7 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
图8是本申请实施例提供的一种控制设备与物联网设备的通信示意图。FIG. 8 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
图9是本申请实施例提供的一种通信方法的示意性流程图。FIG. 9 is a schematic flowchart of a communication method provided by an embodiment of the present application.
图10是本申请实施例提供的一种智能应用商城的用户图形界面。Fig. 10 is a graphical user interface of a smart application mall provided by an embodiment of the present application.
图11是本申请实施例提供的一种控制物联网设备的方法的示意性流程图。FIG. 11 is a schematic flowchart of a method for controlling an Internet of Things device provided by an embodiment of the present application.
图12是本申请实施例提供的一种用于多物联网设备通信的通信***。FIG. 12 is a communication system for communication of multiple Internet of Things devices provided by an embodiment of the present application.
图13是本申请实施例提供的一种多物联网设备通信的示意图。FIG. 13 is a schematic diagram of communication between multiple Internet of Things devices provided by an embodiment of the present application.
图14是本申请实施例提供的一种多物联网设备通信的示意图。FIG. 14 is a schematic diagram of communication between multiple Internet of Things devices provided by an embodiment of the present application.
图15是本申请实施例提供的一种控制物联网设备的方法的示意性流程图。FIG. 15 is a schematic flowchart of a method for controlling an Internet of Things device according to an embodiment of the present application.
图16是本申请实施例提供的一种控制物联网设备的方法的示意性流程图。FIG. 16 is a schematic flowchart of a method for controlling an Internet of Things device provided by an embodiment of the present application.
图17是本申请实施例提供的电子设备的示意性框图。FIG. 17 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
图18是本申请实施例提供的电子设备的示意性框图。FIG. 18 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
图19是本申请实施例提供的电子设备的示意性框图。FIG. 19 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
图20是本申请实施例提供的电子设备的示意性框图。FIG. 20 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
图21是本申请实施例提供的电子设备的示意性框图。FIG. 21 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
图22是本申请实施例提供的电子设备的示意性框图。FIG. 22 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
图23是本申请实施例提供的电子设备的示意性框图。FIG. 23 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the accompanying drawings.
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申 请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also This includes expressions such as "one or more" unless the context clearly indicates to the contrary. It should also be understood that in the following embodiments of the present application, "at least one" and "one or more" refer to one, two, or more than two. The term "and/or" is used to describe the association relationship of associated objects, indicating that there can be three types of relationships; for example, A and/or B can mean: A alone exists, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the associated objects before and after are in an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References described in this specification to "one embodiment" or "some embodiments", etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the sentences "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless it is specifically emphasized otherwise. The terms "including", "including", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
以下介绍了本申请实施例提供的电子设备、用于这样的电子设备的用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、视频播放器等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2021080423-appb-000001
或者其它操作***的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是台式计算机、电视(或智慧屏)、笔记本电脑、智能空调、智能音箱、室温计、湿度计、湿度温度计、窗帘遥控机、智能时钟、智能热水器、智能摄像装置、智能灯具、冰箱、电源开关、电风扇、智能加湿器、空气净化器等。
The following introduces the electronic device provided by the embodiments of the present application, the user interface for such electronic device, and the embodiments for using such electronic device. In some embodiments, the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, a video player, and the like. Exemplary embodiments of portable electronic devices include, but are not limited to, carrying
Figure PCTCN2021080423-appb-000001
Or portable electronic devices with other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like. It should also be understood that, in some other embodiments, the above-mentioned electronic devices may not be portable electronic devices, but desktop computers, TVs (or smart screens), notebook computers, smart air conditioners, smart speakers, room temperature meters, hygrometers, Humidity thermometer, curtain remote control machine, smart clock, smart water heater, smart camera device, smart lamp, refrigerator, power switch, electric fan, smart humidifier, air purifier, etc.
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,按键190,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。Exemplarily, FIG. 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2. , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, button 190, camera 193, display 194, and subscriber identification module (SIM) card Interface 195 and so on.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的部件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备101也可以包括一个或多个处理器110。其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。在其他一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例性地,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。这样就避免了重复存取,减少了处理器110的等待 时间,因而提高了电子设备101处理数据或执行指令的效率。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. Among them, different processing units may be independent components, or may be integrated in one or more processors. In some embodiments, the electronic device 101 may also include one or more processors 110. Among them, the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions. In some other embodiments, a memory may be provided in the processor 110 to store instructions and data. Exemplarily, the memory in the processor 110 may be a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. In this way, repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 101 in processing data or executing instructions is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路间(inter-integrated circuit,I2C)接口,集成电路间音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,SIM卡接口,和/或USB接口等。其中,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备101充电,也可以用于电子设备101与设备之间传输数据。该USB接口130也可以用于连接耳机,通过耳机播放音频。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transceiver (universal asynchronous transceiver) interface. asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM card interface, and/or USB interface, etc. Among them, the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transfer data between the electronic device 101 and the device. The USB interface 130 can also be used to connect earphones and play audio through the earphones.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth, BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),迷你发光二极管(mini light-emitting Diode,MiniLED),微型发光二极管(micro light-emitting diode,MicroLED),微型有机发光二极管(micro organic light-emitting diode,Micro-OLED)量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,移动终端100可以包括一个或多个显示屏194。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED), flexible light-emitting diode (FLED), mini light-emitting diode (MiniLED), micro light-emitting diode (MicroLED), micro organic light-emitting diode (Micro-organic light-emitting diode, Micro-OLED) quantum dot light-emitting diode (QLED), etc. In some embodiments, the mobile terminal 100 may include one or more display screens 194.
电子设备100的显示屏194可以是一种柔性屏,目前,柔性屏以其独特的特性和巨大的潜力而备受关注。柔性屏相对于传统屏幕而言,具有柔韧性强和可弯曲的特点,可以给用户提供基于可弯折特性的新通信方式,可以满足用户对于电子设备的更多需求。对于配置有可折叠显示屏的电子设备而言,电子设备上的可折叠显示屏可以随时在折叠形态下的小屏和展开形态下大屏之间切换。因此,用户在配置有可折叠显示屏的电子设备上使用分屏功能,也越来越频繁。The display screen 194 of the electronic device 100 may be a flexible screen. At present, the flexible screen has attracted much attention due to its unique characteristics and great potential. Compared with traditional screens, flexible screens have the characteristics of strong flexibility and bendability, can provide users with new communication methods based on bendable characteristics, and can meet more users' needs for electronic devices. For an electronic device equipped with a foldable display screen, the foldable display screen on the electronic device can be switched between a small screen in a folded configuration and a large screen in an unfolded configuration at any time. Therefore, users use the split screen function on electronic devices equipped with foldable display screens more and more frequently.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头193的感光元件上,光信号转换为电信号,摄像头193的感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera 193 through the lens, and the light signal is converted into an electrical signal. The photosensitive element of the camera 193 transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或多个摄像头193。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 100 may include one or more cameras 193.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里 叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备101执行本申请一些实施例中所提供的灭屏显示的方法,以及各种应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***;该存储程序区还可以存储一个或多个应用(比如图库、联系人等)等。存储数据区可存储电子设备101使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得电子设备101执行本申请实施例中所提供的灭屏显示的方法,以及其他应用及数据处理。电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions. The processor 110 can execute the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 101 to execute the off-screen display method provided in some embodiments of the present application, as well as various applications and data processing. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more applications (such as photo galleries, contacts, etc.). The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), and the like. In some embodiments, the processor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 to cause the electronic device 101 to execute the instructions provided in the embodiments of the present application. The method of off-screen display, as well as other applications and data processing. The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power-on button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。例如,图1所示的电子设备100的硬件结构示意图可以是便携式电子设备、台式计算机、电视、笔记本电脑等的硬件结构示意图。针对智能空调、智能音箱、智能摄像装置、室温计、湿度计、湿度温度计、窗帘遥控机、智能时钟、智能热水器、智能灯具等,可以具有不同于图1所示的硬件结构。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware. For example, the schematic diagram of the hardware structure of the electronic device 100 shown in FIG. 1 may be a schematic diagram of the hardware structure of a portable electronic device, a desktop computer, a TV, a notebook computer, and the like. For smart air conditioners, smart speakers, smart camera devices, room temperature meters, hygrometers, humidity thermometers, curtain remote controls, smart clocks, smart water heaters, smart lamps, etc., the hardware structure may be different from that shown in Figure 1.
在一个示例中,智能空调例如可以包括处理器110、无线通信模块160、温度传感器、制冷***、显示屏194。智能空调的无线通信模块160可以用于接收其他设备的指示信息。智能空调的处理器110可以运行室温调节程序,并处理其他设备发送的指示信息。智能空调可以运行制冷***,以降低室温。智能空调的显示屏194可以显示用户指定的室温等。智能空调可以根据温度传感器检测到的室温,判断是否需要运行制冷***。在室温达到或 低于用户指定的室温的情况下,智能空调可以暂停运行制冷***。在室温高于用户指定的室温的情况下,智能空调可以运行制冷***。In an example, the smart air conditioner may include a processor 110, a wireless communication module 160, a temperature sensor, a refrigeration system, and a display screen 194, for example. The wireless communication module 160 of the smart air conditioner may be used to receive instruction information from other devices. The processor 110 of the smart air conditioner can run a room temperature adjustment program and process instruction information sent by other devices. Smart air conditioners can operate a refrigeration system to lower the room temperature. The display screen 194 of the smart air conditioner can display the room temperature specified by the user and the like. The smart air conditioner can determine whether the refrigeration system needs to be operated based on the room temperature detected by the temperature sensor. When the room temperature reaches or falls below the room temperature specified by the user, the smart air conditioner can suspend the operation of the refrigeration system. When the room temperature is higher than the room temperature specified by the user, the smart air conditioner can operate the refrigeration system.
在一个示例中,智能音箱例如可以包括处理器110、无线通信模块160、扬声器170A、麦克风170C。智能音箱的无线通信模块160可以用于与其他设备通信数据。智能音箱的处理器110可以运行音频播放程序,以驱动扬声器170A播放音频。该音频例如可以是通过无线通信模块160接收的、由其他设备发送的音频数据。智能音箱的处理器110还可以运行录音程序,以驱动麦克风170C收录音频。智能音箱可以将收录后的音频数据通过无线通信模块160发送给其他设备。In an example, the smart speaker may include a processor 110, a wireless communication module 160, a speaker 170A, and a microphone 170C, for example. The wireless communication module 160 of the smart speaker can be used to communicate data with other devices. The processor 110 of the smart speaker can run an audio playback program to drive the speaker 170A to play audio. The audio may be, for example, audio data received through the wireless communication module 160 and sent by other devices. The processor 110 of the smart speaker can also run a recording program to drive the microphone 170C to record audio. The smart speaker can send the recorded audio data to other devices through the wireless communication module 160.
在一个示例中,智能摄像装置例如可以包括处理器110、无线通信模块160、摄像头193、麦克风170C。智能摄像装置的无线通信模块160可以用于与其他设备通信数据。智能摄像装置的处理器110可以运行视频拍摄程序,以驱动摄像头193捕获图像信息,并驱动麦克风170C收录音频信息。智能摄像装置可以将捕获到的图像信息以及音频信息合成为视频数据,并将该视频数据通过无线通信模块160发送给其他设备。In an example, the smart camera device may include a processor 110, a wireless communication module 160, a camera 193, and a microphone 170C, for example. The wireless communication module 160 of the smart camera device can be used to communicate data with other devices. The processor 110 of the smart camera device can run a video shooting program to drive the camera 193 to capture image information, and drive the microphone 170C to record audio information. The smart camera device can synthesize the captured image information and audio information into video data, and send the video data to other devices through the wireless communication module 160.
在一个示例中,室温计例如可以包括处理器110、无线通信模块160、温度传感器、显示屏194。室温计的处理器110可以驱动温度传感器检测室温,并将该室温通过无线通信模块160发送给其他设备。室温计的显示屏194可以显示温度传感器检测到的当前室温。In an example, the room temperature meter may include a processor 110, a wireless communication module 160, a temperature sensor, and a display screen 194, for example. The processor 110 of the room temperature meter can drive the temperature sensor to detect the room temperature, and send the room temperature to other devices through the wireless communication module 160. The display screen 194 of the room temperature meter can display the current room temperature detected by the temperature sensor.
在一个示例中,湿度计例如可以包括处理器110、无线通信模块160、湿度传感器、显示屏194。湿度计的处理器110可以驱动湿度传感器检测室内湿度,并将该室内湿度通过无线通信模块160发送给其他设备。室温计的显示屏194可以显示湿度传感器检测到的当前湿度。In an example, the hygrometer may include a processor 110, a wireless communication module 160, a humidity sensor, and a display screen 194, for example. The processor 110 of the hygrometer can drive the humidity sensor to detect the indoor humidity, and send the indoor humidity to other devices through the wireless communication module 160. The display screen 194 of the room temperature meter can display the current humidity detected by the humidity sensor.
在一个示例中,湿度温度计例如可以包括处理器110、无线通信模块160、温度传感器、湿度传感器、显示屏194。湿度温度计的处理器110可以驱动温度传感器检测室温,并将该室温通过无线通信模块160发送给其他设备。湿度温度计的处理器110还可以驱动湿度传感器检测室内湿度,并将该室内湿度通过无线通信模块160发送给其他设备。湿度温度计的显示屏194可以显示温度传感器检测到的当前室温以及湿度传感器检测到的当前湿度。In an example, the humidity thermometer may include a processor 110, a wireless communication module 160, a temperature sensor, a humidity sensor, and a display screen 194, for example. The processor 110 of the humidity thermometer can drive the temperature sensor to detect the room temperature, and send the room temperature to other devices through the wireless communication module 160. The processor 110 of the humidity thermometer may also drive the humidity sensor to detect indoor humidity, and send the indoor humidity to other devices through the wireless communication module 160. The display screen 194 of the humidity thermometer can display the current room temperature detected by the temperature sensor and the current humidity detected by the humidity sensor.
在一个示例中,窗帘遥控机例如可以包括处理器110、无线通信模块160、电机。窗帘遥控机的处理器110可以包括用于驱动电机的程序,使得窗帘可以被打开或关闭。窗帘遥控机可以通过无线通信模块160接收其他设备发送的指示信息。窗帘遥控机的处理器110可以根据无线通信模块160接收到的指示信息,运行驱动电机的程序。In an example, the curtain remote control machine may include a processor 110, a wireless communication module 160, and a motor, for example. The processor 110 of the curtain remote control machine may include a program for driving a motor so that the curtain can be opened or closed. The curtain remote control machine can receive the instruction information sent by other devices through the wireless communication module 160. The processor 110 of the curtain remote control machine can run a program for driving the motor according to the instruction information received by the wireless communication module 160.
在一个示例中,智能时钟例如可以包括处理器110、无线通信模块160、扬声器170A。智能时钟的处理器110可以运行闹钟程序。在当前时间与闹钟程序中的设定时间相同的情况下,可以智能时钟的处理器110可以控制扬声器170A播放响铃。智能时钟的无线通信模块160可以接收其他设备发送的指示信息。智能时钟的处理器110可以处理该指示信息。例如,智能时钟的无线通信模块160可以接收用户新输入的闹钟指示信息,智能时钟的处理器110可以记录该闹钟指示信息。In an example, the smart clock may include the processor 110, the wireless communication module 160, and the speaker 170A, for example. The processor 110 of the smart clock can run an alarm clock program. In the case that the current time is the same as the set time in the alarm clock program, the processor 110 capable of smart clock can control the speaker 170A to play a bell. The wireless communication module 160 of the smart clock can receive instruction information sent by other devices. The processor 110 of the smart clock can process the instruction information. For example, the wireless communication module 160 of the smart clock may receive the alarm indication information newly input by the user, and the processor 110 of the smart clock may record the alarm indication information.
在一个示例中,智能热水器例如可以包括处理器110、无线通信模块160、加热***、温度传感器、显示屏194。智能热水器的无线通信模块160可以用于接收其他设备的指示信息。智能热水器的处理器110可以运行温控程序,并处理其他设备发送的指示信息。智 能热水器可以运行加热***,以控制智能热水器内的水温。智能热水器的显示屏194可以显示当前智能热水器内的水温等。智能热水器可以根据温度传感器检测到的水温,判断是否需要运行加热***。在水温达到或高于用户指定的水温的情况下,智能热水器可以暂停运行加热***。在水温低于用户指定的水温的情况下,智能热水器可以运行加热***。In an example, the smart water heater may include a processor 110, a wireless communication module 160, a heating system, a temperature sensor, and a display screen 194, for example. The wireless communication module 160 of the smart water heater may be used to receive instruction information from other devices. The processor 110 of the smart water heater can run a temperature control program and process the instruction information sent by other devices. The smart water heater can operate the heating system to control the water temperature in the smart water heater. The display screen 194 of the smart water heater can display the current water temperature in the smart water heater. The smart water heater can determine whether the heating system needs to be operated based on the water temperature detected by the temperature sensor. When the water temperature reaches or exceeds the water temperature specified by the user, the smart water heater can suspend the heating system. When the water temperature is lower than the water temperature specified by the user, the smart water heater can operate the heating system.
在一个示例中,智能灯具例如可以包括处理器110、无线通信模块160、光照***。智能灯具的无线通信模块160可以用于接收其他设备的指示信息。智能灯具的处理器110可以运行光照程序,并处理其他设备发送的指示信息。通过该光照程序,智能灯具的处理器110可以开启或关闭光照***,还可以控制光照***发出不同亮度的光。In an example, the smart lamp may include a processor 110, a wireless communication module 160, and a lighting system, for example. The wireless communication module 160 of the smart lamp can be used to receive instruction information from other devices. The processor 110 of the smart lamp can run the lighting program and process the instruction information sent by other devices. Through the lighting program, the processor 110 of the smart lamp can turn on or turn off the lighting system, and can also control the lighting system to emit light of different brightness.
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和***库,以及内核层。应用程序层可以包括一系列应用程序包。FIG. 2 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer. The application layer can include a series of application packages.
如图2所示,应用程序包可以包括语音助手、电视播放、电视剧播放、电影播放、音频播放、图库、浏览器、时钟、设置等应用程序。As shown in Figure 2, the application package may include applications such as voice assistant, TV playback, TV series playback, movie playback, audio playback, gallery, browser, clock, settings, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,浏览历史和书签等。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include videos, images, audios, browsing history, bookmarks, etc.
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,电视剧播放界面可以包括显示文字的视图、显示图像的视图以及显示视频的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, and so on. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a TV play interface may include a view that displays text, a view that displays an image, and a view that displays video.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户通信。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user communication. For example, the notification manager is used to notify download completion, message reminders, and so on. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompt text information in the status bar, sound a prompt tone, and so on.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓***的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media  libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动等。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, etc.
可以理解的是,本申请实施例示意的软件结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的模块或功能。例如,图2所示的电子设备100的软件结构框图可以是便携式电子设备、台式计算机、电视、笔记本电脑等的硬件结构示意图。针对智能空调、智能音箱、智能摄像装置、室温计、湿度计、湿度温度计、窗帘遥控机、智能时钟、智能热水器、智能灯具等,可以具有相对简化的软件结构,在此就不必详细赘述。It is understandable that the software structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer modules or functions than those shown in the figure. For example, the software structure block diagram of the electronic device 100 shown in FIG. 2 may be a hardware structure diagram of a portable electronic device, a desktop computer, a TV, a notebook computer, and the like. For smart air conditioners, smart speakers, smart camera devices, room temperature meters, hygrometers, humidity thermometers, curtain remote controls, smart clocks, smart water heaters, smart lamps, etc., a relatively simplified software structure can be provided, so there is no need to go into details here.
图3示出了一种多设备通信的应用场景。Figure 3 shows an application scenario for multi-device communication.
用户可以购买多个智能电子设备,将该多个智能电子设备安置在家中。如图3所示,用户例如可以购买电视303、笔记本电脑305、智能空调306、智能音箱308、湿度温度计311、窗帘遥控机307、智能时钟312、智能热水器304、智能摄像装置309、智能灯具310等。另外,用户可以随身携带一个或多个便携式电子设备,如图3所示的手机302。并且,用户还可以购买为多个智能电子设备提供数据服务的设备,如图3所示的路由器301。上文已经阐述了各个电子设备所能够实现的至少部分功能,在此就不必再赘述。The user can purchase multiple smart electronic devices and place the multiple smart electronic devices at home. As shown in Fig. 3, the user can purchase a TV 303, a laptop 305, a smart air conditioner 306, a smart speaker 308, a humidity thermometer 311, a curtain remote control 307, a smart clock 312, a smart water heater 304, a smart camera 309, and a smart lamp 310. Wait. In addition, the user can carry one or more portable electronic devices, such as the mobile phone 302 shown in FIG. 3. In addition, the user can also purchase a device that provides data services for multiple smart electronic devices, such as the router 301 shown in FIG. 3. At least part of the functions that can be implemented by each electronic device has been described above, and there is no need to repeat them here.
图4示出了一种用于多设备通信的通信***。通信***可以包括如图3所示的多个智能电子设备。另外,该通信***还可以包括云服务器401。图3所示的多个智能电子设备之间可以通过物联网通信协议进行数据通信。图3所示的智能电子设备还可以通过物联网通信协议等一个或多个通信协议与云服务器401进行数据通信。Figure 4 shows a communication system for multi-device communication. The communication system may include multiple smart electronic devices as shown in FIG. 3. In addition, the communication system may also include a cloud server 401. The multiple smart electronic devices shown in FIG. 3 can communicate data through the Internet of Things communication protocol. The smart electronic device shown in FIG. 3 may also perform data communication with the cloud server 401 through one or more communication protocols such as the Internet of Things communication protocol.
图4所示的通信***可以包括4类电子设备。The communication system shown in FIG. 4 may include four types of electronic equipment.
第一类电子设备可以是云服务器401。云服务器401可以接收来自多个智能电子设备的数据,并为该多个智能电子设备提供数据服务,例如为该多个智能电子设备提供大数据存储服务、高速运算服务等。The first type of electronic device may be a cloud server 401. The cloud server 401 can receive data from multiple smart electronic devices, and provide data services for the multiple smart electronic devices, for example, provide big data storage services, high-speed computing services, etc., for the multiple smart electronic devices.
第二类电子设备可以是物联网设备402。物联网设备402可以指具备特定功能的物联网设备。也就是说,该物联网设备402通常可以在一小部分特定场景下,为用户提供智能服务。物联网设备402可以受到其他智能电子设备的控制。物联网设备402例如可以包括如图3所示的电视303、智能空调306、智能音箱308、湿度温度计311、窗帘遥控机307、智能时钟312、智能热水器304、智能摄像装置309、智能灯具310等。本申请实施例对物联网设备402的具体类型不作限定。The second type of electronic device may be the Internet of Things device 402. The Internet of Things device 402 may refer to an Internet of Things device with specific functions. In other words, the IoT device 402 can generally provide users with intelligent services in a small number of specific scenarios. The Internet of Things device 402 can be controlled by other smart electronic devices. The Internet of Things device 402 may include, for example, a TV 303, a smart air conditioner 306, a smart speaker 308, a humidity thermometer 311, a curtain remote control machine 307, a smart clock 312, a smart water heater 304, a smart camera 309, a smart lamp 310, etc. as shown in FIG. 3 . The embodiment of the present application does not limit the specific type of the Internet of Things device 402.
第三类电子设备可以是控制设备403。控制设备403可以控制物联网设备402执行相应的操作,使得多个物联网设备402协同为用户提供智能服务。控制设备403还可以与云服务器401进行数据通信。例如,控制设备403可以将与用户习惯相关的数据发送至云服务器401,云服务器401可以根据该用户习惯,得到适合该用户的控制设备403的方法, 并将该方法发送至控制设备403,从而控制设备403可以采用与用户习惯匹配的方法控制物联网设备402。控制设备403例如可以是如图3所示的手机302、笔记本电脑305等。本申请实施例对控制设备403的具体类型不作限定。The third type of electronic device may be the control device 403. The control device 403 can control the Internet of Things device 402 to perform corresponding operations, so that a plurality of Internet of Things devices 402 cooperate to provide intelligent services for users. The control device 403 can also perform data communication with the cloud server 401. For example, the control device 403 may send data related to the user's habit to the cloud server 401, and the cloud server 401 may obtain a method suitable for the user to control the device 403 according to the user's habit, and send the method to the control device 403, thereby The control device 403 can control the Internet of Things device 402 in a method that matches the user's habits. The control device 403 may be, for example, a mobile phone 302, a notebook computer 305, etc. as shown in FIG. 3. The embodiment of the present application does not limit the specific type of the control device 403.
第四类电子设备可以是通信服务设备404。通信服务设备404可以为多个智能电子设备提供数据通信服务。也就是说,通信服务设备404可以为该多个智能电子设备提供局域网。例如,智能电子设备1可以将数据发送至通信服务设备404,再由该通信服务设备404转发至智能电子设备2。又如,智能电子设备3可以通过局域网广播数据,智能电子设备4可以通过该局域网接收到智能电子设备3广播的数据。又如,智能电子设备5可以通过通信服务设备404将数据发送至云服务器401,并通过通信服务设备404接收云服务器401发送的数据。通信服务设备404例如可以包括如图3所示的路由器301等。本申请实施例对通信服务设备404的具体类型不作限定。The fourth type of electronic device may be a communication service device 404. The communication service device 404 can provide data communication services for multiple smart electronic devices. In other words, the communication service device 404 may provide a local area network for the multiple smart electronic devices. For example, the smart electronic device 1 may send data to the communication service device 404, and then the communication service device 404 forwards the data to the smart electronic device 2. For another example, the smart electronic device 3 may broadcast data through a local area network, and the smart electronic device 4 may receive the data broadcast by the smart electronic device 3 through the local area network. For another example, the smart electronic device 5 may send data to the cloud server 401 through the communication service device 404, and receive the data sent by the cloud server 401 through the communication service device 404. The communication service device 404 may include, for example, a router 301 as shown in FIG. 3 and the like. The embodiment of the present application does not limit the specific type of the communication service device 404.
在一个示例中,物联网设备402可以直接与控制设备403建立无线通信连接,并通过物联网通信协议(例如智能家居通信协议、如图4所示的Hilink通信协议405等)进行数据通信。In an example, the IoT device 402 can directly establish a wireless communication connection with the control device 403, and perform data communication through an IoT communication protocol (for example, a smart home communication protocol, the Hilink communication protocol 405 shown in FIG. 4, etc.).
在一个示例中,物联网设备402可以通过通信服务设备404,根据物联网通信协议与控制设备403、云服务器401进行数据通信。In an example, the Internet of Things device 402 can perform data communication with the control device 403 and the cloud server 401 through the communication service device 404 according to the Internet of Things communication protocol.
在一个示例中,控制设备403可以根据移动通信网络,与云服务器401进行数据通信。In an example, the control device 403 may perform data communication with the cloud server 401 according to a mobile communication network.
在一个示例中,控制设备403可以根据通信服务设备404提供的无线通信网络,与云服务器401进行数据通信。In an example, the control device 403 may perform data communication with the cloud server 401 according to the wireless communication network provided by the communication service device 404.
一种可能的情况下,上述多个智能电子设备可以均由同一供应商提供。供应商可以为用户提供私有物联网通信协议。也就是说,上述电视、笔记本电脑、智能空调、智能音箱、智能摄像装置、湿度温度计、窗帘遥控机、智能时钟、智能热水器、智能灯具均可以根据该私有物联网通信协议,与其他智能电子设备通信。例如,智能时钟可以通过该私有物联网通信协议,将时间信息发送给窗帘遥控机,从而窗帘遥控机可以在指定的时刻控制窗帘打开或关闭。In a possible situation, the multiple smart electronic devices mentioned above may all be provided by the same supplier. Suppliers can provide users with private IoT communication protocols. In other words, the above-mentioned TVs, laptops, smart air conditioners, smart speakers, smart camera devices, humidity thermometers, curtain remote controls, smart clocks, smart water heaters, and smart lamps can all communicate with other smart electronic devices according to the private IoT communication protocol. Communication. For example, the smart clock can send time information to the curtain remote control machine through the private Internet of Things communication protocol, so that the curtain remote control machine can control the curtain to open or close at a specified time.
另一种可能的情况下,上述多个智能电子设备由不同供应商提供。不同供应商使用的私有物联网通信协议不同。仍以上面的示例为例,智能时钟由供应商1提供,且供应商1提供的私有物联网通信协议为私有物联网通信协议1;窗帘遥控机由供应商2提供,且供应商2提供的私有物联网通信协议为私有物联网通信协议2。由于智能时钟无法通过私有物联网通信协议2向窗帘遥控机发送指示信息,且窗帘遥控机无法通过私有物联网通信协议1接收智能时钟发送的指示信息,因此用户无法通过智能时钟,控制窗帘遥控机在指定的时刻开启窗帘或关闭窗帘。In another possible case, the above-mentioned multiple smart electronic devices are provided by different suppliers. The private IoT communication protocols used by different vendors are different. Still taking the above example as an example, the smart clock is provided by supplier 1, and the private IoT communication protocol provided by supplier 1 is the private IoT communication protocol 1; the curtain remote control machine is provided by supplier 2 and the private IoT communication protocol provided by supplier 2 The private Internet of Things communication protocol is the Private Internet of Things communication protocol 2. Since the smart clock cannot send instructions to the curtain remote control through the private IoT communication protocol 2, and the curtain remote control cannot receive the instructions sent by the smart clock through the private IoT communication protocol 1, the user cannot control the curtain remote control through the smart clock Open or close the curtains at a designated time.
用户在购买智能电子设备时通常会考虑很多因素,例如品牌效应、设备质量、设备价格等。另外,供应商通常无法提供足够多样化的智能电子设备。如果用户购买了由多个供应商提供的多个智能电子设备,可能会降低使用该多个智能电子设备的便捷度。Users usually consider many factors when purchasing smart electronic devices, such as brand effect, device quality, and device price. In addition, suppliers often cannot provide sufficiently diverse smart electronic devices. If the user purchases multiple smart electronic devices provided by multiple suppliers, the convenience of using the multiple smart electronic devices may be reduced.
为了使智能电子设备尽可能按照用户的意愿执行操作,用户可以将指定条件以及该指定条件所对应的指定操作输入至智能电子设备,从而该智能电子设备可以在该指定条件下执行该指定操作。仍以上面的示例为例,用户可以将制定的时刻输入至窗帘遥控机,从而窗帘遥控机可以在指定的时刻控制窗帘打开或关闭。然而,输入该指定条件和该指定操作 的过程并不十分便捷。In order to enable the smart electronic device to perform operations according to the user's wishes as much as possible, the user can input a designated condition and a designated operation corresponding to the designated condition to the smart electronic device, so that the smart electronic device can perform the designated operation under the designated condition. Still taking the above example as an example, the user can input the specified time into the curtain remote control machine, so that the curtain remote control machine can control the curtain to open or close at the specified time. However, the process of inputting the specified conditions and the specified operation is not very convenient.
图5是本申请实施例提供的一种通信***。在该通信***中,多个设备间可以建立无线通信连接。该通信***可以包括控制设备以及多个物联网设备。Fig. 5 is a communication system provided by an embodiment of the present application. In this communication system, a wireless communication connection can be established between multiple devices. The communication system may include a control device and a plurality of Internet of Things devices.
物联网设备可以通过无线通信协议与控制设备建立无线通信连接。物联网设备例如可以是如图5所示的电视303、智能空调306、智能音箱308、湿度温度计311、窗帘遥控机307、智能时钟312、智能热水器304、智能摄像装置309、智能灯具310等。控制设备例如可以是如图5所示的手机302。The Internet of Things device can establish a wireless communication connection with the control device through a wireless communication protocol. The IoT device may be, for example, a TV 303, a smart air conditioner 306, a smart speaker 308, a humidity thermometer 311, a curtain remote control machine 307, a smart clock 312, a smart water heater 304, a smart camera 309, a smart lamp 310, etc. as shown in FIG. The control device may be, for example, a mobile phone 302 as shown in FIG. 5.
在一个示例中,物联网设备例如可以通过蓝牙通信协议与控制设备进行数据通信。例如物联网设备可以通过蓝牙通信协议向控制设备发送消息;相应地,控制设备可以通过蓝牙通信协议向物联网设备发送消息。由此,物联网设备可以与控制设备建立用于数据通信的无线通信连接。In an example, the Internet of Things device may perform data communication with the control device through a Bluetooth communication protocol, for example. For example, the Internet of Things device can send a message to the control device through the Bluetooth communication protocol; accordingly, the control device can send a message to the Internet of Things device through the Bluetooth communication protocol. Thus, the Internet of Things device can establish a wireless communication connection for data communication with the control device.
在一个示例中,物联网设备与控制设备可以接入相同的无线局域网,该无线局域网可以由通信服务设备(如图5中的路由器301)提供。物联网设备与控制设备可以通过通信服务设备进行通信。例如,物联网设备可以向通信服务设备发送消息1,该消息1可以由该通信服务设备转发至控制设备;相应地,控制设备可以通过向通信服务设备发送消息2,该消息2可以由该通信服务设备转发至物联网设备。由此,物联网设备可以与控制设备建立用于数据通信的无线通信连接。In an example, the Internet of Things device and the control device can access the same wireless local area network, and the wireless local area network can be provided by a communication service device (such as the router 301 in FIG. 5). The IoT device and the control device can communicate through the communication service device. For example, the Internet of Things device can send message 1 to the communication service device, and the message 1 can be forwarded by the communication service device to the control device; accordingly, the control device can send message 2 to the communication service device, and the message 2 can be sent by the communication service device. The service device is forwarded to the IoT device. Thus, the Internet of Things device can establish a wireless communication connection for data communication with the control device.
图5示出了多个物联网设备与控制设备建立无线通信连接的通信***500。在该通信***500中,控制设备可以与多个物联网设备建立无线通信连接。可选的,多个物联网设备中的任意两个物联网设备之间的通信可以以控制设备为媒介。另外,两个物联网设备之间的无线通信连接也可以不以控制设备为媒介。也就是说,两个物联网设备可以绕过控制设备建立无线通信连接。针对两个物联网设备之间建立无线通信连接的过程在下文中有详细的说明,在此先不必赘述。FIG. 5 shows a communication system 500 in which a plurality of Internet of Things devices establish a wireless communication connection with a control device. In the communication system 500, the control device can establish wireless communication connections with multiple Internet of Things devices. Optionally, the communication between any two IoT devices among the multiple IoT devices may use the control device as a medium. In addition, the wireless communication connection between two IoT devices may not use the control device as a medium. In other words, two IoT devices can bypass the control device to establish a wireless communication connection. The process of establishing a wireless communication connection between two Internet of Things devices is described in detail below, and it is not necessary to repeat it here.
图6是本申请实施例提供的一种控制设备与物联网设备的通信示意图。Fig. 6 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
物联网设备可以向控制设备发送第一设备注册信息,所述第一设备注册信息用于指示所述物联网设备的M个输入参数,M为正整数。The Internet of Things device may send first device registration information to the control device, where the first device registration information is used to indicate M input parameters of the Internet of Things device, and M is a positive integer.
相应地,所述控制设备接收所述物联网设备发送的所述第一设备注册信息。Correspondingly, the control device receives the first device registration information sent by the Internet of Things device.
也就是说,控制设备可以根据第一设备注册信息,确定物联网设备可以接收的M个输入参数。另外,控制设备可以与物联网设备建立无线通信连接。建立无线通信连接即意味着,控制设备可以获知在该控制设备周围存在某个物联网设备,且该物联网设备获知在该物联网设备周围存在该控制设备;该控制设备可以与该物联网设备共同建立用于数据通信的数据传输通道。That is, the control device can determine the M input parameters that can be received by the IoT device according to the registration information of the first device. In addition, the control device can establish a wireless communication connection with the Internet of Things device. Establishing a wireless communication connection means that the control device can learn that there is an Internet of Things device around the control device, and the Internet of Things device learns that the control device exists around the Internet of Things device; the control device can communicate with the Internet of Things device Jointly establish a data transmission channel for data communication.
在一个示例中,针对智能空调,M个输入参数可以包括温度参数、湿度参数、时间参数、事件参数等。In one example, for a smart air conditioner, the M input parameters may include temperature parameters, humidity parameters, time parameters, event parameters, and so on.
温度参数的具体应用可以包括以下至少一种:向智能空调指示当前室温的具体数值,向智能空调指示预设温度的数值等。其中,该预设温度例如可以由用户指定。例如,智能空调可以根据温度参数调整智能空调的当前设定。The specific application of the temperature parameter may include at least one of the following: indicating the specific value of the current room temperature to the smart air conditioner, indicating the value of the preset temperature to the smart air conditioner, and the like. Wherein, the preset temperature can be specified by the user, for example. For example, the smart air conditioner can adjust the current settings of the smart air conditioner according to temperature parameters.
湿度参数的具体应用可以包括以下至少一种:向智能空调指示当前室内湿度的具体数值,向智能空调指示预设湿度的数值等。其中,该预设湿度例如可以由用户指定。例如, 智能空调可以根据湿度参数调整智能空调的当前设定。The specific application of the humidity parameter may include at least one of the following: indicating the specific value of the current indoor humidity to the smart air conditioner, indicating the value of the preset humidity to the smart air conditioner, and the like. Wherein, the preset humidity can be specified by the user, for example. For example, the smart air conditioner can adjust the current setting of the smart air conditioner according to humidity parameters.
时间参数的具体应用可以包括以下至少一种:向智能空调指示当前时刻,向智能空调指示预设时刻或预设时段等。其中,该预设时刻、预设时段例如可以由用户指定。预设时刻、预设时段例如可以是闹钟(或闹铃)数据。例如,在指定时刻打开或关闭智能空调。又如,在开启智能空调的时间达到预设时段的情况下,关闭智能空调。The specific application of the time parameter may include at least one of the following: indicating the current time to the smart air conditioner, indicating the preset time or the preset time period to the smart air conditioner, and so on. Wherein, the preset time and the preset time period can be specified by the user, for example. The preset time and the preset time period may be alarm (or alarm) data, for example. For example, the smart air conditioner is turned on or off at a specified time. For another example, when the time for turning on the smart air conditioner reaches a preset time period, the smart air conditioner is turned off.
事件参数的具体应用可以包括:向智能空调发送事件信息,该智能空调可以根据该事件信息实现该智能空调的部分功能。例如,事件信息可以包括室内有人的指示信息,智能空调可以根据该室内有人的指示信息,开启智能空调;该事件信息还可以包括室内无人的指示信息,智能空调可以在收到该指示信息后的一端时间内关闭该智能空调。The specific application of the event parameter may include: sending event information to the smart air conditioner, and the smart air conditioner can implement part of the functions of the smart air conditioner according to the event information. For example, the event information may include the indication information of a person in the room, and the smart air conditioner may turn on the smart air conditioner according to the indication information of the person in the room; the event information may also include the indication information that there is no person in the room, and the smart air conditioner may receive the indication information. Turn off the smart air conditioner within a certain period of time.
在一个示例中,针对电视,M个输入参数可以包括音频参数、图像参数、视频参数、时间参数、事件参数等。In one example, for TV, the M input parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
音频参数的具体应用可以包括以下至少一种:向电视发送用户的语义指令,向电视发送用户的声纹数据、向电视发送语音通话的数据,向电视发送待播放音频的数据等。用户的语音指令可以与电视所能够实现的部分功能对应。例如,用户的语音指令可以指示电视播放特定的节目。用户的声纹数据可以用于电视识别用户身份。电视可以接收其他录音装置发送的语音通话的数据,而电视自身无需进行录音。电视可以播放该待播放音频。The specific application of audio parameters may include at least one of the following: sending a user's semantic instruction to the TV, sending the user's voiceprint data to the TV, sending the data of a voice call to the TV, sending the data of the audio to be played to the TV, and so on. The user's voice commands can correspond to some of the functions that the TV can achieve. For example, the user's voice command can instruct the TV to play a specific program. The user's voiceprint data can be used by the TV to identify the user's identity. The TV can receive voice call data sent by other recording devices, and the TV itself does not need to record. The TV can play the to-be-played audio.
图像参数的具体应用可以包括以下至少一种:向电视发送用户的人脸图像,向电视发送待显示图像的数据等。用户的人脸图像可以用于电视识别用户身份。电视可以显示该待显示图像。The specific application of the image parameter may include at least one of the following: sending the user's face image to the TV, sending the data of the image to be displayed to the TV, and so on. The user's face image can be used for the TV to identify the user's identity. The TV can display the image to be displayed.
视频参数的具体应用可以包括以下至少一种:向电视发送视频通话的数据,向电视发送待播放视频的数据等。电视可以接收其他拍摄装置发送的视频通话的数据,而无需电视自身进行录像;电视还可以显示该其他拍摄装置拍摄的录像。The specific application of the video parameter may include at least one of the following: sending data of a video call to the TV, sending data of a video to be played to the TV, and so on. The TV can receive video call data sent by other shooting devices without the need for the TV itself to record; the TV can also display the video taken by the other shooting device.
时间参数的具体应用可以包括以下至少一种:向电视指示当前时刻,向电视指示预设时刻或预设时段等。其中,该预设时刻、预设时段例如可以由用户指定。预设时刻、预设时段例如可以是闹钟(或闹铃)数据。例如,在指定时刻打开或关闭电视。又如,在开启电视的时间达到预设时段的情况下,关闭电视。The specific application of the time parameter may include at least one of the following: indicating the current time to the TV, indicating the preset time or the preset time period to the TV, and so on. Wherein, the preset time and the preset time period can be specified by the user, for example. The preset time and the preset time period may be alarm (or alarm) data, for example. For example, turn the TV on or off at a specified time. For another example, when the time for turning on the TV reaches a preset time period, the TV is turned off.
事件参数的具体应用可以包括:向电视发送事件信息,该电视可以根据该事件信息实现该电视的部分功能。例如,事件信息可以包括用户喜好数据,电视可以根据该用户喜好数据,推送用户可能喜好的多媒体数据。例如,用户近期通过智能音箱多次播放某个电视剧的主题曲,该智能音箱可以通过用户喜好数据向电视指示用户可能喜好该电视剧,电视可以根据该用户喜好数据,为用户推送该电视剧。The specific application of event parameters may include: sending event information to a TV, and the TV can implement part of the TV's functions according to the event information. For example, the event information may include user preference data, and the TV may push multimedia data that the user may like according to the user preference data. For example, a user has recently played the theme song of a certain TV series through a smart speaker several times. The smart speaker can indicate to the TV that the user may like the TV series through user preference data, and the TV can push the TV series to the user according to the user preference data.
在一个示例中,针对智能音箱,M个输入参数可以包括音频参数、时间参数、事件参数等。In one example, for a smart speaker, the M input parameters may include audio parameters, time parameters, event parameters, and so on.
音频参数的具体应用可以包括以下至少一种:向智能音箱发送用户的语义指令,向智能音箱发送用于通话的音频数据,向智能音箱发送待播放音频的数据等。用户的语音指令可以与智能音箱所能够实现的部分功能对应。例如,用户的语音指令可以指示智能音箱提高音量。智能音箱可以播放该用于通话的音频数据。智能音箱可以播放该待播放音频。The specific application of audio parameters may include at least one of the following: sending a user's semantic instruction to the smart speaker, sending audio data for a call to the smart speaker, sending data of the audio to be played to the smart speaker, and so on. The user's voice commands can correspond to some of the functions that smart speakers can achieve. For example, the user's voice command can instruct the smart speaker to increase the volume. The smart speaker can play the audio data for the call. The smart speaker can play the audio to be played.
时间参数的具体应用可以包括以下至少一种:向智能音箱指示当前时刻,向智能音箱指示预设时刻或预设时段等。其中,该预设时刻、预设时段例如可以由用户指定。预设时 刻、预设时段例如可以是闹钟(或闹铃)数据。例如,在指定时刻打开或关闭智能音箱。又如,在开启智能音箱的时间达到预设时段的情况下,关闭智能音箱。The specific application of the time parameter may include at least one of the following: indicating the current time to the smart speaker, indicating the preset time or the preset time to the smart speaker, and so on. Wherein, the preset time and the preset time period can be specified by the user, for example. The preset time and time period may be alarm (or alarm) data, for example. For example, turn on or turn off the smart speaker at a specified time. For another example, when the time for turning on the smart speaker reaches a preset period of time, the smart speaker is turned off.
事件参数的具体应用可以包括:向智能音箱发送事件信息,该智能音箱可以根据该事件信息实现该智能音箱的部分功能。例如,事件信息可以包括用户喜好数据,智能音箱可以根据该用户喜好数据,推送用户可能喜好的音乐。例如,用户近期通过电视多次播放某个歌手的演唱会视频,该电视可以通过用户喜好数据向智能音箱指示用户可能喜好该歌手,智能音箱可以根据该用户喜好数据,为用户推送该歌手的音乐。The specific application of the event parameter may include: sending event information to the smart speaker, and the smart speaker can implement part of the functions of the smart speaker according to the event information. For example, the event information may include user preference data, and the smart speaker may push music that the user may like based on the user preference data. For example, if a user recently played a concert video of a certain singer on a TV several times, the TV can indicate to the smart speaker that the user may like the singer through user preference data, and the smart speaker can push the singer’s music to the user based on the user’s preference data .
在一个示例中,针对窗帘遥控机,M个输入参数可以包括时间参数、事件参数等。In an example, for the curtain remote control machine, the M input parameters may include time parameters, event parameters, and so on.
时间参数的具体应用可以包括以下至少一种:向窗帘遥控机指示当前时刻,向窗帘遥控机指示预设时刻或预设时段等。其中,该预设时刻、预设时段例如可以由用户指定。预设时刻、预设时段例如可以是闹钟(或闹铃)数据。例如,在指定时刻打开或关闭窗帘遥控机。又如,在开启窗帘遥控机的时间达到预设时段的情况下,关闭窗帘遥控机。The specific application of the time parameter may include at least one of the following: indicating the current time to the curtain remote control machine, indicating the preset time or the preset time period to the curtain remote control machine, and so on. Wherein, the preset time and the preset time period can be specified by the user, for example. The preset time and the preset time period may be alarm (or alarm) data, for example. For example, open or close the curtain remote control machine at a specified time. For another example, when the time for opening the curtain remote control machine reaches a preset period of time, the curtain remote control machine is turned off.
事件参数的具体应用可以包括:向窗帘遥控机发送事件信息,该窗帘遥控机可以根据该事件信息实现该窗帘遥控机的部分功能。例如,事件信息可以包括室内光强的指示信息。窗帘遥控机可以根据该室内光强的指示信息,控制窗帘开启至指定程度。需要说明的是,窗帘在100%开启的情况下可以不起到遮挡窗户的作用;窗帘在100%关闭(即开启0%)的情况下,可以起到基本遮挡窗户的作用。The specific application of the event parameter may include: sending event information to the curtain remote control machine, and the curtain remote control machine can implement part of the functions of the curtain remote control machine according to the event information. For example, the event information may include indication information of indoor light intensity. The curtain remote control machine can control the curtain to open to a specified degree according to the indication information of the indoor light intensity. It should be noted that when the curtain is 100% open, the window can not be blocked; when the curtain is 100% closed (ie, 0% open), it can basically block the window.
在一个示例中,针对智能热水器,M个输入参数可以包括温度参数、时间参数、事件参数等。In one example, for a smart water heater, the M input parameters may include temperature parameters, time parameters, event parameters, and so on.
温度参数的具体应用可以包括以下至少一种:向智能热水器指示当前室温,向智能热水器指示预设温度的数值等。其中,该预设温度例如可以由用户指定。例如,智能热水器可以根据温度参数调整智能热水器的当前设定的加热温度。The specific application of the temperature parameter may include at least one of the following: indicating the current room temperature to the smart water heater, indicating the value of the preset temperature to the smart water heater, and so on. Wherein, the preset temperature can be specified by the user, for example. For example, the smart water heater can adjust the currently set heating temperature of the smart water heater according to temperature parameters.
时间参数的具体应用可以包括以下至少一种:向智能热水器指示当前时刻,向智能热水器指示预设时刻或预设时段等。其中,该预设时刻、预设时段例如可以由用户指定。预设时刻、预设时段例如可以是闹钟(或闹铃)数据。例如,在指定时刻打开或关闭智能热水器的加热功能。又如,在开启智能热水器的加热功能的时间达到预设时段的情况下,关闭智能热水器的加热功能。The specific application of the time parameter may include at least one of the following: indicating the current time to the smart water heater, indicating the preset time or the preset time period to the smart water heater, and so on. Wherein, the preset time and the preset time period can be specified by the user, for example. The preset time and the preset time period may be alarm (or alarm) data, for example. For example, turn on or turn off the heating function of a smart water heater at a specified time. For another example, when the heating function of the smart water heater is turned on for a preset period of time, the heating function of the smart water heater is turned off.
事件参数的具体应用可以包括:向智能热水器发送事件信息,该智能热水器可以根据该事件信息实现该智能热水器的部分功能。例如,事件信息可以包括室内有人的指示信息,智能热水器可以根据该室内有人的指示信息,开启智能热水器的加热功能;该事件信息还可以包括室内无人的指示信息,智能热水器可以在收到该指示信息后的一端时间内关闭该智能热水器的加热功能,并打开该智能热水器的保温功能。The specific application of the event parameter may include: sending event information to the smart water heater, and the smart water heater can implement part of the functions of the smart water heater according to the event information. For example, the event information can include the indication information of a person in the room, and the smart water heater can turn on the heating function of the smart water heater according to the indication information of the person in the room; the event information can also include the indication information that there is no person in the room, and the smart water heater can Turn off the heating function of the smart water heater and turn on the heat preservation function of the smart water heater within a certain period of time after the instruction information.
在一个示例中,针对智能灯具,M个输入参数可以包括亮度参数、时间参数、事件参数等。In an example, for a smart lamp, the M input parameters may include brightness parameters, time parameters, event parameters, and so on.
亮度参数的具体应用可以包括以下至少一种:向智能灯具指示当前室内亮度,向智能灯具指示预设亮度的数值等。其中,该预设亮度例如可以由用户指定。例如,智能灯具可以根据亮度参数调整智能灯具的当前亮度。The specific application of the brightness parameter may include at least one of the following: indicating the current indoor brightness to the smart lamp, indicating the value of the preset brightness to the smart lamp, and the like. Wherein, the preset brightness can be specified by the user, for example. For example, the smart lamp can adjust the current brightness of the smart lamp according to the brightness parameter.
时间参数的具体应用可以包括以下至少一种:向智能灯具指示当前时刻,向智能灯具指示预设时刻或预设时段等。其中,该预设时刻、预设时段例如可以由用户指定。预设时 刻、预设时段例如可以是闹钟(或闹铃)数据。例如,在指定时刻打开或关闭智能灯具的光照功能。又如,在开启智能灯具的时间达到预设时段的情况下,关闭智能灯具的光照功能。The specific application of the time parameter may include at least one of the following: indicating the current time to the smart lamp, indicating the preset time or the preset time period to the smart lamp, and so on. Wherein, the preset time and the preset time period can be specified by the user, for example. The preset time and time period may be alarm (or alarm) data, for example. For example, turn on or turn off the lighting function of smart lamps at a specified time. For another example, when the time for turning on the smart lamp reaches a preset period of time, the lighting function of the smart lamp is turned off.
事件参数的具体应用可以包括:向智能灯具发送事件信息,该智能灯具可以根据该事件信息实现该智能灯具的部分功能。例如,事件信息可以包括室内有人的指示信息,智能灯具可以根据该室内有人的指示信息,开启智能灯具的光照功能;该事件信息还可以包括室内无人的指示信息,智能灯具可以在收到该指示信息后的一端时间内关闭该智能灯具的光照功能。The specific application of the event parameter may include: sending event information to a smart lamp, and the smart lamp can implement part of the functions of the smart lamp according to the event information. For example, the event information may include the indication information of a person in the room, and the smart lamp may turn on the lighting function of the smart lamp according to the indication information of the person in the room; the event information may also include the indication information that there is no person in the room. Turn off the lighting function of the smart lamp within a certain period of time after the information is indicated.
在一个示例中,针对智能摄像装置,M个输入参数可以包括事件参数等。In one example, for the smart camera device, the M input parameters may include event parameters and the like.
事件参数的具体应用可以包括:向智能摄像装置发送事件信息,该智能摄像装置可以根据该事件信息实现该智能摄像装置的部分功能。例如,事件信息可以包括用户在室内的方位信息,智能摄像装置可以根据该方位信息,调整该智能摄像装置的拍摄角度、拍摄焦距等。The specific application of the event parameter may include: sending event information to a smart camera device, and the smart camera device can implement part of the functions of the smart camera device according to the event information. For example, the event information may include the location information of the user indoors, and the smart camera device can adjust the shooting angle, shooting focus, etc. of the smart camera device according to the location information.
在一个示例中,针对智能时钟,M个输入参数可以包括事件参数等。In one example, for the smart clock, the M input parameters may include event parameters and the like.
事件参数的具体应用可以包括:向智能时钟发送事件信息,该智能时钟可以根据该事件信息实现该智能时钟的部分功能。例如,用户可以在其他物联网设备设定闹钟,该其他物联网设备可以向智能时钟发送事件信息,该事件信息可以包括闹钟的指示信息,智能时钟可以根据该闹钟的指示信息,增添一条闹铃记录。The specific application of the event parameter may include: sending event information to the smart clock, and the smart clock can implement part of the functions of the smart clock according to the event information. For example, a user can set an alarm clock on another Internet of Things device. The other Internet of Things device can send event information to the smart clock. The event information can include the indication information of the alarm clock. The smart clock can add an alarm based on the indication information of the alarm clock. record.
在一个示例中,针对湿度温度计,M个输入参数可以包括事件参数等。In an example, for a humidity thermometer, the M input parameters may include event parameters and the like.
事件参数的具体应用可以包括:向湿度温度计发送事件信息,该湿度温度计可以根据该事件信息实现该湿度温度计的部分功能。例如,事件信息可以包括空调开启的指示信息,智能灯具可以根据该空调开启的指示信息,缩短温度的检测周期以及湿度的检测周期,并按照预设周期向空调发送温度参数和湿度参数。The specific application of the event parameter may include: sending event information to a humidity thermometer, and the humidity thermometer can implement part of the functions of the humidity thermometer according to the event information. For example, the event information may include the indication information that the air conditioner is turned on, and the smart lamp may shorten the temperature detection cycle and the humidity detection cycle according to the indication information that the air conditioner is turned on, and send the temperature and humidity parameters to the air conditioner according to the preset cycle.
可选的,所述第一设备注册信息还可以包括以下至少一种:所述M个输入参数的接口信息、所述物联网设备支持的无线通信协议、所述物联网设备支持的物联网通信协议等。Optionally, the first device registration information may further include at least one of the following: interface information of the M input parameters, a wireless communication protocol supported by the Internet of Things device, and Internet of Things communication supported by the Internet of Things device Agreement etc.
在一个示例中,该第一设备注册信息例如可以包括该M个输入参数的接口信息。In an example, the first device registration information may include interface information of the M input parameters, for example.
例如,物联网设备可以使用无线通信接口1接收M个输入参数中的第一部分输入参数,该物联网设备可以使用无线通信接口2接收M个输入参数中的第二部分输入参数。可选的,该第一部分输入参数中的任一输入参数与该第二部分输入参数中的每个输入参数不同。For example, the Internet of Things device may use the wireless communication interface 1 to receive the first part of the M input parameters, and the Internet of Things device may use the wireless communication interface 2 to receive the second part of the M input parameters. Optionally, any input parameter in the first part of input parameters is different from each input parameter in the second part of input parameters.
在一个示例中,该第一设备注册信息例如可以包括该物联网设备支持的无线通信协议。In an example, the first device registration information may include, for example, a wireless communication protocol supported by the Internet of Things device.
例如,物联网设备1可以支持蓝牙无线通信协议,不支持Wi-Fi无线通信协议,则物联网设备1可以通过蓝牙无线通信协议与其他设备(如控制设备,其他物联网设备等)进行数据通信。For example, the Internet of Things device 1 can support Bluetooth wireless communication protocol, but does not support Wi-Fi wireless communication protocol, then the Internet of Things device 1 can communicate with other devices (such as control devices, other Internet of Things devices, etc.) through the Bluetooth wireless communication protocol. .
在一个示例中,该第一设备注册信息例如可以包括该物联网设备支持的物联网通信协议。In an example, the first device registration information may include, for example, an Internet of Things communication protocol supported by the Internet of Things device.
例如,物联网设备1的品牌供应商为品牌A,物联网设备2的品牌供应商为品牌B。其中,物联网设备1可以支持的物联网通信协议包括品牌A提供的物联网通信协议、品牌 B提供的物联网通信协议,物联网设备2可以支持的物联网通信协议包括品牌B提供的物联网通信协议、品牌C提供的物联网通信协议,则物联网设备1可以通过品牌B提供的物联网通信协议与物联网设备2进行数据通信。For example, the brand supplier of IoT device 1 is brand A, and the brand supplier of IoT device 2 is brand B. Among them, the Internet of Things communication protocol supported by the Internet of Things device 1 includes the Internet of Things communication protocol provided by Brand A and the Internet of Things communication protocol provided by Brand B. The Internet of Things communication protocol supported by the Internet of Things device 2 includes the Internet of Things provided by Brand B. Communication protocol, the Internet of Things communication protocol provided by Brand C, the Internet of Things device 1 can communicate with the Internet of Things device 2 through the Internet of Things communication protocol provided by Brand B.
可选的,物联网设备可以支持一种开放物联网通信协议。该开放物联网通信协议至少可以开放给多个物联网设备的开发人员使用。甚至,开放物联网通信协议可以至少部分开放给公众,即至少部分开放物联网通信协议是处于非保密状态。开放物联网通信协议可以用于多个电子设备之间通信,该多个电子设备可以由相同或不同的供应商提供。该开放物联网通信协议例如可以是HiLink通信协议。Optionally, the IoT device can support an open IoT communication protocol. The open IoT communication protocol can at least be open to developers of multiple IoT devices. Furthermore, the open IoT communication protocol can be at least partially open to the public, that is, at least part of the open IoT communication protocol is in a non-secret state. The open IoT communication protocol can be used for communication between multiple electronic devices, and the multiple electronic devices can be provided by the same or different vendors. The open IoT communication protocol may be, for example, the HiLink communication protocol.
图7是本申请实施例提供的一种控制设备与物联网设备的通信示意图。FIG. 7 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
物联网设备可以向控制设备发送第二设备注册信息,所述第二设备注册信息用于指示所述物联网设备的N个输出参数,N为正整数。The Internet of Things device may send second device registration information to the control device, where the second device registration information is used to indicate N output parameters of the Internet of Things device, and N is a positive integer.
相应地,所述控制设备接收所述物联网设备发送的所述第二设备注册信息。Correspondingly, the control device receives the second device registration information sent by the Internet of Things device.
也就是说,控制设备可以根据第二设备注册信息,确定物联网设备可以发送的N个输出参数。M与N可以相同,也可以不同。另外,控制设备可以与物联网设备建立无线通信连接。建立无线通信连接即意味着,控制设备获知在该控制设备周围存在某个物联网设备,且该物联网设备获知在该物联网设备周围存在该控制设备;该控制设备可以与该物联网设备共同建立用于数据通信的数据传输通道。That is, the control device can determine the N output parameters that can be sent by the IoT device according to the registration information of the second device. M and N can be the same or different. In addition, the control device can establish a wireless communication connection with the Internet of Things device. Establishing a wireless communication connection means that the control device knows that there is an Internet of Things device around the control device, and the Internet of Things device learns that the control device exists around the Internet of Things device; the control device can work with the Internet of Things device Establish a data transmission channel for data communication.
在一个示例中,针对智能空调,N个输出参数可以包括温度参数、湿度参数、时间参数、事件参数等。In one example, for a smart air conditioner, the N output parameters may include temperature parameters, humidity parameters, time parameters, event parameters, and so on.
温度参数的具体应用可以包括:向其他物联网设备指示智能空调检测到的当前室温的具体数值等。The specific application of the temperature parameter may include: indicating to other IoT devices the specific value of the current room temperature detected by the smart air conditioner, etc.
湿度参数的具体应用可以包括:向其他物联网设备指示智能空调检测到的当前室内湿度的具体数值等。The specific application of the humidity parameter may include: indicating to other IoT devices the specific value of the current indoor humidity detected by the smart air conditioner, etc.
时间参数的具体应用可以包括以下至少一种:向其他物联网设备指示由智能空调计时得到的时间数据,向其他物联网设备指示由智能空调记录的闹钟记录等。The specific application of the time parameter may include at least one of the following: indicating time data obtained by the smart air conditioner to other Internet of Things devices, and indicating alarm clock records recorded by the smart air conditioner to other Internet of Things devices.
事件参数的具体应用可以包括:向其他物联网设备发送该智能空调获取到的事件信息,使得其他物联网设备可以根据该事件信息实现该相应功能。例如,事件信息用于指示智能空调当前启动制热模式。假设智能加湿器可以接收到该事件信息,则智能加湿器可以根据该事件信息启动该智能加湿器。这样有助于为用户提供合适的室内湿度。The specific application of the event parameter may include: sending the event information obtained by the smart air conditioner to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information. For example, the event information is used to indicate that the smart air conditioner currently starts the heating mode. Assuming that the smart humidifier can receive the event information, the smart humidifier can start the smart humidifier according to the event information. This helps to provide users with suitable indoor humidity.
在一个示例中,针对电视,N个输出参数可以包括音频参数、图像参数、视频参数、时间参数、事件参数等。In one example, for TV, the N output parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
音频参数的具体应用可以包括以下至少一种:向其他物联网设备发送用户的语义指令,向其他物联网设备发送用户的声纹数据、向其他物联网设备发送语音通话的数据,向其他物联网设备发送待播放音频的数据等。用户的语音指令可以与其他物联网设备所能够实现的部分功能对应。例如,用户的语音指令可以指示智能音箱提高音量。用户的声纹数据可以用于其他物联网设备识别用户身份。在室内存在多个声纹识别设备的情况下,用户可以选择电视来录入声纹信息。电视可以在通话过程中进行录音,并将该录音数据发送给其他物联网设备(如智能音箱),该其他物联网设备自身无需进行录音。电视可以将待播放音频发送至其他物联网设备(如智能音箱),从而该其他物联网设备可以播放该待播放 音频。The specific application of audio parameters may include at least one of the following: sending user's semantic instructions to other Internet of Things devices, sending user's voiceprint data to other Internet of Things devices, sending voice call data to other Internet of Things devices, and sending voice call data to other Internet of Things devices. The device sends the data of the audio to be played, etc. The user's voice commands can correspond to some of the functions that other IoT devices can implement. For example, the user's voice command can instruct the smart speaker to increase the volume. The user's voiceprint data can be used by other IoT devices to identify the user. In the case of multiple voiceprint recognition devices in the room, the user can select a TV to record voiceprint information. The TV can record during a call and send the recording data to other IoT devices (such as smart speakers), and the other IoT devices do not need to record themselves. The TV can send the to-be-played audio to other IoT devices (such as smart speakers), so that the other IoT device can play the to-be-played audio.
图像参数的具体应用可以包括以下至少一种:向其他物联网设备发送用户的人脸图像,向其他物联网设备发送电视当前显示的图像等。用户的人脸图像可以用于其他物联网设备识别用户身份。例如,在室内存在多个人脸识别设备的情况下,用户可以选择电视来录入人脸信息。向其他物联网设备发送电视当前显示的图像有利于实现复制屏幕功能。该复制屏幕功能可以使得多个显示设备显示相同的内容。The specific application of the image parameter may include at least one of the following: sending the user's face image to other Internet of Things devices, sending the image currently displayed on the TV to other Internet of Things devices, and so on. The user's face image can be used for other IoT devices to identify the user. For example, when there are multiple facial recognition devices indoors, the user can select a TV to record facial information. Sending the image currently displayed on the TV to other Internet of Things devices is conducive to the realization of the function of copying the screen. The copy screen function can make multiple display devices display the same content.
视频参数的具体应用可以包括以下至少一种:向其他物联网设备发送视频通话的数据,向其他物联网设备发送待播放视频的数据等。在室内存在多个拍摄装置的情况下,用户可以选择电视拍摄到的场景进行视频通话,还可以选择包括电视在内的多个拍摄装置所拍摄到的场景进行视频通话。电视可以将获取到的待播放视频发送给其他显示设备进行播放,从而该其他显示设备可以与电视共用相同的媒体库。The specific application of the video parameter may include at least one of the following: sending data of a video call to other Internet of Things devices, sending data of a video to be played to other Internet of Things devices, and so on. In the case that there are multiple shooting devices indoors, the user can select a scene captured by a TV to make a video call, or select a scene captured by multiple shooting devices, including a TV, to make a video call. The TV can send the acquired video to be played to other display devices for playing, so that the other display devices can share the same media library with the TV.
时间参数的具体应用可以包括以下至少一种:向其他物联网设备指示由电视计时得到的时间数据,向其他物联网设备指示由电视记录的闹钟记录等。The specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the TV timing, and instructing other Internet of Things devices to record alarm clock records recorded by the TV, and so on.
事件参数的具体应用可以包括:向其他物联网设备发送该电视获取到的事件信息,使得其他物联网设备可以根据该事件信息实现该相应功能。例如,事件信息可以包括用户喜好数据,该其他物联网设备可以根据该用户喜好数据,推送用户可能喜好的多媒体数据。例如,用户近期通过电视多次播放某个歌手的演唱会视频,该电视可以通过用户喜好数据向智能音箱指示用户可能喜好该歌手,智能音箱可以根据该用户喜好数据,为用户推送该歌手的音乐。The specific application of the event parameter may include: sending event information obtained by the TV to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information. For example, the event information may include user preference data, and the other Internet of Things device may push multimedia data that the user may like according to the user preference data. For example, if a user recently played a concert video of a certain singer on a TV several times, the TV can indicate to the smart speaker that the user may like the singer through user preference data, and the smart speaker can push the singer’s music to the user based on the user’s preference data .
在一个示例中,针对智能音箱,N个输出参数可以包括音频参数、时间参数、事件参数等。In one example, for a smart speaker, the N output parameters may include audio parameters, time parameters, event parameters, and so on.
音频参数的具体应用可以包括以下至少一种:向其他物联网设备发送用户的语义指令,向其他物联网设备发送用户的声纹数据、向其他物联网设备发送用于通话的音频数据,向其他物联网设备发送待播放音频的数据等。用户的语音指令可以与其他物联网设备所能够实现的部分功能对应。例如,用户的语音指令可以指示电视播放特定的节目。用户的声纹数据可以用于其他物联网设备识别用户身份。在室内存在多个声纹识别设备的情况下,用户可以选择智能音箱来录入声纹信息。智能音箱可以在通话过程中进行录音,并将该录音数据发送给其他物联网设备(如电视),该其他物联网设备自身无需进行录音。智能音箱可以将待播放音频发送至其他物联网设备(如电视),从而该其他物联网设备可以播放该待播放音频。The specific application of audio parameters may include at least one of the following: sending user's semantic instructions to other IoT devices, sending user's voiceprint data to other IoT devices, sending audio data for calls to other IoT devices, and sending voice data to other IoT devices. The IoT device sends audio data to be played, etc. The user's voice commands can correspond to some of the functions that other IoT devices can implement. For example, the user's voice command can instruct the TV to play a specific program. The user's voiceprint data can be used by other IoT devices to identify the user. When there are multiple voiceprint recognition devices in the room, the user can choose a smart speaker to record voiceprint information. The smart speaker can record during a call, and send the recording data to other IoT devices (such as a TV), and the other IoT devices do not need to record themselves. The smart speaker can send the audio to be played to other Internet of Things devices (such as a TV), so that the other Internet of Things device can play the audio to be played.
时间参数的具体应用可以包括以下至少一种:向其他物联网设备指示由智能音箱计时得到的时间数据,向其他物联网设备指示由智能音箱记录的闹钟记录等。The specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the smart speaker, and instructing other Internet of Things devices to record the alarm clock recorded by the smart speaker, etc.
事件参数的具体应用可以包括:向其他物联网设备发送该智能音箱获取到的事件信息,使得其他物联网设备可以根据该事件信息实现该相应功能。例如,事件信息可以包括用户喜好数据,该其他物联网设备可以根据该用户喜好数据,推送用户可能喜好的多媒体数据。例如,用户近期通过智能音箱多次播放某个电视剧的主题曲,该智能音箱可以通过用户喜好数据向电视指示用户可能喜好该电视剧,电视可以根据该用户喜好数据,为用户推送该电视剧。The specific application of the event parameter may include: sending the event information obtained by the smart speaker to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information. For example, the event information may include user preference data, and the other Internet of Things device may push multimedia data that the user may like according to the user preference data. For example, a user has recently played the theme song of a certain TV series through a smart speaker several times. The smart speaker can indicate to the TV that the user may like the TV series through user preference data, and the TV can push the TV series to the user according to the user preference data.
在一个示例中,针对窗帘遥控机,N个输出参数可以包括时间参数、事件参数等。In an example, for the curtain remote control machine, the N output parameters may include time parameters, event parameters, and so on.
时间参数的具体应用可以包括以下至少一种:向其他物联网设备指示由窗帘遥控机计时得到的时间数据,向其他物联网设备指示由窗帘遥控机记录的闹钟记录等。The specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the remote control of the curtain, and instructing other Internet devices of the alarm clock record recorded by the remote control of the curtain, etc.
事件参数的具体应用可以包括:向其他物联网设备发送该窗帘遥控机获取到的事件信息,使得其他物联网设备可以根据该事件信息实现该相应功能。例如,事件信息可以包括窗帘开启程度的指示信息。假设智能灯具可以接收到该事件信息,则智能灯具可以根据该事件信息,调整智能灯具的发光亮度。The specific application of the event parameter may include: sending the event information obtained by the curtain remote control machine to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information. For example, the event information may include information indicating the degree of opening of the curtain. Assuming that the smart lamp can receive the event information, the smart lamp can adjust the light-emitting brightness of the smart lamp according to the event information.
在一个示例中,针对智能热水器,N个输出参数可以包括时间参数、事件参数等。In one example, for a smart water heater, the N output parameters may include time parameters, event parameters, and so on.
时间参数的具体应用可以包括以下至少一种:向其他物联网设备指示由智能热水器计时得到的时间数据,向其他物联网设备指示由智能热水器记录的闹钟记录等。The specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the smart water heater, and instructing other Internet of Things devices to record the alarm clock recorded by the smart water heater, and so on.
事件参数的具体应用可以包括:向其他物联网设备发送该智能热水器获取到的事件信息,使得其他物联网设备可以根据该事件信息实现该相应功能。例如,事件信息可以指示智能热水器的加热功能当前是否被开启。其他物联网设备可以根据该事件信息,判断智能热水器周围是否出现用户。The specific application of the event parameter may include sending event information obtained by the smart water heater to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information. For example, the event information may indicate whether the heating function of the smart water heater is currently turned on. Other IoT devices can determine whether there are users around the smart water heater based on the event information.
在一个示例中,针对智能灯具,N个输出参数可以包括亮度参数、时间参数、事件参数等。In one example, for smart lamps, the N output parameters may include brightness parameters, time parameters, event parameters, and so on.
亮度参数的具体应用可以包括:向其他物联网设备指示当前智能灯具的发光强度等。例如,多个智能灯具可以同步发光强度。The specific application of the brightness parameter may include: indicating the current luminous intensity of the smart lamp to other IoT devices. For example, multiple smart lamps can synchronize their luminous intensity.
时间参数的具体应用可以包括以下至少一种:向其他物联网设备指示由智能灯具计时得到的时间数据,向其他物联网设备指示由智能灯具记录的闹钟记录等。The specific application of the time parameter may include at least one of the following: indicating to other IoT devices the time data obtained by the smart lamp timing, and instructing other IoT devices the alarm clock record recorded by the smart lamp, etc.
事件参数的具体应用可以包括:向其他物联网设备发送该智能灯具获取到的事件信息,使得其他物联网设备可以根据该事件信息实现该相应功能。例如,事件信息可以指示智能灯具当前是否被开启。其他物联网设备可以根据该事件信息,判断智能灯具周围是否出现用户。The specific application of the event parameter may include: sending the event information obtained by the smart lamp to other Internet of Things devices, so that other Internet of Things devices can implement the corresponding function according to the event information. For example, the event information can indicate whether the smart lamp is currently turned on. Other IoT devices can determine whether there are users around the smart lamp based on the event information.
在一个示例中,针对智能摄像装置,N个输出参数可以包括音频参数、图像参数、视频参数、时间参数、事件参数等。In one example, for a smart camera device, the N output parameters may include audio parameters, image parameters, video parameters, time parameters, event parameters, and so on.
音频参数的具体应用可以包括以下至少一种:向其他物联网设备发送用户的语义指令,向其他物联网设备发送用户的声纹数据、向其他物联网设备发送语音通话的数据,向其他物联网设备发送录音音频等。用户的语音指令可以与其他物联网设备所能够实现的部分功能对应。例如,用户的语音指令可以指示智能音箱提高音量、指示电视播放特定的节目等。用户的声纹数据可以用于其他物联网设备识别用户身份。在室内存在多个声纹识别设备的情况下,用户可以选择智能拍摄装置来录入声纹信息。智能拍摄装置可以在通话过程中进行录音,并将该录音数据发送给其他物联网设备(如智能音箱),该其他物联网设备自身无需进行录音。智能拍摄装置可以将录音音频发送至其他物联网设备(如智能音箱),从而该其他物联网设备可以播放该录音音频。The specific application of audio parameters may include at least one of the following: sending user's semantic instructions to other Internet of Things devices, sending user's voiceprint data to other Internet of Things devices, sending voice call data to other Internet of Things devices, and sending voice call data to other Internet of Things devices. The device sends recording audio, etc. The user's voice commands can correspond to some of the functions that other IoT devices can implement. For example, the user's voice command can instruct the smart speaker to increase the volume, instruct the TV to play a specific program, and so on. The user's voiceprint data can be used by other IoT devices to identify the user. In the case where there are multiple voiceprint recognition devices indoors, the user can select a smart camera to record voiceprint information. The smart camera can record during a call, and send the recording data to other IoT devices (such as smart speakers), and the other IoT devices do not need to record themselves. The smart camera can send the recorded audio to other IoT devices (such as smart speakers), so that the other IoT devices can play the recorded audio.
图像参数的具体应用可以包括以下至少一种:向其他物联网设备发送用户的人脸图像,向其他物联网设备发送智能拍摄装置拍摄到的图像等。用户的人脸图像可以用于其他物联网设备识别用户身份。例如,在室内存在多个人脸识别设备的情况下,用户可以选择智能拍摄装置来录入人脸信息。向其他物联网设备发送智能拍摄装置拍摄到的图像,有利于拍摄图像的灵活显示。The specific application of the image parameter may include at least one of the following: sending the user's face image to other Internet of Things devices, sending the image captured by the smart camera to other Internet of Things devices, and so on. The user's face image can be used for other IoT devices to identify the user. For example, when there are multiple facial recognition devices indoors, the user can select a smart camera to record facial information. Sending the images captured by the smart camera to other IoT devices is conducive to the flexible display of the captured images.
视频参数的具体应用可以包括以下至少一种:向其他物联网设备发送视频通话的数据,向其他物联网设备发送拍摄到的视频等。在室内存在多个拍摄装置的情况下,用户可以选择智能拍摄装置拍摄到的场景进行视频通话,还可以选择包括智能拍摄装置在内的多个拍摄装置所拍摄到的场景进行视频通话。向其他物联网设备发送拍摄到的视频,有利于拍摄视频的灵活播放。The specific application of the video parameter may include at least one of the following: sending video call data to other Internet of Things devices, sending captured videos to other Internet of Things devices, and so on. When there are multiple shooting devices indoors, the user can select scenes shot by the smart shooting device for a video call, or select scenes shot by multiple shooting devices including the smart shooting device for a video call. Sending the captured video to other IoT devices is conducive to the flexible playback of the captured video.
时间参数的具体应用可以包括以下至少一种:向其他物联网设备指示由智能拍摄装置计时得到的时间数据,向其他物联网设备指示由智能拍摄装置记录的闹钟记录等。The specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the smart camera, and instructing other Internet of Things devices to record the alarm clock recorded by the smart camera, etc.
事件参数的具体应用可以包括:向其他物联网设备发送该智能拍摄装置获取到的事件信息,使得其他物联网设备可以根据该事件信息实现该相应功能。例如,事件信息可以包括出现用户的指示信息。该其他物联网设备可以根据该出现用户的指示信息,推送用户可能喜好的多媒体数据。例如,智能灯具可以根据该出现用户的指示信息,开启智能灯具的光照功能。又如,智能热水器可以根据该出现用户的指示信息,开启智能热水器的加热功能。The specific application of the event parameter may include: sending the event information obtained by the smart camera to other Internet of Things devices, so that the other Internet of Things devices can implement the corresponding function according to the event information. For example, the event information may include indication information that the user appears. The other Internet of Things device may push multimedia data that the user may like according to the indication information of the present user. For example, the smart lamp can turn on the lighting function of the smart lamp according to the indication information of the user. For another example, the smart water heater can turn on the heating function of the smart water heater according to the indication information of the user.
在一个示例中,针对智能时钟,N个输出参数可以包括时间参数、事件参数等。In one example, for the smart clock, the N output parameters may include time parameters, event parameters, and so on.
时间参数的具体应用可以包括以下至少一种:向其他物联网设备指示由智能时钟计时得到的时间数据,向其他物联网设备指示由智能时钟记录的闹钟记录等。The specific application of the time parameter may include at least one of the following: indicating to other Internet of Things devices the time data obtained by the smart clock, and instructing other Internet of Things devices to record the alarm clock recorded by the smart clock, etc.
在一个示例中,针对湿度温度计,N个输出参数可以包括温度参数、湿度参数等。In one example, for a humidity thermometer, the N output parameters may include temperature parameters, humidity parameters, and so on.
温度参数的具体应用可以包括:向其他物联网设备发送湿度温度计检测到的当前室温的具体数值等。The specific application of the temperature parameter may include: sending the specific value of the current room temperature detected by the humidity thermometer to other IoT devices, etc.
湿度参数的具体应用可以包括:向其他物联网设备发送湿度温度计检测到的当前室内湿度的具体数值等。The specific application of the humidity parameter may include sending the specific value of the current indoor humidity detected by the humidity thermometer to other IoT devices.
可选的,所述第二设备注册信息还可以包括以下至少一种:所述N个输出参数的接口信息、所述物联网设备支持的无线通信协议、所述物联网设备支持的物联网通信协议等。Optionally, the second device registration information may further include at least one of the following: interface information of the N output parameters, a wireless communication protocol supported by the Internet of Things device, and Internet of Things communication supported by the Internet of Things device Agreement etc.
在一个示例中,该第二设备注册信息例如可以包括该N个输出参数的接口信息。In an example, the second device registration information may include interface information of the N output parameters, for example.
例如,物联网设备可以使用无线通信接口1发送N个输出参数中的第一部分输出参数,该物联网设备可以使用无线通信接口2发送N个输出参数中的第二部分输出参数。可选的,该第一部分输出参数中的任一输出参数与该第二部分输出参数中的每个输出参数不同。For example, the Internet of Things device may use the wireless communication interface 1 to send the first part of the output parameters of the N output parameters, and the Internet of Things device may use the wireless communication interface 2 to send the second part of the output parameters of the N output parameters. Optionally, any output parameter in the first part of output parameters is different from each output parameter in the second part of output parameters.
在一个示例中,该第二设备注册信息例如可以包括该物联网设备支持的无线通信协议。In an example, the second device registration information may include, for example, a wireless communication protocol supported by the Internet of Things device.
例如,物联网设备1可以支持蓝牙无线通信协议,不支持Wi-Fi无线通信协议,则物联网设备1可以通过蓝牙无线通信协议与其他设备(如控制设备,其他物联网设备等)进行数据通信。For example, the Internet of Things device 1 can support Bluetooth wireless communication protocol, but does not support Wi-Fi wireless communication protocol, then the Internet of Things device 1 can communicate with other devices (such as control devices, other Internet of Things devices, etc.) through the Bluetooth wireless communication protocol. .
在一个示例中,该第二设备注册信息例如可以包括该物联网设备支持的物联网通信协议。In an example, the second device registration information may include, for example, an Internet of Things communication protocol supported by the Internet of Things device.
例如,物联网设备1的品牌供应商为品牌A,物联网设备2的品牌供应商为品牌B。其中,物联网设备1可以支持的物联网通信协议包括品牌A提供的物联网通信协议、品牌B提供的物联网通信协议,物联网设备2可以支持的物联网通信协议包括品牌B提供的物联网通信协议、品牌C提供的物联网通信协议,则物联网设备1可以通过品牌B提供的物联网通信协议与物联网设备2进行数据通信。For example, the brand supplier of IoT device 1 is brand A, and the brand supplier of IoT device 2 is brand B. Among them, the Internet of Things communication protocol supported by the Internet of Things device 1 includes the Internet of Things communication protocol provided by Brand A and the Internet of Things communication protocol provided by Brand B. The Internet of Things communication protocol supported by the Internet of Things device 2 includes the Internet of Things provided by Brand B. Communication protocol, the Internet of Things communication protocol provided by Brand C, the Internet of Things device 1 can communicate with the Internet of Things device 2 through the Internet of Things communication protocol provided by Brand B.
可选的,物联网设备可以支持一种开放物联网通信协议。该开放物联网通信协议至少可以开放给多个物联网设备的开发人员使用。甚至,开放物联网通信协议可以至少部分开放给公众,即至少部分开放物联网通信协议是处于非保密状态。开放物联网通信协议可以用于多个电子设备之间通信,该多个电子设备可以由相同或不同的供应商提供。该开放物联网通信协议例如可以是HiLink通信协议。Optionally, the IoT device can support an open IoT communication protocol. The open IoT communication protocol can at least be open to developers of multiple IoT devices. Furthermore, the open IoT communication protocol can be at least partially open to the public, that is, at least part of the open IoT communication protocol is in a non-secret state. The open IoT communication protocol can be used for communication between multiple electronic devices, and the multiple electronic devices can be provided by the same or different vendors. The open IoT communication protocol may be, for example, the HiLink communication protocol.
图8是本申请实施例提供的一种控制设备与物联网设备的通信示意图。FIG. 8 is a schematic diagram of communication between a control device and an Internet of Things device provided by an embodiment of the present application.
物联网设备可以向控制设备发送第一设备注册信息、第二设备注册信息,所述第一设备注册信息用于指示所述物联网设备的M个输入参数,所述第二设备注册信息用于指示所述物联网设备的N个输出参数,M为正整数,N为正整数。The IoT device may send first device registration information and second device registration information to the control device, where the first device registration information is used to indicate M input parameters of the IoT device, and the second device registration information is used to Indicate N output parameters of the Internet of Things device, where M is a positive integer, and N is a positive integer.
相应地,所述控制设备接收所述物联网设备发送的所述第一设备注册信息。Correspondingly, the control device receives the first device registration information sent by the Internet of Things device.
也就是说,控制设备可以根据第一设备注册信息,确定物联网设备可以接收的M个输入参数,根据第二设备注册信息,确定物联网设备可以发送的N个输出参数。M与N可以相同,也可以不同。另外,控制设备可以与物联网设备建立无线通信连接。建立无线通信连接即意味着,控制设备获知在该控制设备周围存在某个物联网设备,且该物联网设备获知在该物联网设备周围存在该控制设备;该控制设备可以与该物联网设备共同建立用于数据通信的数据传输通道。That is, the control device can determine the M input parameters that the IoT device can receive according to the first device registration information, and determine the N output parameters that the IoT device can send according to the second device registration information. M and N can be the same or different. In addition, the control device can establish a wireless communication connection with the Internet of Things device. Establishing a wireless communication connection means that the control device knows that there is an Internet of Things device around the control device, and the Internet of Things device learns that the control device exists around the Internet of Things device; the control device can work with the Internet of Things device Establish a data transmission channel for data communication.
本申请实施例通过图6、图7所示的示例分别阐述了物联网设备向控制设备发送第一设备注册信息的具体实施方式,以及物联网设备向控制设备发送第二设备注册信息的具体实施方式,在此就不必再赘述。The embodiment of the application uses the examples shown in Figure 6 and Figure 7 to illustrate the specific implementation of the IoT device sending the first device registration information to the control device, and the specific implementation of the IoT device sending the second device registration information to the control device. The way, I don’t have to go into details here.
控制设备可以接收多个物联网设备发送的多个设备注册信息(包括第一设备注册信息和/或第二设备注册信息),该多个物联网设备与该多个设备注册信息一一对应。设备注册信息可以用于物联网设备向控制设备提交设备注册请求。由此,该控制设备可以与该多个物联网设备建立无线通信连接。物联网设备向该控制设备发送设备注册信息后,可以驻留在包括多个物联网设备的通信***中,该通信***可以是如图4、图5所示的通信***。The control device may receive multiple device registration information (including first device registration information and/or second device registration information) sent by multiple Internet of Things devices, and the multiple Internet of Things devices have a one-to-one correspondence with the multiple device registration information. The device registration information can be used by the IoT device to submit a device registration request to the control device. Thus, the control device can establish a wireless communication connection with the multiple Internet of Things devices. After the Internet of Things device sends the device registration information to the control device, it may reside in a communication system including multiple Internet of Things devices. The communication system may be the communication system shown in FIG. 4 and FIG. 5.
本申请实施例提供一种新的设备通信方法,目的是提升多个物联网设备之间的通信的灵活性。The embodiments of the present application provide a new device communication method, which aims to improve the flexibility of communication between multiple Internet of Things devices.
图9是本申请实施例提供的一种通信方法900的示意性流程图。FIG. 9 is a schematic flowchart of a communication method 900 provided by an embodiment of the present application.
901,控制设备分别与多个物联网设备建立无线通信连接。901. The control device establishes wireless communication connections with multiple Internet of Things devices respectively.
上文通过图4所示的示例,阐述了控制设备在本申请实施例中的一种定义。控制设备例如可以是如图3所示的手机302、笔记本电脑305等。在一个示例中,控制设备例如可以是如图5示的手机302。The above example illustrates a definition of the control device in the embodiment of the present application through the example shown in FIG. 4. The control device may be, for example, a mobile phone 302, a notebook computer 305, etc. as shown in FIG. 3. In an example, the control device may be, for example, a mobile phone 302 as shown in FIG. 5.
上文通过图4所示的示例,阐述了物联网设备在本申请实施例中的一种定义。物联网设备例如可以是如图3或图5所示的电视303、智能空调306、智能音箱308、湿度温度计311、窗帘遥控机307、智能时钟312、智能热水器304、智能摄像装置309、智能灯具310等。The above example illustrates a definition of the Internet of Things device in the embodiment of the present application through the example shown in FIG. 4. The Internet of Things device may be, for example, a TV 303, a smart air conditioner 306, a smart speaker 308, a humidity thermometer 311, a curtain remote control machine 307, a smart clock 312, a smart water heater 304, a smart camera 309, and a smart lamp as shown in FIG. 3 or 5, for example. 310 and so on.
上文已经通过图6至图8所示的示例,阐述了控制设备分别与多个物联网设备建立无线通信连接的几种可能的实现方式,在此就不必再详细赘述。The examples shown in FIG. 6 to FIG. 8 have been used to illustrate several possible implementations for the control device to establish wireless communication connections with multiple Internet of Things devices respectively, and it is not necessary to repeat them here.
902,所述控制设备获取目标策略,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行 所述目标操作,所述预设条件是否成立由h个参数判断。902. The control device acquires a target strategy, where the target strategy includes preset conditions, target operations, and information about the target device, and the target strategy is used to indicate that, when the preset conditions are established, the target device The target operation is executed, and whether the preset condition is satisfied is determined by h parameters.
下面针对各个物联网设备,提供若干个可能的目标策略的具体实施方式。在受益于下述实施例中呈现的指导启示下,本领域技术人员将会想到本申请的许多改进和其他实施例。因此,应理解,本申请不限于所公开的特定实施例。The following provides specific implementation methods of several possible target strategies for each IoT device. Benefiting from the guidance presented in the following embodiments, those skilled in the art will think of many improvements and other embodiments of the present application. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed.
可选的,预设条件可以包括一个或多个条件。Optionally, the preset condition may include one or more conditions.
在一个示例中,针对智能空调,目标策略可中的预设条件例如可以包括,从当前时刻起的未来1小时内,目标房间始终出现用户;目标操作例如可以是启动设备;目标设备的信息例如指示位于该目标房间中的设备,且该目标设备的类型为空调或智能空调。在一种可能的实现方式中,目标房间例如可以是会议室。从当前时刻起的未来1小时内,目标房间始终出现用户,例如可以是用户预约会议室的时间大于或等于1小时,且会议开始的时间为当前时刻。In one example, for a smart air conditioner, the preset conditions in the target strategy may include, for example, that a user always appears in the target room within 1 hour from the current moment; the target operation may be, for example, the startup device; the information of the target device, for example, Indicates the device located in the target room, and the type of the target device is air conditioner or smart air conditioner. In a possible implementation, the target room may be a conference room, for example. Within one hour from the current moment in the future, users will always appear in the target room. For example, it may be that the time for the user to reserve the conference room is greater than or equal to 1 hour, and the start time of the conference is the current moment.
一种可能的情况,h个参数例如可以是事件参数,该事件参数的具体内容可以是从当前时刻起的未来x小时内,目标房间始终出现用户;在预设条件成立的情况下,x可以大于或等于1。In a possible situation, the h parameters can be event parameters, for example, and the specific content of the event parameters can be that users always appear in the target room within x hours from the current moment; if the preset conditions are established, x can be Greater than or equal to 1.
一种可能的情况,h个参数例如可以是时间参数,该时间参数的具体内容可以是时长为x的时间段,在此情况下,从当前时刻起的未来1小时内,目标房间是否始终出现用户的判断过程可以由其他设备执行;在该预设条件成立的情况下,x可以大于或等于1。In a possible situation, the h parameters can be, for example, a time parameter, and the specific content of the time parameter can be a time period with a duration of x. In this case, whether the target room always appears in the next 1 hour from the current moment The user's judgment process can be executed by other devices; when the preset condition is established, x can be greater than or equal to 1.
上述两种参数均可以实现,在从当前时刻起的未来1小时内,目标房间始终出现用户的情况下,该智能空调自启动,即无需用户手动开启该智能空调。很明显,在有人的情况下开启该智能空调,有利于节省智能空调所使用的电量。Both of the above two parameters can be realized. In the case where a user is always present in the target room within 1 hour from the current moment, the smart air conditioner starts automatically, that is, the user does not need to manually turn on the smart air conditioner. Obviously, turning on the smart air conditioner in the presence of people helps to save the power used by the smart air conditioner.
在一个示例中,针对电视,目标策略中的预设条件例如可以包括,目标用户正在使用电视;目标操作例如可以是推送与该目标用户的喜好相关的多媒体数据;目标设备的信息例如可以指示目标设备的类型为电视。在一种可能的实现方式中,目标用户通过语音指令指示智能音箱开启电视。In one example, for TV, the preset conditions in the target strategy may include, for example, that the target user is using the TV; the target operation may be, for example, pushing multimedia data related to the target user’s preferences; the information of the target device may indicate the target, for example The type of device is TV. In a possible implementation manner, the target user instructs the smart speaker to turn on the TV through a voice command.
一种可能的情况,h个参数例如可以是音频参数。智能音箱可以将该语音指令发送给电视。该电视除了可以执行该语音指令对应的开启电视的操作以外,还可以分析发出该语音指令的用户是否为目标用户。进而,该电视可以根据目标策略,为该语音指令的发起人推送匹配的多媒体数据。在此情况下,可以由该电视分析使用该电视的用户为目标用户。In a possible situation, the h parameters may be audio parameters, for example. The smart speaker can send the voice command to the TV. In addition to performing the operation of turning on the TV corresponding to the voice command, the TV can also analyze whether the user who issued the voice command is the target user. Furthermore, the TV can push matching multimedia data to the initiator of the voice command according to the target strategy. In this case, the user who uses the TV can be analyzed by the TV as the target user.
一种可能的情况,h个参数例如可以是事件参数。智能音箱可以分析发出该语音指令的用户是否为目标用户,并向该电视发送指示信息,该指示信息用于指示目标用户发出启动电视的命令,或者,该指示信息用于指示开启电视,且当前使用的用户为目标用户。进而,该电视可以自启动,并根据目标策略,为该目标用户推送匹配的多媒体数据。在此情况下,可以由智能音箱分析使用该电视的用户为目标用户。In a possible situation, the h parameters may be event parameters, for example. The smart speaker can analyze whether the user who issued the voice command is the target user, and send instruction information to the TV. The instruction information is used to instruct the target user to issue a command to start the TV, or the instruction information is used to instruct to turn on the TV, and the current The user used is the target user. Furthermore, the TV can be self-started, and according to the target strategy, push matching multimedia data to the target user. In this case, the smart speaker can analyze the user who uses the TV as the target user.
上述两种参数均可以实现,在目标用户正在使用电视的情况下,该电视推送与该目标用户的喜好相关的多媒体数据。很明显,这有利于为用户提供更加合适的推送信息。Both of the above two parameters can be realized. When the target user is using a TV, the TV pushes multimedia data related to the preferences of the target user. Obviously, this helps to provide users with more appropriate push information.
在一个示例中,针对智能音箱,目标策略中的预设条件例如可以包括,在0:00-8:00不启动该智能音箱,以及,目标房间中出现用户;目标操作例如可以是播放“你好”的音频,并启动检测语音指令的模块;目标设备的信息例如可以指示目标设备的类型为智能音箱,且该目标设备位于目标房间内。In one example, for a smart speaker, the preset conditions in the target strategy may include, for example, not starting the smart speaker between 0:00-8:00, and the presence of a user in the target room; the target operation may be, for example, playing "You "Good" audio, and start the module that detects voice commands; the information of the target device may indicate, for example, that the type of the target device is a smart speaker, and the target device is located in the target room.
一种可能的情况,h个参数例如可以包括事件参数。目标房间内的摄像头捕捉到用户出现。该摄像头可以向该智能音箱发送指示信息,该指示信息可以用于指示该目标房间内出现用户。该智能音箱可以根据自身的计时,判断当前时刻是否在0:00-8:00之间。如果当前时刻在0:00-8:00以外,该智能音箱可以播放“你好”的音频,并启动检测语音指令的模块。In a possible situation, the h parameters may include event parameters, for example. The camera in the target room captures the presence of the user. The camera may send instruction information to the smart speaker, and the instruction information may be used to indicate the presence of a user in the target room. The smart speaker can determine whether the current time is between 0:00-8:00 according to its own timing. If the current time is outside 0:00-8:00, the smart speaker can play "Hello" audio and start the module for detecting voice commands.
一种可能的情况,h个参数例如可以包括时间参数、事件参数。目标房间内的智能灯具捕捉到用户出现。该智能灯具可以向该智能音箱发送指示信息,该指示信息可以用于指示该目标房间内出现用户。该智能灯具还可以接收时钟发送的指示当前时刻的消息。进而,在满足预设条件的情况下,该智能音箱可以播放“你好”的音频,并启动检测语音指令的模块。In a possible situation, the h parameters may include time parameters and event parameters, for example. The smart light fixture in the target room captures the presence of the user. The smart lamp may send instruction information to the smart speaker, and the instruction information may be used to indicate the presence of a user in the target room. The smart lamp can also receive a message indicating the current time sent by the clock. Furthermore, when the preset conditions are met, the smart speaker can play "Hello" audio and activate a module for detecting voice commands.
上述两种参数均可以实现,在目标用户在特定的时间内,当目标房间中出现用户时,播放“你好”的音频,并启动检测语音指令的模块。很明显,这有利于便捷用户的人机通信过程。Both of the above two parameters can be realized. When the target user appears in the target room within a specific time, the audio of "Hello" is played, and the module for detecting voice commands is activated. Obviously, this is conducive to facilitating the user's man-machine communication process.
在一个示例中,针对窗帘遥控机,目标策略中的预设条件例如可以包括,当前时刻为8:00;目标操作例如可以是开启窗帘;目标设备的信息例如可以指示目标设备的设备标识为目标窗帘遥控机的设备标识,该设备标识为设备的唯一标识。In one example, for a curtain remote control machine, the preset conditions in the target strategy may include, for example, the current time is 8:00; the target operation may be, for example, opening the curtain; the information of the target device may, for example, indicate that the device identification of the target device is the target The device identifier of the curtain remote control machine, which is the unique identifier of the device.
一种可能的情况,h个参数例如可以包括事件参数。时钟可以在当前时刻为8:00的情况下,向窗帘遥控机发送指示信息,该指示信息指示该窗帘遥控机开启窗帘。进而,该窗帘遥控机可以根据该时钟的指示信息,开启窗帘。In a possible situation, the h parameters may include event parameters, for example. The clock can send instruction information to the curtain remote control machine when the current time is 8:00, and the instruction information instructs the curtain remote control machine to open the curtain. Furthermore, the curtain remote control machine can open the curtain according to the instruction information of the clock.
一种可能的情况,h个参数例如可以包括时间参数。时钟可以根据目标策略,将“8:00开启窗帘”作为一种闹钟记录发送给窗帘遥控机,并在8:00时向窗帘遥控机发送指示信息,该指示信息指示当前时刻为8:00。进而,该窗帘遥控机可以根据该指示信息以及该闹钟记录,开启窗帘。In a possible situation, the h parameters may include time parameters, for example. According to the target strategy, the clock can send "open curtains at 8:00" as an alarm record to the curtain remote control machine, and send instructions to the curtain remote control machine at 8:00. The instruction information indicates that the current time is 8:00. Furthermore, the curtain remote control machine can open the curtain according to the instruction information and the alarm clock record.
上述两种参数均可以实现,在当前时刻为8:00的情况下开启窗帘。很明显,这有利于为用户分担任务。Both of the above two parameters can be realized, and the curtain will be opened when the current time is 8:00. Obviously, this helps to share tasks for users.
在一个示例中,针对智能热水器,目标策略中的预设条件例如可以包括,当前季节为春季或秋季;目标操作例如可以是设定水温为50℃;目标设备的信息例如可以指示目标设备的设备类型为电热水器。或者,目标策略中的预设条件例如可以包括,当前季节为夏季;目标操作例如可以是设定水温为40℃;目标设备的信息例如可以指示目标设备的设备类型为电热水器。或者,目标策略中的预设条件例如可以包括,当前季节为冬季;目标操作例如可以是设定水温为60℃;目标设备的信息例如可以指示目标设备的设备类型为电热水器。In one example, for a smart water heater, the preset conditions in the target strategy may include, for example, the current season is spring or autumn; the target operation may be, for example, setting the water temperature to 50°C; the information of the target device may, for example, indicate the device of the target device The type is electric water heater. Alternatively, the preset conditions in the target strategy may include, for example, that the current season is summer; the target operation may be, for example, setting the water temperature to 40°C; and the information of the target device may indicate, for example, that the device type of the target device is an electric water heater. Alternatively, the preset conditions in the target strategy may include, for example, that the current season is winter; the target operation may be, for example, setting the water temperature to 60°C; the information of the target device may indicate, for example, that the device type of the target device is an electric water heater.
一种可能的情况,h个参数例如可以包括时间参数。时钟可以将当前的日期发送给智能热水器。该智能热水器可以根据时令节气等确定当前季节。进而,该智能热水器可以根据目标策略,确定设定水温。In a possible situation, the h parameters may include time parameters, for example. The clock can send the current date to the smart water heater. The smart water heater can determine the current season according to seasonal solar terms. Furthermore, the smart water heater can determine the set water temperature according to the target strategy.
一种可能的情况,h个参数例如可以包括温度参数。智能温度计可以将当前室内温度或当前室外温度发送给智能热水器。该智能热水器可以根据根据地确定当前季节,并确定相应的设定水温。In a possible situation, the h parameters may include temperature parameters, for example. The smart thermometer can send the current indoor temperature or the current outdoor temperature to the smart water heater. The smart water heater can determine the current season according to the location and determine the corresponding set water temperature.
上述两种参数均可以实现,在特定的季节设定特定的水温。很明显,这有利于为用户 提供合适的水温。Both of the above two parameters can be realized, and a specific water temperature can be set in a specific season. Obviously, this helps to provide users with the right water temperature.
在一个示例中,针对智能灯具,目标策略中的预设条件例如可以包括,窗帘是开启状态;所述目标操作例如可以是,不启动该智能灯具的光照功能;该目标设备的信息例如可以指示,与该窗帘所在房间相同,且设备类型为照明电器的设备。In one example, for a smart lamp, the preset conditions in the target strategy may include, for example, that the curtain is open; the target operation may be, for example, not to activate the lighting function of the smart lamp; the information of the target device may indicate, for example , Which is the same as the room where the curtain is located, and the equipment type is lighting appliances.
一种可能的情况,h个参数例如可以包括时间参数。时钟可以将8:00至18:00开启窗帘的闹钟记录发送给窗帘以及智能灯具,并在8:00、18:00时分别向该智能灯具发送当前时刻的指示信息。进而,该智能灯具可以根据目标策略,在8:00至18:00不启动该智能灯具的光照功能。In a possible situation, the h parameters may include time parameters, for example. The clock can send the alarm record of opening curtains from 8:00 to 18:00 to the curtains and smart lamps, and send the current time indication information to the smart lamps at 8:00 and 18:00. Furthermore, the smart lamp may not activate the lighting function of the smart lamp from 8:00 to 18:00 according to the target strategy.
一种可能的情况,h个参数例如可以包括事件参数。窗帘遥控机在开启窗帘后,可以向该智能灯具发送指示信息,该指示信息指示该窗帘已开启。进而,该智能灯具可以根据目标策略,在窗帘是开启状态时不启动该智能灯具的光照功能。In a possible situation, the h parameters may include event parameters, for example. After the curtain remote control machine opens the curtain, it can send instruction information to the smart lamp, and the instruction information indicates that the curtain has been opened. Furthermore, the smart lamp may not activate the lighting function of the smart lamp when the curtain is in the open state according to the target strategy.
上述两种参数均可以实现,在有室外光照的情况下不启动室内照明电器。很明显,这有利于节省能耗。由于灯具在特定时间内不启动,也有利于减少灯具的开启次数,延长灯具的使用寿命。Both of the above-mentioned parameters can be realized, and indoor lighting appliances are not activated when there is outdoor light. Obviously, this helps to save energy. Since the lamp does not start within a certain period of time, it is also helpful to reduce the number of times the lamp is turned on and prolong the service life of the lamp.
在一个示例中,针对智能摄像装置,目标策略中的预设条件例如可以包括,当前A方位出现用户;所述目标操作例如可以是,调整拍摄角度至A方位;该目标设备的信息例如可以指示,设备类型为拍摄设备。In one example, for a smart camera device, the preset conditions in the target strategy may include, for example, that a user appears in the current A position; the target operation may be, for example, adjusting the shooting angle to the A position; the information of the target device may indicate, for example , The device type is shooting device.
一种可能的情况,h个参数例如可以包括事件参数。智能音箱可以根据用户发出的声响判断在B方位出现用户,该智能音箱可以将该B方位发送给智能摄像装置。该智能摄像装置可以根据该智能音箱相对于该智能摄像装置的方位,以及该B方位,判断在A方位出现用户,进而该智能摄像装置可以根据目标策略,调整拍摄角度至A方位。In a possible situation, the h parameters may include event parameters, for example. The smart speaker can determine the presence of a user in the B position according to the sound made by the user, and the smart speaker can send the B position to the smart camera device. The smart camera device can determine the presence of a user in the A position according to the position of the smart speaker relative to the smart camera device and the B position, and the smart camera device can adjust the shooting angle to the A position according to the target strategy.
一种可能的情况,h个参数例如可以包括图片参数。位于天花板上的拍摄装置1俯拍整个房间,在房间内出现用户的情况下,该拍摄装置1捕获图像,并将该图像发送给该房间内的其他拍摄装置,如拍摄装置2。拍摄装置2可以根据该图像,判断在A方位出现用户,进而该智能摄像装置可以根据目标策略,调整拍摄角度至A方位。In a possible situation, the h parameters may include picture parameters, for example. The camera 1 located on the ceiling takes a top view of the entire room. When a user appears in the room, the camera 1 captures an image and sends the image to other camera devices in the room, such as the camera 2. The camera 2 can determine the presence of a user in the A position based on the image, and the smart camera can adjust the shooting angle to the A position according to the target strategy.
上述两种参数均可以实现,根据用户的位置自动调整拍摄角度。很明显,这有利于拍摄相对多的用户行为。Both of the above parameters can be realized, and the shooting angle is automatically adjusted according to the user's position. Obviously, this is good for capturing a relatively large amount of user behavior.
目标策略的提供者例如可以是第三方策略提供商,还可以由任一物联网设备的品牌供应商提供,本申请实施例对于目标策略的提供者可以不作限定。可选的,所述多个物联网设备可以分别由多个不同品牌的供应商提供。The provider of the target strategy may be, for example, a third-party strategy provider, or may also be provided by any brand supplier of the Internet of Things device. The embodiment of the present application may not limit the provider of the target strategy. Optionally, the multiple Internet of Things devices may be provided by multiple vendors of different brands.
图10是本申请实施例提供的一种智能应用商城的用户图形界面(graphical user interface,GUI)。该GUI可以在控制设备上显示。智能应用商城还可以被称为应用程序商城(或app store)等。或者,智能应用商城可以是应用程序商城(或app store)中的一个子模块。FIG. 10 is a graphical user interface (GUI) of a smart application mall provided by an embodiment of the present application. The GUI can be displayed on the control device. The smart application store can also be called an application store (or app store), etc. Or, the smart application store may be a sub-module in the application store (or app store).
如图10所示,该GUI可以包括可切换显示的多个选项卡1001。选项卡1001可以用于为用户推送热门应用。在一个示例中,选项卡1001可以用于展示一组类型相近的应用。在一个示例中,选项卡1001可以用于展示某个特定应用的使用效果。由于选项卡1001的展示区域相对较大,选项卡1001中可以展现的内容可以相对较多,选项卡1001的示意图可以相对生动,有利于实现相对有效的推送效果。As shown in FIG. 10, the GUI may include a plurality of tabs 1001 that can be switched and displayed. The tab 1001 can be used to push popular applications for users. In one example, the tab 1001 can be used to display a group of similar applications. In an example, the tab 1001 can be used to display the use effect of a specific application. Since the display area of the tab 1001 is relatively large, the content that can be displayed in the tab 1001 can be relatively large, and the schematic diagram of the tab 1001 can be relatively vivid, which is conducive to achieving a relatively effective push effect.
如图10所示,该GUI还可以包括多个应用图标1002。每个应用图标1002可以对应一个应用。每个应用可以包括一个或多个策略,任一策略用于在一个或多个特定条件成立的情况下,一个或多个特定设备执行一个或多个特定操作,该一个或多个特定设备与该一个或多个特定操作一一对应。例如,在条件1成立的情况下,设备1执行操作1。又如,在条件2成立的情况下,设备2执行操作2,设备3执行操作3。As shown in FIG. 10, the GUI may also include a plurality of application icons 1002. Each application icon 1002 can correspond to one application. Each application can include one or more policies. Any policy is used to perform one or more specific operations on one or more specific devices when one or more specific conditions are established. The one or more specific operations have a one-to-one correspondence. For example, in a case where condition 1 is established, device 1 performs operation 1. For another example, when condition 2 is established, device 2 performs operation 2, and device 3 performs operation 3.
如图10所示,在智能应用商城中可以显示有多个精品智能应用,该多个精品智能应用可以包括“智能晨起应用”、“舒适卫生间应用”、“智能用户感测应用”等。如图10所示,在智能应用商城中可以显示有多个精品电视应用,该多个精品电视应用可以包括“智能匹配用户喜好应用”、“快速识别用户身份应用”等。As shown in FIG. 10, a plurality of high-quality smart applications may be displayed in the smart application mall, and the plurality of high-quality smart applications may include "smart morning wake-up application", "comfortable bathroom application", "smart user sensing application", and so on. As shown in FIG. 10, a plurality of high-quality TV applications may be displayed in the smart application mall, and the plurality of high-quality TV applications may include "applications for intelligently matching user preferences", "applications for quickly identifying user identity", and the like.
下面针对图10所示的智能应用,提供若干个可能的智能应用的具体实施方式。在受益于下述实施例中呈现的指导启示下,本领域技术人员将会想到本申请的许多改进和其他实施例。因此,应理解,本申请不限于所公开的特定实施例。For the smart application shown in FIG. 10, a number of specific implementations of possible smart applications are provided below. Benefiting from the guidance presented in the following embodiments, those skilled in the art will think of many improvements and other embodiments of the present application. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed.
“智能晨起应用”例如可以应用于用户晨起的场景中。该“智能晨起应用”例如可以包括:策略1,在8:00时窗帘遥控机开启窗帘;策略2,在有用户出现的房间内,启动电视并播放早间新闻;策略3,在8:00时启动电热水器的加热功能。也就是说,窗帘遥控机、电视、电热水器可以分别执行相应操作,以实现“智能晨起应用”的功能。该“智能晨起应用”的功能例如可以包括,在合适的时间为室内提供阳光光照,并人性化地为用户提供最新时事新闻。The "smart morning wakeup application" can be applied to, for example, a scene where a user wakes up in the morning. The "smart morning wake-up application" may include, for example: Strategy 1, the curtain remote control machine opens the curtains at 8:00; Strategy 2, in the room where the user appears, start the TV and broadcast the morning news; Strategy 3, at 8: Start the heating function of the electric water heater at 00 o'clock. That is to say, the curtain remote control machine, TV, and electric water heater can perform corresponding operations respectively to realize the function of "smart morning rise application". The function of the "smart morning wakeup application" may include, for example, providing sunlight indoors at a suitable time, and providing users with the latest current affairs and news in a humanized manner.
“舒适卫生间应用”例如可以应用于卫生间的场景中。该“舒适卫生间应用”例如可以包括:策略1,在用户出现在卫生间的情况下,开启空气净化器;策略2,在用户离开卫生间0.5个小时后,关闭空气净化器;策略3,在用户出现在卫生间的情况下,开启智能灯具;策略4,在用户离开卫生间2分钟后,关闭智能灯具的照明功能;策略5,在用户出现在卫生间的情况下,开启电热水器的加热功能;策略6,在用户离开卫生间时,关闭热水器的加热功能,并开启热水器的保温功能。也就是说,空气净化器、电视、电热水器可以分别执行相应操作,以实现“舒适卫生间应用”的功能。该“舒适卫生间应用”的功能例如可以包括,在用户出现在卫生间时,为用户提供舒适的洗漱环境,并在用户离开卫生间后,使卫生间内的电器处于休眠状态。The "comfort bathroom application" can be applied to a bathroom scene, for example. This "comfort bathroom application" may include, for example, strategy 1, when the user appears in the bathroom, turn on the air purifier; strategy 2, turn off the air purifier after the user leaves the bathroom for 0.5 hours; strategy 3, when the user appears In the case of the bathroom, turn on the smart lamp; strategy 4, turn off the lighting function of the smart lamp 2 minutes after the user leaves the bathroom; strategy 5, turn on the heating function of the electric water heater when the user appears in the bathroom; strategy 6, When the user leaves the bathroom, the heating function of the water heater is turned off, and the heat preservation function of the water heater is turned on. In other words, the air purifier, TV, and electric water heater can perform corresponding operations respectively to realize the function of "comfortable bathroom application". The function of the "comfort bathroom application" may include, for example, providing a comfortable washing environment for the user when the user appears in the bathroom, and putting the electrical appliances in the bathroom into a dormant state after the user leaves the bathroom.
“智能用户感测应用”例如可以应用于用户识别的场景中。该“智能用户感测应用”例如可以包括:策略1,在智能音箱接收到异常声响的情况下,开启距离该智能音箱最近的智能拍摄装置1;策略2,在该智能拍摄装置1无法捕获到目标用户身影的情况下,智能音箱广播该异常声响的方位;策略3,在智能拍摄装置1接收到该异常声响的方位数据后,根据该智能音箱相对于该智能拍摄装置1的方位,以及该异常声响的方位,调整拍摄角度,以捕获目标用户身影;策略4,在智能拍摄装置1无法继续追随目标用户身影的情况下,向智能拍摄装置2指示该目标用户相对于该智能拍摄装置1的方位;策略5,在智能拍摄装置2接收到该目标用户相对于该智能拍摄装置1的方位后,根据该智能拍摄装置1相对于该智能拍摄装置2的方位,以及该目标用户相对于该智能拍摄装置1的方位,调整拍摄角度,以捕获目标用户身影。也就是说,智能音箱、多个智能拍摄装置可以分别执行相应操作,以实现“智能用户感测应用”的功能。该“智能用户感测应用”的功能例如可以包括,在目标用户出现在多房间的建筑物中,可以相对灵活地追随目标用户的行为。The "smart user sensing application" can be applied to user identification scenarios, for example. The “smart user sensing application” may include, for example, strategy 1, when the smart speaker receives an abnormal sound, turn on the smart camera 1 closest to the smart speaker; strategy 2, in which the smart camera 1 cannot capture In the case of the target user, the smart speaker broadcasts the location of the abnormal sound; strategy 3, after the smart camera 1 receives the location data of the abnormal sound, according to the location of the smart speaker relative to the smart camera 1, and the Adjust the shooting angle of the abnormal sound to capture the target user's figure; Strategy 4, when the smart camera 1 cannot continue to follow the target user's figure, indicate to the smart camera 2 the target user relative to the smart camera 1 Orientation; Strategy 5, after the smart camera 2 receives the orientation of the target user relative to the smart camera 1, according to the orientation of the smart camera 1 relative to the smart camera 2, and the target user relative to the smart The orientation of the camera 1 is adjusted to adjust the shooting angle to capture the figure of the target user. In other words, the smart speaker and multiple smart camera devices can perform corresponding operations respectively to realize the function of "smart user sensing application". The function of the "smart user sensing application" may include, for example, that the target user can follow the behavior of the target user relatively flexibly when the target user appears in a multi-room building.
“智能匹配用户喜好应用”例如可以应用于处理用户喜好数据的场景中。该“智能匹配用户喜好应用”例如可以包括:策略1,在智能音箱生成用户喜好数据1的情况下,将该用户喜好数据1中的关键词发送给电视;策略2,在电视生成用户喜好数据2的情况下,将该用户喜好数据2中的关键词发送给智能音箱。也就是说,智能音箱、电视可以分别执行相应操作,以实现“智能匹配用户喜好应用”的功能。该“智能匹配用户喜好应用”的功能例如可以包括,在多物联网设备上快速同步用户喜好数据,相对灵活、人性化地为用户推送信息。The "smart matching user preference application" can be applied, for example, to a scenario that processes user preference data. The "smart matching user preference application" may include, for example, strategy 1, when the smart speaker generates user preference data 1, sending keywords in the user preference data 1 to the TV; strategy 2, generating user preference data on the TV In the case of 2, the keywords in the user preference data 2 are sent to the smart speaker. In other words, smart speakers and TVs can perform corresponding operations respectively to achieve the function of "smart matching user preferences". The function of "smart matching user preference application" may include, for example, quickly synchronizing user preference data on multiple Internet of Things devices, and pushing information for users relatively flexibly and humanely.
“快速识别用户身份应用”例如可以应用于用户身份验证的场景中。该“快速识别用户身份应用”例如可以包括:策略1,在智能音箱验证声纹信息后,将用户信息发送给电视。策略2,在智能拍摄装置验证人脸信息后,将用户信息发送给电视。也就是说,智能音箱、智能拍摄装置、电视可以分别执行相应操作,以实现“快速识别用户身份应用”的功能。该“快速识别用户身份应用”的功能例如可以包括,在多物联网设备上快速同步用户身份验证结果,相对灵活、便捷地执行用户身份验证过程。The "quickly identifying user identity application" can be applied, for example, to the scenario of user identity verification. The "quickly identifying user identity application" may include, for example: Strategy 1, after the smart speaker verifies the voiceprint information, the user information is sent to the TV. Strategy 2: After the smart camera verifies the facial information, the user information is sent to the TV. In other words, smart speakers, smart camera devices, and TVs can perform corresponding operations respectively to achieve the function of "quickly identifying user identity applications". The function of the "quickly identifying user identity application" may include, for example, quickly synchronizing user identity verification results on multiple Internet of Things devices, and relatively flexible and convenient execution of the user identity verification process.
可选的,所述方法还包括:控制设备存储多个策略操作文档,所述策略操作文档为策略的指示文档,所述策略包括一个或多个执行条件、一个或多个执行操作、执行设备,所述策略操作文档用于指示在所述一个或多个执行条件成立的情况下,所述执行设备执行所述一个或多个执行操作;所述控制设备接收输入的关键词,所述关键词用于表示以下至少一种:所述策略操作文档的标题、所述执行设备的类型、所述执行条件中的参数、所述一个或多个执行条件中的至少一个执行条件,所述执行操作的类型;所述控制设备根据所述关键词,在所述多个策略操作文档中确定目标策略操作文档,所述目标策略操作文档与目标策略对应;所述控制设备将所述目标策略反馈给用户。Optionally, the method further includes: controlling the device to store a plurality of policy operation documents, the policy operation document being an instruction document of the policy, the policy including one or more execution conditions, one or more execution operations, and execution device , The policy operation document is used to indicate that when the one or more execution conditions are established, the execution device executes the one or more execution operations; the control device receives the input keyword, the key A word is used to indicate at least one of the following: the title of the policy operation document, the type of the execution device, the parameter in the execution condition, at least one execution condition of the one or more execution conditions, the execution The type of operation; the control device determines a target strategy operation document among the plurality of strategy operation documents according to the keyword, and the target strategy operation document corresponds to the target strategy; the control device feeds back the target strategy To the user.
在一个示例中,策略操作文档例如可以是智能应用的应用程序包。In an example, the policy operation document may be, for example, an application package of a smart application.
在一个示例中,策略操作文档例如可以是智能应用的摘要,该摘要包括该智能应用对应的标题、设备类型、设备标识、参数、条件、操作等信息。In an example, the policy operation document may be, for example, a summary of a smart application, and the summary includes information such as a title, device type, device identification, parameters, conditions, and operations corresponding to the smart application.
上文已经针对目标策略的各种可能的具体实现方式进行了详细阐述,在此就不再赘述策略的具体实现方式。The various possible specific implementations of the target strategy have been described in detail above, and the specific implementations of the strategy will not be repeated here.
也就是说,控制设备可以根据用户输入的关键词,在多个策略操作文档中寻找符合关键词的至少一个策略操作文档,并将该至少一个策略操作文档提供给用户。That is, the control device can search for at least one policy operation document that matches the keyword among multiple policy operation documents according to the keywords input by the user, and provide the at least one policy operation document to the user.
如图10所示,该GUI还可以包括搜索框1003。用户可以在该搜索框1003内智能应用的标题、搜索设备类型、设备标识、参数、条件、操作等内容或关键词。As shown in FIG. 10, the GUI may also include a search box 1003. The user can search for content or keywords such as the title, device type, device identification, parameters, conditions, operations, etc. of the smart application in the search box 1003.
在一个示例中,用户可以通过如下关键词中的一个或多个,寻找到图10所示的“智能晨起应用”:窗帘、电视、热水器、窗帘遥控机、晨起、新闻、时间等。In an example, the user can find the "smart morning wakeup application" shown in FIG. 10 through one or more of the following keywords: curtains, TV, water heater, curtain remote control, morning wakeup, news, time, etc.
在一个示例中,用户可以通过如下关键词中的一个或多个,寻找到图10所示的“舒适卫生间应用”:卫生间、空气净化器、灯、热水器、加热、光照等。In an example, the user can find the "comfort bathroom application" shown in FIG. 10 through one or more of the following keywords: toilet, air purifier, lamp, water heater, heating, lighting, etc.
在一个示例中,用户可以通过如下关键词中的一个或多个,寻找到图10所示的“智能用户感测应用”:音箱、方位、用户感测、摄像头、拍摄、拍摄角度、追踪等。In an example, the user can find the "smart user sensing application" shown in Figure 10 through one or more of the following keywords: speaker, orientation, user sensing, camera, shooting, shooting angle, tracking, etc. .
在一个示例中,用户可以通过如下关键词中的一个或多个,寻找到图10所示的“智能匹配用户喜好应用”:用户喜好、电视、音箱、数据同步等。In an example, the user can find the "smart matching user preference application" shown in FIG. 10 through one or more of the following keywords: user preference, TV, speakers, data synchronization, etc.
在一个示例中,用户可以通过如下关键词中的一个或多个,寻找到图10所示的“快 速识别用户身份应用”:身份验证、音箱、摄像头、拍摄装置、电视、人脸识别、声纹识别、数据同步等。In an example, the user can find the "quick user identification application" shown in Figure 10 through one or more of the following keywords: identity verification, speaker, camera, camera, television, face recognition, sound Pattern recognition, data synchronization, etc.
可选的,所述控制设备将所述目标策略反馈给用户,包括:在显示屏上显示所述目标策略的相关信息。Optionally, the control device feeding back the target strategy to the user includes: displaying information related to the target strategy on a display screen.
例如,控制设备可以将搜索到的目标策略所对应的信息显示在屏幕上。用户可以通过手势等操作,指示控制设备加载该目标策略。例如,在用户界面上显示目标智能应用的简介。For example, the control device may display the information corresponding to the searched target strategy on the screen. The user can instruct the control device to load the target strategy through gestures and other operations. For example, the introduction of the target smart application is displayed on the user interface.
903a,所述控制设备根据所述目标策略,在所述多个物联网设备中确定第一物联网设备,所述第一物联网设备符合所述目标设备的信息,所述第一物联网设备用于执行所述目标操作。903a. The control device determines a first Internet of Things device among the plurality of Internet of Things devices according to the target policy, the first Internet of Things device conforms to the information of the target device, and the first Internet of Things device Used to perform the target operation.
由于目标策略中存在目标操作的指示信息、预设条件的指示信息和目标设备的指示信息,因此该控制设备可以根据目标操作的指示信息、预设条件的指示信息、目标设备的指示信息中的至少一个,从多个物联网设备中确定该第一物联网设备。Since the target strategy includes the target operation indication information, the preset condition indication information, and the target device indication information, the control device can be based on the target operation indication information, the preset condition indication information, and the target device indication information. At least one, the first Internet of Things device is determined from a plurality of Internet of Things devices.
例如,目标设备的信息指示热水器,控制设备在901中曾与目标热水器建立无线连接,因此该控制设备可以将该目标热水器确定为第一物联网设备。For example, the information of the target device indicates a water heater, and the control device has established a wireless connection with the target water heater in 901, so the control device can determine the target water heater as the first Internet of Things device.
又如,目标设备的信息指示电视,目标操作的内容为拍摄图像,控制设备在901中曾与多个电视建立无线连接,然而该多个电视中仅有目标电视具有拍摄功能,则该控制设备可以将该目标电视确定为第一物联网设备。For another example, the information of the target device indicates the TV, the content of the target operation is shooting images, and the control device has established wireless connections with multiple TVs in 901, but only the target TV of the multiple TVs has the shooting function, then the control device The target TV can be determined as the first Internet of Things device.
又如,目标设备的信息指示设备标识为标识A,控制设备在901中曾与标识A的目标设备建立无线连接,因此该控制设备可以将该目标设备确定为第一物联网设备。For another example, the information of the target device indicates that the device is identified as identification A, and the control device has established a wireless connection with the target device with identification A in 901, so the control device can determine the target device as the first Internet of Things device.
又如,目标设备的信息指示人脸验证通过,控制设备在901中曾与具有人脸识别功能,且具有获取图像参数功能的目标电视建立无线连接,因此该控制设备可以将该目标电视确定为第一物联网设备。In another example, the information of the target device indicates that the face verification is passed, and the control device has established a wireless connection with the target TV that has the function of face recognition and the function of acquiring image parameters in 901, so the control device can determine the target TV as The first IoT device.
903b,所述控制设备根据所述预设条件,在所述多个物联网设备中确定第二物联网设备,所述第二物联网设备具有提供所述h个参数的取值的能力。903b. The control device determines a second Internet of Things device among the plurality of Internet of Things devices according to the preset condition, and the second Internet of Things device has the ability to provide values of the h parameters.
由于目标策略中存在预设条件的指示信息,因此该控制设备可以根据该预设条件的指示信息,从多个物联网设备中确定该第二物联网设备。Since there is indication information of the preset condition in the target strategy, the control device can determine the second internet of things device from a plurality of internet of things devices according to the indication information of the preset condition.
具有提供所述h个参数的取值的能力,可以指第二物联网设备可以获取到h个参数的具体取值。另外,第二物联网设备还可以对获取到的h个参数的具体取值进行其他处理,例如判断预设条件是否成立,或者在预设条件成立的情况下指示其他物联网设备执行操作。The ability to provide the values of the h parameters may mean that the second Internet of Things device can obtain the specific values of the h parameters. In addition, the second Internet of Things device may also perform other processing on the acquired specific values of the h parameters, such as determining whether a preset condition is established, or instructing other Internet of Things devices to perform operations when the preset condition is established.
可选的,在所述控制设备根据所述目标策略,在所述多个物联网设备中确定所述第一物联网设备和/或所述第二物联网设备之前,所述方法还包括:根据所述预设条件确定所述h个参数。Optionally, before the control device determines the first Internet of Things device and/or the second Internet of Things device among the plurality of Internet of Things devices according to the target policy, the method further includes: The h parameters are determined according to the preset condition.
一种可能的情况下,预设条件中的参数是显示的。例如,温度大于25℃,在该条件中,显示地包含了温度参数。因此,控制设备可以根据该预设条件,确定能够获取该显示参数的设备为第一物联网设备,和/或,确定能够提供显示参数的设备为第二物联网设备。In a possible case, the parameters in the preset conditions are displayed. For example, if the temperature is greater than 25°C, in this condition, the display includes the temperature parameter. Therefore, the control device may determine, according to the preset condition, that the device capable of obtaining the display parameters is the first Internet of Things device, and/or determine that the device capable of providing display parameters is the second Internet of Things device.
在另一种可能的情况下,预设条件可以由其他隐式参数进行判断。例如,针对条件:用户出现在房间里,可以通过用户发出的声响(音频参数或事件参数)、拍摄到用户的身 影(图像参数或事件参数)、红外线感测(红外光参数或事件参数)等,来判断该条件是否成立。因此,控制设备可以确定用于判断该预设条件是否成立的隐式参数;进而,确定能够获取该隐式参数的设备为第一物联网设备,和/或,确定能够提供隐式参数的设备为第二物联网设备。In another possible situation, the preset condition can be judged by other implicit parameters. For example, for conditions: when the user appears in the room, the user's sound (audio parameter or event parameter), the user's figure (image parameter or event parameter), infrared sensing (infrared light parameter or event parameter), etc. can be captured by the user , To determine whether the condition is true. Therefore, the control device can determine the implicit parameter used to determine whether the preset condition is established; further, the device that can obtain the implicit parameter is the first Internet of Things device, and/or the device that can provide the implicit parameter is determined It is the second IoT device.
控制设备可以选择:执行903a,或者执行903b,或者执行903a和903b。The control device can choose to execute 903a, or execute 903b, or execute 903a and 903b.
在控制设备执行903a的情况下,控制设备可以执行904a,所述控制设备向所述第一物联网设备发送第一通信指示信息,所述第一通信指示信息用于指示所述第一物联网设备与除所述第一物联网设备以外的其他物联网设备通信。In the case that the control device executes 903a, the control device may execute 904a, and the control device sends first communication instruction information to the first Internet of Things device, where the first communication instruction information is used to instruct the first Internet of Things device The device communicates with other IoT devices other than the first IoT device.
也就是说,控制设备根据目标策略,判断该第一物联网设备与该目标策略有关,进而该控制设备可以指示该第一物联网设备与其他相关的物联网设备建立无线通信连接。That is, the control device determines that the first Internet of Things device is related to the target strategy according to the target strategy, and the control device can instruct the first Internet of Things device to establish a wireless communication connection with other related Internet of Things devices.
在一个示例中,所述第一通信指示信息用于指示所述第一物联网设备与所述第二物联网设备建立无线通信连接。In an example, the first communication indication information is used to instruct the first Internet of Things device to establish a wireless communication connection with the second Internet of Things device.
相应地,所述第一物联网设备根据所述第一通信指示信息,建立与所述第二物联网设备之间的无线通信连接。Correspondingly, the first Internet of Things device establishes a wireless communication connection with the second Internet of Things device according to the first communication instruction information.
也就是说,第一物联网设备与第二物联网设备建立无线通信连接是由控制设备直接指示的。在此情况下,控制设备需要执行903b。That is, the establishment of a wireless communication connection between the first Internet of Things device and the second Internet of Things device is directly instructed by the control device. In this case, the control device needs to execute 903b.
一种可能的实现方式是,所述第一通信指示信息包括第二物联网设备的设备信息(如第二物联网设备的设备标识、设备类型等),从而所述第一物联网设备可以根据所述第二物联网设备的设备信息,向第二物联网设备发送无线通信连接请求。A possible implementation is that the first communication indication information includes the device information of the second Internet of Things device (such as the device identifier of the second Internet of Things device, device type, etc.), so that the first Internet of Things device can be based on The device information of the second Internet of Things device sends a wireless communication connection request to the second Internet of Things device.
可选的,所述第一通信指示信息包括K个待连接设备的K个设备信息,所述K个设备信息与K个待连接设备一一对应,所述K个待连接设备包括所述第二物联网设备。Optionally, the first communication indication information includes K pieces of device information of K pieces of equipment to be connected, and the K pieces of equipment information correspond to the K pieces of equipment to be connected one-to-one, and the K pieces of equipment to be connected include the first piece of information. 2. Internet of Things equipment.
相应地,所述第一物联网设备根据所述第一通信指示信息,分别与所述K个待连接设备建立无线通信连接。Correspondingly, the first Internet of Things device respectively establishes wireless communication connections with the K to-be-connected devices according to the first communication instruction information.
也就是说,控制设备可以确定符合条件的多个物联网设备,并将该多个物联网设备的设备信息发送给第一物联网设备,从而第一物联网设备可以快速建立与多个物联网设备之间的无线通信连接。In other words, the control device can determine multiple Internet of Things devices that meet the conditions, and send the device information of the multiple Internet of Things devices to the first Internet of Things device, so that the first Internet of Things device can quickly establish connections with multiple Internet of Things devices. Wireless communication connection between devices.
可选的,所述第一通信指示信息还用于指示所述第一物联网设备向所述第二物联网设备请求提供所述h个参数的具体取值。Optionally, the first communication indication information is further used to instruct the first Internet of Things device to request the second Internet of Things device to provide specific values of the h parameters.
也就是说,在第一物联网设备需要h’个参数(h’>h)的具体取值的情况下,控制设备可以指示第一物联网设备仅请求第二物联网设备提供h个参数的具体取值,h’-h个参数的具体取值可以请求除第二物联网设备以外的其他物联网设备。That is to say, in the case that the first Internet of Things device requires specific values of h'parameters (h'>h), the control device can instruct the first Internet of Things device to only request the second Internet of Things device to provide h parameters. Specific values, specific values of the h'-h parameters may request other IoT devices except the second IoT device.
可选的,所述第一通信指示信息用于指示所述第一物联网设备寻找:提供所述h个参数的取值的1类物联网设备,或者,判断所述预设条件是否成立的2类物联网设备,或者,在所述预设条件成立的情况下,指示所述第一物联网设备执行所述目标操作的3类物联网设备。Optionally, the first communication indication information is used to instruct the first Internet of Things device to find: a type 1 Internet of Things device that provides the values of the h parameters, or to determine whether the preset condition is established Type 2 IoT device, or, if the preset condition is established, a Type 3 IoT device that instructs the first IoT device to perform the target operation.
也就是说,一种可能的情况,第一物联网设备自主寻找提供h个参数的取值的物联网设备;另一种可能的情况,该预设条件是否成立由第二物联网设备进行判断,第一物联网设备只接收该预设条件是否成立的判断结果;又一种可能的情况,该预设条件成立所对应的操作由第二物联网设备指示。在此情况下,控制设备可以不执行903b。That is to say, in one possible situation, the first Internet of Things device autonomously searches for the Internet of Things device that provides the values of h parameters; in another possible situation, the second Internet of Things device determines whether the preset condition is true or not. , The first Internet of Things device only receives the judgment result of whether the preset condition is established; in another possible situation, the operation corresponding to the establishment of the preset condition is instructed by the second Internet of Things device. In this case, the control device may not execute 903b.
可选的,第一物联网设备在执行所述目标操作之前,需要获取与所述预设条件、所述目标操作相关的信息。Optionally, before executing the target operation, the first Internet of Things device needs to obtain information related to the preset condition and the target operation.
上述1类物联网设备需要获取与所述h个参数相关的信息,可选的,上述1类物联网设备可以获取与所述预设条件相关的信息;该1类物联网设备可以不获取与所述目标操作、所述目标设备相关的信息。The aforementioned type 1 IoT devices need to obtain information related to the h parameters. Optionally, the aforementioned type 1 IoT devices can obtain information related to the preset conditions; the type 1 IoT devices may not obtain information related to the preset conditions. The target operation and information related to the target device.
上述2类物联网设备需要获取与所述预设条件相关的信息;该2类物联网设备可以不获取与所述目标操作、所述目标设备相关的信息。The foregoing two types of IoT devices need to obtain information related to the preset conditions; the two types of IoT devices may not obtain information related to the target operation and the target device.
上述3类物联网设备需要获取与所述预设条件、所述目标操作相关的信息;该3类物联网设备可以不获取与所述目标设备相关的信息。The foregoing three types of IoT devices need to obtain information related to the preset conditions and the target operation; the three types of IoT devices may not obtain information related to the target device.
可选的,所述第一通信指示信息包括所述h个参数的指示信息或所述预设条件的指示信息。Optionally, the first communication indication information includes indication information of the h parameters or indication information of the preset condition.
在一个示例中,控制设备根据该预设条件,确定用于判断所述预设条件是否成立的h个参数。In an example, the control device determines h parameters for judging whether the preset condition is established according to the preset condition.
上文已经阐述了控制设备根据预设条件,确定与该预设条件相关的显示参数和/或隐式参数的实施例。在此就不必再详细赘述。The embodiments in which the control device determines the display parameters and/or implicit parameters related to the preset conditions according to the preset conditions have been described above. There is no need to go into details here.
在一个示例中,第一物联网设备根据该预设条件,确定用于判断所述预设条件是否成立的h个参数。In an example, the first Internet of Things device determines h parameters for judging whether the preset condition is established according to the preset condition.
第一物联网设备确定用于判断该n条件是否成立的该h个参数的技术方案与控制设备确定该h个参数的技术方案类似,在此就不必再详细赘述。The technical solution for determining the h parameters by the first Internet of Things device to determine whether the n conditions are true is similar to the technical solution for determining the h parameters by the control device, and it is not necessary to repeat them here.
可选的,所述第一物联网设备根据所述第一通信指示信息,发送第一广播消息,所述第一广播消息用于指示以下任一种:寻找提供所述h个参数的取值的物联网设备,寻找判断所述预设条件是否成立的物联网设备,寻找在所述预设条件成立的情况下,指示所述第一物联网设备执行所述目标操作的物联网设备;所述第一物联网设备接收所述第二物联网设备发送的第一目标反馈消息,所述第一目标反馈消息是针对所述第一广播消息的反馈;所述第一物联网设备根据所述第一目标反馈消息,与所述第二物联网设备建立无线通信连接。Optionally, the first Internet of Things device sends a first broadcast message according to the first communication indication information, where the first broadcast message is used to indicate any one of the following: looking for values for providing the h parameters The Internet of Things device, searching for an Internet of Things device that determines whether the preset condition is established, and looking for an Internet of Things device that instructs the first Internet of Things device to perform the target operation when the preset condition is established; The first Internet of Things device receives a first target feedback message sent by the second Internet of Things device, where the first target feedback message is a feedback for the first broadcast message; the first Internet of Things device is based on the The first target feedback message establishes a wireless communication connection with the second Internet of Things device.
相应地,所述第二物联网设备接收所述第一物联网设备发送的所述第一广播消息;所述第二物联网设备针对所述第一广播消息,向所述第一物联网设备发送所述第一目标反馈消息,所述第一目标反馈消息用于指示以下任一种:所述第二物联网设备提供所述h个参数的取值,所述第二物联网设备判断所述预设条件是否成立,所述第二物联网设备在所述预设条件成立的情况下,指示所述第一物联网设备执行所述目标操作;所述第二物联网设备建立所述第一物联网设备与所述第二物联网设备之间无线通信连接。Correspondingly, the second Internet of Things device receives the first broadcast message sent by the first Internet of Things device; the second Internet of Things device sends the first broadcast message to the first Internet of Things device The first target feedback message is sent, and the first target feedback message is used to indicate any one of the following: the second Internet of Things device provides the values of the h parameters, and the second Internet of Things device determines If the preset condition is established, the second Internet of Things device instructs the first Internet of Things device to perform the target operation when the preset condition is established; the second Internet of Things device establishes the first A wireless communication connection between an Internet of Things device and the second Internet of Things device.
一种可能的实现方式是,第一物联网设备在确定需要被提供h个参数的取值后,可以广播寻找用于提供该h个参数的取值的物联网设备;第二物联网设备可以提供该h个参数的取值,该第二物联网设备可以向该第一物联网设备发送反馈信息,进而所述第一物联网设备可以与所述第二物联网设备建立无线通信连接。A possible implementation is that after determining the values of h parameters that need to be provided by the first Internet of Things device, it can broadcast to find the Internet of Things devices used to provide the values of the h parameters; the second Internet of Things device may Providing the values of the h parameters, the second Internet of Things device can send feedback information to the first Internet of Things device, and then the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device.
另一种可能的实现方式是,第一物联网设备在确定需要获知所述预设条件是否成立后,可以广播寻找判断所述预设条件是否成立的物联网设备;第二物联网设备可以判断所述预设条件是否成立,该第二物联网设备可以向该第一物联网设备发送反馈信息,进而所 述第一物联网设备可以与所述第二物联网设备建立无线通信连接。Another possible implementation is that after determining that the first Internet of Things device needs to know whether the preset condition is established, it can broadcast to search for the Internet of Things device that determines whether the preset condition is established; the second Internet of Things device can determine Whether the preset condition is established, the second Internet of Things device may send feedback information to the first Internet of Things device, and then the first Internet of Things device may establish a wireless communication connection with the second Internet of Things device.
又一种可能的实现方式是,第一物联网设备在确定需要在所述预设条件成立的情况下执行目标操作后,可以广播寻找在所述预设条件成立的情况下,指示所述第一物联网设备执行所述目标操作的物联网设备;第二物联网设备可以在所述预设条件成立的情况下,指示所述第一物联网设备执行所述目标操作,该第二物联网设备可以向该第一物联网设备发送反馈信息,进而所述第一物联网设备可以与所述第二物联网设备建立无线通信连接。Another possible implementation manner is that, after determining that the first Internet of Things device needs to perform the target operation when the preset condition is established, it may broadcast searching for instructions to the first Internet of Things device when the preset condition is established. An Internet of Things device that performs the target operation; a second Internet of Things device can instruct the first Internet of Things device to perform the target operation when the preset conditions are established, and the second Internet of Things device The device may send feedback information to the first Internet of Things device, and then the first Internet of Things device may establish a wireless communication connection with the second Internet of Things device.
可选的,所述目标策略包括L个条件、至少一个操作、所述目标设备的信息,L为大于1的整数,所述L个条件包括所述预设条件,所述至少一个操作包括所述目标操作,所述L个条件含有H个参数,所述H个参数包括所述h个参数,所述目标策略用于指示在所述L个条件均成立的情况下,所述目标设备执行所述至少一个操作,所述第一通信指示信息用于指示在所述L个条件均成立的情况下执行所述至少一个操作,所述第一广播消息用于寻找以下任一种的物联网设备:提供所述H个参数中任一参数的取值的物联网设备,判断所述L个条件中任一条件是否成立的物联网设备,在所述L个条件成立的情况下,按照所述目标策略,指示所述第一物联网设备执行所述至少一个操作的物联网设备;所述第一物联网设备接收多个物联网设备发送的多个第一反馈消息,所述多个第一反馈消息与所述多个物联网设备一一对应,所述多个第一反馈消息均是针对所述第一广播消息的反馈,所述多个第一反馈消息包括所述第一目标反馈消息;所述第一物联网设备根据所述第一目标反馈消息,与第二物联网设备建立无线通信连接,包括:所述第一物联网设备根据所述多个第一反馈消息,与多个物联网设备建立无线通信连接,所述多个物联网设备包括所述第二物联网设备。Optionally, the target strategy includes L conditions, at least one operation, and information about the target device, L is an integer greater than 1, the L conditions include the preset conditions, and the at least one operation includes all In the target operation, the L conditions include H parameters, the H parameters include the h parameters, and the target strategy is used to indicate that when the L conditions are all established, the target device executes The at least one operation, the first communication instruction information is used to instruct to perform the at least one operation when the L conditions are all met, and the first broadcast message is used to find any one of the following Internet of Things Device: an Internet of Things device that provides the value of any one of the H parameters, an Internet of Things device that determines whether any one of the L conditions is established, and when the L conditions are established, according to the The target strategy indicates an Internet of Things device that instructs the first Internet of Things device to perform the at least one operation; the first Internet of Things device receives multiple first feedback messages sent by multiple Internet of Things devices, and the multiple first A feedback message corresponds to the plurality of IoT devices one-to-one, the plurality of first feedback messages are all feedbacks for the first broadcast message, and the plurality of first feedback messages include the first target feedback Message; the first Internet of Things device establishes a wireless communication connection with a second Internet of Things device according to the first target feedback message, including: the first Internet of Things device according to the plurality of first feedback messages, and multiple A wireless communication connection is established between a plurality of Internet of Things devices, and the plurality of Internet of Things devices includes the second Internet of Things device.
也就是说,在H个参数的取值无法由一个物联网设备完整提供的情况下,上述方式可以使得第一物联网设备与多个物联网设备建立联系。That is to say, in the case that the values of the H parameters cannot be completely provided by one Internet of Things device, the above-mentioned method can enable the first Internet of Things device to establish a connection with multiple Internet of Things devices.
例如,第一物联网设备需要被提供参数1、参数2、参数3,第二物联网设备可以仅提供参数2,第一物联网设备广播寻找提供参数1、参数2、参数3中一个或多个参数的物联网设备,并收到物联网设备1、物联网设备2的反馈。其中,物联网设备1的反馈指示该物联网设备1提供参数1。物联网设备2的反馈指示该物联网设备2提供参数2、参数3。第一物联网设备可以分别与物联网设备1、物联网设备2建立无线通信连接。For example, the first Internet of Things device needs to be provided with Parameter 1, Parameter 2, and Parameter 3. The second Internet of Things device can only provide Parameter 2, and the first Internet of Things device broadcasts to provide one or more of Parameter 1, Parameter 2, and Parameter 3. IoT devices with three parameters, and receive feedback from IoT device 1 and IoT device 2. Wherein, the feedback of the Internet of Things device 1 instructs the Internet of Things device 1 to provide parameter 1. The feedback of the Internet of Things device 2 indicates that the Internet of Things device 2 provides parameter 2 and parameter 3. The first Internet of Things device may establish a wireless communication connection with the Internet of Things device 1 and the Internet of Things device 2 respectively.
上述提供参数的过程还可以替换为判断条件是否成立的过程。The above process of providing parameters can also be replaced with a process of judging whether the conditions are established.
在控制设备执行903b的情况下,控制设备可以执行904b,所述控制设备向所述第二物联网设备发送第二通信指示信息,所述第二通信指示信息用于指示所述第二物联网设备与除所述第二物联网设备以外的其他物联网设备通信。In the case that the control device executes 903b, the control device may execute 904b, and the control device sends second communication instruction information to the second Internet of Things device, and the second communication instruction information is used to indicate the second Internet of Things device. The device communicates with other IoT devices except the second IoT device.
也就是说,控制设备根据该目标策略中的预设条件,判断该第二物联网设备与该预设条件有关,进而该控制设备可以指示该第二物联网设备与其他相关的物联网设备建立无线通信连接。That is to say, the control device determines that the second Internet of Things device is related to the predetermined condition according to the preset conditions in the target strategy, and the control device can instruct the second Internet of Things device to establish a connection with other related Internet of Things devices. Wireless communication connection.
可选的,所述第二通信指示信息用于指示所述第二物联网设备与所述第一物联网设备建立无线通信连接。Optionally, the second communication indication information is used to instruct the second Internet of Things device to establish a wireless communication connection with the first Internet of Things device.
相应地,所述第二物联网设备根据所述第二通信指示信息,建立与所述第一物联网设备之间的无线通信连接。Correspondingly, the second Internet of Things device establishes a wireless communication connection with the first Internet of Things device according to the second communication instruction information.
也就是说,第一物联网设备与第二物联网设备建立无线通信连接是由控制设备直接指 示的。在此情况下,控制设备需要执行903a。In other words, the establishment of a wireless communication connection between the first Internet of Things device and the second Internet of Things device is directly instructed by the control device. In this case, the control device needs to execute 903a.
一种可能的实现方式是,所述第二通信指示信息包括第一物联网设备的设备信息(如第一物联网设备的设备标识、设备类型等),从而所述第二物联网设备可以根据所述第一物联网设备的设备信息,向第一物联网设备发送无线通信连接请求。A possible implementation is that the second communication indication information includes the device information of the first Internet of Things device (such as the device identifier of the first Internet of Things device, device type, etc.), so that the second Internet of Things device can be based on The device information of the first Internet of Things device sends a wireless communication connection request to the first Internet of Things device.
一种可能的实现方式是,所述第二通信指示信息包括所述目标设备的信息,从而所述第二物联网设备可以根据所述目标设备的信息,广播寻找符合所述目标设备的信息的物联网设备,进而向第一物联网设备发送无线通信连接请求。A possible implementation is that the second communication indication information includes the information of the target device, so that the second Internet of Things device can broadcast according to the information of the target device to find information that matches the information of the target device. The Internet of Things device further sends a wireless communication connection request to the first Internet of Things device.
可选的,所述第二通信指示信息包括K个待连接设备的K个设备信息,所述K个设备信息与K个待连接设备一一对应,所述K个待连接设备包括所述第一物联网设备。Optionally, the second communication indication information includes K pieces of device information of the K pieces of equipment to be connected, and the K pieces of equipment information correspond to the K pieces of equipment to be connected in a one-to-one correspondence, and the K pieces of equipment to be connected include the first piece of information. A device for the Internet of Things.
相应地,所述第二物联网设备根据所述第二通信指示信息,分别与所述K个待连接设备建立无线通信连接。Correspondingly, the second Internet of Things device respectively establishes wireless communication connections with the K to-be-connected devices according to the second communication instruction information.
也就是说,控制设备可以确定符合条件的多个物联网设备,并将该多个物联网设备的设备信息发送给第二物联网设备,从而第二物联网设备可以快速建立与多个物联网设备之间的无线通信连接。In other words, the control device can determine multiple Internet of Things devices that meet the conditions, and send the device information of the multiple Internet of Things devices to the second Internet of Things device, so that the second Internet of Things device can quickly establish connections with multiple Internet of Things devices. Wireless communication connection between devices.
可选的,所述第二通信指示信息用于指示所述第二物联网设备寻找:接收所述h个参数的取值的4类物联网设备,或者,接收条件成立指示信息的5类物联网设备,所述条件成立指示信息用于指示所述预设条件成立,或者,接收操作指示信息的6类物联网设备,所述操作指示信息用于指示执行所述目标操作。Optionally, the second communication instruction information is used to instruct the second Internet of Things device to find: 4 types of Internet of Things devices that receive the values of the h parameters, or 5 types of things that receive the indication information that the conditions are satisfied For networked devices, the condition establishment indication information is used to indicate that the preset condition is established, or 6 types of IoT devices that receive operation indication information, and the operation indication information is used to indicate the execution of the target operation.
也就是说,一种可能的情况,第二物联网设备自主寻找接收h个参数的取值的物联网设备;另一种可能的情况,该预设条件是否成立由第二物联网设备进行判断,满足要求的物联网设备只接收该预设条件是否成立的判断结果;又一种可能的情况,该预设条件成立所对应的操作由第二物联网设备指示,满足要求的物联网设备只接收操作的指示信息。在此情况下,控制设备可以不执行903a。That is to say, in one possible situation, the second Internet of Things device autonomously searches for the Internet of Things device that receives the values of h parameters; in another possible situation, the second Internet of Things device determines whether the preset condition is true or not. , The IoT device that meets the requirements only receives the judgment result of whether the preset condition is established; in another possible situation, the operation corresponding to the establishment of the preset condition is instructed by the second IoT device, and the IoT device that meets the requirement only Receive instructions for the operation. In this case, the control device may not execute 903a.
上述4类物联网设备需要事先获取与所述预设条件相关、目标操作、所述目标设备相关的信息,可选的,上述4类物联网设备可以事先获取与所述h个参数相关的信息。The foregoing 4 types of IoT devices need to obtain information related to the preset conditions, target operations, and the target device in advance. Optionally, the foregoing 4 types of IoT devices may obtain information related to the h parameters in advance .
上述5类物联网设备需要事先获取与所述预设条件、所述目标操作、所述目标设备相关的信息;该5类物联网设备可以不事先获取与h个参数相关的信息。The above five types of IoT devices need to obtain information related to the preset conditions, the target operation, and the target device in advance; the five types of IoT devices may not obtain information related to the h parameters in advance.
可选的,上述6类物联网设备可以不事先获取与所述目标操作、所述预设条件、h个参数相关的信息。Optionally, the aforementioned 6 types of IoT devices may not obtain information related to the target operation, the preset conditions, and the h parameters in advance.
可选的,所述第二通信指示信息包括所述h个参数的指示信息或所述预设条件的指示信息。Optionally, the second communication indication information includes indication information of the h parameters or indication information of the preset condition.
上文已经阐述了控制设备根据预设条件,确定与该预设条件相关的显示参数和/或隐式参数的实施例。在此就不必再详细赘述。因此,所述第二通信指示信息可以用于指示所述第二物联网设备向其他物联网设备提供所述h个参数取值。或者,所述第二通信指示信息可以用于指示所述第二物联网设备向其他物联网设备提供条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立的判断结果。The embodiments in which the control device determines the display parameters and/or implicit parameters related to the preset conditions according to the preset conditions have been described above. There is no need to go into details here. Therefore, the second communication indication information may be used to instruct the second Internet of Things device to provide the h parameter values to other Internet of Things devices. Alternatively, the second communication instruction information may be used to instruct the second Internet of Things device to provide condition establishment instruction information to other Internet of Things devices, and the condition establishment instruction information is used to indicate a determination result that the preset condition is established.
在一个示例中,第二物联网设备根据该预设条件,确定用于判断所述预设条件是否成立的h个参数。In an example, the second Internet of Things device determines h parameters for judging whether the preset condition is established according to the preset condition.
第二物联网设备确定用于判断该n条件是否成立的该h个参数的技术方案与控制设备 确定该h个参数的技术方案类似,在此就不必再详细赘述。The technical solution for determining the h parameters by the second Internet of Things device to determine whether the n conditions are true is similar to the technical solution for determining the h parameters by the control device, and it is not necessary to repeat them here.
在一个示例中,所述第二物联网设备根据所述第二通信指示信息,发送第二广播消息,其中:在所述第二通信指示信息用于指示所述第二物联网设备发送所述h个参数的取值的情况下,所述第二广播消息用于寻找接收所述h个参数的取值的设备;在所述第二通信指示信息用于指示所述第二物联网设备发送条件成立指示信息的情况下,所述第二广播消息用于寻找接收条件成立指示信息的设备,所述条件成立指示信息用于指示所述预设条件成立;在所述第二通信指示信息用于指示当所述预设条件成立时,所述第二物联网设备发送操作指示信息的情况下,所述第二广播消息用于寻找接收所述操作指示信息的设备,所述操作指示信息用于指示执行所述目标操作;所述第二物联网设备接收第一物联网设备发送的第二目标反馈消息,所述第二目标反馈消息是针对所述第二广播消息的反馈;所述第二物联网设备根据所述第二目标反馈消息,与所述第一物联网设备建立无线通信连接。In an example, the second Internet of Things device sends a second broadcast message according to the second communication instruction information, where: the second communication instruction information is used to instruct the second Internet of Things device to send the In the case of the values of h parameters, the second broadcast message is used to find a device that receives the values of the h parameters; when the second communication instruction information is used to instruct the second Internet of Things device to send In the case of condition establishment indication information, the second broadcast message is used to find a device that receives the condition establishment indication information, the condition establishment indication information is used to indicate that the preset condition is established; and the second communication indication information is used In the case of instructing that when the preset condition is established, the second Internet of Things device sends operation instruction information, the second broadcast message is used to find a device that receives the operation instruction information, and the operation instruction information is used Instructs to perform the target operation; the second Internet of Things device receives a second target feedback message sent by the first Internet of Things device, the second target feedback message is a feedback for the second broadcast message; the first 2. The Internet of Things device establishes a wireless communication connection with the first Internet of Things device according to the second target feedback message.
相应地,所述第一物联网设备接收所述第二物联网设备发送的所述第二广播消息;所述第一物联网设备针对所述第二广播消息,向所述第二物联网设备发送所述第二目标反馈消息,所述第二目标反馈消息用于指示以下任一种:所述第一物联网设备需要所述h个参数的取值,所述第一物联网设备需要所述预设条件是否成立的判断结果,所述第一物联网设备执行所述目标操作或需要接收所述操作指示信息;所述第一物联网设备建立所述第一物联网设备与所述第二物联网设备之间无线通信连接。Correspondingly, the first Internet of Things device receives the second broadcast message sent by the second Internet of Things device; the first Internet of Things device sends the second Internet of Things device to the second Internet of Things device The second target feedback message is sent, and the second target feedback message is used to indicate any one of the following: the first Internet of Things device needs the values of the h parameters, and the first Internet of Things device needs all the values of the h parameters. According to the judgment result of whether the preset condition is established, the first Internet of Things device performs the target operation or needs to receive the operation instruction information; the first Internet of Things device establishes the first Internet of Things device and the first Internet of Things device 2. Wireless communication connection between IoT devices.
一种可能的实现方式是,第二物联网设备在确定需要提供h个参数的取值后,可以广播寻找接收该h个参数的取值的物联网设备;第一物联网设备需要接收该h个参数的取值,该第一物联网设备可以向该第二物联网设备发送反馈信息,进而所述第一物联网设备可以与所述第二物联网设备建立无线通信连接。A possible implementation is that after determining that the second Internet of Things device needs to provide the values of h parameters, it can broadcast to find the Internet of Things devices that receive the values of the h parameters; the first Internet of Things device needs to receive the h For the value of each parameter, the first Internet of Things device can send feedback information to the second Internet of Things device, and then the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device.
另一种可能的实现方式是,第二物联网设备在确定需要判断所述预设条件是否成立后,可以广播寻找接收所述预设条件是否成立的判断结果的物联网设备;第一物联网设备需要接收该判断结果,该第一物联网设备可以向该第二物联网设备发送反馈信息,进而所述第一物联网设备可以与所述第二物联网设备建立无线通信连接。Another possible implementation manner is that after determining that the second Internet of Things device needs to determine whether the preset condition is established, it can broadcast to search for the Internet of Things device that receives the judgment result of whether the preset condition is established; the first Internet of Things device The device needs to receive the judgment result, the first Internet of Things device can send feedback information to the second Internet of Things device, and then the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device.
又一种可能的实现方式是,第二物联网设备在确定需要在所述预设条件成立的情况下,指示其他物联网设备执行目标操作后,可以广播寻找可以执行所述目标操作的物联网设备,或者,需要接收所述目标操作的指示信息的物联网设备;第一物联网设备符合要求,该第一物联网设备可以向该第二物联网设备发送反馈信息,进而所述第一物联网设备可以与所述第二物联网设备建立无线通信连接。Another possible implementation manner is that after determining that the second Internet of Things device needs to instruct other Internet of Things devices to perform the target operation when the preset conditions are established, it may broadcast to search for the Internet of Things that can perform the target operation. Device, or the Internet of Things device that needs to receive the instruction information of the target operation; the first Internet of Things device meets the requirements, the first Internet of Things device can send feedback information to the second Internet of Things device, and then the first thing The networked device may establish a wireless communication connection with the second Internet of Things device.
以上为多个物联网设备之间建立无线通信的过程以及获取必要数据的过程。下面结合图11、图15、图16,介绍物联网设备在执行动作前的一系列通信过程。The above is the process of establishing wireless communication between multiple IoT devices and the process of obtaining necessary data. The following describes a series of communication processes of IoT devices before performing actions in conjunction with Figure 11, Figure 15, and Figure 16.
图11是本申请实施例提供的一种控制物联网设备的方法1100的示意性流程图。FIG. 11 is a schematic flowchart of a method 1100 for controlling an Internet of Things device according to an embodiment of the present application.
1101,第一物联网设备获取目标策略的第一指示信息,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行所述目标操作,所述预设条件是否成立由h个参数判断,所述第一指示信息用于指示在所述预设条件成立的情况下执行所述目标操作,所述第一物联网设备符合所述目标设备的信息,所述第一物联网设备用于执行所述目标操作。1101. The first Internet of Things device obtains first indication information of a target strategy, where the target strategy includes preset conditions, target operations, and information about the target device, and the target strategy is used to indicate that when the preset conditions are established Next, the target device performs the target operation, whether the preset condition is satisfied is determined by h parameters, and the first indication information is used to indicate that the target operation is performed when the preset condition is satisfied, The first Internet of Things device conforms to the information of the target device, and the first Internet of Things device is used to perform the target operation.
上文已经通过图9所示是实施例,详细阐述了目标策略的多个示例,以及控制设备获 取目标策略的具体实施方式,在此就不必再详细赘述。The embodiment shown in FIG. 9 has been used to describe in detail multiple examples of the target strategy and the specific implementation manner for the control device to obtain the target strategy, and it is not necessary to repeat them here.
在一个示例中,第一物联网设备可以直接获取完整的目标策略。例如,第一物联网设备从服务器下载如图10所示的智能应用。又如,在图9所示的示例中,控制设备在获取到目标策略后,将该目标策略发送给第一物联网设备。In an example, the first Internet of Things device can directly obtain the complete target strategy. For example, the first Internet of Things device downloads the smart application as shown in FIG. 10 from the server. For another example, in the example shown in FIG. 9, after acquiring the target policy, the control device sends the target policy to the first Internet of Things device.
在一个示例中,第一物联网设备可以获取目标策略中的部分信息。也就是说,第一物联网设备可以不获取与第一物联网设备无关的信息。例如,由于第一物联网设备可以是该目标操作的执行者,该第一物联网设备可以不获取目标策略中的目标设备的相关信息。In an example, the first Internet of Things device may obtain part of the information in the target policy. In other words, the first Internet of Things device may not obtain information that is irrelevant to the first Internet of Things device. For example, since the first Internet of Things device may be the executor of the target operation, the first Internet of Things device may not obtain the relevant information of the target device in the target policy.
可选的,所述第一物联网设备接收所述控制设备、第二物联网设备或服务器发送的所述第一指示信息。Optionally, the first Internet of Things device receives the first indication information sent by the control device, the second Internet of Things device, or the server.
相应地,所述控制设备向所述第一物联网设备发送所述第一指示信息,或者,所述第二物联网设备向所述第一物联网设备发送所述第一指示信息,或者,所述服务器向所述第一物联网设备发送所述第一指示信息。Correspondingly, the control device sends the first instruction information to the first Internet of Things device, or the second Internet of Things device sends the first instruction information to the first Internet of Things device, or, The server sends the first indication information to the first Internet of Things device.
上文已经阐述了从服务器或控制设备获取第一指示信息的情况。控制设备在获取到目标策略后,可以将与该目标策略相关的信息发送给第二物联网设备,进而由该第二物联网设备将该第一指示信息发送给第一物联网设备。The situation in which the first indication information is obtained from the server or the control device has been described above. After obtaining the target strategy, the control device may send information related to the target strategy to the second Internet of Things device, and then the second Internet of Things device sends the first indication information to the first Internet of Things device.
可选的,所述第一物联网设备存储与所述第一指示信息相关的数据。Optionally, the first Internet of Things device stores data related to the first indication information.
图12示出了一种包括多个物联网设备的通信***。与图5所示的通信***相比,图12所示的通信***可以不包括控制设备。例如,用户手机处于关机状态,或者用户随身携带手机出门,使得家中暂时不存在可用的控制设备。由于第一物联网设备存储有第一指示信息,因此,一旦该第一物联网设备确定目标策略中的预设条件成立,则第一物联网设备就可以执行目标操作。换句话说,用户在最开始获取目标策略或智能应用时,可能需要通过控制设备完成物联网设备的无线连接、初始配置等;一旦与该目标策略或与该智能应用相关的配置在第一物联网设备上完成后,即使通信***中没有控制设备,第一物联网设备仍然可以执行智能化操作。因此,在图12所示的通信***中不存在可用的控制设备的情况下,第一物联网设备与其他物联网设备(如上文或下文中的第二物联网设备)还可以协同执行目标策略所对应的操作。Fig. 12 shows a communication system including a plurality of Internet of Things devices. Compared with the communication system shown in FIG. 5, the communication system shown in FIG. 12 may not include a control device. For example, the user's mobile phone is turned off, or the user carries the mobile phone with him when going out, so that there is no available control device at home temporarily. Since the first Internet of Things device stores the first indication information, once the first Internet of Things device determines that the preset condition in the target strategy is established, the first Internet of Things device can perform the target operation. In other words, when the user first obtains the target strategy or smart application, he may need to control the device to complete the wireless connection and initial configuration of the IoT device; once the configuration related to the target strategy or the smart application is in the first thing After the networked device is completed, even if there is no control device in the communication system, the first Internet of Things device can still perform intelligent operations. Therefore, in the case that there is no available control device in the communication system shown in FIG. 12, the first Internet of Things device and other Internet of Things devices (such as the second Internet of Things device above or below) can also cooperate to execute the target strategy. The corresponding operation.
1102,第二物联网设备向所述第一物联网设备发送h个参数取值,所述h个参数取值为所述h个参数的具体取值,所述h个参数取值与所述h个参数一一对应。1102. The second Internet of Things device sends h parameter values to the first Internet of Things device, where the h parameter values are specific values of the h parameters, and the h parameter values are the same as those of the h parameters. The h parameters have a one-to-one correspondence.
相应地,所述第一物联网设备接收所述第二物联网设备发送的所述h个参数取值。Correspondingly, the first Internet of Things device receives the h parameter values sent by the second Internet of Things device.
可选的,在所述第一物联网设备接收所述第二物联网设备发送的所述h个参数取值之前,所述方法还包括:所述第一物联网设备向所述第二物联网设备发送第一通信信息,所述第一通信信息用于指示所述第一物联网设备需要被提供所述h个参数的取值。Optionally, before the first Internet of Things device receives the h parameter values sent by the second Internet of Things device, the method further includes: The networked device sends first communication information, where the first communication information is used to indicate that the first IoT device needs to be provided with the values of the h parameters.
也就是说,第一通信信息可以用于指示所述第二物联网设备将所述h个参数取值发送至所述第一物联网设备。第二物联网设备可以响应第一物联网设备发送的第一通信信息,将所述h个参数发送给所述第一物联网设备。That is, the first communication information may be used to instruct the second Internet of Things device to send the values of the h parameters to the first Internet of Things device. The second Internet of Things device may send the h parameters to the first Internet of Things device in response to the first communication information sent by the first Internet of Things device.
可选的,第一通信信息包括所述预设条件的指示信息,在所述第二物联网设备向所述第一物联网设备发送h个参数取值之前,所述方法还包括:所述第二物联网设备根据所述预设条件,确定所述h个参数取值。Optionally, the first communication information includes indication information of the preset condition, and before the second Internet of Things device sends h parameter values to the first Internet of Things device, the method further includes: The second Internet of Things device determines the values of the h parameters according to the preset condition.
也就是说,第二物联网设备可以根据该预设条件,确定需要向第一物联网设备提供的 h个参数。上文已经阐述了第二物联网设备根据预设条件,确定与该预设条件相关的显示参数和/或隐式参数的实施例。在此就不必再详细赘述。That is, the second Internet of Things device can determine the h parameters that need to be provided to the first Internet of Things device according to the preset condition. The embodiments in which the second Internet of Things device determines the display parameters and/or implicit parameters related to the preset conditions according to the preset conditions have been described above. There is no need to go into details here.
可选的,所述第二物联网设备向所述第一物联网设备发送h个参数取值,包括:在所述预设条件成立的情况下,所述第二物联网设备向所述第一物联网设备发送所述h个参数取值。Optionally, the second Internet of Things device sending h parameter values to the first Internet of Things device includes: when the preset condition is established, the second Internet of Things device sends the first Internet of Things device to the first Internet of Things device. An Internet of Things device sends the h parameter values.
也就是说,第二物联网设备可以仅在预设条件成立的情况下,将该h个参数取值发送给第一物联网设备。这样可以减少第二物联网设备与第一物联网设备之间的信令损耗。In other words, the second Internet of Things device may send the h parameter values to the first Internet of Things device only when the preset conditions are established. In this way, the signaling loss between the second Internet of Things device and the first Internet of Things device can be reduced.
可选的,所述第一通信信息还包括周期传送指示信息,所述周期传送指示信息用于指示所述第二物联网设备按照预设周期向所述第一物联网设备发送所述h个参数取值。Optionally, the first communication information further includes periodic transmission instruction information, and the periodic transmission instruction information is used to instruct the second Internet of Things device to send the h pieces of information to the first Internet of Things device according to a preset period. Parameter value.
也就是说,第二物联网设备可以周期性地向第一物联网设备提供所述h个参数取值。That is, the second Internet of Things device may periodically provide the h parameter values to the first Internet of Things device.
可选的,所述第一物联网设备与所述第二物联网设备通过开放物联网通信协议通信。Optionally, the first Internet of Things device and the second Internet of Things device communicate through an open Internet of Things communication protocol.
可选的,所述第一物联网设备接收所述第二物联网设备发送的h个参数取值,包括:所述第一物联网设备根据开放物联网通信协议,接收所述第二物联网设备发送的所述h个参数取值。Optionally, the first Internet of Things device receiving h parameter values sent by the second Internet of Things device includes: the first Internet of Things device receives the second Internet of Things according to an open Internet of Things communication protocol The value of the h parameters sent by the device.
可选的,所述第二物联网设备向所述第一物联网设备发送所述h个参数取值,包括:所述第二物联网设备根据开放物联网通信协议,向所述第一物联网设备发送所述h个参数取值。Optionally, the second Internet of Things device sending the h parameter values to the first Internet of Things device includes: the second Internet of Things device sends the value of the h parameters to the first Internet of Things device according to an open Internet of Things communication protocol. The networked device sends the h parameter values.
开放物联网通信协议至少可以开放给多个物联网设备的开发人员使用。甚至,开放物联网通信协议可以至少部分开放给公众,即至少部分开放物联网通信协议是处于非保密状态。开放物联网通信协议可以用于多个电子设备之间的通信,该多个电子设备可以由相同或不同的供应商提供。该开放物联网通信协议例如可以是HiLink通信协议。The open IoT communication protocol can at least be open to developers of multiple IoT devices. Furthermore, the open IoT communication protocol can be at least partially open to the public, that is, at least part of the open IoT communication protocol is in a non-secret state. The open IoT communication protocol can be used for communication between multiple electronic devices, and the multiple electronic devices can be provided by the same or different vendors. The open IoT communication protocol may be, for example, the HiLink communication protocol.
在一个示例中,开放物联网通信协议的开放程度可以类似于安卓4.0、长期演进(long term evolution,LTE)通信协议等全球协议的开放程度。安卓4.0协议可以理解为一种开放的应用程序开发协议。多个第三方应用程序开发者可以在安卓4.0协议的基础上完成应用程序的开发。LTE通信协议也属于一种开放的通信协议,多个通信服务提供商可以遵循LTE通信协议,为用户提供通信服务。In one example, the openness of the open IoT communication protocol may be similar to the openness of global protocols such as Android 4.0 and long term evolution (LTE) communication protocol. The Android 4.0 protocol can be understood as an open application development protocol. Multiple third-party application developers can complete application development on the basis of the Android 4.0 protocol. The LTE communication protocol is also an open communication protocol. Multiple communication service providers can follow the LTE communication protocol to provide users with communication services.
所述开放物联网通信协议可以包括以下任一种:参数集合、条件集合、操作集合、设备集合等。The open IoT communication protocol may include any of the following: parameter set, condition set, operation set, device set, and so on.
为了能够尽可能提高物联网设备之间通信的丰富程度,减少多个物联网设备之间的通信壁垒,开放物联网通信协议可以事先定义尽可能多的内容。In order to maximize the richness of communication between IoT devices and reduce the communication barriers between multiple IoT devices, the open IoT communication protocol can define as much content as possible in advance.
在一个示例中,参数集合可以包括尽可能多的参数。每个参数可以具有特定的取值。在本申请中,取值例如可以是数值、文本、函数标识、二进制值、代码等。该参数集合例如可以包括以下至少一种:温度参数、湿度参数、时间参数、音频参数、图像参数、视频参数、亮度参数、事件参数等。上文已经通过图9所示的示例,阐述了各个参数的具体实施方式,在此就不必再详细赘述。In one example, the parameter set may include as many parameters as possible. Each parameter can have a specific value. In this application, the value can be, for example, a numeric value, text, function identifier, binary value, code, etc. The parameter set may include, for example, at least one of the following: temperature parameters, humidity parameters, time parameters, audio parameters, image parameters, video parameters, brightness parameters, event parameters, and so on. The specific implementation manner of each parameter has been described above through the example shown in FIG. 9, and it is not necessary to repeat it in detail here.
在一个示例中,条件集合可以包括尽可能多的条件。每个条件可以包括显示参数和/或隐式参数。上文已经通过图9所示的示例,阐述了多种条件的具体实施方式,在此就不必再详细赘述。In one example, the condition set can include as many conditions as possible. Each condition can include display parameters and/or implicit parameters. The example shown in FIG. 9 has been used to illustrate the specific implementation manners of various conditions, and it is not necessary to repeat them here.
可选的,物联网通信协议还可以定义条件与参数之间的关联关系。例如,条件集合中 的目标条件与参数集合中的一个或多个目标参数对应。Optionally, the Internet of Things communication protocol may also define an association relationship between conditions and parameters. For example, the target condition in the condition set corresponds to one or more target parameters in the parameter set.
在一个示例中,操作集合可以包括尽可能多的操作指示信息。每个操作指示信息可以用于指示一个或多个操作。上文已经通过图9所示的示例,阐述了多种操作的具体实施方式,在此就不必再详细赘述。In an example, the operation set may include as much operation instruction information as possible. Each operation instruction information can be used to indicate one or more operations. The specific implementation manners of various operations have been described above through the example shown in FIG. 9, and it is not necessary to repeat them in detail here.
可选的,物联网通信协议还可以定义条件与操作指示信息之间的关联关系。例如,操作集合中的目标操作指示信息与条件集合中的一个或多个目标条件对应。Optionally, the Internet of Things communication protocol may also define an association relationship between the conditions and the operation instruction information. For example, the target operation indication information in the operation set corresponds to one or more target conditions in the condition set.
在一个示例中,设备集合可以包括尽可能多的设备信息。每个设备信息可以用于指示一个设备,或者用于指示具有相同或相似特征的一类设备。划分设备类型的标准例如可以包括设备的型号、设备的功能、设备的标识等。In one example, the device collection may include as much device information as possible. Each device information can be used to indicate a device or a type of device with the same or similar characteristics. The criteria for classifying device types may include, for example, the model of the device, the function of the device, the identification of the device, and so on.
可选的,物联网通信协议还可以定义操作指示信息与设备信息之间的关联关系。例如,操作集合中的目标操作指示信息与操作集合中的一个或多个目标设备信息对应。Optionally, the Internet of Things communication protocol may also define the association relationship between the operation instruction information and the device information. For example, the target operation indication information in the operation set corresponds to one or more target device information in the operation set.
第一物联网设备与第二物联网设备通过开放物联网通信协议进行数据通信,可以指第一物联网设备根据(或通过)该开放物联网通信协议接收第二物联网设备发送的消息;相应地,第二物联网设备根据(或通过)该开放物联网通信协议广播消息,和/或,第二物联网设备根据(或通过)该开放物联网通信协议向第一物联网设备发送消息。第一物联网设备与第二物联网设备通过开放物联网通信协议进行数据通信,还可以指第一物联网设备根据(或通过)该开放物联网通信协议广播消息,和/或,第一物联网设备根据(或通过)该开放物联网通信协议向第二物联网设备发送消息;相应地,第二物联网设备根据(或通过)该开放物联网通信协议接收第一物联网设备发送的消息。The first Internet of Things device and the second Internet of Things device perform data communication through an open Internet of Things communication protocol, which may mean that the first Internet of Things device receives a message sent by the second Internet of Things device according to (or through) the open Internet of Things communication protocol; correspondingly; Ground, the second Internet of Things device broadcasts a message according to (or through) the open Internet of Things communication protocol, and/or, the second Internet of Things device sends a message to the first Internet of Things device according to (or through) the open Internet of Things communication protocol. The first Internet of Things device and the second Internet of Things device carry out data communication through the Open Internet of Things communication protocol. It can also mean that the first Internet of Things device broadcasts messages according to (or through) the Open Internet of Things communication protocol, and/or the first thing The Internet of Things device sends a message to the second Internet of Things device according to (or through) the open Internet of Things communication protocol; accordingly, the second Internet of Things device receives the message sent by the first Internet of Things device according to (or through) the open Internet of Things communication protocol .
可选的,所述第一物联网设备与所述第二物联网设备可以由相同品牌的供应商提供,所述第一物联网设备或所述第二物联网设备与所述开放物联网通信协议可以分别由不同品牌的供应商提供。Optionally, the first Internet of Things device and the second Internet of Things device may be provided by a supplier of the same brand, and the first Internet of Things device or the second Internet of Things device communicates with the open Internet of Things Agreements can be provided by suppliers of different brands.
可选的,所述第一物联网设备与所述第二物联网设备可以由不同品牌的供应商提供。Optionally, the first Internet of Things device and the second Internet of Things device may be provided by suppliers of different brands.
1103,所述第一物联网设备根据所述h个参数取值,判断所述预设条件是否成立。1103. The first Internet of Things device determines whether the preset condition is established according to the values of the h parameters.
1104,在所述预设条件成立的情况下,所述第一物联网设备执行所述目标操作。1104. When the preset condition is established, the first Internet of Things device executes the target operation.
也就是说,第二物联网设备可以为第一物联网设备提供所述预设条件的判断依据;预设条件成立可以触发第一物联网设备执行该目标操作。In other words, the second Internet of Things device can provide the first Internet of Things device with a basis for determining the preset condition; the establishment of the preset condition can trigger the first Internet of Things device to perform the target operation.
可选的,所述预设条件是否成立由所述h个参数以及s个参数判断,所述s个参数与所述h个参数不同,所述方法还包括:第一物联网设备接收第三物联网设备发送的s参数取值,所述s参数取值为所述s个参数的具体取值,所述s参数取值与所述s个参数一一对应;所述第一物联网设备根据所述h个参数取值,判断所述预设条件是否成立,包括:所述第一物联网设备根据所述h个参数取值以及所述s个参数取值,判断所述预设条件是否成立。Optionally, whether the preset condition is satisfied is determined by the h parameters and the s parameters, and the s parameters are different from the h parameters, and the method further includes: the first Internet of Things device receives the third The value of the s parameter sent by the Internet of Things device, the value of the s parameter is the specific value of the s parameters, and the value of the s parameter corresponds to the s parameters one-to-one; the first Internet of Things The device judging whether the preset condition is established according to the values of the h parameters includes: the first Internet of Things device judging the preset according to the values of the h parameters and the values of the s parameters Whether the conditions are met.
也就是说,第一物联网设备可以从多个物联网设备获取该预设条件的判断依据。如图13所示,第一物联网设备可以接收第二物联网设备发送的h个参数取值,并接收第三物联网设备发送的s个参数取值。由于目标策略的存在,第一物联网设备可以与第二物联网设备建立无线通信连接,并且,第一物联网设备可以与第三物联网设备建立无线通信连接。可以看出,通过策略建立多个物联网设备之间的无线通信连接,可以具有相对高的便捷性。In other words, the first Internet of Things device may obtain the judgment basis of the preset condition from multiple Internet of Things devices. As shown in FIG. 13, the first Internet of Things device can receive h parameter values sent by the second Internet of Things device, and receive s parameter values sent by the third Internet of Things device. Due to the existence of the target strategy, the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device, and the first Internet of Things device can establish a wireless communication connection with the third Internet of Things device. It can be seen that establishing a wireless communication connection between multiple IoT devices through a strategy can have relatively high convenience.
可选的,所述方法还包括:所述第一物联网设备将所述目标操作的执行结果发送给第 四物联网设备。Optionally, the method further includes: the first Internet of Things device sending the execution result of the target operation to the fourth Internet of Things device.
相应地,所述第四物联网设备接收所述目标操作的执行结果,并执行与所述目标操作对应的其他操作。Correspondingly, the fourth Internet of Things device receives the execution result of the target operation, and executes other operations corresponding to the target operation.
该目标操作被执行完毕,可以触发第四物联网设备执行针对目标操作的其他操作。如图14所示,第二物联网设备可以向第一物联网设备发送h个参数取值,第一物联网设备可以向第四物联网设备发送目标操作的执行结果。因此,第一物联网设备可以与第二物联网设备建立无线通信连接,并且,第一物联网设备可以与第四物联网设备建立无线通信连接。When the target operation is completed, the fourth Internet of Things device can be triggered to perform other operations for the target operation. As shown in FIG. 14, the second Internet of Things device may send h parameter values to the first Internet of Things device, and the first Internet of Things device may send the execution result of the target operation to the fourth Internet of Things device. Therefore, the first Internet of Things device can establish a wireless communication connection with the second Internet of Things device, and the first Internet of Things device can establish a wireless communication connection with the fourth Internet of Things device.
根据图11、图13、图14所示的物联网设备之间的通信网络,可以推演出更加复杂的物联网设备间的通信网络。也就是说,可以通过多个策略,快速建立多个物联网设备之间建立相对复杂的通信网络,有利于提供更多复杂的智能服务。在受益于下述实施例中呈现的指导启示下,本领域技术人员将会想到本申请的许多改进和其他实施例。因此,应理解,本申请不限于所公开的特定实施例。According to the communication network between the IoT devices shown in FIG. 11, FIG. 13, and FIG. 14, a more complex communication network between the IoT devices can be deduced. In other words, multiple strategies can be used to quickly establish a relatively complex communication network between multiple Internet of Things devices, which is conducive to providing more complex intelligent services. Benefiting from the guidance presented in the following embodiments, those skilled in the art will think of many improvements and other embodiments of the present application. Therefore, it should be understood that the present application is not limited to the specific embodiments disclosed.
图15是本申请实施例提供的一种控制物联网设备的方法1500的示意性流程图。FIG. 15 is a schematic flowchart of a method 1500 for controlling an Internet of Things device according to an embodiment of the present application.
1501,第二物联网设备获取目标策略的第二指示信息,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行所述目标操作,所述第二指示信息用于指示所述第二物联网设备判断所述预设条件是否成立。1501. A second Internet of Things device obtains second indication information of a target strategy, where the target strategy includes preset conditions, target operations, and information about the target device, and the target strategy is used to indicate that when the preset conditions are established Next, the target device executes the target operation, and the second instruction information is used to instruct the second Internet of Things device to determine whether the preset condition is established.
可选的,所述第二物联网设备可以接收控制设备、第一物联网设备或服务器发送的所述第二指示信息。Optionally, the second Internet of Things device may receive the second indication information sent by the control device, the first Internet of Things device or the server.
可选的,所述第二物联网设备存储与所述第二指示信息相关的数据。Optionally, the second Internet of Things device stores data related to the second indication information.
在一个示例中,第二物联网设备可以直接获取完整的目标策略。例如,第二物联网设备从服务器下载如图10所示的智能应用。又如,在图9所示的示例中,控制设备在获取到目标策略后,将该目标策略发送给第二物联网设备。In one example, the second IoT device can directly obtain the complete target strategy. For example, the second Internet of Things device downloads the smart application as shown in FIG. 10 from the server. For another example, in the example shown in FIG. 9, after obtaining the target policy, the control device sends the target policy to the second Internet of Things device.
在一个示例中,第二物联网设备可以获取目标策略中的部分信息。也就是说,第二物联网设备可以不获取与预设条件无关的信息。例如,由于第二物联网设备不是该目标操作的执行者,该第二物联网设备可以不获取目标策略中与目标操作有关的信息。In an example, the second Internet of Things device may obtain part of the information in the target policy. In other words, the second Internet of Things device may not obtain information that is not related to the preset conditions. For example, because the second Internet of Things device is not the executor of the target operation, the second Internet of Things device may not obtain information related to the target operation in the target policy.
1501的具体实现方式可以参考图11所示实施例中的1101,在此就不必赘述。For the specific implementation of 1501, reference may be made to 1101 in the embodiment shown in FIG. 11, which is not repeated here.
1502,所述第一物联网设备获取目标策略的第一指示信息,所述第一指示信息用于指示在所述预设条件成立的情况下执行所述目标操作,所述第一物联网设备符合所述目标设备的信息,所述第一物联网设备用于执行所述目标操作。1502. The first Internet of Things device acquires first indication information of a target strategy, where the first indication information is used to indicate that the target operation is performed when the preset condition is established, and the first Internet of Things device According to the information of the target device, the first Internet of Things device is used to perform the target operation.
1502的具体实现方式可以参考图11所示实施例中的1101,在此就不必赘述。For the specific implementation of 1502, reference may be made to 1101 in the embodiment shown in FIG. 11, and it is not necessary to repeat it here.
1503,在所述预设条件成立的情况下,所述第二物联网设备向所述第一物联网设备发送条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立。1503. In a case where the preset condition is established, the second Internet of Things device sends condition establishment indication information to the first Internet of Things device, where the condition establishment indication information is used to indicate that the preset condition is established.
相应地,所述第一物联网设备接收所述第二物联网设备发送的所述条件成立指示信息。Correspondingly, the first Internet of Things device receives the condition establishment indication information sent by the second Internet of Things device.
也就是说,第二物联网设备执行预设条件的判断过程,并将该判断结果发送给第一物联网设备。That is, the second Internet of Things device executes the judgment process of the preset conditions, and sends the judgment result to the first Internet of Things device.
可选的,在所述第一物联网设备接收所述第二物联网设备发送的所述条件成立指示信 息之前,所述方法还包括:所述第一物联网设备向所述第二物联网设备发送第二通信信息,所述第二通信信息用于指示所述第一物联网设备需要被提供所述预设条件的判断结果。Optionally, before the first Internet of Things device receives the condition establishment indication information sent by the second Internet of Things device, the method further includes: The device sends second communication information, where the second communication information is used to indicate that the first Internet of Things device needs to be provided with the judgment result of the preset condition.
相应地,所述第二物联网设备接收所述第一物联网设备发送的所述第二通信信息;所述第二物联网设备根据所述第二通信信息,确定向所述第一物联网设备发送所述预设条件是否成立的判断结果。Correspondingly, the second Internet of Things device receives the second communication information sent by the first Internet of Things device; the second Internet of Things device determines to send to the first Internet of Things device according to the second communication information. The device sends the judgment result of whether the preset condition is satisfied.
也就是说,第二通信信息可以用于指示所述第二物联网设备判断预设条件是否成立,并将该预设条件的判断结果发送至所述第一物联网设备。第二物联网设备可以响应第一物联网设备发送的第二通信信息,将所述条件成立指示信息发送给所述第一物联网设备。That is, the second communication information may be used to instruct the second Internet of Things device to determine whether a preset condition is established, and to send the judgment result of the preset condition to the first Internet of Things device. The second Internet of Things device may respond to the second communication information sent by the first Internet of Things device and send the condition establishment indication information to the first Internet of Things device.
可选的,所述第二指示信息还包括所述目标设备的信息,在所述第二物联网设备向所述第一物联网设备发送条件成立指示信息之前,所述方法还包括:所述第二物联网设备根据所述目标设备的信息,确定向所述第一物联网设备发送所述预设条件是否成立的判断结果。Optionally, the second instruction information further includes information of the target device, and before the second Internet of Things device sends condition establishment instruction information to the first Internet of Things device, the method further includes: The second Internet of Things device determines to send the judgment result of whether the preset condition is established to the first Internet of Things device according to the information of the target device.
也就是说,在第二物联网设备获取到第二指示信息之后,该第二物联网设备可以自主寻找接收该条件成立指示信息的物联网设备。That is, after the second Internet of Things device obtains the second indication information, the second Internet of Things device can autonomously search for an Internet of Things device that receives the condition establishment indication information.
可选的,所述第一物联网设备与所述第二物联网设备通过开放物联网通信协议通信。Optionally, the first Internet of Things device and the second Internet of Things device communicate through an open Internet of Things communication protocol.
可选的,所述第一物联网设备接收所述第二物联网设备发送的条件成立指示信息,包括:所述第一物联网设备根据开放物联网通信协议,接收所述第二物联网设备发送的所述条件成立指示信息。Optionally, the first Internet of Things device receiving condition establishment indication information sent by the second Internet of Things device includes: the first Internet of Things device receives the second Internet of Things device according to an open Internet of Things communication protocol The sent condition establishment indication information.
可选的,所述第二物联网设备向所述第一物联网设备发送条件成立指示信息,包括:所述第二物联网设备根据开放物联网通信协议,向所述第一物联网设备发送所述条件成立指示信息。Optionally, the second Internet of Things device sending condition establishment indication information to the first Internet of Things device includes: the second Internet of Things device sends to the first Internet of Things device according to an open Internet of Things communication protocol The condition is met indicating information.
1503的具体实现方式可以参考图11所示实施例中的1102,在此就不必赘述。For the specific implementation of 1503, reference may be made to 1102 in the embodiment shown in FIG. 11, which will not be repeated here.
1504,所述第一物联网设备根据所述条件成立指示信息以及所述第一指示信息,执行所述目标操作。1504. The first Internet of Things device executes the target operation according to the condition establishment indication information and the first indication information.
1504的具体实现方式可以参考图11所示实施例中的1103至1104,在此就不必赘述。For the specific implementation of 1504, reference may be made to 1103 to 1104 in the embodiment shown in FIG. 11, and details are not required here.
图16是本申请实施例提供的一种控制物联网设备的方法的示意性流程图。FIG. 16 is a schematic flowchart of a method for controlling an Internet of Things device provided by an embodiment of the present application.
1601,第二物联网设备获取目标策略的第三指示信息,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行所述目标操作,所述第三指示信息用于指示在所述预设条件成立的情况下指示其他物联网设备执行所述目标操作。1601. The second Internet of Things device acquires third indication information of a target strategy, where the target strategy includes preset conditions, target operations, and information about the target device, and the target strategy is used to indicate when the preset conditions are established Next, the target device performs the target operation, and the third indication information is used to indicate that other IoT devices perform the target operation when the preset condition is established.
可选的,所述第二物联网设备可以接收控制设备、第一物联网设备或服务器发送的所述第三指示信息。Optionally, the second Internet of Things device may receive the third indication information sent by the control device, the first Internet of Things device or the server.
可选的,所述第二物联网设备存储与所述第三指示信息相关的数据。Optionally, the second Internet of Things device stores data related to the third indication information.
在一个示例中,第二物联网设备可以直接获取完整的目标策略。例如,第二物联网设备从服务器下载如图10所示的智能应用。又如,在图9所示的示例中,控制设备在获取到目标策略后,将该目标策略发送给第二物联网设备。In one example, the second IoT device can directly obtain the complete target strategy. For example, the second Internet of Things device downloads the smart application as shown in FIG. 10 from the server. For another example, in the example shown in FIG. 9, after obtaining the target policy, the control device sends the target policy to the second Internet of Things device.
在一个示例中,第二物联网设备可以获取目标策略中的部分信息。例如,第二物联网设备可以不获取与预设条件以及目标操作无关的信息。In an example, the second Internet of Things device may obtain part of the information in the target policy. For example, the second Internet of Things device may not obtain information irrelevant to the preset conditions and target operations.
1601的具体实现方式可以参考图15所示实施例中的1501,在此就不必赘述。For a specific implementation manner of 1601, reference may be made to 1501 in the embodiment shown in FIG. 15, and details are not required here.
1602,在所述预设条件成立的情况下,所述第二物联网设备向所述第一物联网设备发送操作指示信息,所述操作指示信息用于指示所述第一物联网设备执行所述目标操作。1602. When the preset condition is established, the second Internet of Things device sends operation instruction information to the first Internet of Things device, where the operation instruction information is used to instruct the first Internet of Things device to perform all operations. The target operation.
相应地,所述第一物联网设备接收所述第二物联网设备发送的所述操作指示信息。Correspondingly, the first Internet of Things device receives the operation instruction information sent by the second Internet of Things device.
也就是说,第二物联网设备执行预设条件的判断过程,并在预设条件成立的情况下,指示第一物联网设备执行目标操作。That is, the second Internet of Things device executes the judgment process of the preset condition, and in the case that the preset condition is established, instructs the first Internet of Things device to perform the target operation.
可选的,所述第三指示信息还包括所述目标设备的信息,在所述第二物联网设备向所述第一物联网设备发送操作指示信息之前,所述方法还包括:所述第二物联网设备根据所述目标设备的信息,确定向所述第一物联网设备提供数据。Optionally, the third instruction information further includes information of the target device, and before the second Internet of Things device sends operation instruction information to the first Internet of Things device, the method further includes: 2. The Internet of Things device determines to provide data to the first Internet of Things device according to the information of the target device.
也就是说,在第二物联网设备获取到第三指示信息之后,该第二物联网设备可以自主寻找接收该操作指示信息的物联网设备。That is, after the second Internet of Things device obtains the third indication information, the second Internet of Things device can autonomously search for the Internet of Things device that receives the operation instruction information.
可选的,所述第一物联网设备与所述第二物联网设备通过开放物联网通信协议通信。Optionally, the first Internet of Things device and the second Internet of Things device communicate through an open Internet of Things communication protocol.
可选的,所述第一物联网设备接收所述第二物联网设备发送的操作指示信息,包括:所述第一物联网设备根据开放物联网通信协议,接收所述第二物联网设备发送的所述操作指示信息。Optionally, the first Internet of Things device receiving operation instruction information sent by the second Internet of Things device includes: the first Internet of Things device receives the second Internet of Things device according to the open Internet of Things communication protocol. The operation instruction information.
可选的,所述第二物联网设备向所述第一物联网设备发送操作指示信息,包括:所述第二物联网设备根据开放物联网通信协议,向所述第一物联网设备发送所述操作指示信息。Optionally, the second Internet of Things device sending operation instruction information to the first Internet of Things device includes: the second Internet of Things device sends all information to the first Internet of Things device according to an open Internet of Things communication protocol. The operation instructions.
1602的具体实现方式可以参考图15所示实施例中的1603,在此就不必赘述。For the specific implementation of 1602, reference may be made to 1603 in the embodiment shown in FIG. 15, and it is not necessary to repeat it here.
1603,所述第一物联网设备根据所述操作指示信息,执行所述目标操作。1603. The first Internet of Things device executes the target operation according to the operation instruction information.
1603的具体实现方式可以参考图11所示实施例中的1103至1104,或者图15所示实施例汇总的1504,此就不必赘述。For the specific implementation of 1603, reference may be made to 1103 to 1104 in the embodiment shown in FIG. 11, or 1504 summarized in the embodiment shown in FIG. 15, which need not be repeated here.
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to implement the above-mentioned functions, an electronic device includes hardware and/or software modules corresponding to each function. In combination with the algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Those skilled in the art can use different methods for each specific application in combination with the embodiments to implement the described functions, but such implementation should not be considered as going beyond the scope of the present application.
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the electronic device can be divided into functional modules according to the foregoing method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,图17示出了上述实施例中涉及的电子设备1700的一种可能的组成示意图,如图17所示,该电子设备1700可以包括:获取模块1701、处理模块1702、发送模块1703。电子设备1700例如可以是上文所述的控制设备。In the case of dividing each functional module corresponding to each function, FIG. 17 shows a schematic diagram of a possible composition of the electronic device 1700 involved in the foregoing embodiment. As shown in FIG. 17, the electronic device 1700 may include: an acquisition module 1701, a processing module 1702, and a sending module 1703. The electronic device 1700 may be, for example, the control device described above.
其中,获取模块1701可以用于获取多个设备注册信息,所述多个设备注册信息与多个物联网设备对应,所述设备注册信息用于指示对应的物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数。Wherein, the acquiring module 1701 may be used to acquire multiple device registration information, the multiple device registration information corresponding to multiple IoT devices, and the device registration information is used to indicate M input parameters and/or corresponding IoT devices. Or N output parameters, M is a positive integer, and N is a positive integer.
处理模块1702可以用于分别与所述多个物联网设备建立无线通信连接。The processing module 1702 may be used to respectively establish wireless communication connections with the multiple Internet of Things devices.
所述获取模块1701还可以用于,获取目标策略,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行所述目标操作,所述预设条件是否成立由h个参数判断。The acquiring module 1701 may also be used to acquire a target strategy, the target strategy including preset conditions, target operations, and target device information, and the target strategy is used to indicate that, when the preset conditions are established, The target device executes the target operation, and whether the preset condition is satisfied is determined by h parameters.
所述处理模块1702还可以用于,根据所述目标策略,在所述多个物联网设备中确定第一物联网设备和/或第二物联网设备,所述第一物联网设备符合所述目标设备的信息,所述第一物联网设备用于执行所述目标操作,所述第二物联网设备用于提供所述h个参数的取值。The processing module 1702 may also be used to determine a first Internet of Things device and/or a second Internet of Things device among the plurality of Internet of Things devices according to the target strategy, and the first Internet of Things device conforms to the Information about the target device, the first Internet of Things device is used to perform the target operation, and the second Internet of Things device is used to provide values of the h parameters.
发送模块1703可以用于向所述第一物联网设备发送第一通信指示信息,所述第一通信指示信息用于指示所述第一物联网设备与除所述第一物联网设备以外的其他物联网设备通信;和/或,发送模块1703可以用于向所述第二物联网设备发送第二通信指示信息,所述第二通信指示信息用于指示所述第二物联网设备与除所述第二物联网设备以外的其他物联网设备通信。The sending module 1703 may be configured to send first communication instruction information to the first Internet of Things device, where the first communication instruction information is used to instruct the first Internet of Things device to communicate with other devices other than the first Internet of Things device. Internet of Things device communication; and/or, the sending module 1703 may be used to send second communication instruction information to the second Internet of Things device, where the second communication instruction information is used to instruct the second Internet of Things device to communicate with other devices. Communication with other IoT devices other than the second IoT device.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the foregoing method embodiments can be cited in the functional description of the corresponding functional module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述通信方法900,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the aforementioned communication method 900, and therefore can achieve the same effect as the aforementioned implementation method.
在采用对应各个功能划分各个功能模块的情况下,图18示出了上述实施例中涉及的电子设备1800的一种可能的组成示意图,如图18所示,该电子设备1800可以包括:发送模块1801。电子设备1800例如可以是上文所述的物联网设备。In the case of dividing each functional module corresponding to each function, FIG. 18 shows a schematic diagram of a possible composition of the electronic device 1800 involved in the foregoing embodiment. As shown in FIG. 18, the electronic device 1800 may include: a sending module 1801. The electronic device 1800 may be, for example, the Internet of Things device described above.
其中,发送模块1801可以用于向控制设备发送设备注册信息,所述设备注册信息用于指示所述物联网设备的M个输入参数、N个输出参数,M为正整数,N为正整数。The sending module 1801 may be used to send device registration information to the control device, where the device registration information is used to indicate M input parameters and N output parameters of the Internet of Things device, where M is a positive integer, and N is a positive integer.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the foregoing method embodiments can be cited in the functional description of the corresponding functional module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述通信方法900,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the aforementioned communication method 900, and therefore can achieve the same effect as the aforementioned implementation method.
在采用对应各个功能划分各个功能模块的情况下,图19示出了上述实施例中涉及的电子设备1900的一种可能的组成示意图,如图19所示,该电子设备1900可以包括:获取模块1901、处理模块1902。电子设备1900例如可以是上文所述的第一物联网设备。In the case of dividing each functional module corresponding to each function, FIG. 19 shows a schematic diagram of a possible composition of the electronic device 1900 involved in the foregoing embodiment. As shown in FIG. 19, the electronic device 1900 may include: an acquisition module 1901. Processing module 1902. The electronic device 1900 may be, for example, the first Internet of Things device described above.
其中,获取模块1901可以用于获取目标策略的第一指示信息,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行所述目标操作,所述预设条件是否成立由h个参数判断,所述第一指示信息用于指示在所述预设条件成立的情况下执行所述目标操作,所述电子设备1900符合所述目标设备的信息,所述电子设备1900用于执行所述目标操作。Wherein, the obtaining module 1901 may be used to obtain first indication information of a target strategy. The target strategy includes preset conditions, target operations, and target device information. The target strategy is used to indicate that when the preset conditions are established In a case, the target device performs the target operation, whether the preset condition is satisfied is determined by h parameters, and the first indication information is used to indicate that the target operation is performed when the preset condition is satisfied The electronic device 1900 conforms to the information of the target device, and the electronic device 1900 is used to perform the target operation.
所述获取模块1901还可以用于,接收第二物联网设备发送的h个参数取值,所述h个参数取值为所述h个参数的具体取值,所述h个参数取值与所述h个参数一一对应。The acquiring module 1901 may also be configured to receive h parameter values sent by the second Internet of Things device, where the h parameter values are specific values of the h parameters, and the h parameter values are the same as The h parameters have a one-to-one correspondence.
处理模块1902可以用于根据所述h个参数取值,判断所述预设条件是否成立。The processing module 1902 may be configured to determine whether the preset condition is established according to the values of the h parameters.
所述处理模块1902还可以用于,在所述预设条件成立的情况下,执行所述目标操作。The processing module 1902 may also be configured to execute the target operation when the preset condition is established.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the foregoing method embodiments can be cited in the functional description of the corresponding functional module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述控制物联网设备的方法1100,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the method 1100 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
在采用对应各个功能划分各个功能模块的情况下,图20示出了上述实施例中涉及的电子设备2000的一种可能的组成示意图,如图20所示,该电子设备2000可以包括:获取模块2001、处理模块2002。电子设备2000例如可以是上文所述的第一物联网设备。In the case of dividing each functional module corresponding to each function, FIG. 20 shows a schematic diagram of a possible composition of the electronic device 2000 involved in the foregoing embodiment. As shown in FIG. 20, the electronic device 2000 may include: an acquisition module 2001, processing module 2002. The electronic device 2000 may be, for example, the first Internet of Things device described above.
其中,获取模块2001可以用于获取目标策略的第一指示信息,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行所述目标操作,所述预设条件是否成立由h个参数判断,所述第一指示信息用于指示在所述预设条件成立的情况下执行所述目标操作,所述电子设备2000符合所述目标设备的信息,所述电子设备2000用于执行所述目标操作。Wherein, the obtaining module 2001 may be used to obtain first indication information of a target strategy, the target strategy including preset conditions, target operations, and target device information, and the target strategy is used to indicate that when the preset conditions are established In a case, the target device performs the target operation, whether the preset condition is satisfied is determined by h parameters, and the first indication information is used to indicate that the target operation is performed when the preset condition is satisfied The electronic device 2000 conforms to the information of the target device, and the electronic device 2000 is used to perform the target operation.
处理模块2002可以用于根据所述条件成立指示信息以及所述第一指示信息,执行所述目标操作。The processing module 2002 may be configured to execute the target operation according to the condition establishment indication information and the first indication information.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the foregoing method embodiments can be cited in the functional description of the corresponding functional module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述控制物联网设备的方法1500,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the method 1500 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
在采用对应各个功能划分各个功能模块的情况下,图21示出了上述实施例中涉及的电子设备2100的一种可能的组成示意图,如图21所示,该电子设备2100可以包括:获取模块2101、发送模块2102。电子设备2100例如可以是上文所述的第二物联网设备。In the case of dividing each functional module corresponding to each function, FIG. 21 shows a schematic diagram of a possible composition of the electronic device 2100 involved in the foregoing embodiment. As shown in FIG. 21, the electronic device 2100 may include: an acquisition module 2101. Sending module 2102. The electronic device 2100 may be, for example, the second Internet of Things device described above.
其中,获取模块2101可以用于获取目标策略的第二指示信息,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行所述目标操作,所述第二指示信息用于指示所述电子设备2100判断所述预设条件是否成立。Wherein, the obtaining module 2101 may be used to obtain second indication information of a target strategy, the target strategy including preset conditions, target operations, and target device information, and the target strategy is used to indicate that the preset conditions are met. In a case, the target device executes the target operation, and the second instruction information is used to instruct the electronic device 2100 to determine whether the preset condition is established.
发送模块2102可以用于在所述预设条件成立的情况下,向第一物联网设备发送条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立。The sending module 2102 may be configured to send condition establishment indication information to the first Internet of Things device when the preset condition is established, where the condition establishment indication information is used to indicate that the preset condition is established.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the foregoing method embodiments can be cited in the functional description of the corresponding functional module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述控制物联网设备的方法1500,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the method 1500 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
在采用对应各个功能划分各个功能模块的情况下,图22示出了上述实施例中涉及的电子设备2200的一种可能的组成示意图,如图22所示,该电子设备2200可以包括:接收模块2201、处理模块2202。电子设备2200例如可以是上文所述的第一物联网设备。In the case of dividing each functional module corresponding to each function, FIG. 22 shows a schematic diagram of a possible composition of the electronic device 2200 involved in the foregoing embodiment. As shown in FIG. 22, the electronic device 2200 may include: a receiving module 2201, processing module 2202. The electronic device 2200 may be, for example, the first Internet of Things device described above.
其中,接收模块2201可以用于接收第二物联网设备发送的操作指示信息,所述操作指示信息用于指示所述电子设备2200执行所述目标操作。The receiving module 2201 may be configured to receive operation instruction information sent by a second Internet of Things device, where the operation instruction information is used to instruct the electronic device 2200 to perform the target operation.
处理模块2202可以用于根据所述操作指示信息,执行所述目标操作。The processing module 2202 may be configured to execute the target operation according to the operation instruction information.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the foregoing method embodiments can be cited in the functional description of the corresponding functional module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述控制物联网设备的方法1600,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the method 1600 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
在采用对应各个功能划分各个功能模块的情况下,图23示出了上述实施例中涉及的电子设备2300的一种可能的组成示意图,如图23所示,该电子设备2300可以包括:获取模块2301、发送模块2302。电子设备2300例如可以是上文所述的第二物联网设备。In the case of dividing each functional module corresponding to each function, FIG. 23 shows a schematic diagram of a possible composition of the electronic device 2300 involved in the foregoing embodiment. As shown in FIG. 23, the electronic device 2300 may include: an acquisition module 2301. Sending module 2302. The electronic device 2300 may be, for example, the second Internet of Things device described above.
其中,获取模块2301可以用于获取目标策略的第三指示信息,所述目标策略包括预设条件、目标操作以及目标设备的信息,所述目标策略用于指示,在所述预设条件成立的情况下,所述目标设备执行所述目标操作,所述第三指示信息用于指示在所述预设条件成立的情况下指示其他物联网设备执行所述目标操作。Wherein, the obtaining module 2301 may be used to obtain third indication information of a target strategy, the target strategy including preset conditions, target operations, and target device information, and the target strategy is used to indicate that when the preset conditions are established In a case, the target device executes the target operation, and the third indication information is used to indicate that when the preset condition is established, another IoT device is instructed to execute the target operation.
发送模块2302可以用于在所述预设条件成立的情况下,向第一物联网设备发送操作指示信息,所述操作指示信息用于指示所述第一物联网设备执行所述目标操作。The sending module 2302 may be configured to send operation instruction information to the first Internet of Things device when the preset condition is established, where the operation instruction information is used to instruct the first Internet of Things device to perform the target operation.
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。It should be noted that all relevant content of the steps involved in the foregoing method embodiments can be cited in the functional description of the corresponding functional module, and will not be repeated here.
本实施例提供的电子设备,用于执行上述控制物联网设备的方法1600,因此可以达到与上述实现方法相同的效果。The electronic device provided in this embodiment is used to execute the method 1600 for controlling the Internet of Things device described above, and therefore can achieve the same effect as the foregoing implementation method.
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述各个单元执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。In the case of an integrated unit, the electronic device may include a processing module, a storage module, and a communication module. Wherein, the processing module can be used to control and manage the actions of the electronic device, for example, can be used to support the electronic device to execute the steps executed by the above-mentioned units. The storage module can be used to support the electronic device to execute the storage program code and data. The communication module can be used to support the communication between electronic devices and other devices.
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备通信的设备。Among them, the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, and other devices that communicate with other electronic devices.
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图1所示结构的设备。In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1.
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的语音控制设备的方法。This embodiment also provides a computer program product, which when the computer program product runs on a computer, causes the computer to execute the above-mentioned related steps, so as to realize the method of voice control device in the above-mentioned embodiment.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的语音控制设备的方法。In addition, the embodiments of the present application also provide a device. The device may specifically be a chip, component or module. The device may include a processor and a memory connected to each other. The memory is used to store computer execution instructions. When the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the voice control device method in the foregoing method embodiments.
本申请实施例提供了一种终端设备,该终端设备具有实现上述任一方法实施例中终端设备的行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能中各个子功能相对应的模块。具体地,该终端设备可以是用户设备。The embodiment of the present application provides a terminal device, which has a function of implementing the behavior of the terminal device in any of the foregoing method embodiments. The function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to each sub-function of the above-mentioned functions. Specifically, the terminal device may be user equipment.
本申请实施例还提供了一种通信***,该***包括上述任一实施例所述的网络设备(如云服务器)和终端设备。An embodiment of the present application also provides a communication system, which includes the network device (such as a cloud server) and a terminal device described in any of the foregoing embodiments.
本申请实施例还提供了一种通信***,该***包括上述任一实施例所述的电子设备和服务器。An embodiment of the present application also provides a communication system, which includes the electronic device and the server described in any of the foregoing embodiments.
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机 程序被计算机执行时实现上述任一方法实施例中与终端设备相关的方法流程。具体地,该计算机可以为上述终端设备。The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method flow related to the terminal device in any of the above method embodiments is realized. Specifically, the computer may be the aforementioned terminal device.
本申请实施例还提供了一种计算机程序或包括计算机程序的一种计算机程序产品,该计算机程序在某一计算机上执行时,将会使所述计算机实现上述任一方法实施例中与终端设备相关的方法流程。具体地,该计算机可以为上述终端设备。The embodiments of the present application also provide a computer program or a computer program product including a computer program. When the computer program is executed on a computer, the computer will enable the computer to implement the interaction with the terminal device in any of the above-mentioned method embodiments. Related method flow. Specifically, the computer may be the aforementioned terminal device.
本申请实施例还提供了一种装置,应用于终端设备中,所述装置与存储器耦合,用于读取并执行所述存储器中存储的指令,使得所述终端设备能执行上述任一方法实施例中与终端设备相关的方法流程。所述存储器可以集成在所述处理器中,也可以独立于所述处理器之外。所述装置可以为所述终端设备上的芯片(如片上***(system on a chip,SoC))。The embodiments of the present application also provide a device, which is applied to a terminal device, and the device is coupled with a memory, and is used to read and execute instructions stored in the memory, so that the terminal device can execute any of the above-mentioned method implementations. The method flow related to the terminal equipment in the example. The memory may be integrated in the processor or independent of the processor. The device may be a chip (such as a system on a chip (SoC)) on the terminal device.
应理解,本申请实施例中提及的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the processor mentioned in the embodiments of this application may be a central processing unit (central processing unit, CPU), or other general-purpose processors, digital signal processors (digital signal processors, DSP), and application-specific integrated circuits ( application specific integrated circuit (ASIC), ready-made programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
还应理解,本申请实施例中提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic rAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), and electrically available Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), and synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) ) And direct memory bus random access memory (direct rambus RAM, DR RAM).
应注意,本文描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It should be noted that the memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.
还应理解,本文中涉及的第一、第二以及各种数字编号仅为描述方便进行的区分,并不用来限制本申请的范围。It should also be understood that the first, second, and various numbers involved in this specification are only for easy distinction for description, and are not used to limit the scope of the present application.
本申请中,“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。In this application, "and/or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone , Where A and B can be singular or plural. The character "/" generally indicates that the associated objects before and after are in an "or" relationship.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,“a、b、或c中的至少一项(个)”,或,“a、b、和c中的至少一项(个)”,均可以表示:a、b、c、a-b(即a和b)、a-c、b-c、或a-b-c,其中a、b、c分别可以是单个,也可以是多个。In this application, "at least one" refers to one or more, and "multiple" refers to two or more. "The following at least one item (a)" or similar expressions refers to any combination of these items, including any combination of a single item (a) or a plurality of items (a). For example, "at least one of a, b, or c", or "at least one of a, b, and c" can all mean: a, b, c, ab( That is, a and b), ac, bc, or abc, where a, b, and c can be single or multiple.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,部分或全部步骤可以并行执行或先后执行,各过程的执行顺序应以其功能和内在逻 辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. Some or all of the steps can be executed in parallel or one after the other, and the execution order of the processes should be based on their functions and The internal logic is determined, and should not constitute any limitation on the implementation process of the embodiments of the present application.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的***、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disks or optical disks and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (29)

  1. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    控制设备获取多个设备注册信息,所述多个设备注册信息与多个物联网设备对应,所述设备注册信息用于指示对应的物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;The control device acquires multiple device registration information, the multiple device registration information corresponding to multiple IoT devices, and the device registration information is used to indicate M input parameters and/or N output parameters of the corresponding IoT device, M is a positive integer, and N is a positive integer;
    所述控制设备获取目标策略,所述目标策略用于指示,在预设条件成立的情况下,目标设备执行目标操作;The control device obtains a target strategy, where the target strategy is used to instruct the target device to perform a target operation when a preset condition is established;
    所述控制设备根据所述目标策略,在所述多个物联网设备中确定第一物联网设备为所述目标设备,所述第一物联网设备用于执行所述目标操作;Determining, by the control device, a first Internet of Things device among the plurality of Internet of Things devices as the target device according to the target policy, and the first Internet of Things device is configured to perform the target operation;
    所述控制设备向所述第一物联网设备发送第一通信指示信息,所述第一通信指示信息用于指示所述第一物联网设备与除所述第一物联网设备以外的其他物联网设备通信。The control device sends first communication instruction information to the first Internet of Things device, where the first communication instruction information is used to instruct the first Internet of Things device to communicate with other Internet of Things devices other than the first Internet of Things device Device communication.
  2. 根据权利要求1所述的方法,其特征在于,所述第一通信指示信息用于指示所述第一物联网设备与第二物联网设备通信,所述预设条件是否成立由h个参数判断,在所述控制设备向所述第一物联网设备发送第一通信指示信息之前,所述方法还包括:The method according to claim 1, wherein the first communication instruction information is used to instruct the first Internet of Things device to communicate with a second Internet of Things device, and whether the preset condition is established is determined by h parameters Before the control device sends the first communication instruction information to the first Internet of Things device, the method further includes:
    所述控制设备根据所述预设条件,在所述多个物联网设备中确定第二物联网设备,所述第二物联网设备具有提供所述h个参数的取值的能力,h为正整数。The control device determines a second Internet of Things device among the plurality of Internet of Things devices according to the preset condition, where the second Internet of Things device has the ability to provide the values of the h parameters, and h is positive Integer.
  3. 根据权利要求1所述的方法,其特征在于,所述第一通信指示信息用于指示所述第一物联网设备寻找:提供所述h个参数的取值的物联网设备,或者,判断所述预设条件是否成立的物联网设备,或者,在所述预设条件成立的情况下,指示所述第一物联网设备执行所述目标操作的物联网设备,h为正整数。The method according to claim 1, wherein the first communication indication information is used to instruct the first Internet of Things device to find: an Internet of Things device that provides the values of the h parameters, or to determine The Internet of Things device for which the preset condition is established or not, or the Internet of Things device for instructing the first Internet of Things device to perform the target operation when the preset condition is established, and h is a positive integer.
  4. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    控制设备获取多个设备注册信息,所述多个设备注册信息与多个物联网设备对应,所述设备注册信息用于指示对应的物联网设备的M个输入参数和/或N个输出参数,M为正整数,且N为正整数;The control device acquires multiple device registration information, the multiple device registration information corresponding to multiple IoT devices, and the device registration information is used to indicate M input parameters and/or N output parameters of the corresponding IoT device, M is a positive integer, and N is a positive integer;
    所述控制设备获取目标策略,所述目标策略用于指示,在预设条件成立的情况下,目标设备执行目标操作,所述预设条件是否成立由h个参数判断,h为正整数;The control device obtains a target strategy, where the target strategy is used to instruct the target device to perform a target operation when a preset condition is satisfied, and whether the preset condition is satisfied is determined by h parameters, and h is a positive integer;
    所述控制设备根据所述目标策略,在所述多个物联网设备中确定第二物联网设备,所述第二物联网设备具有提供所述h个参数的取值的能力;Determining, by the control device, a second Internet of Things device among the plurality of Internet of Things devices according to the target strategy, the second Internet of Things device having the ability to provide values of the h parameters;
    所述控制设备向所述第二物联网设备发送第二通信指示信息,所述第二通信指示信息用于指示所述第二物联网设备与除所述第二物联网设备以外的其他物联网设备通信。The control device sends second communication instruction information to the second Internet of Things device, where the second communication instruction information is used to instruct the second Internet of Things device to communicate with other Internet of Things devices other than the second Internet of Things device. Device communication.
  5. 根据权利要求4所述的方法,其特征在于,在所述控制设备根据所述目标策略,在所述多个物联网设备中确定所述第二物联网设备之前,所述方法还包括:The method according to claim 4, characterized in that, before the control device determines the second Internet of Things device among the plurality of Internet of Things devices according to the target policy, the method further comprises:
    所述控制设备根据所述预设条件,确定所述h个参数。The control device determines the h parameters according to the preset condition.
  6. 根据权利要求4所述的方法,其特征在于,所述第二通信指示信息用于指示所述第二物联网设备寻找:接收所述h个参数的取值的物联网设备,或者,接收条件成立指示信息的物联网设备,所述条件成立指示信息用于指示所述预设条件成立,或者,接收操作指示信息的物联网设备,所述操作指示信息用于指示执行所述目标操作。The method according to claim 4, wherein the second communication indication information is used to instruct the second Internet of Things device to find: an Internet of Things device that receives the values of the h parameters, or receiving conditions An IoT device with establishment indication information, where the condition establishment indication information is used to indicate that the preset condition is established, or an IoT device that receives operation indication information, where the operation indication information is used to indicate the execution of the target operation.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述设备注册信息还包 括以下至少一种:无线通信协议、物联网通信协议。The method according to any one of claims 1 to 6, wherein the device registration information further includes at least one of the following: a wireless communication protocol and an Internet of Things communication protocol.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述方法还包括:在显示屏上显示与所述目标策略相关的选项卡和/或图标。The method according to any one of claims 1 to 7, wherein the method further comprises: displaying tabs and/or icons related to the target strategy on a display screen.
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further comprises:
    所述控制设备存储多个策略操作文档,所述多个策略操作文档与多个策略一一对应,所述多个策略包括所述目标策略;The control device stores a plurality of policy operation documents, the plurality of policy operation documents are in one-to-one correspondence with a plurality of strategies, and the plurality of strategies include the target strategy;
    所述控制设备检测到输入的关键词,所述关键词用于表示以下至少一种:所述策略操作文档的标题、执行设备的类型、执行条件中的参数、执行操作的类型;The control device detects the input keyword, and the keyword is used to indicate at least one of the following: the title of the policy operation document, the type of the execution device, the parameters in the execution condition, and the type of the execution operation;
    所述控制设备根据所述关键词,在所述多个策略操作文档中确定目标策略操作文档,所述目标策略操作文档与所述目标策略对应;The control device determines a target policy operation document among the plurality of policy operation documents according to the keyword, and the target policy operation document corresponds to the target policy;
    所述控制设备将所述目标策略操作文档反馈给用户。The control device feeds back the target policy operation document to the user.
  10. 根据权利要求2至6中任一项所述的方法,其特征在于,所述h个参数包括以下至少一种:温度参数、湿度参数、时间参数、事件参数、音频参数、图像参数、视频参数、亮度参数。The method according to any one of claims 2 to 6, wherein the h parameters include at least one of the following: temperature parameters, humidity parameters, time parameters, event parameters, audio parameters, image parameters, and video parameters , Brightness parameters.
  11. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    第一物联网设备根据目标策略,发送第一广播消息,所述目标策略用于指示,在预设条件成立的情况下,目标设备执行目标操作,所述预设条件是否成立由h个参数判断,h为正整数,所述第一广播消息用于指示以下任一种:The first Internet of Things device sends a first broadcast message according to a target strategy. The target strategy is used to instruct the target device to perform a target operation when a preset condition is satisfied. Whether the preset condition is satisfied is determined by h parameters. , H is a positive integer, and the first broadcast message is used to indicate any of the following:
    寻找提供所述h个参数的取值的物联网设备,Looking for IoT devices that provide the values of the h parameters,
    寻找判断所述预设条件是否成立的物联网设备,Looking for IoT devices that determine whether the preset conditions are met,
    寻找在所述预设条件成立的情况下,指示所述第一物联网设备执行目标操作的物联网设备;Searching for an Internet of Things device that instructs the first Internet of Things device to perform a target operation when the preset condition is established;
    所述第一物联网设备接收第二物联网设备发送的第一目标反馈消息,所述第一目标反馈消息是针对所述第一广播消息的反馈;Receiving, by the first Internet of Things device, a first target feedback message sent by a second Internet of Things device, where the first target feedback message is a feedback for the first broadcast message;
    所述第一物联网设备根据所述第一目标反馈消息,与所述第二物联网设备进行通信。The first Internet of Things device communicates with the second Internet of Things device according to the first target feedback message.
  12. 一种通信方法,其特征在于,包括:A communication method, characterized in that it comprises:
    第二物联网设备根据第二通信指示信息,发送第二广播消息,其中:The second Internet of Things device sends a second broadcast message according to the second communication instruction information, where:
    在所述第二通信指示信息用于指示所述第二物联网设备发送h个参数的取值的情况下,所述第二广播消息用于寻找接收所述h个参数的取值的设备,h为正整数,In the case where the second communication indication information is used to instruct the second Internet of Things device to send the values of the h parameters, the second broadcast message is used to find a device that receives the values of the h parameters, h is a positive integer,
    在所述第二通信指示信息用于指示所述第二物联网设备发送条件成立指示信息的情况下,所述第二广播消息用于寻找接收条件成立指示信息的设备,所述条件成立指示信息用于指示所述预设条件成立,In the case that the second communication indication information is used to instruct the second Internet of Things device to send the condition establishment indication information, the second broadcast message is used to find a device that receives the condition establishment indication information, the condition establishment indication information Used to indicate that the preset conditions are met,
    在所述第二通信指示信息用于指示当预设条件成立时,所述第二物联网设备发送操作指示信息的情况下,所述第二广播消息用于寻找接收所述操作指示信息的设备,所述操作指示信息用于指示执行所述目标操作;In the case where the second communication indication information is used to indicate that the second Internet of Things device sends operation indication information when a preset condition is established, the second broadcast message is used to find a device that receives the operation indication information , The operation instruction information is used to instruct the execution of the target operation;
    所述第二物联网设备接收第一物联网设备发送的第二目标反馈消息,所述第二目标反馈消息是针对所述第二广播消息的反馈;Receiving, by the second Internet of Things device, a second target feedback message sent by the first Internet of Things device, where the second target feedback message is a feedback for the second broadcast message;
    所述第二物联网设备根据所述第二目标反馈消息,与所述第一物联网设备进行通信。The second Internet of Things device communicates with the first Internet of Things device according to the second target feedback message.
  13. 一种控制物联网设备的方法,其特征在于,包括:A method for controlling Internet of Things equipment, characterized in that it comprises:
    第一物联网设备获取第一指示信息,所述第一指示信息用于指示在预设条件成立的情况下执行目标操作;The first Internet of Things device acquires first instruction information, where the first instruction information is used to instruct to perform a target operation when a preset condition is established;
    所述第一物联网设备根据开放物联网通信协议,接收第二物联网设备发送的h个参数取值,所述h个参数取值为h个参数的具体取值,所述h个参数取值与所述h个参数一一对应,所述预设条件是否成立由所述h个参数判断,h为正整数;The first Internet of Things device receives, according to the open Internet of Things communication protocol, h parameter values sent by the second Internet of Things device, where the h parameters are specific values of the h parameters, and the h parameters take The value corresponds to the h parameters one-to-one, and whether the preset condition is satisfied is determined by the h parameters, and h is a positive integer;
    所述第一物联网设备根据所述h个参数取值,判断所述预设条件是否成立;The first Internet of Things device determines whether the preset condition is established according to the values of the h parameters;
    在所述预设条件成立的情况下,所述第一物联网设备执行所述目标操作。When the preset condition is established, the first Internet of Things device executes the target operation.
  14. 根据权利要求13所述的方法,其特征在于,所述第一指示信息与目标策略对应,所述目标策略用于指示,在所述预设条件成立的情况下,目标设备执行所述目标操作,所述第一物联网设备与所述目标设备对应。The method according to claim 13, wherein the first indication information corresponds to a target strategy, and the target strategy is used to indicate that if the preset condition is established, the target device performs the target operation , The first Internet of Things device corresponds to the target device.
  15. 根据权利要求13或14所述的方法,其特征在于,所述第一物联网设备获取第一指示信息,包括:The method according to claim 13 or 14, wherein the obtaining of the first indication information by the first Internet of Things device comprises:
    所述第一物联网设备接收控制设备、所述第二物联网设备或服务器发送的所述第一指示信息。The first Internet of Things device receives the first indication information sent by the control device, the second Internet of Things device or the server.
  16. 根据权利要求13至15中任一项所述的方法,其特征在于,在所述第一物联网设备根据开放物联网通信协议,接收第二物联网设备发送的h个参数取值之前,所述方法还包括:The method according to any one of claims 13 to 15, characterized in that, before the first Internet of Things device receives h parameter values sent by the second Internet of Things device according to the Open Internet of Things communication protocol, The method also includes:
    所述第一物联网设备根据所述开放物联网通信协议,向所述第二物联网设备发送第一通信信息,所述第一通信信息用于指示所述第一物联网设备需要被提供所述h个参数的取值。The first Internet of Things device sends first communication information to the second Internet of Things device according to the open Internet of Things communication protocol, and the first communication information is used to indicate that the first Internet of Things device needs to be provided with all the information. The values of the h parameters are described.
  17. 根据权利要求13至16中任一项所述的方法,其特征在于,所述预设条件是否成立由所述h个参数以及s个参数判断,所述s个参数与所述h个参数不同,在所述第一物联网设备根据所述h个参数取值,判断所述预设条件是否成立之前,所述方法还包括:The method according to any one of claims 13 to 16, wherein whether the preset condition is satisfied is determined by the h parameters and s parameters, and the s parameters are different from the h parameters Before the first Internet of Things device determines whether the preset condition is established according to the h parameter values, the method further includes:
    所述第一物联网设备接收第三物联网设备发送的s参数取值,所述s参数取值为所述s个参数的具体取值,所述s参数取值与所述s个参数一一对应;The first Internet of Things device receives the value of the s parameter sent by the third Internet of Things device, where the value of the s parameter is a specific value of the s parameters, and the value of the s parameter is the same as the s parameters One-to-one correspondence
    所述第一物联网设备根据所述h个参数取值,判断所述预设条件是否成立,包括:The first Internet of Things device judging whether the preset condition is established according to the values of the h parameters includes:
    所述第一物联网设备根据所述h个参数取值以及所述s个参数取值,判断所述预设条件是否成立。The first Internet of Things device determines whether the preset condition is established according to the values of the h parameters and the values of the s parameters.
  18. 根据权利要求13至17中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 13 to 17, wherein the method further comprises:
    所述第一物联网设备将所述目标操作的执行结果发送给第四物联网设备,以指示所述第四物联网设备执行与所述目标操作对应的其他操作。The first Internet of Things device sends the execution result of the target operation to the fourth Internet of Things device to instruct the fourth Internet of Things device to perform other operations corresponding to the target operation.
  19. 一种控制物联网设备的方法,其特征在于,包括:A method for controlling Internet of Things equipment, characterized in that it comprises:
    第一物联网设备获取第一指示信息,所述第一指示信息用于指示在预设条件成立的情况下执行目标操作;The first Internet of Things device acquires first instruction information, where the first instruction information is used to instruct to perform a target operation when a preset condition is established;
    所述第一物联网设备根据开放物联网通信协议,接收第二物联网设备发送的条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立;The first Internet of Things device receives the condition establishment indication information sent by the second Internet of Things device according to the open Internet of Things communication protocol, where the condition establishment indication information is used to indicate that the preset condition is established;
    所述第一物联网设备根据所述条件成立指示信息以及所述第一指示信息,执行所述目标操作。The first Internet of Things device executes the target operation according to the condition establishment indication information and the first indication information.
  20. 一种控制物联网设备的方法,其特征在于,包括:A method for controlling Internet of Things equipment, characterized in that it comprises:
    第二物联网设备获取第二指示信息,所述第二指示信息用于指示所述第二物联网设备判断所述预设条件是否成立,并将所述预设条件是否成立的判断结果发送给第一物联网设备;The second Internet of Things device acquires second instruction information, where the second instruction information is used to instruct the second Internet of Things device to determine whether the preset condition is established, and send the judgment result of whether the preset condition is established to The first Internet of Things device;
    在所述预设条件成立的情况下,所述第二物联网设备根据开放物联网通信协议,向所述第一物联网设备发送条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立。In the case that the preset condition is established, the second Internet of Things device sends condition establishment indication information to the first Internet of Things device according to the open Internet of Things communication protocol, and the condition establishment indication information is used to instruct the The preset conditions are established.
  21. 一种控制物联网设备的方法,其特征在于,包括:A method for controlling Internet of Things equipment, characterized in that it comprises:
    第二物联网设备获取第二指示信息,所述第二指示信息用于指示所述第二物联网设备判断所述预设条件是否成立;The second Internet of Things device acquires second instruction information, where the second instruction information is used to instruct the second Internet of Things device to determine whether the preset condition is established;
    所述第二物联网设备接收第一物联网设备发送的第二通信信息,所述第二通信信息用于指示所述第一物联网设备需要被提供所述预设条件的判断结果;Receiving, by the second Internet of Things device, second communication information sent by the first Internet of Things device, where the second communication information is used to indicate that the first Internet of Things device needs to be provided with a judgment result of the preset condition;
    所述第二物联网设备根据所述第二通信信息以及所述第二指示信息,在所述预设条件成立的情况下,通过开放物联网通信协议向所述第一物联网设备发送条件成立指示信息,所述条件成立指示信息用于指示所述预设条件成立。According to the second communication information and the second instruction information, the second Internet of Things device sends the establishment of a condition to the first Internet of Things device through an open Internet of Things communication protocol when the preset condition is established Indication information, the condition establishment indication information is used to indicate the establishment of the preset condition.
  22. 一种控制物联网设备的方法,其特征在于,包括:A method for controlling Internet of Things equipment, characterized in that it comprises:
    第二物联网设备获取第三指示信息,所述第三指示信息用于指示在所述预设条件成立的情况下指示目标设备执行目标操作;The second Internet of Things device obtains third instruction information, where the third instruction information is used to instruct the target device to perform a target operation when the preset condition is established;
    所述第二物联网设备根据所述第三指示信息,确定所述目标设备为第一物联网设备;The second Internet of Things device determines that the target device is the first Internet of Things device according to the third indication information;
    在所述预设条件成立的情况下,所述第二物联网设备根据开放物联网通信协议,向所述第一物联网设备发送操作指示信息,所述操作指示信息用于指示所述第一物联网设备执行所述目标操作。When the preset conditions are established, the second Internet of Things device sends operation instruction information to the first Internet of Things device according to the open Internet of Things communication protocol, and the operation instruction information is used to instruct the first Internet of Things device to The IoT device executes the target operation.
  23. 根据权利要求13至22中任一项所述的方法,其特征在于,所述第一物联网设备与所述第二物联网设备由不同品牌的供应商提供。The method according to any one of claims 13 to 22, wherein the first Internet of Things device and the second Internet of Things device are provided by suppliers of different brands.
  24. 根据权利要求13至23中任一项所述的方法,其特征在于,所述开放物联网通信协议包括以下至少一种:参数集合、条件集合、操作集合、设备集合。The method according to any one of claims 13 to 23, wherein the open IoT communication protocol includes at least one of the following: a parameter set, a condition set, an operation set, and a device set.
  25. 根据权利要求13至24中任一项所述的方法,其特征在于,所述开放物联网通信协议为HiLink通信协议。The method according to any one of claims 13 to 24, wherein the open IoT communication protocol is the HiLink communication protocol.
  26. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,用于存储程序;Memory, used to store programs;
    处理器,用于执行所述存储器存储的程序,当所述存储器存储的程序被执行时,所述处理器用于执行如权利要求1-25中任一项所述的方法。The processor is configured to execute the program stored in the memory, and when the program stored in the memory is executed, the processor is configured to execute the method according to any one of claims 1-25.
  27. 一种电子设备,其特征在于,所述电子设备包括用于执行如权利要求1-25中任一项所述方法的模块。An electronic device, characterized in that the electronic device includes a module for executing the method according to any one of claims 1-25.
  28. 一种计算机可读存储介质,其特征在于,所述计算机可读介质存储用于设备执行的程序代码,该程序代码包括用于执行如权利要求1-25中任一项所述的方法。A computer-readable storage medium, wherein the computer-readable medium stores program code for device execution, and the program code includes a method for executing the method according to any one of claims 1-25.
  29. 一种芯片,其特征在于,所述芯片包括处理器与数据接口,所述处理器通过所述数据接口读取存储器上存储的指令,以执行如权利要求1-25中任一项所述的方法。A chip, characterized in that, the chip comprises a processor and a data interface, and the processor reads instructions stored on a memory through the data interface to execute the method according to any one of claims 1-25 method.
PCT/CN2021/080423 2020-04-30 2021-03-12 Communication method, method for controlling internet of things device, and electronic device WO2021218442A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010375041.4A CN111669430B (en) 2020-04-30 2020-04-30 Communication method, method for controlling Internet of things equipment and electronic equipment
CN202010375041.4 2020-04-30

Publications (1)

Publication Number Publication Date
WO2021218442A1 true WO2021218442A1 (en) 2021-11-04

Family

ID=72382636

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/080423 WO2021218442A1 (en) 2020-04-30 2021-03-12 Communication method, method for controlling internet of things device, and electronic device

Country Status (2)

Country Link
CN (1) CN111669430B (en)
WO (1) WO2021218442A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114047974A (en) * 2021-11-15 2022-02-15 瀚云科技有限公司 Internet of things equipment configuration method and device, configuration terminal and storage medium
WO2024087995A1 (en) * 2022-10-26 2024-05-02 京东方科技集团股份有限公司 Internet-of-things device linkage method and system, electronic device and readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669430B (en) * 2020-04-30 2021-12-31 华为技术有限公司 Communication method, method for controlling Internet of things equipment and electronic equipment
CN113820960A (en) * 2021-09-16 2021-12-21 珠海格力电器股份有限公司 Equipment resource sharing system, method and device, intelligent equipment and storage medium
CN114143908A (en) * 2021-11-17 2022-03-04 武汉领普科技有限公司 Wireless pairing method, device and storage medium
CN114430420A (en) * 2021-12-27 2022-05-03 深圳市晨北科技有限公司 Method, device, equipment and medium for determining linkage communication strategy
US12019838B2 (en) * 2022-06-15 2024-06-25 Snap Inc. Standardized AR interfaces for IOT devices

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230671A (en) * 2016-08-01 2016-12-14 珠海格力电器股份有限公司 Smart home control method and device and terminal
CN106325250A (en) * 2016-09-12 2017-01-11 珠海格力电器股份有限公司 Electrical appliance linkage control method and system based on information detection
CN108572554A (en) * 2017-03-07 2018-09-25 中移(杭州)信息技术有限公司 A kind of intelligent home control system, method and relevant device
CN109756443A (en) * 2017-11-01 2019-05-14 中国电信股份有限公司 Smart home device interlock method, equipment and system
CN111669430A (en) * 2020-04-30 2020-09-15 华为技术有限公司 Communication method, method for controlling Internet of things equipment and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060077418A (en) * 2004-12-30 2006-07-05 엘지전자 주식회사 Method of controlling electric home appliances using mobile station
US8254352B2 (en) * 2007-06-28 2012-08-28 Universal Electronics Inc. System and method for configuration of network-capable appliances
CN104216379B (en) * 2014-09-09 2017-05-24 联想(北京)有限公司 Information processing method and electronic device
CN105807618B (en) * 2014-12-29 2019-12-24 联想(北京)有限公司 Control method and first central control equipment
KR102254699B1 (en) * 2015-12-29 2021-05-24 삼성전자주식회사 User terminal apparatus and control method thereof
US10299091B2 (en) * 2016-06-22 2019-05-21 Intel Corporation Internet of things protocol handler
CN110392014B (en) * 2018-04-17 2022-08-05 阿里巴巴集团控股有限公司 Communication method and device between Internet of things devices
CN110365758A (en) * 2019-07-04 2019-10-22 绿漫科技有限公司 A kind of things-internet gateway system of protocol self-adapting
CN110958570B (en) * 2019-12-27 2021-05-25 咻享智能(深圳)有限公司 Wireless Internet of things data communication method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230671A (en) * 2016-08-01 2016-12-14 珠海格力电器股份有限公司 Smart home control method and device and terminal
CN106325250A (en) * 2016-09-12 2017-01-11 珠海格力电器股份有限公司 Electrical appliance linkage control method and system based on information detection
CN108572554A (en) * 2017-03-07 2018-09-25 中移(杭州)信息技术有限公司 A kind of intelligent home control system, method and relevant device
CN109756443A (en) * 2017-11-01 2019-05-14 中国电信股份有限公司 Smart home device interlock method, equipment and system
CN111669430A (en) * 2020-04-30 2020-09-15 华为技术有限公司 Communication method, method for controlling Internet of things equipment and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114047974A (en) * 2021-11-15 2022-02-15 瀚云科技有限公司 Internet of things equipment configuration method and device, configuration terminal and storage medium
CN114047974B (en) * 2021-11-15 2023-10-31 瀚云科技有限公司 Internet of things equipment configuration method and device, configuration terminal and storage medium
WO2024087995A1 (en) * 2022-10-26 2024-05-02 京东方科技集团股份有限公司 Internet-of-things device linkage method and system, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN111669430A (en) 2020-09-15
CN111669430B (en) 2021-12-31

Similar Documents

Publication Publication Date Title
WO2021218442A1 (en) Communication method, method for controlling internet of things device, and electronic device
WO2021000808A1 (en) Device control method and device
WO2021078284A1 (en) Content continuation method and electronic device
WO2020098437A1 (en) Method for playing multimedia data and electronic device
WO2020103764A1 (en) Voice control method and electronic device
CN111650840B (en) Intelligent household scene arranging method and terminal
WO2020228645A1 (en) Method for performing playback of audio and video data, terminal, and device
WO2020155014A1 (en) Smart home device sharing system and method, and electronic device
WO2020173375A1 (en) Multi-intelligent device linkage control method, device and system
WO2020224447A1 (en) Method and system for adding smart home device to contacts
WO2022127661A1 (en) Application sharing method, and electronic device and storage medium
WO2021238933A1 (en) Control method applied to electronic device, and electronic device
US20150138234A1 (en) Method for effect display of electronic device, and electronic device thereof
CN113810542B (en) Control method applied to electronic equipment, electronic equipment and computer storage medium
WO2020155870A1 (en) Device control method and devices
WO2022166618A1 (en) Screen projection method and electronic device
WO2022179443A1 (en) Nfc method and system, and electronic device
KR20170015785A (en) Network apparatus, server and control method thereof
WO2020133467A1 (en) Method for smart home appliance to access network and related device
WO2023241209A1 (en) Desktop wallpaper configuration method and apparatus, electronic device and readable storage medium
EP4391459A1 (en) Scenario synchronization method and apparatus, and electronic device and readable storage medium
WO2022135157A1 (en) Page display method and apparatus, and electronic device and readable storage medium
US20230388832A1 (en) Method for detecting video surveillance device and electronic device
WO2021027727A1 (en) Method for information transmission and electronic device
CN114579819A (en) Information sorting method and electronic equipment

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21796430

Country of ref document: EP

Kind code of ref document: A1