WO2022194220A1 - Procédé de configuration de dispositifs de l'internet des objets (ido) et dispositif de l'ido - Google Patents

Procédé de configuration de dispositifs de l'internet des objets (ido) et dispositif de l'ido Download PDF

Info

Publication number
WO2022194220A1
WO2022194220A1 PCT/CN2022/081248 CN2022081248W WO2022194220A1 WO 2022194220 A1 WO2022194220 A1 WO 2022194220A1 CN 2022081248 W CN2022081248 W CN 2022081248W WO 2022194220 A1 WO2022194220 A1 WO 2022194220A1
Authority
WO
WIPO (PCT)
Prior art keywords
iot device
antenna
distance
message
iot
Prior art date
Application number
PCT/CN2022/081248
Other languages
English (en)
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 WO2022194220A1 publication Critical patent/WO2022194220A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/63Location-dependent; Proximity-dependent

Definitions

  • the present application relates to the field of the Internet of Things, and in particular to a method for setting an IoT device and an IoT device.
  • IoT Internet of Things
  • users' demands for IoT devices continue to increase. Some requirements can only be achieved when multiple IoT devices cooperate with each other. Before that, it is necessary to set up the multiple IoT devices involved.
  • manually setting each IoT device not only makes the setting cumbersome and takes a long time, but also requires users to have a better understanding of each IoT device.
  • users In practice, users generally do not have a better understanding of each IoT device. Users have to spend time learning about each IoT device. All of these result in a high time cost for the user to perform a setting, which brings inconvenience to the user and a poor user experience. Therefore, how to provide a convenient IoT device setting method and IoT device has become our demand.
  • the present application provides an IoT device setting method and IoT device.
  • the technical solution provided by the present application enables the user to easily complete the setting of the IoT device, without requiring the user to spend a lot of time, and without requiring the user to have a better understanding of each IoT device, which greatly facilitates the user.
  • a first IoT device communicates with the IoT server; the first IoT device includes: a processor; a memory; a first antenna, where the transmission distance of the first antenna is the first distance; the first distance is greater than the first preset transmission distance; the second antenna, The transmission distance of the second antenna is the second distance; the first antenna and the second antenna are different antennas; the second distance is less than or equal to the first preset transmission distance; and a computer program, wherein the computer program is stored in the memory, when the computer When the program is executed by the processor, the first IoT device executes: broadcasts the first message through the first antenna; the first message includes the first release information; receives the first response message from the second IoT device; the first response message Including first request information for the first published information; in response to the first response message, sending a second message to the second IoT device through the second antenna; receiving a notification message from the second IoT device or the IoT server.
  • the first preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security. In this way, the user can easily complete the setting of the IoT device, without requiring the user to spend a lot of time, and without requiring the user to have a better understanding of each IoT device, which greatly facilitates the user. In addition, safety is guaranteed.
  • the first antenna and the second antenna are connected to the same wireless communication chip of the first IoT device.
  • the wireless communication chip is a Wi-Fi chip, a Bluetooth chip or a ZigBee chip.
  • the first release information includes one of the following: information on soliciting group members, information on which a control relationship can be set, and information on which a function copy relationship can be set;
  • a request information includes one of the following: information of willingness to join a group, information of willingness to set up a control relationship, and information of willingness to set a function duplication relationship.
  • the second message when the first published information includes information on soliciting group members, the second message includes the first group ID; the first group ID is the first IoT The ID of one or more groups the device is in.
  • the first IoT device can be enabled to support the second IoT device to join the group of the first IoT device.
  • the second message when the first release information includes information on which a control relationship can be set or information on which a function duplication relationship can be set, the second message includes the first device ID; the first The device ID is the device ID of the first IoT device. In this way, the first IoT device can be made to support the operation of setting a control relationship or setting a function replication relationship.
  • the first IoT device after receiving the notification message from the second IoT device or the IoT server, the first IoT device further performs: outputting the notification message; Before broadcasting the first message, the first IoT device also performs: an input is received. In this way, the first IoT device can be enabled to notify the user of the setting result, and the first IoT device can be enabled to broadcast the first message under external input control.
  • a first IoT device communicates with the IoT server; the first IoT device includes: a processor; a memory; a first antenna, where the transmission distance of the first antenna is the first distance; the first distance is greater than the first preset transmission distance; the second antenna, The transmission distance of the second antenna is the second distance; the first antenna and the second antenna are different antennas; the second distance is less than or equal to the first preset transmission distance; and a computer program, wherein the computer program is stored in the memory, when the computer When the program is executed by the processor, the first IoT device is made to execute: broadcast the first message through the second antenna; the first message includes the first published information; within a fourth distance from the second IoT device, receive a message from the second IoT device.
  • the first response message of the IoT device includes the first request information for the first published information; in response to the first response message, the second message is sent to the second IoT device through the first antenna; Within the third distance of the IoT device, a notification message from the second IoT device is received; the third distance is greater than the fourth distance.
  • the first preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security. In this way, the user can easily complete the setting of the IoT device, without requiring the user to spend a lot of time, and without requiring the user to have a better understanding of each IoT device, which greatly facilitates the user. In addition, safety is guaranteed.
  • a first IoT device communicates with the IoT server; the first IoT device includes: a processor; a memory; a first antenna, where the transmission distance of the first antenna under the first transmission power is the first distance, and the first distance is greater than the first preset transmission distance; the transmission distance of the first antenna under the second transmission power is a second distance, and the second distance is less than or equal to the first preset transmission distance; the first transmission power is greater than the second transmission power; and a computer program, wherein the computer program stores On the memory, when the computer program is executed by the processor, the first IoT device is caused to execute: broadcast the first message through the first antenna at the first transmit power; the first message includes the first published information; The first response message of the IoT device; the first response message includes the first request information for the first published information; in response to the first response message, the second IoT device is sent through the first antenna at the second transmit power message; a notification message is received from the second Io
  • the first preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security. In this way, the user can easily complete the setting of the IoT device, without requiring the user to spend a lot of time, and without requiring the user to have a better understanding of each IoT device, which greatly facilitates the user. In addition, safety is guaranteed.
  • a second IoT device communicates with the IoT server; the second IoT device includes: a processor; a memory; a third antenna, and the transmission distance of the third antenna is the third distance; the third distance is greater than the second preset transmission distance; the fourth antenna, The transmission distance of the fourth antenna is a fourth distance; the third antenna and the fourth antenna are different antennas; the fourth distance is less than or equal to the second preset transmission distance; and a computer program, wherein the computer program is stored in the memory, when the computer When the program is executed by the processor, the second IoT device executes: receiving the first message from the first IoT device; the first message includes the first release information; randomly generating the first key; The IoT device sends a first response message; the first response message includes first request information for the first published information; receives a second message from the first IoT device; sends a second request message to the IoT server through the third antenna; The first request message or the second
  • the second preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security. In this way, the user can easily complete the setting of the IoT device, without requiring the user to spend a lot of time, and without requiring the user to have a better understanding of each IoT device, which greatly facilitates the user. In addition, safety is guaranteed.
  • the third antenna and the fourth antenna are connected to the same wireless communication chip of the second IoT device.
  • the wireless communication chip is a Wi-Fi chip, a Bluetooth chip, or a ZigBee chip.
  • the first release information includes one of the following: information on soliciting group members, information on which a control relationship can be set, and information on which a function replication relationship can be set;
  • the first request information includes one of the following: information of willingness to join a group, information of willingness to set a control relationship, and information of willingness to set a function duplication relationship.
  • the second message when the first published information includes information about soliciting group members, the second message includes the first group ID, and the second request message includes the first group ID and second device ID; the first group ID is the ID of one or more groups where the first IoT device is located, and the second device ID is the device ID of the second IoT device.
  • the second IoT device can be made to support the operation of realizing that the second IoT device joins the group of the first IoT device.
  • the second message when the first release information includes information on which a control relationship can be set or information on which a function duplication relationship can be set, the second message includes the first device ID, and the second message includes the first device ID.
  • the request message includes a first device ID and a second device ID; the first device ID is the device ID of the first IoT device, and the second device ID is the device ID of the second IoT device. In this way, the second IoT device can be made to support the operation of setting the control relationship or setting the function replication relationship.
  • a second IoT device communicates with the IoT server; the second IoT device includes: a processor; a memory; a third antenna, the transmission distance of the third antenna under the third transmission power is a third distance, and the third distance is greater than the second preset transmission distance; the transmission distance of the third antenna under the fourth transmission power is a fourth distance, and the fourth distance is less than or equal to the second preset transmission distance; the third transmission power is greater than the fourth transmission power; and a computer program, wherein the computer program stores On the memory, the computer program, when executed by the processor, causes the second IoT device to execute: receiving a first message from the first IoT device; the first message including the first release information; randomly generating the first key; The third antenna with four transmit powers sends a first response message to the first IoT device; the first response message includes first request information for the first published information; receives a second message from the first IoT device; The third antenna with three transmit powers sends
  • the second preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security. In this way, the user can easily complete the setting of the IoT device, without requiring the user to spend a lot of time, and without requiring the user to have a better understanding of each IoT device, which greatly facilitates the user. In addition, safety is guaranteed.
  • a method for setting a first IoT device is provided, which is applied to the first IoT device.
  • the first IoT device communicates with the IoT server; the first IoT device includes: a processor; a memory; a first antenna, where the transmission distance of the first antenna is the first distance; the first distance is greater than the first preset transmission distance; the second antenna, The transmission distance of the second antenna is the second distance; the first antenna and the second antenna are different antennas; the second distance is less than or equal to the first preset transmission distance; the method includes: broadcasting the first message through the first antenna; The first message includes first release information; a first response message from the second IoT device is received; the first response message includes first request information for the first release information; in response to the first response message, through the second antenna, Send a second message to the second IoT device; receive a notification message from the second IoT device or the IoT server.
  • the first preset transmission distance is the distance at which the first IoT device and the second Io
  • the first antenna and the second antenna are connected to the same wireless communication chip of the first IoT device.
  • the wireless communication chip is a Wi-Fi chip, a Bluetooth chip or a ZigBee chip.
  • a method for setting a first IoT device is provided, which is applied to the first IoT device.
  • the first IoT device communicates with the IoT server; the first IoT device includes: a processor; a memory; a first antenna, where the transmission distance of the first antenna is the first distance; the first distance is greater than the first preset transmission distance; the second antenna, The transmission distance of the second antenna is the second distance; the first antenna and the second antenna are different antennas; the second distance is less than or equal to the first preset transmission distance.
  • the method includes: broadcasting a first message through a second antenna; the first message includes first publishing information; receiving a first response message from the second IoT device within a fourth distance from the second IoT device; the first The response message includes first request information for the first release information; in response to the first response message, the second message is sent to the second IoT device through the first antenna; within a third distance from the second IoT device, the received A notification message from the second IoT device; wherein the third distance is greater than the fourth distance.
  • the first preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security.
  • a method for setting a first IoT device is provided, which is applied to the first IoT device.
  • the first IoT device communicates with the IoT server; the first IoT device includes: a processor; a memory; a first antenna, where the transmission distance of the first antenna under the first transmission power is the first distance, and the first distance is greater than the first preset transmission distance; the transmission distance of the first antenna under the second transmission power is the second distance, and the second distance is less than or equal to the first preset transmission distance; the first transmission power is greater than the second transmission power.
  • the method includes: broadcasting a first message through a first antenna under a first transmit power; the first message includes first release information; receiving a first response message from a second IoT device; Publishing first request information for information; in response to the first response message, sending a second message to the second IoT device through the first antenna under the second transmit power; receiving a notification message from the second IoT device or the IoT server.
  • the first preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security.
  • a method for setting a second IoT device is provided, which is applied to the second IoT device.
  • the second IoT device communicates with the IoT server; the second IoT device includes: a processor; a memory; a third antenna, and the transmission distance of the third antenna is the third distance; the third distance is greater than the second preset transmission distance; the fourth antenna, The transmission distance of the fourth antenna is the fourth distance; the third antenna and the fourth antenna are different antennas; and the fourth distance is less than or equal to the second preset transmission distance.
  • the method includes: receiving a first message from a first IoT device; the first message includes first release information; randomly generating a first key; sending a first response message to the first IoT device through a fourth antenna; The response message includes the first request information for the first published information; the second message from the first IoT device is received; the second request message is sent to the IoT server through the third antenna; the first request message from the IoT server is received or the second request message.
  • the second preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security.
  • a tenth aspect provides a method for setting a second IoT device, which is applied to the second IoT device.
  • the second IoT device communicates with the IoT server;
  • the second IoT device includes: a processor; a memory; a third antenna, the transmission distance of the third antenna under the third transmission power is a third distance, and the third distance is greater than the second preset transmission distance;
  • the transmission distance of the third antenna under the fourth transmission power is the fourth distance, and the fourth distance is less than or equal to the second preset transmission distance;
  • the third transmission power is greater than the fourth transmission power.
  • the method includes: receiving a first message from a first IoT device; the first message includes first release information; randomly generating a first key; a response message; the first response message includes the first request information for the first published information; the second message from the first IoT device is received; the second request is sent to the IoT server through the third antenna at the third transmit power message; the first request message or the second request message from the IoT server is received.
  • the second preset transmission distance is the distance at which the first IoT device and the second IoT device can exchange secret information in plaintext; the distance can ensure security.
  • a computer-readable storage medium includes a computer program that, when run on the first IoT device, causes the first IoT device to perform any one of the embodiments of the sixth aspect and the sixth aspect, the seventh aspect or the eighth aspect Methods.
  • a twelfth aspect provides a computer-readable storage medium.
  • the computer-readable storage medium includes a computer program which, when run on the second IoT device, causes the second IoT device to perform the method of the ninth or tenth aspect.
  • a thirteenth aspect provides a computer program product.
  • the computer program product is run on the first IoT device, the first IoT device is caused to perform the method of any one of the sixth aspect and the sixth aspect, the seventh aspect or the eighth aspect.
  • a fourteenth aspect provides a computer program product.
  • the computer program product is run on the second IoT device, the second IoT device is caused to perform the method of the ninth or tenth aspect.
  • the second preset transmission distance may be the same as or different from the first preset transmission distance.
  • FIG. 1 is a schematic diagram of a scenario of a method for setting an IoT device provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a hardware structure of a first IoT device in the IoT device setting method provided by the embodiment of the present application;
  • FIG. 3 is a schematic diagram of a hardware structure of a second IoT device in the IoT device setting method provided by the embodiment of the present application;
  • FIG. 4 is a schematic diagram of a principle of a wireless communication module and an antenna provided by an embodiment of the present application
  • FIG. 5 is another schematic schematic diagram of a wireless communication module and an antenna provided by an embodiment of the present application.
  • 6-8 are schematic diagrams of a specific structure of a wireless communication module and an antenna provided by an embodiment of the application;
  • FIG. 9 is a schematic diagram of a transmission distance of a wireless communication module and an antenna in a method for setting an IoT device provided by an embodiment of the present application;
  • FIGS 10-13 are schematic diagrams of communication interaction in Embodiment 1 of the IoT device setting method provided by the embodiments of the present application;
  • FIG. 14 is a schematic diagram illustrating the demonstration of Embodiment 1 in the IoT device setting method provided by the embodiment of the present application;
  • FIG. 19 is a schematic diagram illustrating the demonstration of Embodiment 2 in the IoT device setting method provided by the embodiment of the present application.
  • FIGS. 20-23 are schematic diagrams of communication interaction in Embodiment 3 of the IoT device setting method provided by the embodiments of the present application.
  • FIG. 24 is a schematic diagram illustrating the demonstration of Embodiment 3 in the IoT device setting method provided by the embodiment of the present application.
  • 25 is a schematic diagram of communication interaction between a first IoT device and a second IoT device using the Wi-Fi protocol in the IoT device setting method provided by the embodiment of the present application;
  • FIG. 26 is a schematic structural diagram of an IoT device provided by an embodiment of the present application.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • the term “connected” includes both direct and indirect connections unless otherwise specified. "First” and “second” are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features.
  • words such as “exemplarily” or “for example” are used to represent examples, illustrations or illustrations. Any embodiment or design described in the embodiments of the present application as “exemplarily” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplarily” or “such as” is intended to present the related concepts in a specific manner.
  • IoT devices are electronic devices that are remotely or remotely controlled and/or monitored via IoT.
  • smart home appliances are typical IoT devices.
  • Some requirements can only be achieved when multiple IoT devices cooperate with each other.
  • manually setting each IoT device not only makes the setting cumbersome and takes a long time, but also requires users to have a better understanding of each IoT device.
  • users In practice, users generally do not have a better understanding of each IoT device. Users have to spend time learning about each IoT device. All of these result in a high time cost for the user to perform a setting, which brings inconvenience to the user and a poor user experience. Therefore, how to provide a convenient IoT device setting method and IoT device has become our demand.
  • the present application provides an IoT device setting method and IoT device.
  • the technical solution provided by the present application enables the user to easily complete the setting of the IoT device, without requiring the user to spend a lot of time, and without requiring the user to have a better understanding of each IoT device, which greatly facilitates the user.
  • FIG. 1 is a schematic diagram of a scenario of a method for setting an IoT device provided by an embodiment of the present application.
  • an IoT device 100 (which may also be referred to as a first IoT device) and an IoT device 200 (which may also be referred to as a second IoT device) are connected to the IoT server 300 by wired communication or wireless communication.
  • the IoT server 300 may be a local server or a cloud server.
  • the cloud server can be a home cloud server.
  • the connection between the IoT device 100 and the above-mentioned server may be a wired connection or a wireless connection.
  • the connection between the IoT device 200 and the above-mentioned server may be a wired connection or a wireless connection.
  • both IoT device 100 and IoT device 200 communicate with IoT server 300 through a wireless connection.
  • both the IoT device 100 and the IoT device 200 are connected to the IoT server 300 through the same wireless router.
  • the IoT server 300 may not be provided.
  • the setting of the IoT device 100 to the IoT device 200 can be realized by the proximity of the IoT device 100 and the IoT device 200 .
  • the IoT device 100 can be set to the IoT device 200, so that the IoT device 200 joins the group.
  • the IoT device 100 can control an object, and the IoT device 100 can be set to the IoT device 200 by the proximity of the IoT device 100 and the IoT device 200, so that the IoT device 200 can also control the object.
  • the IoT device 100 and the IoT device 200 may be mutually disposed.
  • the IoT device 100 has a switch function
  • the IoT device 200 has a lighting function.
  • the settings of the IoT device 100 and the IoT device 200 can be completed, so that the IoT device 100 can control the IoT device. 200 lighting functions on and off.
  • the IoT device 100 or the IoT device 200 in this embodiment of the present application includes, but is not limited to, a smartphone, a smart headset, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch, a smart bracelet, a smart ring, smart glasses, a smart helmets), smart switches, smart lights, smart refrigerators, smart speakers, smart doorbells, smart door locks, smart curtains, etc.
  • Exemplary embodiments of IoT device 100 include, but are not limited to, piggybacking Portable electronic devices with Windows, Linux, or other operating systems.
  • the above-mentioned IoT device 100 or IoT device 200 may also be other portable electronic devices, such as a laptop computer (Laptop) or the like. It should also be understood that, in some other embodiments, the above-mentioned IoT device 100 or IoT device 200 may not be a portable electronic device, but a fixed installation or a desktop electronic device (eg, a desktop computer).
  • FIG. 2 shows a schematic diagram of a hardware structure of an IoT device 100 provided by an embodiment of the present application.
  • the IoT 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 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the IoT device 100 .
  • the IoT device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the charging management module 140 is used to receive charging input from the charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the wireless communication function of the IoT device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in IoT device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the IoT device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the IoT device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • 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 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the IoT device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the IoT device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the IoT device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the IoT 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 to save files like music, video etc in external memory card.
  • the IoT device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • FIG. 3 shows a schematic diagram of a hardware structure of an IoT device 200 provided by an embodiment of the present application.
  • the IoT device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charge management module 240, a power management module 241, a battery 242, an antenna 3, an antenna 4 , the wireless communication module 250, the sensor module 260, the input module 270, the output module 280 and so on.
  • USB universal serial bus
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the IoT device 200 .
  • the IoT device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the IoT device 200 may be a smart light, a smart TV, a smart speaker, or the like.
  • Processor 210 may include one or more processing units.
  • the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video Codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc.
  • application processor application processor
  • AP application processor
  • modem processor graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller a video Codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • NPU neural-network processing unit
  • different processing units may be independent components, or may be integrated in one or more processors.
  • IoT device 200 may also include one or more processors 210 .
  • the controller can generate an operation control signal according to the instruction operation code and the timing signal, and
  • the processor 210 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 (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal 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 230 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 230 can be used to connect a charger to charge the IoT device 200, and can also be used to transmit data between the IoT device 200 and peripheral devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the IoT device 200 .
  • the IoT device 200 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 240 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 240 may receive charging input from the wired charger through the USB interface 230 .
  • the charging management module 240 may receive wireless charging input through the wireless charging coil of the IoT device 200 . While the charging management module 240 is charging the battery 242 , the IoT device 200 can also be powered by the power management module 241 .
  • the power management module 241 is used to connect the battery 242 , the charging management module 240 and the processor 210 .
  • the power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory interface 220, the wireless communication module 250, and the like.
  • the power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 241 may also be provided in the processor 210 .
  • the power management module 241 and the charging management module 240 may also be provided in the same device.
  • the wireless communication function of the IoT device 200 may be implemented by the antenna 3, the antenna 4, the wireless communication module 250, and the like.
  • the wireless communication module 250 can provide wireless communication solutions including Wi-Fi, Bluetooth (BT), and wireless data transmission modules (eg, 433MHz, 868MHz, 915MHz) applied on the IoT device 200 .
  • the wireless communication module 250 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 250 receives the electromagnetic wave via the antenna 3 or the antenna 4 , filters and frequency modulates the electromagnetic wave signal, and sends the processed signal to the processor 210 .
  • the wireless communication module 250 can also receive the signal to be sent from the processor 210 , perform frequency modulation on it, amplify it, and then convert it into electromagnetic waves and radiate it out through the antenna 3 or the antenna 4 .
  • the IoT device 200 may send a broadcast message through the wireless communication module, and the broadcast message may carry the device identifier or product identifier of the IoT device 200, which is used by other surrounding IoT devices to discover the IoT device 200.
  • the IoT device 200 can also receive messages sent by other IoT devices through the wireless communication module.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the IoT device 200 .
  • the external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 221 may be used to store one or more computer programs including instructions.
  • the processor 210 may execute the above-mentioned instructions stored in the internal memory 221, thereby causing the IoT device 200 to execute the automatic unlocking method, various applications and data processing provided in some embodiments of the present application.
  • the internal memory 221 may include a code storage area and a data storage area. Among them, the code storage area can store the operating system.
  • the data storage area may store data and the like created during use of the IoT device 200 .
  • the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage components, flash memory components, universal flash storage (UFS), and the like.
  • the processor 210 may execute the instructions stored in the internal memory 221 and/or the instructions stored in the memory provided in the processor 210 to cause the IoT device 200 to execute the instructions provided in the embodiments of the present application Authentication methods, and other applications and data processing.
  • the input module 270 includes, but is not limited to, a keyboard, a touch screen (which may also be a touch display screen), a mouse, a camera, a laser pointer, a handwriting input pad, a microphone, and the like.
  • the microphone includes a single microphone, and also includes a microphone array.
  • the output module 280 includes, but is not limited to, a display screen, an LED light, a speaker, an earphone, a motor that generates vibration and its auxiliary devices, a heating device that generates heat, and the like.
  • the wireless communication method between the IoT device 100 and the IoT device 200 includes but is not limited to bluetooth low energy BLE, Wi-Fi awareness, ZigBee, etc. Way.
  • the wireless communication methods such as BLE and Wi-Fi aware are based on the interaction of the computer network media access control (medium access control, MAC) layer, also known as the data link layer protocol extension, and do not need to involve the upper layer of the MAC layer.
  • MAC computer network media access control
  • BLE is an ultra-low-power short-range wireless communication scheme for electronic devices launched by the Bluetooth Special Interest Group in 2016, which can communicate through the MAC layer.
  • Wi-Fi Aware Wi-Fi neighborhood aware network, Wi-Fi neighbor discovery network, NAN for short
  • Wi-Fi neighbor discovery network NAN for short
  • Wi-Fi Mesh communication technology which can bypass network infrastructure. (such as an access point (AP) or a cellular network), to achieve one-to-one, one-to-many or many-to-many connection communication between devices, and communication can also be achieved through the MAC layer.
  • this wireless communication method is different from the common Wi-Fi connection or Bluetooth connection.
  • wireless communication methods such as BLE and Wi-Fi aware can directly realize data interaction at the MAC layer of the computer network by sending beacon frames, without involving the network layer higher than the MAC layer in the computer network. data interaction.
  • the inter-device communication through wireless communication methods can not only improve the communication efficiency (the IoT device 100 does not need to complete steps such as Wi-Fi or Bluetooth connection, user identity login verification, etc. with the IoT device 200, no need to involve It can also improve the security of data interaction (data transmission at the MAC layer).
  • FIG. 4 shows the principle structure of a wireless communication module and an antenna provided by an embodiment of the present application.
  • the IoT device 200 may include a processor 210 , a wireless communication module 250 , an antenna 3 and an antenna 4 .
  • the antenna 3 also called a first antenna, such as a strong antenna
  • an antenna 4 also called a second antenna, such as a weak antenna
  • the wireless communication module 250 converts the electromagnetic wave received from the antenna 3 or the antenna 4 into a signal, and sends the signal to the processor 210 for processing; or the wireless communication module 250 receives the signal to be sent from the processor 210, via a strong antenna Or weak antennas turn into electromagnetic waves and radiate out.
  • the first transmission distance (such as 10 meters, 5 meters, etc., which can be set by the user) of the signal transmitted by the strong antenna is greater than the second transmission distance of the signal transmitted by the weak antenna (such as 0.2 meters, 0.3 meters, etc., specifically can be set by the user).
  • the second transmission distance of the signal transmitted by the weak antenna is less than or equal to the preset safety distance; wherein, the preset safety distance is the distance at which the user of the IoT device 200 exchanges secret information with the IoT device 200 through the IoT device 100 .
  • the preset safe distance is a safe distance for the user of the IoT device 200 to exchange secret information with the IoT device 200 through the IoT device 100 .
  • the preset safety distance may be 50cm, 40cm, 30cm, 20cm, and the like.
  • the secret information sent by the IoT device 200 can be received only when the IoT device 100 is within a range of less than or equal to the preset safe distance from the IoT device 200 .
  • security risks are reduced (eg, beyond 50 cm from the IoT device 200, the secret information will not be received by other devices).
  • the user of the IoT device 100 can approach the IoT device 100 within a preset safe distance of the IoT device 200 only when the surrounding is safe, thereby improving security.
  • the processor 210 may control the switching of strong antennas and weak antennas.
  • the IoT device 100 receives the signal sent by the IoT device 200 only when the distance between the IoT device 100 and the IoT device 200 is less than the first transmission distance; when the IoT device 200 adopts a weak antenna, Only when the distance between the IoT device 100 and the IoT device 200 is smaller than the second transmission distance, the mobile device receives the signal sent by the IoT device 200 .
  • the first emission distance is greater than the preset safety distance
  • the second emission distance is smaller than or equal to the preset safety distance.
  • the first transmission distance and the second transmission distance may be referred to as a first distance and a second distance, respectively.
  • FIG. 5 shows another principle structure of the wireless communication module and the antenna provided by the embodiments of the present application.
  • the IoT device 200 may include a processor 210 , a wireless communication module 250 and an antenna 3 .
  • the wireless communication module 250 includes a wireless module 251 and a variable impedance circuit module 252 .
  • Antenna 3 is used to transmit and receive wireless signals.
  • the variable impedance circuit module 252 may be a circuit composed of variable impedance, an integrated circuit, or the like.
  • the processor 210 controls and adjusts the impedance value of the variable impedance circuit module 252 to adjust the transmission power loaded on the antenna 3, thereby controlling the transmission distance when the antenna 3 transmits wireless signals.
  • the transmission power of the antenna 3 is the first transmission power, and the distance at which the wireless signal is transmitted by the antenna 3 is the first transmission distance (to achieve a strong antenna). function); when the resistance value of the variable impedance circuit module 252 is the second resistance value, the transmission power of the antenna 3 is the second transmission power, and the distance at which the antenna 3 transmits the wireless signal is the second transmission distance (to realize the function of the weak antenna) ).
  • the first transmit power is greater than the second transmit power; the first transmit distance is greater than a preset safe distance, and the second transmit distance is less than or equal to the preset safe distance.
  • the first transmission distance and the second transmission distance may be referred to as a first distance and a second distance, respectively.
  • other descriptions about the processor 210 and the wireless communication module 250 are the same as those in the example corresponding to FIG. 4 , and are not repeated here.
  • the IoT device 100 may also include the structure of the wireless communication module and the antenna.
  • the IoT device 100 may include a processor 110, a wireless communication module 160, an antenna 2 and an antenna 5 (the antenna 5 is not shown in FIG. 2; the antenna 5 is also connected to the wireless communication module 160).
  • the IoT device 100 may include a processor 110 , a wireless communication module 160 and an antenna 2 .
  • the specific description is the same as or similar to the description related to FIG. 4 and FIG. 5 , and will not be repeated here.
  • the IoT device 200 may not have the structure shown in FIG. 4 or FIG. 5
  • the IoT device 100 may have the structure shown in FIG. 4 or FIG. 5 .
  • the principle structures illustrated in one example corresponding to FIG. 4 and another example corresponding to FIG. 5 do not constitute specific limitations on the wireless communication module and the antenna in the IoT device 200 .
  • the structure of the wireless communication module and the antenna in the IoT device 200 may include more or less components than those shown in the figure, or combine some components, or separate some components, or arrange different components .
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the above content is also applicable to the structure of the wireless communication module and the antenna of the IoT device 100 ; details are not repeated here.
  • the above-mentioned strong antenna and weak antenna may share a part of the wiring, for example, as described in the embodiments shown in FIGS. 6-8 .
  • FIGS. 6-8 show three implementations of the strong antenna and the weak antenna in FIG. 4 .
  • the structure of a wireless communication module and an antenna of the IoT device 100 may also adopt the three manners shown in FIGS. 6-8 .
  • the strong antenna and the weak antenna can share a part of the wiring.
  • the strong antenna and the weak antenna in the electronic device in the embodiment of the present application can be switched by a radio frequency switch.
  • both the weak antenna and the radio frequency switch (the weak antenna shown in the dotted box in Figure 6 to Figure 8) can be placed in the shielding case or the weak antenna can be placed in the chip.
  • the purpose of the weak antenna in the embodiment of the present application is to reduce the transmission distance as much as possible.
  • the principle of constructing a weak antenna can be:
  • weak antenna The specific implementation of weak antenna can be used:
  • the above-mentioned shortening of the antenna means that the weak antenna is shorter than the strong antenna.
  • Three kinds of weak antenna structures are shown in FIGS. 6 to 8 , and the weak antenna is shown as the structure in the dotted box in FIGS. 6 to 8 .
  • the structures of the strong antennas in Figures 6 to 8 are connected to a filter circuit (eg, a ⁇ -type circuit), a matching circuit (eg, a ⁇ -type circuit) and a matching circuit through radio frequency input/output (RFIO) pins
  • External antenna body eg, the antenna body may be a length of metal trace.
  • the weak antenna a shown in the dashed box in FIG. 6 , the weak antenna b shown in the dashed box in FIG. 7 , and the weak antenna c shown in the dashed box in FIG. 8 have different lengths, but are shorter than the strong antennas.
  • the function of the filter circuit is to prevent interference, and the matching circuit is used to match the strong antenna.
  • the weak antenna a may be located in the shielding case.
  • the weak antenna a may include the RFIO pin of the Wi-Fi chip in the shield and the first switch of the two switches (the first switch is not connected to any device).
  • the weak antenna a may also include a trace between the RFIO pin and the first switch.
  • the two-way switch refers to the switch between the trace or RFIO pin and the filter circuit. Through the two-way switch, the trace or the RFIO pin can be connected or disconnected from the filter circuit.
  • the first switch is the switch shown in FIG. 6 that is connected to the RFIO pin or trace and disconnected from the filter circuit. It should be understood that the two-way switch in the embodiment of the present application may be a single-pole double-throw switch.
  • the weak antenna b may be located in the shielding case.
  • the weak antenna b may include the RFIO pin of the Wi-Fi chip in the shield, the first switch of the two switches (the first switch is connected to a resistor), and a matching device.
  • the weak antenna b may also include a first trace between the RFIO pin and the first switch.
  • the weak antenna b may also include a second trace between the matching device and the ground.
  • the matching device can be a resistor. Part of the electromagnetic wave radiation can be converted into heat energy and consumed by grounding the resistance, thereby reducing the radiation efficiency of the weak antenna b.
  • the two-way switch refers to the switch between the RFIO pin or the first wiring and the resistor and filter circuit. Through this switch, the RFIO pin or the first wiring can be connected to the resistor and disconnected from the filter circuit. On, or the RFIO pin or the first trace can be disconnected from the resistor and connected to the filter circuit.
  • the first switch is a switch connected to the matching device and disconnected from the filter circuit among the two switches.
  • the weak antenna c may be located in the shield.
  • the filter circuit matched by the chip is followed by a matching device (for example, a resistor) to the ground.
  • the weak antenna c may include the RFIO pin of the Wi-Fi chip in the shield, the filter circuit, the first switch of the two switches (the first switch is connected to a resistor), and a matching device (eg, a resistor).
  • the weak antenna c may also include a first trace between the RFIO pin and the filter circuit.
  • the weak antenna c may further include a second trace between the filter circuit and the matching device.
  • the two-way switch refers to the switch between the filter circuit inside the shield, the matching device, and the matching circuit outside the shield.
  • the first switch is a switch used to connect the filter circuit and the matching device in the shield.
  • the above-mentioned strong antennas in FIGS. 6 to 7 may include RFIO pins, the second switch of the two switches, a filter circuit, a matching circuit, and an antenna body externally connected to the matching circuit.
  • the strong antenna in Figures 6 to 7 may also include a trace between the RFIO pin and the second switch of the two switches.
  • the second switch is a switch used to connect the RFIO pin and the filter circuit.
  • the above-mentioned strong antenna in FIG. 8 may include an RFIO pin, a filter circuit, a second switch of the two switches, a matching circuit, and an antenna body externally connected to the matching circuit.
  • the strong antenna in Figure 8 can also include traces between the RFIO pins and the filter circuit.
  • the second switch is a switch used to connect the filter circuit inside the shield and the matching circuit outside the shield.
  • the wireless communication module 250 shown in FIG. 4 may be a Wi-Fi chip, or may be a Wi-Fi chip and its matching circuit.
  • the wireless module 251 shown in FIG. 5 may be a Wi-Fi chip, and the wireless communication module 250 shown in FIG. 5 may be a Wi-Fi chip and its matching circuit.
  • the above different weak antenna structures, together with the different transmit power (Tx power) settings of the Wi-Fi chip, can meet different ultra-short-range communication requirements (for example, from 10cm to 2m).
  • Table 1 shows the communication distances of different transmit powers when several different first antenna structures cooperate with the Wi-Fi chip.
  • Table 2 shows the communication distances of different transmit powers when several different first antenna structures cooperate with the Bluetooth chip.
  • Table 3 shows the communication distances of different transmit powers when several different first antenna structures cooperate with the ZigBee chip.
  • the difference between the maximum transmit power and the minimum transmit power of the antenna is correlated. If the minimum transmit power of the first device is reduced very low, the maximum transmit power will also be reduced, so that the distance requirement during normal operation cannot be met.
  • manufacturers of smart devices can use different first antenna structures and transmit powers to ensure the communication distance of the smart devices.
  • the thickness of the smart air conditioner shell may be different, so under the condition of the same first antenna structure and the same transmit power, the communication distance at which the smart air conditioner can be discovered may also be different.
  • Different smart device manufacturers can test the safe distance at which the smart device can be discovered according to the structure of the smart device itself, in conjunction with the structure of the first antenna and a certain transmit power.
  • the first device includes multiple chips (for example, the first device includes a Wi-Fi chip, a Bluetooth chip, and a ZigBee chip), then the Wi-Fi chip, Bluetooth chip, and ZigBee chip in the first device
  • the chip can share the first antenna and the second antenna in the above-mentioned FIG. 6; or, the Wi-Fi chip, the Bluetooth chip and the ZigBee chip in the first device can share the above-mentioned first antenna and the second antenna in FIG. 7; or,
  • the Wi-Fi chip, the Bluetooth chip, and the ZigBee chip in the first device may share the first antenna and the second antenna in FIG. 8 above.
  • the Wi-Fi chip, the Bluetooth chip and the ZigBee chip in the first device may not share the first antenna and the second antenna.
  • FIGS. 6 to 8 are the physical first antenna and the second antenna, and the first device can switch the physical first antenna and the second antenna through the radio frequency switch.
  • the first device may also have only one antenna physically, but logically includes a first antenna and a second antenna.
  • the first device may implement the logical first antenna and the second antenna by adjusting the transmit power of the physical antenna.
  • the transmit power of the physical antenna when the transmit power of the physical antenna is the first transmit power, it can be regarded as the first logical antenna; when the transmit power of the physical antenna is the second transmit power, it can be regarded as the second logical antenna an antenna; wherein the first transmit power is smaller than the second transmit power.
  • the first device can adjust the transmit power of the physical antenna by adjusting the device inside the chip.
  • the first device may adjust the transmit power of the physical antenna through a multi-stage amplifier inside the chip.
  • the first device can shield the multi-stage amplifier inside the chip by adjusting the value of the register, so that the transmit power of the physical antenna is the first transmit power, which can be regarded as the logical first antenna at this time; the first device It is also possible to adjust the value of the register so that the transmit power of the physical antenna is the second transmit power, which can be considered as the logical second antenna at this time; wherein, the first transmit power is smaller than the second transmit power.
  • the first device can also adjust the transmit power of the physical antenna through a peripheral circuit outside the chip.
  • the first antenna and the second antenna involved in the various embodiments of the present application may be the physical first antenna and the second antenna, or may be the logical first antenna and the second antenna.
  • the first device switching the logical first antenna and the second antenna can achieve the same effect as the first device switching the physical first antenna and the second antenna through a radio frequency switch.
  • the first distance as 5 meters and the second distance as 0.3 meters as an example.
  • the IoT device 200 adopts the first antenna, if the distance between the IoT device 200 (located at the center of the circle shown in FIG. 9 ) and the IoT device 100 is smaller than the first distance (eg, the IoT device 100 is located at position 1 shown in FIG.
  • the IoT device 200 can communicate with the IoT device 100; when the IoT device 200 adopts the second antenna, if the distance between the IoT device 200 (located at the center of the circle shown in FIG. 9 ) and the IoT device 100 is smaller than the second distance (such as the IoT device 100 At position 2) shown in FIG. 9 , IoT device 200 can communicate with IoT device 100 .
  • the antenna of the IoT device 200 when the antenna of the IoT device 200 is set to the first transmit power, if the distance between the IoT device 200 (located at the center of the circle shown in FIG. 9 ) and the IoT device 100 is smaller than the first distance (eg, the IoT device 100 is located in FIG. Position 1) shown, IoT device 200 can communicate with IoT device 100; when the antenna of IoT device 200 is set to the second transmit power, if IoT device 200 (located at the center of the circle shown in FIG. 9 ) and IoT device 100 The distance is less than the second distance (eg, the IoT device 100 is located at position 2 shown in FIG. 9 ), the IoT device 200 can communicate with the IoT device 100 .
  • the accuracy of the first distance and the second distance will not be so accurate, and there may be certain errors. In this way, the first distance or the second distance will present a range in actual operation, rather than a precise numerical distance. In addition, in different environments, even with the same antenna and the same transmit power, differences in the first distance and differences in the second distance may occur.
  • IoT device 100 and the IoT device 200 are used as examples to describe the application scenario, in fact, in the above application scenario, there may also be Other IoT devices, such as IoT device 400, etc.; the number of other IoT devices is not limited here.
  • IoT device 400 please refer to the relevant description of the IoT device 100 or the IoT device 200 . It will not be repeated here.
  • Embodiment 1 to Embodiment 3 of the IoT device setting method provided by the embodiments of the present application will be described in detail with reference to FIG. 10 to FIG. 24 .
  • Embodiment 1 relates to FIGS. 10-14 .
  • 10 to 13 illustrate a communication interaction process of setting an IoT device to join a group in the IoT device setting method provided by the embodiment of the present application.
  • Figure 14 shows the corresponding demonstration schematic.
  • the IoT device 100 is located in the first group, and the group ID of the first group is the first group ID.
  • Figures 10-13 respectively show the flow of four different implementations under the embodiment. The detailed description is given below with reference to FIGS. 10-13 .
  • the IoT device 100 has a first antenna (strong antenna) and a second antenna (weak antenna), the transmission distance of the first antenna is the first distance, and the transmission distance of the second antenna is the second antenna distance, wherein the first antenna and the second antenna are different antennas, and the first distance is greater than the second distance.
  • the method for setting IoT devices to join a group may include:
  • S701a broadcast a first message through the first antenna of the IoT device 100, where the first message includes information on soliciting group members and the MAC address of the IoT device 100.
  • the IoT device 100 receives an input to trigger the execution of S701a; the input can be a user input, for example, the IoT device 100 receives a touch input or voice input; the input can also be other smart devices message or instruction sent.
  • a group enter button is provided on the IoT device 100, and when the user presses the group enter button, the IoT device 100 is triggered to execute S701a; for another example, long pressing the power button of the IoT device 100 for more than 5 seconds triggers the IoT device 100 to execute S701a; For example, open the APP that remotely controls the IoT device 100 on the mobile device, use the mobile device to remotely connect to the IoT device 100, and trigger the IoT device 100 to execute S701a by operating the APP.
  • the input triggering the IoT device 100 to execute S701a further includes information of selecting groups in which one or more IoT devices 100 are located.
  • fixture A is located in the living room fixture group and the yellow light fixture group.
  • the APP for remote control of smart lighting on the mobile device, use the mobile device to remotely connect to lighting A, select the living room lighting group by operating the APP, and trigger lighting A to execute S701a for the living room lighting group .
  • the IoT device 100 may adopt various feasible communication protocols to implement broadcasting of the first message.
  • broadcast packets carry the real device address; in other communication protocol settings, broadcast packets do not carry the real device address.
  • the broadcast data packet in the Bluetooth low energy (bluetooth low energy) communication protocol, can carry the public device address, and the public device address is the real address of the Bluetooth device. Based on the public device address, it can be directly addressed to the Bluetooth device; the broadcast data packet can also carry a random device address (random device address). The random device address is not the real address of the Bluetooth device, and the Bluetooth device cannot be directly addressed based on the random device address.
  • the message content of the first message includes the real device address of the IoT device 100, for example, the MAC address.
  • the message content of the first message does not need to include the real device address of the IoT device 100, and directly uses the real device address carried in the message structure of the first message. Device address.
  • the IoT device 200 receives the first message within the transmission distance of the first antenna of the IoT device 100, and acquires the information of soliciting group members and the MAC address of the IoT device 100.
  • the IoT device 200 sends a first response message to the IoT device 100, where the first response message includes the information of willingness to join the group and the MAC address of the IoT device 200.
  • the IoT device 200 may also adopt a variety of feasible communication protocols to implement sending the first response message to the IoT device 100, which will not be repeated here.
  • the IoT device 100 receives the first response message, and obtains the information of willingness to join the group and the MAC address of the IoT device 200.
  • the IoT device 100 sends a second message to the IoT device 200 through the second antenna of the IoT device 100, where the second message includes a first group ID, and the first group ID is the group ID where the IoT device 100 is located.
  • the IoT device 100 includes a memory; the memory stores group information such as a group ID of a group to which the IoT device 100 belongs.
  • the IoT device 100 directly calls the first group ID stored in the memory to generate the second message.
  • the IoT device 100 does not locally store the group ID of the group to which the IoT device 100 belongs. Before executing S705a, the IoT device 100 obtains the first group ID from other devices (eg, the IoT server 300, or a mobile device connected to the IoT server 300).
  • the IoT device 100 obtains the first group ID from other devices (eg, the IoT server 300, or a mobile device connected to the IoT server 300).
  • the IoT device 100 when the IoT device 100 is triggered to execute S701a, the IoT device 100 sends a group ID acquisition request to the IoT server 300, and the group ID acquisition request includes the device identifier of the IoT device 100 and the information requested to acquire the group ID.
  • the IoT server 300 After receiving the group ID acquisition request, the IoT server 300 searches for a corresponding first group ID according to the device identifier of the IoT device 100 , and feeds back the first group ID to the IoT device 100 .
  • the IoT server 300 When the IoT server 300 cannot search for the corresponding group ID according to the device identification of the IoT device 100, the IoT server 300 creates a new group for the IoT device 100 (creates the first group), and generates a new group ID (creates the first group). a group ID).
  • the IoT device 100 determines that the IoT device 200 is willing to join the group according to the first response message, the IoT device 100 sends a group ID acquisition request to the IoT server 300 to request to acquire the first group ID.
  • the APP that remotely controls the IoT device 100 on the mobile device, and use the mobile device to remotely connect to the IoT device 100 and the IoT server 300 .
  • the mobile device sends the device identification of the IoT device 100 to the IoT server 300, and the IoT server 300 feeds back the first group ID of the IoT device 100 to the mobile device.
  • the mobile device sends the first group ID to the IoT device 100 and triggers the IoT device 100 to execute S701a.
  • the IoT device 200 receives the second message within the transmission distance of the second antenna of the IoT device 100, and acquires the first group ID.
  • the second antenna is a weak antenna, the transmission distance of the second antenna is short. Therefore, the second message can only be received when the IoT device 200 is close to the IoT device 100 . Therefore, the IoT device 100 sends the second message through the second antenna in S705a, which can effectively prevent the second message from being acquired by other devices, thereby greatly improving data security.
  • the IoT device 200 determines whether the IoT device 200 has joined the first group corresponding to the first group ID.
  • the IoT device 200 may have joined the first group of the IoT device 100 before S706a.
  • the IoT device 200 moves away from the IoT device 100 and approaches again, resulting in the execution of S702a, S703a, S704a, S705a and S706a again.
  • Joining a group operation is bound to cause a waste of processing resources. Therefore, after S707a, if the IoT device 200 has joined the first group corresponding to the first group ID, there is no need to perform subsequent group join operations, thereby avoiding repeated group join operations and waste of processing resources.
  • the IoT device 200 sends a group join message to the IoT server 300, where the group join message includes the first group ID and the device identifier of the IoT device 200 (Device ID).
  • Device ID can uniquely identify IoT devices.
  • the IoT server 300 receives the group join message, and obtains the first group ID and the Device ID of the IoT device 200.
  • the IoT server 300 determines whether the attribute corresponding to the IoT device 200 matches the attribute corresponding to the first group.
  • the IoT device 200 may not be the correct device that can join the first group.
  • light fixture A IoT device 100
  • the IoT server 300 continues to perform the operation of adding a group to add the light fixture C to the living room light fixture group, a setting error will occur. Therefore, after S710a, if the attribute corresponding to the IoT device 200 does not match the attribute corresponding to the first group, the IoT device 200 cannot join the first group, which can effectively avoid group setting errors.
  • the user can reset the group attributes and other attributes on the IoT device through the reset button on the IoT device or through the APP of the mobile device.
  • the fixture C was originally located in the bedroom fixture group, and the above reset method can be used to reset the fixture C to not belong to any group.
  • the attribute corresponding to the group may be an attribute in any form.
  • the attribute corresponding to the group can be one or more device function attributes (for example, lighting equipment, switch equipment), or one or more scene attributes (for example, living room equipment, bedroom equipment), and can also be manually marked by the user properties (for example, a device marked by the user as requiring priority control).
  • Devices in the same group have the same attributes corresponding to the group, but it does not mean that the devices in the same group must be of the same model.
  • fixture A (IoT device 100 ) is installed in a living room, the device function attribute of fixture A is fixture, and the location property of fixture A is living room.
  • the light fixture A is located in the living room light fixture group (the first group), and the group attributes of the living room light fixture group are light fixtures and living room.
  • the user wishes to install the light fixture B in the living room, the device function attribute of the light fixture B is light fixture, and the location property of the light fixture B is the living room.
  • the user triggers the fixture A to execute S701a. After that, the user brings the fixture B close to the fixture A, resulting in the execution of S701a-S709a (the fixture B acts as the IoT device 200).
  • the IoT server 300 determines that the device function attribute (lamp) and location attribute (living room) of the fixture B match the group attributes (lamp and living room) of the living room fixture group. Therefore, fixture B can be added to the living room fixture group.
  • lamp A (IoT device 100 ) is installed in a living room, the device function attribute of lamp A is lamp, and the location attribute of lamp A is living room.
  • Lamp A is located in the living room equipment group (the first group), and the group attribute of the living room equipment group is living room.
  • the user wants to place the smart speaker C in the living room, the device function attribute of the smart speaker C is the speaker, and the location attribute of the smart speaker C is the living room.
  • the user triggers the fixture A to execute S701a. After that, the user brings the smart speaker C close to the light fixture A, resulting in the execution of S701a-S709a (the smart speaker C acts as the IoT device 200).
  • the IoT server 300 determines that the location attribute (living room) of the smart speaker C matches the group attribute (living room) of the living room device group. Therefore, even if the smart speaker C and the lamp A are devices with completely different functions, the smart speaker C can also be added to the living room equipment group.
  • the IoT server 300 determines in S710a that the attribute corresponding to the IoT device 200 matches the attribute corresponding to the first group, the IoT server 300 sends a first feedback message to the IoT device 200, and the first feedback message includes the information of successful joining.
  • the IoT server 300 further records that the IoT device 200 joins the first group (for example, writes the Device ID of the IoT device 200 into the device list of the first group).
  • the IoT server 300 determines in S710a that the attribute corresponding to the IoT device 200 does not match the attribute corresponding to the first group, the IoT server 300 sends a second feedback message to the IoT device 200, and the second feedback message includes the information of the joining failure and reasons.
  • the IoT device 200 receives the first feedback message or the second feedback message.
  • the IoT device 200 sends a notification message to the IoT device 100 to notify the IoT device 100 of the result of the operation of joining the group.
  • the notification message sent by the IoT device 200 is used to notify the IoT device 100 that the IoT device 200 has successfully joined the group;
  • the notification message sent by the IoT device 200 is used to notify the IoT device 100 that the IoT device 200 cannot join the group and the reason.
  • the IoT device 100 may not be notified of the result of the operation of joining the group through the IoT device 200 .
  • the IoT server 300 notifies the IoT device 100 of the result of the operation of joining the group. In this way, the IoT device 200 may not execute S714a.
  • the group join message further includes the MAC address of the IoT device 100.
  • the IoT server 300 determines in S710a that the attribute corresponding to the IoT device 200 matches the attribute corresponding to the first group, the IoT server 300 records that the IoT device 200 joins the first group, and the IoT server 300 sends a message to the first group based on the MAC address of the IoT device 100.
  • the IoT device 100 sends a third feedback message, where the third feedback message includes information that the IoT device 200 has successfully joined the group.
  • the IoT server 300 determines in S710a that the attribute corresponding to the IoT device 200 does not match the attribute corresponding to the first group, the IoT server 300 sends a fourth feedback message to the IoT device 100 based on the MAC address of the IoT device 100.
  • the fourth feedback message Including the information and reasons for the failure of the IoT device 200 to join the group.
  • the IoT device 200 has a third antenna (strong antenna) and a fourth antenna (weak antenna), the transmission distance of the third antenna is the third distance, and the transmission distance of the fourth antenna is the fourth antenna distance, wherein the third antenna and the fourth antenna are different antennas, and the third distance is greater than the fourth distance.
  • the method for setting an IoT device to join a group may include:
  • S701b Broadcast a first message, where the first message includes information about recruiting group members and the MAC address of the IoT device 100.
  • the IoT device 100 also receives an input to trigger the execution of S701a; and, in S701b, the IoT device 100 can also adopt a variety of feasible communication protocols to broadcast the first message. , and will not be repeated here.
  • the IoT device 200 receives the first message, and acquires the information of the group member solicitation and the MAC address of the IoT device 100.
  • the IoT device 200 randomly generates a first key.
  • the first key is used for data interaction between the IoT device 100 and the IoT device 200 after encryption.
  • the generation of the first key and the specific implementation of encryption using the first key in subsequent steps are not limited, and a variety of different key schemes can be used to realize the generation of the first key and the encryption of the first key.
  • the first key is used for encryption in a later step.
  • the IoT device 200 sends a first response message to the IoT device 100 through the fourth antenna of the IoT device 200, where the first response message includes the information of willingness to join the group, the first key, and the MAC address of the IoT device 200.
  • the IoT device 200 may use multiple feasible communication protocols to implement sending the first response message to the IoT device 100, which will not be repeated here.
  • the IoT device 100 can receive the first response message only when the IoT device 200 is close to the IoT device 100. In this way, the first response message can be effectively prevented from being acquired by other devices.
  • the IoT device 100 receives the first response message within the transmission distance of the fourth antenna of the IoT device 200, and obtains the information of willingness to join the group, the first key, and the MAC address of the IoT device 200;
  • the key encrypts the first group ID to obtain the first information;
  • the first group ID is the ID of the first group where the IoT device is located.
  • S705b the specific manner in which the IoT device 100 obtains the first group ID may refer to S705a, which will not be repeated here.
  • the IoT device 100 sends a second message to the IoT device 200, where the second message includes the first information.
  • the IoT device 200 receives the second message and obtains the first information; decrypts the first information by using the first key, and obtains the first group ID.
  • S708b-S715b they are the same as S707a-S714a respectively, please refer to S707a-S714a; details are not repeated here.
  • a unified introduction is made at the end of the first embodiment.
  • the IoT device 100 has a first antenna (strong antenna) and a second antenna (weak antenna), the transmission distance of the first antenna is the first distance, and the transmission distance of the second antenna is the second antenna distance.
  • the first antenna and the second antenna are different antennas, and the first distance is greater than the second distance.
  • the IoT device 200 has a third antenna (strong antenna) and a fourth antenna (weak antenna), the transmission distance of the third antenna is the third distance, and the transmission distance of the fourth antenna is the fourth distance.
  • the third antenna and the fourth antenna are different antennas, and the third distance is greater than the fourth distance.
  • the method for setting an IoT device to join a group may include:
  • the IoT device 100 broadcasts a first message through the second antenna of the IoT device 100, where the first message includes the information of soliciting group members and the MAC address of the IoT device 100.
  • the IoT device 100 also receives an input to trigger the execution of S701a; and, in S701c, the IoT device 100 can also adopt a variety of feasible communication protocols to realize broadcasting the first message. , and will not be repeated here.
  • the second antenna is a weak antenna, the transmission distance of the second antenna is very short. Therefore, the first message can only be received when the IoT device 200 is close to the IoT device 100 . Therefore, it is possible to effectively prevent the first message from being acquired by other devices.
  • the IoT device 200 receives the first message within the transmission distance of the second antenna of the IoT device 100, and acquires the information of soliciting group members and the MAC address of the IoT device 100.
  • S703c-S705c they are the same as S703b-S705b respectively, please refer to S703b-S705b; details are not repeated here.
  • the IoT device 100 sends a second message to the IoT device 200 through the first antenna of the IoT device 100, where the second message includes the first information.
  • the IoT device 100 may also send the second message to the IoT device 200 through the second antenna of the IoT device 100.
  • the IoT device 200 receives the second message within the transmission distance of the first antenna of the IoT device 100, and obtains the first information; decrypts the first information with the first key, and obtains the first group ID.
  • S708c-S715c They are the same as S707a-S714a respectively, please refer to S707a-S714a; details are not repeated here.
  • the IoT device 100 has a first antenna, and the transmission distance of the first antenna under the first transmission power is the first distance; the transmission distance of the first antenna under the second transmission power is the second distance distance; the first transmission power is greater than the second transmission power, and the second distance is smaller than the first distance.
  • the IoT device 100 changes the transmission distance by switching the transmission power of the first antenna, thereby achieving the same technical effect as the implementation shown in FIG. 10 .
  • the method for setting an IoT device to join a group may include:
  • S701d-S714d Please refer to the description of S701a-S714a; the only difference is that in S701d-S714d, "the first antenna under the first transmit power” and “the first antenna under the second transmit power” are respectively replaced “First Antenna” and "Second Antenna” in S701a-S714a.
  • the method of changing the transmission distance by switching the transmission power of the antenna can also be used instead of switching the antenna. to change the launch distance method to obtain a new implementation.
  • the one-by-one description will not be expanded. New implementations are also within the scope of this application.
  • FIG. 14 is a schematic diagram illustrating a demonstration of setting an IoT device to join a group in the IoT device setting method provided by this embodiment of the present application.
  • the IoT device 200 and the IoT device 100 can be located in the same group ( the first group).
  • the first group For users, it is easy to operate, does not require users to spend more time, and does not require users to have a better understanding of each IoT device, which greatly facilitates users.
  • FIGS. 15-19 show schematic diagrams of communication interaction for setting an IoT device control relationship in the IoT device setting method provided by the embodiment of the present application.
  • Figure 19 shows the corresponding demonstration schematic.
  • Figures 15-18 respectively show the flow of four different implementations under the second embodiment. The detailed description will be given below with reference to FIGS. 15-18 .
  • the IoT device 100 has a first antenna (strong antenna) and a second antenna (weak antenna), the transmission distance of the first antenna is the first distance, and the transmission distance of the second antenna is the second antenna distance.
  • the first antenna and the second antenna are different antennas, and the first distance is greater than the second distance.
  • the method for setting the IoT device control relationship may include:
  • S901a-S902a Referring to S701a-S702a, it can be known that in S901a-S902a, the information on soliciting group members in S701a-S702a is replaced with information on which a control relationship can be set. The information that the control relationship can be set is used to indicate that the IoT device 100 is willing to set the control relationship with other devices.
  • S903a-S904a Referring to S703a-S704a, it can be known that in S903a-S904a, the information of willingness to join the group in S703a-S704a is replaced with the information of willingness to set a control relationship. The information of willingness to set up the control relationship is used to indicate that the IoT device 200 is willing to set up the control relationship with the IoT device 100 .
  • S905a-S906a Referring to S705a-S706a, S905a-S906a differs from S705a-S706a only in that: in S905a, the second message includes the first Device ID, and the first Device ID is the Device ID of the IoT device 100; In S906a, the IoT device 200 obtains the first Device ID.
  • the second antenna is a weak antenna and the transmission distance of the second antenna is very short, the second message can only be received when the IoT device 200 is close to the IoT device 100, so the IoT device 100 in S905a Sending the second message through the second antenna can effectively prevent the second message from being acquired by other devices, thereby greatly improving data security.
  • the IoT device 200 determines whether the IoT device 200 has set a control relationship with the IoT device corresponding to the first Device ID.
  • the IoT device 200 may have set a control relationship with the IoT device corresponding to the first Device ID. Therefore, after S907a, if the IoT device 200 has already set the control relationship with the IoT device corresponding to the first Device ID, there is no need to perform the subsequent operation of setting the control relationship, thereby avoiding the waste of processing resources.
  • the IoT device 200 If the IoT device 200 has not yet set a control relationship with the IoT device corresponding to the first Device ID, the IoT device 200 sends a set control relationship message to the IoT server 300.
  • the set control relationship message includes the first Device ID and the second Device ID, and the second Device ID.
  • the Device ID is the Device ID of the IoT device 200.
  • the IoT server 300 receives the setting control relationship message, and obtains the first Device ID and the second Device ID.
  • the IoT server 300 determines whether the control relationship attribute corresponding to the IoT device 200 matches the control relationship attribute corresponding to the IoT device 100.
  • the control relationship between the IoT device 200 and the IoT device 100 may not be properly set.
  • a control relationship is set between the switch B and the light fixture A (the switch B controls the light fixture A).
  • the control relationship cannot be set between the light fixture C and the light fixture A (there is no control/controlled relationship between the light fixture C and the light fixture A). If the control relationship is forcibly set, it will lead to The control relationship is set incorrectly.
  • control relationship attribute is used to describe what kind of device the current device can control, and what kind of device the current device can control.
  • control relationship attribute of switch B can be described as: it can output the first control signal (on signal) and the second control signal (off signal);
  • control relationship attribute of lamp A can be described as: it can accept the third control signal (corresponding to turn on the light) and the fourth control signal (corresponding to turn off the light).
  • the first control signal and the second control signal can match with the third control signal and the fourth control signal, so the control relationship attribute of switch B and the control relationship attribute of lamp A match each other.
  • control relationship attribute of switch B can be described as: it can output a first control signal (turn-on signal) and a second control signal (turn-off signal);
  • control relationship attribute of lamp A can be described as: it can accept a third control signal ( Corresponding to yellow light), the fourth control signal (corresponding to white light) and the fifth control signal (corresponding to turn off the light).
  • the first control signal and the second control signal cannot match with the third control signal, the fourth control signal and the fifth control signal. Therefore, the control relationship attribute of switch B and the control relationship attribute of lamp A do not match each other.
  • control relationship attribute of the button D can be described as: the first control signal can be output (the first control signal is output every time the button D is pressed); the control relationship attribute of the lamp A can be described as: the second control signal can be accepted (every time the second control signal is received, a switch is performed between yellow light, white light and light off).
  • the first control signal and the second control signal may match and correspond to each other, so the control relationship attribute of switch B and the control relationship attribute of lamp A match each other.
  • the IoT server 300 determines in S910a that the control relationship attribute corresponding to the IoT device 200 matches the control relationship attribute corresponding to the IoT device 100, the IoT server 300 sends a first feedback message to the IoT device 200, and the first feedback message includes the setting success Information.
  • the IoT server 300 further records the control relationship between the IoT device 200 and the IoT device 100.
  • the Device ID of the IoT device 200 is written into the control object list of the IoT device 100, or the Device ID of the IoT device 200 is written into the authorized control device list of the IoT device 100.
  • the IoT server 300 determines in S910a that the control relationship attribute corresponding to the IoT device 200 does not match the control relationship attribute corresponding to the IoT device 100, the IoT server 300 sends a second feedback message to the IoT device 200, and the second feedback message includes the setting The information and reason for the failure.
  • the IoT device 200 receives the first feedback message or the second feedback message.
  • the IoT device 200 sends a notification message to the IoT device 100 to notify the IoT device 100 of the result of setting the control relationship.
  • S913a-S914a they are the same as S713a-S714a respectively, please refer to S713a-S714a; no further description is given here.
  • the IoT device 200 has a third antenna (strong antenna) and a fourth antenna (weak antenna), the transmission distance of the third antenna is the third distance, and the transmission distance of the fourth antenna is the fourth antenna distance.
  • the third antenna and the fourth antenna are different antennas, and the third distance is greater than the fourth distance.
  • the method for setting the IoT device control relationship may include:
  • S901b-S902b Referring to S701b-S702b, it can be known that S901b-S902b replaces the information of soliciting group members in S701b-S702b with information that can set a control relationship.
  • S903b-S904b Referring to S703b-S704b, S903b-S904b replaces the information of willingness to join the group with the information of willingness to set a control relationship.
  • the IoT device 100 can receive the first response message only when the IoT device 200 is close to the IoT device 100, so the first response message can be effectively prevented from being acquired by other devices .
  • the IoT device 100 receives the first response message within the transmission distance of the fourth antenna of the IoT device 200, and obtains the information of the willingness to set the control relationship, the first key and the MAC address of the IoT device 200; using the first response message
  • the key encrypts the first Device ID to obtain the first information; the first Device ID is the Device ID of the IoT device 100.
  • the IoT device 100 sends a second message to the IoT device 200, where the second message includes the first information.
  • the IoT device 200 receives the second message, and obtains the first information; decrypts the first information with the first key, and obtains the first Device ID.
  • S908b-S915b the same as S907a-S914a respectively, please refer to S907a-S914a; details are not repeated here.
  • the IoT device 100 has a first antenna (strong antenna) and a second antenna (weak antenna), the transmission distance of the first antenna is the first distance, and the transmission distance of the second antenna is the second antenna distance.
  • the first antenna and the second antenna are different antennas, and the first distance is greater than the second distance.
  • the IoT device 200 has a third antenna (strong antenna) and a fourth antenna (weak antenna), the transmission distance of the third antenna is the third distance, and the transmission distance of the fourth antenna is the fourth distance.
  • the third antenna and the fourth antenna are different antennas, and the third distance is greater than the fourth distance.
  • the method for setting an IoT device to join a group may include:
  • S901c-S902c Referring to S701c-S702c, S901c-S902c replaces the information of soliciting group members in S701c-S702c with information that can set a control relationship.
  • the second antenna is a weak antenna and the transmission distance of the second antenna is very short, the first message can only be received when the IoT device 200 is close to the IoT device 100, so the first message can be effectively avoided. Obtained from other devices.
  • S903c-S905c they are the same as S903b-S905b respectively, please refer to S903b-S905b; details are not repeated here.
  • S906c same as S706c, please refer to S706c; details are not repeated here.
  • the IoT device 200 receives the second message within the transmission distance of the first antenna of the IoT device 100, and obtains the first information; decrypts the first information with the first key, and obtains the first Device ID.
  • S908c-S915c They are the same as S907a-S914a respectively, please refer to S907a-S914a; details are not repeated here.
  • the embodiment shown in FIG. 17 is the safest, and can effectively prevent the attacking device from being simulated as IoT device 100 or IoT device 200 .
  • the IoT device 100 has a first antenna, and the transmission distance of the first antenna under the first transmission power is the first distance; the transmission distance of the first antenna under the second transmission power is the second distance distance; the first transmission power is greater than the second transmission power, and the second distance is smaller than the first distance. Similar to the embodiment shown in FIG. 13 , in the embodiment shown in FIG. 18 , the IoT device 100 changes the transmission distance by switching the transmission power of the first antenna, thereby achieving the same technical effect as the embodiment shown in FIG. 15 . .
  • the method for setting an IoT device to join a group may include:
  • S901d-S914d Please refer to the descriptions of S901a-S914a; the only difference is that in S901d-S914d, "the first antenna under the first transmit power” and “the first antenna under the second transmit power” are respectively replaced “First Antenna” and "Second Antenna” in S901a-S914a.
  • the method of changing the transmission distance by switching the transmission power of the antenna can also be used instead of switching the antenna. to change the launch distance method to obtain a new implementation.
  • the one-by-one description will not be expanded. New implementations are also within the scope of this application.
  • FIG. 19 is a schematic diagram illustrating the setting of the IoT device control relationship in the IoT device setting method provided by the embodiment of the present application.
  • the IoT device 100 and the IoT device 200 are brought close to each other, that is, after touching, as shown in FIG. 19( b ), the IoT device 100 can control the IoT device 200 .
  • the IoT device 100 and the IoT device 200 may also be close to each other, that is, the IoT device 200 can control the IoT device 100 after touching each other.
  • the operation is simple, the user does not need to spend a lot of time, and the user does not need to have a better understanding of each IoT device, which greatly facilitates the user.
  • FIGS. 20-24 show schematic diagrams of communication interactions for setting a function replication relationship of an IoT device in the IoT device setting method provided by an embodiment of the present application.
  • Figure 24 shows the corresponding demonstration schematic.
  • Figures 20-23 respectively show the flow of four different implementations under the third embodiment. The detailed description will be given below with reference to FIGS. 20-23 .
  • the IoT device 100 has a first antenna (strong antenna) and a second antenna (weak antenna), the transmission distance of the first antenna is the first distance, and the transmission distance of the second antenna is the second antenna distance, wherein the first antenna and the second antenna are different antennas, and the first distance is greater than the second distance.
  • the method for setting the function replication relationship of the IoT device may include:
  • S1101a-S1102a Referring to S701a-S702a, the difference between S1101a-S1102a and S701a-S702a is that S1101a-S1102a replaces the information of soliciting group members in S701a-S702a with information that can set a function replication relationship.
  • the information of the settable function replication relationship is used to indicate that the IoT device 100 can replicate functions by other devices.
  • S1103a-S1104a Referring to S703a-S704a, S1103a-S1104a differs from S703a-S704a only in that S1103a-S1104a replaces the information of willingness to join the group in S703a-S704a with the information of willingness to set the function replication relationship.
  • the information of willingness to set the function duplication relationship is used to indicate that the IoT device 200 is willing to duplicate the function of the IoT device 100 .
  • S1105a-S1106a Referring to S705a-S706a, S1105a-S1106a differs from S705a-S706a only in that: in S1105a, the second message includes the first Device ID, and the first Device ID is the Device ID of the IoT device 100; In S1106a, the IoT device 200 obtains the first Device ID.
  • the second antenna is a weak antenna, the transmission distance of the second antenna is very short, and the second message can only be received when the IoT device 200 is close to the IoT device 100. Therefore, the IoT device 100 passes through in S1105a.
  • the second antenna sends the second message, which can effectively prevent the second message from being acquired by other devices, thereby greatly improving data security.
  • the IoT device 200 determines whether the IoT device 200 has already installed the function of the IoT device 100.
  • the IoT device 200 may have been provided with the functions of the IoT device 100. For example, after the IoT device 200 approaches the IoT device 100 and sets the function replication relationship, the IoT device 200 moves away from the IoT device 100 and approaches again, resulting in the re-execution of S1102a-S1106a. At this time, if the function replication relationship continues to be set repeatedly, it will inevitably cause processing resources of waste. Therefore, after S1107a, if the IoT device 200 has already been set with the function of the IoT device 100, there is no need to perform a subsequent operation of setting the function copy relationship, thereby avoiding waste of processing resources.
  • the IoT device 200 sends a function copy relationship setting message to the IoT server 300, where the function copy relationship setting message includes the first Device ID and the second Device ID, and the second Device ID is Device ID of the IoT device 200.
  • the IoT server 300 receives the setting function replication relationship message, and obtains the first Device ID and the second Device ID.
  • the IoT server 300 determines whether the function attribute corresponding to the IoT device 200 matches the function attribute corresponding to the IoT device 100.
  • the function replication relationship may not be set correctly between the IoT device 200 and the IoT device 100 .
  • the function of the light fixture A (IoT device 100 ) is to accept the control of the switch C.
  • the light fixture B acts as the IoT device 200 close to the light fixture A
  • the light fixture B replicates the function of the light fixture A
  • the function of the light fixture B is to accept the control of the switch C.
  • switch D as an IoT device 200
  • switch D cannot copy the function of fixture A, which is a controlled device. If the function is forcibly copied, the function setting will be wrong.
  • the function of the light fixture A is to switch between white light, yellow light, and light off under the control of button C.
  • a control signal will be output, and the light fixture A will switch states each time it receives the control signal of the button C.
  • Lamp B only has two states: off and on, and lamp B does not switch between the two states based on an input signal, but switches to the state based on the recognition of the input signal (when the input signal is the light-on signal. Turn on the light, turn off the light when the input signal is the light off signal).
  • fixture B replicates the function of fixture A. Since fixture B's input control settings are not consistent with fixture A, button C cannot directly control fixture B in practical applications, so fixture B cannot be copied correctly. Lamp A function.
  • the function attribute referred to in S1110a is an attribute related to the function of the device.
  • the control input settings of the equipment for example, the output item settings of switches, the number of output items, the output format, etc.
  • the control input settings of the equipment for example, the input item settings of lamps, input item identification settings, etc.
  • the IoT server 300 After the IoT server 300 determines in S1110a that the function attribute corresponding to the IoT device 200 matches the function attribute corresponding to the IoT device 100, the IoT server 300 sends a first feedback message to the IoT device 200, and the first feedback message includes information that the setting is successful .
  • the IoT server 300 further records the function replication relationship between the IoT device 200 and the IoT device 100.
  • the controlled object list/controlled object list of the IoT device 100 is copied.
  • a control object list/controlled object list is created for the IoT device 200.
  • the control object list/controlled object list of the IoT device 100 is used to overwrite the original control object list/controlled object list of the IoT device 200.
  • the controlled object/controlled object of the IoT device 100 is added to the controlled object list/controlled object list of the IoT device 200.
  • the IoT server 300 determines in S1110a that the function attribute corresponding to the IoT device 200 does not match the function attribute corresponding to the IoT device 100, the IoT server 300 sends a second feedback message to the IoT device 200, and the second feedback message includes the setting failure information and why.
  • the IoT device 200 receives the first feedback message or the second feedback message.
  • the IoT device 200 sends a notification message to the IoT device 100 to notify the IoT device 100 of the result of setting the function replication relationship.
  • S1113a-S1114a are the same as or similar to S713a-S714a respectively, please refer to S713a-S714a; details are not repeated here.
  • the IoT device 200 has a third antenna (strong antenna) and a fourth antenna (weak antenna), the transmission distance of the third antenna is the third distance, and the transmission distance of the fourth antenna is the fourth antenna distance.
  • the third antenna and the fourth antenna are different antennas, and the third distance is greater than the fourth distance.
  • the method for setting the function replication relationship of the IoT device may include:
  • S1101b-S1102b Referring to S701b-S702b, S1101b-S1102b differs from S701b-S702b only in that the information on soliciting group members in S701b-S702b is replaced with information that can set a function replication relationship.
  • S1103b-S1104b Referring to S703b-S704b, S1103b-S1104b differs from S703b-S704b only in that the information of willingness to join the group in S701b-S702b is replaced with the information of willingness to set the function replication relationship.
  • the IoT device 100 can receive the first response message only when the IoT device 200 is close to the IoT device 100, so the first response message can be effectively prevented from being acquired by other devices .
  • the IoT device 100 receives the first response message within the transmission distance of the fourth antenna of the IoT device 200, and obtains the information that is willing to set the function replication relationship, the first key and the MAC address of the IoT device 200; A key encrypts the first Device ID to obtain the first information; the first Device ID is the Device ID of the IoT device 100.
  • the IoT device 100 sends a second message to the IoT device 200, where the second message includes the first information.
  • the IoT device 200 receives the second message and obtains the first information; decrypts the first information with the first key, and obtains the first Device ID.
  • S1108b-S1115b the same as S1107a-S1114a respectively, please refer to S1107a-S1114a; details are not repeated here.
  • the IoT device 100 has a first antenna (strong antenna) and a second antenna (weak antenna), the transmission distance of the first antenna is the first distance, and the transmission distance of the second antenna is the second antenna distance.
  • the first antenna and the second antenna are different antennas, and the first distance is greater than the second distance.
  • the IoT device 200 has a third antenna (strong antenna) and a fourth antenna (weak antenna), the transmission distance of the third antenna is the third distance, and the transmission distance of the fourth antenna is the fourth distance.
  • the third antenna and the fourth antenna are different antennas, and the third distance is greater than the fourth distance.
  • the method for setting an IoT device to join a group may include:
  • S1101c-S1102c Referring to S701c-S702c, S1101c-S1102c differs from S701c-S702c only in that the information on soliciting group members in S701c-S702c is replaced with information that can set a function replication relationship.
  • the second antenna is a weak antenna and the transmission distance of the second antenna is very short, the first message can only be received when the IoT device 200 is close to the IoT device 100, so the first message can be effectively avoided. acquired by other devices.
  • S1103c-S1105c they are the same as S1103b-S1105b respectively, please refer to S1103b-S1105b; details are not repeated here.
  • S1106c same as S706c, please refer to S706c; details are not repeated here.
  • the IoT device 200 receives the second message within the transmission distance of the first antenna of the IoT device 100, and obtains the first information; decrypts the first information with the first key, and obtains the first Device ID.
  • S1108c-S1115c they are the same as S1107a-S1114a respectively, please refer to S1107a-S1114a; details are not repeated here.
  • the IoT device 100 has a first antenna, and the transmission distance of the first antenna under the first transmission power is the first distance; the transmission distance of the first antenna under the second transmission power is the second distance distance.
  • the first transmit power is greater than the second transmit power, and the second distance is less than the first distance.
  • the IoT device 100 changes the transmission distance by switching the transmission power of the first antenna, thereby achieving the same technical effect as the embodiment shown in FIG. 20 . .
  • the method for setting an IoT device to join a group may include:
  • S1101d-S1114d Please refer to the descriptions of S1101a-S1114a; the only difference is that in S1101d-S1114d, "the first antenna under the first transmit power” and “the first antenna under the second transmit power” are respectively replaced “First Antenna” and "Second Antenna” in S901a-S914a.
  • the method of changing the transmission distance by switching the transmission power of the antenna can also be used instead of switching the antenna. to change the launch distance method to obtain a new implementation.
  • the one-by-one description will not be expanded. New implementations are also within the scope of this application.
  • FIG. 24 is a schematic diagram illustrating the setting of a function replication relationship of an IoT device in the IoT device setting method provided by the embodiment of the present application.
  • the IoT device 100 controls the IoT device 400, and the IoT device 200 and the IoT device 100 come close to each other, that is, after touching, as shown in (b) of FIG. 24 , the IoT device 100 and the IoT device 200 can control the IoT device 400.
  • the operation is simple, the user does not need to spend a lot of time, and the user does not need to have a better understanding of each IoT device, which greatly facilitates the user.
  • Wi-Fi aware is a preferred way to realize data interaction between the IoT device 100 and the IoT device 200 .
  • the maintenance work of the NAN mechanism and the service discovery work are carried out in the discovery window (discovery window, DW) agreed by the NAN mechanism, and the service discovery is realized by sending a service discovery frame (service discovery frame, SDF) message.
  • SDF messages can be sent to each other by sending Beacon frames.
  • An indication bit is included in the SDF message, which is used to indicate what kind of SDF message the SDF message is.
  • the types of the SDF message include: a Publish message, which is used for publishing the services that the NAN device can provide, or for replying Received other NANs; subscribe (Subscribe) message, which is used to find the service that needs to be used; Reply (Follow-Up) message, which is used to reply to the received SDF Publish message, or used to negotiate more information.
  • FIG. 25 is a schematic diagram of communication interaction between a first IoT device and a second IoT device using the Wi-Fi protocol in the IoT device setting method provided by the embodiment of the present application.
  • the first message is broadcast to the IoT device 200 (for example, at S701a, S701b, S701c, S701d, S901a, S901b, S901c, S901d, S1101a, S1101b, In S1101c and S1101d, when the IoT device 100 broadcasts the first message), the IoT device 100 publishes the first message based on the NAN SDF Publish message.
  • IoT device 100 interacts with IoT device 200 for the first time (eg, in S701a, S701b, S701c, S701d, S901a, S901b, S901c, S901d, S1101a, S1101b, S1101c, S1101d, steps after IoT device 100 ), the IoT device 100 and the IoT device 200 perform data interaction based on the NAN SDF Follow-up message.
  • the embodiments of the present application provide an IoT device setting method and an IoT device, which can conveniently and quickly complete the IoT device setting, reduce overall time-consuming, simplify operations, improve efficiency, and improve user experience.
  • the automatic printing method provided in the embodiment of the present application is applicable to the following IoT devices.
  • FIG. 26 is a schematic structural diagram of an IoT device provided by this application.
  • an IoT device includes at least one processor, memory, and a wireless communication module.
  • the processor is coupled with the memory and the wireless communication module, and the coupling in this embodiment of the present application may be a communication connection, an electrical connection, or other forms.
  • the memory is used to store program instructions.
  • the wireless communication module is used to establish a wireless connection.
  • the processor is configured to call the program instructions stored in the memory, so that the IoT device executes the steps performed by the IoT device in the IoT device setting method provided in the embodiment of the present application. It should be understood that the IoT device can be used to implement the IoT device setting method provided by the embodiments of the present application, and the relevant features can be referred to above, which will not be repeated here.
  • the present application provides a computer program product including instructions, which, when the computer program product runs on an IoT device, causes the IoT device to execute the steps performed by the IoT device in the IoT device setting method provided by the embodiments of the present application.
  • the present application provides a computer-readable storage medium, including instructions, which, when the instructions are executed on an IoT device, cause the IoT device to perform the steps performed by the IoT device in the IoT device setting method provided by the embodiments of the present application.
  • the embodiments of the present application may be implemented in hardware, or in a manner of hardware and software.
  • the above-described functions can be stored in a computer-readable medium.
  • the medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

La présente demande concerne un procédé de configuration de dispositifs de l'IDO et un dispositif de l'IDO. Le dispositif de l'IDO communique avec un serveur de l'IDO. Le dispositif de l'IDO comprend : un processeur; une première antenne à distance de transmission supérieure à une distance prédéfinie de transmission; une seconde antenne à distance de transmission inférieure à la distance prédéfinie de transmission; et un programme informatique en mémoire. Lors de l'exécution du programme informatique par le processeur, le dispositif de l'IDO est conçu pour exécuter les opérations consistant : à diffuser un premier message au moyen de la première antenne; à recevoir un premier message de réponse; en réponse au premier message de réponse, à envoyer un second message au moyen de la seconde antenne; et à recevoir un message de notification. Selon la présente demande, la configuration entre des dispositifs de l'IDO peut être achevée commodément et rapidement, les opérations sont simplifiées, du temps est économisé, un utilisateur profite de commodité, l'expérience d'utilisateur est améliorée et la sécurité est améliorée.
PCT/CN2022/081248 2021-03-19 2022-03-16 Procédé de configuration de dispositifs de l'internet des objets (ido) et dispositif de l'ido WO2022194220A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110296691.4 2021-03-19
CN202110296691.4A CN115175206A (zh) 2021-03-19 2021-03-19 一种IoT设备设置方法及IoT设备

Publications (1)

Publication Number Publication Date
WO2022194220A1 true WO2022194220A1 (fr) 2022-09-22

Family

ID=83322062

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/081248 WO2022194220A1 (fr) 2021-03-19 2022-03-16 Procédé de configuration de dispositifs de l'internet des objets (ido) et dispositif de l'ido

Country Status (2)

Country Link
CN (1) CN115175206A (fr)
WO (1) WO2022194220A1 (fr)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170006595A1 (en) * 2015-07-03 2017-01-05 Kiban Labs, Inc. Embedded internet of things (iot) hub for integration with an appliance and associated systems and methods
CN112153721A (zh) * 2020-08-05 2020-12-29 华为技术有限公司 一种无线路由设备接入方法及无线路由设备
CN114079862A (zh) * 2020-08-05 2022-02-22 华为技术有限公司 一种自动控制方法、电子设备及计算机可读存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170006595A1 (en) * 2015-07-03 2017-01-05 Kiban Labs, Inc. Embedded internet of things (iot) hub for integration with an appliance and associated systems and methods
CN112153721A (zh) * 2020-08-05 2020-12-29 华为技术有限公司 一种无线路由设备接入方法及无线路由设备
CN114079862A (zh) * 2020-08-05 2022-02-22 华为技术有限公司 一种自动控制方法、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN115175206A (zh) 2022-10-11

Similar Documents

Publication Publication Date Title
WO2020253695A1 (fr) Procédé d'accès à un dispositif domestique intelligent et dispositif électronique
US11979251B2 (en) Home device control method and device
CN113630297B (zh) 一种控制第一设备的方法及终端
CN113163379B (zh) 一种发现及配网的方法和电子设备
WO2021052178A1 (fr) Procédé et dispositif de connexion wi-fi
WO2021104114A1 (fr) Procédé de fourniture de service d'accès à un réseau wi-fi (wireless fidelity), et dispositif électronique
WO2021063189A1 (fr) Procédé et système pour la synchronisation des informations entre plusieurs dispositifs, et dispositif électronique
WO2022143031A1 (fr) Procédé d'authentification d'identité, dispositif électronique et support de stockage lisible par ordinateur
WO2022057558A1 (fr) Procédé et dispositif de configuration par lots d'appareils électroménagers
WO2021104448A1 (fr) Procédé de synchronisation d'informations de clé, système et dispositif
WO2021043277A1 (fr) Procédé permettant de configurer un paramètre de connexion bluetooth, et dispositif électronique
CN116114239A (zh) 音量管理的方法及电子设备
WO2022068601A1 (fr) Procédé de réparation de réseau, dispositif électronique et terminal mobile
WO2022194220A1 (fr) Procédé de configuration de dispositifs de l'internet des objets (ido) et dispositif de l'ido
WO2022028333A1 (fr) Procédé de commande automatique, dispositif électronique et support de stockage lisible par ordinateur
WO2022052760A1 (fr) Procédé de configuration d'enceinte de haut-parleur combinée, enceinte de haut-parleur et dispositif électronique
WO2022042170A1 (fr) Dispositif de l'internet des objets et procédé d'autorisation associé
WO2022161143A1 (fr) Procédé de partage de contacts, dispositif mobile, dispositif électronique et système de communication
CN114285737B (zh) 配置设备的方法及设备
WO2023185593A1 (fr) Procédé de connexion de dispositif, dispositif électronique et système
WO2024114274A1 (fr) Procédé de configuration de réseau de dispositif ido et appareil associé
CN115022853B (zh) 一种设备发现方法及电子设备
WO2024093597A1 (fr) Procédé de configuration d'une pluralité de dispositifs, dispositif et système
WO2023025059A1 (fr) Système et procédé de communication
WO2022194105A1 (fr) Procédé de connexion de dispositif, dispositif terminal et système distribué

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

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

Country of ref document: EP

Kind code of ref document: A1