WO2022105028A1 - 物联网设备的配网方法及装置 - Google Patents

物联网设备的配网方法及装置 Download PDF

Info

Publication number
WO2022105028A1
WO2022105028A1 PCT/CN2020/141070 CN2020141070W WO2022105028A1 WO 2022105028 A1 WO2022105028 A1 WO 2022105028A1 CN 2020141070 W CN2020141070 W CN 2020141070W WO 2022105028 A1 WO2022105028 A1 WO 2022105028A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration information
network configuration
network
terminal device
internet
Prior art date
Application number
PCT/CN2020/141070
Other languages
English (en)
French (fr)
Inventor
李波
Original Assignee
美的集团股份有限公司
广东美的制冷设备有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 美的集团股份有限公司, 广东美的制冷设备有限公司 filed Critical 美的集团股份有限公司
Priority to EP20962319.8A priority Critical patent/EP4250685A4/en
Publication of WO2022105028A1 publication Critical patent/WO2022105028A1/zh
Priority to US18/199,324 priority patent/US20230291799A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the present application relates to the technical field of network distribution of IoT devices, and in particular, to a method and device for network distribution of IoT devices.
  • IoT devices generally need to be connected to servers through gateway devices to realize their IoT functions. Based on this, the IoT device needs to obtain the network configuration information of the gateway device first. However, at present, in the process of acquiring network configuration information to connect the gateway device, the terminal device needs to interact with the IoT device many times, and the IoT device needs to go through "Idle to SoftAP” and “SoftAP to STA” twice. The working mode is switched, and the network distribution efficiency is low.
  • the present application provides a network distribution method and device for IoT devices, so as to improve the network distribution efficiency of IoT devices.
  • the present application provides a network distribution method for IoT devices, the method comprising:
  • Terminal devices and IoT devices build neighborhood awareness channels
  • the terminal device obtains the stored network configuration information of the gateway device
  • the terminal device transmits the network configuration information to the IoT device through the neighborhood awareness channel, so that the IoT device can connect to the gateway device through the network configuration information.
  • the terminal device transmits the network configuration information to the IoT device through the neighborhood awareness channel at the media access control layer, including:
  • the terminal device encapsulates the network configuration information into the information in the format specified by the neighborhood-aware network protocol at the media access control layer;
  • the terminal device transmits the information to the IoT device through the neighborhood awareness channel.
  • the terminal device and the IoT device build a neighborhood awareness channel, including:
  • the terminal device obtains the neighborhood-aware network beacon broadcast by the IoT device;
  • the terminal device establishes a neighborhood-aware channel with the IoT device based on the neighborhood-aware network beacon.
  • the terminal device and the Internet of Things device build a neighborhood awareness channel, which previously includes: the terminal device is connected to a gateway device that the Internet of Things device can scan;
  • the terminal device and the Internet of Things device build a neighborhood awareness channel, including: the terminal device cuts off the connection with the gateway device, and establishes a neighborhood awareness channel with the Internet of Things device;
  • Acquiring the network configuration information of the gateway device stored by itself includes: the terminal device acquiring the network configuration information of the gateway device that was successfully connected last time stored by itself.
  • the network configuration information of the gateway device stored by itself is obtained, including:
  • the terminal device scans the service set identifier of the surrounding network
  • the terminal device obtains the network configuration information of at least one gateway device stored by itself;
  • the terminal device matches the service set identifier of the surrounding network with the network configuration information of the at least one gateway device to confirm the network configuration information that can be used in the current environment in the network configuration information of the at least one gateway device;
  • the terminal device transmits the network configuration information to the IoT device through the neighborhood awareness channel at the media access control layer, including: the terminal device transmits the network configuration information that can be used in the current environment to the IoT device.
  • the network configuration information includes the service set identifier, password and channel of the gateway device,
  • the terminal device transmits the network configuration information to the IoT device through the neighborhood awareness channel at the media access control layer, which includes: obtaining the supported frequency band of the IoT device by the terminal device;
  • the terminal device transmits the network configuration information to the IoT device through the neighborhood awareness channel at the media access control layer, including:
  • the terminal device determines the working frequency band of the gateway device based on the channel of the gateway device;
  • the terminal device searches for a candidate network ID that fuzzy matches with the service set ID of the gateway device, and combines the candidate network ID and the password of the gateway device to form new network configuration information.
  • the new network configuration information is transmitted to IoT devices through a neighborhood-aware channel.
  • the terminal device obtains the success information of the network distribution from the server;
  • the terminal device In response to the confirmation instruction, the terminal device binds the IoT device with the user account based on the network distribution success information, so that the terminal device can remotely control the IoT device.
  • the present application provides a network distribution method for IoT devices, the method comprising:
  • IoT devices and terminal devices build neighborhood awareness channels
  • the IoT device obtains the network configuration information of the gateway device from the terminal device through the neighborhood awareness channel at the media access control layer of the IoT device;
  • IoT devices connect to gateway devices through network configuration information.
  • the IoT device obtains the network configuration information of the gateway device at the media access control layer and through the neighborhood awareness channel, including:
  • the IoT device obtains information in the format specified by the neighborhood awareness network protocol from the terminal device through the neighborhood awareness channel;
  • the IoT device parses the network configuration information from the information at the media access control layer;
  • the IoT device is connected to the gateway device through the network configuration information, including: the IoT device is connected to the gateway device through the network configuration information at the media access control layer.
  • IoT devices and terminal devices build neighborhood awareness channels, including:
  • the IoT device broadcasts a neighborhood-aware network beacon to establish a neighborhood-aware channel with terminal devices within the broadcast range of the IoT device.
  • the Internet of Things device broadcasts a neighborhood awareness network beacon, which previously includes: the Internet of Things device turns on the neighborhood awareness network function while maintaining the site mode.
  • the network configuration information includes the service set identifier, password and channel of the gateway device, and the IoT device is connected to the gateway device through the network configuration information, including:
  • the IoT device scans the gateway device's service set ID in the gateway device's channel and verifies the gateway device's password, if the connection to the gateway device is unsuccessful; then scans the gateway device's service set ID in the full channel and verifies the gateway device's password to connect again. gateway device.
  • the present application provides an electronic device, the electronic device includes a processor, and the processor is configured to execute instructions to implement the above method.
  • the present application provides a computer-readable storage medium for storing instructions/program data, and the instructions/program data can be executed to implement the above method.
  • the IoT device and the terminal device of the present application enable the neighborhood awareness function, and the IoT device and the terminal device build a neighborhood awareness channel, so that the IoT device can obtain the network configuration information of the gateway device sent by the terminal device through the neighborhood awareness channel.
  • the IoT device can obtain the network configuration information of the gateway device through a small amount of interaction with the terminal, which improves the network distribution efficiency, and the IoT device can turn on the sta mode while turning on the neighborhood awareness function, so that the IoT device does not need to Multiple conversions of working modes; and the terminal device of the present application obtains the network configuration information stored by itself, so that there is no need to call the underlying application to obtain the network configuration information, so that the obtained network configuration information can be directly obtained through the media access control layer.
  • the domain-aware channel is sent to the terminal device, so that the network configuration information needs to pass through the L2 layer (data link layer) and L1 layer (physical layer) of the terminal device and the L1 layer (physical layer) and L2 layer (data link layer) of the IoT device. layer) processing to reduce the number of layers that the network configuration information passes through, thereby reducing the time consumed by the network configuration information transmission.
  • FIG. 1 is a schematic flowchart of an embodiment of a network distribution method for IoT devices of the present application
  • FIG. 2 is a schematic diagram of the workflow of a terminal device in the network distribution method of the Internet of Things device of the present application
  • FIG. 3 is a schematic diagram of the workflow of the Internet of Things device in the network distribution method for the Internet of Things device of the present application;
  • FIG. 4 is a schematic structural diagram of an embodiment of the electronic device of the present application.
  • FIG. 5 is a schematic structural diagram of an embodiment of a computer storage medium of the present application.
  • the network distribution method of the IoT device of the present application is applied to the situation where the IoT device is connected to the cloud for the first time after it leaves the factory, or when the network environment where the IoT device is located changes and the IoT device needs to be reconnected to the cloud distribution network.
  • various home appliances such as refrigerators, microwave ovens, air conditioners and rice cookers have the functions of wifi link and remote control, and can be used as IoT devices.
  • These IoT devices generally need to connect to the network through gateway devices such as routers to realize IoT. For this reason, IoT devices need to obtain the network configuration information of gateway devices such as routers, so that IoT devices can pass the obtained network configuration information.
  • the process of "connecting to the cloud and distributing the network” of IoT devices mainly adopts the “SoftAP” method.
  • the terminal device needs to interact with the IoT device many times, and the IoT device needs to go through "Idle to SoftAP", “SoftAP to STA” switching working mode twice, the network distribution efficiency is low.
  • the present application applies the neighborhood awareness network technology to the cloud-connected distribution network of IoT devices.
  • the IoT devices and terminal devices enable the neighborhood awareness function, and the IoT devices and terminal devices build a neighborhood awareness channel.
  • the IoT device can obtain the network configuration information of the gateway device sent by the terminal device through the neighborhood awareness channel, so that the IoT device can obtain the network configuration information of the gateway device through a small amount of interaction with the terminal, which improves the network distribution efficiency.
  • the IoT device can turn on the sta mode when the neighborhood awareness function is turned on, so that the IoT device does not need to switch the working mode multiple times.
  • the terminal device generally obtains the network configuration information input by the user through the input interface, and then distributes and shares the data based on the session mechanism triggered by the application layer.
  • the network configuration information needs to pass through the application layer, presentation layer and session layer of the terminal device. , transport layer, network layer, data link layer, physical layer and the processing of the physical layer, data link layer and network layer of IoT devices, so that the network configuration information needs to be tedious operations of layer-by-layer packet sending and packet receiving layer-by-layer analysis , it takes more time for data transfer.
  • the terminal device of the present application directly obtains the network configuration information stored by itself, so that there is no need to call the underlying application to obtain the network configuration information, so that the obtained network configuration information can be directly sent through the neighborhood awareness channel through the media access control layer.
  • the network configuration information needs to be processed by the L2 layer (data link layer) and L1 layer (physical layer) of the terminal device and the L1 layer (physical layer) and L2 layer (data link layer) of the IoT device. , in order to reduce the number of layers that the network configuration information passes through, thereby reducing the time consumed by the network configuration information transmission. Please refer to FIG. 1 for details.
  • FIG. 1 for details.
  • the network distribution method for the IoT device in this embodiment includes the following steps. It should be noted that the following numbers are only used to simplify the description, and are not intended to limit the execution sequence of the steps. The execution sequence of each step in this embodiment can be changed arbitrarily without violating the technical idea of the present application.
  • S110 The terminal device and the IoT device construct a neighborhood awareness channel.
  • the terminal device can first build a neighborhood awareness channel with the Internet of Things device, so that the terminal device can send the network configuration information of the gateway device to the Internet of Things device through the neighborhood awareness channel, so that the Internet of Things device can obtain the gateway device through a small amount of interaction with the terminal.
  • the configuration information of the network is improved, and the efficiency of the distribution network is improved.
  • the terminal device may establish a neighborhood awareness channel with the Internet of Things device based on the neighborhood awareness network beacon of the Internet of Things device after acquiring the neighborhood awareness network beacon of the Internet of Things device, that is, the terminal.
  • the device and the IoT device can discover each other through the neighborhood-aware network beacon to build a neighborhood-aware channel.
  • the above-mentioned neighborhood-aware network beacon may include at least one of the following: a phone number, an integrated circuit card identity (ICCID), an international mobile equipment identity (IMEI) ), etc., which are not limited here.
  • Neighborhood-aware network beacons may also include frequency bands, serial numbers, product information, etc. supported by IoT devices.
  • the above-mentioned neighborhood-aware network beacon can be carried by a NAN Beacon broadcast frame sent by the IoT device.
  • the terminal device can send its own neighborhood-aware network beacon to the IoT device, so that the IoT device can obtain the neighborhood-aware network beacon of the terminal device, so that the IoT device can be based on the network beacon of the terminal device.
  • the neighborhood-aware network beacon establishes a neighborhood-aware channel with terminal devices.
  • the terminal device may construct a neighborhood awareness cluster with the IoT device to form a neighborhood awareness channel with the IoT device.
  • the terminal device can determine whether there is a neighborhood-aware cluster around; if so, the terminal device joins the cluster; if not, it continues searching to determine whether there is a neighborhood-aware cluster around.
  • the IoT device can scan whether there is a neighborhood-aware cluster around it through its wi-fi Aware function. If there is, the IoT device will join the cluster. If not, a neighborhood-aware cluster will be created.
  • the IoT device and the terminal device can join the same neighborhood awareness cluster, so that there can be a neighborhood awareness channel that can transmit information to each other between the IoT device and the mobile terminal.
  • the terminal device can immediately build a neighborhood awareness channel with the IoT device. And the neighborhood sensing channel can be maintained until the neighborhood sensing function of one party is turned off, so that the terminal device and the Internet of Things device can transmit information to each other through the neighborhood sensing channel.
  • the user can turn on the wifi-aware function of the terminal device manually, "NFC touch" or any other method.
  • the terminal device can autonomously determine whether it is necessary to build a neighborhood awareness channel with the IoT device.
  • the terminal device determines that the current opportunity to build a neighborhood awareness channel with the Internet of Things device is met, it executes the step of building a neighborhood awareness channel with the Internet of Things device.
  • various methods can be used to determine whether the current time is suitable for constructing a neighborhood awareness channel with an IoT device.
  • the terminal device determines whether the IoT device cannot be connected to the gateway device by detecting whether the current time is suitable for building a neighborhood awareness channel with the IoT device. Wherein, when the terminal device confirms that the IoT device cannot be connected to the gateway device, it confirms that the current opportunity to build a neighborhood awareness channel with the IoT device is met, and at this time, the steps of building a neighborhood awareness channel with the IoT device can be performed.
  • the terminal device can confirm whether there is an Internet of Things device among the devices connected to the gateway device by querying the device information connected to the gateway device, so as to confirm whether the Internet of Things device is connected to the gateway device.
  • the terminal device can query the server whether the IoT device is offline. If the IoT device is offline, it means that the IoT device cannot connect to the server through the gateway device, which means that the IoT device cannot connect to the server. gateway device.
  • the terminal device determines whether it is currently in line with the timing of building a neighborhood awareness channel with the Internet of Things device by confirming whether the instruction to build a neighborhood awareness channel is obtained.
  • the terminal device when the user knows that it is necessary to configure the Internet of Things device, he or she will click on the status bar of the Internet of Things device in the terminal device, so that the terminal device can obtain the "instruction for building a neighborhood awareness channel", so that the terminal The device can confirm that it is currently in line with the timing of building a neighborhood awareness channel with the IoT device, and at this time, it can perform the steps of building a neighborhood awareness channel with the IoT device.
  • the above-mentioned "Internet of Things device status bar" may be displayed in a list such as a WiFi list or a hotspot list of the terminal device after the terminal device receives and parses the neighborhood aware network beacon of the IoT device.
  • the IoT device when the IoT device confirms that it needs to configure the network, it will send the instruction to build the neighborhood awareness channel to the terminal device, so that the terminal device can respond to the instruction to build the neighborhood awareness channel, The end device performs the steps of building a neighborhood-aware channel with the IoT device.
  • the instruction sent by the IoT device to construct a neighborhood awareness channel may be a neighborhood awareness network beacon of the IoT device, that is, when the IoT device confirms that it needs to configure the network, it can directly send its own neighborhood awareness network information.
  • the beacon is sent to the terminal device, and the terminal device receives the neighborhood awareness network beacon of the IoT device, which means that the terminal device obtains the instruction to build a neighborhood awareness channel. At this time, the terminal device can directly base on the neighborhood obtained from the IoT device.
  • Awareness network beacons establish neighborhood awareness channels with IoT devices.
  • the terminal device needs to build a neighborhood awareness channel with the IoT device, so the IoT device will be within the radiation range of the terminal hotspot. Therefore, when the network of the IoT device is generally configured, the terminal device will be located near the IoT device.
  • S120 The terminal device acquires the stored network configuration information of the gateway device.
  • the terminal device After the terminal device establishes a neighborhood awareness channel with the IoT device, it can obtain the network configuration information of the gateway device stored by itself, so that the network configuration information can be sent in packets directly at the media access control layer.
  • the session mechanism performs data distribution and sharing, thereby reducing the time consumed by the transmission of network configuration information.
  • the terminal device can acquire the stored network configuration information of the gateway device by using various methods.
  • the terminal device can scan the nearby network to determine the service set identifier (SSID, Service Set Identifier) of the current environment network, and then search the memory for the information of the network to which the terminal device has been connected, and compare the service set identifier of the current environment network with the service set identifier of the current environment network.
  • the information of the network that the terminal device has connected to is matched to find the service set identifier and password of the network that the terminal device has connected to and can be used in the current environment, so that in step S130, the found terminal device has been connected and is in the current environment.
  • Configuration information such as the service set identifier and password of the available network is sent to the IoT device, so as to ensure that the IoT device can connect to the gateway device through the acquired network configuration information.
  • the terminal device scans the nearby network to determine that the service set identifiers of the current environment are meidi-5G, meidi-2.4G and TP-link_2.4G, and the terminal device finds in the memory the network information that the terminal device has connected to.
  • the network configuration information of the gateway device stored by the terminal device is stored when the terminal device connects to the gateway device based on the network configuration information. If the terminal device cannot connect to the gateway device corresponding to the network configuration information through the network configuration information, the terminal device can delete the network configuration information, and when the terminal device connects to the gateway device through the new network configuration information, the terminal device will update the new network configuration information.
  • the network configuration information stored in the terminal device is stored to ensure that the network configuration information stored by the terminal device is available, thereby ensuring that the IoT device can connect to the gateway device through the acquired network configuration information.
  • the terminal device can update the old network configuration information of the gateway device stored by itself to the new network configuration information.
  • the terminal device may first connect to the network of the current environment; then the connection of the gateway device corresponding to the network of the current environment is cut off to establish a neighborhood awareness channel with the Internet of Things device; in this way, in step S120
  • the terminal device can obtain the network configuration information of the gateway device that has been successfully connected before, which is stored by itself, so as to send the obtained network configuration information of the gateway device that was successfully connected to the Internet of Things device in step S130, so as to ensure that The IoT device can connect to the gateway device through the acquired network configuration information.
  • the terminal device transmits the network configuration information to the Internet of Things device through the neighborhood awareness channel at the media access control layer.
  • the terminal device obtains the network configuration information of the gateway device stored by itself, and can send the network configuration information in packets at the media access control layer, so that there is no need to distribute and share data based on the session mechanism triggered by the application layer, thereby reducing network configuration. The time it takes to transmit information.
  • the terminal device after acquiring the network configuration information of the gateway device stored by the terminal device, it can directly transmit the acquired network configuration information of the gateway device to the Internet of Things device at the media access control layer through a neighborhood awareness channel.
  • the terminal device can confirm whether the obtained gateway configuration information of the gateway device matches the IoT device, and if so, directly transmit the network configuration information of the gateway device to the IoT device; The acquired network configuration information is corrected, and the confirmed new network configuration information is transmitted to the IoT device.
  • the terminal device may also acquire the support channel of the IoT device, and the acquired network configuration information of the gateway device stored by itself may include information such as the service set identifier, password, and channel of the gateway device.
  • the device can confirm the working frequency band of the gateway device based on the channel of the gateway device, and confirm whether the working channel of the gateway device is consistent with the supported frequency band of the IoT device;
  • the information is transmitted to the Internet of Things device; if it is inconsistent, the candidate network ID that is vaguely matched with the service set ID of the gateway device can be searched, and the candidate network ID and the password of the gateway device are formed into new network configuration information, and the new network configuration information It is transmitted to IoT devices through a neighborhood-aware channel.
  • the terminal device in order to connect the IoT device to the gateway device even when the new network configuration information is unavailable but the network configuration information obtained in step S120 is available, the terminal device can combine the new network configuration information with the network configuration information obtained in step S120.
  • the channel information supported by the IoT device may be transmitted to the terminal device through the neighborhood aware network beacon of the IoT device described in step S110.
  • the step of searching for candidate network identifiers that vaguely match the service set identifier of the gateway device may include: scanning the identifiers of nearby networks, and matching the identifiers of the nearby networks with the service set identifiers of the gateway device, so as to determine whether the identifiers of the nearby networks are among the identifiers of the nearby networks.
  • the identifier that can be vaguely matched with the service set identifier of the gateway device is further used as the candidate network identifier.
  • the terminal device can send the network configuration information to the IoT device peer-to-peer through the neighborhood awareness channel.
  • the terminal device and at least one IoT device form a neighborhood awareness cluster
  • the terminal device can publish network configuration information
  • at least one IoT device can obtain the network information sent by the terminal device by subscribing to the network configuration information. configuration information, so that batch network distribution to multiple IoT devices can be realized through the distribution network solution of the present application.
  • the terminal device can encapsulate the network configuration information into the information in the format specified by the neighborhood-aware network protocol, so that the cell structure and the manufacturer can identify the working frequency band of the access network channel through the neighborhood-aware channel.
  • the identification of the network sent by the gateway device may carry information on the working frequency band, so it may be judged from the identification of the access network whether the working frequency band of the access network is inconsistent with the supported frequency band. For example, when the access network identifier is a preset value, the access network identifier is meidi-5G, and the supported frequency band of the IoT device is 2.4GHz. Because the access network identifier is a preset value, the IoT device cannot accurately identify the access network.
  • the working frequency band of the access network channel, and the supported frequency band "2.4GHz” of the IoT device is inconsistent with the working frequency band information "5G" contained in the access network identifier "meidi-5G", so it can be determined based on the access network identifier.
  • the working frequency band of the network is inconsistent with the supported frequency band. Further, because the working frequency band information is generally located at the suffix of the network identifier, such as "meidi5g", “meidi-5g”, “meidi-5GHz”, etc., it can be confirmed based on the suffix of the access network identifier whether the working frequency band of the access network is the same as that of the network identifier.
  • the supported frequency bands are inconsistent.
  • the network ID sent by the gateway device does not necessarily carry the working frequency band information, it may happen that the working frequency band of the access network cannot be confirmed based on the access network ID.
  • the situation where it is impossible to confirm whether the operating frequency band of the access network is consistent with the supported frequency band based on the access network identifier is classified as "determining that the operating frequency band of the access network is not inconsistent with the supported frequency band based on the access network identifier" .
  • the network configuration information whose field attributes conform to the neighborhood-aware network protocol specification is transmitted to the IoT device.
  • the terminal device can encapsulate the network configuration information at the media access control layer, so as to obtain the information in the format specified by the neighborhood-aware network protocol.
  • the IoT device obtains the network configuration information of the gateway device from the terminal device at the media access control layer and through the neighborhood awareness channel.
  • the terminal device sends the network configuration information in packets at the media access control layer, and the IoT device can obtain the network configuration information at the media access control layer, so that the IoT device can connect to the gateway device through the obtained network configuration information.
  • the IoT device may acquire network configuration information transmitted by a terminal device whose distance from itself is within a preset range.
  • the preset range can be 3 to 10 meters.
  • the distance between the IoT device and the terminal device can be measured by the WLAN RTT (Round-Trip Time, round-trip time) location function of the IoT device.
  • the IoT device can send a measurement data packet to the terminal device; then calculate the time required for the measurement data packet to travel back and forth between the terminal device and the IoT device, and calculate the time between the IoT device and the terminal device by means of the speed of light. distance between.
  • the IoT device can obtain the network configuration information transmitted by all terminal devices, and then scan the network configuration information transmitted by all terminal devices in turn to try to connect to the gateway device.
  • the IoT device After the IoT device obtains the network configuration information, it can connect to the gateway device through the network configuration information to complete the network configuration operation of the IoT device.
  • the IoT device can directly scan the network configuration information in all channels, that is, scan the network configuration information in all channels supported by the IoT device until the connection with the gateway device or all channels is completed. have been scanned.
  • the network configuration information obtained by the IoT device may include the channel of the gateway device, and the IoT device may first scan the network configuration information in the channel of the gateway device; if the gateway device fails to connect to the gateway device through the channel of the gateway device, then Scans network configuration information across all channels to connect to gateway devices.
  • the timer can be used to determine whether the preset time has been reached, so as to avoid blindness due to environmental problems.
  • the preset time can be any preset time, for example, 40s.
  • the IoT device and the terminal device enable the neighborhood awareness function, and the IoT device and the terminal device build a neighborhood awareness channel, so that the IoT device can obtain the network of the gateway device sent by the terminal device through the neighborhood awareness channel.
  • Configuration information so that IoT devices can obtain network configuration information of gateway devices through a small amount of interaction with terminals, which improves network distribution efficiency, and IoT devices can turn on sta mode while enabling the neighborhood awareness function, making IoT
  • the device can always maintain the STA mode in the process of network distribution, and does not need to perform multiple conversions of the working mode; and the terminal device of the present application obtains the network configuration information stored by itself, so that there is no need to call the underlying application to obtain the network configuration information, so that the terminal device of the present application can obtain the network configuration information through
  • the media access control layer directly sends the acquired network configuration information to the terminal device through the neighborhood awareness channel, so that the network configuration information needs to pass through the L2 layer (data link layer) and L1 layer (physical layer)
  • L1 layer physical layer
  • L2 layer data link layer
  • the server will promptly push the "network distribution success" information to the terminal device, and the terminal device responds to the confirmation instruction.
  • the IoT device can be bound to the user account entered by the user based on the successful distribution network information, so that the terminal device can take over the electrical control function, so that the terminal device can remotely control the IoT device.
  • the distribution network success information can also be directly pushed to the IoT device control service applet embedded in commonly used APPs such as "Alipay”, “WeChat” or “Cloud QuickPass", or the "Internet of Things Device Cloud Manager” and other IoT device manufacturers. In the APP, you can experience the sense of technology and the convenience of operation brought by the IoT device through the IoT device control service applet embedded in the commonly used APP or the dedicated APP of the IoT device manufacturer.
  • the confirmation information of the IoT device can be obtained from the IoT device or the server, so as to connect the IoT device to the IoT device based on the confirmation information.
  • the device is bound to the user account entered by the user.
  • the network distribution success information or the neighborhood aware network beacon may carry the right confirmation information.
  • the right confirmation information mainly includes the SN of the IoT device, the distance between the IoT device and the terminal device (used for "geo-fence" judgment) and other information.
  • the terminal device can query whether the IoT device is online.
  • the terminal device can discover the IoT device from the gateway device or the server through a device discovery mechanism, so as to inform whether the IoT device is connected to the gateway device or the server.
  • the terminal device discovering the IoT device from the gateway device through the device discovery mechanism may refer to: the terminal device can search for the IoT device from the connected device list of the gateway device.
  • the gateway device is connected to the server, if the IoT device has been successfully connected to the gateway device, the IoT device can connect to the server through the gateway device.
  • the terminal device can query from the server whether the IoT device is online. This indicates that the terminal device discovered the IoT device from the server through the device discovery mechanism.
  • the terminal device discovering the IoT device from the gateway device through the device discovery mechanism may refer to: the terminal device can search for the IoT device from the connected device list of the gateway device.
  • the gateway device is connected to the server, if the IoT device has been successfully connected to the gateway device, the IoT device can connect to the server through the gateway device.
  • the terminal device can query from the server whether the IoT device is online. This indicates that the terminal device discovered the IoT device from the server through the device discovery mechanism.
  • FIG. 2 is a schematic diagram of the work flow of the terminal device in the network distribution method for the IoT device of the present application.
  • S210 The terminal device and the IoT device construct a neighborhood awareness channel.
  • S220 The terminal device acquires the stored network configuration information of the gateway device.
  • the terminal device transmits the network configuration information to the IoT device through the neighborhood awareness channel, so that the IoT device is connected to the gateway device through the network configuration information.
  • the terminal device and the IoT device build a neighborhood awareness channel, so that the IoT device can obtain the network configuration information of the gateway device sent by the terminal device through the neighborhood awareness channel, so that the IoT device can obtain the network configuration information of the gateway device through a small amount of interaction with the terminal.
  • the network configuration information improves the network distribution efficiency; and the terminal device obtains the network configuration information stored by itself, so that the terminal device can directly send the obtained network configuration information to the terminal device through the neighborhood awareness channel through the media access control layer, reducing network The number of layers that the configuration information passes through, thereby reducing the time consumed by the network configuration information transmission.
  • FIG. 3 is a schematic diagram of the workflow of the IoT device in the network distribution method for the IoT device of the present application.
  • S310 The IoT device and the terminal device build a neighborhood awareness channel.
  • the IoT device can be a smart home appliance, such as a refrigerator or an air conditioner.
  • the IoT device stores network configuration information, so that when the IoT device is powered on, it can directly connect to the gateway device based on the network configuration information stored in the IoT device.
  • the IoT device acquires the network configuration information of the gateway device from the terminal device through a neighborhood awareness channel at the media access control layer of the IoT device.
  • the IoT device is connected to the gateway device through the network configuration information.
  • the IoT device can directly scan the network configuration information to connect to the gateway device.
  • the network configuration information includes the channel of the gateway device. If the connection to the gateway device fails by scanning the network configuration information, the working frequency band of the gateway device can be identified based on the channel of the gateway device; when it is determined that the working frequency band is inconsistent with the supported frequency band of the IoT device , search for candidate network identifiers that fuzzy match with the service set identifier of the gateway device; scan the candidate network identifiers and use the password in the network configuration information (that is, the password of the gateway device) to connect to connect the gateway device.
  • the candidate network identifiers that are vaguely matched with the service set identifier of the gateway device can be searched through various methods.
  • the IoT device scans the service set identifiers of nearby networks, confirms the similarity between the service set identifiers of the nearby network and the service set identifiers of the gateway device, and uses the service set identifiers of the nearby networks whose similarity is greater than a threshold as the candidate network identifier.
  • the IoT device scans the service set identifiers of nearby networks, and uses N consecutive service set identifiers in the service set identifiers of nearby networks that are the same as those of the gateway device as candidate network identifiers, where N ⁇ 2. Further, the service set identifier whose N consecutive characters in the service set identifier of the nearby network are the same as "content other than the working frequency band information in the service set identifier of the gateway device" can be used as the candidate network identifier.
  • the working frequency band information in the service set identifier of the gateway device can also be modified to the supported frequency band information of the IoT device, and the modified service set identifier can be used as the candidate network identifier.
  • the working frequency band of the access network channel is 5GHz
  • the service set identifier of the gateway device is "meidi-5G”
  • the supported frequency band of the IoT device is 2.4GHz
  • the candidate network identifiers can be "meidi-2.4G", "meidi-2.4G”, “meidi-2.4G” meidi-2.4GHz", "meidi-2.4g", "meidi-2.4-G” or "meidi-2.4_G", etc.
  • the candidate network identifiers may be sorted in descending order of similarity between the candidate network identifiers and the service set identifier of the gateway device, so that when scanning the candidate network identifiers, the candidate network identifiers can be sorted. , first scan the candidate network identifiers with high similarity to the service set identifier of the gateway device, and then scan the identifiers with low similarity to the service set identifier of the gateway device, so that the IoT device can connect with the gateway device faster, thereby improving the Internet of Things. The efficiency of device access to the network.
  • a preset time can be waited for, and when the preset time arrives, the next candidate network identifier can be scanned to try to connect to the gateway device again. Further, when the preset time arrives, you can first enter the to-be-configured network mode and record the status to be confirmed, then the module restarts, and after restarting, scans the next candidate network identifier.
  • a timer can be used to determine whether the preset time has been reached, so as to avoid blindness due to environmental problems.
  • the preset time can be any preset time, for example, 40s.
  • the working frequency band of the gateway device fails to be identified based on the channel of the gateway device; it can be determined whether the working frequency band of the access network is consistent with the supported frequency band of the IoT device based on the service set identifier of the gateway device; The set identifies candidate network identities for fuzzy matching.
  • the working frequency band information is generally located at the suffix of the network identification, such as "meidi5g”, “meidi-5g”, “meidi-5GHz”, etc., it can be confirmed based on the suffix of the access network identification whether the working frequency band of the access network is compatible with the support
  • the frequency bands are inconsistent.
  • the network ID sent by the gateway device does not necessarily carry the working frequency band information, it may happen that the working frequency band of the access network cannot be confirmed based on the access network ID.
  • the situation where it is impossible to confirm whether the operating frequency band of the access network is consistent with the supported frequency band based on the access network identifier is classified as "determining that the operating frequency band of the access network is not inconsistent with the supported frequency band based on the access network identifier" .
  • the above steps are similar to the relevant steps in the embodiment shown in FIG. 1 , and details are not repeated here.
  • the IoT device and the terminal device build a neighborhood awareness channel, so that the IoT device can obtain the network configuration information of the gateway device sent by the terminal device through the neighborhood awareness channel, so that the IoT device can obtain the gateway device's network configuration information through a small amount of interaction with the terminal.
  • the network configuration information improves the network distribution efficiency; and the IoT device obtains the network configuration information transmitted by the terminal device at the media access control layer, reducing the number of layers that the network configuration information passes through, thereby reducing the time consumed by the network configuration information transmission.
  • the network distribution method of the above-mentioned Internet of Things device is realized by an electronic device.
  • the electronic device can be a terminal device, such as a mobile phone or a computer.
  • Electronic devices can also be IoT devices, such as smart appliances such as refrigerators, air conditioners, rice cookers or microwave ovens.
  • FIG. 4 is a schematic structural diagram of an embodiment of the electronic device of the present application.
  • the electronic device 10 includes a processor 12, and the processor 12 is configured to execute instructions to implement the above voice interaction method.
  • the specific implementation process please refer to the description of the above-mentioned implementation manner, which will not be repeated here.
  • the electronic device 10 can improve the network distribution efficiency of IoT devices.
  • the processor 12 may also be referred to as a CPU (Central Processing Unit, central processing unit).
  • the processor 12 may be an integrated circuit chip with signal processing capability.
  • Processor 12 may also be a general purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components .
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor or the processor 12 may be any conventional processor or the like.
  • the speech device 10 may further include a memory 11 for storing instructions and data required for the operation of the processor 12 .
  • the processor 12 is configured to execute the instructions to implement the method provided by any of the foregoing embodiments and any non-conflicting combination of the method for network distribution of the Internet of Things device of the present application.
  • FIG. 5 is a schematic structural diagram of a computer-readable storage medium in an embodiment of the present application.
  • the computer-readable storage medium 20 of the embodiment of the present application stores the instruction/program data 21, and when the instruction/program data 21 is executed, implements the method provided by any embodiment of the voice interaction method of the present application and any non-conflicting combination.
  • the instruction/program data 21 can be stored in the above-mentioned storage medium 20 in the form of a program file in the form of a software product, so that a computer device (may be a personal computer, a server, or a network device, etc.) or a processor (processor) Perform all or part of the steps of the methods of the various embodiments of the present application.
  • the aforementioned storage medium 20 includes: a USB flash drive, a removable hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc. media, or terminal devices such as computers, servers, mobile phones, and tablets.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种物联网设备的配网方法及装置。其中,该物联网设备的配网方法包括:终端设备与物联网设备构建邻域感知通道;终端设备获取存储的网关设备的网络配置信息;终端设备在媒体访问控制层将网络配置信息通过邻域感知通道传输给物联网设备,以让物联网设备通过网络配置信息连接至网关设备。本申请物联网设备的配网方法能够提高物联网设备的配网效率。

Description

物联网设备的配网方法及装置
本申请要求于2020年11月19日发文的申请号为2020113078283,发明名称为“物联网设备的配网方法及装置”的中国专利申请的优先权,其通过引用方式全部并入本申请。
【技术领域】
本申请涉及物联网设备的配网技术领域,特别是涉及一种物联网设备的配网方法及装置。
【背景技术】
物联网设备一般需要通过网关设备连接至服务器,才能实现其物联化的功能。基于此,物联网设备需要先获取到网关设备的网络配置信息。但是,目前物联网设备在获取网络配置信息至连接网关设备的过程中,终端设备需要与物联网设备进行多次交互,且物联网设备需要经历“Idle至SoftAP”、“SoftAP至STA”两次工作模式切换,配网效率低。
【发明内容】
本申请提供一种物联网设备的配网方法及装置,以提高物联网设备的配网效率。
为达到上述目的,本申请提供一种物联网设备的配网方法,该方法包括:
终端设备与物联网设备构建邻域感知通道;
终端设备获取存储的网关设备的网络配置信息;
终端设备在媒体访问控制层将网络配置信息通过邻域感知通道传输给物联网设备,以让物联网设备通过网络配置信息连接至网关设备。
其中,终端设备在媒体访问控制层将网络配置信息通过邻域感知通道传输给物联网设备,包括:
终端设备在媒体访问控制层将网络配置信息封装为邻域感知网络协议规定格式的信息;
终端设备在媒体访问控制层将信息通过邻域感知通道传输给物联网设备。
其中,终端设备与物联网设备构建邻域感知通道,包括:
终端设备获取物联网设备广播的邻域感知网络信标;
终端设备基于邻域感知网络信标建立与物联网设备的邻域感知通道。
其中,终端设备与物联网设备构建邻域感知通道,之前包括:终端设备连接至物联网设备能够扫描到的网关设备;
终端设备与物联网设备构建邻域感知通道,包括:终端设备切断与网关设备的连接,建立与物联网设备的邻域感知通道;
获取自身存储的网关设备的网络配置信息,包括:终端设备获取自身存储的上一次成功连接的网关设备的网络配置信息。
其中,获取自身存储的网关设备的网络配置信息,包括:
终端设备扫描周围网络的服务集标识;
终端设备获取自身存储的至少一个网关设备的网络配置信息;
终端设备将周围网络的服务集标识和至少一个网关设备的网络配置信息进行匹配,以确认至少一个网关设备的网络配置信息中的在当前环境能够使用的网络配置信息;
终端设备在媒体访问控制层将网络配置信息通过邻域感知通道传输给物联网设备,包括:终端设备将当前环境能够使用的网络配置信息传输给物联网设备。
其中,网络配置信息包括网关设备的服务集标识、密码和信道,
终端设备在媒体访问控制层将网络配置信息通过邻域感知通道传输给物联网设备,之前包括:终端设备获取物联网设备的支持频段;
终端设备在媒体访问控制层将网络配置信息通过邻域感知通道传输给物联网设备,包括:
终端设备基于网关设备的信道判断网关设备的工作频段;
在网关设备的工作频段与物联网设备的支持频段不一致时,终端设备搜索与网关设备的服务集标识模糊匹配的候选网络标识,将候选网络标识和网关设备的密码组成新的网络配置信息,将新的网络配置信息通过邻域感知通道传输给物联网设备。
其中,终端设备从服务器获取配网成功信息;
终端设备响应于确认指令,基于配网成功信息将物联网设备与用户账户进行绑定,使得终端设备能够远程控制物联网设备。
为达到上述目的,本申请提供一种物联网设备的配网方法,该方法包括:
物联网设备与终端设备构建邻域感知通道;
物联网设备在物联网设备的媒体访问控制层并通过邻域感知通道从终端设备获取网关设备的网络配置信息;
物联网设备通过网络配置信息连接至网关设备。
其中,物联网设备在媒体访问控制层并通过邻域感知通道获取网关设备的网络配置信息,包括:
物联网设备通过邻域感知通道从终端设备获取邻域感知网络协议规定格式的信息;
物联网设备在媒体访问控制层从信息中解析得到网络配置信息;
物联网设备通过网络配置信息连接至网关设备,包括:物联网设备在媒体访问控制层通过网络配置信息连接至网关设备。
其中,物联网设备与终端设备构建邻域感知通道,包括:
物联网设备广播邻域感知网络信标,以建立与处于物联网设备广播范围内的终端设备的邻域感知通道。
其中,物联网设备广播邻域感知网络信标,之前包括:物联网设备在保持站点模式的同时开启邻域感知网络功能。
其中,网络配置信息包括网关设备的服务集标识、密码和信道,物联网设备通过网络配置信息连接至网关设备,包括:
物联网设备在网关设备的信道中扫描网关设备的服务集标识并验证网关设备的密码,连接网关设备不成功;则在全信道扫描网关设备的服务集标识并验证网关设备的密码,以再次连接网关设备。
为达到上述目的,本申请提供一种电子设备,该电子设备包括处理器,处理器用于执行指令以实现上述方法。
为达到上述目的,本申请提供一种计算机可读存储介质,该计算机可读存储介质用于存储指令/程序数据,指令/程序数据能够被执行以实现上述方法。
本申请的物联网设备和终端设备开启邻域感知功能,物联网设备和终端设备构建邻域感知通道,这样物联网设备就能通过邻域感知通道获取终端设备发出的网关设备的网络配置信息,使得物联网设备通过与终端的少量交互就可获得网关设备的网络配置信息,提高了配网效率,并且物联网设备可以在开启邻 域感知功能的同时可以开启sta模式,使得物联网设备无需进行工作模式的多次转换;并且本申请的终端设备获取自身存储的网络配置信息,这样就无需调用底层应用去获取网络配置信息,使得可以通过媒体访问控制层直接将获取到的网络配置信息通过邻域感知通道发送给终端设备,使得网络配置信息需要经过终端设备的L2层(数据链路层)和L1层(物理层)以及物联网设备的L1层(物理层)和L2层(数据链路层)的处理,以减少网络配置信息经过的层数,从而减少了网络配置信息传输所消耗的时间。
【附图说明】
图1是本申请物联网设备的配网方法一实施方式的流程示意图;
图2是本申请物联网设备的配网方法中终端设备的工作流程示意图;
图3是本申请物联网设备的配网方法中物联网设备的工作流程示意图;
图4是本申请电子设备一实施方式的结构示意图;
图5是本申请计算机存储介质一实施方式的结构示意图。
【具体实施方式】
为使本领域的技术人员更好地理解本发明的技术方案,下面结合附图和具体实施方式对本申请所提供的一种物联网设备的配网方法及装置做进一步详细描述。
本申请物联网设备的配网方法应用于物联网设备出厂后初次连云配网的情况,或者应用于物联网设备所处网络环境发生变化导致物联网设备需要重新连云配网的情况,对于这些情况,以家电领域为例,目前冰箱、微波炉、空调和电饭煲等多种家电都具备wifi链接和远程控制的功能,可以作为物联网设备。这些物联网设备一般需要通过路由器等网关设备连接网络以实现物联化,为此物联网设备需要先获取到路由器等网关设备的网络配置信息,以使物联网设备可以通过获取到的网络配置信息连接至网关设备。但是目前,物联网设备的“连云配网”过程主要采用“SoftAP”方式,在此过程中,终端设备需要与物联网设备进行多次交互,且物联网设备需要经历“Idle至SoftAP”、“SoftAP至STA”两次工作模式切换,配网效率低。
基于此,本申请将邻域感知网络技术应用到物联网设备的连云配网中,具体地,物联网设备和终端设备开启邻域感知功能,物联网设备和终端设备构建 邻域感知通道,这样物联网设备就能通过邻域感知通道获取终端设备发出的网关设备的网络配置信息,使得物联网设备通过与终端的少量交互就可获得网关设备的网络配置信息,提高了配网效率,并且物联网设备可以在开启邻域感知功能的同时可以开启sta模式,使得物联网设备无需进行工作模式的多次转换。
目前,终端设备一般是通过输入界面获取用户输入的网络配置信息,然后基于应用层触发的session会话机制进行数据分发和共享,这样网络配置信息就需要经过终端设备的应用层、表示层、会话层、传输层、网络层、数据链路层、物理层以及物联网设备的物理层、数据链路层和网络层的处理,使得网络配置信息需要逐层封包发送与收包层层解析的繁琐操作,花费较多的数据传输时间。为此,本申请的终端设备直接获取自身存储的网络配置信息,这样就无需调用底层应用去获取网络配置信息,使得可以通过媒体访问控制层直接将获取到的网络配置信息通过邻域感知通道发送给终端设备,使得网络配置信息需要经过终端设备的L2层(数据链路层)和L1层(物理层)以及物联网设备的L1层(物理层)和L2层(数据链路层)的处理,以减少网络配置信息经过的层数,从而减少了网络配置信息传输所消耗的时间。具体请参阅图1,图1是本申请物联网设备的配网方法第一实施方式的流程示意图。本实施方式物联网设备的配网方法包括以下步骤。需要注意的是,以下编号仅用于简化说明,并不旨在限制步骤的执行顺序,本实施方式的各步骤可以在不违背本申请技术思想的基础上,任意更换执行顺序。
S110:终端设备与物联网设备构建邻域感知通道。
终端设备可以先与物联网设备构建邻域感知通道,以便终端设备通过邻域感知通道将网关设备的网络配置信息发送给物联网设备,使得物联网设备通过与终端的少量交互就可获得网关设备的网络配置信息,提高了配网效率。
在一实现方式中,终端设备可以在获取到物联网设备的邻域感知网络信标后,基于物联网设备的邻域感知网络信标建立与物联网设备之间的邻域感知通道,即终端设备可以和物联网设备通过邻域感知网络信标互相发现而建成邻域感知通道。其中,本申请实施例中,上述邻域感知网络信标可以包括以下至少一种:电话号码、集成电路卡识别码(integrate circuit cardidentity,ICCID)、国际移动设备识别码(international mobile equipment identity,IMEI)等等,在此不做限定。邻域感知网络信标还可包括物联网设备支持的频段、序列号、产品信息等。 其中,上述邻域感知网络信标可由物联网设备发出的NAN Beacon广播帧承载。
在另一实现方式中,终端设备可以将自身的邻域感知网络信标发送给物联网设备,以让物联网设备获取到终端设备的邻域感知网络信标,以便物联网设备基于终端设备的邻域感知网络信标建立与终端设备之间的邻域感知通道。
在又一实现方式中,终端设备可以构建与物联网设备的邻域感知集群,以形成与物联网设备的邻域感知通道。示例性地,终端设备可以判断周围是否存在邻域感知集群;若有,终端设备加入该集群;若否,则继续搜索以判定周围是否存在邻域感知集群。相对应地,物联网设备可通过其wi-fi Aware功能扫描周围是否存在邻域感知集群,若有,则物联网设备加入集群,若无,则创建一个邻域感知集群。通过上述方式物联网设备和终端设备可以加入同一邻域感知集群,这样物联网设备与移动终端之间可存在可互传信息的邻域感知通道。
可以理解的是,可以在终端设备开启Wi-Fi Aware功能,且物联网设备开启邻域感知功能后,终端设备就可立即构建出与物联网设备的邻域感知通道。并且该邻域感知通道可以一直维持着直至一方的邻域感知功能关闭,使得终端设备和物联网设备可以通过该邻域感知通道互传信息。其中,用户可以手动、“NFC碰一碰”或者其他任意方式开启终端设备的wifi-aware功能。
当然,在其他实现方式中,终端设备可以自主地判断是否需要构建与物联网设备的邻域感知通道。终端设备判定当前符合构建与物联网设备的邻域感知通道的时机时,执行构建与物联网设备的邻域感知通道的步骤。本实施方式可以通过多种方法判断当前是否符合构建与物联网设备的邻域感知通道的时机。
例如,终端设备通过检测确定物联网设备是否无法连接至网关设备判定当前是否符合构建与物联网设备的邻域感知通道的时机。其中,终端设备确认物联网设备无法连接至网关设备时,则确认当前符合构建与物联网设备的邻域感知通道的时机,此时可以执行构建与物联网设备的邻域感知通道的步骤。可选地,终端设备可以通过查询已连接至网关设备的设备信息,确认连接至网关设备中的设备中是否有物联网设备,以确认物联网设备是否连接至网关设备。在其他实现方式中,终端设备可以从服务器查询物联网设备是否处于离线状态,若物联网设备处于离线状态,可以说明物联网设备无法通过网关设备连接至服务器,即可以说明物联网设备无法连接至网关设备。
又例如,终端设备通过确认是否获取到构建邻域感知通道指令来判定当前 是否符合构建与物联网设备的邻域感知通道的时机。在一个具体的实施例中,当用户知道需要对物联网设备进行配网时,会在终端设备中点击物联网设备状态栏,以使终端设备获取到“构建邻域感知通道指令”,这样终端设备即可确认当前符合构建与物联网设备的邻域感知通道的时机,此时可以执行构建与物联网设备的邻域感知通道的步骤。其中,上述的“物联网设备状态栏”可以是终端设备在接收并解析物联网设备的邻域感知网络信标后,显示在终端设备的WiFi列表或热点列表等列表中的。当然,在另一具体的实施例中,物联网设备确认自身需要配置网络时,会将构建邻域感知通道的指令发送给终端设备,这样终端设备就可响应于构建邻域感知通道的指令,终端设备执行构建与物联网设备的邻域感知通道的步骤。可选地,物联网设备发送的构建邻域感知通道的指令可以为物联网设备的邻域感知网络信标,即物联网设备确认自身需要配置网络时,可以直接将自身的邻域感知网络信标发送给终端设备,终端设备接收到物联网设备的邻域感知网络信标,即代表终端设备获取到构建邻域感知通道指令,此时终端设备可以直接基于从物联网设备获取到的邻域感知网络信标建立与物联网设备的邻域感知通道。
此外,终端设备需要构建与物联网设备的邻域感知通道,所以物联网设备会在终端热点的辐射范围内,因此一般在配置物联网设备的网络时,终端设备会位于物联网设备的附近。
S120:终端设备获取存储的网关设备的网络配置信息。
终端设备与物联网设备建立邻域感知通道后,可以获取自身存储的网关设备的网络配置信息,以便后续可以直接在媒体访问控制层将该网络配置信息进行封包发送,这样无需基于应用层触发的session会话机制进行数据分发和共享,从而减少了网络配置信息传输所消耗的时间。
可以理解的是,终端设备可以采用多种方法获取存储的网关设备的网络配置信息。
例如,终端设备可以对附近网络进行扫描,以确定当前环境网络的服务集标识(SSID,Service Set Identifier),然后在存储器查找终端设备连接过的网络的信息,将当前环境网络的服务集标识与终端设备连接过的网络的信息进行匹配,以查找到终端设备连接过且在当前环境可使用的网络的服务集标识和密码,以便在步骤S130中将查找到的终端设备连接过且在当前环境可使用的网络的服 务集标识和密码等配置信息发送给物联网设备,以保证物联网设备可以通过获取到的网络配置信息连接至网关设备。示例性地,假设终端设备对附近网络扫描确定当前环境的服务集标识有meidi-5G、meidi-2.4G和TP-link_2.4G,而终端设备在存储器中查找到的终端设备连接过的网络信息为(meidi-2.4G,123456)、(TP-link-108,846941)、(D-link-1482,358624),从而可以匹配确认终端设备连接过且在当前环境可使用的网络的服务集标识和密码分别为meidi-2.4G和123456。
其中,终端设备存储的网关设备的网络配置信息是由终端设备基于该网络配置信息连接至网关设备时存储的。若终端设备通过该网络配置信息无法连接至网络配置信息对应的网关设备时,终端设备可以将该网络配置信息删除,以待终端设备通过新的网络配置信息连接至网关设备时,终端设备将新的网络配置信息存储,以保证终端设备存储的网络配置信息是可用的,从而保证物联网设备可以通过获取到的网络配置信息连接至网关设备。另外,终端设备更改网关设备的配置信息时,终端设备可以将自身存储的网关设备的旧的网络配置信息更新为新的网络配置信息。
另例如,在步骤S110中,终端设备可以先连接到当前环境的网络;然后将与当前环境的网络对应的网关设备的连接切断,以建立与物联网设备的邻域感知通道;这样在步骤S120中,终端设备可以获取自身存储的之前成功连接的网关设备的网络配置信息,以便在步骤S130中将获取到的自身存储的之前成功连接的网关设备的网络配置信息发送给物联网设备,以保证物联网设备可以通过获取到的网络配置信息连接至网关设备。
S130:终端设备在媒体访问控制层将网络配置信息通过邻域感知通道传输给物联网设备。
终端设备获取到自身存储的网关设备的网络配置信息,可以在媒体访问控制层将该网络配置信息进行封包发送,使得无需基于应用层触发的session会话机制进行数据分发和共享,以减少了网络配置信息传输所消耗的时间。
可选地,终端设备获取到自身存储的网关设备的网络配置信息后,可以直接将获取到的网关设备的网络配置信息在媒体访问控制层通过邻域感知通道传输给物联网设备。
当然,在其他实现方式中,终端设备可以确认获取到的网关设备的网关配 置信息是否与物联网设备匹配,若匹配,直接将网关设备的网络配置信息传输给物联网设备;若不匹配,对获取到的网络配置信息进行校正,并将确认的新的网络配置信息传输给物联网设备。示例性地,在步骤S130之前,终端设备还可以获取物联网设备的支持频道,且获取到的自身存储的网关设备的网络配置信息可以包括网关设备的服务集标识、密码和信道等信息,终端设备可以基于网关设备的信道确认网关设备的工作频段,并确认网关设备的工作频道是否与物联网设备的支持频段一致;若一致,则可在步骤S130中直接将获取到的网关设备的网络配置信息传输给物联网设备;若不一致,则可搜索与网关设备的服务集标识模糊匹配的候选网络标识,并将候选网络标识和网关设备的密码组成新的网络配置信息,将新的网络配置信息通过邻域感知通道传输给物联网设备。另外,为在新的网络配置信息不可用但步骤S120获取到的网络配置信息可用时物联网设备也能连接至网关设备,终端设备可以将新的网络配置信息和步骤S120获取到的网络配置信息一同传输给物联网设备。其中,物联网设备支持的频道信息可以通过步骤S110中所述的物联网设备的邻域感知网络信标传输给终端设备。其中,搜索与网关设备的服务集标识模糊匹配的候选网络标识的步骤可以包括:扫描附近网络的标识,并将附近网络的标识与网关设备的服务集标识进行匹配,以确定附近网络的标识中能与网关设备的服务集标识模糊匹配的标识,进而将能与网关设备的服务集标识模糊匹配的标识作为候选网络标识。
另外,终端设备可以将网络配置信息通过邻域感知通道点对点地发送给物联网设备。在其他实现方式中,终端设备和至少一个物联网设备组成邻域感知集群,终端设备可以将网络配置信息发布,然后至少一个物联网设备通过订阅配网信息,就可获取到终端设备发出的网络配置信息,这样可以通过本申请的配网方案实现对多台物联网设备的批量配网。
可以理解的是,终端设备可以将网络配置信息封装为邻域感知网络协议规定格式的信息,以通过邻域感知通道可将信元结构和厂家识别接入网络信道的工作频段失败后,因为一些网关设备发出的网络的标识可能带有工作频段信息,所以可能从接入网络标识判断出接入网络的工作频段是否与支持频段不一致。例如,在接入网络标识为预设数值时,接入网络标识为meidi-5G,物联网设备的支持频段为2.4GHz,因为接入网络标识为预设数值,物联网设备无法准确识别出接入网络信道的工作频段,且物联网设备的支持频段“2.4GHz”与接入网络 标识“meidi-5G”中含有的工作频段信息“5G”不一致,所以基于接入网络标识可以判断出接入网络的工作频段与支持频段不一致。进一步地,因为工作频段信息一般位于网络标识的后缀处,例如“meidi5g”、“meidi-5g”、“meidi-5GHz”等,因此可以基于接入网络标识的后缀确认接入网络工作频段是否与支持频段不一致。
可以理解的是,因为网关设备发出的网络标识不一定带有工作频段信息,所以可能会出现基于接入网络标识无法确认接入网络的工作频段的情况,因此可能会出现基于接入网络标识无法确认接入网络的工作频段是否与支持频段一致的情况。为了方便物联网设备处理,把基于接入网络标识无法确认接入网络的工作频段是否与支持频段一致的情况,归为“基于接入网络标识判定接入网络的工作频段不与支持频段不一致”。字段属性符合邻域感知网络协议规范的网络配置信息传输给物联网设备。并且终端设备可以在媒体访问控制层对网络配置信息进行封装,以得到邻域感知网络协议规定格式的信息。
S140:物联网设备在媒体访问控制层并通过邻域感知通道从终端设备获取网关设备的网络配置信息。
终端设备在媒体访问控制层将该网络配置信息进行封包发送,物联网设备可以在媒体访问控制层获取到网络配置信息,使得物联网设备可以通过获取到的网络配置信息连接至网关设备。
可选地,物联网设备可以获取与自身的距离在预设范围内的终端设备传输的网络配置信息。预设范围可以是3到10米。其中,物联网设备和终端设备之间的距离可以通过物联网设备的WLAN RTT(Round-Trip Time,往返时间)位置功能进行测量。具体地,物联网设备可以向终端设备发送测量数据包;然后计算测量数据包在终端设备与物联网设备之间往返所需的时间,将该时间诚意光速的方式计算物联网设备与终端设备之间的距离。当然在其他实现方式中,物联网设备可以获取所有终端设备传输的网络配置信息,然后依次扫描所有终端设备传输的网络配置信息,以尝试连接至网关设备。
S150:通过网络配置信息连接至网关设备。
物联网设备获取到网络配置信息后,可以通过网络配置信息连接至网关设备,以完成物联网设备的配网操作。
可选地,物联网设备获取到网络配置信息后,可以直接在全信道中扫描网 络配置信息,即在物联网设备支持的所有信道中扫描网络配置信息,直至完成与网关设备的连接或所有信道均已扫描完毕。
在其他实现方式中,物联网设备获取到的网络配置信息可以包括网关设备的信道,物联网设备可以先在网关设备的信道中扫描网络配置信息;若在网关设备的信道连接网关设备失败,则在全信道扫描网络配置信息,以连接至网关设备。
另外,在全信道中对网络配置信息扫描失败后,可以等待预设时间,在预设时间到达时对网络配置信息重新扫描,以再次尝试通过网络配置信息连接网关设备,若重新扫描的次数达到阈值,则此次配网失败。其中,可以通过定时器判断是否到达预设时间,以避免由于环境问题导致盲等。预设时间可以是任意预设的时间,例如40s。
在本实施方式中,物联网设备和终端设备开启邻域感知功能,物联网设备和终端设备构建邻域感知通道,这样物联网设备就能通过邻域感知通道获取终端设备发出的网关设备的网络配置信息,使得物联网设备通过与终端的少量交互就可获得网关设备的网络配置信息,提高了配网效率,并且物联网设备可以在开启邻域感知功能的同时可以开启sta模式,使得物联网设备在配网过程中可以始终保持STA模式,无需进行工作模式的多次转换;并且本申请的终端设备获取自身存储的网络配置信息,这样就无需调用底层应用去获取网络配置信息,使得可以通过媒体访问控制层直接将获取到的网络配置信息通过邻域感知通道发送给终端设备,使得网络配置信息需要经过终端设备的L2层(数据链路层)和L1层(物理层)以及物联网设备的L1层(物理层)和L2层(数据链路层)的处理,减少网络配置信息经过的层数,从而减少了网络配置信息传输所消耗的时间,并且物联网设备也无需和终端设备内的物联网设备管理APP(例如美的美居)进行交互。
进一步地,基于本申请的物联网设备的配网方法,物联网设备成功地通过网关设备连接至服务器后,服务器会及时地将“配网成功”信息推送给终端设备,终端设备响应于确认指令,可以基于配网成功信息将物联网设备与用户输入的用户账户进行绑定,这样终端设备就可接管电控功能,使得终端设备能够远程控制物联网设备。该配网成功信息还可以直接推送到“支付宝”、“微信”或“云闪付”等常用APP内嵌的物联网设备控制服务小程序或者“物联网设备云管家”等物 联网设备厂商专用APP中,通过常用APP内嵌的物联网设备控制服务小程序或者物联网设备厂商专用APP来体验物联网设备带来的科技感和操控便捷性。
可以理解的是,在响应于确认指令将物联网设备与用户输入的用户账户进行绑定之前,可以先从物联网设备或服务器获取物联网设备的确认信息,以基于该确权信息将物联网设备与用户输入的用户账户进行绑定。其中,配网成功信息或邻域感知网络信标可以承载有该确权信息。确权信息主要包括物联网设备的SN、物联网设备与终端设备的距离(用于“地理围栏”判断)等信息。
在终端设备完成物联网设备与用户账户的绑定后,终端设备可以查询物联网设备是否在线。可选地,终端设备可以通过设备发现机制从网关设备或服务器发现物联网设备,以告知物联网设备是否连接至网关设备或服务器。
具体地,终端设备通过设备发现机制从网关设备发现物联网设备可以指:终端设备可以从网关设备的已连接设备列表查找物联网设备。另外,在网关设备连接至服务器时,物联网设备若已成功连接至网关设备,物联网设备就可通过网关设备连接至服务器,此时终端设备可以从服务器查询物联网设备是否在线,若在线则说明终端设备通过设备发现机制从服务器发现了物联网设备。
具体地,终端设备通过设备发现机制从网关设备发现物联网设备可以指:终端设备可以从网关设备的已连接设备列表查找物联网设备。另外,在网关设备连接至服务器时,物联网设备若已成功连接至网关设备,物联网设备就可通过网关设备连接至服务器,此时终端设备可以从服务器查询物联网设备是否在线,若在线则说明终端设备通过设备发现机制从服务器发现了物联网设备。
对于终端设备,其实现物联网设备的配网方法的步骤请参阅图2,图2是本申请物联网设备的配网方法中终端设备的工作流程示意图。
S210:终端设备与物联网设备构建邻域感知通道。
S220:终端设备获取存储的网关设备的网络配置信息。
S230:终端设备在媒体访问控制层将网络配置信息通过邻域感知通道传输给物联网设备,以让物联网设备通过网络配置信息连接至网关设备。
本实施方式中上述步骤与图1所示实施例中的相关步骤类似,具体不再赘述。终端设备与物联网设备构建邻域感知通道,使得物联网设备能够通过邻域感知通道获取终端设备发出的网关设备的网络配置信息,使得物联网设备通过与终端的少量交互就可获得网关设备的网络配置信息,提高了配网效率;并且 终端设备获取自身存储的网络配置信息,使得终端设备可以通过媒体访问控制层直接将获取到的网络配置信息通过邻域感知通道发送给终端设备,减少网络配置信息经过的层数,从而减少了网络配置信息传输所消耗的时间。
对于物联网设备,其实现物联网设备的配网方法的步骤请参阅图3,图3是本申请物联网设备的配网方法中物联网设备的工作流程示意图。
S310:物联网设备与终端设备构建邻域感知通道。
物联网设备可以为智能家电等,例如冰箱或空调等,物联网设备内存储有网络配置信息,以在物联网设备上电时,可以直接基于其内存储的网络配置信息连接至网关设备。
S320:物联网设备在物联网设备的媒体访问控制层并通过邻域感知通道从终端设备获取网关设备的网络配置信息。
S330:物联网设备通过网络配置信息连接至网关设备。
可选地,物联网设备获取到网络配置信息后,可以直接扫描网络配置信息,以连接至网关设备。网络配置信息包括网关设备的信道,若通过扫描网络配置信息连接网关设备失败,可以基于网关设备的信道识别网关设备的工作频段;在确定所述工作频段与所述物联网设备的支持频段不一致时,搜索与网关设备的服务集标识模糊匹配的候选网络标识;扫描候选网络标识并利用网络配置信息中的密码(即网关设备的密码)进行连接,以连接网关设备。
具体地,可以通过多种方法搜索与网关设备的服务集标识模糊匹配的候选网络标识。
例如,物联网设备扫描附近网络的服务集标识,确认附近网络的服务集标识与网关设备的服务集标识的相似度,将相似度大于阈值的附近网络的服务集标识作为候选网络标识。
另例如,物联网设备扫描附近网络的服务集标识,将附近网络的服务集标识中连续N个字符与网关设备的服务集标识相同的服务集标识作为候选网络标识,其中N≥2。进一步地,可以将附近网络的服务集标识中连续N个字符与“网关设备的服务集标识中工作频段信息以外的内容”相同的服务集标识作为候选网络标识。
又例如,还可以将网关设备的服务集标识中工作频段信息修改为物联网设备的支持频段信息,将修改后的服务集标识作为候选网络标识。假设,接入网 络信道的工作频段为5GHz,网关设备的服务集标识为“meidi-5G”,而物联网设备的支持频段为2.4GHz,这样候选网络标识可为“meidi-2.4G”、“meidi-2.4GHz”、“meidi-2.4g”、“meidi-2.4-G”或“meidi-2.4_G”等。
若确定的候选网络标识的数量为至少两个,可以进一步按照候选网络标识与网关设备的服务集标识的相似度从高到低的顺序,对候选网络标识进行排序,以在扫描候选网络标识时,先扫描与网关设备的服务集标识相似度高的候选网络标识,后扫描与网关设备的服务集标识相似度低的标识,使得物联网设备可以更快地与网关设备连接,从而提高物联网设备接入网络的效率。即在扫描候选网络标识并验证网关设备的密码时,按照相似度从高到低的顺序,逐个扫描候选网络标识和网关设备的密码,直至所有候选网络标识均已扫描或成功连接至网关设备。
其中,对一个候选网络标识扫描失败后,可以等待预设时间,在预设时间到达时对下一个候选网络标识进行扫描,以再次尝试连接网关设备。进一步地,预设时间到达时,可以先进入待配网模式并记录待确权状态,然后模块重启,重启后对下一个候选网络标识进行扫描。另外,可以通过定时器判断是否到达预设时间,以避免由于环境问题导致盲等。预设时间可以是任意预设的时间,例如40s。
另外,若基于网关设备的信道识别网关设备的工作频段失败;可以基于网关设备的服务集标识判定接入网络的工作频段与物联网设备的支持频段是否一致;若不一致,搜索与网关设备的服务集标识模糊匹配的候选网络标识。
其中,因为工作频段信息一般位于网络标识的后缀处,例如“meidi5g”、“meidi-5g”、“meidi-5GHz”等,从而可以基于接入网络标识的后缀确认接入网络工作频段是否与支持频段不一致。
可以理解的是,因为网关设备发出的网络标识不一定带有工作频段信息,所以可能会出现基于接入网络标识无法确认接入网络的工作频段的情况,因此可能会出现基于接入网络标识无法确认接入网络的工作频段是否与支持频段一致的情况。为了方便物联网设备处理,把基于接入网络标识无法确认接入网络的工作频段是否与支持频段一致的情况,归为“基于接入网络标识判定接入网络的工作频段不与支持频段不一致”。
上述步骤与图1所示实施例中的相关步骤类似,具体不再赘述。物联网设 备与终端设备构建邻域感知通道,使得物联网设备能够通过邻域感知通道获取终端设备发出的网关设备的网络配置信息,使得物联网设备通过与终端的少量交互就可获得网关设备的网络配置信息,提高了配网效率;并且物联网设备在媒体访问控制层获取终端设备传输的网络配置信息,减少网络配置信息经过的层数,从而减少了网络配置信息传输所消耗的时间。
上述物联网设备的配网方法由电子设备实现。电子设备可以是终端设备,例如手机或计算机等。电子设备还可以是物联网设备,例如冰箱、空调、电饭煲或微波炉等智能电器。
请参阅图4,图4是本申请电子设备一实施方式的结构示意图。本电子设备10包括处理器12,处理器12用于执行指令以实现上述语音交互方法。具体实施过程请参阅上述实施方式的描述,在此不再赘述。该电子设备10能够提高物联网设备的配网效率。
处理器12还可以称为CPU(Central Processing Unit,中央处理单元)。处理器12可能是一种集成电路芯片,具有信号的处理能力。处理器12还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器12也可以是任何常规的处理器等。
语音设备10还可进一步包括存储器11,用于存储处理器12运行所需的指令和数据。
处理器12用于执行指令以实现上述本申请物联网设备的配网方法任一实施例及任意不冲突的组合所提供的方法。
请参阅图5,图5为本申请实施方式中计算机可读存储介质的结构示意图。本申请实施例的计算机可读存储介质20存储有指令/程序数据21,该指令/程序数据21被执行时实现本申请语音交互方法任一实施例以及任意不冲突的组合所提供的方法。其中,该指令/程序数据21可以形成程序文件以软件产品的形式存储在上述存储介质20中,以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式方法的全部或部分步骤。而前述的存储介质20包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟 或者光盘等各种可以存储程序代码的介质,或者是计算机、服务器、手机、平板等终端设备。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (14)

  1. 一种物联网设备的配网方法,其特征在于,
    终端设备与所述物联网设备构建邻域感知通道;
    所述终端设备获取存储的网关设备的网络配置信息;
    所述终端设备在媒体访问控制层将所述网络配置信息通过所述邻域感知通道传输给所述物联网设备,以让所述物联网设备通过所述网络配置信息连接至所述网关设备。
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备在媒体访问控制层将所述网络配置信息通过所述邻域感知通道传输给所述物联网设备,包括:
    所述终端设备在所述媒体访问控制层将所述网络配置信息封装为邻域感知网络协议规定格式的信息;
    所述终端设备在所述媒体访问控制层将所述信息通过所述邻域感知通道传输给物联网设备。
  3. 根据权利要求1所述的方法,其特征在于,所述终端设备与所述物联网设备构建邻域感知通道,包括:
    所述终端设备获取所述物联网设备广播的邻域感知网络信标;
    所述终端设备基于所述邻域感知网络信标建立与所述物联网设备的邻域感知通道。
  4. 根据权利要求1所述的方法,其特征在于,
    所述终端设备与所述物联网设备构建邻域感知通道,之前包括:所述终端设备连接至所述物联网设备能够扫描到的网关设备;
    所述终端设备与所述物联网设备构建邻域感知通道,包括:所述终端设备切断与所述网关设备的连接,建立与物联网设备的邻域感知通道;
    所述获取自身存储的网关设备的网络配置信息,包括:所述终端设备获取自身存储的上一次成功连接的网关设备的网络配置信息。
  5. 根据权利要求1所述的方法,其特征在于,所述获取自身存储的网关设备的网络配置信息,包括:
    所述终端设备扫描周围网络的服务集标识;
    所述终端设备获取自身存储的至少一个网关设备的网络配置信息;
    所述终端设备将所述周围网络的服务集标识和所述至少一个网关设备的网 络配置信息进行匹配,以确认所述至少一个网关设备的网络配置信息中的在当前环境能够使用的网络配置信息;
    所述终端设备在媒体访问控制层将所述网络配置信息通过所述邻域感知通道传输给物联网设备,包括:所述终端设备将所述当前环境能够使用的网络配置信息传输给所述物联网设备。
  6. 根据权利要求4或5所述的方法,其特征在于,所述网络配置信息包括所述网关设备的服务集标识、密码和信道,
    所述终端设备在媒体访问控制层将所述网络配置信息通过所述邻域感知通道传输给物联网设备,之前包括:所述终端设备获取所述物联网设备的支持频段;
    所述终端设备在媒体访问控制层将所述网络配置信息通过所述邻域感知通道传输给物联网设备,包括:
    所述终端设备基于所述网关设备的信道判断所述网关设备的工作频段;
    在所述网关设备的工作频段与所述物联网设备的支持频段不一致时,所述终端设备搜索与所述网关设备的服务集标识模糊匹配的候选网络标识,将所述候选网络标识和所述网关设备的密码组成新的网络配置信息,将所述新的网络配置信息通过邻域感知通道传输给物联网设备。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述终端设备从服务器获取配网成功信息;
    所述终端设备响应于确认指令,基于所述配网成功信息将所述物联网设备与用户账户进行绑定,使得终端设备能够远程控制所述物联网设备。
  8. 一种物联网设备配网的方法,其特征在于,所述方法包括:
    所述物联网设备与所述终端设备构建邻域感知通道;
    所述物联网设备在所述物联网设备的媒体访问控制层并通过所述邻域感知通道从所述终端设备获取网关设备的网络配置信息;
    所述物联网设备通过所述网络配置信息连接至所述网关设备。
  9. 根据权利要求8所述的方法,其特征在于,所述物联网设备在媒体访问控制层并通过所述邻域感知通道获取网关设备的网络配置信息,包括:
    所述物联网设备通过所述邻域感知通道从所述终端设备获取邻域感知网络协议规定格式的信息;
    所述物联网设备在所述媒体访问控制层从所述信息中解析得到所述网络配置信息;
    所述物联网设备通过所述网络配置信息连接至所述网关设备,包括:所述物联网设备在所述媒体访问控制层通过所述网络配置信息连接至所述网关设备。
  10. 根据权利要求8所述的方法,其特征在于,所述物联网设备与所述终端设备构建邻域感知通道,包括:
    所述物联网设备广播邻域感知网络信标,以建立与处于所述物联网设备广播范围内的所述终端设备的邻域感知通道。
  11. 根据权利要求10所述的方法,其特征在于,所述物联网设备广播邻域感知网络信标,之前包括:所述物联网设备在保持站点模式的同时开启邻域感知网络功能。
  12. 根据权利要求8所述的方法,其特征在于,所述网络配置信息包括所述网关设备的服务集标识、密码和信道,所述物联网设备通过所述网络配置信息连接至所述网关设备,包括:
    所述物联网设备在所述网关设备的信道中扫描所述网关设备的服务集标识并验证所述网关设备的密码,连接所述网关设备不成功;则在全信道扫描所述网关设备的服务集标识并验证所述网关设备的密码,以再次连接所述网关设备。
  13. 一种电子设备,其特征在于,所述电子设备包括处理器,所述处理器用于执行指令以实现如权利要求1-12中任一项所述方法。
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储指令/程序数据,所述指令/程序数据能够被执行以实现如权利要求1-12任一项所述的方法。
PCT/CN2020/141070 2020-11-19 2020-12-29 物联网设备的配网方法及装置 WO2022105028A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20962319.8A EP4250685A4 (en) 2020-11-19 2020-12-29 NETWORK CONFIGURATION METHOD AND APPARATUS FOR AN INTERNET OF THINGS DEVICE
US18/199,324 US20230291799A1 (en) 2020-11-19 2023-05-18 Method and Apparatus of Network Configuration for Internet-of-Things Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011307828.3A CN114598598B (zh) 2020-11-19 2020-11-19 物联网设备的配网方法及装置
CN202011307828.3 2020-11-19

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/199,324 Continuation US20230291799A1 (en) 2020-11-19 2023-05-18 Method and Apparatus of Network Configuration for Internet-of-Things Device

Publications (1)

Publication Number Publication Date
WO2022105028A1 true WO2022105028A1 (zh) 2022-05-27

Family

ID=81708321

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/141070 WO2022105028A1 (zh) 2020-11-19 2020-12-29 物联网设备的配网方法及装置

Country Status (4)

Country Link
US (1) US20230291799A1 (zh)
EP (1) EP4250685A4 (zh)
CN (1) CN114598598B (zh)
WO (1) WO2022105028A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422313A (zh) * 2020-09-29 2021-02-26 漳州立达信光电子科技有限公司 一种基于上位机的配对方法及相关装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150800A (zh) * 2022-06-30 2022-10-04 四川虹美智能科技有限公司 一种基于nfc技术的智能家电配网系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897691A (zh) * 2016-03-24 2016-08-24 美的集团股份有限公司 物联网IoT设备接入网络的方法、装置和系统
CN106507437A (zh) * 2016-11-08 2017-03-15 北京小米移动软件有限公司 智能设备联网方法和装置
US20170208531A1 (en) * 2016-01-15 2017-07-20 Po-Kai Huang Proximity information in configuration of data links in wireless networks
CN106973381A (zh) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 一种WiFi热点密码分享处理方法、系统及移动终端
CN109246658A (zh) * 2017-06-30 2019-01-18 上海掌门科技有限公司 一种无流量数据传输的方法及设备
CN111342985A (zh) * 2018-12-18 2020-06-26 美的集团股份有限公司 配网方法、物联网系统和物联网设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9769645B2 (en) * 2014-10-16 2017-09-19 Qualcomm Incorporated Communication between devices of a neighbor aware network
US10863431B2 (en) * 2014-11-06 2020-12-08 Qualcomm Incorporated Systems and methods for synchronization within a neighborhood aware network
CN109151726B (zh) * 2018-07-25 2020-10-09 Oppo广东移动通信有限公司 邻近感知网络nan的数据处理方法及相关产品
CN110798493B (zh) * 2018-08-02 2022-12-13 青岛经济技术开发区海尔热水器有限公司 一种网络配置方法、装置、终端设备和存储介质
CN111182504B (zh) * 2019-12-25 2023-09-15 广东好太太智能家居有限公司 一种基于Wi-Fi Aware的物联网设备通讯方法、设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170208531A1 (en) * 2016-01-15 2017-07-20 Po-Kai Huang Proximity information in configuration of data links in wireless networks
CN105897691A (zh) * 2016-03-24 2016-08-24 美的集团股份有限公司 物联网IoT设备接入网络的方法、装置和系统
CN106507437A (zh) * 2016-11-08 2017-03-15 北京小米移动软件有限公司 智能设备联网方法和装置
CN106973381A (zh) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 一种WiFi热点密码分享处理方法、系统及移动终端
CN109246658A (zh) * 2017-06-30 2019-01-18 上海掌门科技有限公司 一种无流量数据传输的方法及设备
CN111342985A (zh) * 2018-12-18 2020-06-26 美的集团股份有限公司 配网方法、物联网系统和物联网设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4250685A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422313A (zh) * 2020-09-29 2021-02-26 漳州立达信光电子科技有限公司 一种基于上位机的配对方法及相关装置
CN112422313B (zh) * 2020-09-29 2023-10-17 漳州立达信光电子科技有限公司 一种基于上位机的配对方法及相关装置

Also Published As

Publication number Publication date
CN114598598B (zh) 2023-11-10
EP4250685A4 (en) 2024-05-01
US20230291799A1 (en) 2023-09-14
EP4250685A1 (en) 2023-09-27
CN114598598A (zh) 2022-06-07

Similar Documents

Publication Publication Date Title
EP3735045B1 (en) Method, apparatus, and system for accessing network hotspot device by device to be distributed a network
US20210168883A1 (en) System and method for setting mesh networks with a generic gateway node
RU2693592C1 (ru) Способ, устройство и компьютерное программное изделие для прокси-сеанса обнаружения услуг для беспроводной связи
US9173161B2 (en) Peer-to-peer pre-association discovery operations
KR101735334B1 (ko) 와이파이 P2P 디바이스(Wi-Fi Peer to Peer Device)의 디스커버리(Discovery) 방법 및 장치
WO2022143153A1 (zh) Wi-Fi配置方法及电子设备
WO2022016669A1 (zh) 蓝牙配网方法、设备及存储介质
US8665744B2 (en) Convenient provisioning of embedded devices with WiFi capability
KR102210823B1 (ko) 스마트 홈 디바이스를 위한 연결 방법 및 그 장치
CN112673592A (zh) 具有参与者反馈的设备配备协议
CN112584364A (zh) 蓝牙网络及其通信方法、设备和存储介质
US20230291799A1 (en) Method and Apparatus of Network Configuration for Internet-of-Things Device
CN108781473B (zh) 一种在不同终端间共享文件的方法及设备
CN110602682A (zh) 基于蓝牙BLE和mesh混合的网络管理系统和方法
JP2009520433A (ja) アソシエーション/認証前におけるクエリのローミングのための端末、アクセスポイント、および方法
CN113316147B (zh) 配网方法、终端设备及可读存储介质
CN111405492A (zh) 连接目标网络的方法、装置、存储介质、电子装置
CN112469055A (zh) 设备配网方法、相关设备和存储介质
WO2011140906A1 (zh) 一种无线传感器网络中设备入网方法及装置
CN111065137A (zh) 一种基于蓝牙、无线网络智能设备接入网络的方法
WO2018010595A1 (zh) 入网的方法、装置及系统
WO2023005410A1 (zh) 信息同步方法及系统、存储介质、电子装置
US20170346891A1 (en) Communication method
CN113543282A (zh) 一种无线漫游方法及系统
WO2024179033A1 (zh) 无线热点开启方法、机顶盒、通讯系统及存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020962319

Country of ref document: EP

Effective date: 20230619