WO2022183350A1 - 物联网设备配网方法、终端设备和物联网设备 - Google Patents

物联网设备配网方法、终端设备和物联网设备 Download PDF

Info

Publication number
WO2022183350A1
WO2022183350A1 PCT/CN2021/078557 CN2021078557W WO2022183350A1 WO 2022183350 A1 WO2022183350 A1 WO 2022183350A1 CN 2021078557 W CN2021078557 W CN 2021078557W WO 2022183350 A1 WO2022183350 A1 WO 2022183350A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
frame
request
network
internet
Prior art date
Application number
PCT/CN2021/078557
Other languages
English (en)
French (fr)
Inventor
张军
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to PCT/CN2021/078557 priority Critical patent/WO2022183350A1/zh
Priority to CN202180085599.1A priority patent/CN116671181A/zh
Publication of WO2022183350A1 publication Critical patent/WO2022183350A1/zh

Links

Images

Classifications

    • 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

Definitions

  • the present application relates to the field of communications, and more particularly, to a method, terminal device, and Internet of Things device for network distribution.
  • Wi-Fi is an important device network access method in the IoT system.
  • Service Set Identifier (SSID) and password are necessary network configuration information for IoT devices to connect to Wi-Fi access points.
  • Some IoT devices do not have a user input interface.
  • users need to configure the Wi-Fi network distribution information to the IoT device through the network configuration device, so that the IoT device can access the Wi-Fi network.
  • the commonly used Wi-Fi device network distribution technology has the "softAP" distribution network mode.
  • the device to be distributed works in the Wi-Fi access point (Access Point, AP) mode, and the user uses the network distribution device (such as mobile phones and other terminals).
  • device connect to the Wi-Fi access point generated by the device to be configured, and transmit the Wi-Fi network access configuration information to the device to be configured, and the device to be configured can be connected to the Wi-Fi network.
  • the softAP network configuration method requires the user to manually switch the network connected to the distribution network device, which is cumbersome for the user to operate, and the network distribution device needs to keep the softAP connection during the network configuration process and cannot connect to the Internet. After the network configuration is completed, the network can be connected normally. Internet, resulting in poor user experience.
  • embodiments of the present application provide a network distribution method for IoT devices, a terminal device, and an IoT device.
  • An embodiment of the present application provides a network distribution method for IoT devices, which is applied to a terminal device.
  • the method includes: the terminal device sends first information, where the first information is carried in a first data frame, and the first information is used to request the first information.
  • IoT devices connect to Wi-Fi networks.
  • An embodiment of the present application provides a network distribution method for IoT devices, which is applied to IoT devices, including: the IoT device receives first information sent by a terminal device, the first information is carried in a first data frame, and the first information is sent by a terminal device. The information is used to request the IoT device to access the Wi-Fi network.
  • An embodiment of the present application provides a terminal device, including: a first sending module, configured to send first information, where the first information is carried in a first data frame, and the first information is used to request a first Internet of Things device to connect into the Wi-Fi network.
  • An embodiment of the present application provides an Internet of Things device, including: a first receiving module configured to receive first information sent by a terminal device, where the first information is carried in a first data frame, and the first information is used to request all
  • the IoT device is connected to the Wi-Fi network.
  • An embodiment of the present application provides a terminal device, including: a processor and a memory, where the memory is used to store a computer program, the processor invokes and runs the computer program stored in the memory, and executes the above method.
  • An embodiment of the present application provides an IoT device, including: a processor and a memory, where the memory is used to store a computer program, and the processor invokes and runs the computer program stored in the memory to execute the above method.
  • An embodiment of the present application provides a chip, including: a processor, configured to call and run a computer program from a memory, so that a device on which the chip is installed executes the above method.
  • Embodiments of the present application provide a computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute the above method.
  • Embodiments of the present application provide a computer program product, including computer program instructions, wherein the computer program instructions cause a computer to execute the above method.
  • An embodiment of the present application provides a computer program, and the computer program enables a computer to execute the above method.
  • the terminal device in this embodiment of the present application can send the first data frame to the IoT device, and the first data frame carries the first information to request the IoT device to access the Wi-Fi network. Based on this, the IoT device can Information is conveniently connected to the Wi-Fi network. Therefore, using the embodiments of the present application can eliminate the need for users to manually switch the Wi-Fi network connected to the network distribution device, solve the problem of cumbersome manual operation, and because the network distribution device does not need to disconnect its own Wi-Fi during the network distribution process Therefore, it will not affect the normal network communication of end users, which can greatly improve the user experience.
  • FIG. 1 is a schematic diagram of a communication system architecture according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for configuring a network of IoT devices on a terminal side according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a network distribution method on the device side of the Internet of Things according to an embodiment of the present application.
  • FIG. 4 schematically shows the definition of a frame format of a Wi-Fi management frame.
  • FIG. 5 schematically shows the structure of a Frame Control frame control field.
  • FIG. 6 is a block diagram of an interaction flow of a method for configuring a network of IoT devices according to an embodiment of the present application.
  • FIG. 7 is a block diagram of an interaction flow of a method for network distribution of an IoT device according to another embodiment of the present application.
  • FIG. 8 is a schematic structural block diagram of a terminal device according to an embodiment of the present application.
  • FIG. 9 is a schematic structural block diagram of an IoT device according to an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of a communication device according to an embodiment of the present application.
  • FIG. 11 is a schematic block diagram of a chip according to an embodiment of the present application.
  • the terminal equipment may also be referred to as user equipment (User Equipment, UE), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, Wireless communication equipment, user agent or user equipment, etc.
  • UE User Equipment
  • access terminal subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, Wireless communication equipment, user agent or user equipment, etc.
  • the terminal device may be a station (STAION, ST) in a WLAN, and may be a cellular phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, SIP) phone, or a Wireless Local Loop (WLL) Stations, Personal Digital Assistant (PDA) devices, handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, next-generation communication systems such as those in NR networks Terminal equipment, or terminal equipment in a future evolved Public Land Mobile Network (Public Land Mobile Network, PLMN) network, etc.
  • STAION Session Initiation Protocol
  • SIP Session Initiation Protocol
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistant
  • the terminal device can be deployed on land, including indoor or outdoor, handheld, wearable, or vehicle-mounted; it can also be deployed on water (such as ships, etc.); it can also be deployed in the air (such as planes, balloons, and satellites, etc.) ).
  • the terminal device may be a mobile phone (Mobile Phone), a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (Virtual Reality, VR) terminal device, and an augmented reality (Augmented Reality, AR) terminal Equipment, wireless terminal equipment in industrial control, wireless terminal equipment in self driving, wireless terminal equipment in remote medical, wireless terminal equipment in smart grid , wireless terminal equipment in transportation safety, wireless terminal equipment in smart city or wireless terminal equipment in smart home, etc.
  • a mobile phone Mobile Phone
  • a tablet computer Pad
  • a computer with a wireless transceiver function a virtual reality (Virtual Reality, VR) terminal device
  • augmented reality (Augmented Reality, AR) terminal Equipment wireless terminal equipment in industrial control, wireless terminal equipment in self driving, wireless terminal equipment in remote medical, wireless terminal equipment in smart grid , wireless terminal equipment in transportation safety, wireless terminal equipment in smart city or wireless terminal equipment in smart home, etc.
  • the terminal device may also be a wearable device.
  • Wearable devices can also be called wearable smart devices, which are the general term for the intelligent design of daily wear and the development of wearable devices using wearable technology, such as glasses, gloves, watches, clothing and shoes.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-scale, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones.
  • the technical solutions of the embodiments of the present application can be applied to various IoT devices.
  • the IoT device in this embodiment of the present application may be a consumer IoT device, a commercial IoT device, or an industrial IoT device.
  • IoT devices are usually smart devices.
  • IoT devices in the Internet of Things (IOT) generally use WiFi to connect with routers, and then exchange data with the cloud through smart terminals such as mobile phones.
  • IOT Internet of Things
  • system and “network” are often used interchangeably herein.
  • the term “and/or” herein is used to describe the association relationship of associated objects, for example, it means that there can be three relationships between the associated objects before and after, for example, A and/or B can mean: A alone exists, A and B exist simultaneously, There are three cases of B alone.
  • the character "/” in this document generally indicates that the related objects are "or”.
  • the term “corresponding” may indicate that there is a direct or indirect corresponding relationship between the two, or may indicate that there is an associated relationship between the two, or indicate and be instructed, configure and be instructed configuration, etc.
  • SoftAP is a relatively mainstream IoT device network configuration method.
  • IoT devices that support softAP mode work in AP mode, turn on the softAP hotspot, and disconnect the current Wi-Fi from the network configuration device (such as a smartphone or other smart terminal device).
  • the access point is connected and connected to the softAP hotspot of the IoT device to form a temporary local area network.
  • the user or operator enters the Wi-Fi network configuration information through the network configuration device, and the network configuration device sends the Wi-Fi network configuration information to the IoT device.
  • the IoT device can be connected to the Wi-Fi access point, the network configuration device can disconnect the softAP connection, and then reconnect to the Wi-Fi access point.
  • the softAP network configuration method requires the user to manually switch the network connected to the network configuration device, first disconnect the current Wi-Fi connection, and connect to the softAP hotspot, and then reconnect the Wi-Fi access point after the IoT device completes the network configuration. It is cumbersome; and in the process of network distribution, the network distribution device needs to keep the softAP connection and cannot connect to the Internet. After the IoT device completes the network distribution, the distribution network device can connect to the Internet normally. In some cases, it may cause the user to use the current The other programs of the device are faulty due to the disconnection of the network, and the user experience is poor.
  • an embodiment of the present application provides a method for network distribution of IoT devices, which is applied to terminal devices.
  • the method includes:
  • a terminal device sends first information, where the first information is carried in a first data frame, and the first information is used to request a first Internet of Things device to access a Wi-Fi network.
  • the terminal device can send the first data frame to the IoT device, and the first data frame carries the first information to request the IoT device to access the Wi-Fi network. Based on this, the IoT device can receive The information received can be easily connected to the Wi-Fi network.
  • the embodiments of the present application it is possible to eliminate the need for the user to manually switch the Wi-Fi network connected to the terminal device (as a distribution network device), solve the problem of cumbersome manual manual operation, and the terminal device does not need to be disconnected during the network distribution process. Open its own Wi-Fi access point connection, so it will not affect the normal network communication of end users, which can greatly improve the user experience.
  • the first data frame carrying the first information may include a Wi-Fi management frame, that is, a Wi-Fi management frame may be used to carry the first information, which will be described below.
  • a Wi-Fi management frame may be used to carry the first information, which will be described below.
  • the structure of the Wi-Fi management frame in the application embodiments is described.
  • other suitable data frame formats may also be used to carry the first information, such as Bluetooth data frames.
  • the first information includes network configuration information, and the network configuration information is used for the first Internet of Things device to access a Wi-Fi network.
  • the network distribution information includes a service set identifier SSID and/or a password.
  • the network distribution information has been encrypted; after receiving the network distribution information, the IoT device needs to perform corresponding decryption processing to obtain the SSID and/or password of the Wi-Fi access point, which can then be accessed. into the Wi-Fi network.
  • the first information is sent in a unicast mode or a broadcast mode, that is, the terminal device can send the first information in a unicast packet or a broadcast packet, respectively. Take a look at:
  • the terminal device sends the first information to the selected specific IoT device (such as the first IoT device), for example, the first information may include the MAC address of the first IoT device;
  • the terminal device can broadcast the first information including the encrypted distribution network information, then among the one or more IoT devices that have received the first information, the IoT device with the correct key can decrypt it
  • the distribution network information in the network completes the network distribution; and for the IoT devices that are not configured with the correct key, even if the first information is received, the network distribution cannot be completed.
  • the terminal device receives second information sent by the first Internet of Things device, and the second information is sent by the first Internet of Things device.
  • a data frame is carried, and the second information includes network distribution status information of the first IoT device.
  • the network configuration status information includes at least one of the following: network configuration is successful, network configuration fails, and network configuration is in progress. Based on this, the first IoT device in the embodiment of the present application can feed back the distribution network status to the terminal device through the second information.
  • the terminal device sends third information
  • the third information is carried in the first data frame
  • the third information is carried by the first data frame.
  • Information is used to request information from IoT devices.
  • the third information is sent by broadcasting. That is to say, the terminal device in this embodiment of the present application can send the third information to multiple IoT devices in the environment by broadcasting, so as to request the information of the IoT device, such as the ID information of the IoT device, if the If the first Internet of Things device feeds back its own ID information to the terminal device, the terminal device may send the first information to the first Internet of Things device to request the first Internet of Things device to access the Wi-Fi network.
  • the terminal device receives fourth information sent by the first Internet of Things device, and the fourth information is sent by the first Internet of Things device.
  • a data frame is carried, and the fourth information includes information of the first Internet of Things device.
  • the first Internet of Things device in this embodiment of the present application can send its own information, such as ID information, to the terminal device through the fourth information, so that the terminal device can determine that it can send network distribution information to the first Internet of Things device, so that the first Internet of Things device can be sent to the first Internet of Things device.
  • the device is connected to the Wi-Fi network.
  • an embodiment of the present application further provides a method for network distribution of IoT devices, which is applied to IoT devices.
  • the method includes:
  • the IoT device receives first information sent by a terminal device, where the first information is carried in a first data frame, and the first information is used to request the IoT device to access a Wi-Fi network.
  • an IoT device (for example, the aforementioned first IoT device) can receive a first data frame sent by a terminal device, where the first data frame carries first information and is used to request the IoT device to access Wi-Fi network. Based on this, the IoT device can conveniently access the Wi-Fi network in response to the first information (or in response to the first data frame). Therefore, using the embodiment of the present application does not require the user to manually switch the Wi-Fi network connected to the terminal device (as a distribution network device), the implementation process is simple, and the terminal device does not need to disconnect its own Wi-Fi network during the entire network distribution process. Therefore, it will not affect the normal network communication of end users, which can greatly improve the user experience.
  • the IoT device after the IoT device receives the first information sent by the terminal device, the IoT device sends second information to the terminal device, and the second information is sent by the terminal device.
  • the first data frame is carried, and the second information includes network distribution status information of the IoT device.
  • the IoT device receives third information sent by the terminal device, and the third information is sent by the terminal device.
  • the first data frame carries, and the third information is used to request information of the Internet of Things device.
  • the third information is sent by broadcasting.
  • the IoT device optionally, after the IoT device receives the third information sent by the terminal device, the IoT device sends fourth information to the terminal device, the fourth information Carrying by the first data frame, the fourth information includes the information of the Internet of Things device.
  • the first information includes at least one of the following Wi-Fi management frames: Probe Request frame, Public Action Request public action request frame, Association Request association request frame, Action No Ack is an action frame that does not require confirmation; wherein, the first information carries a data type and/or network configuration information, and the data type is a device network configuration request, which is used to request an Internet of Things device to configure a network.
  • the first information includes at least one of the following Wi-Fi management frames: a Probe Request frame, a Public Action Request frame, an Association Request frame, and an Action No Ack frame; wherein, the data type field in the Vendor Specific manufacturer-specific field in the data frame of the first information is indicated as a device network configuration request, which is used to request the Internet of Things device to configure the network, and the data field in the Vendor Specific field includes network configuration information.
  • the second information includes at least one of the following Wi-Fi management frames: Probe Response detection response frame, Public Action Response public behavior response frame, Association Response association response frame;
  • the second information carries data type and/or network configuration status information, and the data type is a device network configuration response, which is used to respond to an IoT device network configuration request.
  • the second information includes at least one of the following Wi-Fi management frames: a Probe Response frame, a Public Action Response frame, and an Association Response frame; wherein the second information
  • the data type field in the Vendor Specific field of the data frame indicates that it is a device network configuration response, which is used to respond to an IoT device network configuration request, and the data field in the Vendor Specific field includes configuration network status information.
  • the third information includes a Probe Request frame in the Wi-Fi management frame, wherein the data type carried in the Probe Request frame is a device discovery request, which is used to request a discovery object Internet-connected devices.
  • the third information includes a Probe Request frame in the Wi-Fi management frame, wherein the data type field in the Vendor Specific field in the Probe Request frame indicates that the device is discovered Request, used to request discovery of IoT devices.
  • the Probe Request frame carries an unconfigured network identifier, which is used to indicate that an unconfigured Internet of Things device is found.
  • the SSID field or the Vendor Specific field in the Probe Request frame carries an unconfigured network identifier, which is used to indicate that an unconfigured Internet of Things device is found.
  • the Probe Request frame carries a manufacturer identifier.
  • the Organization Unique Identifier OUI field in the Vendor Specific field in the Probe Request frame indicates the vendor identification.
  • the fourth information includes a Probe Response frame in the Wi-Fi management frame, wherein the data type carried in the Probe Response frame is a discovery device response, which is used to respond to a discovery object Internet-connected devices.
  • the fourth information includes a Probe Response frame in the Wi-Fi management frame, wherein the data type field in the Vendor Specific field in the Probe Response frame indicates a discovery device Response, for responding to discovering IoT devices.
  • the data carried in the Probe Response frame includes information of IoT devices.
  • the data field in the Vendor Specific field in the Probe Response frame includes the information of the Internet of Things device.
  • the Probe Response frame carries an unconfigured network identifier, which is used to indicate that the IoT device is an unconfigured IoT device.
  • the SSID field or the Vendor Specific field in the Probe Response frame carries an unconfigured network identifier, which is used to indicate that the IoT device is an unconfigured IoT device.
  • Wi-Fi management frame that can be used in the embodiments of the present application.
  • the Internet of Things devices can be configured through the Wi-Fi management frame.
  • FIG. 4 schematically shows the definition of the frame format of a Wi-Fi management frame, which includes the Frame Control frame control field and Frame Body frame body field, etc.
  • FIG. 5 schematically shows the composition of a Frame Control field, which includes a Type type field, a SubType subtype field, and the like. The definition of the Wi-Fi management frame is briefly described below with reference to FIG. 4 and FIG. 5 .
  • the Frame Control field in the Wi-Fi management frame is the frame control field, which is used to distinguish frame types.
  • the Frame Body field in the Wi-Fi management frame is the frame body field, which is the Wi-Fi management frame. transmitted data.
  • the binary value of the Type subfield of 2 bits is 00, which indicates the Wi-Fi management frame; the SubType subfield of 4 bits indicates the subtype of the Wi-Fi management frame.
  • Table 1 schematically lists some combinations and corresponding descriptions of Type and SubType in the Frame Control field of the Wi-Fi management frame, where the value is a binary representation.
  • the Frame Body field of the Wi-Fi management frame includes a Vendor Specific field, which includes vendor-defined information, which may be referred to as a vendor-defined field or a vendor-specific field.
  • Table 2 schematically shows the definition of a Vendor Specific field, which includes: element identification, length, OUI, data type and data, wherein,
  • Element identification used to identify the Vendor Specific field, that is, the information customized by the manufacturer (for example, if the Wi-Fi standard is used, the value can be 221).
  • Length indicates the length of the custom information, for example, the total length of the remaining fields after the length field.
  • OUI Organization Unique Identifier
  • Data type used to indicate the data type, such as device discovery request, device network configuration request, etc.
  • Data used to carry data, such as IoT device information, Wi-Fi network distribution information, etc.
  • the Internet of Things device network configuration is implemented based on the Probe Request frame in the Wi-Fi management frame.
  • the processing process will be described in detail below with reference to FIG. 6 , where the network distribution device may be, for example, a smart phone or other terminal device.
  • Step 11 The distribution network device sends a Probe Request frame, which carries the data type and indicates the discovery device request.
  • the Probe Request frame sent by the network configuration device includes a Vendor Specific field, and the data type field of this field indicates a device discovery request, which is used to request to discover an unconfigured IoT device.
  • Extended Supported Rates Extended support rate Vendor Specific Manufacturer-defined information
  • Table 3 lists a summary of the fields contained in the body of a Probe Request frame, including the SSID and Vendor Specific fields.
  • the Probe Request frame sent by the network configuration device carries the unconfigured network identifier, which specifically indicates that the unconfigured IoT device is found, that is, the networked IoT device does not need to respond.
  • the data field of the Vendor Specific field may carry an unconfigured network identifier, such as "WiFi-Unconfigured".
  • the SSID field of the Probe Request frame may carry an unconfigured network identifier, such as "WiFi-Unconfigured".
  • the Probe Request frame sent by the distribution network device carries the manufacturer's identity, and is used for the receiver, that is, the IoT device side to filter the management frame of a specific manufacturer. For example, it is configured to not receive the management frame that carries the first manufacturer's identity, or , and is configured to receive management frames that carry the identifier of the second manufacturer or the identifier of the third manufacturer, and not to receive management frames that carry the identifiers of other manufacturers.
  • the OUI field of the Vendor Specific field carries the vendor identifier.
  • the IoT device may determine whether to receive the data frame according to the manufacturer identification carried in the OUI field and according to the agreed filtering method.
  • Step 12 After the IoT device monitors the Probe Request frame, the IoT device replies with a Probe Response frame, which carries the data type and IoT device information, and the data type indicates the discovery device response.
  • the Probe Response frame sent by the IoT device includes a Vendor Specific field, and the data type field of the field indicates a discovery device response, which is used to respond to a request for discovering an unconfigured IoT device, and the Vendor Specific field
  • the data field carries IoT device information, such as at least one of the following information of the IoT device: device type, brand, device name, etc.
  • Table 4 lists a summary of the fields contained in the frame body of a Probe Response, including the SSID and Vendor Specific fields.
  • the Probe Response frame sent by the IoT device carries an unconfigured network identifier, specifically indicating that the device is an unconfigured IoT device.
  • the data field of the Vendor Specific field may carry an unconfigured network identifier, such as "WiFi-Unconfigured".
  • the SSID field of the Probe Response frame may carry an unconfigured network identifier, such as "WiFi-Unconfigured".
  • the IoT device can filter the management frame according to the vendor ID, for example, the IoT The device only accepts data frames that contain a specific manufacturer's ID.
  • Step 13 The distribution network device prompts to discover the IoT device and asks the user whether to perform network distribution.
  • a network distribution device such as a smartphone may prompt information of the discovered IoT devices, such as one or more of the device type, brand, device name and other information of the IoT device, for example, it can be displayed on the smartphone Listed or displayed on the screen, users can select one or more IoT devices they want to trigger the network distribution process, and the operation mode is friendly and convenient.
  • the user can be set to automatically agree to access one or some IoT devices, which can further eliminate operation requirements and realize automatic access.
  • Step 14 If the user determines to configure the Internet of Things device, the network configuration device sends a Probe Request frame to the Internet of Things device.
  • the frame carries the data type and Wi-Fi network configuration information, and the data type indicates the device network configuration request.
  • the Probe Request frame sent by the network distribution device includes the Vendor Specific field, which is different from step 11.
  • the data type field of this field indicates the device network configuration request, which is used to request the Internet of Things device to perform network distribution
  • the data field of the Vendor Specific field carries Wi-Fi network configuration information, such as SSID and/or password. After receiving the Wi-Fi network configuration information, the IoT device can access the corresponding Wi-Fi network according to the network configuration information.
  • the network configuration device sends encrypted Wi-Fi network configuration information.
  • the network distribution device uses a symmetric secret key or an asymmetric public key to encrypt the Wi-Fi network distribution information.
  • the network distribution device can obtain the information of the currently connected Wi-Fi access point; if the network distribution device is not connected to the Wi-Fi access point Access point, the user can operate the network distribution device to connect to the Wi-Fi access point.
  • authorized network distribution devices can directly obtain Wi-Fi network distribution information.
  • the configuration file of the operating system of the network configuration device saves the Wi-Fi access point information, and the network configuration application of the network configuration device obtains the Wi-Fi network configuration information from the configuration file of the operating system.
  • Step 15 The IoT device connects to the Wi-Fi access point according to the received Wi-Fi network configuration information.
  • the IoT device if the IoT device receives encrypted Wi-Fi network configuration information, the IoT device needs to perform corresponding decryption processing on the Wi-Fi network configuration information. For example, IoT devices use symmetric or asymmetric private keys to decrypt Wi-Fi distribution information.
  • Step 16 Optionally, after listening to the Probe Request frame, the IoT device replies with a Probe Response frame, which carries the data type and Wi-Fi network configuration result or Wi-Fi network configuration status information, and the data type indicates the device network configuration response .
  • the Probe Response frame sent by the IoT device includes the Vendor Specific field, which is different from step 12.
  • the data type field of this field indicates the device network configuration response, which is used to respond to the unconfigured IoT network.
  • the device requests for network configuration.
  • the data field of the Vendor Specific field carries the Wi-Fi configuration result or Wi-Fi configuration status information, such as successful configuration, failed configuration, and configuration in progress.
  • step 15 and step 16 may be exchanged, that is, step 16 may also be performed before step 15 .
  • step 16 is an optional step, that is, the IoT device can perform network configuration after decrypting the Wi-Fi network configuration information. After the network configuration is successful, it can be connected to the Wi-Fi network and can be used normally. (Network configuration is successful, network configuration fails, network configuration is in progress, etc.), it can be set to feedback to the terminal device by replying to the Probe Response frame, or it can be set to not reply or not to feedback.
  • the Internet of Things device network configuration is implemented based on the Action frame in the Wi-Fi management frame.
  • the processing process will be described in detail below with reference to FIG. 7 , where the network distribution device may be, for example, a smart phone or other terminal device.
  • step 21, step 22 and step 23 are similar to the processing of step 11, step 12 and step 13 in embodiment 1, and the difference between this embodiment and embodiment 1 is mainly that the Wi-Fi -
  • the Action frame in the Fi management frame carries the device network configuration request, which is described as follows.
  • Step 24 If it is determined to configure the Internet of Things device, the network configuration device sends a Public Action Request frame to the Internet of Things device.
  • the frame carries the data type and Wi-Fi network configuration information, and the data type indicates the device network configuration request.
  • the Public Action Request frame sent by the network configuration device includes the Vendor Specific field, and the data type field of this field indicates the device network configuration request, which is used to request the Internet of Things device to be configured.
  • the data field of the Vendor Specific field Carry Wi-Fi network configuration information, such as SSID and password.
  • the network configuration device sends encrypted Wi-Fi network configuration information.
  • the network distribution device uses a symmetric secret key or an asymmetric public key to encrypt the Wi-Fi network distribution information.
  • the network configuration device can obtain information of the currently connected Wi-Fi access point. If the network distribution device is not connected to the Wi-Fi access point, the user can operate the network distribution device to connect to the Wi-Fi access point. Generally speaking, authorized network distribution devices can directly obtain Wi-Fi network distribution information. For example, the configuration file of the operating system of the network configuration device saves the Wi-Fi access point information, and the network configuration application of the network configuration device obtains the Wi-Fi network configuration information from the configuration file of the operating system.
  • Step 25 Similar processing to Step 15 in Embodiment 1 can be performed.
  • Step 26 Optionally, after listening to the Public Action Request frame, the IoT device replies with a Public Action Response frame, which carries the data type and Wi-Fi network configuration result or Wi-Fi network configuration status information, and the data type indicates the device configuration. web response.
  • a Public Action Response frame which carries the data type and Wi-Fi network configuration result or Wi-Fi network configuration status information, and the data type indicates the device configuration. web response.
  • the Public Action Response frame sent by the IoT device includes a Vendor Specific field, and the data type field of this field indicates a device network configuration response, which is used to respond to a request for network configuration to an IoT device that is not configured with a network,
  • the data field of the Vendor Specific field carries the Wi-Fi network configuration result or Wi-Fi network configuration status information, such as successful network configuration, network configuration failure, and network configuration in progress.
  • step 25 and step 26 may be exchanged, that is, step 26 may also be performed before step 25 .
  • step 26 is an optional step, that is, the IoT device can perform network configuration after decrypting the Wi-Fi network configuration information. After the network configuration is successful, it can be connected to the Wi-Fi network and can be used normally. (Network configuration is successful, network configuration fails, network configuration is in progress, etc.), it can be set to feedback to the terminal device by replying to the Probe Response frame, or it can be set to not reply or not to feedback.
  • step 31, step 32, step 33, and step 35 can be processed according to the corresponding steps in Embodiment 1 or Embodiment 2.
  • step 35 and step 36 the execution order of the last two steps in this embodiment can be exchanged, and the last step (step 36 ) in this embodiment is also an optional step.
  • Embodiment 2 uses the Action No Ack frame in the Wi-Fi management frame to configure the Internet of Things devices. Request" is replaced with "Action No Ack”.
  • step 46 the last step (may be referred to as step 46) of the foregoing embodiment is not performed. Therefore, in this embodiment, regardless of whether the network distribution is successful, the IoT device will not feed back the network distribution status to the terminal device.
  • step 41 the remaining processing steps (eg, step 41 , step 42 , step 43 , and step 45 ) can be processed according to the corresponding steps in Embodiment 1 or Embodiment 2.
  • an embodiment of the present application further provides a terminal device 100, referring to FIG. 8, which includes:
  • the first sending module 110 is configured to send first information, where the first information is carried in the first data frame, and the first information is used to request the first Internet of Things device to access the Wi-Fi network.
  • the first sending module 110 sends the first information in a unicast manner or a broadcast manner.
  • the terminal device further includes: a first receiving module, configured to receive second information sent by the first IoT device, the second information is carried in the first data frame, the second information
  • the information includes network distribution status information of the first IoT device.
  • the terminal device further includes: a second sending module, configured to send third information, the third information is carried by the first data frame, and the third information is used to request information of the Internet of Things device .
  • a second sending module configured to send third information
  • the third information is carried by the first data frame
  • the third information is used to request information of the Internet of Things device .
  • the second sending module sends the third information in a broadcast manner.
  • the terminal device further includes: a second receiving module, configured to receive fourth information sent by the first Internet of Things device, where the fourth information is carried in the first data frame, and the fourth information is carried by the first data frame.
  • the information includes information of the first IoT device.
  • an embodiment of the present application further provides an IoT device 200, referring to FIG. 9, which includes:
  • the first receiving module 210 is configured to receive first information sent by a terminal device, where the first information is carried in a first data frame, and the first information is used to request the Internet of Things device to access the Wi-Fi network.
  • the IoT device further includes: a first sending module configured to send second information to the terminal device, where the second information is carried in the first data frame, and the second information includes all Describe the distribution network status information of IoT devices.
  • the IoT device further includes: a second receiving module, configured to receive third information sent by the terminal device, the third information is carried in the first data frame, and the third information is used for information for requesting IoT devices.
  • a second receiving module configured to receive third information sent by the terminal device, the third information is carried in the first data frame, and the third information is used for information for requesting IoT devices.
  • the third information is sent by broadcasting.
  • the IoT device further includes: a second sending module configured to send fourth information to the terminal device, where the fourth information is carried in the first data frame, and the fourth information includes all information about IoT devices.
  • a second sending module configured to send fourth information to the terminal device, where the fourth information is carried in the first data frame, and the fourth information includes all information about IoT devices.
  • the first data frame includes a Wi-Fi management frame.
  • the first information includes network configuration information, and the network configuration information is used for the first Internet of Things device to access the Wi-Fi network.
  • the first information includes at least one of the following Wi-Fi management frames: Probe Request detection request frame, Public Action Request public behavior request frame, Association Request association request frame, Action No Ack behavior that does not require confirmation frame; wherein, the first information carries a data type and/or network configuration information, and the data type is a device network configuration request, which is used to request an IoT device to configure a network.
  • the first information includes at least one of the following Wi-Fi management frames: Probe Request frame, Public Action Request frame, Association Request frame, Action No Ack frame; wherein, the data frame of the first information
  • the data type field in the Vendor Specific vendor-specific field in the Vendor Specific field indicates that it is a device network configuration request, which is used to request the Internet of Things device network configuration, and the data field in the Vendor Specific field includes network configuration information.
  • the network distribution information has been encrypted.
  • the network distribution information includes a service set identifier SSID and/or a password.
  • the second information includes at least one of the following Wi-Fi management frames: Probe Response detection response frame, Public Action Response public behavior response frame, Association Response association response frame; wherein the second information carries data Type and/or network configuration status information, the data type is a device network configuration response, which is used to respond to an IoT device network configuration request.
  • the second information includes at least one of the following Wi-Fi management frames: Probe Response frame, Public Action Response frame, Association Response frame; wherein, the Vendor Specific field in the data frame of the second information
  • the data type field in the device indicates that it is a device configuration response, which is used to respond to the IoT device configuration request, and the data field in the Vendor Specific field includes configuration network status information.
  • the network configuration status information includes at least one of the following: network configuration is successful, network configuration fails, and network configuration is in progress.
  • the third information includes the Probe Request frame in the Wi-Fi management frame, wherein,
  • the data type carried in the Probe Request frame is a device discovery request, which is used to request to discover IoT devices.
  • the third information includes the Probe Request frame in the Wi-Fi management frame, wherein,
  • the data type field in the Vendor Specific field in the Probe Request frame indicates a device discovery request, which is used to request to discover IoT devices.
  • the Probe Request frame carries an unconfigured network identifier, which is used to indicate that an unconfigured Internet of Things device is found.
  • the SSID field or the Vendor Specific field in the Probe Request frame carries an unconfigured network identifier, which is used to indicate that an unconfigured Internet of Things device is found.
  • the Probe Request frame carries a manufacturer identifier.
  • the OUI field in the Vendor Specific field in the Probe Request frame indicates the vendor identification.
  • the fourth information includes a Probe Response frame in the Wi-Fi management frame, wherein the data type carried in the Probe Response frame is a discovery device response, which is used to respond to discover an IoT device.
  • the fourth information includes the Probe Response frame in the Wi-Fi management frame, wherein the data type field in the Vendor Specific field in the Probe Response frame is indicated as a discovery device response, for responding to discovering the Internet of Things equipment.
  • the data carried in the Probe Response frame includes information of the first Internet of Things device.
  • the data field in the Vendor Specific field in the Probe Response frame includes information of the first Internet of Things device.
  • the Probe Response frame carries an unconfigured network identifier, which is used to indicate that the first IoT device is an unconfigured IoT device.
  • the SSID field or the Vendor Specific field in the Probe Response frame carries an unconfigured network identifier, which is used to indicate that the first IoT device is an unconfigured IoT device.
  • the terminal device 100 and the IoT device 200 in the embodiments of the present application can implement the corresponding functions of the terminal devices in the foregoing method embodiments, and each module (submodule, unit or component, etc.) in the terminal device 100 and the IoT device 200
  • each module submodule, unit or component, etc.
  • the functions described in the respective modules (submodules, units, or components, etc.) in the terminal device 100 and the IoT device 200 in the embodiments of the present application may be implemented by different modules (submodules, units, or components, etc.) , can also be realized by the same module (sub-module, unit or component, etc.), for example, the first sending module and the second sending module can be different modules, or the same module, both of which can realize their Apply for the corresponding function in the embodiment.
  • the sending module and the receiving module in the embodiments of the present application may be implemented by the transceiver of the device, and some or all of the other modules may be implemented by the processor of the device.
  • FIG. 10 is a schematic structural diagram of a communication device 600 according to an embodiment of the present application, wherein the communication device 600 includes a processor 610, and the processor 610 can call and run a computer program from a memory to implement the method in the embodiment of the present application.
  • the communication device 600 may also include a memory 620 .
  • the processor 610 may call and run a computer program from the memory 620 to implement the methods in the embodiments of the present application.
  • the memory 620 may be a separate device independent of the processor 610 , or may be integrated in the processor 610 .
  • the communication device 600 may further include a transceiver 630, and the processor 610 may control the transceiver 630 to communicate with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices .
  • the transceiver 630 may include a transmitter and a receiver.
  • the transceiver 630 may further include antennas, and the number of the antennas may be one or more.
  • the communication device 600 may be a terminal device or an Internet of Things device in this embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the terminal device or the Internet of Things device in each method of the embodiment of the present application. It is concise and will not be repeated here.
  • FIG 11 is a schematic structural diagram of a chip 700 according to an embodiment of the present application, wherein the chip 700 includes a processor 710, and the processor 710 can call and run a computer program from a memory to implement the method in the embodiment of the present application.
  • the chip 700 may further include a memory 720 .
  • the processor 710 may call and run a computer program from the memory 720, so as to implement the methods in the embodiments of the present application.
  • the memory 720 may be a separate device independent of the processor 710 , or may be integrated in the processor 710 .
  • the chip 700 may further include an input interface 730 .
  • the processor 710 may control the input interface 730 to communicate with other devices or chips, and specifically, may acquire information or data sent by other devices or chips.
  • the chip 700 may further include an output interface 740 .
  • the processor 710 can control the output interface 740 to communicate with other devices or chips, and specifically, can output information or data to other devices or chips.
  • the chip can be applied to the terminal device in the embodiment of FIG. 8 or the Internet of Things device in the embodiment of FIG. 9 of the present application, and the chip can implement the terminal device or the Internet of Things device in each method of the embodiments of the present application.
  • the corresponding process implemented by the device will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-chip, or a system-on-a-chip, or the like.
  • the processor mentioned above may be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC) or Other programmable logic devices, transistor logic devices, discrete hardware components, etc.
  • DSP digital signal processor
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • the general-purpose processor mentioned above may be a microprocessor or any conventional processor or the like.
  • the memory mentioned above may be either volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM).
  • the memory in the embodiment of the present application may also be a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), Synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection Dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM) and so on. That is, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored on or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted over a wire from a website site, computer, server or data center (eg coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) means to another website site, computer, server or data center.
  • 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, data center, etc. that includes one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
  • the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.

Abstract

提供一种物联网设备配网方法、终端设备和物联网设备,该方法包括:终端设备发送包括配网信息的第一信息,第一信息通过第一数据帧携带,用于请求第一物联网设备接入Wi-Fi网络,从而使物联网设备便捷地接入Wi-Fi网络。

Description

物联网设备配网方法、终端设备和物联网设备 技术领域
本申请涉及通信领域,并且更具体地,涉及一种物联网设备配网方法、终端设备和物联网设备。
背景技术
Wi-Fi是物联网系统中一种重要的设备网络接入方式,服务集标识符(Service Set Identifier,SSID)和密码是物联网设备连接Wi-Fi接入点的必要配网信息,由于大部分物联网设备不具备用户输入界面,通常需要用户通过配网设备将Wi-Fi配网信息配置给物联网设备,便于物联网设备接入Wi-Fi网络。目前常用的Wi-Fi设备配网技术有“softAP”配网方式,待配网设备工作在Wi-Fi的接入点(Access Point,AP)模式下,用户利用配网设备(例如手机等终端设备)连接待配网设备生成的Wi-Fi接入点,并将Wi-Fi网络接入配置信息传送给待配网设备,待配网设备可连接到Wi-Fi网络。
但是,操作时softAP配网方式需用户手动切换配网设备连接的网络,用户操作较为繁琐,且在配网过程中配网设备需保持softAP连接而无法连接互联网,完成配网后才能正常接入互联网,导致用户使用体验感较差。
发明内容
有鉴于此,本申请实施例提供一种物联网设备配网方法、终端设备和物联网设备。
本申请实施例提供一种物联网设备配网方法,应用于终端设备,包括:终端设备发送第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求第一物联网设备接入Wi-Fi网络。
本申请实施例提供一种物联网设备配网方法,应用于物联网设备,包括:物联网设备接收终端设备发送的第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求所述物联网设备接入Wi-Fi网络。
本申请实施例提供一种终端设备,包括:第一发送模块,用于发送第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求第一物联网设备接入Wi-Fi网络。
本申请实施例提供一种物联网设备,包括:第一接收模块,用于接收终端设备发送的第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求所述物联网设备接入Wi-Fi网络。
本申请实施例提供一种终端设备,包括:处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用并运行所述存储器中存储的计算机程序,执行如上所述的方法。
本申请实施例提供一种物联网设备,包括:处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用并运行所述存储器中存储的计算机程序,执行如上所述的方法。
本申请实施例提供一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如上所述的方法。
本申请实施例提供一种计算机可读存储介质,用于存储计算机程序,其中,所述计算机程序使得计算机执行如上所述的方法。
本申请实施例提供一种计算机程序产品,包括计算机程序指令,其中,所述计算机程序指令使得计算机执行如上所述的方法。
本申请实施例提供一种计算机程序,所述计算机程序使计算机执行如上所述的方法。
本申请实施例的终端设备可向物联网设备发送第一数据帧,通过第一数据帧携带第一信息以请求物联网设备接入Wi-Fi网络,基于此,物联网设备可根据接收到的信息便捷地接入Wi-Fi网络。因此,利用本申请实施例可免去用户手动切换配网设备连接的Wi-Fi网络,可解决人工手动操作繁琐的问题,并且由于配网过程中配网设备不需要断开自身的 Wi-Fi连接,因而不会影响终端用户正常网络通信,可大幅提升用户体验。
附图说明
图1是本申请实施例的通信系统架构的示意图。
图2是本申请实施例终端侧的物联网设备配网方法的流程框图。
图3是本申请实施例物联网设备侧的配网方法的流程框图。
图4是示意性地示出一种Wi-Fi管理帧的帧格式的定义。
图5是示意性地示出一种Frame Control帧控制字段的构成。
图6是本申请一个实施例的物联网设备配网方法的交互流程框图。
图7是本申请另一实施例的物联网设备配网方法的交互流程框图。
图8是本申请实施例的终端设备的示意性结构框图。
图9是本申请实施例的物联网设备的示意性结构框图。
图10是本申请实施例的通信设备示意性框图。
图11是本申请实施例的芯片的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
本申请实施例的技术方案可以应用于各种终端设备。本申请实施例中终端设备也可以称为用户设备(User Equipment,UE)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置等。
本申请实施例中终端设备可以是WLAN中的站点(STAION,ST),可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备、下一代通信系统例如NR网络中的终端设备,或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)网络中的终端设备等。
本申请实施例中终端设备可以部署在陆地上,包括室内或室外、手持、穿戴或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。
在本申请实施例中,终端设备可以是手机(Mobile Phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(Virtual Reality,VR)终端设备、增强现实(Augmented Reality,AR)终端设备、工业控制(industrial control)中的无线终端设备、无人驾驶(self driving)中的无线终端设备、远程医疗(remote medical)中的无线终端设备、智能电网(smart grid)中的无线终端设备、运输安全(transportation safety)中的无线终端设备、智慧城市(smart city)中的无线终端设备或智慧家庭(smart home)中的无线终端设备等。
作为示例而非限定,在本申请实施例中,终端设备还可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等。
本申请实施例的技术方案可以应用于各种物联网设备。本申请实施例中物联网设备可以是消费者物联网设备、商业物联网设备或工业物联网设备。物联网设备通常为智能设备。物联网(Internet of Things,IOT)中的物联网设备普遍采用WiFi与路由器完成连接,然后通过智能终端例如手机与云端进行数据交互,拓扑结构如图1所示。
应理解,本文中术语“系统”和“网络”在本文中常可互换使用。本文中术语“和/或”用来描述关联对象的关联关系,例如表示前后关联对象可存在三种关系,举例说明,A和/或B,可以表示:单独存在A、同时存在A和B、单独存在B这三种情况。本文中字符“/”一般表示前后关联对象是“或”的关系。在本申请实施例的描述中,术语“对应”可表示两者之间具有直接对应或间接对应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。
为了清楚地阐述本申请实施例的思想,以下对基于物联网设备的softAP配网方式进行简要描述。SoftAP是一种较为主流的物联网设备配网方式,支持softAP模式的物联网设备工作在AP模式下,开启softAP热点,配网设备(例如智能手机或其他智能终端设备)断开当前Wi-Fi接入点连接,并连接物联网设备的softAP热点以组成临时局域网,用户或者操作人员通过配网设备输入Wi-Fi配网信息,配网设备向物联网设备发送Wi-Fi配网信息,配置完成后物联网设备可连接到Wi-Fi接入点,配网设备可断开softAP连接,再重新连接Wi-Fi接入点。
可见,softAP配网方式需要用户手动切换配网设备连接的网络,先断开当前Wi-Fi连接,并接入softAP热点,物联网设备完成配网后再重新连接Wi-Fi接入点,操作较为繁琐;并且在配网过程中,配网设备需保持softAP连接因而无法连接互联网,物联网设备完成配网后,配网设备才能正常接入互联网,在某些情况下,可能导致用户当前使用的其他程序因断网而出错,用户使用体验感较差。
为了解决前述的至少一种技术问题,本申请实施例提供一种物联网设备配网方法,应用于终端设备,参考图2,该方法包括:
S101,终端设备发送第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求第一物联网设备接入Wi-Fi网络。
根据本申请的实施例,终端设备可向物联网设备发送第一数据帧,通过第一数据帧携带第一信息以请求物联网设备接入Wi-Fi网络,基于此,物联网设备可根据接收到的信息便捷地接入Wi-Fi网络。
可见,利用本申请的实施例,可免去用户手动切换终端设备(作为配网设备)连接的Wi-Fi网络,解决人工手动操作繁琐的问题,并且,配网过程中终端设备亦不需要断开自身的Wi-Fi接入点连接,因而不会影响终端用户的正常网络通信,可大幅提升用户体验。
在本申请的实施例中,可选地,携带所述第一信息的第一数据帧可包括Wi-Fi管理帧,也就是可利用Wi-Fi管理帧携带所述第一信息,下文将对本申请实施例中的Wi-Fi管理帧的结构进行描述。在本申请的实施例中,还可以采用其他适合的数据帧格式携带所述第一信息,例如蓝牙数据帧等。
可选地,所述第一信息包括配网信息,所述配网信息用于所述第一物联网设备接入Wi-Fi网络。可选地,所述配网信息包括服务集标识符SSID和/或密码。可选地,所述配网信息已经过加密处理;在接收到配网信息后,物联网设备需进行相应的解密处理,可获得Wi-Fi接入点的SSID和/或密码,进而可接入Wi-Fi网络。在本申请的实施例中,可选地,所述第一信息通过单播方式或广播方式发送,也就是说,终端设备可以以单播报文或广播报文方式发送所述第一信息,分别来看:
·单播方式下,终端设备向选择的特定物联网设备(如第一物联网设备)发送第一信息,例如第一信息可包括第一物联网设备的MAC地址;
·广播方式下,终端设备可以广播发送包括经过加密处理的配网信息的第一信息,则在接收到第一信息的一个或多个物联网设备中,拥有正确密钥的物联网设备可以解密其中的配网信息,完成配网;而对于未被配置正确密钥的物联网设备,即使接收到该第一信息,也无法完成配网。
在本申请的实施例中,可选地,在所述终端设备发送第一信息之后,所述终端设备接 收所述第一物联网设备发送的第二信息,所述第二信息通过所述第一数据帧携带,所述第二信息包括所述第一物联网设备的配网状态信息。可选地,所述配网状态信息包括以下至少一项:配网成功、配网失败、正在配网中。基于此,本申请实施例的第一物联网设备可通过第二信息向终端设备反馈配网状态。
在本申请的实施例中,可选地,在所述终端设备发送第一信息之前,所述终端设备发送第三信息,所述第三信息通过所述第一数据帧携带,所述第三信息用于请求物联网设备的信息。可选地,所述第三信息通过广播方式发送。也就是说,本申请实施例的终端设备可通过广播的方式向环境中的多个物联网设备发送第三信息,以请求物联网设备的信息,例如物联网设备的身份ID信息,如果其中的第一物联网设备向终端设备反馈了自身ID信息,则终端设备可对第一物联网设备发送第一信息以请求第一物联网设备接入Wi-Fi网络。
在本申请的实施例中,可选地,在所述终端设备发送第三信息之后,所述终端设备接收所述第一物联网设备发送的第四信息,所述第四信息通过所述第一数据帧携带,所述第四信息包括所述第一物联网设备的信息。可见,本申请实施例的第一物联网设备可通过第四信息向终端设备发送自身的信息例如ID信息,便于终端设备确定可向第一物联网设备发送配网信息,从而将第一物联网设备接入Wi-Fi网络。
相对应地,本申请实施例还提供一种物联网设备配网方法,应用于物联网设备,参考图3,该方法包括:
S201,物联网设备接收终端设备发送的第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求所述物联网设备接入Wi-Fi网络。
根据本申请的实施例,物联网设备(例如前述的第一物联网设备)可接收终端设备发送的第一数据帧,该第一数据帧携带有第一信息,用于请求物联网设备接入Wi-Fi网络。基于此,物联网设备可响应于该第一信息(或者说响应于该第一数据帧)便捷地接入Wi-Fi网络。因此,利用本申请的实施例不需要用户手动切换终端设备(作为配网设备)连接的Wi-Fi网络,实现过程简洁,并且,整个配网过程中终端设备不需要断开自身Wi-Fi网络连接,因而不会影响终端用户的正常网络通信,可大幅提升用户体验。
在本申请的实施例中,可选地,在所述物联网设备接收终端设备发送的第一信息之后,所述物联网设备向所述终端设备发送第二信息,所述第二信息通过所述第一数据帧携带,所述第二信息包括所述物联网设备的配网状态信息。
在本申请的实施例中,可选地,在所述物联网设备接收终端设备发送的第一信息之前,所述物联网设备接收所述终端设备发送的第三信息,所述第三信息通过所述第一数据帧携带,所述第三信息用于请求物联网设备的信息。可选地,所述第三信息通过广播方式发送。
在本申请的实施例中,可选地,在所述物联网设备接收所述终端设备发送的第三信息之后,所述物联网设备向所述终端设备发送第四信息,所述第四信息通过所述第一数据帧携带,所述第四信息包括所述物联网设备的信息。
以下通过多种示意性实施例描述本申请的不同实施方式。
在本申请的实施例中,可选地,所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request探测请求帧、Public Action Request公共行为请求帧、Association Request关联请求帧、Action No Ack不需要确认的行为帧;其中,所述第一信息携带数据类型和/或配网信息,所述数据类型为设备配网请求,用于请求物联网设备配网。
在本申请的实施例中,可选地,所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request帧、Public Action Request帧、Association Request帧、Action No Ack帧;其中,所述第一信息的数据帧中的Vendor Specific厂商专用字段中的数据类型字段指示为设备配网请求,用于请求物联网设备配网,Vendor Specific字段中的数据字段包括配网信息。
在本申请的实施例中,可选地,所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response探测响应帧、Public Action Response公共行为响应帧、Association Response 关联响应帧;其中,所述第二信息携带数据类型和/或配网状态信息,所述数据类型为设备配网响应,用于响应物联网设备配网请求。
在本申请的实施例中,可选地,所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response帧、Public Action Response帧、Association Response帧;其中,所述第二信息的数据帧中的Vendor Specific字段中的数据类型字段指示为设备配网响应,用于响应物联网设备配网请求,且Vendor Specific字段中的数据字段包括配网状态信息。
在本申请的实施例中,可选地,所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,所述Probe Request帧携带的数据类型为设备发现请求,用于请求发现物联网设备。
在本申请的实施例中,可选地,所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,所述Probe Request帧中的Vendor Specific字段中的数据类型字段指示为设备发现请求,用于请求发现物联网设备。
在本申请的实施例中,可选地,所述Probe Request帧携带未配网标识,用于指示发现未配网的物联网设备。
在本申请的实施例中,可选地,所述Probe Request帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示发现未配网的物联网设备。
在本申请的实施例中,可选地,所述Probe Request帧携带厂商标识。
在本申请的实施例中,可选地,所述Probe Request帧中的Vendor Specific字段中的组织唯一标识符OUI字段指示厂商标识。
在本申请的实施例中,可选地,所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,所述Probe Response帧携带的数据类型为发现设备响应,用于响应发现物联网设备。
在本申请的实施例中,可选地,所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,所述Probe Response帧中的Vendor Specific字段中的数据类型字段指示为发现设备响应,用于响应发现物联网设备。
在本申请的实施例中,可选地,所述Probe Response帧携带的数据包括物联网设备的信息。
在本申请的实施例中,可选地,所述Probe Response帧中的Vendor Specific字段中的数据字段包括物联网设备的信息。
在本申请的实施例中,可选地,所述Probe Response帧携带未配网标识,用于指示所述物联网设备为未配网的物联网设备。
在本申请的实施例中,可选地,所述Probe Response帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示所述物联网设备为未配网的物联网设备。
以下对本申请实施例可使用的Wi-Fi管理帧的结构或定义进行简要描述。
在本申请的实施例中,可通过Wi-Fi管理帧对物联网设备进行配网,图4示意性地示出了一种Wi-Fi管理帧的帧格式的定义,其中包括Frame Control帧控制字段和Frame Body帧主体字段等。图5示意性示出了一种Frame Control字段的构成,其中包括Type类型字段和SubType子类型字段等。以下结合图4和图5对Wi-Fi管理帧的定义进行简要描述。
参考图4,Wi-Fi管理帧中的Frame Control字段为帧控制字段,该字段用于区分帧类型,Wi-Fi管理帧中中Frame Body字段为帧主体字段,该字段为Wi-Fi管理帧传输的数据。
参考图5,在Frame Control字段的各子字段中,2bit比特的Type子字段的二进制值为00时表示Wi-Fi管理帧;4bit的SubType子字段表示Wi-Fi管理帧的子类型。对此,表1示意性地列举了Wi-Fi管理帧中Frame Control字段中的Type和SubType的部分组合与对应描述,其中值为二进制表示。
表1
Figure PCTCN2021078557-appb-000001
Figure PCTCN2021078557-appb-000002
进一步,在本申请的实施例中,Wi-Fi管理帧的Frame Body字段包括Vendor Specific字段,其包括厂商自定义的信息,可称为厂商自定义字段或者厂商专用字段。
表2
Figure PCTCN2021078557-appb-000003
表2示意性地示出一种Vendor Specific字段的定义,其包括:元素标识、长度、OUI、数据类型和数据,其中,
·元素标识:用于标识Vendor Specific字段,即厂商自定义的信息(例如采用Wi-Fi标准规定则该值可为221)。
·长度:表示自定义信息的长度,例如可为该长度字段之后的其余字段的总长度。
·组织唯一标识符(Organization Unique Identifier,OUI):其为可选字段,用于标识厂商,OUI可用于对特定厂商的管理帧进行过滤,例如可设置为物联网设备仅接收携带特定OUI的Wi-Fi管理帧。
·数据类型:用于指示数据类型,例如设备发现请求、设备配网请求等。
·数据:用于携带数据,例如物联网设备信息、Wi-Fi配网信息等。
以上通过实施例描述了本申请实施例的物联网设备配网方法的实现方式以及可使用的Wi-Fi管理帧的结构或定义,以下通过多个具体的例子,描述本申请实施例的具体实现过程。
实施例1
在本实施例中,基于Wi-Fi管理帧中的Probe Request帧实现物联网设备配网。以下结合图6详细描述处理过程,其中配网设备可为例如智能手机或其他终端设备。
步骤11:配网设备发送Probe Request帧,该帧携带数据类型,指示发现设备请求。
根据本申请的实施例,配网设备发送的Probe Request帧包括Vendor Specific字段,该字段的数据类型字段指示设备发现请求,用于请求发现未配网的物联网设备。
表3
字段名 描述
SSID SSID
Supported Rates 支持速率
Extended Supported Rates 扩展支持速率
Vendor Specific 厂商自定义的信息
表3列出了一种Probe Request帧主体所包含的字段的摘要,其中包括SSID和Vendor Specific字段。
可选地,配网设备发送的Probe Request帧携带未配网标识,专门指示发现未配网的物联网设备,即已配网的物联网设备不需要进行响应。
可选地,Vendor Specific字段的数据字段可携带未配网标识,例如“WiFi-Unconfigured”。
可选地,Probe Request帧的SSID字段可携带未配网标识,例如“WiFi-Unconfigured”。
可选地,配网设备发送的Probe Request帧携带厂商标识,用于接收方即物联网设备侧过滤特定厂商的管理帧,例如,配置为对携带第一厂商标识的管理帧不予接收,或者,配置为对携带第二厂商标识或者第三厂商标识的管理帧予以接收,对携带其他厂商标识的管理帧不予接收。
可选地,Vendor Specific字段的OUI字段携带厂商标识。类似地,该情况下物联网设备可根据OUI字段携带的厂商标识,按照约定的过滤方式确定是否接收数据帧。
步骤12:物联网设备监听到Probe Request帧后,物联网设备回复Probe Response帧,该帧携带数据类型和物联网设备信息,数据类型指示发现设备响应。
根据本申请的实施例,物联网设备发送的Probe Response帧包括Vendor Specific字段,该字段的数据类型字段指示发现设备响应,用于响应发现未配网的物联网设备的请求,并且,Vendor Specific字段的数据字段携带物联网设备信息,例如物联网设备的以下至少一种信息:设备类型、品牌、设备名称等。
表4
字段名 描述
SSID SSID
Supported Rates 支持速率
Extended Supported Rates 扩展支持速率
Vendor Specific 厂商自定义的信息
表4列出了一种Probe Response的帧主体所包含的字段的摘要,其中包括SSID和Vendor Specific字段。
可选地,物联网设备发送的Probe Response帧携带未配网标识,专门指示本设备为未配网的物联网设备。
可选地,Vendor Specific字段的数据字段可携带未配网标识,例如“WiFi-Unconfigured”。
可选地,Probe Response帧的SSID字段可携带未配网标识,例如“WiFi-Unconfigured”。
可选地,如果配网设备发送的Probe Request帧携带厂商标识,或者,Vendor Specific字段的OUI字段携带厂商标识,则如前所述,物联网设备可根据厂商标识过滤管理帧,例如,物联网设备只接受包含特定厂商标识的数据帧。
步骤13:配网设备提示发现物联网设备,询问用户是否进行配网。
根据本申请的实施例,配网设备例如智能手机可以提示发现的物联网设备的信息,例如物联网设备的设备类型、品牌、设备名称等信息中的一个或多个,例如可在智能手机的屏幕上列举或展示,用户可从中选择期望的一个或多个物联网设备,即可触发配网过程,操作方式友好便捷。
当然,在另一种实施方式中,用户可以设置为自动同意接入某个或某些物联网设备, 可进一步免去操作需求,实现自动接入。
步骤14:如果用户确定对物联网设备进行配网,配网设备向物联网设备发送Probe Request帧,该帧携带数据类型和Wi-Fi配网信息,数据类型指示设备配网请求。
根据本申请的实施例,配网设备发送的Probe Request帧包括Vendor Specific字段,与步骤11中不同,此处该字段的数据类型字段指示设备配网请求,用于请求对物联网设备进行配网,Vendor Specific字段的数据字段携带Wi-Fi配网信息,例如SSID和/或密码等。接收到该Wi-Fi配网信息后,物联网设备可根据配网信息接入对应的Wi-Fi网络。
可选地,配网设备发送的是经过加密的Wi-Fi配网信息。例如,配网设备采用对称秘钥或非对称公钥,对Wi-Fi配网信息进行加密处理。
在本申请的一种实施方式中,如果配网设备已连接Wi-Fi接入点,配网设备可以获取当前连接的Wi-Fi接入点的信息;如果配网设备未连接Wi-Fi接入点,用户可以操作配网设备连接Wi-Fi接入点。一般来说,具备权限的配网设备可以直接获取Wi-Fi配网信息。例如,配网设备的操作系统的配置文件中保存了Wi-Fi接入点的信息,配网设备的配网应用程序从操作系统的配置文件中获取Wi-Fi配网信息。
步骤15:物联网设备根据收到Wi-Fi配网信息,连接Wi-Fi接入点。
在本申请的一种实施方式中,如果物联网设备收到的是经过加密处理的Wi-Fi配网信息,则物联网设备需要对Wi-Fi配网信息进行相应的解密处理。例如物联网设备采用对称秘钥或非对称私钥,解密Wi-Fi配网信息。
步骤16:可选地,监听到Probe Request帧后,物联网设备回复Probe Response帧,该帧携带数据类型和Wi-Fi配网结果或Wi-Fi配网状态信息,数据类型指示设备配网响应。
根据本申请的实施例,物联网设备发送的Probe Response帧包括Vendor Specific字段,与步骤12中不同,此处该字段的数据类型字段指示设备配网响应,用于响应对未配网的物联网设备进行配网的请求,Vendor Specific字段的数据字段携带Wi-Fi配网结果或Wi-Fi配网状态信息,例如配网成功、配网失败、正在配网中等。
需要说明,步骤15与步骤16的执行顺序可以交换,即步骤16也可以在步骤15之前进行。
还需要说明,步骤16为可选步骤,也就是,物联网设备在解密Wi-Fi配网信息后即可进行配网,配网成功后接入Wi-Fi网络可正常使用,对于配网状态(配网成功、配网失败、正在配网中等),可以设置为通过回复Probe Response帧反馈给终端设备,也可以设置为不回复或不反馈。
实施例2
在本实施例中,基于Wi-Fi管理帧中的Action帧实现物联网设备配网。以下结合图7详细描述处理过程,其中配网设备可为例如智能手机或其他终端设备。
在本实施例中,步骤21、步骤22和步骤23的处理,与实施例1中的步骤11、步骤12和步骤13的处理类似,本实施例与实施例1的不同之处主要在于通过Wi-Fi管理帧中的Action帧携带设备配网请求,具体继续描述如下。
步骤24:如果确定对物联网设备进行配网,则配网设备向物联网设备发送Public Action Request帧,该帧携带数据类型和Wi-Fi配网信息,数据类型指示设备配网请求。
根据本申请的实施例,配网设备发送的Public Action Request帧包括Vendor Specific字段,该字段的数据类型字段指示设备配网请求,用于请求对物联网设备进行配网,Vendor Specific字段的数据字段携带Wi-Fi配网信息,例如SSID和密码等。
可选地,配网设备发送的是经过加密的Wi-Fi配网信息。例如,配网设备采用对称秘钥或非对称公钥,对Wi-Fi配网信息进行加密处理。
在本申请的一种实施方式中,如果配网设备已连接Wi-Fi接入点,配网设备可以获取当前连接的Wi-Fi接入点的信息。如果配网设备未连接Wi-Fi接入点,用户可以操作配网 设备连接Wi-Fi接入点。一般来说,具备权限的配网设备可以直接获取Wi-Fi配网信息。例如,配网设备的操作系统的配置文件中保存了Wi-Fi接入点的信息,配网设备的配网应用程序从操作系统的配置文件中获取Wi-Fi配网信息。
步骤25:可执行与实施例1中的步骤15类似的处理。
步骤26:可选地,监听到Public Action Request帧后,物联网设备回复Public Action Response帧,该帧携带数据类型和Wi-Fi配网结果或Wi-Fi配网状态信息,数据类型指示设备配网响应。
根据本申请的实施例,物联网设备发送的Public Action Response帧包括Vendor Specific字段,该字段的数据类型字段指示设备配网响应,用于响应对未配网的物联网设备进行配网的请求,Vendor Specific字段的数据字段携带Wi-Fi配网结果或Wi-Fi配网状态信息,例如配网成功、配网失败、正在配网中等。
需要说明,步骤25与步骤26的执行顺序可以交换,即步骤26也可以在步骤25之前进行。
还需要说明,步骤26为可选步骤,也就是,物联网设备在解密Wi-Fi配网信息后即可进行配网,配网成功后接入Wi-Fi网络可正常使用,对于配网状态(配网成功、配网失败、正在配网中等),可以设置为通过回复Probe Response帧反馈给终端设备,也可以设置为不回复或不反馈。
实施例3
本实施例与实施例2的不同之处主要在于,本实施例通过Wi-Fi管理帧中的Association Request和Association Response帧进行物联网设备配网,也就是,可认为是将实施例2中步骤24中的“Public Action Request”替换为“Association Request”,并实施例2中步骤26中的“Public Action Response”替换为“Association Response”。
此外,其余处理步骤(例如可称为步骤31、步骤32、步骤33、步骤35)均可按实施例1或实施例2中的相应步骤处理。且本实施例的最后两个步骤(步骤35和步骤36)的执行顺序可以交换,本实施例的最后一个步骤(步骤36)也为可选的步骤。
实施例4
本实施例与实施例2的不同之处主要在于,本实施通过Wi-Fi管理帧中的Action No Ack帧进行物联网设备配网,可认为是将实施例2中步骤24中的“Public Action Request”替换为“Action No Ack”。
需要注意,由于Action No Ack帧没有对应的确认帧,因此不进行设备配网响应,即不执行前述实施例的最后一个步骤(可称为步骤46)。因此本实施例中无论配网是否成功,物联网设备不会对终端设备反馈配网状态。
此外,其余处理步骤(例如步骤41、步骤42、步骤43、步骤45)均可按实施例1或实施例2中的相应步骤处理。
以上通过多个实施例从不同角度描述了本申请实施例的具体设置和实现方式。与上述至少一个实施例的处理方法相对应地,本申请实施例还提供一种终端设备100,参考图8,其包括:
第一发送模块110,用于发送第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求第一物联网设备接入Wi-Fi网络。
可选地,所述第一发送模块110通过单播方式或广播方式发送所述第一信息。
可选地,所述终端设备还包括:第一接收模块,用于接收所述第一物联网设备发送的第二信息,所述第二信息通过所述第一数据帧携带,所述第二信息包括所述第一物联网设备的配网状态信息。
可选地,所述终端设备还包括:第二发送模块,用于发送第三信息,所述第三信息 通过所述第一数据帧携带,所述第三信息用于请求物联网设备的信息。
可选地,所述第二发送模块通过广播方式发送所述第三信息。
可选地,所述终端设备还包括:第二接收模块,用于接收所述第一物联网设备发送的第四信息,所述第四信息通过所述第一数据帧携带,所述第四信息包括所述第一物联网设备的信息。
与上述至少一个实施例的处理方法相对应地,本申请实施例还提供一种物联网设备200,参考图9,其包括:
第一接收模块210,用于接收终端设备发送的第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求所述物联网设备接入Wi-Fi网络。
可选地,所述物联网设备还包括:第一发送模块,用于向所述终端设备发送第二信息,所述第二信息通过所述第一数据帧携带,所述第二信息包括所述物联网设备的配网状态信息。
可选地,所述物联网设备还包括:第二接收模块,用于接收所述终端设备发送的第三信息,所述第三信息通过所述第一数据帧携带,所述第三信息用于请求物联网设备的信息。
可选地,所述第三信息通过广播方式发送。
可选地,所述物联网设备还包括:第二发送模块,用于向所述终端设备发送第四信息,所述第四信息通过所述第一数据帧携带,所述第四信息包括所述物联网设备的信息。
可选地,所述第一数据帧包括Wi-Fi管理帧。
可选地,所述第一信息包括配网信息,所述配网信息用于所述第一物联网设备接入所述Wi-Fi网络。
可选地,所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request探测请求帧、Public Action Request公共行为请求帧、Association Request关联请求帧、Action No Ack不需要确认的行为帧;其中,所述第一信息携带数据类型和/或配网信息,所述数据类型为设备配网请求,用于请求物联网设备配网。
可选地,所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request帧、Public Action Request帧、Association Request帧、Action No Ack帧;其中,所述第一信息的数据帧中的Vendor Specific厂商专用字段中的数据类型字段指示为设备配网请求,用于请求物联网设备配网,且Vendor Specific字段中的数据字段包括配网信息。
可选地,所述配网信息已经过加密处理。
可选地,所述配网信息包括服务集标识符SSID和/或密码。
可选地,所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response探测响应帧、Public Action Response公共行为响应帧、Association Response关联响应帧;其中所述第二信息携带数据类型和/或配网状态信息,所述数据类型为设备配网响应,用于响应物联网设备配网请求。
可选地,所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response帧、Public Action Response帧、Association Response帧;其中,所述第二信息的数据帧中的Vendor Specific字段中的数据类型字段指示为设备配网响应,用于响应物联网设备配网请求,且Vendor Specific字段中的数据字段包括配网状态信息。
可选地,所述配网状态信息包括以下至少一项:配网成功、配网失败、正在配网中。
可选地,所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
所述Probe Request帧携带的数据类型为设备发现请求,用于请求发现物联网设备。
可选地,所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
所述Probe Request帧中的Vendor Specific字段中的数据类型字段指示为设备发现请求,用于请求发现物联网设备。
可选地,所述Probe Request帧携带未配网标识,用于指示发现未配网的物联网设备。
可选地,所述Probe Request帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示发现未配网的物联网设备。
可选地,所述Probe Request帧携带厂商标识。
可选地,所述Probe Request帧中的Vendor Specific字段中的OUI字段指示厂商标识。
可选地,所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,所述Probe Response帧携带的数据类型为发现设备响应,用于响应发现物联网设备。
可选地,所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,所述Probe Response帧中的Vendor Specific字段中的数据类型字段指示为发现设备响应,用于响应发现物联网设备。
可选地,所述Probe Response帧携带的数据包括第一物联网设备的信息。
可选地,所述Probe Response帧中的Vendor Specific字段中的数据字段包括第一物联网设备的信息。
可选地,所述Probe Response帧携带未配网标识,用于指示所述第一物联网设备为未配网的物联网设备。
可选地,所述Probe Response帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示所述第一物联网设备为未配网的物联网设备。
本申请实施例的终端设备100和物联网设备200能够实现前述的方法实施例中的终端设备的对应功能,该终端设备100和物联网设备200中的各个模块(子模块、单元或组件等)对应的流程、功能、实现方式以及有益效果,可参见上述方法实施例中的对应描述,此处不进行赘述。
需要说明,关于本申请实施例的终端设备100和物联网设备200中的各个模块(子模块、单元或组件等)所描述的功能,可以由不同的模块(子模块、单元或组件等)实现,也可以由同一个模块(子模块、单元或组件等)实现,举例来说,第一发送模块与第二发送模块可以是不同的模块,也可以是同一个模块,均能够实现其在本申请实施例中的相应功能。此外,本申请实施例中的发送模块和接收模块,可通过设备的收发机实现,其余各模块中的部分或全部可通过设备的处理器实现。
图10是根据本申请实施例的通信设备600示意性结构图,其中通信设备600包括处理器610,处理器610可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。
可选地,通信设备600还可以包括存储器620。其中,处理器610可以从存储器620中调用并运行计算机程序,以实现本申请实施例中的方法。
其中,存储器620可以是独立于处理器610的一个单独的器件,也可以集成在处理器610中。
可选地,通信设备600还可以包括收发器630,处理器610可以控制该收发器630与其他设备进行通信,具体地,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。
其中,收发器630可以包括发射机和接收机。收发器630还可以进一步包括天线,天线的数量可以为一个或多个。
可选地,该通信设备600可为本申请实施例的终端设备或物联网设备,并且该通信设备600可以实现本申请实施例的各个方法中由终端设备或物联网设备实现的相应流程,为了简洁,在此不再赘述。
图11是根据本申请实施例的芯片700的示意性结构图,其中芯片700包括处理器710,处理器710可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。
可选地,芯片700还可以包括存储器720。其中,处理器710可以从存储器720中调 用并运行计算机程序,以实现本申请实施例中的方法。
其中,存储器720可以是独立于处理器710的一个单独的器件,也可以集成在处理器710中。
可选地,该芯片700还可以包括输入接口730。其中,处理器710可以控制该输入接口730与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。
可选地,该芯片700还可以包括输出接口740。其中,处理器710可以控制该输出接口740与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。
可选地,该芯片可应用于本申请如图8实施例中的终端设备或图9实施例中的物联网设备,并且该芯片可以实现本申请实施例的各个方法中由终端设备或者物联网设备实现的相应流程,为了简洁,在此不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。
上述提及的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、现成可编程门阵列(field programmable gate array,FPGA)、专用集成电路(application specific integrated circuit,ASIC)或者其他可编程逻辑器件、晶体管逻辑器件、分立硬件组件等。其中,上述提到的通用处理器可以是微处理器或者也可以是任何常规的处理器等。
上述提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM)。
应理解,上述存储器为示例性但不是限制性说明,例如,本申请实施例中的存储器还可以是静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)以及直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)等等。也就是说,本申请实施例中的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
所属技术领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、 装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上所述仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以该权利要求的保护范围为准。

Claims (114)

  1. 一种物联网设备配网方法,应用于终端设备,所述方法包括:
    终端设备发送第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求第一物联网设备接入Wi-Fi网络。
  2. 根据权利要求1所述的方法,其中,所述第一数据帧包括Wi-Fi管理帧。
  3. 根据权利要求1或2所述的方法,其中,所述第一信息包括配网信息,所述配网信息用于所述第一物联网设备接入所述Wi-Fi网络。
  4. 根据权利要求1-3中任一项所述的方法,其中,所述第一信息通过单播方式或广播方式发送。
  5. 根据权利要求1-4中任一项所述的方法,其中,在所述终端设备发送第一信息之后,所述方法还包括:
    所述终端设备接收所述第一物联网设备发送的第二信息,所述第二信息通过所述第一数据帧携带,所述第二信息包括所述第一物联网设备的配网状态信息。
  6. 根据权利要求1-5中任一项所述的方法,其中,在所述终端设备发送第一信息之前,所述方法还包括:
    所述终端设备发送第三信息,所述第三信息通过所述第一数据帧携带,所述第三信息用于请求物联网设备的信息。
  7. 根据权利要求6所述的方法,其中,所述第三信息通过广播方式发送。
  8. 根据权利要求6或7所述的方法,在所述终端设备发送第三信息之后,所述方法还包括:
    所述终端设备接收所述第一物联网设备发送的第四信息,所述第四信息通过所述第一数据帧携带,所述第四信息包括所述第一物联网设备的信息。
  9. 根据权利要求1-8中任一项所述的方法,其中,
    所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request探测请求帧、Public Action Request公共行为请求帧、Association Request关联请求帧、Action No Ack不需要确认的行为帧;其中,
    所述第一信息携带数据类型和/或配网信息,所述数据类型为设备配网请求,用于请求物联网设备配网。
  10. 根据权利要求1-8中任一项所述的方法,其中,
    所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request帧、Public Action Request帧、Association Request帧、Action No Ack帧;其中,
    所述第一信息的数据帧中的Vendor Specific厂商专用字段中的数据类型字段指示为设备配网请求,用于请求物联网设备配网,且Vendor Specific字段中的数据字段包括配网信息。
  11. 根据权利要求3、9和10中任一项所述的方法,其中,所述配网信息已经过加密处理。
  12. 根据权利要求3和9-11中任一项所述的方法,其中,所述配网信息包括服务集标识符SSID和/或密码。
  13. 根据权利要求5所述的方法,其中,
    所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response探测响应帧、Public Action Response公共行为响应帧、Association Response关联响应帧;其中,
    所述第二信息携带数据类型和/或配网状态信息,所述数据类型为设备配网响应,用于响应物联网设备配网请求。
  14. 根据权利要求5所述的方法,其中,
    所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response帧、Public Action Response帧、Association Response帧;其中,
    所述第二信息的数据帧中的Vendor Specific字段中的数据类型字段指示为设备配网响应,用于响应物联网设备配网请求,且Vendor Specific字段中的数据字段包括配网状态信息。
  15. 根据权利要求5、13和14中任一项所述的方法,其中,
    所述配网状态信息包括以下至少一项:配网成功、配网失败、正在配网中。
  16. 根据权利要求6-8中任一项所述的方法,其中,
    所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
    所述Probe Request帧携带的数据类型为设备发现请求,用于请求发现物联网设备。
  17. 根据权利要求6-8中任一项所述的方法,其中,
    所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
    所述Probe Request帧中的Vendor Specific字段中的数据类型字段指示为设备发现请求,用于请求发现物联网设备。
  18. 根据权利要求16或17所述的方法,其中,
    所述Probe Request帧携带未配网标识,用于指示发现未配网的物联网设备。
  19. 根据权利要求16或17所述的方法,其中,
    所述Probe Request帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示发现未配网的物联网设备。
  20. 根据权利要求16-19中任一项所述的方法,其中,所述Probe Request帧携带厂商标识。
  21. 根据权利要求16-19中任一项所述的方法,其中,所述Probe Request帧中的Vendor Specific字段中的组织唯一标识符OUI字段指示厂商标识。
  22. 根据权利要求8所述的方法,其中,
    所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,
    所述Probe Response帧携带的数据类型为发现设备响应,用于响应发现物联网设备。
  23. 根据权利要求8所述的方法,其中,
    所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,
    所述Probe Response帧中的Vendor Specific字段中的数据类型字段指示为发现设备响应,用于响应发现物联网设备。
  24. 根据权利要求22或23所述的方法,其中,
    所述Probe Response帧携带的数据包括第一物联网设备的信息。
  25. 根据权利要求22或23所述的方法,其中,
    所述Probe Response帧中的Vendor Specific字段中的数据字段包括第一物联网设备的信息。
  26. 根据权利要求22-25中任一项所述的方法,其中,
    所述Probe Response帧携带未配网标识,用于指示所述第一物联网设备为未配网的物联网设备。
  27. 根据权利要求22-25中任一项所述的方法,其中,
    所述Probe Response帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示所述第一物联网设备为未配网的物联网设备。
  28. 一种物联网设备配网方法,应用于物联网设备,所述方法包括:
    物联网设备接收终端设备发送的第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求所述物联网设备接入Wi-Fi网络。
  29. 根据权利要求28所述的方法,其中,所述第一数据帧包括Wi-Fi管理帧。
  30. 根据权利要求28或29所述的方法,其中,所述第一信息包括配网信息,所述配网信息用于所述物联网设备接入所述Wi-Fi网络。
  31. 根据权利要求28-30中任一项所述的方法,其中,所述第一信息通过单播方式或广播方式发送。
  32. 根据权利要求28-31中任一项所述的方法,其中,在所述物联网设备接收终端设备发送的第一信息之后,所述方法还包括:
    所述物联网设备向所述终端设备发送第二信息,所述第二信息通过所述第一数据帧携带,所述第二信息包括所述物联网设备的配网状态信息。
  33. 根据权利要求28-32中任一项所述的方法,其中,在所述物联网设备接收终端设备发送的第一信息之前,所述方法还包括:
    所述物联网设备接收所述终端设备发送的第三信息,所述第三信息通过所述第一数据帧携带,所述第三信息用于请求物联网设备的信息。
  34. 根据权利要求33所述的方法,其中,所述第三信息通过广播方式发送。
  35. 根据权利要求33或34所述的方法,在所述物联网设备接收所述终端设备发送的第三信息之后,所述方法还包括:
    所述物联网设备向所述终端设备发送第四信息,所述第四信息通过所述第一数据帧携带,所述第四信息包括所述物联网设备的信息。
  36. 根据权利要求28-35中任一项所述的方法,其中,
    所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request探测请求帧、Public Action Request公共行为请求帧、Association Request关联请求帧、Action No Ack不需要确认的行为帧;其中,
    所述第一信息携带数据类型和/或配网信息,所述数据类型为设备配网请求,用于请求物联网设备配网。
  37. 根据权利要求28-35中任一项所述的方法,其中,
    所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request帧、Public Action Request帧、Association Request帧、Action No Ack帧;其中,
    所述第一信息的数据帧中的Vendor Specific厂商专用字段中的数据类型字段指示为设备配网请求,用于请求物联网设备配网,且Vendor Specific字段中的数据字段包括配网信息。
  38. 根据权利要求30、36和37中任一项所述的方法,其中,所述配网信息已经过加密处理;
    在所述物联网设备接收终端设备发送的第一信息之后,所述方法还包括:所述物联网设备对所述配网信息进行解密。
  39. 根据权利要求30和36-38中任一项所述的方法,其中,所述配网信息包括服务集标识符SSID和/或密码。
  40. 根据权利要求32所述的方法,其中,
    所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response探测响应帧、Public Action Response公共行为响应帧、Association Response关联响应帧;其中,
    所述第二信息携带数据类型和/或配网状态信息,所述数据类型为设备配网响应,用于响应物联网设备配网请求。
  41. 根据权利要求32所述的方法,其中,
    所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response帧、Public Action Response帧、Association Response帧;其中,
    所述第二信息的数据帧中的Vendor Specific字段中的数据类型字段指示为设备配网响应,用于响应物联网设备配网请求,且Vendor Specific字段中的数据字段包括配网状 态信息。
  42. 根据权利要求32、40和41中任一项所述的方法,其中,
    所述配网状态信息包括以下至少一项:配网成功、配网失败、正在配网中。
  43. 根据权利要求33-35中任一项所述的方法,其中,
    所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
    所述Probe Request帧携带的数据类型为设备发现请求,用于请求发现物联网设备。
  44. 根据权利要求33-35中任一项所述的方法,其中,
    所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
    所述Probe Request帧中的Vendor Specific字段中的数据类型字段指示为设备发现请求,用于请求发现物联网设备。
  45. 根据权利要求43或44所述的方法,其中,
    所述Probe Request帧携带未配网标识,用于指示发现未配网的物联网设备。
  46. 根据权利要求43或44所述的方法,其中,
    所述Probe Request帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示发现未配网的物联网设备。
  47. 根据权利要求43-46中任一项所述的方法,其中,所述Probe Request帧携带厂商标识。
  48. 根据权利要求43-46中任一项所述的方法,其中,所述Probe Request帧中的Vendor Specific字段中的组织唯一标识符OUI字段指示厂商标识。
  49. 根据权利要求35所述的方法,其中,
    所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,
    所述Probe Response帧携带的数据类型为发现设备响应,用于响应发现物联网设备。
  50. 根据权利要求35所述的方法,其中,
    所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,
    所述Probe Response帧中的Vendor Specific字段中的数据类型字段指示为发现设备响应,用于响应发现物联网设备。
  51. 根据权利要求49或50所述的方法,其中,
    所述Probe Response帧携带的数据包括物联网设备的信息。
  52. 根据权利要求49或50所述的方法,其中,
    所述Probe Response帧中的Vendor Specific字段中的数据字段包括物联网设备的信息。
  53. 根据权利要求49-52中任一项所述的方法,其中,
    所述Probe Response帧携带未配网标识,用于指示所述物联网设备为未配网的物联网设备。
  54. 根据权利要求49-52中任一项所述的方法,其中,
    所述Probe Response帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示所述物联网设备为未配网的物联网设备。
  55. 一种终端设备,包括:
    第一发送模块,用于发送第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求第一物联网设备接入Wi-Fi网络。
  56. 根据权利要求55所述的终端设备,其中,所述第一数据帧包括Wi-Fi管理帧。
  57. 根据权利要求55或56所述的终端设备,其中,所述第一信息包括配网信息,所述配网信息用于所述第一物联网设备接入所述Wi-Fi网络。
  58. 根据权利要求55-57中任一项所述的终端设备,其中,所述第一发送模块通过单播方式或广播方式发送所述第一信息。
  59. 根据权利要求55-58中任一项所述的终端设备,还包括:
    第一接收模块,用于接收所述第一物联网设备发送的第二信息,所述第二信息通过所述第一数据帧携带,所述第二信息包括所述第一物联网设备的配网状态信息。
  60. 根据权利要求55-59中任一项所述的终端设备,还包括:
    第二发送模块,用于发送第三信息,所述第三信息通过所述第一数据帧携带,所述第三信息用于请求物联网设备的信息。
  61. 根据权利要求60所述的终端设备,其中,所述第二发送模块通过广播方式发送所述第三信息。
  62. 根据权利要求60或61所述的终端设备,还包括:
    第二接收模块,用于接收所述第一物联网设备发送的第四信息,所述第四信息通过所述第一数据帧携带,所述第四信息包括所述第一物联网设备的信息。
  63. 根据权利要求55-62中任一项所述的终端设备,其中,
    所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request探测请求帧、Public Action Request公共行为请求帧、Association Request关联请求帧、Action No Ack不需要确认的行为帧;其中,
    所述第一信息携带数据类型和/或配网信息,所述数据类型为设备配网请求,用于请求物联网设备配网。
  64. 根据权利要求55-62中任一项所述的终端设备,其中,
    所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request帧、Public Action Request帧、Association Request帧、Action No Ack帧;其中,
    所述第一信息的数据帧中的Vendor Specific厂商专用字段中的数据类型字段指示为设备配网请求,用于请求物联网设备配网,且Vendor Specific字段中的数据字段包括配网信息。
  65. 根据权利要求57、63和64中任一项所述的终端设备,其中,所述配网信息已经过加密处理。
  66. 根据权利要求57和63-65中任一项所述的终端设备,其中,所述配网信息包括服务集标识符SSID和/或密码。
  67. 根据权利要求59所述的终端设备,其中,
    所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response探测响应帧、Public Action Response公共行为响应帧、Association Response关联响应帧;其中,
    所述第二信息携带数据类型和/或配网状态信息,所述数据类型为设备配网响应,用于响应物联网设备配网请求。
  68. 根据权利要求59所述的终端设备,其中,
    所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response帧、Public Action Response帧、Association Response帧;其中,
    所述第二信息的数据帧中的Vendor Specific字段中的数据类型字段指示为设备配网响应,用于响应物联网设备配网请求,且Vendor Specific字段中的数据字段包括配网状态信息。
  69. 根据权利要求59、67和68中任一项所述的终端设备,其中,
    所述配网状态信息包括以下至少一项:配网成功、配网失败、正在配网中。
  70. 根据权利要求60-62中任一项所述的终端设备,其中,
    所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
    所述Probe Request帧携带的数据类型为设备发现请求,用于请求发现物联网设备。
  71. 根据权利要求60-62中任一项所述的终端设备,其中,
    所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
    所述Probe Request帧中的Vendor Specific字段中的数据类型字段指示为设备发现请求,用于请求发现物联网设备。
  72. 根据权利要求70或71所述的终端设备,其中,
    所述Probe Request帧携带未配网标识,用于指示发现未配网的物联网设备。
  73. 根据权利要求70或71所述的终端设备,其中,
    所述Probe Request帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示发现未配网的物联网设备。
  74. 根据权利要求70-73中任一项所述的终端设备,其中,所述Probe Request帧携带厂商标识。
  75. 根据权利要求70-73中任一项所述的终端设备,其中,所述Probe Request帧中的Vendor Specific字段中的OUI字段指示厂商标识。
  76. 根据权利要求62所述的终端设备,其中,
    所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,
    所述Probe Response帧携带的数据类型为发现设备响应,用于响应发现物联网设备。
  77. 根据权利要求62所述的终端设备,其中,
    所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,
    所述Probe Response帧中的Vendor Specific字段中的数据类型字段指示为发现设备响应,用于响应发现物联网设备。
  78. 根据权利要求76或77所述的终端设备,其中,
    所述Probe Response帧携带的数据包括第一物联网设备的信息。
  79. 根据权利要求76或77所述的终端设备,其中,
    所述Probe Response帧中的Vendor Specific字段中的数据字段包括第一物联网设备的信息。
  80. 根据权利要求76-79中任一项所述的终端设备,其中,
    所述Probe Response帧携带未配网标识,用于指示所述第一物联网设备为未配网的物联网设备。
  81. 根据权利要求76-79中任一项所述的终端设备,其中,
    所述Probe Response帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示所述第一物联网设备为未配网的物联网设备。
  82. 一种物联网设备,包括:
    第一接收模块,用于接收终端设备发送的第一信息,所述第一信息通过第一数据帧携带,所述第一信息用于请求所述物联网设备接入Wi-Fi网络。
  83. 根据权利要求82所述的物联网设备,其中,所述第一数据帧包括Wi-Fi管理帧。
  84. 根据权利要求82或83所述的物联网设备,其中,所述第一信息包括配网信息,所述配网信息用于所述物联网设备接入所述Wi-Fi网络。
  85. 根据权利要求82-84中任一项所述的物联网设备,其中,所述第一信息通过单播方式或广播方式发送。
  86. 根据权利要求82-85中任一项所述的物联网设备,还包括:
    第一发送模块,用于向所述终端设备发送第二信息,所述第二信息通过所述第一数据帧携带,所述第二信息包括所述物联网设备的配网状态信息。
  87. 根据权利要求82-86中任一项所述的物联网设备,还包括:
    第二接收模块,用于接收所述终端设备发送的第三信息,所述第三信息通过所述第一数据帧携带,所述第三信息用于请求物联网设备的信息。
  88. 根据权利要求87所述的物联网设备,其中,所述第三信息通过广播方式发送。
  89. 根据权利要求87或88所述的物联网设备,还包括:
    第二发送模块,用于向所述终端设备发送第四信息,所述第四信息通过所述第一数据帧携带,所述第四信息包括所述物联网设备的信息。
  90. 根据权利要求82-89中任一项所述的物联网设备,其中,
    所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request探测请求帧、Public Action Request公共行为请求帧、Association Request关联请求帧、Action No Ack不需要确认的行为帧;其中,
    所述第一信息携带数据类型和/或配网信息,所述数据类型为设备配网请求,用于请求物联网设备配网。
  91. 根据权利要求82-89中任一项所述的物联网设备,其中,
    所述第一信息包括Wi-Fi管理帧中的以下至少一种:Probe Request帧、Public Action Request帧、Association Request帧、Action No Ack帧;其中,
    所述第一信息的数据帧中的Vendor Specific厂商专用字段中的数据类型字段指示为设备配网请求,用于请求物联网设备配网,且Vendor Specific字段中的数据字段包括配网信息。
  92. 根据权利要求84、90和91中任一项所述的物联网设备,其中,所述配网信息已经过加密处理;
    所述物联网设备还包括解密模块,用于对所述配网信息进行解密。
  93. 根据权利要求84和90-82中任一项所述的物联网设备,其中,所述配网信息包括服务集标识符SSID和/或密码。
  94. 根据权利要求86所述的物联网设备,其中,
    所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response探测响应帧、Public Action Response公共行为响应帧、Association Response关联响应帧;其中,
    所述第二信息携带数据类型和/或配网状态信息,所述数据类型为设备配网响应,用于响应物联网设备配网请求。
  95. 根据权利要求86所述的物联网设备,其中,
    所述第二信息包括Wi-Fi管理帧中的以下至少一种:Probe Response帧、Public Action Response帧、Association Response帧;其中,
    所述第二信息的数据帧中的Vendor Specific字段中的数据类型字段指示为设备配网响应,用于响应物联网设备配网请求,且Vendor Specific字段中的数据字段包括配网状态信息。
  96. 根据权利要求86、94和95中任一项所述的物联网设备,其中,
    所述配网状态信息包括以下至少一项:配网成功、配网失败、正在配网中。
  97. 根据权利要求87-89中任一项所述的物联网设备,其中,
    所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
    所述Probe Request帧携带的数据类型为设备发现请求,用于请求发现物联网设备。
  98. 根据权利要求87-89中任一项所述的物联网设备,其中,
    所述第三信息包括Wi-Fi管理帧中的Probe Request帧,其中,
    所述Probe Request帧中的Vendor Specific字段中的数据类型字段指示为设备发现请求,用于请求发现物联网设备。
  99. 根据权利要求97或98所述的物联网设备,其中,
    所述Probe Request帧携带未配网标识,用于指示发现未配网的物联网设备。
  100. 根据权利要求97或98所述的物联网设备,其中,
    所述Probe Request帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示发现未配网的物联网设备。
  101. 根据权利要求97-100中任一项所述的物联网设备,其中,所述Probe Request帧携带厂商标识。
  102. 根据权利要求97-100中任一项所述的物联网设备,其中,所述Probe Request帧中的Vendor Specific字段中的OUI字段指示厂商标识。
  103. 根据权利要求89所述的物联网设备,其中,
    所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,
    所述Probe Response帧携带的数据类型为发现设备响应,用于响应发现物联网设备。
  104. 根据权利要求89所述的物联网设备,其中,
    所述第四信息包括Wi-Fi管理帧中的Probe Response帧,其中,
    所述Probe Response帧中的Vendor Specific字段中的数据类型字段指示为发现设备响应,用于响应发现物联网设备。
  105. 根据权利要求103或104所述的物联网设备,其中,
    所述Probe Response帧携带的数据包括物联网设备的信息。
  106. 根据权利要求103或104所述的物联网设备,其中,
    所述Probe Response帧中的Vendor Specific字段中的数据字段包括物联网设备的信息。
  107. 根据权利要求103-106中任一项所述的物联网设备,其中,
    所述Probe Response帧携带未配网标识,用于指示所述物联网设备为未配网的物联网设备。
  108. 根据权利要求103-106中任一项所述的物联网设备,其中,
    所述Probe Response帧中的SSID字段或者Vendor Specific字段携带未配网标识,用于指示所述物联网设备为未配网的物联网设备。
  109. 一种终端设备,包括:处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用并运行所述存储器中存储的计算机程序,执行如权利要求1至27中任一项所述的方法。
  110. 一种物联网设备,包括:处理器和存储器,所述存储器用于存储计算机程序,所述处理器调用并运行所述存储器中存储的计算机程序,执行如权利要求28至54中任一项所述的方法。
  111. 一种芯片,包括:
    处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1至54中任一项所述的方法。
  112. 一种计算机可读存储介质,用于存储计算机程序,其中,
    所述计算机程序使得计算机执行如权利要求1至54中任一项所述的方法。
  113. 一种计算机程序产品,包括计算机程序指令,其中,
    所述计算机程序指令使得计算机执行如权利要求1至54中任一项所述的方法。
  114. 一种计算机程序,所述计算机程序使得计算机执行如权利要求1至54中任一项所述的方法。
PCT/CN2021/078557 2021-03-01 2021-03-01 物联网设备配网方法、终端设备和物联网设备 WO2022183350A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/078557 WO2022183350A1 (zh) 2021-03-01 2021-03-01 物联网设备配网方法、终端设备和物联网设备
CN202180085599.1A CN116671181A (zh) 2021-03-01 2021-03-01 物联网设备配网方法、终端设备和物联网设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/078557 WO2022183350A1 (zh) 2021-03-01 2021-03-01 物联网设备配网方法、终端设备和物联网设备

Publications (1)

Publication Number Publication Date
WO2022183350A1 true WO2022183350A1 (zh) 2022-09-09

Family

ID=83153810

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/078557 WO2022183350A1 (zh) 2021-03-01 2021-03-01 物联网设备配网方法、终端设备和物联网设备

Country Status (2)

Country Link
CN (1) CN116671181A (zh)
WO (1) WO2022183350A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016143A (zh) * 2022-12-14 2023-04-25 广州市保伦电子有限公司 一种物联网设备调试方法及物联网设备
CN117596712A (zh) * 2024-01-19 2024-02-23 北京小米移动软件有限公司 网络节点接入网络的方法、装置、系统、电子设备及介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106455001A (zh) * 2016-11-30 2017-02-22 青岛海尔科技有限公司 配置wifi模块的方法和装置
CN107787025A (zh) * 2017-10-30 2018-03-09 欧普照明股份有限公司 设备接入网络的方法、控制终端及系统
US10015304B2 (en) * 2015-09-23 2018-07-03 Samsung Electronics Co., Ltd. Electronic apparatus, audio device, and method that is performable by the electronic apparatus to set network of the audio device
CN109246797A (zh) * 2017-06-07 2019-01-18 阿里巴巴集团控股有限公司 一种连接无线网络的方法、装置、系统和设备
CN110933672A (zh) * 2019-11-29 2020-03-27 华为技术有限公司 一种密钥协商方法及电子设备
CN110995665A (zh) * 2019-11-15 2020-04-10 北京小米移动软件有限公司 配网方法及装置、电子设备及存储介质
CN111246545A (zh) * 2020-01-21 2020-06-05 华为技术有限公司 引导智能设备接入网络的方法、介质、控制终端及系统
CN111741509A (zh) * 2019-03-25 2020-10-02 珠海格力电器股份有限公司 配网方法及装置、存储介质、处理器

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10015304B2 (en) * 2015-09-23 2018-07-03 Samsung Electronics Co., Ltd. Electronic apparatus, audio device, and method that is performable by the electronic apparatus to set network of the audio device
CN106455001A (zh) * 2016-11-30 2017-02-22 青岛海尔科技有限公司 配置wifi模块的方法和装置
CN109246797A (zh) * 2017-06-07 2019-01-18 阿里巴巴集团控股有限公司 一种连接无线网络的方法、装置、系统和设备
CN107787025A (zh) * 2017-10-30 2018-03-09 欧普照明股份有限公司 设备接入网络的方法、控制终端及系统
CN111741509A (zh) * 2019-03-25 2020-10-02 珠海格力电器股份有限公司 配网方法及装置、存储介质、处理器
CN110995665A (zh) * 2019-11-15 2020-04-10 北京小米移动软件有限公司 配网方法及装置、电子设备及存储介质
CN110933672A (zh) * 2019-11-29 2020-03-27 华为技术有限公司 一种密钥协商方法及电子设备
CN111246545A (zh) * 2020-01-21 2020-06-05 华为技术有限公司 引导智能设备接入网络的方法、介质、控制终端及系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016143A (zh) * 2022-12-14 2023-04-25 广州市保伦电子有限公司 一种物联网设备调试方法及物联网设备
CN116016143B (zh) * 2022-12-14 2023-11-21 广东保伦电子股份有限公司 一种物联网设备调试方法及物联网设备
CN117596712A (zh) * 2024-01-19 2024-02-23 北京小米移动软件有限公司 网络节点接入网络的方法、装置、系统、电子设备及介质

Also Published As

Publication number Publication date
CN116671181A (zh) 2023-08-29

Similar Documents

Publication Publication Date Title
EP2561708B1 (en) Method and apparatus for determining access point service capabilities
US9681476B2 (en) Wireless communication devices and methods for forming peer-to-peer (P2P) wireless connections between devices
US11943703B2 (en) Network address policy information received in a pre-associated state
US9813291B2 (en) Shortest path bridging (SPB) configuration of networks using client device access of remote
US20120076072A1 (en) System and method for maintaining privacy in a wireless network
TWI533741B (zh) 支援點對點連線之無線通訊裝置與方法
US20110250842A1 (en) Bluetooth radio device and management application for integration with a telecommunications network
WO2016173190A1 (zh) 信息提供方法和装置
WO2022183350A1 (zh) 物联网设备配网方法、终端设备和物联网设备
JP2017511049A (ja) アクセスポイント開始型ネイバー報告要求
US10420156B2 (en) Wireless communication terminal, wireless communication system, wireless communication method, and non-transitory medium saving program
JP5551805B2 (ja) インターネットにアクセスする方法および装置
US20160134710A1 (en) Communication method in wireless local access network and wireless apparatus therefor
WO2022021435A1 (zh) 数据传输方法、设备及存储介质
JP2021514555A (ja) サービス配布方法、ネットワーク装置及び端末装置
TW201804827A (zh) 一種資料傳輸方法、第一設備及第二設備
WO2019010793A1 (zh) 物联网接入点接收数据的分时段加密方法及装置
WO2021134754A1 (zh) 建立终端连接的方法及装置
CN113132966A (zh) 智能终端快连入网方法
US11722894B2 (en) Methods and devices for multi-link device (MLD) address discovery in a wireless network
WO2022160275A1 (zh) 无线通信方法、设备及存储介质
WO2022174652A1 (zh) 智能终端自动发现配网方法及系统
WO2017075797A1 (zh) 无线资源确定方法、装置及业务服务器
CN115942331A (zh) Matter设备的配网方法和系统
EP3068184B1 (en) Wi-fi system-based method and device for establishing a link between stations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21928441

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180085599.1

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21928441

Country of ref document: EP

Kind code of ref document: A1