WO2020029694A1 - 设备控制方法、装置以及物联网系统 - Google Patents

设备控制方法、装置以及物联网系统 Download PDF

Info

Publication number
WO2020029694A1
WO2020029694A1 PCT/CN2019/092716 CN2019092716W WO2020029694A1 WO 2020029694 A1 WO2020029694 A1 WO 2020029694A1 CN 2019092716 W CN2019092716 W CN 2019092716W WO 2020029694 A1 WO2020029694 A1 WO 2020029694A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
cloud server
local area
area network
terminal control
Prior art date
Application number
PCT/CN2019/092716
Other languages
English (en)
French (fr)
Inventor
陈炳枝
Original Assignee
伍玻
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 伍玻 filed Critical 伍玻
Publication of WO2020029694A1 publication Critical patent/WO2020029694A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Definitions

  • the present disclosure relates to the field of Internet of Things, and more specifically, to a device control method, device, and Internet of Things system.
  • the control rules of the terminal will be sent to the cloud server of the Internet of Things.
  • a specific event is generated by a device in the Internet of Things, this event is sent to the Internet via Cloud server.
  • the cloud server determines which devices need to be triggered to perform actions based on the usage control rules.
  • the cloud server sends control commands to specific devices via the Internet. In this way, the execution of control rules can be completed, so as to realize the interconnection and interconnection of devices in the Internet of Things. However, in this way, the reliability and real-time performance of data transmission need to be improved.
  • Invention content is a specific event generated by a device in the Internet of Things.
  • the present disclosure proposes a device control method, device, and Internet of Things system to improve the above problems.
  • the present disclosure provides a device control method applied to a cloud server.
  • the method includes: the cloud server receives a terminal control rule sent by a user terminal, and the terminal control rule includes a trigger condition and a response Operate; the cloud server sends the terminal control rule to a first electronic device, so that after the first electronic device detects that the trigger condition is satisfied, based on the second electronic device obtained from the cloud server Characteristic information of the local area network, a communication link established with the second electronic device within the local area network, and sending an instruction to perform the response operation to the second electronic device based on the communication link.
  • the present disclosure provides a device control method, which is applied to a first electronic device that directly establishes a network link with a cloud server, and the method includes: the first electronic device receives a message sent by the cloud server A terminal control rule, where the terminal control rule is sent by a user terminal to the cloud server, the first electronic device is an electronic device that performs detection to determine whether a trigger condition is met, and the terminal control rule includes the trigger condition and a response operation; When the first electronic device detects that the trigger condition is satisfied Establishing a communication link in a local area network with a second electronic device that directly establishes a network link with the cloud server; the first electronic device sends a control instruction to the second electronic device based on the communication link, so that all The second electronic device performs the response operation.
  • the present disclosure provides a device control method, which is applied to an Internet of Things system, where the Internet of Things system includes a cloud server, a first electronic device, and a second electronic device, the first electronic device and the first Both electronic devices directly establish a network link with the cloud server, and the method includes: receiving, by the cloud server, a terminal control rule sent by a user terminal, where the terminal control rule includes a trigger condition and a response operation; The first electronic device sends the terminal control rule; when the first electronic device receives the terminal control rule and detects that the trigger condition is satisfied, establishing a communication link with the second electronic device in a local area network; The first electronic device sends a control instruction to the second electronic device based on the communication link; the second electronic device executes the response operation in response to the control instruction.
  • the present disclosure provides a device control device that runs on a cloud server.
  • the device includes: a data receiver configured to receive a terminal control rule sent by a user terminal, where the terminal control rule includes a trigger condition And a response operation; a data sending unit, configured to send the terminal control rule to the first electronic device, so that after the first electronic device detects that the triggering condition is met, the first electronic device is based on obtaining from the cloud server Characteristic information of the local area network of the second electronic device, a communication link established with the second electronic device in the local area network, and sending an instruction to perform a response operation to the second electronic device based on the communication link .
  • the present disclosure provides a device control device that runs on a first electronic device that directly establishes a network link with a cloud server.
  • the device includes: a data receiver configured to receive data sent by the cloud server.
  • a terminal control rule where the terminal control rule includes a trigger condition and a response operation, the first electronic device is an electronic device that performs detection to determine whether the trigger condition is met; a link builder is configured to detect that the trigger condition is met, and
  • the second electronic device establishes a communication link in a local area network; an instruction sender is configured to send a control instruction to the second electronic device based on the communication link, so that the second electronic device performs the response operation .
  • the present disclosure provides an Internet of Things system.
  • the Internet of Things system includes a cloud server, a first electronic device, and a second electronic device.
  • the first electronic device and the second electronic device are both Describe
  • the cloud server directly establishes a network link;
  • the cloud server is configured to receive a terminal control rule sent by a user terminal, and the terminal control rule includes a trigger condition and a response operation; and the cloud server further detects whether the trigger condition is satisfied by performing the execution with the direction.
  • the first electronic device sends the terminal control rule; the first electronic device is configured to receive the terminal control rule and, when detecting that the trigger condition is satisfied, establish communication with the second electronic device in a local area network Link; the first electronic device is configured to send a control instruction to the second electronic device based on the communication link; and the second electronic device is configured to perform the response operation in response to the control instruction.
  • the present disclosure provides a cloud server including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured For execution by the one or more processors, the one or more programs are configured to perform the method described above
  • the present disclosure provides an electronic device including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured For execution by the one or more processors, the one or more programs are configured to perform the method described above
  • a device control method, device, and Internet of Things system provided by the present disclosure.
  • the cloud server After the cloud server obtains the terminal control rule uploaded by the user terminal, the cloud server sends the terminal control rule to the trigger included in the terminal control rule.
  • Condition-dependent first electronic device so that after detecting that the trigger condition is satisfied, the first electronic device is in a local area network with the second electronic device based on the local area network characteristic information of the second electronic device obtained from the cloud server A communication link established within the internal link, and sending an instruction to perform the response operation to the second electronic device based on the communication link, so that the first electronic device can control the second electronic device through a local area network, using The data transmission characteristics of the local area network realize the real-time and reliability of data transmission in the terminal control process.
  • FIG. 1 shows an application network environment diagram of a device control method proposed by the present disclosure
  • FIG. 2 shows a flowchart of an embodiment of a device control method proposed by the present disclosure
  • FIG. 3 shows a flowchart of an embodiment of a device control method proposed by the present disclosure
  • FIG. 4 shows a flowchart of an embodiment of a device control method according to the present disclosure
  • FIG. 5 shows a flowchart of an embodiment of a device control method proposed by the present disclosure
  • FIG. 6 shows a flowchart of an embodiment of a device control method proposed by the present disclosure
  • FIG. 7 shows a flowchart of an embodiment of a device control method according to the present disclosure
  • FIG. 8 shows a flowchart of an embodiment of a device control method proposed by the present disclosure
  • FIG. 9 shows a flowchart of an embodiment of a device control method proposed by the present disclosure.
  • FIG. 10 shows a flowchart of an embodiment of a device control method proposed by the present disclosure
  • FIG. 11 shows a flowchart of an embodiment of a device control method according to the present disclosure
  • FIG. 12 shows a structural block diagram of an embodiment of a device control device according to the present disclosure
  • FIG. 13 shows an embodiment of a device control device according to the present disclosure
  • FIG. 14 shows a structural block diagram of an electronic device of the present disclosure for performing a device control method according to an embodiment of the present disclosure.
  • IFTTT Internet of Things
  • the “thing” can be hardware, software or services on the Internet. It can connect two or more IoT products, let them work together and trigger each other.
  • IFTTT interconnection and interoperability between devices in the Internet of Things
  • dynamic configuration is supported. Which IoT devices are connected for interconnection.
  • IFTTT that is, a terminal control rule
  • the IFTTT is uniformly stored on the IoT cloud server.
  • the Internet sends it to the cloud server.
  • the cloud server determines which devices in the Internet of Things need to be triggered to perform actions according to the IFTTT configuration of the user.
  • the cloud server When the devices in some Internet of Things are required to perform the action, the cloud server sends specific Internet of Things to the Internet of Things through the Internet. Device sends control commands. In this way, the implementation of IFTTT can be completed, thereby achieving the interconnection and interconnection of devices in the Internet of Things.
  • the real-time problem is that the time efficiency of sending event messages through the Internet is not as good as sending event messages through direct communication between devices in the local area network. Because of the above two important issues, especially reliability issues, in order to ensure high-quality and high-reliability implementation of IFTTT, the inventors hope that IFTTT can be performed in the device or in the local area network. Therefore, the inventors have proposed a device control method, device, and Internet of Things system that can improve the reliability and real-time performance of the present disclosure.
  • the Internet of Things system 200 includes a cloud server 210 and a local area network 230.
  • the local area network 230 includes an electronic device A, an electronic device B, an electronic device S, an electronic device T, and an electronic device R.
  • the electronic device A and the electronic device B are connected Internet of Things devices, that is, devices that can directly establish a network link with the cloud server 210.
  • the electronic device S, electronic device T, and electronic device in the local area network 230 will not directly establish a network link with the cloud server, but need to pass through the electronic device A and electronic device B to communicate with the cloud server 210. Establish a network link.
  • the electronic device S needs to establish a network link with the cloud server 210, it needs to first send a link establishment request to the electronic device A, and then the electronic device A sends the electronic device A to the cloud server 210. If the electronic device S needs to establish a network link with the electronic device R, it needs to send a link establishment request to the electronic device A, and then send the electronic device A to the electronic device B, and then send the electronic device B to the electronic device R.
  • the local area network characteristics of the electronic devices that need to be established need to be obtained first, for example, the private IP address of the local area network, the listening port, the subnet mask of the local area network, and the direct address. Information such as the MAC address of the connected router device.
  • the electronic device in the local area network 230 may upload its own local area network characteristics to the cloud server 210 when it is connected to the local area network, so that other electronic devices can obtain it.
  • the IFTTT configured in the present disclosure includes an IF part and a THEN part, where the IF part is the trigger condition part, and the IF part is executed in the present disclosure, that is, the electronic device that detects whether the trigger condition is satisfied is the first An electronic device, where the first electronic device may be one or multiple. And the electronic device performs T HEN portion, that is, the electronic device performs the operation in response to the second electronic device.
  • electronic devices include smart gateways, temperature and humidity sensors, smart sockets, human sensors, door and window sensors, wireless switches, air conditioning companions, smoke alarms, smart curtain motors, natural gas alarms, air purifiers, smart speakers, etc.
  • the terminal control rule is that when the smart gateway detects a natural gas alarm and controls the door and window sensors to open the door and window, the IF part includes the natural gas alarm and the THEN part includes the door and window sensor to open the door and window.
  • the IFTTT terminal configuration rule configured by the user is to control the intelligent gateway to start detecting the natural gas concentration value detected by the natural gas alarm when the human body sensor detects the human body. Natural gas concentration value detected by the alarm.
  • a device control method provided by the present disclosure is applied to a cloud server, and the method includes: Step S10: The cloud server receives a terminal control rule sent by a user terminal, and the terminal control rule includes Trigger conditions and response actions.
  • the terminal control rule may be obtained by a user through configuration on a user terminal.
  • a user may select an electronic device in the IF part and a trigger condition that the electronic device needs to meet, and select an electronic device in the THEN part, and a response operation that the electronic device needs to perform in the user terminal.
  • the user terminal may implement the user's configuration terminal control rule in a manner of automatic association prompt. For example, when the user terminal configures the IF part, as shown in FIG. 1, when the electronic device S is selected, the user terminal may display the trigger conditions that the pre-configured electronic device S can execute according to the pre-configured trigger condition type. User selection is also possible for configuring the THEN part.
  • the trigger condition involved in the present disclosure may mean that the data collected by the electronic device in the network shown in FIG. 1 satisfies a set condition, or it refers to a certain condition of the electronic device itself shown in FIG. 1. This state meets the set conditions.
  • the electronic device that the user can configure is an electronic device in the same local area network as the user terminal. For example, when the user terminal is in the local area network 230 shown in FIG. 1, the electronic device 230 in the local area network can be quickly configured.
  • the cloud server may encapsulate data to be transmitted based on a data structure defined by a private protocol.
  • the encapsulated data includes a list of trigger conditions, a list of response operations, definitions of the trigger conditions, identifications of the first electronic device and the second electronic device, the first electronic device and the second electronic device in order.
  • the list of trigger conditions includes the number of trigger conditions and the relationships involved in each condition
  • the list of response operations includes the number of response operations and the relationship between each response operation.
  • the definition of the response operation is the specific content of the response operation. Accordingly, the definition of the trigger condition includes the specific content included in the trigger condition.
  • Step S20 The cloud server sends the terminal control rule to the first electronic device, so that after the first electronic device detects that the trigger condition is met, it is based on the acquired local area network characteristics of the second electronic device. Information, a communication link established within the local area network with the second electronic device, and sending an instruction to perform the response operation to the second electronic device based on the communication link.
  • the first electronic device may start to detect whether the trigger condition in the terminal control rule is satisfied.
  • the user terminal may also send a control instruction to control the first electronic device to start detecting whether the trigger condition is met.
  • the first electronic device detects that the trigger condition is met, it is ready to establish a communication link with the second electronic device. It can be understood that if the first electronic device wants to establish a communication link based on the TCP or UDP protocol with the second electronic device, it needs to know the private IP and the listening port of the second electronic device first. As a way, the first electronic device The private IP and listening port of the second electronic device can be obtained from the cloud server.
  • first electronic devices when there are multiple first electronic devices, multiple first electronic devices are defined in the terminal control rule.
  • a certain device in the electronic device establishes a communication link with the second electronic device in a local area network.
  • a plurality of first electronic devices include a gateway device and a temperature and humidity sensor
  • a second electronic device includes a smart curtain motor.
  • the trigger condition includes: when the gateway device detects that the temperature and humidity value collected by the temperature and humidity sensor reaches a preset value, the intelligent curtain motor is controlled to start working. Then in this case, it is the gateway device that sends the control instruction to the smart curtain motor (the second electronic device in this case).
  • the sending, by the first device, an instruction to perform the response operation to the second electronic device based on the communication link includes: directly sending the second electronic device to execute the response based on the communication link.
  • An operation instruction, or through an electronic device directly connected to the cloud server, such as electronic device A or electronic device B, according to the response operation instruction, the instruction to perform the response operation is sent to the corresponding second device, so that the second electronic device Perform a response operation.
  • a device control method provided by the present disclosure is that after a cloud server obtains a terminal control rule uploaded by a user terminal, the cloud server sends the terminal control rule to a first electronic device related to a trigger condition included in the terminal control rule.
  • the first electronic device establishes a communication link with the second electronic device in the local area network based on the local area network characteristic information of the second electronic device obtained from the cloud server. And sending an instruction to perform the response operation to the second electronic device based on the communication link, so that the first electronic device can implement control over the second electronic device through a local area network, and utilize data transmission characteristics of the local area network, Realize the real-time and reliability of data transmission in the terminal control process.
  • the method further includes:
  • Step 130 The cloud server receives and stores respective local area network characteristic information sent by the first electronic device and the second electronic device.
  • the electronic device when the electronic device accesses the local area network, it can upload its own local area network characteristics to the cloud server at the same time, and the cloud server can assign a unique identifier to the newly accessed electronic device, so that the cloud server The electronic device can be identified.
  • the cloud server may hash the public network IP and its own MAC address carried in the link request sent when the electronic device establishes a network link as the unique identifier of the electronic device.
  • the cloud server sends the terminal control rule to the first electronic device. Before the preparation steps also include:
  • Step 110 The cloud server detects whether the first electronic device and the second electronic device are in the same local area network.
  • Step 120 If the cloud server detects that the first electronic device and the second electronic device are in the same local area network, the cloud server executes sending a terminal control rule to the first electronic device.
  • the cloud server when the cloud server detects that there are multiple first electronic devices that execute the trigger condition in the terminal control rule, in order to ensure that subsequent control operations can be smoothly implemented in a local area network, the cloud server It may be detected first whether multiple first electronic devices are in the same local area network, and in addition, it may be further detected whether the first electronic device and the second electronic device that subsequently performs a response operation are stored in the same local area network. It is easy to understand that, as shown in FIG.
  • the cloud server may directly detect whether multiple first electronic devices are in In the same local area network; if the first device includes the electronic device S, the electronic device T, or the electronic device R, the network connection with the cloud server will not be established directly, but the network connection with the cloud server 210 needs to be established through the electronic device A or the electronic device B If the electronic device A or the electronic device B connected to the first device is in the same local area network, the cloud server determines whether multiple first electronic devices are in the same local area network.
  • the method includes:
  • Step 1101 The cloud server detects whether the MAC addresses of the routers to which the first electronic device and the second electronic device are connected are the same;
  • Step 1102 if it is detected that the MAC addresses of the routers to which the first electronic device and the second electronic device are connected are the same;
  • Step 1103 the first electronic device and the second electronic device are in the same local area network.
  • the electronic device may upload its connected gateway MAC to the cloud server when accessing the local area network, or the cloud server may pass through the network link request sent by the electronic device.
  • the MAC address of the first gateway is used as the MAC address of the gateway to which the electronic device is connected.
  • the method includes:
  • Step 1104 The cloud server detects whether the respective private IPs of the first electronic device and the second electronic device and their respective subnet masks are calculated to obtain whether the addresses belong to the same network segment;
  • Step 1105 if it is detected that the respective private IPs and the respective subnet masks of the first electronic device and the second electronic device are calculated and the addresses belong to the same network segment;
  • Step 1106 the first electronic device and the second electronic device are in the same local area network.
  • the cloud server can also determine whether multiple electronic devices are on the same local area network based on the private IPs of the multiple electronic devices and their respective subnet masks to obtain addresses that belong to the same network segment. 11 ⁇ After calculating with the respective subnet masks, the addresses belong to the same network segment, so multiple electrons belong to the same local area network.
  • whether the cloud server detects whether the first electronic device and the second electronic device are in the same local area network may include:
  • Step 1107 The cloud server detects whether both the first electronic device and the second electronic device can establish a communication link in the local area network through their respective private IPs and the same device;
  • Step 1108 If it is detected that both the first electronic device and the second electronic device can establish a communication link in the local area network through their respective private IPs and the same device;
  • Step 1109 the first electronic device and the second electronic device are in the same local area network.
  • the plurality of first electronic devices can establish communication links in a local area network through the respective private IPs and the same device, it is determined that the plurality of electronic devices are in the same local area network.
  • the cloud server can determine whether the first electronic device and the second electronic device are in the same local area network in the foregoing multiple manners.
  • whether the cloud server detects whether the first electronic device and the second electronic device are in the same local area network may include:
  • Step 1110 It is detected whether the M AC addresses of the routers to which the first electronic device and the second electronic device are connected are the same;
  • step 1114 determine that the first electronic device and the second electronic device belong to the same local area network
  • step mi detecting whether the respective private IPs of the first electronic device and the second electronic device and their respective subnet masks are calculated to obtain whether the addresses belong to the same network segment;
  • step 1114 determine that the first electronic device and the second electronic device belong to the same local area network
  • step 1112 detecting whether both the first electronic device and the second electronic device can establish a communication link in the local area network through their respective private IPs and the same device;
  • step 1114 determine that the first electronic device and the second electronic device belong to the same local area network;
  • step 1113 determine that the first electronic device and the second electronic device do not belong to the same local area network.
  • Step S130 The first electronic device receives the terminal control rule, and detects whether the trigger condition is satisfied.
  • Step S140 When the first electronic device detects that the trigger condition is satisfied, establish a communication link with the second electronic device in a local area network.
  • a device control method provided by the present disclosure is applied to a first electronic device that directly establishes a network link with a cloud server.
  • the method includes:
  • Step S50 The first electronic device receives the terminal control rule sent by the cloud server.
  • the terminal control rule includes trigger conditions and response operations.
  • the terminal control rule is sent by the user terminal to the cloud server. Condition of electronic equipment.
  • Step S60 When the first electronic device detects that the trigger condition is met, it establishes a communication link in the local area network with the second electronic device that directly establishes a network link with the cloud server.
  • Step S70 The first electronic device sends a control instruction to the second electronic device based on the communication link, so that the second electronic device performs a response operation.
  • the step of establishing a communication link with the second electronic device in the local area network includes:
  • Step S601 the first electronic device sends an instruction to the cloud server to obtain local area network characteristic information of the second electronic device;
  • Step S602 The first electronic device receives the local area network characteristic information of the second electronic device returned by the cloud server.
  • Step S603 The first electronic device establishes a communication link with the second electronic device in the local area network based on the characteristic information of the local area network.
  • the present disclosure also provides a device control method, which is applied to an Internet of Things system.
  • the Internet of Things system includes a cloud server, a first electronic device, and a second electronic device.
  • the first electronic device and the second electronic device are both connected to the cloud server.
  • Establish a network link directly including:
  • Step 210 The cloud server receives a terminal control rule sent by a user terminal, where the terminal control rule includes a trigger condition and a response operation;
  • Step 220 The cloud server sends a terminal control rule to the first electronic device
  • Step 230 The first electronic device receives a terminal control rule and detects whether a trigger condition is satisfied;
  • Step 240 When the first electronic device detects that the trigger condition is met, establish a communication link with the second electronic device in the local area network;
  • Step 250 The first electronic device sends a control instruction to the second electronic device based on the communication link;
  • Step 260 The second electronic device executes a response operation in response to the control instruction.
  • a device control device 400 provided in the present disclosure runs on a cloud server.
  • the device 400 includes: a data receiver 410, a data sending unit 420, and an electronic device detection unit 430.
  • the data receiver 410 is configured to receive a terminal control rule sent by a user terminal, where the terminal control rule includes a trigger condition and a response operation.
  • the data receiver 410 is further configured to receive respective local area network characteristics sent by the first electronic device and the second electronic device in the local area network.
  • the characteristics of the local area network include information such as the private IP of the local area network, the listening port, the subnet mask of the local area network, and the MAC address of the directly connected router device.
  • a data issuer 420 configured to send the terminal control rule to the first electronic device, so that after the first electronic device detects that the triggering condition is met, the first electronic device is based on obtaining from the cloud server Characteristic information of the local area network of the second electronic device, a communication link established with the second electronic device in the local area network, and sending an instruction to perform a response operation to the second electronic device based on the communication link .
  • the apparatus 400 further includes an electronic device detector 430, configured to detect that there are multiple first electronic devices, Detecting whether the plurality of first electronic devices are in a same local area network.
  • the data issuer 420 is further configured to: when the electronic device detector 430 detects that multiple first electronic devices are in the same local area network, send the terminal control rules to the multiple first electronic devices, respectively.
  • the electronic device detector 430 may detect that the MAC addresses of the gateway devices connected to the plurality of first electronic devices are the same, or detect that the private IPs of the plurality of first electronic devices and their respective sub-devices are After the netmask is calculated, the addresses belong to the same network segment, or when it is detected that the plurality of first electronic devices can establish a communication link in the local area network through their respective private IPs and the same device, a plurality of the The first electronic devices are in the same local area network.
  • a device control apparatus 500 runs on a first electronic device that directly establishes a network link with a cloud server.
  • the apparatus 500 includes: a data receiver 510, a link builder 5 20 and the command transmitter 530.
  • a data receiver 510 configured to receive a terminal control rule sent by the cloud server, where the terminal control rule is sent by the user terminal to the cloud server, and the first electronic device performs the detection whether a trigger condition is satisfied
  • the terminal control rule includes the trigger condition and a response operation.
  • a link establisher 520 is configured to establish a communication link in the local area network with the second electronic device that directly establishes a network link with the cloud server when detecting that the trigger condition is satisfied.
  • the link builder 520 includes:
  • the LAN characteristic acquisition slave 521 is configured to send an instruction to acquire the LAN characteristic information of the second electronic device to the cloud server, and receive the LAN characteristic information of the second electronic device returned by the cloud server.
  • a link establishment executor 522 is configured to establish a communication link with the second electronic device in the local area network based on the characteristic information of the local area network.
  • an instruction transmitter 530 configured to send a control instruction to the second electronic device based on the communication link, so that the second electronic device performs the response operation.
  • the device control method, device, and Internet of Things system provided by the present disclosure, after the cloud server obtains the terminal control rules uploaded by the user terminal, the cloud server sends the terminal control rules to the The terminal control rule includes the first electronic device related to the triggering condition, so that after detecting that the triggering condition is satisfied, the first electronic device is based on the local area network characteristic information of the second electronic device obtained from the cloud server, The communication link established by the second electronic device in the local area network, and sending an instruction to perform the response operation to the second electronic device based on the communication link, so that the first electronic device can implement the Second, the control of electronic equipment utilizes the data transmission characteristics of the local area network to achieve the real-time and reliability of data transmission in the terminal control process.
  • a mobile terminal provided by the present disclosure will be described below with reference to FIG. 7.
  • an embodiment of the present disclosure further provides an electronic device 100 that can execute the foregoing device control method.
  • the electronic device 100 may be an electronic device such as a smart phone, a router, a switch, an air purifier, a speaker, and a water purifier.
  • the electronic device 100 generally further includes: One or more (only one is shown in the figure) the processor 102, the memory 104, the RF (Radio Frequency) module 106, the audio circuit 110, the sensor 114, the input module 118, and the power module 122.
  • the disclosure does not limit the structure of the electronic device 100.
  • the electronic body portion 10 may further include more or fewer components than those shown in the figure, or have a configuration different from that shown in the figure.
  • peripheral interface 124 may be implemented based on the following standards: Universal Asynchronous Receiver / Transmitter (UART), General Purpose Input Output (GPIO), Serial Peripheral Interface , SPI), Inter-Integrated Circuit (I2C), but not limited to the above standards.
  • UART Universal Asynchronous Receiver / Transmitter
  • GPIO General Purpose Input Output
  • SPI Serial Peripheral Interface
  • I2C Inter-Integrated Circuit
  • the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may further include other elements, such as one or more controllers, for example, for connecting the display panel.
  • these controllers may also be separated from the peripheral interface 124 and integrated into the processor 102 or a corresponding peripheral.
  • the memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104. For example, a program that executes the contents of the foregoing device control method and apparatus embodiments may be stored.
  • the memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include a memory remotely disposed with respect to the processor 102, and these remote memories may be connected to the electronic body portion 10 or the first screen through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the RF module 106 is configured to receive and send electromagnetic waves, and implement mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment.
  • the RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like.
  • SIM subscriber identity module
  • the RF module 106 can communicate with various networks such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network.
  • the wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above wireless network can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), and wideband code Wideband code division multiple access (W-CDMA), Code division access (CDMA), Time division multiple access (TDMA), Wireless Fidelity (Wireless, Fidelity) , WiFi) (such as the Institute of Electrical and Electronics Engineers' Standards IEEE 802.10A, IEEE 802.11b, £ 802.1 ⁇ and / or £ 802.1111), Voice over internet protocal (VoIP), Global Microwave Interconnection Access ( Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocol, may even include those that have not yet been developed.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Data GSM Environment
  • W-CDMA Wideband code Wideband code division multiple access
  • CDMA Code division access
  • TDMA Time division multiple access
  • WiFi Wireless Fidelity
  • VoIP Voice
  • the sensor 114 is disposed in the electronic body portion 10 or the first screen.
  • Examples of the sensor 114 include, but are not limited to, a light sensor, a running sensor, a pressure sensor, an infrared thermal sensor, and a distance. Sensors, gravity acceleration sensors, and other sensors.
  • the light sensor may include a light sensor 114F and a pressure sensor 114G.
  • the pressure sensor 114G can detect a pressure generated by pressing on the electronic device 100. That is, the pressure sensor 114G detects the pressure generated by the contact or pressing between the user and the mobile terminal, for example, by the user's Pressure from contact or compression between the ear and the mobile terminal. Therefore, the pressure sensor 114G can be used to determine whether a contact or pressing occurs between the user and the electronic device 100, and the magnitude of the pressure.
  • the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111.
  • the light sensor 114F may turn off the display output when an object approaches the first screen, for example, when the electronic body portion 10 moves to the ear.
  • the electronic body portion 10 may be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a thermometer, and details are not described herein again.
  • the input module 118 may include the touch module 109 provided on the screen, and the touch module 109 may collect users A touch operation on or near the touch module (such as a user using a finger, a stylus, or any suitable object or accessory on the touch module 109 or near the touch module 109), and according to a preset
  • the program drives the corresponding connection device.
  • the touch module 109 may include a touch detection device and a touch controller.
  • the touch detection device detects a user's touch orientation, and detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, and The touch information is converted into contact coordinates, and then sent to the processor 102, and can receive and execute commands sent by the processor 102.
  • the touch detection function of the touch module 109 may be implemented by using multiple types such as a resistive type, a capacitive type, an infrared line, and a surface acoustic wave.
  • the input module 118 may further include other input devices, such as keys.
  • the keys may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of the control buttons include a "back to home screen" button, an on / off button, and the like.
  • the power module 122 is configured to provide power to the processor 102 and other components.
  • the power module 122 may include components such as a power management system, one or more power sources (such as batteries or AC power), a charging circuit, a power failure detection circuit, an inverter, and a power status indicator.
  • the electronic device 100 further includes a positioner 119, which is configured to determine an actual position where the electronic device 100 is located.
  • the locator 119 uses a positioning service to implement positioning of the electronic device 100.
  • the positioning service should be understood as obtaining position information (such as latitude and longitude coordinates) of the electronic device 100 through a specific positioning technology. ), The technique of marking the location of the positioned object on the electronic map Technique or service.
  • first and second are used for descriptive purposes only, and should not be interpreted as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of “plurality” is at least two, for example, two, three, etc., unless it is specifically and specifically defined otherwise.
  • Any process or method description in a flowchart or otherwise described herein can be understood as a module representing code that includes one or more executable instructions for implementing a particular logical function or step of a process, Fragments or sections, and the scope of an embodiment of the present disclosure includes additional implementations, which may be performed out of the order shown or discussed, including in a substantially simultaneous manner or in the reverse order, depending on the functions involved The function should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
  • Logic and / or steps represented in a flowchart or otherwise described herein, for example, a sequenced list of executable instructions that can be considered to implement a logical function, can be embodied in any computer readable Medium for use by an instruction execution system, device, or device (such as a computer-based system, a system including a processor, or other system that can take instructions from and execute instructions on a system, device, or device that executes the instructions), or Used in conjunction with these instruction execution systems, devices or equipment.
  • a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
  • computer-readable media include the following: electrical connections (mobile terminals) with one or more wirings, portable computer disk enclosures (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and Portable Compact Disc Read Only Memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
  • each part of the present disclosure may be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a logic gate circuit having a logic function for implementing a data signal Discrete logic circuits, ASICs with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
  • the aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

本公开实施例公开了一种设备控制方法、装置以及物联网系统。所述方法包括:所述云服务器接收用户终端发送的终端控制规则,所述终端控制规则包括触发条件以及响应操作,将所述终端控制规则发送给所述第一电子设备,以便所述第一电子设备在检测到满足所述触发条件后,与所述第二电子设备在局域网内建立的通信链路,并基于所述通信链路向所述第二电子设备发送执行所述响应操作的指令。本公开使得第一电子设备可以通过本地局域网实现对第二电子设备的控制,利用局域网的数据传输特性,实现终端控制过程中的数据传输的实时性和可靠性。

Description

说明书 发明名称:设备控制方法、 装置以及物联网系统 技术领域
[0001] 本公开涉及物联网领域, 更具体地, 涉及一种设备控制方法、 装置以及物联网 系统。
背景技术
[0002] 在物联网中, 在配置好终端的控制规则后, 会将该控制规则发送到物联网的云 服务器上, 当物联网中的设备产生特定的事件时, 将此事件通过 Internet发送给 云服务器, 云服务器根据用控制规则, 确定需要触发哪些设备执行动作, 当需 要确定某些设备执行动作时, 云服务器通过 Internet向特定的这些设备发送控制 命令。 通过这种方式, 可以完成控制规则的执行, 从而实现物联网中的设备的 互联互通, 但是在这种方式中, 数据传输的可靠性以及实时性还有待提升。 发 明内容
[0003] 鉴于上述问题, 本公开提出了一种设备控制方法、 装置以及物联网系统, 以改 善上述问题。
[0004] 第一方面, 本公开提供了一种设备控制方法, 应用于云服务器, 所述方法包括 : 所述云服务器接收用户终端发送的终端控制规则, 所述终端控制规则包括触 发条件以及响应操作; 所述云服务器将所述终端控制规则发送给第一电子设备 , 以便所述第一电子设备在检测到满足所述触发条件后, 基于从所述云服务器 获取的所述第二电子设备的局域网特征信息, 与所述第二电子设备在局域网内 建立的通信链路, 并基于所述通信链路向所述第二电子设备发送执行所述响应 操作的指令。
[0005] 第二方面, 本公开提供了一种设备控制方法, 应用于直接与云服务器建立网络 链接的第一电子设备, 所述方法包括: 所述第一电子设备接收所述云服务器发 送的终端控制规则, 所述终端控制规则由用户终端发送给所述云服务器, 所述 第一电子设备为执行检测是否满足触发条件的电子设备, 所述终端控制规则包 括所述触发条件以及响应操作; 所述第一电子设备检测到满足所述触发条件时 , 与直接与所述云服务器建立网络链接的第二电子设备在局域网内建立通信链 路; 所述第一电子设备基于所述通信链路向所述第二电子设备发送控制指令, 以使所述第二电子设备执行所述响应操作。
[0006] 第三方面, 本公开提供了一种设备控制方法, 应用于物联网系统, 所述物联网 系统包括云服务器、 第一电子设备以及第二电子设备, 所述第一电子设备以及 第二电子设备均与所述云服务器直接建立网络链接, 所述方法包括: 所述云服 务器接收用户终端发送的终端控制规则, 所述终端控制规则包括触发条件以及 响应操作; 所述云服务器向所述第一电子设备发送所述终端控制规则; 所述第 一电子设备接收所述终端控制规则, 并检测到满足所述触发条件时, 与所述第 二电子设备在局域网内建立通信链路; 所述第一电子设备基于所述通信链路向 所述第二电子设备发送控制指令; 所述第二电子设备响应所述控制指令, 执行 所述响应操作。
[0007] 第四方面, 本公开提供了一种设备控制装置, 运行于云服务器, 所述装置包括 : 数据接收器, 用于接收用户终端发送的终端控制规则, 所述终端控制规则包 括触发条件以及响应操作; 数据下发单元, 用于将所述终端控制规则发送给所 述第一电子设备, 以便所述第一电子设备在检测到满足所述触发条件后, 基于 从所述云服务器获取的所述第二电子设备的局域网特征信息, 与所述第二电子 设备在局域网内建立的通信链路, 并基于所述通信链路向所述第二电子设备发 送执行所述响应操作的指令。
[0008] 第五方面, 本公开提供了一种设备控制装置, 运行于直接与云服务器建立网络 链接的第一电子设备, 所述装置包括: 数据接收器, 用于接收所述云服务器发 送的终端控制规则, 所述终端控制规则包括触发条件以及响应操作, 所述第一 电子设备为执行检测是否满足触发条件的电子设备; 链路建立器, 用于检测到 满足所述触发条件时, 与所述第二电子设备在局域网内建立通信链路; 指令发 送器, 用于基于所述通信链路向所述第二电子设备发送控制指令, 以使所述第 二电子设备执行所述响应操作。
[0009] 第六方面, 本公开提供了一种物联网系统, 所述物联网系统包括云服务器、 第 一电子设备以及第二电子设备, 所述第一电子设备以及第二电子设备均与所述 云服务器直接建立网络链接; 所述云服务器, 用于接收用户终端发送的终端控 制规则, 所述终端控制规则包括触发条件以及响应操作; 所述云服务器, 还用 与向执行检测是否满足触发条件的第一电子设备发送所述终端控制规则; 所述 第一电子设备, 用于接收所述终端控制规则, 并检测到满足所述触发条件时, 与所述第二电子设备在局域网内建立通信链路; 所述第一电子设备, 用于基于 所述通信链路向所述第二电子设备发送控制指令; 所述第二电子设备, 用于响 应所述控制指令, 执行所述响应操作。
[0010] 第七方面, 本公开提供了一种云服务器, 包括一个或多个处理器以及存储器; 一个或多个程序, 其中所述一个或多个程序被存储在所述存储器中并被配置为 由所述一个或多个处理器执行, 所述一个或多个程序配置用于执行上述的方法
[0011] 第八方面, 本公开提供了一种电子设备, 包括一个或多个处理器以及存储器; 一个或多个程序, 其中所述一个或多个程序被存储在所述存储器中并被配置为 由所述一个或多个处理器执行, 所述一个或多个程序配置用于执行上述的方法
[0012] 本公开提供的一种设备控制方法、 装置以及物联网系统, 在云服务器获取到用 户终端上传的终端控制规则后, 云服务器将终端控制规则下发给与该终端控制 规则包括的触发条件相关的第一电子设备, 从而使得第一电子设备在检测到触 发条件满足后, 基于从所述云服务器获取的所述第二电子设备的局域网特征信 息, 与所述第二电子设备在局域网内建立的通信链路, 并基于所述通信链路向 所述第二电子设备发送执行所述响应操作的指令, 从而使得第一电子设备可以 通过本地局域网实现对第二电子设备的控制, 利用局域网的数据传输特性, 实 现终端控制过程中的数据传输的实时性和可靠性。
[0013] 本公开的这些方面或其他方面在以下实施例的描述中会更加简明易懂。
对附图的简要说明
附图说明
[0014] 为了更清楚地说明本公开实施例中的技术方案, 下面将对实施例描述中所需要 使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本公开的一 些实施例, 对于本领域技术人员来讲, 在不付出创造性劳动的前提下, 还可以 根据这些附图获得其他的附图。
[0015] 图 1示出了本公开提出的一种设备控制方法的应用网络环境图;
[0016] 图 2示出了本公开提出的一种设备控制方法的一种实施方式的的流程图;
[0017] 图 3示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0018] 图 4示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0019] 图 5示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0020] 图 6示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0021] 图 7示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0022] 图 8示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0023] 图 9示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0024] 图 10示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0025] 图 11示出了本公开提出的一种设备控制方法的一种实施方式的流程图;
[0026] 图 12示出了本公开提出的一种设备控制装置的一种实施方式的的结构框图; [0027] 图 13示出了本公开提出的一种设备控制装置的一种实施方式的结构框图;
[0028] 图 14示出了本公开的用于执行根据本公开实施例的设备控制方法的电子设备的 结构框图。
发明实施例
具体实施方式
[0029] 下面将结合本公开实施例中的附图, 对本公开实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本公开一部分实施例, 而不是全部 的实施例。 基于本公开中的实施例, 本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其他实施例, 都属于本公开保护的范围。
[0030] 随着物联网技术的发展, 在物联网系统中引入了 IFTTT。 IFTTT, 全称“If This Then That”, 翻译过来就是, 如果一件事发生了, 那么就触发另外一件事。 这里 的“事”可以是互联网中的硬件、 软件或者服务。 它能连接两个或两个以上物联网 产品, 让它们协同工作, 相互触发。
[0031] 在物联网中, 通过 IFTTT实现物联网中的设备间的互联互通, 并且支持动态配 置哪些物联网中的设备进行互联互通。 通常的, 用户通过手机、 PAD等用户终 端配置好 IFTTT (即终端控制规则) 之后, 会把 IFTTT统一存储在物联网云服务 器上, 当物联网中的设备产生特定的事件时, 将此事件通过 Internet发送给云服 务器, 云服务器根据用户配置 IFTTT情况, 确定需要触发哪些物联网中的设备执 行动作, 当需要某些物联网中的设备执行动作时, 云服务器通过 Internet向特定 的这些物联网中的设备发送控制命令。 通过这种方式, 可以完成 IFTTT的执行, 从而实现物联网中的设备的互联互通。
[0032] 但是, 发明人发现上述的控制方式存在以下两个问题。
[0033] 可靠性问题, 由于云服务器和物联网中的设备通信需要通过 Internet, 而 Internet 本身无法保证绝对可靠, 因此存在执行某些 IFTTT命令时不成功, 或者物联网中 的设备的事件无法成功发送给云服务器;
[0034] 实时性问题, 通过 Internet发送事件消息的时间效率, 比不上局域网内设备之间 直接通信发送事件消息。 由于存在以上两个重要问题, 特别是可靠性问题, 那 么为了保证高质量高可靠执行 IFTTT, 发明人希望 IFTTT能够在设备内或者局域 网内执行。 因此, 发明人提出了本公开中可以提升可靠熊和实时性的设备控制 方法、 装置以及物联网系统。
[0035] 下面将先对本公开所涉及的一种应用环境进行介绍。
[0036] 如图 1所示的物联网系统 200, 在该物联网系统 200中包括云服务器 210以及局域 网 230。 该局域网 230中包括有电子设备 A、 电子设备 B、 电子设备 S、 电子设备 T 以及电子设备 R。 其中, 在局域网 230包括的电子设备中, 电子设备 A以及电子设 备 B为联网物联网设备, 也即是可以直接和云服务器 210建立网络链接的设备。 不同于电子设备 A和电子设备 B, 局域网 230中的电子设备 S、 电子设备 T以及电 子设备不会直接和云服务器建立网络链接, 而是需要通过电子设备 A和电子设备 B才能与云服务器 210建立网络链接。
[0037] 例如, 电子设备 S如果需要和云服务器 210建立网络链接, 需要先将链接建立请 求发送给电子设备 A, 然后再由电子设备 A发送给云服务器 210。 而电子设备 S如 果需要和电子设备 R建立网络链接, 需要先将链接建立请求发送给电子设备 A, 然后再由电子设备 A发送给电子设备 B, 再由电子设备 B发送给电子设备 R。 可以 理解的是, 局域网 230中的电子设备如果需要互相建立链接, 需要先获取所需要 建立链接的电子设备的局域网特性, 例如, 局域网的私有 IP、 监听端口、 所在局 域网的子网掩码、 所直接连接的路由器设备 MAC地址等信息。 其中, 作为一种 方式, 局域网 230中的电子设备可以在接入到局域网中时, 将自己的局域网特性 上传到云服务器 210, 以便其他电子设备获取。
[0038] 需要说明的是, 在本公开中配置的 IFTTT包括 IF部分以及 THEN部分, 其中 IF部 分即为触发条件部分, 在本公开中执行 IF部分, 即检测是否满足触发条件的电子 设备为第一电子设备, 其中, 第一电子设备可以为一个也可以为多个。 而执行 T HEN部分的电子设备, 也即是执行响应操作的电子设备为第二电子设备。
[0039] 例如, 在电子设备包括智能网关、 温湿度传感器、 智能插座、 人体传感器、 门 窗传感器、 无线开关、 空调伴侣、 烟雾报警器、 智能窗帘电机、 天然气报警器 以及空气净化器、 智能音箱等电子设备的情况下。 用户所配置的 IFTTT中终端控 制规则为智能网关检测到天然气报警器报警时, 控制门窗传感器工作推开门窗 的情况下, IF部分包括天然气报警器报警时, 而 THEN部分包括门窗传感器推开 门窗。 再者, 用户所配置的 IFTTT中终端控制规则为人体传感器检测到人体时控 制智能网关开始检测天然气报警器所检测的天然气浓度值, IF部分包括人体传感 器检测到人体时, 而 THEN部分包括检测天然气报警器所检测的天然气浓度值。
[0040] 下面将结合附图具体描述本公开的各实施例。
[0041] 请参阅图 2, 本公开提供的一种设备控制方法, 应用于云服务器, 所述方法包 括: 步骤 S10: 所述云服务器接收用户终端发送的终端控制规则, 所述终端控制 规则包括触发条件以及响应操作。
[0042] 其中, 终端控制规则可以由用户在用户终端上进行配置得到。 作为一种配置方 式, 用户可以在用户终端中选择 IF部分的电子设备以及电子设备所需满足的触发 条件, 以及选择 THEN部分的电子设备, 以及该电子设备所需执行的响应操作。 其中, 作为一种方式, 用户终端可以以自动联想提示的方式实现用户配置终端 控制规则。 例如, 在用户终端配置 IF部分时, 如图 1所示, 选择了电子设备 S时, 用户终端可以根据预先配置的触发条件种类, 将预先配置的电子设备 S可以执行 的触发条件显示出来, 供用户选择, 对于配置 THEN部分也是可以如此。 [0043] 可以理解的是, 本公开中所涉及的触发条件可以指处于图 1所示的网络中的电 子设备所采集的数据满足设定条件, 或者指图 1中所示电子设备本身的某种状态 满足设定条件。
[0044] 在一种事实方式中, 为了便于用于用户快速的配置终端控制规则, 用户在配置 终端控制规则的过程中, 可以配置的电子设备为与用户终端处于同一局域网中 的电子设备。 例如, 当用户终端处于图 1中所示的局域网 230中时, 可以快速的 的对局域网中的电子设备 230进行配置。
[0045] 其中, 作为一种方式, 云服务器可以基于私有协议定义的数据结构来对所要发 送的数据进行封装。 封装得到的数据依次包括触发条件的列表、 响应操作的列 表、 触发条件的定义、 所述第一电子设备以及所述第二电子设备的标识、 所述 第一电子设备以及所述第二电子设备的 token的定义、 所述触发条件各自之间的 逻辑关系的定义、 响应操作的内容定义、 以及响应操作逻辑定义以及执行所述 触发条件判断的代码。 其中, 触发条件的列表包括触发条件的数量以及各个条 件之间所涉及的关系, 响应操作的列表则包括响应操作的数量以及各个响应操 作之间的关系。 而响应操作的定义则为响应操作的具体内容, 相应的, 触发条 件的定义包括触发条件包括的具体内容。
[0046] 步骤 S20: 所述云服务器将所述终端控制规则发送给第一电子设备, 以便所述 第一电子设备在检测到满足所述触发条件后, 基于获取的第二电子设备的局域 网特征信息, 与所述第二电子设备在局域网内建立的通信链路, 并基于所述通 信链路向所述第二电子设备发送执行所述响应操作的指令。
[0047] 其中, 第一电子设备在接收到服务器发送的终端控制规则后, 即可开始检测是 否满足终端控制规则中的触发条件。 此外, 也可以由用户终端发送控制指令来 控制第一电子设备来开始检测是否满足触发条件。 而当第一电子设备检测到满 足触发条件后, 即准备与第二电子设备建立通信链路。 可以理解的是, 第一电 子设备如果要和第二电子设备建立基于 TCP或者 UDP协议的通信链接, 需要先知 道第二电子设备的私有 IP以及监听端口, 那么作为一种方式, 第一电子设备可以 从云服务器获取第二电子设备的私有 IP以及监听端口。
[0048] 需要说明的是, 当第一电子设备有多个时, 由终端控制规则中所定义多个第一 电子设备中的某一个设备来与所述第二电子设备在局域网内建立通信链路。 例 如, 在多个第一电子设备包括网关设备以及温湿度传感器, 而第二电子设备包 括智能窗帘电机的情况下。 触发条件包括的内容为网关设备检测到温湿度传感 器采集的温湿度值达到预设值时, 控制智能窗帘电机开始工作。 那么在这种情 况下, 向智能窗帘电机 (此情况下的第二电子设备) 发送控制指令的为网关设 备。
[0049] 容易理解的是, 第一设备基于所述通信链路向所述第二电子设备发送执行所述 响应操作的指令, 包括: 基于通信链路向第二电子设备直接发送执行所述响应 操作的指令, 或者通过直接与云服务器连接的电子设备, 如电子设备 A或者电子 设备 B等, 根据响应操作指令向对应的第二设备发送执行所述响应操作的指令, 以使第二电子设备执行响应操作。
[0050] 本公开提供的一种设备控制方法, 在云服务器获取到用户终端上传的终端控制 规则后, 云服务器将终端控制规则下发给与该终端控制规则包括的触发条件相 关的第一电子设备, 从而使得第一电子设备在检测到触发条件满足后, 基于从 所述云服务器获取的所述第二电子设备的局域网特征信息, 与所述第二电子设 备在局域网内建立的通信链路, 并基于所述通信链路向所述第二电子设备发送 执行所述响应操作的指令, 从而使得第一电子设备可以通过本地局域网实现对 第二电子设备的控制, 利用局域网的数据传输特性, 实现终端控制过程中的数 据传输的实时性和可靠性。 在一种实施方式中, 如图 8所示, 云服务器将终端控 制规则发送给第一电子设备的步骤之前还包括:
[0051] 步骤 130: 云服务器接收并存储第一电子设备以及第二电子设备发送的各自的 局域网特征信息。
[0052] 可以理解的是, 电子设备在接入局域网中时, 可以同时将自己的局域网特性上 传给云服务器, 并且云服务器可以给该新接入的电子设备分配一个唯一性标识 , 以便云服务器可以识别该电子设备。 例如, 云服务器可以将该电子设备建立 网络链接时所发送的链接请求中所携带的公网 IP以及自身的 MAC地址进行哈希 计算后的特征值作为该电子设备的唯一性标识。
[0053] 在一种实施方式中, 如图 3所示, 云服务器将终端控制规则发送给第一电子设 备的步骤之前还包括:
[0054] 步骤 110: 云服务器检测第一电子设备和第二电子设备是否处于同一局域网中
[0055] 步骤 120: 若云服务器检测第一电子设备和第二电子设备处于同一局域网中, 云服务器执行将终端控制规则发送给第一电子设备。
[0056] 在一种实施方式中, 云服务器检测到终端控制规则中执行所述触发条件的第一 电子设备有多个时, 为了保证后续的控制操作能够顺利的在一个局域网中实施 , 云服务器可以先检测多个第一电子设备是否处于同一局域网中, 此外, 还可 以进一步检测第一电子设备是否与后续执行响应操作的第二电子设备是否都存 于同一个局域网中。 容易理解的是, 如图 1所示, 若第一设备为电子设备 A、 电 子设备 B等直接与云服务器 210建立网络链接的电子设备, 则云服务器可以直接 检测多个第一电子设备是否处于同一局域网中; 若第一设备包括电子设备 S、 电 子设备 T或者电子设备 R等不会直接和云服务器建立网络链接, 而是需要通过电 子设备 A或者电子设备 B才能与云服务器 210建立网络链接的电子设备, 则云服务 器通过检测第一设备连接的电子设备 A或者电子设备 B是否处于同一局域网中, 以确定多个第一电子设备是否处于同一局域网中。
[0057] 其中, 检测电子设备是否在同一个局域网中有多种方式。 作为一种方式, 如图 4所示, 若所述云服务器检测所述第一电子设备和所述第二电子设备处于同一局 域网中包括:
[0058] 步骤 1101 : 所述云服务器检测所述第一电子设备和所述第二电子设备所连接的 路由器的 MAC地址是否相同;
[0059] 步骤 1102: 若检测到所述第一电子设备和所述第二电子设备所连接的路由器的 MAC地址相同;
[0060] 步骤 1103 : 则所述第一电子设备和所述第二电子设备处于同一局域网中。
[0061] 可以检测多个电子设备所连接的网关设备的 MAC地址是否相同。 若多个电子 设备所连接的网关设备的 MAC地址均相同, 则判定多个电子设备在同一个局域 网中。 其中, 电子设备可以在接入局域网时, 将自己的所连接的网关 MAC上传 到云服务器, 也可以是云服务器将电子设备所发送的网络链接请求中所经过的 第一个网关的 MAC地址作为该电子设备所连接网关的 MAC地址。
[0062] 此外, 作为另一种方式, 如图 5所示: 若所述云服务器检测所述第一电子设备 和所述第二电子设备处于同一局域网中包括:
[0063] 步骤 1104: 所述云服务器检测所述第一电子设备和所述第二电子设备的各自的 私有 IP与各自的子网掩码计算后得到地址是否属于同一个网段;
[0064] 步骤 1105: 若检测到所述第一电子设备和所述第二电子设备的各自的私有 IP与 各自的子网掩码计算后得到地址属于同一个网段;
[0065] 步骤 1106 : 则所述第一电子设备和所述第二电子设备处于同一局域网中。
[0066] 云服务器还可以根据多个电子设备的私有 IP与各自的子网掩码计算后得到地址 属于同一个网段来判断多个电子设备是否在同一个局域网, 如果多个电子设备 的私有 11}与各自的子网掩码计算后得到地址属于同一个网段那么多个电子属于同 一个局域网。
[0067] 此外, 作为一种方式, 如图 6所示, 所述云服务器检测所述第一电子设备和所 述第二电子设备是否处于同一局域网中的可以包括:
[0068] 步骤 1107: 所述云服务器检测所述第一电子设备和所述第二电子设备是否均可 以通过各自的私有 IP和同一设备建立局域网内的通信链路;
[0069] 步骤 1108: 若检测到所述第一电子设备和所述第二电子设备均可以通过各自的 私有 IP和同一设备建立局域网内的通信链路;
[0070] 步骤 1109 : 则所述第一电子设备和所述第二电子设备处于同一局域网中。
[0071] 若检测到所述多个第一电子设备均可以通过各自的私有 IP和同一设备建立局域 网内的通信链路, 则判断多个电子设备在同一个局域网。
[0072] 可以理解的是, 云服务器可以通过前述的多种方式来判定第一电子设备和第二 电子设备是否在同一个局域网中。
[0073] 此外, 作为一种方式, 如图 7所示, 云服务器检测所述第一电子设备和所述第 二电子设备是否处于同一局域网中的可以包括:
[0074] 步骤 1110: 检测到所述第一电子设备和所述第二电子设备所连接的路由器的 M AC地址是否相同;
[0075] 若相同, 步骤 1114: 判定所述第一电子设备和所述第二电子设备属于同一局域 网;
[0076] 若不同, 步骤 m i : 则检测所述第一电子设备和所述第二电子设备的各自的私 有 IP与各自的子网掩码计算后得到地址是否属于同一个网段;
[0077] 若属于同一个网段, 步骤 1114: 判定所述第一电子设备和所述第二电子设备属 于同一局域网;
[0078] 若不属于同一个网段, 步骤 1112: 则检测所述第一电子设备和所述第二电子设 备是否均可以通过各自的私有 IP和同一设备建立局域网内的通信链路;
[0079] 若可以建立局域网内的通信链路, 步骤 1114: 判定所述第一电子设备和所述第 二电子设备属于同一局域网;
[0080] 若无法建立局域网内的通信链路, 步骤 1113: 判定所述第一电子设备和所述第 二电子设备不属于同一局域网。
[0081] 步骤 S130: 所述第一电子设备接收所述终端控制规则, 并检测是否满足所述触 发条件。
[0082] 步骤 S140: 所述第一电子设备检测到满足所述触发条件时, 与所述第二电子设 备在局域网内建立通信链路。
[0083] 请参阅图 9 , 本公开提供的一种设备控制方法, 应用于直接与云服务器建立网 络链接的第一电子设备, 方法包括:
[0084] 步骤 S50: 第一电子设备接收云服务器发送的终端控制规则, 终端控制规则包 括触发条件以及响应操作, 终端控制规则由用户终端发送给云服务器, 第一电 子设备为执行检测是否满足触发条件的电子设备。
[0085] 步骤 S60: 第一电子设备检测到满足触发条件时, 与直接与云服务器建立网络 链接的第二电子设备在局域网内建立通信链路。
[0086] 步骤 S70: 第一电子设备基于通信链路向第二电子设备发送控制指令, 以使第 二电子设备执行响应操作。
[0087] 在一种实施方式中, 如图 10所示, 第一电子设备检测到满足触发条件时, 与第 二电子设备在局域网内建立通信链路的步骤包括:
[0088] 步骤 S601 : 第一电子设备向云服务器发送获取第二电子设备的局域网特征信息 的指令; [0089] 步骤 S602: 第一电子设备接收云服务器返回的第二电子设备的局域网特征信息
[0090] 步骤 S603: 第一电子设备基于局域网特征信息与第二电子设备在局域网内建立 通信链路。
[0091] 本公开还提供了一种设备控制方法, 应用于物联网系统, 物联网系统包括云服 务器、 第一电子设备以及第二电子设备, 第一电子设备以及第二电子设备均与 云服务器直接建立网络链接, 方法包括:
[0092] 步骤 210: 云服务器接收用户终端发送的终端控制规则, 终端控制规则包括触 发条件以及响应操作;
[0093] 步骤 220: 云服务器向第一电子设备发送终端控制规则;
[0094] 步骤 230: 第一电子设备接收终端控制规则, 并检测是否满足触发条件;
[0095] 步骤 240: 第一电子设备检测到满足触发条件时, 与第二电子设备在局域网内 建立通信链路;
[0096] 步骤 250 : 第一电子设备基于通信链路向第二电子设备发送控制指令;
[0097] 步骤 260: 第二电子设备响应控制指令, 执行响应操作。
[0098] 请参阅图 12, 本公开提供的一种设备控制装置 400, 运行于云服务器, 所述装 置 400包括: 数据接收器 410、 数据下发单元 420以及电子设备检测单元 430。
[0099] 数据接收器 410, 用于接收用户终端发送的终端控制规则, 所述终端控制规则 包括触发条件以及响应操作。
[0100] 数据接收器 410, 还用于接收局域网中的第一电子设备以及第二电子设备发送 的各自的局域网特性。 其中, 局域网特性包括局域网的私有 IP、 监听端口、 所在 局域网的子网掩码、 所直接连接的路由器设备 MAC地址等信息。
[0101] 数据下发器 420, 用于将所述终端控制规则发送给所述第一电子设备, 以便所 述第一电子设备在检测到满足所述触发条件后, 基于从所述云服务器获取的所 述第二电子设备的局域网特征信息, 与所述第二电子设备在局域网内建立的通 信链路, 并基于所述通信链路向所述第二电子设备发送执行所述响应操作的指 令。
[0102] 所述装置 400还包括电子设备检测器 430, 用于检测到第一电子设备有多个时, 检测所述多个第一电子设备是否处于同一局域网中。
[0103] 数据下发器 420, 还用于在电子设备检测器 430检测到多个第一电子设备处于同 一局域网中时, 将所述终端控制规则分别发送给多个所述第一电子设备。
[0104] 其中, 电子设备检测器 430可以通过检测到所述多个第一电子设备所连接的网 关设备的 MAC地址相同, 或者检测到所述多个第一电子设备的私有 IP与各自的 子网掩码计算后得到地址属于同一个网段, 或者检测到所述多个第一电子设备 均可以通过各自的私有 IP和同一设备建立局域网内的通信链路的情况下, 判定多 个所述第一电子设备处于同一局域网。
[0105] 请参阅图 13 , 本公开提供的一种设备控制装置 500, 运行于直接与云服务器建 立网络链接的第一电子设备, 所述装置 500包括: 数据接收器 510、 链路建立器 5 20以及指令发送器 530。
[0106] 数据接收器 510, 用于接收所述云服务器发送的终端控制规则, 所述终端控制 规则由用户终端发送给所述云服务器, 所述第一电子设备为执行检测是否满足 触发条件的电子设备, 所述终端控制规则包括所述触发条件以及响应操作。
[0107] 链路建立器 520, 用于检测到满足所述触发条件时, 与直接与所述云服务器建 立网络链接的所述第二电子设备在局域网内建立通信链路。
[0108] 其中, 作为一种方式, 链路建立器 520包括:
[0109] 局域网特性获取子器 521, 用于向所述云服务器发送获取所述第二电子设备的 局域网特征信息的指令, 接收所述云服务器返回的所述第二电子设备的局域网 特征信息。
[0110] 链路建立执行子器 522, 用于基于所述局域网特征信息与所述第二电子设备在 局域网内建立通信链路。
[0111] 指令发送器 530, 用于基于所述通信链路向所述第二电子设备发送控制指令, 以使所述第二电子设备执行所述响应操作。
[0112] 需要说明的是, 本公开中装置实施例与前述方法实施例是相互对应的, 装置实 施例中具体的原理可以参见前述方法实施例中的内容, 此处不再赘述。
[0113] 综上所述, 本公开提供的一种设备控制方法、 装置以及物联网系统, 在云服务 器获取到用户终端上传的终端控制规则后, 云服务器将终端控制规则下发给与 该终端控制规则包括的触发条件相关的第一电子设备, 从而使得第一电子设备 在检测到触发条件满足后, 基于从所述云服务器获取的所述第二电子设备的局 域网特征信息, 与所述第二电子设备在局域网内建立的通信链路, 并基于所述 通信链路向所述第二电子设备发送执行所述响应操作的指令, 从而使得第一电 子设备可以通过本地局域网实现对第二电子设备的控制, 利用局域网的数据传 输特性, 实现终端控制过程中的数据传输的实时性和可靠性。
[0114] 下面将结合图 7对本公开提供的一种移动终端进行说明。
[0115] 请参阅图 7 , 基于上述的设备控制方法、 装置, 本公开实施例还提供一种可以 执行前述设备控制方法的电子设备 100。
[0116] 在实际的应用场景中, 所述电子设备 100可以为智能手机、 路由器、 交换机、 空气净化器、 音箱、 净水器等电子设备, 在这种情况下所述电子设备 100通常还 包括一个或多个 (图中仅示出一个) 处理器 102、 存储器 104、 RF (Radio Frequency, 射频) 模块 106、 音频电路 110、 传感器 114、 输入模块 118、 电源模 块 122。 本领域普通技术人员可以理解, 本公开并不对所述电子设备 100的结构 造成限定。 例如, 所述电子本体部 10还可包括比图中所示更多或者更少的组件 , 或者具有与图中所示不同的配置。
[0117] 本领域普通技术人员可以理解, 相对于所述处理器 102来说, 所有其他的组件 均属于外设, 所述处理器 102与这些外设之间通过多个外设接口 124相耦合。 所 述外设接口 124可基于以下标准实现: 通用异步接收 /发送装置 (Universal Asynchronous Receiver/Transmitter , UART) 、 通用输入 /输出 (General Purpose Input Output, GPIO) 、 串行外设接口 (Serial Peripheral Interface, SPI) 、 内部 集成电路 (Inter-Integrated Circuit, I2C) , 但不并限于上述标准。 在一些实例中 , 所述外设接口 124可仅包括总线; 在另一些实例中, 所述外设接口 124还可包 括其他元件, 如一个或者多个控制器, 例如用于连接所述显示面板 111的显示控 制器或者用于连接存储器的存储控制器。 此外, 这些控制器还可以从所述外设 接口 124中脱离出来, 而集成于所述处理器 102内或者相应的外设内。
[0118] 所述存储器 104可用于存储软件程序以及模块, 所述处理器 102通过运行存储在 所述存储器 104内的软件程序以及模块, 从而执行各种功能应用以及数据处理。 例如, 可以存储执行前述设备控制方法和装置实施例的内容的程序。 所述存储 器 104可包括高速随机存储器, 还可包括非易失性存储器, 如一个或者多个磁性 存储装置、 闪存、 或者其他非易失性固态存储器。 在一些实例中, 所述存储器 1 04可进一步包括相对于所述处理器 102远程设置的存储器, 这些远程存储器可以 通过网络连接至所述电子本体部 10或所述第一屏幕。 上述网络的实例包括但不 限于互联网、 企业内部网、 局域网、 移动通信网及其组合。
[0119] 所述 RF模块 106用于接收以及发送电磁波, 实现电磁波与电信号的相互转换, 从而与通讯网络或者其他设备进行通讯。 所述 RF模块 106可包括各种现有的用于 执行这些功能的电路元件, 例如, 天线、 射频收发器、 数字信号处理器、 加密 / 解密芯片、 用户身份模块 (SIM) 卡、 存储器等等。 所述 RF模块 106可与各种网 络如互联网、 企业内部网、 无线网络进行通讯或者通过无线网络与其他设备进 行通讯。 上述的无线网络可包括蜂窝式电话网、 无线局域网或者城域网。 上述 的无线网络可以使用各种通信标准、 协议及技术, 包括但并不限于全球移动通 信系统 (Global System for Mobile Communication, GSM) 、 增强型移动通信技 术 (Enhanced Data GSM Environment, EDGE) , 宽带码分多址技术 (wideband code division multiple access, W-CDMA) , 码分多址技术 (Code division access , CDMA) 、 时分多址技术 (time division multiple access, TDMA) , 无线保 真技术 (Wireless, Fidelity, WiFi) (如美国电气和电子工程师协会标准 IEEE 802.10A, IEEE 802.11b, 正££802.1 ^和/或正£ 802.1111) 、 网络电话 (Voice over internet protocal , VoIP) 、 全球微波互联接入 (Worldwide Interoperability for Microwave Access, Wi-Max) 、 其他用于邮件、 即时通讯及短消息的协议, 以及任何其他合适的通讯协议, 甚至可包括那些当前仍未被开发出来的协议。
[0120] 所述传感器 114设置在所述电子本体部 10内或所述第一屏幕内, 所述传感器 114 的实例包括但并不限于: 光传感器、 运行传感器、 压力传感器、 红外热传感器 、 距离传感器、 重力加速度传感器、 以及其他传感器。
[0121] 具体地, 所述光传感器可包括光线传感器 114F、 压力传感器 114G。 其中, 压 力传感器 114G可以检测由按压在电子设备 100产生的压力的传感器。 即, 压力传 感器 114G检测由用户和移动终端之间的接触或按压产生的压力, 例如由用户的 耳朵与移动终端之间的接触或按压产生的压力。 因此, 压力传感器 114G可以用 来确定在用户与电子设备 100之间是否发生了接触或者按压, 以及压力的大小。
[0122] 请再次参阅图 7, 具体地在图 7所示的实施例中, 所述光线传感器 114F及所述压 力传感器 114G邻近所述显示面板 111设置。 所述光线传感器 114F可在有物体靠近 所述第一屏幕时, 例如所述电子本体部 10移动到耳边时, 所述处理器 102关闭显 示输出。 另外, 所述电子本体部 10还可配置陀螺仪、 气压计、 湿度计、 温度计 等其他传感器, 在此不再赘述。
[0123] 本实施例中, 在电子设备设置有触控屏幕的情况下, 所述输入模块 118可包括 设置在所述屏幕上的所述触控模块 109 , 所述触控模块 109可收集用户在其上或 附近的触摸操作 (比如用户使用手指、 触笔等任何适合的物体或附件在所述触 控模块 109上或在所述触控模块 109附近的操作) , 并根据预先设定的程序驱动 相应的连接装置。 可选的, 所述触控模块 109可包括触摸检测装置和触摸控制器 。 其中, 所述触摸检测装置检测用户的触摸方位, 并检测触摸操作带来的信号 , 将信号传送给所述触摸控制器; 所述触摸控制器从所述触摸检测装置上接收 触摸信息, 并将该触摸信息转换成触点坐标, 再送给所述处理器 102, 并能接收 所述处理器 102发来的命令并加以执行。 此外, 可以采用电阻式、 电容式、 红外 线以及表面声波等多分类型实现所述触控模块 109的触摸检测功能。 除了所述触 控模块 109 , 在其它变更实施方式中, 所述输入模块 118还可以包括其他输入设 备, 如按键。 所述按键例如可包括用于输入字符的字符按键, 以及用于触发控 制功能的控制按键。 所述控制按键的实例包括“返回主屏”按键、 开机 /关机按键 等等。
[0124] 所述电源模块 122用于向所述处理器 102以及其他各组件提供电力供应。 具体地 , 所述电源模块 122可包括电源管理系统、 一个或多个电源 (如电池或者交流电 ) 、 充电电路、 电源失效检测电路、 逆变器、 电源状态指示灯等组件。
[0125] 所述电子设备 100还包括定位器 119, 所述定位器 119用于确定所述电子设备 100 所处的实际位置。 本实施例中, 所述定位器 119采用定位服务来实现所述电子设 备 100的定位, 所述定位服务, 应当理解为通过特定的定位技术来获取所述电子 设备 100的位置信息(如经纬度坐标), 在电子地图上标出被定位对象的位置的技 术或服务。
[0126] 在本说明书的描述中, 参考术语“一个实施例”、 “一些实施例”、 “示例”、 “具体 示例”、 或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、 结构 、 材料或者特点包含于本公开的至少一个实施例或示例中。 在本说明书中, 对 上述术语的示意性表述不必须针对的是相同的实施例或示例。 而且, 描述的具 体特征、 结构、 材料或者特点可以在任一个或多个实施例或示例中以合适的方 式结合。 此外, 在不相互矛盾的情况下, 本领域的技术人员可以将本说明书中 描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
[0127] 此外, 术语“第一”、 “第二”仅用于描述目的, 而不能理解为指示或暗示相对重 要性或者隐含指明所指示的技术特征的数量。 由此, 限定有“第一”、 “第二”的特 征可以明示或者隐含地包括至少一个该特征。 在本公开的描述中, “多个”的含义 是至少两个, 例如两个, 三个等, 除非另有明确具体的限定。
[0128] 流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为, 表示包 括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模 块、 片段或部分, 并且本公开的一种实施方式的范围包括另外的实现, 其中可 以不按所示出或讨论的顺序, 包括根据所涉及的功能按基本同时的方式或按相 反的顺序, 来执行功能, 这应被本公开的实施例所属技术领域的技术人员所理 解。
[0129] 在流程图中表示或在此以其他方式描述的逻辑和 /或步骤, 例如, 可以被认为 是用于实现逻辑功能的可执行指令的定序列表, 可以具体实现在任何计算机可 读介质中, 以供指令执行系统、 装置或设备(如基于计算机的系统、 包括处理器 的系统或其他可以从指令执彳了系统、 装置或设备取指令并执彳了指令的系统)使用 , 或结合这些指令执行系统、 装置或设备而使用。 就本说明书而言, ”计算机可 读介质”可以是任何可以包含、 存储、 通信、 传播或传输程序以供指令执行系统 、 装置或设备或结合这些指令执行系统、 装置或设备而使用的装置。 计算机可 读介质的更具体的示例(非穷尽性列表)包括以下: 具有一个或多个布线的电连接 部(移动终端), 便携式计算机盘盒(磁装置), 随机存取存储器(RAM), 只读存储 器(ROM), 可擦除可编辑只读存储器(EPROM或闪速存储器), 光纤装置, 以及 便携式光盘只读存储器 (CDROM)。 另外, 计算机可读介质甚至可以是可在其上 打印所述程序的纸或其他合适的介质, 因为可以例如通过对纸或其他介质进行 光学扫描, 接着进行编辑、 解译或必要时以其他合适方式进行处理来以电子方 式获得所述程序, 然后将其存储在计算机存储器中。
[0130] 应当理解, 本公开的各部分可以用硬件、 软件、 固件或它们的组合来实现。 在 上述实施方式中, 多个步骤或方法可以用存储在存储器中且由合适的指令执行 系统执行的软件或固件来实现。 例如, 如果用硬件来实现, 和在另一实施方式 中一样, 可用本领域公知的下列技术中的任一项或他们的组合来实现: 具有用 于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路, 具有合适的组合逻 辑门电路的专用集成电路, 可编程门阵列 (PGA), 现场可编程门阵列 (FPGA)等。
[0131] 本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步 骤是可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机 可读存储介质中, 该程序在执行时, 包括方法实施例的步骤之一或其组合。 此 夕卜, 在本公开各个实施例中的各功能单元可以集成在一个处理模块中, 也可以 是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个模块中。 上 述集成的模块既可以采用硬件的形式实现, 也可以采用软件功能模块的形式实 现。 所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或 使用时, 也可以存储在一个计算机可读取存储介质中。
[0132] 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。 尽管上面已经示出和 描述了本公开的实施例, 可以理解的是, 上述实施例是示例性的, 不能理解为 对本公开的限制, 本领域的普通技术人员在本公开的范围内可以对上述实施例 进行变化、 修改、 替换和变型。
[0133] 最后应说明的是: 以上实施例仅用以说明本公开的技术方案, 而非对其限制; 尽管参照前述实施例对本公开进行了详细的说明, 本领域的普通技术人员当理 解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分 技术特征进行等同替换; 而这些修改或者替换, 并不驱使相应技术方案的本质 脱离本公开各实施例技术方案的精神和范围。

Claims

权利要求书
[权利要求 1] 一种设备控制方法, 应用于云服务器, 所述方法包括:
所述云服务器接收用户终端发送的终端控制规则, 所述终端控制规则 包括触发条件以及响应操作; 所述云服务器将所述终端控制规则发送 给第一电子设备, 以便所述第一电子设备在检测到满足所述触发条件 后, 基于获取的第二电子设备的局域网特征信息, 与所述第二电子设 备在局域网内建立的通信链路, 并基于所述通信链路向所述第二电子 设备发送执行所述响应操作的指令。
[权利要求 2] 根据权利要求 1所述的方法, 所述云服务器将所述终端控制规则发送 给第一电子设备的步骤之前还包括:
所述云服务器检测所述第一电子设备和所述第二电子设备是否处于同 一局域网中;
若所述云服务器检测所述第一电子设备和所述第二电子设备处于同一 局域网中, 所述云服务器执行将所述终端控制规则发送给第一电子设 备。
[权利要求 3] 根据权利要求 2所述的方法, 所述若所述云服务器检测所述第一电子 设备和所述第二电子设备处于同一局域网中包括: 所述云服务器检测所述第一电子设备和所述第二电子设备所连接的路 由器的 MAC地址是否相同;
若检测到所述第一电子设备和所述第二电子设备所连接的路由器的 M AC地址相同;
则所述第一电子设备和所述第二电子设备处于同一局域网中。
[权利要求 4] 根据权利要求 2所述的方法, 所述若所述云服务器检测所述第一电子 设备和所述第二电子设备处于同一局域网中包括: 所述云服务器检测所述第一电子设备和所述第二电子设备的各自的私 有 IP与各自的子网掩码计算后得到地址是否属于同一个网段; 若检测到所述第一电子设备和所述第二电子设备的各自的私有 IP与各 自的子网掩码计算后得到地址属于同一个网段; 则所述第一电子设备和所述第二电子设备处于同一局域网中。
[权利要求 5] 根据权利要求 2所述的方法, 所述若所述云服务器检测所述第一电子 设备和所述第二电子设备处于同一局域网中包括: 所述云服务器检测所述第一电子设备和所述第二电子设备是否均可以 通过各自的私有 IP和同一设备建立局域网内的通信链路;
若检测到所述第一电子设备和所述第二电子设备均可以通过各自的私 有 IP和同一设备建立局域网内的通信链路;
则所述第一电子设备和所述第二电子设备处于同一局域网中。
[权利要求 6] 根据权利要求 2所述的方法, 所述云服务器检测所述第一电子设备和 所述第二电子设备是否处于同一局域网中的步骤包括:
检测到所述第一电子设备和所述第二电子设备所连接的路由器的 MA C地址是否相同,
若相同, 判定所述第一电子设备和所述第二电子设备属于同一局域网 若不同, 则检测所述第一电子设备和所述第二电子设备的各自的私有 IP与各自的子网掩码计算后得到地址是否属于同一个网段, 若属于同一个网段, 判定所述第一电子设备和所述第二电子设备属于 同一局域网,
若不属于同一个网段, 则检测所述第一电子设备和所述第二电子设备 是否均可以通过各自的私有 IP和同一设备建立局域网内的通信链路, 若可以建立局域网内的通信链路, 判定所述第一电子设备和所述第二 电子设备属于同一局域网,
若无法建立局域网内的通信链路, 判定所述第一电子设备和所述第二 电子设备不属于同一局域网。
[权利要求 7] 根据权利要求 1所述的方法, 所述云服务器将所述终端控制规则发送 给所述第一电子设备的步骤之前还包括:
所述云服务器接收并存储所述第一电子设备以及所述第二电子设备发 送的各自的局域网特征信息。
[权利要求 8] 一种设备控制方法, 应用于直接与云服务器建立网络链接的第一电子 设备, 所述方法包括:
所述第一电子设备接收所述云服务器发送的终端控制规则, 所述第一 电子设备为执行检测是否满足触发条件的电子设备, 所述终端控制规 则包括所述触发条件以及响应操作;
所述第一电子设备检测到满足所述触发条件时, 与直接与所述云服务 器建立网络链接的第二电子设备在局域网内建立通信链路; 所述第一电子设备基于所述通信链路向所述第二电子设备发送控制指 令, 以使所述第二电子设备执行所述响应操作。
[权利要求 9] 根据权利要求 8所述的方法, 所述第一电子设备检测到满足所述触发 条件时, 与所述第二电子设备在局域网内建立通信链路的步骤包括: 所述第一电子设备向所述云服务器发送获取所述第二电子设备的局域 网特征信息的指令;
所述第一电子设备接收所述云服务器返回的所述第二电子设备的局域 网特征信息;
所述第一电子设备基于所述局域网特征信息与所述第二电子设备在局 域网内建立通信链路。
[权利要求 10] 一种设备控制方法, 应用于物联网系统, 所述物联网系统包括云服务 器、 第一电子设备以及第二电子设备, 所述第一电子设备以及第二电 子设备均与所述云服务器直接建立网络链接, 所述方法包括: 所述云服务器接收用户终端发送的终端控制规则, 所述终端控制规则 包括触发条件以及响应操作;
所述云服务器向所述第一电子设备发送所述终端控制规则; 所述第一电子设备接收所述终端控制规则, 并检测到满足所述触发条 件时, 与所述第二电子设备在局域网内建立通信链路;
所述第一电子设备基于所述通信链路向所述第二电子设备发送控制指 令;
所述第二电子设备响应所述控制指令, 执行所述响应操作。
[权利要求 11] 一种设备控制装置, 运行于云服务器, 所述装置包括: 数据接收器, 用于接收用户终端发送的终端控制规则, 所述终端控制 规则包括触发条件以及响应操作;
数据下发器, 用于将所述终端控制规则发送给所述第一电子设备, 以 便所述第一电子设备在检测到满足所述触发条件后, 基于从所述云服 务器获取的所述第二电子设备的局域网特征信息, 与所述第二电子设 备在局域网内建立的通信链路, 并基于所述通信链路向所述第二电子 设备发送执行所述响应操作的指令。
[权利要求 12] —种设备控制装置, 运行于直接与云服务器建立网络链接的第一电子 设备, 所述装置包括:
数据接收器, 配置为于接收所述云服务器发送的终端控制规则, 所述 终端控制规则包括触发条件以及响应操作, 所述第一电子设备为执行 检测是否满足触发条件的电子设备;
链路建立器, 配置为检测到满足所述触发条件时, 与直接与所述云服 务器建立网络链接的第二电子设备在局域网内建立通信链路; 指令发送器, 配置为基于所述通信链路向所述第二电子设备发送控制 指令, 以使所述第二电子设备执行所述响应操作。
[权利要求 13] —种物联网系统, 所述物联网系统包括云服务器、 第一电子设备以及 第二电子设备, 所述第一电子设备以及第二电子设备均与所述云服务 器直接建立网络链接;
所述云服务器, 用于接收用户终端发送的终端控制规则, 所述终端控 制规则包括触发条件以及响应操作;
所述云服务器, 还用与向执行检测是否满足触发条件的第一电子设备 发送所述终端控制规则;
所述第一电子设备, 用于接收所述终端控制规则, 并检测到满足所述 触发条件时, 与所述第二电子设备在局域网内建立通信链路; 所述第一电子设备, 用于基于所述通信链路向所述第二电子设备发送 控制指令; 所述第二电子设备, 用于响应所述控制指令, 执行所述响应操作。
[权利要求 14] 一种云服务器, 包括一个或多个处理器以及存储器;
一个或多个程序, 其中所述一个或多个程序被存储在所述存储器中 并被配置为由所述一个或多个处理器执行, 所述一个或多个程序配置 用于执行权利要求 1-5任一所述的方法。
[权利要求 15] 一种电子设备, 包括一个或多个处理器以及存储器;
一个或多个程序, 其中所述一个或多个程序被存储在所述存储器中 并被配置为由所述一个或多个处理器执行, 所述一个或多个程序配置 用于执行权利要求 6或 7所述的方法。
PCT/CN2019/092716 2018-08-10 2019-06-25 设备控制方法、装置以及物联网系统 WO2020029694A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810919418.0A CN109189698B (zh) 2018-08-10 2018-08-10 设备控制方法、装置以及物联网系统
CN201810919418.0 2018-08-10

Publications (1)

Publication Number Publication Date
WO2020029694A1 true WO2020029694A1 (zh) 2020-02-13

Family

ID=64921256

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/092716 WO2020029694A1 (zh) 2018-08-10 2019-06-25 设备控制方法、装置以及物联网系统

Country Status (2)

Country Link
CN (1) CN109189698B (zh)
WO (1) WO2020029694A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189698B (zh) * 2018-08-10 2021-04-30 深圳绿米联创科技有限公司 设备控制方法、装置以及物联网系统
CN110784336A (zh) * 2019-09-25 2020-02-11 北京方研矩行科技有限公司 基于物联网的多设备智能定时延时场景设置方法及系统
CN111756786B (zh) * 2019-10-28 2023-09-01 广州极飞科技股份有限公司 通信方法、装置、系统及电子设备
CN111221273B (zh) * 2020-01-18 2021-06-04 武汉领普科技有限公司 基于无线开关的控制方法、系统、网关、墙壁开关与云端
CN113395192B (zh) * 2020-03-12 2023-03-21 杭州萤石软件有限公司 互联方法、系统及设备
CN111934143A (zh) * 2020-08-04 2020-11-13 广东科徕尼智能科技有限公司 一种基于智能插座的开关控制方法、设备及存储介质
CN113114778A (zh) * 2021-04-22 2021-07-13 北京字节跳动网络技术有限公司 一种数据传输方法、装置、电子设备以及存储介质
CN116074303A (zh) * 2021-11-04 2023-05-05 华为终端有限公司 远程开机方法、电子设备及系统
CN114301925B (zh) * 2021-12-31 2023-12-08 展讯通信(天津)有限公司 数据传输方法及相关设备
CN114664072B (zh) * 2022-03-18 2023-09-01 广州极飞科技股份有限公司 遥控链路管理系统、方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897860A (zh) * 2016-03-28 2016-08-24 联想(北京)有限公司 网络设备及信息处理方法
US20160309022A1 (en) * 2015-04-15 2016-10-20 Cyanogen Inc. System and method for identifying a triggering condition for a reminder to commence a live communications session
CN106453073A (zh) * 2016-09-30 2017-02-22 北京小米移动软件有限公司 传输信息的方法及装置
CN107171911A (zh) * 2017-06-29 2017-09-15 青岛海信智慧家居系统股份有限公司 智能家居设备的控制方法及装置
CN109189698A (zh) * 2018-08-10 2019-01-11 深圳绿米联创科技有限公司 设备控制方法、装置以及物联网系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7956570B2 (en) * 2008-01-07 2011-06-07 Coulomb Technologies, Inc. Network-controlled charging system for electric vehicles
US9992062B1 (en) * 2012-07-06 2018-06-05 Cradlepoint, Inc. Implicit traffic engineering
CN103546352A (zh) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 一种基于无线登录的远程控制方法及装置
CN107809355B (zh) * 2016-09-08 2020-11-03 北京京东尚科信息技术有限公司 一种智能设备联动控制的方法和系统
CN107566226B (zh) * 2017-07-31 2020-11-17 歌尔科技有限公司 一种控制智能家居的方法、装置和系统
CN108092862A (zh) * 2017-12-15 2018-05-29 四川爱联科技有限公司 基于物联网的WiFi自组网网络控制系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160309022A1 (en) * 2015-04-15 2016-10-20 Cyanogen Inc. System and method for identifying a triggering condition for a reminder to commence a live communications session
CN105897860A (zh) * 2016-03-28 2016-08-24 联想(北京)有限公司 网络设备及信息处理方法
CN106453073A (zh) * 2016-09-30 2017-02-22 北京小米移动软件有限公司 传输信息的方法及装置
CN107171911A (zh) * 2017-06-29 2017-09-15 青岛海信智慧家居系统股份有限公司 智能家居设备的控制方法及装置
CN109189698A (zh) * 2018-08-10 2019-01-11 深圳绿米联创科技有限公司 设备控制方法、装置以及物联网系统

Also Published As

Publication number Publication date
CN109189698B (zh) 2021-04-30
CN109189698A (zh) 2019-01-11

Similar Documents

Publication Publication Date Title
WO2020029694A1 (zh) 设备控制方法、装置以及物联网系统
AU2021269359B2 (en) Display method and apparatus
CN106686070B (zh) 一种数据库数据迁移方法、装置、终端及系统
US11758399B2 (en) Wireless local area network configuration using probe request frame having authentication information
WO2017148308A1 (zh) 一种物联网设备接入网络的方法、装置及系统
KR20200006104A (ko) 세션 관리 방법 및 장치
WO2016184267A1 (zh) 提供指定通信服务的方法、装置、终端和系统
WO2018196468A1 (zh) 一种实现数据业务的方法、装置及终端
WO2019019018A1 (zh) 智能设备控制方法、控制装置及控制系统
RU2679345C1 (ru) Способ и устройство для автоматического сетевого взаимодействия устройства шлюза
JP7245913B2 (ja) イベント処理方法、ロケーションアプリケーション機器、ユーザ機器、及びコンピュータプログラム
TWI568222B (zh) 路由器管理方法和裝置
WO2014044073A1 (en) Instant messaging method, terminal, server, and system
WO2015085487A1 (zh) 一种设备控制的方法和设备
JP6931706B2 (ja) メッセージレコードの結合と表示方法、および端末装置
WO2017185339A1 (zh) 无线连接方法、装置及系统
WO2015139401A1 (zh) 无线网络的建立方法、系统及无线路由装置
WO2013185696A2 (zh) 一种数据处理的方法与设备
WO2018053895A1 (zh) 物联网接入点基于类型的上行数据加密控制方法及装置
WO2017166038A1 (zh) 通信方法和终端
WO2020087450A1 (zh) 一种无线保真Wi-Fi接入方法、装置、电子设备及存储介质
WO2024077425A1 (zh) 移动网络感知方法、装置、存储介质、感知执行端以及感知应用功能网元
TWI477179B (zh) 具自動連線設定之無線裝置、無線網路架構及連網方法
WO2024093597A1 (zh) 一种配置多个设备的方法、设备和系统
JP2016129030A (ja) 通信システム、ネットワークストレージ、サーバ装置及びプログラム

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 19846838

Country of ref document: EP

Kind code of ref document: A1