Search

EP-4742624-A1 - NETWORK CONNECTION METHOD AND APPARATUS, ELECTRONIC DEVICE, AND READABLE STORAGE MEDIUM

EP4742624A1EP 4742624 A1EP4742624 A1EP 4742624A1EP-4742624-A1

Abstract

The present application relates to the technical field of Internet of Things, and discloses a network connection method and apparatus, an electronic device, and a readable storage medium. The network connection method for an Internet of Things device comprises: an Internet of Things device needing network connection scanning surrounding network devices, wherein the network devices include a routing device and networked household appliances; receiving responses of the network devices; on the basis of the responses, determining whether the Internet of Things device needing network connection is located in a weak network environment; when the Internet of Things device needing network connection is located in the weak network environment, selecting a mutual assistance device from among networked devices; and the Internet of Things device needing network connection being connected to the network by means of the mutual assistance device, such that the Internet of Things device is connected to a target server.

Inventors

  • XIAN, Zhixiong

Assignees

  • Midea Group (Shanghai) Co., Ltd.
  • Midea Group Co., Ltd.

Dates

Publication Date
20260513
Application Date
20240102

Claims (16)

  1. A network connection method for an Internet of Things, IoT, device, comprising: scanning, by an IoT device that requires a network connection, network devices surrounding the IoT device, wherein the network devices comprise a routing device and a household appliance that is network-connected; receiving responses from the network devices; determining whether the IoT device that requires the network connection is in a weak network environment based on the responses; in a case where the IoT device that requires the network connection is in the weak network environment, selecting a mutual assistance device from networked devices; and performing, by the IoT device that requires the network connection, network connection through the mutual assistance device, causing the IoT device to be connected to a target server.
  2. The network connection method according to claim 1, further comprising: in a case where the IoT device that requires the network connection is not in the weak network environment, selecting the routing device from the networked devices, and performing, by the IoT device that requires the network connection, network connection through the routing device, causing the IoT device to be connected to a target server.
  3. The network connection method for the IoT device according to claim 1 or 2, further comprising: acquiring a signal strength between the IoT device that requires the network connection and the routing device; and determining that the IoT device is in the weak network environment in a case where the signal strength is less than a first value.
  4. The network connection method according to any one of claims 1-3, wherein the selecting a mutual assistance device from the networked devices comprises: acquiring a signal strength between the IoT device that requires the network connection and the household appliance that is network-connected; acquiring network connection information of the household appliance that is network-connected; acquiring a load of the household appliance that is network-connected; acquiring a network hierarchy of the household appliance that is network-connected; and selecting the mutual assistance device from the household appliance that is network-connected based on the signal strength, the network connection information, the load, and the network hierarchy.
  5. The network connection method according to any one of claims 1-4, wherein the performing, by the IoT device that requires the network connection, network connection through the mutual assistance device comprises: controlling the IoT device that requires the network connection and the mutual assistance device to perform a key negotiation, to obtain a key; and establishing the network connection between the IoT device that requires the network connection and the mutual assistance device based on the key.
  6. The network connection method according to claim 5, wherein the establishing the network connection between the IoT device that requires the network connection and the mutual assistance device comprises: performing, by the IoT device and the mutual assistance device, standard connection in an Access Point, AP, mode and a Station, STA, mode, wherein the mutual assistance device acts as a pseudo-AP and allows the IoT device to access.
  7. The network connection method according to claim 5, wherein the establishing the network connection between the IoT device that requires the network connection and the mutual assistance device comprises: performing a Media Access Control, MAC, address association, by the IoT device and the mutual assistance device, causing the mutual assistance device to forward MAC layer data for the IoT device; and applying for an Internet Protocol, IP, address of the IoT device.
  8. The network connection method according to claim 7, wherein the applying for an IP address of the IoT device comprises: acquiring a root node of the mutual assistance device; connecting, by sub-devices of the root node in a MAC layer 4-address mode, to realize MAC data forwarding; and applying for the IP address of the IoT device through the root node.
  9. The network connection method according to claim 7, wherein the applying for an IP address of the IoT device comprises: acquiring a root node of the mutual assistance device; and applying for the IP address, by the root node, via a private data protocol method based on a MAC layer data private protocol, and performing a transparent transmission of application data layer by layer based on a MAC address.
  10. The network connection method for the IoT device according to any one of claims 7-9, further comprising: maintaining a connection relationship between the IoT device and the mutual assistance device through a MAC layer data private protocol in a heartbeat manner.
  11. The network connection method for the IoT device according to any one of claims 7-10, further comprising: in a case where the sub-devices of the root node are disconnected, updating MAC routing tables and router information to all connected devices, and reconnecting disconnected devices.
  12. The network connection method for the IoT device according to any one of claims 7-11, further comprising: in a case where an intermediate node between the IoT device and the root node is disconnected, notifying managed nodes to terminate connection relationships, and re-initiating a connection request.
  13. A network connection apparatus for an Internet of Things, IoT, device, comprising: a scanning module, configured for the IoT device that requires a network connection to scan network devices surrounding the IoT device, wherein the network devices comprise a routing device and a household appliance that is network-connected; a receiving module, configured to receive responses from the network devices; a determination module, configured to determine whether the IoT device that requires the network connection is in a weak network environment based on the responses; a selecting module, configured to select a mutual assistance device from networked devices in a case where the IoT device that requires the network connection is in the weak network environment; and a connection module, configured for the IoT device that requires the network connection to perform network connection through the mutual assistance device, causing the IoT device to be connected to a target server.
  14. An electronic device, comprising: a memory, having programs or instructions stored thereon; and a processor, configured to implement steps of the network connection method for an IoT device according to any one of claims 1-12 when executing programs or instructions.
  15. A readable storage medium, having programs or instructions stored thereon, wherein the programs or instructions, when executed by a processor, causes the processor to implement steps of the network connection method for an IoT device according to any one of claims 1-12.
  16. A computer program product, comprising a computer program, wherein the computer program, when executed by a processor, causes the processor to implement steps of the network connection method for an IoT device according to any one of claims 1-12.

Description

The present application claims priority of Chinese Patent Application No. 202310912046.X, in the title of "Network connection method and apparatus, electronic device, and readable storage medium", filed on July 24, 2023, the entire contents of which are hereby incorporated by reference in its entirety. TECHNICAL FIELD The present disclosure relates to the technical field of Internets of Things (IoT), and in particular to a network connection method, an apparatus, an electronic device, and a readable storage medium. BACKGROUND During a network configuration or a connection phase for an IoT device, when the IoT device is far from a router, a signal strength of the network is weak, the IoT device cannot be connected to the network through the router. For an IoT device that is normally connected to the network, when a position of the IoT device is changed, and the IoT device is far from the router, a signal strength of the router becomes weaker, which may cause the IoT device to go offline. SUMMARY OF THE DISCLOSURE The present disclosure aims to solve a least one of the technical problems in the related art or in the related technologies. In view of this, some embodiments of a first aspect of the present disclosure provide a network connection method for an IoT device. Some embodiments of a second aspect of the present disclosure provide a network connection apparatus for the IoT device. Some embodiments of a third aspect of the present disclosure provide an electrical device. Some embodiments of a fourth aspect of the present disclosure provide a readable storage medium. In the first aspect, the present disclosure provides a network connection method for an IoT device, including: scanning, by an IoT device that requires a network connection, network devices surrounding the IoT device; wherein the network devices include a routing device and a household appliance that is network-connected;receiving responses from the network devices;determining whether the IoT device that requires the network connection is in a weak network environment based on the responses;in a case where the IoT device that requires the network connection is in the weak network environment, selecting a mutual assistance device from networked devices; andperforming, by the IoT device that requires the network connection, network connection through the mutual assistance device, causing the IoT device to be connected to a target server. In the second aspect, the present disclosure provides a network connection apparatus, including: a scanning module, configured for the IoT device that requires a network connection to scan network devices surrounding the IoT device; wherein the network devices include a routing device and a household appliance that is network-connected;a receiving module, configured to receive responses from the network devices;a determination module, configured to determine whether the IoT device that requires the network connection is in a weak network environment based on the responses;a selecting module, configured to select a mutual assistance device from networked devices in a case where the IoT device that requires the network connection is in the weak network environment; anda connection module, configured for the IoT device that requires the network connection to perform network connection through the mutual assistance device, causing the IoT device to be connected to a target server. In the third aspect, the present disclosure provides an electrical device. The electrical device includes a processor and a memory. The memory stores programs and instructions executable on the processor. When the programs or the instructions are executed by the processor, the operations of the network connection method for the IoT device according to the first aspect are implemented. In the fourth aspect, the present disclosure provides a readable storage medium, on which the programs and instructions are stored. When the programs or instructions are executed by a processor, the operations of the network connection method for the IoT device according to the first aspect are implemented. In the present disclosure, based on a Wi-Fi mutual assistance capability of the household appliances, when the IoT device is at an edge of a weak signal coverage of a router, a configured IoT device can access the network through a networked household appliance as a proxy to connect to the target server. In a weak network environment of a user, this method can solve the problems of a high connection failure rate and a high device loss rate of the IoT device, due to a long distance from the IoT device to the router and a weak signal, thereby effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 illustrates a first flowchart of a network connection method for an IoT device provided by some embodiments of the present disclosure.FIG. 2 illustrates a second flowchart of a network connection method for an IoT device provided by som