WO2024114274A1 - Procédé de configuration de réseau de dispositif ido et appareil associé - Google Patents

Procédé de configuration de réseau de dispositif ido et appareil associé Download PDF

Info

Publication number
WO2024114274A1
WO2024114274A1 PCT/CN2023/128920 CN2023128920W WO2024114274A1 WO 2024114274 A1 WO2024114274 A1 WO 2024114274A1 CN 2023128920 W CN2023128920 W CN 2023128920W WO 2024114274 A1 WO2024114274 A1 WO 2024114274A1
Authority
WO
WIPO (PCT)
Prior art keywords
iot device
anchor
room
iot
network configuration
Prior art date
Application number
PCT/CN2023/128920
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 WO2024114274A1 publication Critical patent/WO2024114274A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]

Definitions

  • the present application relates to the field of electronic technology, and in particular to a method for configuring a network for IoT devices and related devices.
  • IOT Internet of Things
  • users' electronic devices such as mobile phones, tablets or computers, etc.
  • smart home applications Application, APP
  • the premise of control is that these IOTs have been networked and bound to the above-mentioned smart home APP.
  • the present application provides an IoT device network configuration method and related devices, which can automatically determine the spatial affiliation of IoT devices while configuring IoT devices in batches, thereby simplifying user operations and effectively improving network configuration efficiency and user experience.
  • the present application provides an IoT device network configuration method, which is applied to a first anchor device located in a first room, where the first anchor device is any one of a plurality of anchor devices located in different rooms, including: the first anchor device detects whether the first IoT device is an IoT device to be configured in the first room based on a first signal received from the first IoT device; when it is detected that the first IoT device is an IoT device to be configured in the first room, the first anchor device sends network configuration information to the first IoT device; after determining that the network configuration of the first IoT device is completed, the first anchor device sends network configuration completion information to the terminal device, and the network configuration completion information is used to indicate that the first IoT device has completed network configuration, and that the room to which the first IoT device belongs is the first room where the first anchor device is located.
  • anchor devices are configured in each room.
  • Each anchor device can detect the IoT devices to be networked in the same room and network them. After the network is networked, the anchor device will feedback the network configuration completion information of the IoT device to the terminal device. Based on the network configuration completion information of the IoT device, the terminal device can determine that the room to which the IoT device belongs is the room corresponding to the anchor device. In this way, it is possible to realize batch network configuration of IoT devices in each room and automatically determine the room to which the IoT device belongs, thereby improving the network configuration efficiency of IoT devices, simplifying user operations, and effectively improving user experience.
  • the method further includes: the first anchor device receives a detection request sent by the terminal device, the detection request is used to trigger the anchor device to detect the IoT device to be networked in the same room; the first anchor device detects whether the first IoT device is the IoT device to be networked in the first room based on the received signal of the first IoT device, including: in response to the detection request, the first anchor device detects whether the first IoT device is the IoT device to be networked in the first room based on the received signal of the first IoT device.
  • the detection request sent by the terminal device can trigger each anchor device to perform batch network configuration on the IoT devices in the room, thereby improving the network configuration efficiency of the IoT device and simplifying user operations.
  • the first anchor device detects whether the first IoT device is an IoT device to be networked in the first room based on the first signal received from the first IoT device, including: the first anchor device detects whether the first IoT device is an IoT device to be networked in the first room based on the first signal received from the first IoT device by the first short-range communication module; the network configuration information is used for the second short-range communication module of the first IoT device to access the network.
  • the first short-range communication module is used to detect IoT devices and configure the network
  • the second short-range communication module is used for IoT devices to access the network; the two can be the same communication module or different communication modules. In this way, the flexibility of the IoT device network configuration process is improved.
  • the method further includes: the WiFi communication module of the first anchor device starts the first hotspot; the first hotspot of the first anchor device establishes a WiFi connection with the first IoT device; the first signal includes a signal sent by the first IoT device and received by the first hotspot; the first anchor device sends network configuration information to the first IoT device, including: the first hotspot of the first anchor device sends network configuration information to the first IoT device.
  • the IoT device can directly access the first hotspot of the anchor device, and the anchor device can use the first hotspot to It can automatically detect IoT devices in the same room and configure them. Through such an automated configuration process, the efficiency of configuration can be improved.
  • the network configuration information is used for the first IoT device to access the second hotspot of the first anchor device; the above method also includes: the WiFi communication module of the first anchor device starts the second hotspot; based on the network configuration information, the second hotspot of the first anchor device establishes a WiFi connection with the first IoT device; after the above determination that the network configuration of the first IoT device is completed, the first anchor device sends the network configuration completion information to the terminal device, including: after detecting that the first IoT device accesses the second hotspot, the first anchor device sends the network configuration completion information to the terminal device.
  • the IoT device can directly access the first hotspot of the anchor device, and the anchor device can automatically detect the IoT device in the same room using the first hotspot, and configure the network configuration information of the second hotspot for it.
  • the network configuration efficiency can be improved.
  • the method further includes: the WiFi communication module of the first anchor device broadcasts a first discovery signal; the first anchor device receives a detection request sent by the first IoT device in response to the first discovery signal; the first signal includes the detection request; the first anchor device sends network configuration information to the first IoT device, including: based on the detection request, the first anchor device sends a detection response to the first IoT device, and the detection response includes the network configuration information.
  • the existing WiFi connection process is utilized to realize that the anchor device automatically detects the IoT device in the same room and configures the network for it. The solution is highly practical and improves the efficiency of network configuration.
  • the detection request and the detection response are used to establish a first WiFi connection
  • the network configuration information is used to establish the first WiFi connection
  • the above method also includes: based on the network configuration information, the first anchor device establishes a first WiFi connection with the first IoT device; after determining that the network configuration of the first IoT device is completed, the first anchor device sends the network configuration completion information to the terminal device, including: after detecting that the first WiFi connection is established, the first anchor device sends the network configuration completion information to the terminal device.
  • the implementation of the embodiment of the present application utilizes the wifi connection process to realize that the anchor device automatically detects the IoT device in the same room and configures the network for it. The solution is highly practical and improves the network configuration efficiency.
  • the first anchor device is a node that has been networked in the Bluetooth mesh network
  • the method further includes: the first anchor device receives a second discovery signal broadcasted by the Bluetooth communication module of the first IoT device, the second discovery signal carries a signal type, and the signal type indicates that the second discovery signal is used for Bluetooth mesh network configuration; the first signal includes the second discovery signal; the first anchor device sends network configuration information to the first IoT device, including: the Bluetooth communication module of the first anchor device sends network configuration information to the first IoT device, and the network configuration information is used to access the Bluetooth mesh network.
  • the embodiment of the present application is implemented, and the Bluetooth mesh networking process is used to realize that the anchor device automatically detects the IoT device in the same room and configures it. The solution is highly practical and improves the efficiency of network configuration.
  • the first signal includes N second signals, where N is a positive integer; the first anchor device detects whether the first IoT device is an IoT device to be networked in the first room based on the first signal received and sent by the first IoT device, including: obtaining the arrival angle and transmission delay of the second signal based on the received second signal; using the arrival angle and transmission delay corresponding to a second signal as a sample data, and using a clustering detection algorithm to obtain the clustering trend of the N second signals; when the clustering trend is greater than the first threshold, determining that the first IoT device is an IoT device to be networked in the first room.
  • the arrival angle and transmission delay of the signal of the IoT device can be used to detect whether the IoT device is an IoT device in the same room. In this way, the room to which the IoT device belongs can be automatically determined, which simplifies user operations and improves user experience.
  • the first threshold corresponding to the first room is determined based on space identification information of the first room, and the space identification information includes part or all of the following: the position of the first anchor device in the first room, the device model of the first anchor device, the room layout of the first room, and the partition material of the first room.
  • the first anchor device stores the spatial scope of the first room; the first anchor device detects whether the first IoT device is an IoT device to be networked in the first room based on the first signal received from the first IoT device, including: the first anchor device obtains the orientation and distance of the first IoT device relative to the first anchor device based on the first signal received from the first IoT device; the first anchor device obtains the position of the first IoT device based on the orientation and distance of the first IoT device relative to the first anchor device and the position of the first anchor device; when the position of the first IoT device is within the spatial scope of the first room, the first anchor device determines that the first IoT device is an IoT device to be networked in the first room.
  • the position of the IoT device can be determined using the signal of the IoT device, and then it can be determined whether the IoT device is an IoT device in the same room. In this way, the room to which the IoT device belongs can be automatically determined, which simplifies user operations and improves user experience.
  • the first room includes M subspaces, where M is a positive integer greater than 1, and the above method further includes: the first anchor device obtains the distance of the first IoT device relative to the first anchor device and the angle of arrival of the first signal based on the first signal sent by the first IoT device; the angle of arrival and distance corresponding to an IoT device are used as a sample data, and the first anchor device clusters the sample data corresponding to N IoT devices using a clustering algorithm to obtain the IoT devices included in each of the M subspaces; the network configuration completion information also indicates the subspace where the first IoT device is located.
  • the angle of arrival of the signal of the IoT device and the distance of the IoT device can be used to further determine which subspace in a room the IoT device belongs to.
  • the subspace to which the IoT device belongs can be automatically determined, which simplifies user operations and facilitates users to more accurately control IoT devices in each subspace.
  • the first room includes M subspaces, where M is a positive integer greater than 1, and the first anchor device stores the first room.
  • the method also includes: the first anchor device obtains the distance and orientation of the first IoT device relative to the first anchor device based on the first signal sent by the first IoT device; based on the distance and orientation of the first IoT device relative to the first anchor device and the position of the first anchor device, the first anchor device obtains the position of the first IoT device; when the position of the first IoT device is within the spatial range of the first subspace, the first anchor device determines that the subspace where the first IoT device is located is the first subspace, and the M subspaces include the first subspace; the network configuration completion information also indicates the subspace where the first IoT device is located.
  • the position of the IoT device can be determined by using the signal of the IoT device, and then it can be determined which subspace in a room the IoT device belongs to. In this way, the subspace to which the IoT device belongs can be automatically determined, which simplifies the user operation and facilitates the user to control the IoT devices in each subspace more accurately.
  • the first anchor device sends the network configuration completion information to the terminal device, including: the first anchor device sends the network configuration completion information to the terminal device via the central gateway, and the central gateway is used to record the first IoT device that has been configured and the room to which the first IoT device belongs. In this way, even if the external network is abnormal, the local IoT device that has been configured can be controlled through the central gateway.
  • the first anchor device before the first anchor device sends the network configuration information to the first IoT device, it also includes: the first anchor device sends a query request to the server, the query request includes the device ID of the first IoT device and the first account logged in by the terminal device, and the query request is used to query whether the first IoT device is an authorized IoT device of the first account; the first anchor device receives the first indication information sent by the server; the first anchor device sends the network configuration information to the first IoT device, including: when the first indication information indicates that the first IoT device is an authorized IoT device of the first account, the first anchor device sends the network configuration information to the first IoT device. In this way, only the IoT devices authorized by the user are configured, avoiding the security risks caused by unauthorized IoT devices accessing the anchor device.
  • the present application provides an IoT device network configuration method, which is applied to a terminal device, wherein the terminal device records multiple anchor devices located in different rooms, and the first anchor device located in the first room is any one of the above-mentioned multiple anchor devices, including: the terminal device receives network configuration completion information sent by the first anchor device, and the network configuration completion information is used to indicate that the first IoT device has completed network configuration, and the network configuration completion information is sent after the first anchor device detects that the first IoT device is an IoT device to be configured in the same room, and determines that the network configuration of the first IoT device is completed; based on the network configuration completion information, the terminal device determines that the room to which the first IoT device belongs is the first room.
  • an anchor device is configured in each room, and each anchor device can detect the IoT device to be networked in the same room and network it; after the network is networked, the anchor device will feedback the network configuration completion information of the IoT device to the terminal device; based on the network configuration completion information of the IoT device, the terminal device can determine that the room to which the IoT device belongs is the room corresponding to the anchor device. In this way, it is possible to realize batch network configuration of IoT devices in each room and automatically determine the room to which the IoT device belongs, thereby improving the network configuration efficiency of IoT devices, simplifying user operations, and effectively improving user experience.
  • the method further includes: the terminal device sends a detection request to the above-mentioned multiple anchor devices respectively, and the detection request is used to trigger the anchor device to detect the IoT device to be networked in the same room.
  • the detection request is used to trigger the anchor device to detect the IoT device to be networked in the same room.
  • each anchor device can be triggered to perform batch network configuration on the IoT devices in the room, thereby improving the network configuration efficiency of the IoT device and simplifying the user operation.
  • the method further includes: the terminal device detects a first input operation of the user; the terminal device sends a detection request to the above-mentioned multiple anchor devices respectively, including: in response to the first input operation, the terminal device sends the detection request to the above-mentioned multiple anchor devices respectively.
  • the user can trigger each anchor device to batch configure the IoT devices in the room through an input operation on the terminal device, thereby improving the configuration efficiency of the IoT devices and simplifying the user operation.
  • the terminal device determines that the room to which the first IoT device belongs is the first room, including: when the network configuration completion information carries the first indication information, the terminal device displays the first prompt information based on the first indication information; the first prompt information is used to prompt the user to select the room where the first IoT device is located; the terminal device receives the user's second input operation, and the second input operation is used to select the room where the first IoT device is located; when the room selected by the second input operation is the first room where the first anchor device is located, the terminal device determines that the room to which the first IoT device belongs is the first room; when the network configuration completion information does not carry the first indication information, the terminal device determines that the room to which the first IoT device belongs is the first room. In this way, when the anchor device is not sure about the room to which the IoT device belongs, the user can assist the terminal device in determining the actual room to which the IoT device belongs.
  • the present application provides an IoT device network configuration method, which is applied to an IoT device network configuration system, wherein the system includes a terminal device and multiple anchor devices located in different rooms, and is characterized in that it includes: the first anchor device in the first room detects whether the first IoT device is an IoT device to be configured in the first room based on a first signal sent by the first IoT device; the first anchor device in the first room is any one of the multiple anchor devices, and the at least one IoT device includes the first IoT device; when it is detected that the first IoT device is an IoT device to be configured in the first room, the first anchor device sends network configuration information to the first IoT device; after determining that the network configuration of the first IoT device is completed, the first anchor device sends network configuration completion information to the terminal device, and the network configuration completion information is used to indicate that the first IoT device has completed network configuration; based on the network configuration completion information, the terminal device determines that the room to which the first
  • an anchor device is configured in each room, and each anchor device can detect the IoT device to be networked in the same room and network it; after the network is networked, the anchor device then feeds back the network configuration completion information of the IoT device to the terminal device; the terminal device Once the network configuration of the device is completed, the room to which the IoT device belongs can be determined to be the room corresponding to the anchor device. In this way, the IoT devices in each room can be configured in batches and the rooms to which the IoT devices belong can be automatically determined, which improves the network configuration efficiency of the IoT devices, simplifies user operations, and effectively improves the user experience.
  • the method further includes: the terminal device sends detection requests to the multiple anchor devices respectively, and the detection requests are used to trigger the anchor devices to detect the IoT devices to be networked in the same room; the first anchor device detects whether the first IoT device is the IoT device to be networked in the first room based on the signal received from the first IoT device, including: in response to the detection request, the first anchor device detects whether the first IoT device is the IoT device to be networked in the first room based on the signal received from the first IoT device.
  • the method further includes: the terminal device detects a first input operation of the user; the terminal device sends detection requests to the multiple anchor devices respectively, including: in response to the first input operation, the terminal device sends the detection requests to the multiple anchor devices respectively.
  • the first anchor device detects whether the first IoT device is an IoT device to be networked in the first room based on a first signal received from the first IoT device, including: the first anchor device detects whether the first IoT device is an IoT device to be networked in the first room based on a first short-range communication module receiving a first signal sent from the first IoT device; the network configuration information is used for the second short-range communication module of the first IoT device to access the network.
  • the method further includes: the WiFi communication module of the first anchor device starts the first hotspot; the first IoT device accesses the first hotspot of the first anchor device; the first signal includes a signal sent by the first IoT device and received by the first hotspot; the first anchor device sends network configuration information to the first IoT device, including: the first hotspot of the first anchor device sends network configuration information to the first IoT device.
  • the network configuration information is used for the first IoT device to access the second hotspot of the first anchor device; the above method also includes: the WiFi communication module of the first anchor device starts the second hotspot; based on the network configuration information, the first IoT device accesses the second hotspot of the first anchor device; after the above determination that the network configuration of the first IoT device is completed, the first anchor device sends the network configuration completion information to the terminal device, including: after detecting that the first IoT device has accessed the second hotspot, the first anchor device sends the network configuration completion information to the terminal device.
  • the method further includes: the WiFi communication module of the first anchor device broadcasts a first discovery signal; based on the first discovery signal, the first IoT device sends a detection request; the first signal includes the detection request; the first anchor device sends network configuration information to the first IoT device, including: based on the detection request, the first anchor device sends a detection response to the first IoT device, and the detection response includes the network configuration information.
  • the detection request and the detection response are used to establish a first WiFi connection
  • the network configuration information is used to establish the first WiFi connection
  • the above method also includes: based on the network configuration information, the first IoT device establishes a first WiFi connection with the first anchor device; after the above determination that the network configuration of the first IoT device is completed, the first anchor device sends the network configuration completion information to the terminal device, including: after detecting that the first WiFi connection is established, the first anchor device sends the network configuration completion information to the terminal device.
  • the network configuration information includes a service set identifier SSID and a wireless network password.
  • the first anchor device is a configured node in a Bluetooth mesh network
  • the method further includes: a Bluetooth communication module of the first IoT device broadcasts a second discovery signal, the second discovery signal carries a signal type, and the signal type indicates that the second discovery signal is used for Bluetooth mesh configuration; the first signal includes the second discovery signal; the first anchor device sends configuration information to the first IoT device, including: the Bluetooth communication module of the first anchor device sends the configuration information to the first IoT device, and the configuration information is used to access the Bluetooth mesh network.
  • the network configuration information includes a network key of the Bluetooth mesh network and a unicast address of the first IoT device in the Bluetooth mesh network.
  • the first signal includes N second signals, where N is a positive integer; the first anchor device detects whether the first IoT device is an IoT device to be networked in the first room based on the first signal received and sent by the first IoT device, including: obtaining the arrival angle and transmission delay of the second signal based on the received second signal; taking the arrival angle and transmission delay corresponding to a second signal as a sample data, and using a clustering detection algorithm to obtain the clustering trend of the N second signals; when the clustering trend is greater than a first threshold, determining that the first IoT device is an IoT device to be networked in the first room.
  • the terminal device determines that the room to which the first IoT device belongs is the first room, including: when the network configuration completion information carries the first indication information, the terminal device displays the first prompt information based on the first indication information; the first prompt information is used to prompt the user to select the room where the first IoT device is located, and the first indication information indicates that the clustering trend is greater than the first threshold and less than or equal to the second threshold; the terminal device receives the user's second input operation, and the second input operation is used to select the room where the first IoT device is located; when the room selected by the second input operation is the first room where the first anchor device is located, the terminal device determines that the room to which the first IoT device belongs is the first room; when the network configuration completion information does not carry the first indication information, the terminal device determines that the first IoT device The room to which is belongs is the first room.
  • the first threshold and the second threshold corresponding to the first room are determined based on space identification information of the first room, and the space identification information includes part or all of the following: the position of the first anchor device in the first room, the device model of the first anchor device, the room layout of the first room, and the partition material of the first room.
  • the first room includes M subspaces, where M is a positive integer greater than 1.
  • the above method also includes: the first anchor device obtains the distance of the first IoT device relative to the first anchor device and the angle of arrival of the first signal based on the first signal sent by the first IoT device; the angle of arrival and distance corresponding to an IoT device are taken as sample data, and the first anchor device clusters the sample data corresponding to N IoT devices using a clustering algorithm to obtain the IoT devices included in each of the M subspaces; the network configuration completion information also indicates the subspace where the first IoT device is located.
  • the first room includes M subspaces, M is a positive integer greater than 1, and the first anchor device stores the spatial range of each subspace of the first room; the above method also includes: the first anchor device obtains the distance and orientation of the first IoT device relative to the first anchor device based on the first signal sent by the first IoT device; based on the distance and orientation of the first IoT device relative to the first anchor device, and the position of the first anchor device, the first anchor device obtains the position of the first IoT device; when the position of the first IoT device is within the spatial range of the first subspace, the first anchor device determines that the subspace where the first IoT device is located is the first subspace, and the M subspaces include the first subspace; the network configuration completion information also indicates the subspace where the first IoT device is located.
  • the first anchor device stores the spatial scope of the first room; the first anchor device detects whether the first IoT device is the IoT device to be networked in the first room based on the first signal received from the first IoT device, including: the first anchor device obtains the orientation and distance of the first IoT device relative to the first anchor device based on the first signal received from the first IoT device; the first anchor device obtains the position of the first IoT device based on the orientation and distance of the first IoT device relative to the first anchor device and the position of the first anchor device; when the position of the first IoT device is within the spatial scope of the first room, the first anchor device determines that the first IoT device is the IoT device to be networked in the first room.
  • the system further includes a central gateway, and the first anchor device sends network configuration completion information to the terminal device, including: the first anchor device sends network configuration completion information to the central gateway; the central gateway records the newly added first IoT device that has been configured and the room to which the first IoT device belongs; the central gateway sends network configuration completion information to the terminal device.
  • the system further includes a server, and the first anchor device sends network configuration completion information to the terminal device, including: the first anchor device sends network configuration completion information to the server; the server records the newly added first IoT device that has been configured and the room to which the first IoT device belongs; the server sends network configuration completion information to the terminal device.
  • the system further includes a server, and before the first anchor device sends the network configuration information to the first IoT device, it also includes: the first anchor device sends a query request to the server, the query request includes the device ID of the first IoT device and the first account logged in by the terminal device; in response to the query request, the server queries whether the first IoT device is an authorized IoT device of the first account; the server sends first indication information to the first anchor device; the first anchor device sends the network configuration information to the first IoT device, including: when the first indication information indicates that the first IoT device is an authorized IoT device of the first account, the first anchor device sends the network configuration information to the first IoT device.
  • the method further includes: the terminal device displays a first interface, the first interface including room display areas corresponding to the rooms to which the multiple anchor devices belong; after the terminal device determines that the room to which the first IoT device belongs is the first room, it also includes: displaying the device identifier of the first IoT device in the room display area of the first room.
  • the present application provides an electronic device, comprising one or more processors and one or more memories.
  • the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions.
  • the electronic device executes the IoT device network configuration method in any possible implementation of any of the above aspects.
  • an embodiment of the present application provides a computer storage medium, including computer instructions.
  • the communication device executes the IoT device networking method in any possible implementation of any of the above aspects.
  • an embodiment of the present application provides a computer program product.
  • the computer program product runs on a computer, it enables the computer to execute the IoT device networking method in any possible implementation of any of the above aspects.
  • FIG1A is a schematic diagram of a system architecture of a communication system provided in an embodiment of the present application.
  • FIG1B is a schematic diagram of a smart home scenario provided in an embodiment of the present application.
  • FIG1C is a schematic diagram of a system architecture of a communication system provided in an embodiment of the present application.
  • FIG2 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application.
  • 3A to 3F are related interfaces for setting an anchor point device according to an embodiment of the present application.
  • 4A to 4C are related interfaces for adding IoT devices provided in an embodiment of the present application.
  • FIG5 is a user interface for viewing IoT devices provided in an embodiment of the present application.
  • 6A and 6B are related interfaces for adding IoT devices provided in an embodiment of the present application.
  • FIG7 is a user interface related to controlling an IoT device provided in an embodiment of the present application.
  • FIGS. 8A and 8B are schematic diagrams of control cards of smart home devices provided in embodiments of the present application.
  • FIGS. 9A and 9B are schematic diagrams of control cards of smart home devices provided in embodiments of the present application.
  • FIG10 is a schematic diagram of a flow chart of an IoT device network configuration method provided in an embodiment of the present application.
  • FIG11 is a schematic diagram of a flow chart of an IoT device network configuration method provided in an embodiment of the present application.
  • FIG12 is a schematic diagram of a flow chart of an IoT device network configuration method provided in an embodiment of the present application.
  • FIG13 is a schematic diagram of a process for establishing a WiFi connection provided in an embodiment of the present application.
  • FIG14A is a schematic diagram of a process for detecting an IoT device in the same room provided by an embodiment of the present application.
  • FIG14B is a schematic diagram of a process for detecting IoT devices in the same room provided by an embodiment of the present application.
  • FIG14C is a related interface for selecting a room to which an IoT device belongs provided in an embodiment of the present application
  • FIG15 is a schematic diagram of a flow chart of obtaining a space identification threshold according to an embodiment of the present application.
  • FIG16 is a schematic diagram of a three-dimensional space range provided in an embodiment of the present application.
  • FIG17A is a schematic diagram of a two-dimensional clustering provided in an embodiment of the present application.
  • 17B to 17G are related interfaces of the subspace provided in the embodiments of the present application.
  • FIG18 is a schematic diagram of a flow chart of an IoT device network configuration method provided in an embodiment of the present application.
  • FIG19 is a flow chart of an IoT device network configuration method provided in an embodiment of the present application.
  • first and second are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features.
  • a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality” means two or more.
  • GUI graphical user interface
  • IoT devices in various application scenarios are becoming more and more popular.
  • IoT devices in a user's home i.e., a smart home scenario
  • a preset APP such as a smart home APP
  • terminal device such as a mobile phone, tablet, etc.
  • IoT devices have been networked and bound to the smart home APP.
  • An embodiment of the present application provides an IoT device network configuration solution, including: after a user finds and opens a smart home APP on a terminal device, the terminal device runs the smart home APP; after the user finds and clicks a control to add an IoT device in the smart home APP, the terminal device starts to scan surrounding IoT devices; the terminal device displays a list of scanned IoT devices; then, after the user selects an IoT device that needs to be networked from the list, the terminal device receives a WiFi network identifier and a wireless network password input by the user; the terminal device starts to configure the IoT device selected by the user based on the WiFi network identifier and the wireless network password input by the user; after the network configuration is completed, the IoT device accesses the WiFi network, and the smart home APP of the terminal device is bound to the IoT device; the smart home APP of the terminal device can receive the room to which the IoT device belongs that is manually edited by the user.
  • each IoT device needs to go through the above steps to complete the configuration.
  • the user operation is cumbersome and the configuration process is complicated.
  • the user needs to repeat the cumbersome configuration operations, the configuration efficiency is low, and the user experience is poor.
  • the embodiment of the present application also provides an IoT device network configuration method, which can automatically determine the spatial ownership of IoT devices while configuring IoT devices in batches, thereby simplifying user operations and effectively improving network configuration efficiency and user experience.
  • the IoT device network configuration method is described in detail below.
  • the communication system 10 to which the IoT device networking method is applied is introduced.
  • FIG1A shows a system architecture of a communication system 10 provided in an embodiment of the present application, wherein the geographical environment in which the communication system 10 is located includes one or more preset spaces, and an anchor device is set in each preset space.
  • the communication system 10 includes at least one terminal device of the user (e.g., terminal device 100), at least one anchor device in a preset space (e.g., anchor device 200, anchor device 300), and an IoT device in the same preset space as each anchor device.
  • the smart home scene includes multiple rooms.
  • the user can set the anchor device of each room through the smart home APP of the terminal device 100 (for example, set the anchor device 200 in the living room and the anchor device 300 in the bedroom), and then detect the IoT device to be networked in the room through the anchor device of each room, and network it; and after the network is successfully networked, the room to which the networked IoT device belongs is displayed in the smart home APP.
  • the room to which the IoT device detected by the anchor device 200 belongs is the room corresponding to the anchor device 200.
  • the terminal device 100 and each anchor device have a short-range communication module 1.
  • the terminal device 100 can establish a wireless communication connection with the anchor device in each room and communicate directly with the anchor device. For example, the terminal device 100 sends a detection request to add an IoT device to the anchor device 200; the anchor device 200 feeds back the network configuration completion information of the detected IoT device in the same room to the terminal device 100.
  • the short-range communication module 1 may include one or more of a wireless fidelity (WiFi) communication module, a Bluetooth communication module, an infrared communication module, an ultra-wideband communication module, a ZigBee communication module, etc.
  • the terminal device 100 may transmit a signal through the short-range communication module 1 to detect and scan the anchor devices (such as the anchor device 200 and the anchor device 300) near the terminal device 100, so that the terminal device 100 may discover the nearby anchor devices through the short-range wireless communication protocol, and establish a wireless communication connection with the nearby anchor devices, and then directly transmit data with the nearby anchor devices.
  • the anchor devices such as the anchor device 200 and the anchor device 300
  • the terminal device 100 and each anchor device may also communicate indirectly through at least one electronic device in a communication network, and the communication network includes a local area network (LAN) and/or a wide area network (WAN).
  • the terminal device 100 and each anchor device may be connected to the local area network through at least one electronic device based on a wired connection and/or a wireless connection (such as a WiFi connection, a Bluetooth connection, etc.) to achieve indirect communication; the at least one electronic device may include a router, a hub gateway 600, an intelligent device controller, and other devices.
  • the terminal device 100 is a central control device 100
  • the at least one electronic device includes a hub gateway 600
  • each anchor device is a slave gateway
  • the central control device may communicate indirectly with the slave gateway through the hub gateway 600, and then control each slave gateway to detect IoT devices in the same room and configure the network for them.
  • the central control device, the hub gateway 600, and the slave gateway are all nodes in the mesh network.
  • the terminal device 100 and each anchor device can also communicate indirectly through at least one electronic device (e.g., server 700) in a wide area network (e.g., the Internet); the server 700 can be one or more hardware servers or cloud servers embedded in a virtualized environment.
  • the server 700 includes an application server of a smart home APP, and the terminal device 100 can communicate indirectly with each anchor device through the above application server, and then remotely control each anchor device to detect IoT devices in the same room and configure the network for them.
  • the IoT device and each anchor device have a short-distance communication module 2; taking the anchor device 200 as an example, through the signal received by the short-distance communication module 2, the anchor device 200 can detect the IoT device to be networked in the same room and send the network configuration information to it.
  • the short-distance communication module 2 can refer to the relevant description of the short-distance communication module 1 mentioned above, and the short-distance communication module 2 and the short-distance communication module 1 can be the same or different.
  • the communication system 10 also includes an access device for a preset network (e.g., a WiFi network) corresponding to each room, and both the IoT device and the access device have a short-range communication module 3 (e.g., a WiFi communication module); the network configuration information sent by the anchor device 200 is used to access the access device corresponding to the room (e.g., the access device 800).
  • a short-range communication module 3 e.g., a WiFi communication module
  • the network configuration information sent by the anchor device 200 is used to access the access device corresponding to the room (e.g., the access device 800).
  • the WiFi communication module of the IoT device 400 after the WiFi communication module of the IoT device 400 establishes a communication connection with the access device 800, the IoT device 400 is connected to the WiFi network; the terminal device 100 can control the IoT device 400 through the access device 800. Any two rooms can correspond to the same access device or different access devices, which is not specifically limited here.
  • the access device corresponding to a room and the anchor device can be the same device, and the subsequent embodiments are exemplified by taking this as an example.
  • the communication method between the access device and the terminal device 100 can refer to the relevant description of the anchor device 200, which will not be repeated here.
  • the short-distance communication module 3 can refer to the relevant description of the short-distance communication module 1.
  • the short-distance communication module 1, the short-distance communication module 2 and the short-distance communication module 3 can be the same or different, and the embodiment of the present application does not specifically limit this.
  • the short-distance communication module 3 are both WiFi communication modules or Bluetooth communication modules.
  • the short-distance communication module 2 is a Bluetooth communication module
  • the short-distance communication module 3 is a WiFi communication module.
  • the short-distance communication module 2 is a WiFi communication module
  • the short-distance communication module 3 is a Bluetooth communication module.
  • the above-mentioned communication system 10 can also be applied to other scenarios, such as smart office scenarios, which are not specifically limited here.
  • the terminal device 100 may be a mobile phone, a wearable device (e.g., a smart bracelet), a tablet computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a cellular phone, a personal digital assistant (PDA), an augmented reality (AR)/virtual reality (VR) device, a wearable device (e.g., a smart watch), a vehicle-mounted device, a central control device for a smart home scene, and other electronic devices.
  • a wearable device e.g., a smart bracelet
  • a tablet computer e.g., a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a cellular phone, a personal digital assistant (PDA), an augmented reality (AR)/virtual reality (VR) device, a wearable device (e.g., a smart watch), a vehicle-mounted device, a central control device for a smart home scene, and other electronic devices
  • IoT devices can be smart lights, smart speakers, smart TVs, smart curtains, smart door locks, smart refrigerators, smart air conditioners, car equipment, printers, projectors, smart sockets, smart air purifiers, smart cameras, smart alarm clocks, sweeping robots, and other devices.
  • the anchor device may be any electronic device having the functions that the aforementioned anchor device can implement.
  • the anchor device may be a router, a gateway or a central gateway, or an IoT device, or a terminal device, and the embodiments of the present application do not specifically limit this.
  • the structure of the terminal device 100 involved in the embodiment of the present application is introduced below.
  • the structures of the anchor device and the IoT device involved in the embodiment of the present application can refer to the relevant description of the terminal device 100, and will not be repeated later.
  • FIG. 2 shows a schematic structural diagram of the terminal device 100 .
  • the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • 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, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100.
  • the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through I2C bus interfaces.
  • the interface is coupled to the touch sensor 180K, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the terminal device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 can include multiple I2S buses.
  • the processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
  • the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.
  • the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the terminal device 100.
  • the processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal device 100.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
  • the GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the terminal device 100.
  • the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • the wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G applied to the terminal device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process 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 convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 can be set in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of 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-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied on the terminal device 100.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates 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, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal 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), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
  • ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise and brightness of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the terminal device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital videos.
  • the terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • NPU is a neural network (NN) computing processor that draws on the structure of biological neural networks, such as the human brain neural network.
  • the NPU can realize intelligent cognition of the terminal device 100, such as image recognition, face recognition, voice recognition, text understanding, etc.
  • the internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
  • RAM random access memories
  • NVM non-volatile memories
  • Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory (flash memory).
  • SRAM static random-access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • non-volatile memory may include disk storage devices and flash memory (flash memory).
  • Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle. It can be divided into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level. According to the storage specification, it can include universal flash storage (UFS), embedded multi media Card (eMMC), etc.
  • SLC single-level cell
  • MLC multi-level cell
  • TLC triple-level cell
  • QLC quad-level cell
  • UFS universal flash storage
  • eMMC embedded multi media Card
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data, etc.
  • the non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
  • the external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal device 100.
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
  • the terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
  • the speaker 170A also called a "horn" is used to convert audio electrical signals into sound signals.
  • the receiver 170B also called a “handset”, is used to convert audio electrical signals into sound signals.
  • Microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone jack 170D is used to connect a wired earphone.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A can be disposed on the display screen 194 .
  • the gyroscope sensor 180B may be used to determine the motion posture of the multicast source 100.
  • the angular velocity of the multicast source 100 around three axes ie, x, y, and z axes
  • the air pressure sensor 180C is used to measure air pressure.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the magnitude of acceleration of the multicast source 100 in various directions (generally three axes). When the multicast source 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device.
  • the distance sensor 180F is used to measure the distance.
  • the multicast source 100 can measure the distance by infrared or laser.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the multicast source 100 can adaptively adjust the brightness of the display screen 194 according to the sensed brightness of the ambient light.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the temperature sensor 180J is used to detect temperature.
  • the multicast source 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.
  • the touch sensor 180K is also called a "touch control device”.
  • the touch sensor 180K can be set on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the display screen 194 can provide Visual output related to touch operation
  • the touch sensor 180K may also be disposed on the surface of the multicast source 100 , which is different from the location of the display screen 194 .
  • Bone conduction sensor 180M can obtain vibration signals.
  • the button 190 includes a power button, a volume button, etc.
  • the button 190 may be a mechanical button or a touch button.
  • the multicast source 100 may receive a button input and generate a key signal input related to the user settings and function control of the multicast source 100.
  • Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the following uses a smart home scenario as an example to illustrate the application scenarios of the IoT device networking method.
  • the user can set the anchor device for each room through the terminal device 100, and then trigger the anchor device for each room with one click to batch detect the IoT devices in each room.
  • FIG. 3A to FIG. 3F show the relevant interfaces for setting the anchor devices of each room through the smart home APP.
  • FIG3A shows a main interface 11 for displaying installed APPs on a terminal device 100.
  • the main interface 11 may include: a status bar 101, a tray 102 with commonly used application icons, and other application icons 103. Among them: the tray 102 with commonly used application icons can display: phone icons, contact icons, text message icons, camera icons. Other application icons 103 can display: smart home icons 103A, gallery icons, music icons, mailbox images, settings icons, memo icons, etc.
  • the main interface 11 may also include a page indicator 104. Other application icons may be distributed on multiple pages, and the page indicator 104 may be used to indicate which page the user is currently viewing the application in. The user can slide the area of other application icons left and right to view application icons in other pages.
  • the terminal device 100 displays the user interface 12 of the smart home APP.
  • the user interface 12 includes an all device option 201 and a classified device option 202; when the classified device option 202 is selected, the user interface 12 also includes display areas for each room, such as a living room display area and a bedroom display area.
  • the user interface 12 when the user interface 12 cannot display the display areas of all rooms due to the display size of the terminal device 100, the user can view the display areas of more rooms by sliding left, right, or downward.
  • the display area of a room includes the room name of the room; when the room has an anchor device set up, the display area also includes the device identifier of the anchor device; when the room has no anchor device set up, the display area also includes an add control for the anchor device; when the room has a networked IoT device added, the display area also includes the device identifier of the IoT device.
  • the living room display area includes the living room name 203 and the device identifier 204 of the living room anchor device; the bedroom display area includes the bedroom name 205 and the add control 206 for the anchor device. Users can edit the room names of each room.
  • the terminal device 100 uses the short-range communication module 1 (such as a WiFi communication module) to scan nearby electronic devices with anchor device capabilities and displays a prompt message 207.
  • the prompt message 207 is used to prompt that the anchor device in the bedroom is being scanned; as shown in Figure 3D, the terminal device 100 displays options for the scanned electronic devices (such as option 208 for router xxx, option 209 for router yyy, option 210 for TV zzz), as well as setting controls 211.
  • the terminal device 100 switches option 208 from an unselected state to a selected state; as shown in Figures 3E and 3F, after detecting that the user selects an option for at least one device (such as option 208), the operation of clicking on the setting control 211 is clicked; in response to the above operation, the terminal device 100 sets the router xxx as the bedroom anchor device, and displays the device identification 212 of the router xxx in the bedroom display area.
  • the electronic device with the anchor device capability may be a router, an IoT device, a user's terminal device, etc., and the embodiment of the present application does not specifically limit the device type of the anchor device.
  • the terminal device 100 uses the WiFi communication module to scan the nearby router xxx with the anchor device capability, including: after the router xxx is turned on or after the router xxx receives the user's startup operation, the WiFi communication module broadcasts a detection signal at a fixed time, and the detection signal carries a capability identifier; the terminal device 100 scans the detection signal of the router xxx, and based on the above capability identifier, it can determine whether the router xxx has the anchor device capability.
  • the embodiments of the present application may also set anchor devices in each room through other methods, which are not specifically limited here.
  • FIG. 4A to FIG. 4C show the relevant interfaces of triggering the anchor device in each room to detect the IoT device in the same room with one click through the smart home APP.
  • the user interface 12 of the smart home APP further includes an add control 301; the terminal device 100 detects an operation (such as a click operation) acting on the add control 301; in response to the above input operation, the terminal device 100 sends a signal to the anchor device in each room.
  • the detection request is used to trigger the anchor device to detect the IoT device to be networked in the same room; and prompt information is displayed in the display area of each room (for example, prompt information 302 in the living room display area and prompt information 303 in the bedroom display area) to prompt that the anchor device in the room is scanning the IoT device.
  • the display form of the above prompt information may include one or more of text, pictures, and animations.
  • the anchor device in each room detects that there is an IoT device to be networked in the room, it feeds back the device information 1 of the IoT device to the terminal device 100; based on the device information 1, the terminal device 100 displays the device identification of the detected IoT device in the display area of each room.
  • the device information 1 may include one or more of the device type, device icon, device name, and device model.
  • the device identification 304 of lamp 1 is displayed in the living room display area
  • the device identification 305 of lamp 2 is displayed in the bedroom display area.
  • the device identification includes the device type and the device icon.
  • the anchor device After the anchor device detects that there is an IoT device to be networked in this room, it sends the network configuration information to the IoT device; after the network configuration is completed based on the network configuration information, the IoT device accesses the network; the terminal device 100 can be indirectly connected to the IoT device, and then the IoT device can be controlled through the smart home APP.
  • the terminal device 100 can also display the connection progress of the detected IoT device, which can also be understood as the network configuration progress of the IoT device; for example, the connection progress 306 of the light 1 is displayed in the living room display area, and the connection progress 307 of the light 2 is displayed in the bedroom display area.
  • the device identification 304 of the light bulb 1 has two display states, namely, the connecting state and the connection success state.
  • the device identification 304 shown in FIG4B is in the connecting state; as shown in FIG4C, after the terminal device 100 detects that the light bulb 1 is successfully connected (i.e., the network configuration is completed), the display state of the device identification 304 switches to the connection success state.
  • the anchor device 200 in the living room after the anchor device 200 in the living room establishes a communication connection with the light bulb 1, it sends a network configuration completion message to the terminal device 100, and the network configuration completion message is used to indicate that the light bulb 1 has completed the network configuration; the terminal device 100 determines that the network configuration of the light bulb 1 is completed based on the network configuration completion message.
  • the anchor device in each room detects that there is an IoT device to be networked in the room, and only after the network configuration of the IoT device is completed, will it feedback the device information 1 of the IoT device to the terminal device 100; the terminal device 100 directly displays the device identification of the IoT device in the successfully connected state shown in Figure 4C.
  • the terminal device 100 after adding the IoT devices in the room detected by each anchor device, the terminal device 100 detects that the user clicks the all devices option 201; in response to the above click operation, the terminal device 100 uniformly displays the device identifications of all networked IoT devices in the user interface 12, that is, they are not displayed according to room classification.
  • the device identification in the room display area may include one or more of the device type, device subtype, device icon, device name, and device model.
  • the following introduces various implementation methods of the device identification involved in the embodiment of the present application.
  • the device identification of the IoT device may also include the room to which the IoT device belongs. For example, as shown in FIG4C , the device identification 304 of the lamp 1 in the living room display area includes “living room”, and the device identification 305 of the lamp 2 in the bedroom display area includes “bedroom”.
  • the device information 1 of the IoT device fed back by the anchor device includes the device type; referring to the device identification 304 of the electric lamp 1 shown in FIG4C , the device identification may include the device type and the device icon corresponding to the device type; the device icon corresponding to each device type may be the terminal device 100 or a user preset device.
  • the device types of IoT devices may include: electric lamps, speakers, air conditioners, televisions, refrigerators, etc.
  • the device information 1 of the IoT device fed back by the anchor device includes a device subtype; referring to the device identification a shown in FIG4C , the device identification includes a device subtype and a device icon corresponding to the device subtype; the device icon corresponding to each device subtype may be preset by the terminal device 100 or the user.
  • the subtypes of electric lamps may include: table lamps, chandeliers, linear lamps, string lamps, floor lamps, etc.
  • the device subtype of the electric lamp 1 in the living room is a chandeliers
  • the device subtype of the electric lamp 2 in the bedroom is a table lamp.
  • the device information 1 of the IoT device fed back by the anchor device includes the device model; referring to the device identification b shown in FIG. 4C , the device identification includes the device model and the device icon; wherein the device icon may be a device picture obtained online by the terminal device 100 based on the device model.
  • the device information 1 of the IoT device fed back by the anchor device includes the state parameters of the device.
  • the state parameters of the electric light may include one or more of the switch state, color, color temperature, brightness, etc.
  • the device identification includes at least one state parameter indicated by the device information 1.
  • the device identification c of the living room chandelier includes the switch state (i.e., off)
  • the device identification c of the bedroom table lamp includes the switch state (i.e., on).
  • the network configuration method shown in Figures 4A to 4C is that the user triggers each anchor device to detect the IoT device to be configured in the room with one click through the add control 301 shown in Figure 4A.
  • the anchor device can also be automatically triggered to perform IoT device detection and network configuration without user operation, thereby realizing user-free network configuration.
  • the terminal device 100 can automatically send a detection request to trigger each anchor device to perform IoT device detection and network configuration. In some embodiments, without the terminal device 100 sending a detection request, each anchor device can also automatically trigger IoT device detection and network configuration.
  • each anchor device detects the IoT device in the same room, and after configuring the IoT device, sends the network configuration completion information to the terminal device 100; the terminal device 100 displays the prompt information 411 based on the network configuration completion information, and the prompt information 411 is used to prompt that the IoT device (such as the living room speaker, the living room chandelier and the bedroom table lamp) has been automatically added.
  • the IoT device such as the living room speaker, the living room chandelier and the bedroom table lamp
  • the terminal device 100 displays the user interface 12 of the smart home APP, and the user interface 12 includes each room display area, and each room display area can be used to view the latest IoT device added to the room.
  • the smart home APP of the terminal device 100 can bind the IoT device based on the network configuration information of the IoT device and display the device identification of the IoT device; then, the user can control the IoT device through the smart home APP.
  • FIG7 shows the relevant interface of the terminal device 100 controlling the IoT device after the network configuration of the IoT device is completed.
  • the bedroom display area of the user interface 12 displays the device logo 305 of the bedroom desk lamp; after detecting that the user clicks the device logo 305 of the bedroom desk lamp, the terminal device 100 displays the control interface 13 of the bedroom desk lamp, through which various status parameters of the bedroom desk lamp can be viewed and controlled in real time, such as the switch status (i.e., on or off), color, color temperature, brightness, timer switch, etc.
  • the switch status i.e., on or off
  • color, color temperature, brightness, timer switch etc.
  • the embodiments of the present application can also set anchor devices and/or add IoT devices through other user interfaces.
  • the terminal device 100 is provided with a control card for smart home devices in the preset system interface (such as the negative one screen, the control screen), and the user can set anchor devices and/or add IoT devices through the control card; wherein the negative one screen is usually an aggregate entrance for functions such as user center, search, application recommendation, news information recommendation, and scenario intelligent services, and the control screen is usually used to display switch icons for various shortcut functions of the terminal device 100.
  • the terminal device 100 displays a control screen 14, and the control screen 14 includes a control card 501 of the smart home device.
  • the terminal device 100 displays a negative screen 15, and the negative screen 15 includes a control card 502 of the smart home device.
  • control card 501 and control card 502 may include some or all functions of the user interface 12 of the smart home APP, such as displaying an add control 503 for setting a bedroom anchor device, an add control 504 for triggering detection of IoT devices, and device identification of added IoT devices.
  • the IoT device network configuration method provided in the embodiments of the present application is introduced in detail below.
  • the anchor device in each room can detect the IoT device to be configured in the same room; after configuring the detected IoT device 400, the anchor device 200 in room 1 feeds back the completion information of the network configuration of the IoT device 400 to the terminal device 100; the terminal device 100 can determine that the room to which the IoT device 400 belongs is the room corresponding to the anchor device 200.
  • the IoT devices 400 in each room can be configured in batches, and the rooms to which the IoT devices belong can be automatically determined; the network configuration efficiency of the IoT devices is improved, the user operation is simplified, and the user experience is effectively improved.
  • FIG10 shows a schematic flow chart of an IoT device network configuration method provided in an embodiment of the present application, the method including but not limited to steps S101 to S108.
  • the terminal device 100 detects a user's input operation 1, where the input operation 1 is used to trigger the terminal device 100 to add an IoT device.
  • the terminal device 100 sends a detection request to the anchor device 200 in room 1.
  • the detection request is used to trigger the anchor device to detect the IoT device to be networked in the same room, and to network the detected IoT device.
  • the terminal device 100 in response to input operation 1 , sends a detection request to the anchor device 200 .
  • the terminal device 100 is installed with a smart home APP.
  • the user interface 12 of the smart home APP is provided with an add control 301;
  • the input operation 1 may include an operation (such as a click operation) acting on the above-mentioned add control 301, and the input operation 1 is specifically used to trigger the anchor device in each room to detect the IoT device to be networked in the same room with one click, and to network it.
  • the terminal device 100 may also display prompt information (such as prompt information 302, prompt information 303) to prompt that the anchor device in each room is scanning the IoT device.
  • the input operation 1 may also include other touch operations, preset gestures or voice commands, which are not specifically limited here.
  • Step S101 is optional.
  • the terminal device 100 can send a detection request at a fixed time, or automatically send a detection request when the preset condition 1 is met, so as to trigger each anchor device to perform IoT device detection and network configuration (i.e., execute S103 to S108).
  • the above timing period can be preset by the terminal device 100 or the user.
  • the above preset condition 1 can include the terminal device 100 being turned on, the user passing The smart home app adds at least one of the following conditions: anchor point device. This automatic network configuration method without user triggering can achieve network configuration without user awareness.
  • the anchor device 200 detects IoT devices to be networked in the same room, and the detected IoT devices include the IoT device 400 .
  • each anchor device can also automatically trigger IoT device detection and network configuration at a fixed time without the terminal device 100 sending a detection request, or automatically trigger IoT device detection and network configuration when the preset condition 2 is met.
  • the above-mentioned timing period can be preset by the terminal device 100 or the user, and the above-mentioned preset condition 2 includes at least one of the conditions such as the anchor device is turned on and the anchor device is connected to the network.
  • the anchor device 200 uses the short-range communication module 2 to detect the IoT device to be networked in the same room.
  • the IoT device to be networked has the following characteristics: the IoT device has been powered on, the short-distance communication module 3 has been started, and the account 1 of the terminal device 100 has not been bound. Among them, the short-distance communication module 3 is used to access the preset network where the anchor device 200 is located.
  • the embodiments of the present application do not specifically limit the short-distance communication module 2 and the short-distance communication module 3.
  • the short-distance communication module 2 and the short-distance communication module 3 are both WiFi communication modules, and the preset network is a WiFi network.
  • the short-distance communication module 2 and the short-distance communication module 3 are both Bluetooth communication modules, and the preset network is a Bluetooth network (e.g., Bluetooth mesh networking).
  • the anchor device 200 detects the IoT device to be networked in the same room will be described in detail in subsequent embodiments and will not be described here in detail.
  • the anchor device 200 sends network configuration information to the IoT device 400.
  • the IoT device 400 sends a response message to the anchor device 200, where the response message is used to indicate that the above network configuration information has been received.
  • Step S105 is optional.
  • the IoT device 400 does not need to send the above response information to the anchor device 200.
  • the IoT device 400 establishes a communication connection with the anchor device 200 based on the network configuration information to access the preset network where the anchor device 200 is located.
  • the anchor device 200 sends the network configuration information of the access device of the preset network to the IoT device 400.
  • the access device and the anchor device 200 may be the same device or different devices. In the embodiment of the present application, the access device and the anchor device 200 are the same device as an example for exemplary description.
  • the preset network is a WiFi network
  • the anchor device 200 is an access device of the WiFi network
  • the network configuration information includes a service set identifier (SSID) and a wireless network password.
  • the WiFi communication module of the IoT device 400 can establish a communication connection with the anchor device 200 based on the network configuration information to access the WiFi network.
  • the above-mentioned preset network can also be other types of networks. Accordingly, the network configuration information includes network connection credentials of other types of networks (such as network account and network password), and the embodiments of the present application do not make specific limitations on this.
  • the anchor device 200 sends network configuration completion information to the terminal device 100; the network configuration completion information is used to indicate that the IoT device 400 has completed network configuration.
  • the anchor device 200 determines that the network configuration of the IoT device 400 is completed; the anchor device 200 sends network configuration completion information corresponding to the IoT device 400 to the terminal device 100.
  • step S106 is not required. As long as the IoT device 400 receives the network configuration information, it means that the network configuration of the IoT device 400 is completed. In one implementation, after the anchor device 200 sends the network configuration information to the IoT device 400 in step S104, it is considered that the IoT device 400 has completed the network configuration; after step S104, the network configuration completion information can be sent to the terminal device 100. In some embodiments, after the anchor device 200 receives the response information from the IoT device 400 in step S105, it is considered that the IoT device 400 has completed the network configuration; after step S105, the network configuration completion information can be sent to the terminal device 100.
  • the terminal device 100 displays the device identification and the room to which the newly added IoT device 400 belongs.
  • the network configuration completion information includes device information 1, and the device identification of the IoT device 400 is determined based on the device information 1; the device information 1 may include part or all of the device type, device subtype, device icon, device name, device model, device MAC address, device ID, etc., and the device identification may include part or all of the room, device type, device subtype, device icon, device name, device model, etc. Specifically, reference may be made to the description of the device identification in FIG. 4C, which will not be repeated here.
  • the anchor device 200 is the anchor device of the living room
  • the IoT device 400 is the chandelier in the living room
  • the terminal device 100 triggers the anchor devices in each room to detect the IoT devices to be networked
  • the terminal device 100 receives the network configuration completion information of the chandelier fed back by the anchor device 200, based on the device information 1 of the chandelier in the network configuration completion information, the device identification 304 of the chandelier is displayed in the living room display area.
  • the user can determine that the chandelier is in the living room by the display position of the device identification of the chandelier (i.e., the living room display area).
  • the IoT device detection and network configuration process is completed in sequence (i.e., S102 to S108 are executed).
  • the terminal device 100 first sends a detection request to the anchor device 200 in room 1, and after executing S103 to S108 for the anchor device 200, it sends a detection request to the anchor device 200 in room 2, and executes S103 to S108 for the anchor device; and then traverses all anchor devices in this way.
  • the terminal device 100 first sends a detection request to the anchor device in each room respectively or broadcasts a detection request; then, each anchor device completes the IoT device detection and network configuration process respectively; the execution order of steps S103 to S108 corresponding to each anchor device is not specifically limited.
  • the anchor device 200 may also be referred to as the first anchor device; the room 1 may also be referred to as the first room; the IoT device 400 may also be referred to as the first IoT device; the input operation 1 may also be referred to as the first input operation; the short-range communication module 2 may also be referred to as the first short-range communication module, and the short-range communication module 3 may also be referred to as the second short-range communication module; the account 1 may also be referred to as the first account; and the user interface 12 may also be referred to as the first interface.
  • the communication system 10 further includes a server 700.
  • the user purchases the IoT device, the user uploads the device ID (e.g., device serial number) of the IoT device and the account 1 of the smart home APP to the server 700; the server 700 adds the IoT device as an authorized IoT device of account 1.
  • the anchor device 200 detects the IoT device 400 to be networked in the same room, the anchor device 200 also queries the server 700 whether the IoT device 400 is an authorized IoT device of account 1.
  • steps S109 to S111 may also be included.
  • the anchor device 200 sends a query request to the server 700 , where the query request includes the device ID and account 1 of the IoT device 400 .
  • the anchor device 200 can obtain the account 1 currently logged in to the smart home APP.
  • the detection request sent by the terminal device 100 to the anchor device 200 can carry the account 1 currently logged in to the smart home APP.
  • the server 700 queries whether the IoT device 400 is an authorized IoT device of account 1 .
  • the server 700 sends indication information 1 to the anchor device 200.
  • the indication information 1 is used to indicate whether the IoT device 400 is an authorized IoT device of account 1.
  • the anchor device 200 executes S104 , ie, sends the network configuration information to the IoT device 400 , only when it determines, based on the indication information 2 , that the IoT device 400 is an authorized IoT device of the account 1 .
  • the server 700 may be queried first to determine whether the IoT device 400 is an authorized IoT device. After determining that it is an authorized IoT device, it is detected whether the IoT device 400 is an IoT device in the same room.
  • the communication system 10 further includes a server 700.
  • the terminal device 100 or the anchor device 200 After the IoT device 400 is networked, the terminal device 100 or the anchor device 200 notifies the server 700 that the IoT device 400 has completed network configuration, and the server 700 records the IoT device 400 as a networked IoT device bound to account 1. In this way, after account 1 is bound to the IoT device 400, the user's terminal device 100 can remotely control the IoT device 400 through the server 700.
  • step S107 specifically includes S107A to S107C.
  • the anchor device 200 sends network configuration completion information to the server 700.
  • the network configuration completion information is used to indicate that the IoT device 400 has completed the network configuration.
  • the server 700 records that the IoT device 400 is a network-connected IoT device bound to the account 1, and the room to which the IoT device 400 belongs.
  • S107C The server 700 sends network configuration completion information to the terminal device 100.
  • step S102 may specifically include:
  • the terminal device 100 sends a detection request to the server 700.
  • S102B The server 700 sends a detection request to the anchor device 200 .
  • the anchor device 200 sends network configuration completion information to the terminal device 100; the terminal device 100 then sends the network configuration completion information to the server 700; the server 700 then records the IoT device 400 as the configured IoT device bound to account 1 based on the network configuration completion information sent by the terminal device 100.
  • the communication system 10 also includes a central gateway 600.
  • the terminal device 100 or the anchor device 200 After the IoT device 400 is networked, the terminal device 100 or the anchor device 200 notifies the local central gateway 600 that the IoT device 400 has completed the network configuration, and the central gateway 600 records the IoT device 400 as a networked IoT device bound to account 1. In this way, even if an abnormality occurs in the wide area network and the terminal device 100 cannot interact with the server 700, the terminal device 100 can also control the IoT device 400 through the local central gateway.
  • step S107 specifically includes S107A to S107C.
  • the anchor device 200 sends a network configuration completion message to the central gateway 600, and the network configuration completion message is used to indicate that the IoT device 400 has completed the network configuration. Distribution network.
  • the central gateway 600 records that the IoT device 400 is a network-connected IoT device bound to account 1, and the room to which the IoT device 400 belongs.
  • the central gateway 600 sends network configuration completion information to the terminal device 100.
  • the above detection request can also be sent to the IoT device 400 through the central gateway 600.
  • the communication system 10 may include a central gateway 600 and/or a server 700.
  • the anchor device 200 can be configured with an agreed hotspot and a regular hotspot; after the anchor device 200 starts the agreed hotspot, the nearby IoT device 400 can directly access the agreed hotspot of the anchor device 200; the anchor device 200 uses the signal of the IoT device 400 received by the agreed hotspot to detect whether the IoT device 400 is an IoT device to be networked in the same room; if so, the network configuration information of the regular hotspot is sent to the IoT device 400; the IoT device 400 can access the regular hotspot based on the network configuration information to complete the network configuration.
  • FIG12 shows a schematic flow chart of the above-mentioned IoT device network configuration method, which includes but is not limited to steps S201 to S208.
  • the terminal device 100 detects a user input operation 1, where the input operation 1 is used to trigger the terminal device 100 to add an IoT device.
  • the terminal device 100 sends a detection request to the anchor device 200.
  • the detection request is used to trigger the anchor device to detect the IoT device to be networked in the same room, and to network the detected IoT device.
  • steps S201 and S202 reference may be made to the related descriptions of the aforementioned steps S101 and S102, which will not be repeated here.
  • S203 The anchor device 200 starts the agreed hotspot.
  • the IoT device 400 accesses the agreed hotspot of the anchor device 200 and establishes a WiFi connection 1 with the agreed hotspot.
  • the WiFi communication module of the anchor device 200 After the WiFi communication module of the anchor device 200 starts the agreed hotspot, it broadcasts a beacon frame (Beacon frame) and scans for probe requests (Probe request) from other devices.
  • the IoT device to be networked will scan the Beacon frame of the agreed hotspot through the WiFi communication module and broadcast a probe request.
  • the user needs to manually trigger the IoT device 400 to enter the state to be networked.
  • the IoT device 400 receives the user's input operation 2; in response to the input operation 2, the IoT device 400 enters the state to be networked and scans the Beacon frame of the agreed hotspot through the WiFi communication module.
  • Input operation 2 is not specifically limited here.
  • the IoT device 400 is provided with a network configuration button, and input operation 2 includes pressing the above-mentioned network configuration button.
  • input operation 2 includes speaking the voice command "enter the state to be networked".
  • the IoT device 400 to be networked establishes a WiFi connection 1 with the anchor device 200 based on the scanned Beacon frame to access the agreed hotspot, which may include some or all of the five stages of service discovery, link authentication, association process, key negotiation, and IP allocation.
  • the service discovery phase includes: the agreed hotspot of the anchor device 200 broadcasts a Beacon frame; based on the scanned Beacon, the IoT device 400 sends a probe request (Probe request); based on the above probe request, the anchor device 200 sends a probe response (Probe response) to the IoT device 400.
  • the Beacon frame broadcast by the anchor device 200 carries a network configuration identifier 1, and the network configuration identifier 1 is used to indicate that the above Beacon frame comes from the agreed hotspot for network configuration; the IoT device to be configured will only feedback the probe request after detecting the network configuration identifier 1 in the Beacon frame; and the IoT device that is not in the state of being configured will not feedback the probe request after detecting the network configuration identifier 1.
  • the probe request sent by the IoT device 400 carries a network configuration identifier 2, and the network configuration identifier 2 is used to indicate that the IoT device 400 is in the state of being configured; the anchor device 200 can determine that the IoT device 400 is in the state of being configured based on the network configuration identifier 2, and the anchor device 200 only allows the IoT device to be configured to access the agreed hotspot.
  • the link authentication phase includes: based on the above detection response, the IoT device 400 sends an authentication request (Auth request) to the anchor device 200; based on the above authentication request, the anchor device 200 sends an authentication response (Auth response) to the IoT device 400.
  • the authentication request sent by the IoT device 400 carries the wireless network password of the agreed hotspot; the anchor device 200 determines whether the IoT device is authenticated based on the wireless network password in the authentication request.
  • the IoT device 400 to be networked can directly access the agreed hotspot of the anchor device 200.
  • no password is required to access the agreed hotspot of the anchor device 200, or the Beacon frame broadcast by the agreed hotspot carries the SSID and wireless network password of the agreed hotspot; therefore, the IoT device 400 can directly access the agreed hotspot based on the scanned Beacon frame.
  • both the anchor device 200 and the IoT device 400 follow a preset protocol, and the preset protocol sets the anchor device to use the agreed hotspot to detect the IoT device to be networked; based on the preset protocol, the IoT device 400 can obtain the SSID and wireless network password of the agreed hotspot, and after scanning the Beacon frame of the agreed hotspot, use the above SSID and wireless network password to directly access the agreed hotspot.
  • the IoT device 400 and the anchor device 200 are devices of the same manufacturer configured with a preset protocol.
  • the anchor device 200 when the anchor device 200 starts the agreed hotspot, it enters a low-power transmission mode, so as to prevent IoT devices in other rooms that are far away from it from also accessing the agreed hotspot of the anchor device 200.
  • the anchor device 200 Based on the N signals sent by the IoT device 400 to the agreed hotspot of the anchor device 200, the anchor device 200 detects that the IoT device 400 is an IoT device to be networked in the same room.
  • the server 700 or the central gateway 600 records the network-configured devices bound to the account 1 of the terminal device 100.
  • the anchor device 200 queries the server 700 or the central gateway 600 whether the IoT device 400 is a network-configured device bound to the account 1. When it is determined that the IoT device 400 is not a network-configured device bound to the account 1, S205 is executed and the subsequent network configuration process continues.
  • the N signals include part or all of the messages of the IoT device 400 received during the establishment of the WiFi connection 1.
  • the message 1 includes part or all of the messages of the probe request, authentication request, association request, information 2, and information 4 shown in FIG.
  • anchor device 200 receives N signals sent by IoT device 400 through WiFi connection 1.
  • IoT device 400 sends N signals to anchor device 200 at a preset frequency, for example, the preset frequency is to send W signals within 1 second (s), where W is a positive integer.
  • the anchor device 200 can determine whether the IoT device 400 is an IoT device to be networked in the same room based on the channel state information (CSI) corresponding to the N received signals. This will be described in detail in the subsequent embodiments and will not be described here.
  • CSI channel state information
  • the agreed hotspot of the anchor device 200 sends the network configuration information of the regular hotspot of the anchor device 200 to the IoT device 400.
  • the IoT device 400 sends a response message to the agreed hotspot of the anchor device 200.
  • the response message is used to indicate that the above network configuration information has been received.
  • the IoT device 400 accesses the regular hotspot of the anchor device 200 based on the above network configuration information.
  • the anchor device 200 sends network configuration completion information to the terminal device 100; the network configuration completion information is used to indicate that the IoT device 400 has completed network configuration.
  • the terminal device 100 displays the device identification and the room to which the newly added IoT device 400 belongs.
  • step S206 may refer to the relevant embodiment of step S104
  • step S207 may refer to the relevant embodiment of step S105
  • step S208 may refer to the relevant embodiment of step S106
  • step S209 may refer to the relevant embodiment of step S107
  • step S210 may refer to the relevant embodiment of step S108, which will not be repeated here.
  • the agreed hotspot may also be referred to as the first hotspot, and the conventional hotspot may also be referred to as the second hotspot;
  • the aforementioned N signals may also be referred to as the first signal, and one of the aforementioned N signals (ie, signal 1) may also be referred to as the second signal.
  • step S205 i.e., detecting that the IoT device 400 is an IoT device in the same room
  • S211 and S212 may also be included.
  • the anchor device 200 sends indication information 2 to the terminal device 100.
  • the indication information 2 is used to indicate the detected IoT device 400 to be networked in the same room.
  • the indication information 2 includes the device information 1 of the IoT device 400.
  • the terminal device 100 displays prompt information 1 in the room display area corresponding to the anchor device 200.
  • the prompt information 1 is used to prompt that the IoT device 400 is connecting.
  • the IoT device 400 is a living room lamp; based on the device information 1 corresponding to the living room lamp, the terminal device 100 displays prompt information 1, which includes a device identifier 304 indicating the connected state of the living room lamp and the text “device connecting”.
  • the prompt information 1 may also include the connection progress of the living room light.
  • the connection progress may be determined by the terminal device 100 according to the time after receiving the indication information 2. For example, the connection progress increases by 10% every second; if the network configuration completion information of the living room light is not received within 10s, the connection is deemed to have failed by default; if the network configuration completion information of the living room light is received within 10s, the connection progress increases to 100%.
  • the anchor device 200 may provide the terminal device 100 with real-time feedback on the progress of the network configuration process, and different progress of the network configuration process corresponds to different connection progress; the terminal device 100 determines the connection progress of the living room light according to the connection progress corresponding to the progress of the current network configuration process. For example, the connection progress corresponding to executing S206 is 30%.
  • step S205 based on N signals sent by the IoT device 400 to the agreed hotspot, it is detected that the IoT device 400 is an IoT device to be networked in the same room, specifically including S205A to S205D.
  • the anchor device 200 estimates the channel state information (CSI) between the anchor device 200 and the IoT device 400 based on signal 1 among the N received signals, where signal 1 is any one of the N signals.
  • CSI channel state information
  • the anchor device 200 obtains the angle of arrival (AOA) and delay of signal 1 based on the CSI corresponding to signal 1.
  • AOA angle of arrival
  • the anchor device 200 is configured with multiple antennas, and the anchor device 200 can determine the phase difference when the signal 1 reaches antennas at different locations, that is, the arrival angle of the signal, according to the estimated CSI.
  • the CSI of signal 1 includes a channel frequency response (CFR) in the frequency domain; performing an inverse fast Fourier transform (IFFT) on the CFR can obtain a channel impulse response (CIR); then, the CIR can be used to obtain the delay corresponding to signal 1.
  • the power delay profile (PDP) can be obtained by averaging the CIR in the time domain and then squaring it; the delay corresponding to signal 1 can be the first-order moment of the PDP.
  • the CSIs corresponding to the N signals sent by the IoT device 400 may be different, and thus the corresponding arrival angles and delays may also be different.
  • the anchor point device 200 uses a cluster detection algorithm to obtain a clustering trend H of the arrival angles and delays corresponding to the N signals.
  • the cluster detection algorithm is used to evaluate the clustering performance of multiple data in a data set, that is, to determine the randomness of the data in space, so as to determine whether the data can be clustered. Taking the arrival angle and delay corresponding to a signal as a sample data, the anchor device 200 can use the cluster detection algorithm to evaluate the clustering performance of the N sample data corresponding to the above N signals.
  • the embodiment of the present application does not specifically limit the cluster detection algorithm.
  • the cluster detection algorithm is the Hopkins Statistic algorithm.
  • the clustering trend H of the signal sent by the IoT device is evaluated using the Hopkins Statistic algorithm, which may specifically include: randomly finding n points from N sample data, then finding a point closest to it in the sample space for each point, and calculating the distance x i between them, thereby obtaining distance vectors x 1 , x 2 , ..., x n ; then, randomly generating n points from the possible value range of the sample, for each randomly generated point, finding a sample point closest to it, and calculating the distance between them, to obtain y 1 , y 2 , ..., yn .
  • the Hopkins Statistic algorithm determines the clustering trend as:
  • the IoT device 400 when the clustering trend H is greater than the preset threshold 1 and less than or equal to the preset threshold 2, the IoT device 400 may be located in other rooms; in this case, the anchor device 200 may first configure the IoT device 400, and then allow the user to further select the room to which the IoT device 400 belongs. Referring to FIG. 15 , after step S205C, the anchor device 200 may first configure the IoT device 400, and feedback the network configuration completion information of the IoT device 400 to the terminal device 100.
  • the network configuration completion information includes indication information 3, and the indication information 3 is used to indicate that the IoT device 400 may be located in other rooms.
  • the terminal device 100 displays the device identification and the room to which the IoT device 400 belongs, which may specifically include S210A to S210C.
  • S210A Display prompt information 2 based on indication information 3, where prompt information 2 is used to prompt the user to select the room where the IoT device 400 is located.
  • S210B receiving input operation 3, where input operation 3 is used to select the room where the IoT device 400 is located.
  • the terminal device 100 displays that the room to which IoT device 400 belongs is room 2.
  • the IoT device 400 when the clustering trend H is greater than the preset threshold 1 and less than or equal to the preset threshold 2, the IoT device 400 may be located in other rooms; in this case, the anchor device 200 may also first allow the user to select the room to which the IoT device 400 belongs; after determining that the IoT device 400 is an IoT device in the same room, the IoT device 400 is networked.
  • the anchor device 200 may also first allow the user to select the room to which the IoT device 400 belongs; after determining that the IoT device 400 is an IoT device in the same room, the IoT device 400 is networked.
  • step S205 based on the N signals sent by the IoT device 400 to the agreed hotspot, it is detected that the IoT device 400 is an IoT device to be networked in the same room, which may specifically include S205A-S205C and S205E-S205J.
  • anchor device 200 executes S205E or S205F for the IoT device 400.
  • the terminal device 100 sends indication information 4 to the anchor device 200.
  • the indication information 4 is used to indicate whether the room selected by the input operation 3 is the room 1 where the anchor device 200 is located.
  • the indication information 4 indicates that the room selected by the user is room 1, it is determined that the IoT device 400 is an IoT device to be networked in the same room.
  • the terminal device 100 receives the indication information 3 fed back by the living room anchor device.
  • the terminal device 100 displays the device identification of the light 1 and its corresponding determination control (i.e., prompt information 2) in each room display area. Then, the user selects which room the light 1 is in through the determination control in each room display area.
  • the terminal device 100 displays the device identification 304 of the light 1 and its corresponding confirmation control 308 in the living room display area, and displays the device identification 309 of the light 1 and its corresponding confirmation control 310 in the bedroom display area; after detecting the user's input operation (such as a click operation) on the confirmation control 308 in the living room display area, the terminal device 100 determines that the light 1 is in the living room, displays the device identification of the light 1 in the successful connection status in the living room display area, and stops displaying the device identification of the light 1 in the display areas of other rooms.
  • the living room lamp 1 i.e., the living room chandelier
  • the terminal device 100 determines that at least two anchor devices (e.g., the living room anchor device and the bedroom anchor device) identify the lamp 1 as an IoT device in the same room based on the network configuration completion information fed back by each anchor device, the device identification of the lamp 1 and the corresponding determination control are displayed in the room display areas corresponding to the at least two anchor devices. Then, the user determines which room the lamp 1 is in through the determination control in each room display area.
  • the preset threshold 1 may also be referred to as the first threshold
  • the preset threshold 2 may also be referred to as the second threshold
  • the indication information 3 may also be referred to as the first indication information
  • the prompt information 2 may also be referred to as the first prompt information.
  • the spatial identification threshold of the clustering trend corresponding to the anchor device 200 is determined based on the spatial identification information of the room 1 where the anchor device 200 is located, and the spatial identification information of the room 1 includes part or all of "the position of the anchor device 200 in the room 1, the model of the anchor device 200, the room layout of the room 1, and the partition material of the room 1".
  • the preset threshold 1 is 0.7
  • the preset threshold 2 is 0.85.
  • the anchor device 200 obtains the space identification threshold of room 1 , which specifically includes S301 to S305 .
  • the terminal device 100 obtains the space identification information of room 1.
  • Table 1 shows the space identification information of the room 1 where the anchor device 200 is located.
  • the room layout can also be used to indicate the area and space range of the room 1.
  • the server 700 is configured with a trained recognition model, the input of the recognition model is the spatial recognition information of the room, and the output of the recognition model is the spatial recognition threshold of the room.
  • the terminal device 100 sends a query request to the server 700 .
  • the query request is used to query the space identification threshold of room 1 .
  • the query request includes the space identification information of room 1 .
  • the server 700 obtains the space identification threshold of room 1 based on the space identification information of room 1.
  • the server 700 sends the space identification threshold of room 1 to the terminal device 100 .
  • the space identification information of the room where the anchor device is located can be obtained and uploaded to the server 700 to query the preset threshold 1 and preset threshold 2 for space identification of the anchor device.
  • the terminal device 100 sends a configuration request to the anchor device 200 .
  • the configuration request is used to instruct the anchor device 200 to configure the space identification threshold of room 1 .
  • the configuration request includes the space identification threshold of room 1 .
  • the anchor device 200 sends confirmation information to the terminal device 100, where the confirmation information is used to indicate that the space identification threshold of room 1 has been configured.
  • Step S306 is optional. In some embodiments, step S306 may not be performed.
  • the anchor device 200 can determine the orientation and distance of the IoT device 400 relative to the anchor device 200 based on the signal sent by the IoT device 400, and then determine whether the IoT device 400 is in the same room.
  • the anchor device 200 obtains the AOA of signal 1 and the distance between the anchor device 200 and the IoT device 400 based on signal 1 among the N received signals, where N is a positive integer greater than or equal to 1. Then, based on the AOA and the distance corresponding to the N signals, the average AOA and the average distance are obtained; the orientation of the IoT device 400 relative to the anchor device 200 can be determined based on the average AOA, and the average distance is used as the distance between the anchor device 200 and the IoT device 400; then, based on the layout of room 1 where the anchor device 200 is located, the position of the anchor device 200 in room 1, and the orientation and distance of the IoT device 400, it can be determined whether the position of the IoT device 400 is in room 1.
  • the layout of room 1 includes the spatial range of room 1 in a preset coordinate system XYZ, and the position of the anchor device 200 includes the coordinates (a1, b1, c1) in the above preset coordinate system; based on the orientation and distance of the IoT device 400 relative to the anchor device 200, the anchor device 200 can determine the coordinates (a2, b2, c2) of the IoT device 400 in the above preset coordinate system; when the coordinates of the IoT device 400 are within the spatial range of room 1, it is determined that the IoT device 400 is in room 1.
  • FIG. 16 is an exemplary description using a three-dimensional space as an example, and the spatial range of room 1, the coordinate position of the anchor device 200, and the coordinate position of the IoT device can also be two-dimensional, which is not specifically limited here.
  • the embodiment of the present application does not specifically limit the method of calculating the distance based on the received signal.
  • the signal received by the anchor device 200 indicates the time when the signal is sent; the anchor device 200 determines the transmission duration of the signal based on the time when the signal is sent and the time when the signal is received, and then determines the distance from the IoT device 400 based on the transmission duration and transmission speed of the signal.
  • the room where the anchor device 200 is located may include multiple subspaces; after the anchor device 200 determines that the IoT device 400 is an IoT device in the same room (i.e., room 1), it may also determine the subspace where the IoT device 400 is located in room 1, and indicate the subspace where the IoT device 400 is located in the configuration completion information.
  • the subspace where the IoT device 400 is located may also be referred to as the first subspace.
  • the anchor device 200 uses the AOA and distance corresponding to a signal sent by each IoT device as a sample data, and uses a clustering algorithm to spatially cluster the multiple IoT devices to obtain the IoT devices included in each of the multiple subspaces after clustering.
  • the embodiment of the present application does not specifically limit the above clustering algorithm.
  • the clustering algorithm is a k-means algorithm. It can be understood that in this solution, the anchor device 200 cannot predict the spatial range of each subspace before clustering.
  • the bedroom anchor device detects 6 IoT devices in the bedroom and configures the 6 IoT devices;
  • FIG17A shows a schematic diagram of two-dimensional clustering of IoT devices in the bedroom.
  • the anchor device 200 uses the k-means algorithm to cluster the sample data corresponding to the above 6 IoT devices, and outputs the IoT devices included in the two subspaces of the bedroom (i.e., subspace 1 and subspace 2); the anchor device 200 notifies the terminal device 100 of the subspaces where each IoT device is located through the network configuration completion information.
  • FIG17A is an exemplary description using a two-dimensional space as an example. In the embodiment of the present application, the spatial range of the bedroom and each subspace can also be three-dimensional, which is not specifically limited here.
  • the terminal device 100 can pre-acquire the spatial range of each subspace of room 1, and the spatial range of each subspace can be preset by the terminal device 100 or the user.
  • the anchor device 200 detects that the IoT device 400 is an IoT device in the same room
  • the position of the IoT device 400 can be determined based on the position of the anchor device 200, and the orientation and distance of the IoT device 400 relative to the anchor device 200, and then the spatial range of the subspace in which the position of the IoT device 400 is located can be determined.
  • the anchor device 200 determines the position of the IoT device, it also carries the position of the IoT device in the network configuration information; then, the terminal device 100 determines the spatial range of the subspace in which the position of the IoT device is located.
  • the spatial range of each subspace of room 1 is automatically divided according to the number of subspace divisions.
  • the number of divisions is 2, and the spatial range of room 1 is evenly divided into 2 subspaces.
  • the spatial range of each subspace of room 1 is preset by the user, for example, the user inputs the coordinates corresponding to the spatial range of each subspace.
  • FIGS. 17B to 17G show the IoT device-related interfaces for viewing the subspace.
  • the IoT devices in the bedroom that have been networked include two table lamps, a speaker, a TV, an air conditioner, and a humidifier; the user interface 12 also includes a sub-classification option 401, which is used to trigger the terminal device 100 to display multiple sub-spaces of the currently selected room;
  • the terminal device 100 detects an input operation of the user selecting the bedroom, such as a long press operation of the bedroom display area; in response to the above input operation, the terminal device 100 switches the bedroom display area to a selected state.
  • the terminal device 100 detects an input operation (such as a click operation) acting on the sub-category option 401, the subspace display areas corresponding to the subspace 1 and subspace 2 of the bedroom are displayed on the user interface 12; the subspace display area may include the name of the subspace (such as the name 403 of subspace 1), and the device identification of the IoT device in the subspace.
  • bedroom subspace 1 includes a desk lamp, a humidifier and an air conditioner
  • bedroom subspace 2 includes another desk lamp, a speaker and a TV.
  • the implementation method 1 of the above-mentioned scheme 1 and scheme 2 corresponds to the automatic division method of the subspace
  • the implementation method 2 of scheme 2 corresponds to the custom division method of the subspace.
  • the detection request sent by the terminal device 100 to the bedroom anchor device can carry a subspace parameter, which indicates the division method and/or number of divisions of the bedroom subspace; based on the subspace parameter, when the bedroom anchor device detects the IoT device in the same room, it also determines the subspace to which the IoT device belongs.
  • the user can set the subspace parameters of the bedroom subspace through the smart home APP, and the subspace parameters include the division method and/or the number of divisions.
  • the custom division method the user can also set the spatial range of each subspace.
  • the subspace parameters can use the default parameters; for example, in the default parameters, the division method is automatic division, and the number of divisions is M (for example, 2).
  • a setting control 402 is also displayed, and the setting control 402 is used to set the subspace parameters of the bedroom subspace.
  • a setting box 404 for the bedroom subspace is displayed.
  • the setting box 404 includes an input box 405 for the number of divisions, an option 406 for the automatic division method, an option 407 for the custom division method, room layout information 408, a spatial range input box for each subspace (for example, a spatial range input box 409 for subspace 1), and a confirmation control 410.
  • the room layout information 408 is used to indicate the spatial range of the bedroom. For example, the room layout information 408 Including the four corner coordinates of the bedroom, the four corner coordinates indicate the two-dimensional spatial range of the bedroom.
  • the terminal device 100 detects that the user clicks the confirmation control 410; in response to the click operation, based on the location of the IoT device and the spatial range of each subspace, the terminal device 100 can determine the subspace to which the IoT device belongs.
  • the subspaces to which the IoT devices e.g., bedroom humidifiers
  • the two division methods can be different.
  • the anchor device 200 can utilize the signal transmitted in the WiFi connection process (see the WiFi connection process diagram shown in Figure 13) to detect the IoT device to be networked in the same room, and send network configuration information to the IoT device, so that the IoT device completes the above-mentioned WiFi connection process.
  • FIG18 shows a schematic flow chart of the above-mentioned IoT device network configuration method, which includes but is not limited to steps S401 to S410.
  • the WiFi communication module of the anchor device 200 broadcasts a Beacon frame.
  • step S402 also includes S101 and/or S102 , and the anchor device 200 broadcasts a Beacon frame through the WiFi communication module in response to the detection request of the terminal device 100 .
  • the WiFi communication module of each anchor device broadcasts Beacon frames in low-power transmission mode and completes the subsequent network configuration process.
  • the low-power transmission mode can reduce the possibility of IoT devices in other rooms scanning Beacon frames, thereby avoiding the anchor device 200 from further processing the IoT devices in other rooms, that is, executing S402 and S403.
  • the IoT device 400 cannot receive the Beacon frame broadcast by the anchor device 300 in low-power transmission mode.
  • the IoT device 400 After the IoT device 400 scans the above Beacon frame, it sends a probe request (Probe request).
  • the Beacon frame broadcast by the anchor device 200 carries a network configuration identifier 3, which is used to indicate that the Beacon frame is used for network configuration; after the IoT device to be configured detects the network configuration identifier 3 in the Beacon frame, it will feedback a detection request, while the IoT device that is not in the state of being configured will detect the network configuration identifier 3 and will not feedback a detection request.
  • the detection request sent by the IoT device 400 carries a network configuration identifier 2, and the network configuration identifier 2 is used to indicate that the IoT device 400 is in a state to be configured with a network; the anchor device 200 determines that the IoT device 400 is in a state to be configured with a network based on the network configuration identifier 2 before executing S403.
  • N detection requests sent by the IoT device 400 it is detected that the IoT device 400 is an IoT device to be networked in the same room, where N is a positive integer.
  • step S205 how to detect whether the IoT device 400 is an IoT device to be networked in the same room based on the N signals sent by the IoT device 400 can be referred to the relevant embodiments of step S205, which will not be repeated here.
  • the IoT device 400 after the IoT device 400 scans the Beacon frame, it periodically sends a probe request until it receives a probe response fed back by the anchor device 200. In some embodiments, after the IoT device 400 scans the Beacon frame for network configuration, it periodically sends N probe requests according to the preset protocol of network configuration.
  • room 1 where the anchor device 200 is located may include multiple subspaces; after detecting that the IoT device 400 is an IoT device to be networked in the same room, the subspace where the IoT device 400 is located can also be determined; for details, please refer to the aforementioned embodiments, which will not be repeated here.
  • the anchor device 200 sends a query request to the server 700 , where the query request includes the device ID and account 1 of the IoT device 400 .
  • the server 700 queries whether the IoT device 400 is an authorized IoT device of account 1 .
  • the server 700 sends indication information 1 to the anchor device 200 .
  • the indication information 1 is used to indicate whether the IoT device 400 is an authorized IoT device of account 1 .
  • steps S404 to S406 may refer to the aforementioned steps S109 to S111, which will not be described in detail here.
  • anchor device 200 Based on indication information 1, after determining that IoT device 400 is an authorized IoT device of account 1, anchor device 200 sends a probe response (Probe response) to IoT device 400, and the probe response includes network configuration information.
  • probe response Probe response
  • the IoT device 400 establishes a WiFi connection 2 with the anchor device 200 and accesses the WiFi network where the anchor device 200 is located.
  • the IoT device 400 and the anchor device 200 continue to execute the subsequent WiFi connection process, that is, execute part or all of the stages in the link authentication, association process, key negotiation and IP allocation.
  • the network configuration information includes the SSID and the wireless network password 1; in the link authentication stage, the IoT device 400 sends an authentication request (Auth request) to the anchor device 200 based on the network configuration information, and the authentication request carries the above SSID and the wireless network password 1; after the anchor device 200 verifies that the wireless network password 1 is correct, it sends an authentication response (Auth response) to the IoT device 400.
  • the above authentication request can also be regarded as the response information of the IoT device 400, which is used to indicate that the IoT device 400 has received the network configuration information.
  • the anchor device 200 sends a network configuration completion message to the terminal device 100; the network configuration completion message is used to indicate that the IoT device 400 has completed Distribution network.
  • the terminal device 100 displays the device identification and the room to which the newly added IoT device 400 belongs.
  • steps S409 and S410 For the specific implementation of steps S409 and S410, reference may be made to the related description of steps S107 and S108 in the aforementioned embodiment, which will not be repeated here.
  • the Beacon frame broadcast by the above-mentioned WiFi communication module may also be referred to as the first discovery signal
  • WiFi connection 2 may also be referred to as the first WiFi connection.
  • the terminal device 100 may display a prompt message 411 on the current display interface (e.g., the main interface 11), and the prompt message 411 is used to prompt the user that the IoT device has been automatically added; after detecting that the user clicks on the prompt message 411, the terminal device 100 may display the newly added IoT devices in each room in the display area of each room of the smart home APP.
  • the prompt message 411 is used to prompt the user that the IoT device has been automatically added; after detecting that the user clicks on the prompt message 411, the terminal device 100 may display the newly added IoT devices in each room in the display area of each room of the smart home APP.
  • the central gateway 600 and the anchor devices in each room are all nodes in the Bluetooth mesh network.
  • the slave gateway 200 can detect the IoT devices in the same room (such as the IoT device 400) based on the scanned Beacon frames of the IoT devices to be networked; then, through the Bluetooth mesh networking interaction, the slave gateway 200 can assist the un-networked IoT device 400 in the same room to become a networked node in the Bluetooth mesh network.
  • the device information of the networked IoT devices is recorded in the central gateway 600, so that even if the wide area network is abnormal, the local networked IoT devices can be controlled through the central gateway 600.
  • the terminal device 100 i.e., the central control device 100
  • the central control device 100 can also be a node in the Bluetooth mesh network.
  • FIG19 shows a schematic flow chart of the above-mentioned IoT device network configuration method, which includes but is not limited to steps S501 to S510.
  • the Bluetooth communication module of the IoT device 400 broadcasts a Beacon frame.
  • the Beacon frame broadcast by the above-mentioned Bluetooth communication module can also be called a second discovery signal.
  • the data structure type of the Beacon frame broadcast by the IoT device 400 is mesh Beacon, which is used to indicate that the IoT device 400 is an unconfigured Bluetooth device;
  • the above-mentioned Beacon may include a universally unique identifier (UUID) and out-of-band (OOB) information, and the OOB information is used to indicate the OOB type supported by the device.
  • UUID universally unique identifier
  • OOB out-of-band
  • the Bluetooth communication module of each slave gateway broadcasts Beacon frames in a low-power transmission mode.
  • the gateway 200 Based on N Beacon frames sent by the IoT device 400 , the gateway 200 detects that the IoT device 400 is an IoT device in the same room, where N is a positive integer.
  • step S205 how to detect whether the IoT device 400 is an IoT device in the same room based on the N signals received from the IoT device 400 can be referred to the relevant description of step S205, which will not be repeated here.
  • the slave gateway 200 that has been networked starts the Bluetooth communication module and scans the Beacon frames of the nearby IoT devices to be networked. After determining that the IoT device 400 is an IoT device in the same room based on the Beacon frames broadcast by the IoT device 400, the slave gateway 200 continues to perform the subsequent Bluetooth mesh network interaction (i.e., steps S503 to S507), thereby turning the unnetworked IoT device 400 into a networked node in the Bluetooth mesh network.
  • S503 may specifically include S503A and S503B.
  • S503A sending an invitation signal (eg, an invite command) from the gateway 200 to the IoT device 400, where the invitation signal is used to invite the IoT device 400 to access the Bluetooth mesh network.
  • an invitation signal eg, an invite command
  • the IoT device 400 sends a capability signal (such as a capabilities command) to the gateway 200.
  • the capability signal is used to indicate the provisioning capabilities (provisioning capabilities) supported by the IoT device 400.
  • the network configuration capabilities indicated by the capability signal include some or all of the following: encryption algorithm, public key type, static OOB type, maximum output OOB size, whether OOB output behavior is supported, maximum input OOB size, whether OOB input behavior is supported, number of elements, etc.
  • S504 may specifically include S504A and S504B.
  • Provisioning Start send a provisioning start signal (Provisioning Start) from the gateway 200 to the IoT device 400.
  • the gateway 200 After selecting specific parameters of the public key exchange process from the provisioning capability of the IoT device 400, the gateway 200 sends a provisioning start signal, which is used to indicate the start of the public key exchange process, and the encryption method and OOB related parameters configured by the gateway according to the provisioning capability of the IoT device 400.
  • provisioning public key Provisioning Public Key
  • the gateway 200 selects a corresponding verification method to authenticate the IoT device 400.
  • the OOB capability of the IoT device 400 may include the following three types: output OOB, input OOB, and static OOB or no OOB.
  • the provisioning data includes the network key and the unicast address of the IoT device 400.
  • the provisioning data is used to access the Bluetooth mesh network.
  • the gateway 200 and the IoT device 400 will use the exchanged public key and the private keys of the two devices to generate a session key (Session Key), which is used to encrypt the network configuration information.
  • Session Key Session Key
  • the network configuration information is distributed from the gateway 200 to the IoT device 400.
  • the network configuration information includes the network key and the unicast address assigned to the IoT device 400.
  • the network key is the Bluetooth mesh security parameter for joining the Bluetooth mesh network. In this way, the IoT device 400 obtains the network key and the unicast address, which means that the IoT device 400 has become a node in the Bluetooth mesh network.
  • the central gateway 600 records the room to which the newly added IoT device 400 in the Bluetooth mesh network belongs.
  • the central gateway 600 sends network configuration completion information to the central control device 100.
  • the central control device 100 displays the device identification and the room to which the newly added IoT device 400 belongs.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated.
  • the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
  • SSD solid state drive
  • the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium.
  • the program When the program is executed, it can include the processes of the above-mentioned method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

La présente demande divulgue un procédé de configuration de réseau de dispositif IdO et un appareil associé. Le procédé est appliqué à un premier dispositif d'ancrage, qui est situé dans une première pièce, le premier dispositif d'ancrage étant l'un quelconque d'une pluralité de dispositifs d'ancrage, qui sont respectivement situés dans différentes pièces. Le procédé consiste à : sur la base d'un premier signal reçu d'un premier dispositif IdO, détecter si le premier dispositif IdO est un dispositif IdO à soumettre à une configuration de réseau dans une première pièce ; si le premier dispositif IdO est le dispositif IdO à soumettre à une configuration de réseau dans la première pièce, envoyer des informations de configuration de réseau au premier dispositif IdO ; et après qu'il a été déterminé que la configuration de réseau pour le premier dispositif IdO est achevée, envoyer des informations d'achèvement de configuration de réseau à un dispositif terminal, les informations d'achèvement de configuration de réseau étant utilisées pour indiquer que la configuration de réseau pour le premier dispositif IdO est achevée, et une pièce à laquelle appartient le premier dispositif IdO est la première pièce, qui est là où un premier dispositif d'ancrage est situé. De cette manière, l'appartenance spatiale de dispositifs IdO peut être automatiquement déterminée tandis que la configuration de réseau est effectuée sur les dispositifs IdO en lots, de telle sorte que des opérations d'utilisateur sont simplifiées, ce qui permet d'améliorer efficacement l'efficacité de configuration de réseau et l'expérience d'utilisation d'un utilisateur.
PCT/CN2023/128920 2022-11-30 2023-10-31 Procédé de configuration de réseau de dispositif ido et appareil associé WO2024114274A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211521594.1 2022-11-30
CN202211521594.1A CN118118283A (zh) 2022-11-30 2022-11-30 IoT设备配网方法及相关装置

Publications (1)

Publication Number Publication Date
WO2024114274A1 true WO2024114274A1 (fr) 2024-06-06

Family

ID=91219770

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/128920 WO2024114274A1 (fr) 2022-11-30 2023-10-31 Procédé de configuration de réseau de dispositif ido et appareil associé

Country Status (2)

Country Link
CN (1) CN118118283A (fr)
WO (1) WO2024114274A1 (fr)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130238964A1 (en) * 2012-03-06 2013-09-12 Apple Inc. Application for designing journals
CN110692280A (zh) * 2018-02-07 2020-01-14 华为技术有限公司 一种网络接入方法、设备及系统
CN110708692A (zh) * 2019-10-12 2020-01-17 广州三拾七度智能家居有限公司 一种多无线类型的家用网关系统及配网方法
CN115696280A (zh) * 2021-07-23 2023-02-03 华为技术有限公司 一种配网方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130238964A1 (en) * 2012-03-06 2013-09-12 Apple Inc. Application for designing journals
CN110692280A (zh) * 2018-02-07 2020-01-14 华为技术有限公司 一种网络接入方法、设备及系统
CN110708692A (zh) * 2019-10-12 2020-01-17 广州三拾七度智能家居有限公司 一种多无线类型的家用网关系统及配网方法
CN115696280A (zh) * 2021-07-23 2023-02-03 华为技术有限公司 一种配网方法及装置

Also Published As

Publication number Publication date
CN118118283A (zh) 2024-05-31

Similar Documents

Publication Publication Date Title
AU2021269359B2 (en) Display method and apparatus
WO2020192714A1 (fr) Procédé d'affichage de page de commande de dispositif, appareil et système associés
WO2021000808A1 (fr) Procédé de commande de dispositif et dispositif
KR102208438B1 (ko) 근접 서비스 데이터 송신 방법 및 그 전자 장치
JP6242496B2 (ja) 無線ネットワークに接続させるための方法、装置、プログラム及び記録媒体
WO2020173375A1 (fr) Procédé, dispositif et système de commande de liaison de plusieurs dispositifs intelligents
CN111459433B (zh) 一种传屏方法、设备及存储介质
WO2021052178A1 (fr) Procédé et dispositif de connexion wi-fi
US9503893B2 (en) Communication management system, relay device, communication control system, communication system, communication method, and recording medium storing communication control program
WO2020155014A1 (fr) Système et un procédé de partage de dispositif domestique intelligent, et dispositif électronique
WO2021043045A1 (fr) Procédé et dispositif de configuration d'informations de configuration de réseau
JP2017525067A (ja) アカウントと機器との間の制御関係を管理するための方法、装置、システム、プログラム及び記録媒体
WO2021000923A1 (fr) Procédé de configuration de routeur, terminal et routeur
US9763126B2 (en) Electronic device and method for processing packet in internet protocol-based network
WO2022068513A1 (fr) Procédé de communication sans fil et dispositif terminal
WO2020133467A1 (fr) Procédé permettant à un appareil domestique intelligent d'accéder à un réseau et dispositif associé
WO2021027623A1 (fr) Procédé de découverte de capacité de dispositif et dispositif p2p
WO2021227942A1 (fr) Procédé de partage d'informations, dispositifs électroniques et système
WO2024114274A1 (fr) Procédé de configuration de réseau de dispositif ido et appareil associé
KR102238897B1 (ko) 근접 서비스 데이터 송신 방법 및 그 전자 장치
CN114697880B (zh) 跨网段发现的方法、路由设备及系统
WO2023025059A1 (fr) Système et procédé de communication
WO2023185593A1 (fr) Procédé de connexion de dispositif, dispositif électronique et système
WO2023142993A1 (fr) Procédé de détection, dispositif électronique et système associés
WO2023169545A1 (fr) Procédé de commande de dispositif hors ligne et appareil associé