IP Library Granted Patent US 12665949
Granted Patent B2
US 12665949 · App. 18/199,324 · Granted Jun 23, 2026

Method and apparatus of network configuration for internet-of-things device

Inventor: Bo Li (Foshan, CN)
Assignees: MIDEA GROUP CO., LTD.; GD MIDEA AIR-CONDITIONING EQUIPMENT CO., LTD.
H04L67/12H04L12/66H04L41/0816
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12665949
App. No.
18/199,324
Granted
Jun 23, 2026
Kind
B2
Abstract

Provided are a method and an apparatus of network configuration for an internet-of-things device. The method includes: establishing a neighborhood awareness channel between a terminal device and the IoT device; obtaining, by the terminal device, network configuration information of a gateway device stored in the terminal device; and transmitting, by the terminal device at a media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel to allow the IoT device to connect to the gateway device via the network configuration information, and may improve an efficiency of network configuration for the IoT device.

Claims (100)

1 . A method of network configuration for an Internet of Things (IoT) device, comprising:

establishing a neighborhood awareness channel between a terminal device and the IoT device;

obtaining, by the terminal device, network configuration information of a gateway device stored in the terminal device wherein the network configuration information is stored in the memory of the terminal device; and

transmitting, by the terminal device at a media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel to allow the IoT device to connect to the gateway device via the network configuration information, wherein transmitting the network configuration information to the IoT device comprises:

determining, by the terminal device, whether the obtained network configuration information of the gateway device matches the IoT device;

transmitting directly, by the terminal device, in response to the obtained network configuration information of the gateway device matching the IoT device, the network configuration information of the gateway device to the IoT device; and

correcting, by the terminal device, in response to the obtained network configuration information of the gateway device not matching the IoT device, the obtained network configuration information and transmits the confirmed new network configuration information to the IoT device.

2 . The method according to claim 1 , wherein transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel comprises:

packaging, by the terminal device, the network configuration information at the media access control layer into information in a format specified by a neighborhood awareness network protocol; and

transmitting, by the terminal device at the media access control layer, the information to the IoT device via the neighborhood awareness channel.

3 . The method according to claim 1 , wherein establishing the neighborhood awareness channel between the terminal device and the IoT device comprises:

obtaining, by the terminal device, a neighborhood awareness network beacon broadcasted by the IoT device; and

establishing, by the terminal device, the neighborhood awareness channel with the IoT device based on the neighborhood awareness network beacon.

4 . The method according to claim 1 , wherein

prior to establishing the neighborhood awareness channel between the terminal device and the IoT device, the method further comprises: connecting the terminal device to the gateway device that is scannable by the IoT device; and

establishing the neighborhood awareness channel between the terminal device and the IoT device comprises: disconnecting the terminal device from the gateway device and establishing the neighborhood awareness channel with the IoT device; and

obtaining, by the terminal device, network configuration information of the gateway device stored in the terminal device comprises: obtaining, by the terminal device, network configuration information of a gateway device connected to the terminal device in a previous connection, wherein the network configuration information is stored in the terminal device.

5 . The method according to claim 1 , wherein

obtaining, by the terminal device, network configuration information of a gateway device stored in the terminal device comprises:

scanning, by the terminal device, a service set identifier of a surrounding network;

obtaining, by the terminal device, network configuration information of at least one gateway device stored in the terminal device; and

matching, by the terminal device, the service set identifier of the surrounding network with the network configuration information of the at least one gateway device to determine one network configuration information from the network configuration information of the at least one gateway device, wherein the determined one network configuration information is usable in a current environment; and

transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel comprises: transmitting, by the terminal device, the network configuration usable in the current environment to the IoT device.

6 . The method according to claim 5 , wherein,

the network configuration information comprises a service set identifier of the gateway device, a password of the gateway device, and a channel of the gateway device;

prior to transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel, the method further comprises: obtaining, by the terminal device, a frequency band supported by the IoT device; and

transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel, comprises:

determining, by the terminal device, an operating frequency band of the gateway device based on the channel of the gateway device;

in accordance with a determination that the operating frequency band of the gateway device is different from the frequency band supported by the IoT device:

searching, by the terminal device, for a candidate network identifier that fuzzy matches the service set identifier of the gateway device;

forming a new network configuration information based on the candidate network identifier and the password of the gateway device, and transmitting the new network configuration information to the IoT device via the neighborhood awareness channel.

7 . The method according to claim 1 , further comprising:

obtaining, by the terminal device, information about a successful network configuration from a server; and

binding, by the terminal device in accordance with a confirmation command, the IoT device to a user account based on the information of the successful network configuration, to enable the terminal device to remotely control the IoT device.

8 . The method according to claim 1 , further comprising:

obtaining, by the IoT device at a media access control layer of the IoT device, network configuration information from the terminal device through the neighborhood awareness channel; and

connecting the IoT device to the gateway device via the network configuration information.

9 . The method according to claim 8 , wherein

obtaining, by the IoT device at the media access control layer of the IoT device, network configuration information from the terminal device through the neighborhood awareness channel comprises:

obtaining, by the IoT device, information in a format specified by a neighborhood awareness network protocol from the terminal device via the neighborhood awareness channel;

obtaining, by the IoT device, the network configuration information by parsing the information at the media access control layer; and

connecting the IoT device to the gateway device via the network configuration information comprises: connecting the IoT device to the gateway device at the media access control layer via the network configuration information.

10 . The method according to claim 8 , wherein establishing a neighborhood awareness channel between the terminal device and the IoT device comprises:

broadcasting, by the IoT device, a neighborhood awareness network beacon to establish the neighborhood awareness channel with the terminal device located within a broadcast range of the IoT device.

11 . The method according to claim 10 , further comprising: prior to broadcasting, by the IoT device, a neighborhood awareness network beacon: activating, by the IoT device, a neighborhood awareness network function while maintaining a station mode.

12 . The method according to claim 8 , wherein the network configuration information comprises a service set identifier of the gateway device, a password of the gateway device, and a channel of the gateway device; and connecting the IoT device to the gateway device via the network configuration information comprises:

scanning, by the IoT device, the service set identifier of the gateway device in the channel of the gateway device and verifying the password of the gateway device;

in accordance with a determination that the IoT device fails to connect to the gateway device, scanning, by the IoT device, the service set identifier of the gateway device in full channels and verifying the password of the gateway device to reconnect to the gateway device.

13 . A method of network configuration for an Internet of Things (IoT) device, comprising:

establishing a neighborhood awareness channel between a terminal device and the IoT device;

obtaining, by the terminal device, network configuration information of a gateway device stored in the terminal device; and

transmitting, by the terminal device at a media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel to allow the IoT device to connect to the gateway device via the network configuration information;

wherein prior to establishing the neighborhood awareness channel between the terminal device and the IoT device, the method further comprises: connecting the terminal device to the gateway device that is scannable by the IoT device; and

establishing the neighborhood awareness channel between the terminal device and the IoT device comprises: disconnecting the terminal device from the gateway device and establishing the neighborhood awareness channel with the IoT device; and

obtaining, by the terminal device, network configuration information of the gateway device stored in the terminal device comprises: obtaining, by the terminal device, network configuration information of a gateway device connected to the terminal device in a previous connection, wherein the network configuration information is stored in the terminal device, wherein

the network configuration information comprises a service set identifier of the gateway device, a password of the gateway device, and a channel of the gateway device;

prior to transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel, the method further comprises: obtaining, by the terminal device, a frequency band supported by the IoT device; and

transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel comprises:

determining, by the terminal device, an operating frequency band of the gateway device based on the channel of the gateway device;

in accordance with a determination that the operating frequency band of the gateway device is different from the frequency band supported by the IoT device:

searching, by the terminal device, for a candidate network identifier that fuzzy matches the service set identifier of the gateway device; and

forming a new network configuration information based on the candidate network identifier and the password of the gateway device, and transmitting the new network configuration information to the IoT device via the neighborhood awareness channel.

14 . An electronic device, comprising: a processor, wherein the processor is configured to execute instructions to perform operations of:

establishing a neighborhood awareness channel between a terminal device and the IoT device;

obtaining, by the terminal device, network configuration information of a gateway device stored in the terminal device wherein the network configuration information is stored in the memory of the terminal device; and

transmitting, by the terminal device at a media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel to allow the IoT device to connect to the gateway device via the network configuration information, wherein transmitting the network configuration information to the IoT device comprises:

determining, by the terminal device, whether the obtained network configuration information of the gateway device matches the IoT device;

transmitting directly, by the terminal device, in response to the obtained network configuration information of the gateway device matching the IoT device, the network configuration information of the gateway device to the IoT device; and

correcting, by the terminal device, in response to the obtained network configuration information of the gateway device not matching the IoT device, the obtained network configuration information and transmits the confirmed new network configuration information to the IoT device.

15 . The electronic device according to claim 14 , wherein transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel comprises:

packaging, by the terminal device, the network configuration information at the media access control layer into information in a format specified by a neighborhood awareness network protocol; and

transmitting, by the terminal device at the media access control layer, the information to the IoT device via the neighborhood awareness channel.

16 . The electronic device according to claim 14 , wherein establishing the neighborhood awareness channel between the terminal device and the IoT device comprises:

obtaining, by the terminal device, a neighborhood awareness network beacon broadcasted by the IoT device; and

establishing, by the terminal device, the neighborhood awareness channel with the IoT device based on the neighborhood awareness network beacon.

17 . The electronic device according to claim 14 , wherein

prior to establishing the neighborhood awareness channel between the terminal device and the IoT device, the method further comprises: connecting the terminal device to a gateway device that is scannable by the IoT device; and

establishing the neighborhood awareness channel between the terminal device and the IoT device comprises: disconnecting the terminal device from the gateway device and establishing the neighborhood awareness channel with the IoT device; and

obtaining, by the terminal device, network configuration information of the gateway device stored in the terminal device, comprises: obtaining, by the terminal device, network configuration information of a gateway device, which is the successfully connected to the terminal device in a previous connection, wherein the network configuration information is stored in the terminal device.

18 . The electronic device according to claim 14 , wherein

obtaining, by the terminal device, network configuration information of a gateway device stored in the terminal device, comprises:

scanning, by the terminal device, a service set identifier of a surrounding network;

obtaining, by the terminal device, network configuration information of at least one gateway device stored in the terminal device; and

matching, by the terminal device, the service set identifier of the surrounding network with the network configuration information of the at least one gateway device to determine one network configuration information from the network configuration information of the at least one gateway device, wherein the determined one network configuration information is usable in a current environment; and

transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel, comprises: transmitting, by the terminal device, the network configuration usable in the current environment to the IoT device.

19 . The electronic device according to claim 17 , wherein

the network configuration information comprises a service set identifier of the gateway device, a password of the gateway device, and a channel of the gateway device;

prior to transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel, the method further comprises: obtaining, by the terminal device, a frequency band supported by the IoT device; and

transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel, comprises:

determining, by the terminal device, an operating frequency band of the gateway device based on the channel of the gateway device;

in accordance with a determination that the operating frequency band of the gateway device is different from the frequency band supported by the IoT device:

searching, by the terminal device, for a candidate network identifier that fuzzy matches the service set identifier of the gateway device; and

forming a new network configuration information based on the candidate network identifier and the password of the gateway device, and transmitting the new network configuration information to the IoT device via the neighborhood awareness channel.

20 . The electronic device according to claim 18 , wherein

the network configuration information comprises a service set identifier of the gateway device, a password of the gateway device, and a channel of the gateway device;

prior to transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel, the method further comprises: obtaining, by the terminal device, a frequency band supported by the IoT device; and

transmitting, by the terminal device at the media access control layer, the network configuration information to the IoT device through the neighborhood awareness channel, comprises:

determining, by the terminal device, an operating frequency band of the gateway device based on the channel of the gateway device;

in accordance with a determination that the operating frequency band of the gateway device is different from the frequency band supported by the IoT device:

searching, by the terminal device, for a candidate network identifier that fuzzy matches the service set identifier of the gateway device; and forming a new network configuration information based on the candidate network identifier and the password of the gateway device, and transmitting the new network configuration information to the IoT device via the neighborhood awareness channel.