Search

CN-122002645-A - Network connection method and device

CN122002645ACN 122002645 ACN122002645 ACN 122002645ACN-122002645-A

Abstract

The application relates to the technical field of communication, and provides a network connection method and device. The method comprises the steps of connecting a second hot spot associated with first network configuration information if the first hot spot of a networking terminal disappears or cannot be connected, enabling the networking terminal to obtain or automatically generate the second network configuration information from the outside before the first hot spot of the networking terminal disappears or cannot be connected, enabling the second network configuration information to comprise service set identifiers and/or service set passwords of a third hot spot of the networking terminal for other equipment networking connection, receiving the second network configuration information sent by the networking terminal through the second hot spot, and connecting the third hot spot according to the second network configuration information to complete networking connection with the networking terminal. The application can improve the reconnection power of the Internet of things equipment and the networking terminal, and avoid the occurrence of error connection, thereby avoiding the initiation of safety risk, and is suitable for the scene that the networking terminal is connected with more Internet of things equipment.

Inventors

  • JIA JINGRUN
  • WANG YALAI
  • YANG CHEN
  • WU HAO
  • SHI CHAO
  • FANG WEI
  • DONG XUAN

Assignees

  • 中移(杭州)信息技术有限公司
  • 中国移动通信集团有限公司

Dates

Publication Date
20260508
Application Date
20241101

Claims (10)

  1. 1. The network connection method is characterized by being applied to the Internet of things equipment and comprising the following steps of: If the first hot spot of the networking terminal disappears or cannot be connected, a second hot spot associated with first network configuration information is connected, wherein the first network configuration information is used for identifying the networking terminal, and before the first hot spot of the networking terminal disappears or cannot be connected, the networking terminal obtains or generates second network configuration information from the outside by itself, and the second network configuration information comprises a Service Set Identifier (SSID) and/or a service set Password (Password) of a third hot spot of the networking terminal for other equipment networking connection; receiving the second network configuration information sent by the networking terminal through the second hot spot; and connecting the third hot spot according to the second network configuration information so as to complete the distribution network connection with the networking terminal.
  2. 2. The network connection method according to claim 1, wherein, The first network configuration information is a Basic Service Set Identification (BSSID) of the second hotspot.
  3. 3. The network connection method according to claim 2, wherein the first network configuration information is obtained by connecting the first hotspot with the network configuration of the network-forming terminal before the first hotspot of the network-forming terminal disappears or fails to connect, and is based on the following manner: And connecting the second hot spot before connecting the first hot spot with the networking terminal distribution network so as to acquire a Basic Service Set Identification (BSSID) of the second hot spot.
  4. 4. The network connection method according to claim 2, wherein the first network configuration information is obtained by connecting the first hotspot with the network configuration of the network-forming terminal before the first hotspot of the network-forming terminal disappears or fails to connect, and is based on the following manner: After the first hot spot is connected with the networking terminal in a distribution network, a request for acquiring a Basic Service Set Identification (BSSID) of the second hot spot is sent to the networking terminal; And receiving a Basic Service Set Identification (BSSID) of the second hot spot sent by the networking terminal.
  5. 5. The network connection method of claim 1, wherein the connecting the second hotspot associated with the first network configuration information comprises: transmitting a probe frame of the wireless hotspot into the environment; If a response data frame of the wireless hotspot is received and the response data frame comprises the first network configuration information, determining the wireless hotspot as the second hotspot, and performing handshake interaction with the second hotspot to connect the second hotspot.
  6. 6. The network connection method according to claim 1, wherein, The second hotspot is not visible to the user.
  7. 7. The network connection method is characterized by being applied to a networking terminal and comprising the following steps of: If the first hotspot of the user disappears or cannot be connected, the user receives the connection of the Internet of things device through a second hotspot associated with the first network configuration information, wherein the first network configuration information is used for identifying the user, and before the first hotspot of the user disappears or cannot be connected, the second network configuration information is obtained or generated from the outside, and comprises a Service Set Identifier (SSID) and/or a service set Password (Password) of a third hotspot of the user for the connection of other device distribution networks; Sending the second network configuration information to the internet of things device through the second hot spot; and receiving the distribution network connection of the Internet of things equipment through the third hot spot according to the second network configuration information.
  8. 8. The network connection method of claim 7, wherein the sending the second network configuration information to the internet of things device through the second hotspot comprises: Transmitting the second network configuration information to the Internet of things equipment in the equipment information table through the second hot spot; The device information table records the connection state of the device which hangs down the internet of things at present before the first hot spot of the device disappears or cannot be connected, and sets the connection state to be disconnected after the first hot spot of the device disappears or cannot be connected.
  9. 9. The network connection method according to claim 8, wherein after accepting, according to the second network configuration information, the network connection of the internet of things device through the third hotspot, the method comprises: setting the connection state of the internet of things equipment connected with the equipment information table as connected; determining whether reconnection time limit is exceeded when the connection state of the Internet of things equipment exists in the equipment information table and is disconnected; If yes, information of the Internet of things equipment with disconnected connection state in the equipment information table is sent to a user, so that the user is prompted to perform power-on or restarting operation; If not, returning to the step of sending the second network configuration information to the internet of things equipment in the equipment information table through the second hot spot until the reconnection time limit is exceeded or the connection state of each internet of things equipment in the equipment information table is connected.
  10. 10. A network connection device, comprising: The network system comprises a hotspot connection module, a network configuration module and a network configuration module, wherein the hotspot connection module is used for connecting a second hotspot associated with first network configuration information if the first hotspot of the network terminal disappears or cannot be connected, the first network configuration information is used for identifying the network terminal, the network terminal obtains or automatically generates second network configuration information from the outside before the first hotspot of the network terminal disappears or cannot be connected, and the second network configuration information comprises Service Set Identification (SSID) and/or service set Password (Password) of a third hotspot of the network terminal for other equipment network connection; The configuration information receiving module is used for receiving the second network configuration information sent by the networking terminal through the second hot spot; And the network connection module is used for connecting the third hot spot according to the second network configuration information so as to complete the distribution network connection with the networking terminal.

Description

Network connection method and device Technical Field The present application relates to the field of communications technologies, and in particular, to a network connection method and device. Background With the development of mobile internet and digital home technology, more and more intelligent devices enter home, the intelligent devices are usually accessed to a home networking terminal through a Wi-Fi network, and each different manufacturer of the device distribution network in the initial environment has a respective distribution network description flow. In order to ensure network security and prevent network configuration information leakage, in many cases, a user will modify network configuration information of a networking terminal in a scheduled manner, but the network configuration information is changed, and all the internet of things devices connected with the network configuration information need to be individually re-configured to reestablish connection with the networking terminal. In the traditional network connection method, when the network configuration information of the networking terminal is changed to reestablish connection with the internet of things equipment, the matching relationship between the networking terminal and the internet of things equipment is not always stable, and when the internet of things equipment is reconnected, hot spots of the networking terminal may disappear or cannot be connected, so that the reconnection of the internet of things equipment fails. In the process, the internet of things equipment may wrongly take other networking terminals as original networking terminals, so that connection is established with the wrong networking terminals, and security risks such as malicious attack are easily caused. In summary, in the conventional network connection method, when the network configuration of the networking terminal is changed, the reconnection of the internet of things device and the networking terminal has lower power, and is easy to generate wrong connection, so that the security risk is caused, which is particularly obvious in the scene that the networking terminal is connected with more internet of things devices. Disclosure of Invention The embodiment of the application provides a network connection method and a network connection device, which are used for solving the technical problems that when the network configuration of a networking terminal is changed in the traditional network connection method, reconnection of an Internet of things device and the networking terminal is low in power, erroneous connection is easy to occur, and safety risks are caused, and the technical problems are particularly obvious in the scene that the networking terminal is connected with more Internet of things devices. In a first aspect, an embodiment of the present application provides a network connection method, which is applied to an internet of things device, including: If the first hot spot of the networking terminal disappears or cannot be connected, a second hot spot associated with first network configuration information is connected, wherein the first network configuration information is used for identifying the networking terminal, and before the first hot spot of the networking terminal disappears or cannot be connected, the networking terminal obtains or generates second network configuration information from the outside by itself, and the second network configuration information comprises a Service Set Identifier (SSID) and/or a service set Password (Password) of a third hot spot of the networking terminal for other equipment networking connection; receiving the second network configuration information sent by the networking terminal through the second hot spot; and connecting the third hot spot according to the second network configuration information so as to complete the distribution network connection with the networking terminal. In one embodiment, the first network configuration information is a Basic Service Set Identification (BSSID) of the second hotspot. In one embodiment, before the first hot spot of the networking terminal disappears or cannot be connected, the first hot spot is connected with the networking terminal in a network configuration mode, and the first network configuration information is acquired based on the following modes: And connecting the second hot spot before connecting the first hot spot with the networking terminal distribution network so as to acquire a Basic Service Set Identification (BSSID) of the second hot spot. In one embodiment, before the first hot spot of the networking terminal disappears or cannot be connected, the first hot spot is connected with the networking terminal in a network configuration mode, and the first network configuration information is acquired based on the following modes: After the first hot spot is connected with the networking terminal in a distribution network, a request for acquiring