WO2026001066A1 - 网络重连方法、装置、设备及通信系统 - Google Patents

网络重连方法、装置、设备及通信系统

Info

Publication number
WO2026001066A1
WO2026001066A1 PCT/CN2025/080577 CN2025080577W WO2026001066A1 WO 2026001066 A1 WO2026001066 A1 WO 2026001066A1 CN 2025080577 W CN2025080577 W CN 2025080577W WO 2026001066 A1 WO2026001066 A1 WO 2026001066A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
terminal device
connection
identifier
network device
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
PCT/CN2025/080577
Other languages
English (en)
French (fr)
Inventor
陈钢
任斌
王健
丁国治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2026001066A1 publication Critical patent/WO2026001066A1/zh
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Definitions

  • This application relates to the field of Internet of Things (IoT) technology, and in particular to a network reconnection method, apparatus, device, and communication system.
  • IoT Internet of Things
  • terminal devices such as IoT devices: smart locks, refrigerators, and air conditioners, and other smart home products
  • network devices such as routers
  • users manually activate Bluetooth or a hotspot to locate the terminal device, which then controls the router to re-establish a network connection.
  • this reconnection method is manual and cumbersome, resulting in low efficiency.
  • This application provides a network reconnection method, apparatus, device, and communication system, which solves the problem of low reconnection efficiency of terminal devices.
  • this application provides a network reconnection method, executed by a first network device, comprising: receiving a first connection request sent by the terminal device when the network connection of a terminal device is disconnected; the first connection request being used to establish a first connection, the first connection request including a first identifier used to indicate the terminal device; and, upon successful verification of the first identifier, establishing a first connection between the first network device and the terminal device, the first connection being used to establish a network connection between the first network device and the terminal device.
  • the method provided in this application when the terminal device's network connection is lost, if the first identifier included in the first connection request sent by the terminal device is verified by the first network device, it indicates that the terminal device using the first user account has first connection permission, and a first connection can be established between the terminal device and the first network device.
  • the terminal device then automatically reconnects to the network device based on this first connection, achieving automatic reconnection. This improves the reconnection efficiency of the terminal device.
  • the first connection is a StarScan connection
  • the first network device and the terminal device support the StarScan communication protocol.
  • the first network device can enable the StarScan communication service, and a StarScan connection can be established between the terminal device and the first network device. This allows the terminal device to automatically reconnect to the first network device via the StarScan connection, enabling automatic reconnection and improving the reconnection efficiency of the terminal device.
  • the above method further includes: receiving a network configuration request sent by a terminal device through a first connection, the network configuration request including first encrypted information, the first encrypted information being obtained by encrypting a first user account, the first user account being used to log in to the terminal device; if the first user account is verified, sending first configuration information to the terminal device, the first configuration information being obtained by encrypting the network name and network password of the terminal device's network connection; receiving a network connection request sent by the terminal device, and establishing a network connection with the terminal device.
  • the above method further includes: decrypting the first encrypted information to obtain the first user account; and if the first user account is the same as the user account stored in the first network device, determining that the first user account has passed verification.
  • the network connection of the terminal device is the network connection between the second network device and the terminal device.
  • the method further includes: receiving and storing a first identifier and second encrypted information, wherein the second encrypted information is obtained by encrypting a first user account, the first user account is used to log in to the terminal device, and the first identifier and the second encrypted information are obtained through negotiation between the second network device and the terminal device.
  • the above method further includes: when the terminal device establishes a network connection for the first time, generating a first identifier and first encrypted information, wherein the first encrypted information is obtained by encrypting a first user account, and the first user account is used to log in to the terminal device; and sending the first identifier and the first encrypted information to the terminal device.
  • the first identifier can verify whether the terminal device has StarFlash communication permissions when the terminal device and the network device re-establish a network connection.
  • the first encrypted information can verify the identity of the terminal device when the terminal device and the network device re-establish a network connection, thereby improving network connection security, ensuring network security, and preventing network attacks.
  • the first network device stores one or more identifiers associated with a first user account; the first user account is used to log in to the terminal device, and the method further includes: if the first identifier is included among the one or more identifiers, determining that the first identifier has been verified.
  • the method further includes: sending a first connection response to the terminal device if the first identifier is verified, the first connection response indicating that the first identifier in the first connection request has been verified.
  • various terminal devices may be manufactured by different companies, but the users of each terminal device are unique.
  • a first identifier can be used to indicate that a terminal device is associated with a user account.
  • the first network device can use a unified user account for authentication and management of various terminal devices, without relying on the device information of each terminal device. Furthermore, by using a unified user account for authentication and management of terminal devices, even if the installation location of a terminal device is changed, its automatic reconnection capability will not be affected, facilitating reconnection and improving reconnection efficiency.
  • the method further includes: sending an instruction to the terminal device, the instruction indicating that the first identifier be updated to the second identifier. This allows the terminal device to reconnect to the network if it subsequently disconnects from the first network device.
  • the network connection of the aforementioned terminal device is disconnected, including at least one of the following: network password change, power failure of the first network device or the terminal device, or network disconnection between the first network device and the terminal device.
  • this application provides a network reconnection method, which is executed by a terminal device.
  • the method includes: when the network connection of the terminal device is disconnected, sending a first connection request, the first connection request being used to establish a first connection, the first connection request including a first identifier, the first identifier being used to indicate the terminal device; the terminal device and a first network device establishing a first connection, the first connection being used to indicate that the terminal device and the first network device establish a network connection.
  • the first connection is a StarScan connection
  • the first network device and the terminal device support the StarScan communication protocol.
  • the method further includes: sending a network configuration request to a first network device via a first connection, the network configuration request including first encrypted information, the first encrypted information being obtained by encrypting a first user account, the first user account being used to log in to the terminal device; receiving first configuration information sent by the first network device, the first configuration information being obtained by encrypting the network name and network password of the terminal device's network connection by the first network device; sending a network connection request to the first network device, and establishing a network connection with the first network device based on the first configuration information.
  • establishing a network connection with the first network device based on the first configuration information includes: decrypting the first configuration information to obtain the network name and network password; and establishing a network connection with the first network device based on the network name and network password.
  • the above method further includes: when the terminal device establishes a network connection for the first time, receiving a first identifier and first encrypted information, wherein the first encrypted information is obtained by encrypting a first user account, and the first user account is used to log in to the terminal device.
  • the method further includes receiving a first connection response sent by a first network device, the first connection response indicating that the first identifier in the first connection request has been verified.
  • the method further includes: receiving indication information sent by a first network device, the indication information being used to indicate updating the first identifier to the second identifier; and updating the first identifier to the second identifier.
  • the network connection of the aforementioned terminal device is disconnected, including at least one of the following: network password change, power failure of the first network device or the terminal device, or network disconnection between the first network device and the terminal device.
  • this application provides a reconnection device for a terminal device, which is applied to a first network device.
  • the device includes a communication module and a connection module.
  • the communication module is configured to receive a first connection request sent by the terminal device when the network connection of the terminal device is disconnected.
  • the first connection request is used to establish a first connection
  • the first connection request includes a first identifier used to indicate the terminal device.
  • the connection module is configured to establish a first connection between the first network device and the terminal device when the first identifier is verified.
  • the first connection is used for the first network device to establish a network connection with the terminal device.
  • the first connection is a StarScan connection
  • the first network device and the terminal device support the StarScan communication protocol.
  • the communication module is further configured to: receive a network configuration request sent by a terminal device via a first connection, the network configuration request including first encrypted information, the first encrypted information being obtained by encrypting a first user account, the first user account being used to log in to the terminal device; if the first user account is verified, send first configuration information to the terminal device, the first configuration information being obtained by encrypting the network name and network password of the terminal device's network connection; receive a network connection request sent by the terminal device, and establish a network connection with the terminal device.
  • the above-mentioned device further includes a verification module for determining that the first user account has passed verification if the first user account is the same as the user account stored in the first network device.
  • the network connection of the terminal device is the network connection between the second network device and the terminal device.
  • the aforementioned communication module is also used to: receive and store a first identifier and a second encrypted information, wherein the second encrypted information is obtained by encrypting a first user account, the first user account is used to log in to the terminal device, and the first identifier and the second encrypted information are obtained through negotiation between the second network device and the terminal device.
  • the above-mentioned device further includes a negotiation module, which is used to generate a first identifier and a first encrypted information when the terminal device establishes a network connection for the first time.
  • the first encrypted information is obtained by encrypting a first user account, which is used to log in to the terminal device; and to send the first identifier and the first encrypted information to the terminal device.
  • the first network device stores one or more identifiers associated with a first user account; the first user account is used to log in to the terminal device, and the verification module is further used to determine that the first identifier has passed verification if the first identifier is included among the one or more identifiers.
  • the communication module is further configured to: send a first connection response to the terminal device if the first identifier is verified, wherein the first connection response is used to indicate that the first identifier in the first connection request has been verified.
  • the above-mentioned communication module is further used to: indicate information to the terminal device, the indication information being used to indicate that the first identifier be updated to the second identifier.
  • the network connection of the aforementioned terminal device is disconnected, including at least one of the following: network password change, power failure of the first network device or the terminal device, or network disconnection between the first network device and the terminal device.
  • this application provides another reconnection device for a terminal device, which is applied to the terminal device.
  • the device includes a communication module and a connection module.
  • the communication module is used to send a first connection request when the network connection of the terminal device is disconnected.
  • the first connection request is used to establish a first connection and includes a first identifier, which indicates the terminal device.
  • the connection module is used to establish a first connection between the terminal device and a first network device, and the first connection indicates that the terminal device and the first network device are establishing a network connection.
  • the first connection is a StarScan connection
  • the first network device and the terminal device support the StarScan communication protocol.
  • the communication module is further configured to: send a network configuration request to a first network device via a first connection, the network configuration request including first encrypted information, the first encrypted information being obtained by encrypting a first user account, the first user account being used to log in to the terminal device; receive first configuration information sent by the first network device, the first configuration information being obtained by encrypting the network name and network password of the terminal device's network connection by the first network device; and send a network connection request to the first network device, the connection module being configured to establish a network connection with the first network device based on the first configuration information.
  • connection module when the connection module establishes a network connection with the first network device based on the first configuration information, it is specifically used to: decrypt the first configuration information to obtain the network name and network password; and establish a network connection with the first network device based on the network name and network password.
  • the communication module is further configured to: receive a first identifier and first encrypted information when the terminal device establishes a network connection for the first time, wherein the first encrypted information is obtained by encrypting a first user account, and the first user account is used to log in to the terminal device.
  • the communication module is further configured to: receive a first connection response sent by a first network device, the first connection response indicating that the first identifier in the first connection request has been verified.
  • the communication module is further configured to: receive indication information sent by the first network device, the indication information being used to indicate updating the first identifier to the second identifier; and update the first identifier to the second identifier.
  • the network connection of the aforementioned terminal device is disconnected, including at least one of the following: network password change, power failure of the first network device or the terminal device, or network disconnection between the first network device and the terminal device.
  • this application provides a network device including a processor and a memory.
  • the memory stores a set of computer instructions; when the processor executes the set of computer instructions as an execution device in the first aspect or any possible implementation of the first aspect, it executes the operational steps of the network reconnection method in the first aspect or any possible implementation of the first aspect.
  • this application provides a terminal device including a processor and a memory.
  • the memory stores a set of computer instructions; when the processor executes the set of computer instructions as an execution device in the second aspect or any possible implementation of the second aspect, it executes the operational steps of the network reconnection method in the second aspect or any possible implementation of the second aspect.
  • this application provides a communication system comprising a network device and a terminal device.
  • the network device is configured to execute the operational steps of the network reconnection method in the first aspect or any possible implementation thereof;
  • the terminal device is configured to execute the operational steps of the network reconnection method in the second aspect or any possible implementation thereof.
  • this application provides a computer-readable storage medium, comprising: computer software instructions.
  • the computer software instructions When the computer software instructions are executed in a network device, they cause the network device to perform operational steps of the network reconnection method as described in the first aspect or any possible implementation thereof.
  • the computer software instructions when executed in a terminal device, they cause the terminal device to perform operational steps of the network reconnection method as described in the second aspect or any possible implementation thereof.
  • this application provides a computer program product that, when run on a network device, causes the network device to perform the operation steps of the network reconnection method as described in the first aspect or any possible implementation thereof.
  • the computer program product when run on a terminal device, causes the terminal device to perform the operation steps of the network reconnection method as described in the second aspect or any possible implementation thereof.
  • Figure 1 is a schematic diagram of the structure of a communication system provided in this application.
  • FIG. 2 is a flowchart illustrating a network reconnection method provided in this application
  • Figure 3 is a schematic diagram of a process for re-establishing a network connection between a network device and a terminal device according to this application;
  • Figure 4 is a schematic diagram of a process for re-establishing a network connection between a network device and a terminal device according to this application;
  • Figure 5 is a structural schematic diagram of a reconnection device for a terminal device provided in this application.
  • Figure 6 is a structural schematic diagram of another terminal device reconnection device provided in this application.
  • Figure 7 is a schematic diagram of the structure of a network device provided in this application.
  • Figure 8 is a structural schematic diagram of a terminal device provided in this application.
  • the Internet of Things can be simply understood as an "internet connecting things,” that is, connecting objects to the internet, allowing objects to exchange and communicate with each other through information transmission media to achieve intelligent management of objects.
  • IoT technology has been widely applied in daily life.
  • various smart home products in the home can be interconnected based on the network, and users can remotely control the products through smart terminals or smart voice assistants.
  • Spark-Link is a next-generation short-range wireless connectivity technology that integrates the advantages of Bluetooth and Wi-Fi, aiming to provide users with an interference-resistant, low-latency, high-speed, and highly reliable wireless connection experience. Spark-Link can be applied in the field of IoT technology, meeting the high-quality wireless communication needs of terminal devices such as smart terminals, smart homes, smart cars, and smart manufacturing, providing a more efficient and stable solution for terminal device communication.
  • Terminal devices can establish network connections with network devices, and users can manage these devices using a client application.
  • sudden power outages, replacement of network devices, changes in network passwords, or power failures of either the network device or the terminal device can cause the network connection between the terminal device and the network device to be lost.
  • this application provides a network reconnection method.
  • This method is executed by a first network device and includes: when the network connection of a terminal device is disconnected, the first network device receives a first connection request sent by the terminal device.
  • the first connection request is used to establish a first connection and includes a first identifier. If the first identifier is verified, the first network device establishes a first connection with the terminal device.
  • the first connection is used for establishing a network connection between the first network device and the terminal device.
  • the method provided in this application when the terminal device's network connection is lost, if the first identifier included in the first connection request sent by the terminal device is verified by the first network device, it indicates that the terminal device using the first user account has first connection permission, and a first connection can be established between the terminal device and the first network device.
  • the terminal device then automatically reconnects to the network device based on this first connection, achieving automatic reconnection. This improves the reconnection efficiency of the terminal device.
  • FIG. 1 is a schematic diagram of a communication system provided in this application.
  • the communication system 100 includes a network device 110 and a terminal device 120.
  • the network device 110 and the terminal device 120 communicate via wireless communication technology.
  • the network device 110 and the terminal device 120 support Wireless Fidelity (Wi-Fi) protocols (e.g., 802.11a/b/g/n/ac/ax/be/bn) and the Starlink communication protocol.
  • Wi-Fi Wireless Fidelity
  • the network device 110 and the terminal device 120 can transmit wireless signals that comply with the relevant regulations of the Wi-Fi protocol or the Starlink communication protocol.
  • Network device 110 includes a router.
  • the router can be a commonly used WIFI router in the home, which can provide wireless network connectivity and transmit wireless signals (such as WIFI signals) to terminal device 120 via wireless communication.
  • WIFI signals wireless signals
  • terminal devices 120 may include, but are not limited to, smart home products such as cameras, microwave ovens, air conditioners, refrigerators, and electric water heaters, as shown in Figure 1.
  • smart home products such as cameras, microwave ovens, air conditioners, refrigerators, and electric water heaters, as shown in Figure 1.
  • Terminal device 120 has network connectivity. When terminal device 120 starts up, it can receive wireless signals broadcast by network device 110, discover available networks, establish a wireless network connection with network device 110, and connect to the Internet through network device 110. Terminal device 120 can be centrally managed by an IoT cloud platform, which can provide services such as device operation status recording and device fault diagnosis.
  • the network configuration methods for establishing a network connection between network device 110 and terminal device 120 include, but are not limited to, hotspot (access point, AP) connection configuration, Bluetooth connection configuration, QR code connection configuration, and Star Flash connection configuration. This application does not limit the network configuration method when terminal device 120 and network device 110 initially establish a network connection. When the network connection between terminal device 120 and network device 110 is lost, the specific implementation method for reconnecting the terminal device can be found in steps 210 to 2130 below.
  • Figure 2 is a schematic flowchart of a network reconnection method provided in this application.
  • the explanation mainly takes the interaction between network device 110 and terminal device 120 in Figure 1 to achieve automatic reconnection of the terminal device as an example.
  • the network reconnection method may include the following:
  • the terminal device and the network device can negotiate information, including but not limited to: a first user account, a first identifier, and first encrypted information.
  • the first user account is used to log in to the terminal device.
  • the first identifier is used to identify the terminal device.
  • the first encrypted information is obtained by encrypting the first user account.
  • the first network device when the terminal device establishes a network connection for the first time, in step 210, the first network device can generate a first identifier and first encrypted information; in step 220, the first network device sends the first identifier and first encrypted information to the terminal device. Correspondingly, in step 230, the first network device receives the first identifier and first encrypted information.
  • the terminal device and the network device can re-establish a network connection based on the authentication information negotiated between them. For example, the terminal device can be verified to have StarFlash communication permissions based on a first identifier.
  • the terminal device's identity is verified based on the first encrypted information to improve network connection security, ensure network security, and prevent network attacks.
  • a client for managing network devices can be installed on terminal devices (such as mobile phones, tablets, and laptops).
  • the client for network devices can provide the function of generating a first identifier and a first encrypted information, and upload the first identifier and the first encrypted information to a cloud server to achieve synchronous cloud storage.
  • the network device After generating the first identifier and the first encrypted information, the network device needs to send the first identifier and the first encrypted information to the terminal device.
  • the terminal device receives and stores the first identifier and the first encrypted information. In this way, both the network device and the terminal device can obtain the verification information negotiated during the initial successful network configuration, which facilitates verification during subsequent network configurations.
  • the network device can transmit the first identifier and the first encryption information to the terminal device based on the Internet Protocol (IP).
  • IP Internet Protocol
  • the network device can instruct the cloud server to synchronize the first identifier and the first encrypted information to the terminal device.
  • Steps 240 to 270 are as follows.
  • Step 240 If the network connection of the terminal device is lost, the terminal device sends a first connection request. Accordingly, in step 250, the first network device receives the first connection request sent by the terminal device.
  • the network connection of the terminal device is disconnected, including at least one of the following situations: network password change, power failure of the first network device or the terminal device, and network disconnection between the first network device and the terminal device.
  • the terminal device needs to use the updated password to reconnect to the network. If the terminal device does not obtain the updated password in time, it will be unable to pass authentication, resulting in the network connection being disconnected.
  • the network indicator light on the terminal device will turn off, indicating that the network connection is broken and the terminal device is offline.
  • a disconnected network connection causes the terminal device to fail to access the network, resulting in a network failure.
  • the network connection between the terminal device and the first network device will be disconnected, resulting in the disconnection of the terminal device's network connection.
  • the terminal device and the network device support the StarScan communication protocol. After the terminal device detects that the network connection is lost, the terminal device can communicate with the network device based on the StarScan communication protocol and send broadcast messages so that the terminal device and the network device can transmit the information required to establish a network connection.
  • a terminal device sends a first connection request based on the StarScan communication protocol, and a first network device receives the first connection request sent by the terminal device.
  • the first connection request is used to establish a first connection.
  • the first connection can be a StarScan connection.
  • the first connection request includes a first identifier, which can be used to indicate the terminal device.
  • the first identifier includes, but is not limited to, a universally unique identifier (UUID).
  • Terminal devices and network devices can pre-configure network parameters related to StarScan communication to support the StarScan communication protocol. These network parameters may include, but are not limited to, the frequency band, channel bandwidth, and modulation/coding scheme for StarScan communication. Furthermore, the StarScan transmission rate and transmission power can be configured and adjusted in the terminal device's firmware.
  • the network connection of the terminal device when disconnected, it can periodically send StarScan broadcast messages at preset time intervals based on the StarScan communication protocol.
  • the StarScan broadcast messages can be used to instruct the terminal device to wait to establish a StarScan connection with the first network device.
  • the StarScan broadcast messages carry a first identification field.
  • a Starbucks broadcast message may include a header, payload, checksum, and tail.
  • the first identifier field is usually encapsulated in the header so that the first network device can prioritize processing the first identifier field after receiving the Starbucks broadcast message sent by the terminal device.
  • the aforementioned Spark-Link communication protocol may include at least one of the Spark-Link Basic (SLB) communication interface protocol and the Spark-Link Low Energy (SLE) communication interface protocol.
  • the SLB communication interface protocol is primarily used in network connectivity scenarios with high speed and stability requirements, such as smart cars, smart homes, and smart terminals.
  • the SLE communication interface protocol is primarily used in low-power network connectivity scenarios, such as smart wearable devices like headphones, glasses, watches, and wristbands.
  • the SLB and SLE communication interface protocols can be used in combination to meet the diverse needs of different network connectivity scenarios.
  • the first network device When the network connection of the terminal device is disconnected, the first network device establishes a first connection with the terminal device.
  • the specific implementation method can be found in step 260 below.
  • Step 260 If the first identifier is verified, the first network device establishes a first connection with the terminal device. The first connection is used for the first network device to establish a network connection with the terminal device.
  • the first network device and the terminal device can establish a first connection.
  • This first connection is used to establish a network connection between the first network device and the terminal device. Establishing the first connection is the basis for the first network device and the terminal device to re-establish a network connection, so that the terminal device can automatically reconnect.
  • the first network device may store one or more identifiers associated with the first user account, for example, storing multiple identifiers in a list.
  • the terminal device and the first network device have negotiated to use the first identifier as verification information for reconnection after network disconnection.
  • the first identifier may be a UUID negotiated by the terminal device and the first network device during the initial network connection establishment.
  • the first network device can verify the first identifier in the first connection request based on one or more identifiers.
  • the first network device may use one or more identifiers associated with the first user account stored in its storage as a reference to verify the first identifier in the first connection request sent by the terminal device. If the first identifier is included among the one or more identifiers, then the first identifier is determined to have passed the verification.
  • the first network device can compare each of the one or more identifiers with the first identifier. If any of the one or more identifiers is the same as the first identifier, the first identifier has passed the verification of the network device, indicating that the verification of the first identifier sent by the terminal device is successful.
  • the first network device can directly compare each of the one or more identifiers with the first identifier sent by the terminal device. If the string lengths of the two identifiers are equal and the characters at each corresponding position in the string are equal, then the one or more identifiers include the first identifier, and the first identifier passes the verification.
  • the first identifier sent by the terminal device can be a first hash value encrypted using a hash encryption algorithm
  • each of the one or more identifiers stored by the first network device can be a second hash value encrypted using the same algorithm.
  • the first hash value is compared with the second hash value; if they match, then the first identifier is included in one or more identifiers, thus confirming that the first identifier has passed verification. Comparing the hash value instead of the first identifier itself reduces the risk of unauthorized tampering with user accounts and prevents the leakage of user information. Furthermore, verifying the first identifier also ensures network security and prevents network attacks.
  • the first network device may send a first connection response to the terminal device (step 270).
  • the first connection response is used to indicate that the first identifier in the first connection request has been verified.
  • the first connection response may include a StarSpark communication service enable identifier.
  • the first network device enables the StarSpark communication service, granting the terminal device permission to communicate with the first network device via StarSpark.
  • the terminal device can access StarSpark communication, and a StarSpark connection is established between the first network device and the terminal device based on StarSpark communication.
  • the first network device can enable the StarScan communication service, and a StarScan connection can be established between the terminal device and the first network device. This allows the terminal device to automatically reconnect to the first network device via the StarScan connection, enabling automatic reconnection and improving the reconnection efficiency of the terminal device.
  • various terminal devices may be manufactured by different companies, but the users of each terminal device are unique.
  • a first identifier can be used to indicate that a terminal device is associated with a user account.
  • the first network device can use a unified user account for authentication and management of various terminal devices, without relying on the device information of each terminal device. Furthermore, by using a unified user account for authentication and management of terminal devices, even if the installation location of a terminal device is changed, its automatic reconnection capability will not be affected, facilitating reconnection and improving reconnection efficiency.
  • FIG. 3 is a schematic diagram of the process of re-establishing a network connection between a network device and a terminal device provided in this application. The specific interaction process is described by the following steps 280 to 2130.
  • Step 280 The terminal device sends a network configuration request to the first network device.
  • step 290 The first network device receives the network configuration request sent by the terminal device through the first connection.
  • the network configuration request may include first encrypted information, which is obtained by encrypting the first user account, such as by using a key algorithm to encrypt the first user account.
  • This first encrypted information can be used to ensure the security of the first user account and prevent attackers from illegally obtaining user information.
  • Key algorithms can include, but are not limited to, message-digest algorithm 5 (MD5), security hash algorithm 1 (SHA1), and hash-based message authentication code (HMAC). For example, encrypting the first user account using SHA1, the resulting hash value of the first user account can be used as the first encrypted message.
  • MD5 message-digest algorithm 5
  • SHA1 security hash algorithm 1
  • HMAC hash-based message authentication code
  • the network configuration request may also include a timestamp mask.
  • the timestamp mask can be used to indicate when the terminal device sent the network configuration request to the first network device.
  • the timestamp mask ensures the uniqueness of each communication between the terminal device and the first network device, enabling the first network device to identify invalid or expired network configuration requests and prevent security risks caused by replay attacks.
  • Step 2100 If the first user account is verified, send the first configuration information to the terminal device.
  • Step 2110 The terminal device receives the first configuration information sent by the first network device.
  • the first network device can verify the first identifier before enabling the StarFlash communication service. Furthermore, it can also verify the first user account after receiving a network configuration request.
  • the first network device can decrypt the first encrypted information in the network configuration request sent by the terminal device using the same key algorithm, i.e., the key algorithm used by the terminal device to encrypt the first user account, to obtain the first user account. If the first user account is the same as the user account stored by the first network device during network configuration negotiation, the first user account is determined to have passed verification.
  • the same key algorithm i.e., the key algorithm used by the terminal device to encrypt the first user account
  • the first user account is compared with the user account stored in the first network device. If the two user accounts have the same string length and the characters at each corresponding position in the string are the same, then the first user account is the same as the user account stored in the first network device, and thus the first user account passes the verification.
  • the terminal device's identity has been verified by the network device, indicating that the first encrypted information sent by the terminal device has been successfully verified.
  • the first network device can send first configuration information to the terminal device.
  • the first configuration information may include the network name and network password used by the terminal device to establish a network connection.
  • the first configuration information is obtained by encrypting the network name and network password using a key algorithm, such as an encrypted Wi-Fi name and Wi-Fi password.
  • Step 2120 The first network device establishes a network connection with the terminal device.
  • the terminal device After receiving the first configuration information, the terminal device can send a network connection request to the first network device in order to establish a network connection with the first network device.
  • the first network device receives the network connection request sent by the terminal device.
  • the first network device can send a network connection instruction to the terminal device, instructing the terminal device to establish a network connection with the first network device according to the first configuration information.
  • the first network device and the terminal device re-establish a network connection.
  • the terminal device Since the first configuration information received by the terminal device was encrypted by the first network device, the terminal device needs to use the same key algorithm as when encrypting the first configuration information to decrypt it, thereby obtaining the network name and network password. Based on the network name and network password, the terminal device then re-establishes a network connection with the first network device.
  • the first network device can shut down the StarFlash communication service to release network resources in a timely manner.
  • the first network device can also update the first identifier to a second identifier and upload the updated second identifier to the cloud server.
  • the first network device can also send indication information to the terminal device (step 2130).
  • the terminal device receives a network connection request from the first network device, indicating that the first identifier should be updated to the second identifier.
  • the terminal device then updates the first identifier to the second identifier.
  • the updated second identifier is then stored in both the cloud server and the terminal device. This allows for easy reconnection if the terminal device subsequently loses its network connection with the first network device.
  • the terminal device's network connection is lost, and the first identifier included in the first connection request sent by the terminal device is verified by the first network device, it indicates that the terminal device using the first user account has the first connection permission.
  • a first connection can then be established between the terminal device and the first network device, and the terminal device automatically reconnects to the network device based on this first connection, thus achieving automatic reconnection. This improves the reconnection efficiency of the terminal device.
  • the network device is replaced, i.e., the second network device is replaced with the first network device.
  • the replaced first network device establishes the first connection with the terminal device.
  • Specific implementation methods can be found in the following description.
  • the first network device and the second network device are located in different locations, and their coverage areas differ.
  • the terminal device is within the coverage area of the second network device, and the terminal device negotiates network configuration and establishes a network connection with the second network device. Movement of the terminal device may change its location.
  • the terminal device moves out of the coverage area of the second network device, the network connection between the terminal device and the second network device is lost.
  • the terminal device can initiate a network reconnection with the first network device according to the network reconnection method provided in this application, and establish a network connection with the first network device.
  • the first network device and the second network device save and/or log in to the same user account, and the terminal device establishes network connections with both the first and second network devices based on the user account.
  • the home router and the office router store and/or log in to the same user account.
  • the user's mobile phone initially negotiates network configuration with the home router and establishes a network connection.
  • the network connection between the user's mobile phone and the home router is lost.
  • the user's mobile phone moves into the coverage area of the office router, and both the office router and the user's mobile phone are logged into the same user account as the home router, the user's mobile phone does not need to re-negotiate network configuration with the office router.
  • the user's mobile phone can initiate a network reconnection to the office router according to the network reconnection method provided in this application.
  • a network connection is established with the office router. This is illustrated in steps 410 and 420, and steps 240 to 2130, as shown in Figure 4.
  • FIG 4 is a flowchart illustrating another network reconnection method provided in this application embodiment.
  • the difference from the network reconnection methods shown in Figures 2 and 3 is that, in the case of a network device switching, the terminal device establishes an initial network connection with a second network device.
  • the second network device sends a first identifier and second encrypted information to the first network device (step 410).
  • the first network device receives the first identifier and second encrypted information sent by the second network device and stores them (step 420).
  • the second encrypted information is obtained by encrypting a first user account, which is used to log in to the terminal device.
  • the first identifier and second encrypted information are negotiated when the second network device and the terminal device establish the initial network connection.
  • the specific negotiation process can be referred to the negotiation process between the first network device and the terminal device described above, and will not be repeated here.
  • the first network device may also decrypt the second encrypted information to obtain the first user account and store the first identifier and the first user account.
  • the second network device can upload the first identifier and the second encrypted information to a cloud server for synchronous cloud storage.
  • the second network device may also instruct the first network device to obtain the first identifier and the second encrypted information from the cloud server.
  • the first network device can obtain the first identifier and the second encrypted information from the cloud server.
  • the first network device can establish a network connection with the terminal device. For example, the first network device receives a first connection request sent by the terminal device. This first connection request is used to establish a first connection and includes a first identifier, which is used to indicate the terminal device. If the first identifier is verified, the first network device establishes a first connection with the terminal device. This first connection is used to establish a network connection between the first network device and the terminal device.
  • the terminal device When a network device is replaced and the network connection of a terminal device is lost, if the first identifier included in the first connection request sent by the terminal device is verified by the first network device, it indicates that the terminal device using the first user account has the first connection permission. A first connection can then be established between the terminal device and the first network device, and the terminal device automatically reconnects to the network device based on this first connection, thus achieving automatic reconnection. This improves the reconnection efficiency of the terminal device.
  • the computer device includes corresponding hardware structures and/or software modules for executing each function.
  • this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
  • Figure 5 is a schematic diagram of a reconnection device for a terminal device provided in this application. These reconnection devices for terminal devices can be used to implement the functions of the first network device in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments.
  • the reconnection device 500 of the terminal equipment includes a communication module 510 and a connection module 520.
  • the communication module 510 is configured to receive a first connection request sent by the terminal device when the network connection of the terminal device is disconnected.
  • the first connection request is used to establish a first connection and includes a first identifier, which is used to indicate the terminal device.
  • the connection module 520 is configured to establish a first connection between the first network device and the terminal device when the first identifier is verified.
  • the first connection is used to establish a network connection between the first network device and the terminal device.
  • the first connection is a StarScan connection
  • the first network device and the terminal device support the StarScan communication protocol.
  • the communication module 510 is further configured to: receive a network configuration request sent by a terminal device through a first connection, the network configuration request including first encrypted information, the first encrypted information being obtained by encrypting a first user account, the first user account being used to log in to the terminal device; if the first user account is verified, send first configuration information to the terminal device, the first configuration information being obtained by encrypting the network name and network password of the terminal device's network connection; receive a network connection request sent by the terminal device, and establish a network connection with the terminal device.
  • the above-mentioned device further includes a verification module 530, used to determine that the first user account has passed verification if the first user account is the same as the user account stored in the first network device.
  • a verification module 530 used to determine that the first user account has passed verification if the first user account is the same as the user account stored in the first network device.
  • the network connection of the terminal device is the network connection between the second network device and the terminal device.
  • the communication module 510 is further used to: receive and store the first identifier and the second encrypted information, wherein the second encrypted information is obtained by encrypting the first user account, the first user account is used to log in to the terminal device, and the first identifier and the second encrypted information are obtained through negotiation between the second network device and the terminal device.
  • the above-mentioned device further includes a negotiation module, which is used to generate a first identifier and a first encrypted information when the terminal device establishes a network connection for the first time.
  • the first encrypted information is obtained by encrypting a first user account, which is used to log in to the terminal device; and to send the first identifier and the first encrypted information to the terminal device.
  • the first network device stores one or more identifiers associated with a first user account; the first user account is used to log in to the terminal device, and the verification module 530 is further used to determine that the first identifier has passed verification if the first identifier is included among the one or more identifiers.
  • the communication module 510 is further configured to: send a first connection response to the terminal device if the first identifier is verified, wherein the first connection response is used to indicate that the first identifier in the first connection request has been verified.
  • the communication module 510 is further configured to: indicate information to the terminal device, the indication information being used to indicate that the first identifier be updated to the second identifier.
  • the network connection of the aforementioned terminal device is disconnected, including at least one of the following: network password change, power failure of the first network device or the terminal device, or network disconnection between the first network device and the terminal device.
  • the reconnection device 500 of the aforementioned terminal device may further include a storage module 540.
  • the storage module 540 may correspond to the method embodiment described above for storing one or more identifiers associated with the first user account.
  • Figure 6 is a schematic diagram of another reconnection device for a terminal device provided in this application.
  • These reconnection devices for terminal devices can be used to implement the functions of the terminal devices in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments.
  • the reconnection device 600 of the terminal equipment includes a communication module 610 and a connection module 620.
  • the communication module 610 is used to send a first connection request when the network connection of the terminal device is disconnected.
  • the first connection request is used to establish a first connection and includes a first identifier, which is used to indicate the terminal device.
  • the connection module 620 is used to establish a first connection between the terminal device and the first network device.
  • the first connection is used to instruct the terminal device to establish a network connection with the first network device.
  • the first connection mentioned above is a StarFlash connection
  • the first network device and the terminal device support the StarFlash communication protocol.
  • the communication module 610 is further configured to: send a network configuration request to a first network device via a first connection, the network configuration request including first encrypted information, the first encrypted information being obtained by encrypting a first user account, the first user account being used to log in to the terminal device; receive first configuration information sent by the first network device, the first configuration information being obtained by encrypting the network name and network password of the network connection of the terminal device by the first network device; and send a network connection request to the first network device, the connection module being configured to establish a network connection with the first network device according to the first configuration information.
  • connection module 620 when the connection module 620 establishes a network connection with the first network device based on the first configuration information, it is specifically used to: decrypt the first configuration information to obtain the network name and network password; and establish a network connection with the first network device based on the network name and network password.
  • the communication module 610 is further configured to: receive a first identifier and first encrypted information when the terminal device establishes a network connection for the first time, wherein the first encrypted information is obtained by encrypting a first user account, and the first user account is used to log in to the terminal device.
  • the communication module 610 is further configured to: receive a first connection response sent by the first network device, wherein the first connection response is used to indicate that the first identifier in the first connection request has been verified.
  • the communication module 610 is further configured to: receive indication information sent by the first network device, the indication information being used to indicate updating the first identifier to the second identifier; and update the first identifier to the second identifier.
  • the network connection of the aforementioned terminal device is disconnected, including at least one of the following situations: network password change, power failure of the first network device or the terminal device, or network disconnection between the first network device and the terminal device.
  • the reconnection device 600 of the terminal device may further include a storage module 630.
  • the storage module 630 may correspond to the method embodiment described above for storing the first identifier, etc.
  • the reconnection device 500 and the reconnection device 600 of the terminal device can be used to execute the methods described in the embodiments of this application.
  • the above and other operations and/or functions of each unit in the reconnection device 500 and the reconnection device 600 of the terminal device are respectively for implementing the corresponding processes of the various methods in FIG2. For the sake of brevity, they will not be described again here.
  • Figure 7 is a schematic diagram of the structure of a network device provided in this application.
  • the network device 700 includes a processor 710, a bus 720, a memory 730, a memory unit 750 (also referred to as main memory), and a communication interface 740.
  • the processor 710, memory 730, memory unit 750, and communication interface 740 are connected through the bus 720.
  • the processor 710 can be a CPU, but it can also be other general-purpose processors, DSPs, ASICs, FPGAs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor can be a microprocessor or any conventional processor, etc.
  • the communication interface 740 is used to enable communication between the network device 700 and external devices or components.
  • the communication interface 740 is used for data interaction with other network devices or controllers.
  • Bus 720 may include a pathway for transferring information between the aforementioned components (such as processor 710, memory unit 750, and memory 730). In addition to a data bus, bus 720 may also include a power bus, control bus, and status signal bus. However, for clarity, all buses are labeled as bus 720 in the figure. Bus 720 may be a Peripheral Component Interconnect Express (PCIe) bus, or an Extended Industry Standard Architecture (EISA) bus, a Unified Bus (Ubus or UB), a Compute Express Link (CXL), a Cache Coherent Interconnect for Accelerators (CCIX), etc.
  • PCIe Peripheral Component Interconnect Express
  • EISA Extended Industry Standard Architecture
  • Ubus or UB Unified Bus
  • CXL Compute Express Link
  • CLIX Cache Coherent Interconnect for Accelerators
  • network device 700 may include multiple processors.
  • a processor may be a multi-core (multi-CPU) processor.
  • processor can refer to one or more devices, circuits, and/or computing units for processing data (e.g., computer program instructions).
  • Processor 710 can receive a first connection request sent by the terminal device when the network connection of the terminal device is lost. The first connection request is used to establish a first connection, and the first connection request includes a first identifier used to indicate the terminal device. Upon successful verification of the first identifier, the first network device establishes a first connection with the terminal device, and the first connection is used for establishing a network connection between the first network device and the terminal device.
  • Figure 7 only shows an example of a network device 700 including one processor 710 and one memory 730.
  • the processor 710 and the memory 730 are used to indicate a type of device or equipment.
  • the number of each type of device or equipment can be determined according to business requirements.
  • Memory unit 750 may correspond to the method embodiment described above for storing one or more identifiers associated with the first user account.
  • Memory unit 750 may be volatile memory or non-volatile memory, or may include both.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory.
  • the volatile memory may be random access memory (RAM), which serves as an external cache.
  • RAM dynamic random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous linked dynamic random access memory
  • DR RAM direct rambus RAM
  • the memory 730 is used to store one or more identifiers associated with the first user account, and may be a solid-state drive or a hard disk drive.
  • the network device 700 can correspond to the reconnection device 500 of the terminal device in this embodiment, and the above and other operations and/or functions of each module of the reconnection device 500 of the terminal device are respectively to implement the corresponding process in FIG2. For the sake of simplicity, they will not be described in detail here.
  • the method steps in this embodiment can be implemented in hardware or by a processor executing software instructions.
  • the software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium.
  • the storage medium can also be a component of the processor.
  • the processor and storage medium can reside in an ASIC.
  • the ASIC can reside in a network device.
  • the processor and storage medium can also exist as discrete components in a network device or terminal device.
  • FIG. 8 is a schematic diagram of the structure of a terminal device provided in this application.
  • the terminal device 800 includes a processor 810, a bus 820, a memory 830, a memory unit 850 (also referred to as main memory), and a communication interface 840.
  • the processor 810, memory 830, memory unit 850, and communication interface 840 are connected through the bus 820.
  • the functional descriptions of each component can be found in Figure 7 above, and will not be repeated here.
  • the processor 810 can send a first connection request when the network connection of the terminal device is disconnected.
  • the first connection request is used to establish a first connection.
  • the first connection request includes a first identifier, which is used to indicate the terminal device.
  • the terminal device and the first network device establish a first connection.
  • the first connection is used to indicate that the terminal device and the first network device establish a network connection.
  • the memory 830 is used to store the first identifier, etc., and can be a solid-state drive or a mechanical hard drive.
  • controller 800 can correspond to the reconnection device 600 of the terminal device in this embodiment, and the above and other operations and/or functions of each module of the reconnection device 600 of the terminal device are respectively to implement the corresponding process in FIG2. For the sake of brevity, they will not be described in detail here.
  • This application also provides a chip system including a processor for implementing the functions of the data processing unit in the above-described method.
  • the chip system further includes a memory for storing program instructions and/or data.
  • This chip system may be composed of chips or may include chips and other discrete devices.
  • implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof.
  • software When implemented using software, it can be implemented entirely or partially in the form of a computer program product.
  • the computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are performed entirely or partially.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device.
  • the computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.
  • the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means.
  • the computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media.
  • the available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid-state drive (SSD).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

公开了网络重连方法、装置、设备及通信系统。涉及物联网技术领域,方法包括:在终端设备的网络连接断开的情况下,接收终端设备发送的第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备。在第一标识通过验证的情况下,第一网络设备与终端设备建立第一连接,第一连接用于第一网络设备与终端设备建立网络连接。第一标识通过第一网络设备的验证,则表明终端设备具有第一连接权限,终端设备与第一网络设备之间能够建立第一连接。建立了第一连接,第一网络设备开启断网重连服务,终端设备基于断网重连服务自动连接网络设备,实现自动重连,提升终端设备的重连效率。

Description

网络重连方法、装置、设备及通信系统
本申请要求于2024.06.29提交国家知识产权局、申请号为202410868900.1、申请名称为“网络重连方法、装置、设备及通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及物联网技术领域,尤其涉及一种网络重连方法、装置、设备及通信系统。
背景技术
目前,终端设备(如物联网设备:智能门锁、冰箱和空调等智能家居产品)可以与网络设备(如路由器)建立网络连接,用户可以使用终端设备操作和管理终端设备。当终端设备出现网络连接异常时,终端设备无法重新连接网络。通常,人工操控终端设备开启蓝牙或热点搜索到终端设备后,再由终端设备控制终端设备与路由器重新建立网络连接。但是,这种终端设备的重连方法依赖于人工,且操作比较繁琐,导致终端设备的重连效率较低。
发明内容
本申请提供一种网络重连方法、装置、设备及通信系统,解决了终端设备的重连效率较低的问题。
第一方面,本申请提供一种网络重连方法,方法由第一网络设备执行,方法包括:在终端设备的网络连接断开的情况下,接收终端设备发送的第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备。在第一标识通过验证的情况下,第一网络设备与终端设备建立第一连接,第一连接用于第一网络设备与终端设备建立网络连接。
相比于基于人工操控终端设备的客户端控制终端设备重新建立网络连接。本申请实施例提供的方法中,在终端设备的网络连接断开的情况下,终端设备发送的第一连接请求中包括的第一标识通过第一网络设备的验证,则表明使用第一用户账号的终端设备具有第一连接权限,终端设备与第一网络设备之间能够建立第一连接,则终端设备基于第一连接自动连接网络设备,实现终端设备的自动重连。如此,提升了终端设备的重连效率。
在一种可能的实现方式中,第一连接为星闪连接,第一网络设备和终端设备支持星闪通信协议。
如此,第一连接请求中的第一标识通过第一网络设备的验证,则第一网络设备可以开启星闪通信服务,终端设备与第一网络设备之间能够建立星闪连接。以便于后续终端设备通过星闪连接可以自动连接第一网络设备,实现终端设备的自动重连,提升终端设备的重连效率。
在另一种可能的实现方式中,上述方法还包括:通过第一连接接收终端设备发送的网络配置请求,网络配置请求包括第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;在第一用户账号通过验证的情况下,向终端设备发送第一配置信息,第一配置信息是对终端设备的网络连接的网络名称和网络密码加密得到的;接收终端设备发送的网络连接请求,与终端设备建立网络连接。
在另一种可能的实现方式中,上述方法还包括:解密第一加密信息,得到第一用户账号;在第一用户账号与第一网络设备存储的用户账号相同的情况下,确定第一用户账号通过验证。
在另一种可能的实现方式中,终端设备的网络连接为第二网络设备与终端设备的网络连接,上述方法还包括:接收并存储第一标识和第二加密信息,第二加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备,第一标识和第二加密信息为第二网络设备与终端设备协商得到的。
在另一种可能的实现方式中,上述方法还包括:在终端设备初次建立网络连接的情况下,生成第一标识和第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;向终端设备发送第一标识和第一加密信息。
网络连接断开后,第一标识可以在终端设备与网络设备再次建立网络连接时验证终端设备是否具有星闪通信权限。第一加密信息可以在终端设备与网络设备再次建立网络连接时验证终端设备的身份,以提高网络连接安全性,保证网络安全,防止网络攻击。
在另一种可能的实现方式中,第一网络设备存储有与第一用户账号相关联的一个或多个标识;第一用户账号用于登录终端设备,上述方法还包括:在一个或多个标识中包括第一标识的情况下,确定第一标识通过验证。
在另一种可能的实现方式中,上述方法还包括:在第一标识通过验证的情况下,向终端设备发送第一连接响应,第一连接响应用于指示第一连接请求中的第一标识通过了验证。
在同一应用场景(如智能家居场景)下的各个终端设备可能产自不同的厂商,但使用各个终端设备的用户是唯一的。第一标识可以用于指示终端设备与用户账号相关联,第一网络设备对各个终端设备可以使用统一的用户账号进行鉴权管理,无需依赖于各个终端设备的设备信息。此外,第一网络设备使用统一的用户账号鉴权管理终端设备,即使更换终端设备的安装地点,也不会影响终端设备所具备的自动重连能力,给终端设备的重连提供了方便,也有利于提升终端设备的重连效率。
在另一种可能的实现方式中,第一网络设备和终端设备建立网络连接之后,上述方法还包括:向终端设备指示信息,指示信息用于指示将第一标识更新为第二标识。终端设备若后续再次与第一网络设备的网络连接断开,以便于终端设备的断网重连。
在另一种可能的实现方式中,上述终端设备的网络连接断开,包括:网络密码变更、第一网络设备掉电或终端设备掉电、第一网络设备与终端设备的网络断开中至少一种情况。
第二方面,本申请提供一种网络重连方法,方法由终端设备执行,方法包括:在终端设备的网络连接断开的情况下,发送第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备;终端设备和第一网络设备建立第一连接,第一连接用于指示终端设备与第一网络设备建立网络连接。
在一种可能的实现方式中,第一连接为星闪连接,第一网络设备和终端设备支持星闪通信协议。
在另一种可能的实现方式中,上述方法还包括:通过第一连接向第一网络设备发送网络配置请求,网络配置请求包括第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;接收第一网络设备发送的第一配置信息,第一配置信息是第一网络设备对终端设备的网络连接的网络名称和网络密码加密得到的;向第一网络设备发送网络连接请求,根据第一配置信息与第一网络设备建立网络连接。
在另一种可能的实现方式中,根据第一配置信息与第一网络设备建立网络连接,包括:对第一配置信息进行解密,得到网络名称和网络密码;根据网络名称和网络密码与第一网络设备建立网络连接。
在另一种可能的实现方式中,上述方法还包括:在终端设备初次建立网络连接的情况下,接收第一标识和第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备。
在另一种可能的实现方式中,上述方法还包括:接收第一网络设备发送的第一连接响应,第一连接响应用于指示第一连接请求中的第一标识通过了验证。
在另一种可能的实现方式中,上述方法还包括:接收第一网络设备发送的指示信息,指示信息用于指示将第一标识更新为第二标识;将第一标识更新为第二标识。
在另一种可能的实现方式中,上述终端设备的网络连接断开,包括:网络密码变更、第一网络设备掉电或终端设备掉电、第一网络设备与终端设备的网络断开中至少一种情况。
第三方面,本申请提供一种终端设备的重连装置,该装置应用于第一网络设备。该装置包括通信模块和连接模块。其中,通信模块,用于在终端设备的网络连接断开的情况下,接收终端设备发送的第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备。连接模块,用于在第一标识通过验证的情况下,第一网络设备与终端设备建立第一连接,第一连接用于第一网络设备与终端设备建立网络连接。
在一种可能的实现方式中,第一连接为星闪连接,第一网络设备和终端设备支持星闪通信协议。
在另一种可能的实现方式中,上述通信模块还用于:通过第一连接接收终端设备发送的网络配置请求,网络配置请求包括第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;在第一用户账号通过验证的情况下,向终端设备发送第一配置信息,第一配置信息是对终端设备的网络连接的网络名称和网络密码加密得到的;接收终端设备发送的网络连接请求,与终端设备建立网络连接。
在另一种可能的实现方式中,上述装置还包括验证模块,用于在第一用户账号与第一网络设备存储的用户账号相同的情况下,确定第一用户账号通过验证。
在另一种可能的实现方式中,终端设备的网络连接为第二网络设备与终端设备的网络连接,上述通信模块还用于:接收并存储第一标识和第二加密信息,第二加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备,第一标识和第二加密信息为第二网络设备与终端设备协商得到的。
在另一种可能的实现方式中,上述装置还包括协商模块,用于在终端设备初次建立网络连接的情况下,生成第一标识和第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;向终端设备发送第一标识和第一加密信息。
在另一种可能的实现方式中,第一网络设备存储有与第一用户账号相关联的一个或多个标识;第一用户账号用于登录终端设备,上述验证模块还用于在一个或多个标识中包括第一标识的情况下,确定第一标识通过验证。
在另一种可能的实现方式中,上述通信模块还用于:在第一标识通过验证的情况下,向终端设备发送第一连接响应,第一连接响应用于指示第一连接请求中的第一标识通过了验证。
在另一种可能的实现方式中,第一网络设备和终端设备建立网络连接之后,上述通信模块还用于:向终端设备指示信息,指示信息用于指示将第一标识更新为第二标识。
在另一种可能的实现方式中,上述终端设备的网络连接断开,包括:网络密码变更、第一网络设备掉电或终端设备掉电、第一网络设备与终端设备的网络断开中至少一种情况。
第四方面,本申请提供另一种终端设备的重连装置,该装置应用于终端设备。该装置包括通信模块和连接模块。其中,通信模块用于在终端设备的网络连接断开的情况下,发送第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备。连接模块用于终端设备和第一网络设备建立第一连接,第一连接用于指示终端设备与第一网络设备建立网络连接。
在一种可能的实现方式中,上述第一连接为星闪连接,第一网络设备和终端设备支持星闪通信协议。
在另一种可能的实现方式中,上述通信模块还用于:通过第一连接向第一网络设备发送网络配置请求,网络配置请求包括第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;接收第一网络设备发送的第一配置信息,第一配置信息是第一网络设备对终端设备的网络连接的网络名称和网络密码加密得到的;向第一网络设备发送网络连接请求,连接模块用于根据第一配置信息与第一网络设备建立网络连接。
在另一种可能的实现方式中,连接模块根据第一配置信息与第一网络设备建立网络连接时,具体用于:对第一配置信息进行解密,得到网络名称和网络密码;根据网络名称和网络密码与第一网络设备建立网络连接。
在另一种可能的实现方式中,上述通信模块还用于:在终端设备初次建立网络连接的情况下,接收第一标识和第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备。
在另一种可能的实现方式中,上述通信模块还用于:接收第一网络设备发送的第一连接响应,第一连接响应用于指示第一连接请求中的第一标识通过了验证。
在另一种可能的实现方式中,上述通信模块还用于:接收第一网络设备发送的指示信息,指示信息用于指示将第一标识更新为第二标识;将第一标识更新为第二标识。
在另一种可能的实现方式中,上述终端设备的网络连接断开,包括:网络密码变更、第一网络设备掉电或终端设备掉电、第一网络设备与终端设备的网络断开中至少一种情况。
第五方面,本申请提供一种网络设备,该网络设备包括处理器和存储器。存储器用于存储一组计算机指令;当处理器作为第一方面或第一方面任一种可能实现方式中的执行设备执行所述一组计算机指令时,执行第一方面或第一方面任一种可能实现方式中的网络重连方法的操作步骤。
第六方面,本申请提供一种终端设备,该终端设备包括处理器和存储器。存储器用于存储一组计算机指令;当处理器作为第二方面或第二方面任一种可能实现方式中的执行设备执行所述一组计算机指令时,执行第二方面或第二方面任一种可能实现方式中的网络重连方法的操作步骤。
第七方面,本申请提供一种通信系统,该通信系统包括网络设备和终端设备。其中,该网络设备用于执行第一方面或第一方面任一种可能实现方式中的网络重连方法的操作步骤;该终端设备用于执行第二方面或第二方面任一种可能实现方式中的网络重连方法的操作步骤。
第八方面,本申请提供一种计算机可读存储介质,包括:计算机软件指令。当计算机软件指令在网络设备中运行时,使得网络设备执行如第一方面或第一方面任意一种可能实现方式中的网络重连方法的操作步骤。或者,当计算机软件指令在终端设备中运行时,使得终端设备执行如第二方面或第二方面任意一种可能实现方式中的网络重连方法的操作步骤。
第九方面,本申请提供一种计算机程序产品,当计算机程序产品在网络设备上运行时,使得网络设备执行如第一方面或第一方面任意一种可能的实现方式中网络重连方法的操作步骤。或者,当计算机程序产品在终端设备上运行时,使得终端设备执行如第二方面或第二方面任意一种可能的实现方式中网络重连方法的操作步骤。
第三方面至第九方面中任一种设计方式所带来的技术效果可参见第一方面或第一方面中不同设计方式所带来的技术效果,或者,可参见第二方面或第二方面中不同设计方式所带来的技术效果,此处不再赘述。
本申请在上述各方面提供的实现方式的基础上,还可以进行进一步组合以提供更多实现方式。
附图说明
图1为本申请提供的一种通信系统的结构示意图;
图2为本申请提供的一种网络重连方法的流程示意图;
图3为本申请提供的一种网络设备与终端设备重新建立网络连接的流程示意图;
图4为本申请提供的一种网络设备与终端设备重新建立网络连接的流程示意图;
图5为本申请提供的一种终端设备的重连装置的结构示意图;
图6为本申请提供的另一种终端设备的重连装置的结构示意图;
图7为本申请提供的一种网络设备的结构示意图;
图8为本申请提供的一种终端设备的结构示意图。
具体实施方式
为了下述各实施例的描述清楚简洁,首先对本申请涉及的术语进行简单介绍:
物联网(internet of things,IoT),可以通俗地理解为“物物相连的互联网”,即将物品与互联网连接,物品与物品之间通过信息传播媒介进行信息交换和通信,以实现物品的智能化管理。物联网技术已经广泛地应用到日常生活中,例如家庭中的各种智能家居产品可以基于网络互联,用户可以通过智能终端或智能语音助手对产品进行远程控制。
星闪(near 1ink或spark-link),是新一代近距离无线连接技术,它整合了蓝牙(bluetooth)和无线网络(wireless fidelity,WIFI)的优势,旨在给用户提供抗干扰、低时延、高速率以及高可靠性的无线连接体验。星闪可以应用于物联网技术领域,满足智能终端、智能家居、智能汽车和智能制造等终端设备对高质量无线通信的需求,给终端设备通信提供更高效和更稳定的解决方案。
终端设备(如支持物联网技术的物联网设备)可以与网络设备建立网络连接,用户可以操作终端设备的客户端来管理终端设备。然而,在突发断电、更换网络设备、网络密码变更以及网络设备或终端设备掉电等情况下,导致终端设备与网络设备的网络连接断开。为了提升用户对终端设备的使用体验,需要及时恢复网络连接,将终端设备重新连接至网络设备,终端设备重新与网络设备建立网络连接。
为了解决终端设备的重连效率较低的问题,本申请提供了一种网络重连方法,该方法由第一网络设备执行,该方法包括:在终端设备的网络连接断开的情况下,第一网络设备接收终端设备发送的第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识。在第一标识通过验证的情况下,第一网络设备与终端设备建立第一连接,第一连接用于第一网络设备与终端设备建立网络连接。
相比于基于人工操控终端设备的客户端控制终端设备重新建立网络连接。本申请实施例提供的方法中,在终端设备的网络连接断开的情况下,终端设备发送的第一连接请求中包括的第一标识通过第一网络设备的验证,则表明使用第一用户账号的终端设备具有第一连接权限,终端设备与第一网络设备之间能够建立第一连接,则终端设备基于第一连接自动连接网络设备,实现终端设备的自动重连。如此,提升了终端设备的重连效率。
图1为本申请提供的一种通信系统的结构示意图。如图1所示,通信系统100包括网络设备110和终端设备120。网络设备110和终端设备120通过无线通信技术进行通信。例如,网络设备110和终端设备120支持无线保真(Wireless Fidelity,Wi-Fi)协议(比如,802.11a/b/g/n/ac/ax/be/bn)和星闪通信协议。网络设备110和终端设备120可以发送满足Wi-Fi协议或星闪通信协议的相关法规的无线信号。
网络设备110包括路由器(router)。例如,在智能家居应用场景下,路由器可以是家庭中常用的WIFI路由器,它可以提供无线网络连接功能,并通过无线通信方式将无线信号(如WIFI信号)传输至终端设备120。
在智能家居应用场景中,终端设备120可以包括但不限于如图1所示的摄像头、微波炉、空调、电冰箱以及电热水器等智能家居产品。智能家居产品与网络设备110建立网络连接,可以实现其所具备的多样化的智能功能,有助于提升居住环境的舒适性和便利性。
终端设备120具备联网功能。终端设备120启动时,可以接收网络设备110广播的无线信号,发现可用网络,与网络设备110建立无线网络连接,通过网络设备110连接互联网。终端设备120可以由物联网云平台集中管理,物联网云平台可以提供设备运行状态记录和设备故障诊断等服务。
网络设备110与终端设备120建立网络连接时的配网方式包括但不限于热点(access point,AP)连接配网、蓝牙连接配网、扫码连接配网和星闪连接配网等。本申请不限定终端设备120与网络设备110初次建立网络连接时的配网方式。当终端设备120与网络设备110的网络连接断开时,终端设备断网重连的具体实现方式可以参考下述步骤210至步骤2130中所阐述的内容。
本申请中所描述的系统架构和示例的应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
接下来,结合附图对本申请提供的网络重连方法进行详细说明。图2为本申请提供的一种网络重连方法的流程示意图。在这里,主要以图1中网络设备110与终端设备120之间交互以实现终端设备的自动重连为例进行说明。如图2所示,网络重连方法可以包括以下内容。
在一些实施例中,终端设备与网络设备初次建立网络连接,即终端设备与网络设备进行配网协商时,终端设备与网络设备之间可以进行信息协商,包括但不限于:第一用户账号,第一标识,第一加密信息等。第一用户账号用于登录终端设备。第一标识用于指示终端设备。第一加密信息是对第一用户账号加密得到的。
如图2所示,在终端设备初次建立网络连接的情况下,步骤210、第一网络设备可以生成第一标识和第一加密信息,步骤220、第一网络设备向终端设备发送第一标识和第一加密信息。相应地,步骤230、第一网络设备接收第一标识和第一加密信息。
在终端设备的网络连接断开后,终端设备与网络设备可以根据终端设备与网络设备之间协商的验证信息再次建立网络连接。例如,基于第一标识验证终端设备是否具有星闪通信权限。在终端设备与网络设备再次建立网络连接时基于第一加密信息验证终端设备的身份,以提高网络连接安全性,保证网络安全,防止网络攻击。
示例性的,在终端设备(如手机、平板和笔记本电脑等)中可以安装用于管理网络设备的客户端,网络设备的客户端可以提供生成第一标识和第一加密信息的功能,并将第一标识和第一加密信息上传至云端服务器中,实现同步云存储。
网络设备生成第一标识和第一加密信息之后,需要向终端设备发送第一标识和第一加密信息,终端设备接收并存储第一标识和第一加密信息。如此,网络设备和终端设备都可以获取在初次配网成功时所协商的验证信息,给再次配网时进行验证提供了方便。
在一种可能的示例中,网络设备可以基于互联网协议(internet protocol,IP)向终端设备传输第一标识和第一加密信息。
在另一种可能的示例中,由于云端服务器中存储了第一标识和第一加密信息,网络设备可以指示云端服务器将第一标识和第一加密信息同步至终端设备。
下面对在终端设备的网络连接断开的情况下,终端设备如何与网络设备建立网络连接的过程进行阐述。如下步骤240至步骤270。
步骤240、在终端设备的网络连接断开的情况下,终端设备发送第一连接请求。相应地,步骤250,第一网络设备接收终端设备发送的第一连接请求。
终端设备的网络连接断开包括网络密码变更、第一网络设备掉电或终端设备掉电、第一网络设备与终端设备的网络断开中至少一种情况。
例如,变更了网络密码,终端设备需要使用更新后的密码重新连接网络,终端设备没有及时获取更新后的密码,将无法通过身份验证,从而导致网络连接断开。
又如,第一网络设备或终端设备断电,断电无法维持当前的网络连接导致网络连接断开。终端设备上配备的联网指示灯熄灭,可以表示网络连接断开,终端设备离线。网络连接断开导致终端设备接入网络失败,出现联网故障。
又如,在终端设备与第一网络设备的网络出现故障,终端设备与第一网络设备的网络断开,导致终端设备的网络连接断开。
在一些实施例中,终端设备和网络设备支持星闪通信协议,终端设备检测到网络连接断开后,终端设备可以基于星闪通信协议与网络设备进行通信,发送广播消息,以便终端设备与网络设备传输建立网络连接所需的信息。
例如,终端设备基于星闪通信协议发送第一连接请求,第一网络设备接收终端设备发送的第一连接请求。第一连接请求用于建立第一连接。第一连接可以为星闪连接。第一连接请求包括第一标识,第一标识可以用于指示终端设备,第一标识包括但不限于通用唯一标识码(universally unique identifier,UUID)。
终端设备和网络设备可以预先配置与星闪通信相关的网络参数,以支持星闪通信协议。网络参数可以包括但不限于星闪通信的频段、信道带宽和调制编码方式等。此外,还可以在终端设备的固件中配置星闪传输速率、调整星闪发射功率等。
示例性的,终端设备的网络连接断开的情况下,可以基于星闪通信协议按照预设的时间间隔周期性地发送星闪广播报文,星闪广播报文可以用于指示终端设备等待与第一网络设备建立星闪连接,星闪广播报文中携带了第一标识字段。
星闪广播报文可以包括报头(header)、载荷数据(payload)、校验和(checksum)以及尾部(tail)等部分,第一标识字段通常封装在报头中,以便于第一网络设备接收终端设备发送的星闪广播报文后可以优先处理第一标识字段。
上述星闪通信协议可以包括星闪基础(spark-link basic,SLB)通信接口协议和星闪低功耗(spark-link low energy,SLE)通信接口协议等中至少一种。其中,SLB通信接口协议侧重于应用在对速率和稳定性需求较高的网络连接场景,如智能汽车、智能家居和智能终端等终端设备。SLE通信接口协议则侧重于应用在低功耗的网络连接场景,如耳机、眼镜、手表和手环等智能可穿戴式设备。SLB通信接口协议和SLE通信接口协议可以结合使用,以满足多样化需求的网络连接场景。
在终端设备的网络连接断开的情况下,第一网络设备与终端设备建立第一连接,具体的实现方法可以参考下述步骤260。
步骤260、在第一标识通过验证的情况下,第一网络设备与终端设备建立第一连接。第一连接用于所述第一网络设备与所述终端设备建立网络连接。
终端设备的网络连接断开后,首先第一网络设备与终端设备可以建立第一连接,第一连接用于第一网络设备与终端设备建立网络连接。建立第一连接是第一网络设备与终端设备重新建立网络连接的基础,以便于终端设备实现自动重连。
第一网络设备可以存储有与第一用户账号相关联的一个或多个标识,例如以列表的形式存储多个标识。终端设备与第一网络设备在建立网络连接时已经协商了使用第一标识作为断网重连的验证信息,如第一标识可以是终端设备与第一网络设备在初次建立网络连接时所协商的UUID。第一网络设备可以根据一个或多个标识对第一连接请求中的第一标识进行验证。
第一网络设备可以以其存储的与第一用户账号相关联的一个或多个标识作为基准,对终端设备发送的第一连接请求中的第一标识进行验证,在一个或多个标识中包括第一标识的情况下,则确定第一标识通过验证。
示例性的,第一网络设备可以分别对一个或多个标识中的每个标识与第一标识进行比对,若一个或多个标识中的任一标识与第一标识相同,则第一标识通过了网络设备的验证,表明终端设备发送的第一标识验证成功。
在一种可能的实现方式中,第一网络设备可以将一个或多个标识中的每个标识与终端设备发送的第一标识直接进行字符串比对,如果这两个标识的字符串长度相等,且字符串中每一个对应位置上的字符都相等,则一个或多个标识中包括了第一标识,第一标识通过验证。
在另一种可能的实现方式中,终端设备发送的第一标识可以是经过哈希加密算法加密后的第一哈希值,第一网络设备所存储的一个或多个标识中的每个标识可以是经过哈希加密算法加密后的第二哈希值。将第一哈希值与第二哈希值进行比对,若第一哈希值与第二哈希值相同,则一个或多个标识中包括了第一标识,从而确定第一标识通过验证。不比对第一标识本身,而是比对哈希值,可以降低用户账号被非法篡改的风险,防止用户信息泄露。此外,第一标识通过验证还可以保证网络安全,防止网络攻击。
可选地,如图3所示,第一连接请求中包括的第一标识通过第一网络设备的验证之后,第一网络设备可以向终端设备发送第一连接响应(步骤270)。第一连接响应用于指示第一连接请求中的第一标识通过了验证。
示例性的,第一连接为星闪连接时,第一连接响应中可以包括星闪通信服务开启标识。第一网络设备开启了星闪通信服务,授予终端设备与第一网络设备进行星闪通信的权限,终端设备可以接入星闪通信,基于星闪通信第一网络设备和终端设备建立星闪连接。
如此,当第一连接请求中包括的第一标识通过第一网络设备的验证,则第一网络设备可以开启星闪通信服务,终端设备与第一网络设备之间能够建立星闪连接。以便于后续终端设备通过星闪连接可以自动连接第一网络设备,实现终端设备的自动重连,提升终端设备的重连效率。
在同一应用场景(如智能家居场景)下的各个终端设备可能产自不同的厂商,但使用各个终端设备的用户是唯一的。第一标识可以用于指示终端设备与用户账号相关联,第一网络设备对各个终端设备可以使用统一的用户账号进行鉴权管理,无需依赖于各个终端设备的设备信息。此外,第一网络设备使用统一的用户账号鉴权管理终端设备,即使更换终端设备的安装地点,也不会影响终端设备所具备的自动重连能力,给终端设备的重连提供了方便,也有利于提升终端设备的重连效率。
第一网络设备与终端设备之间第一连接建立成功后,第一网络设备与终端设备之间可以通过第一连接重新建立网络连接,实现终端设备的断网重连。图3为本申请提供的一种网络设备与终端设备重新建立网络连接的流程示意图,具体的交互流程由以下步骤280至步骤2130进行阐述。
步骤280、终端设备向第一网络设备发送网络配置请求。相应地,步骤290、第一网络设备通过第一连接接收终端设备发送的网络配置请求。
网络配置请求可以包括第一加密信息,第一加密信息是对第一用户账号加密得到的,如使用密钥算法加密第一用户账号。第一加密信息可以用于保证第一用户账号的安全,防止攻击者非法获取用户信息。
密钥算法可以包括但不限于信息摘要算法(message-digest algorithm 5,MD5)、安全散列算法(security hash algorithm 1,SHA1)和哈希运算消息认证码(hash-based message authentication code,HMAC)等。例如,使用SHA1加密第一用户账号,得到的第一用户账号HASH值可以作为第一加密信息。
可选地,网络配置请求还可以包括时间戳掩码。时间戳掩码可以用于指示终端设备向第一网络设备发送网络配置请求的时间。时间戳掩码作为一种安全机制,能够确保终端设备与第一网络设备每次通信的唯一性,第一网络设备能够识别无效或者过期的网络配置请求,以防止重放攻击导致的安全风险。
步骤2100、在第一用户账号通过验证的情况下,向终端设备发送第一配置信息。相应地,步骤2110、终端设备接收第一网络设备发送的第一配置信息。
为了保证第一网络设备与终端设备建立安全的网络连接,第一网络设备可以在开启星闪通信服务之前验证第一标识,进一步地,还可以在接收网络配置请求之后对第一用户账号进行验证。
在一些实施例中,第一网络设备可以根据相同的密钥算法,即终端设备加密第一用户账号时所使用的密钥算法,对终端设备发送的网络配置请求中的第一加密信息进行解密,得到第一用户账号。在第一用户账号与第一网络设备在配网协商时存储的用户账号相同的情况下,确定第一用户账号通过验证。
示例性的,将第一用户账号与第一网络设备存储的用户账号进行字符串比对,如果这两个用户账号的字符串长度相等,且字符串中每一个对应位置上的字符都相等,则第一用户账号与第一网络设备存储的用户账号相同,从而第一用户账号通过验证。
在第一用户账号通过验证的情况下,则终端设备的身份通过了网络设备的验证,表明终端设备发送的第一加密信息验证成功。第一用户账号通过验证之后,第一网络设备可以向终端设备发送第一配置信息。第一配置信息可以包括终端设备建立网络连接所使用的网络名称和网络密码。可选地,第一配置信息是使用密钥算法对网络名称和网络密码加密得到的,例如加密的WIFI名称和WIFI密码。
步骤2120、第一网络设备与终端设备建立网络连接。
终端设备接收第一配置信息后,为了与第一网络设备建立网络连接,可以向第一网络设备发送网络连接请求。相应地,第一网络设备接收终端设备发送的网络连接请求。第一网络设备响应于终端设备发送的网络连接请求,可以向终端设备发送网络连接指示,指示终端设备可以根据第一配置信息与第一网络设备建立网络连接。如此,第一网络设备与终端设备重新建立网络连接。
由于终端设备接收的第一配置信息经过了第一网络设备加密,终端设备需要使用与加密第一配置信息时相同的密钥算法对第一配置信息进行解密,从而获取网络名称和网络密码。终端设备根据网络名称和网络密码,重新与第一网络设备建立网络连接。
在一些实施例中,第一网络设备与终端设备重新建立网络连接之后,第一网络设备可以关闭星闪通信服务,及时释放网络资源。
可选地,第一网络设备还可以更新第一标识,将第一标识更新为第二标识,并将更新后的第二标识上传至云端服务器中。
可选地,第一网络设备还可以向终端设备发送指示信息(步骤2130),相应地,终端设备接收第一网络设备发送的网络连接请求,指示第一标识更新为第二标识,终端设备将第一标识更新为第二标识。从而在云端服务器和终端设备中存储更新后的第二标识。终端设备若后续再次与第一网络设备的网络连接断开,以便于终端设备的断网重连。
在终端设备的网络连接断开的情况下,终端设备发送的第一连接请求中包括的第一标识通过第一网络设备的验证,则表明使用第一用户账号的终端设备具有第一连接权限,终端设备与第一网络设备之间能够建立第一连接,则终端设备基于第一连接自动连接网络设备,实现终端设备的自动重连。如此,提升了终端设备的重连效率。
在另一些可能的实现情况中,终端设备与第二网络设备初次建立网络连接后,终端设备的网络连接断开,终端设备无法与第二网络设备再次建立网络连接,则更换网络设备,即将第二网络设备更换为第一网络设备,这种情况下,则由更换后的第一网络设备与终端设备建立第一连接,具体的实现方法也可以参考下述阐述。在一种应用场景下,第一网络设备和第二网络设备位于不同位置,第一网络设备的覆盖范围和第二网络设备的覆盖范围不同。终端设备处于第二网络设备的覆盖范围内,终端设备与第二网络设备进行配网协商并建立了网络连接。终端设备移动可能使终端设备的位置发生变化,终端设备移动出了第二网络设备的覆盖范围,则终端设备与第二网络设备的网络连接断开。在终端设备移动到第一网络设备的覆盖范围内,终端设备可以根据本申请提供的网络重连方法,向第一网络设备发起网络重连,与第一网络设备建立网络连接。其中,第一网络设备和第二网络设备保存和/或登录同一用户账号,终端设备根据用户账号分别与第一网络设备和第二网络设备建立网络连接。
示例地,家里的路由器和办公室的路由器保存或/和登录同一用户账号。用户的手机与家里的路由器初次进行配网协商并建立网络连接,当用户的手机移动出家里的路由器的覆盖范围,用户的手机与家里的路由器之间的网络连接断开。如果用户的手机移动入办公室的路由器的覆盖范围,在办公室的路由器、用户的手机登录了与家里的路由器相同的用户账号的情况下,用户的手机无需与办公室的路由器再进行配网协商,用户的手机可以根据本申请提供的网络重连方法,向办公室的路由器发起网络重连,通过验证用户账号对应保存的手机的标识(如UUID)和用户账号加密信息,与办公室的路由器建立网络连接。如下图4所示的步骤410和步骤420以及步骤240至步骤2130的阐述。
图4为本申请实施例提供的另一种网络重连方法的流程示意图。与图2和图3所示的网络重连方法的区别在于,终端设备建立初次网络连接,终端设备与第二网络设备建立了初次网络连接,在更换网络设备的情况下,第二网络设备向第一网络设备发送第一标识和第二加密信息(步骤410)。相应地,第一网络设备接收第二网络设备发送的第一标识和第二加密信息,并存储第一标识和第二加密信息(步骤420)。第二加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备,第一标识和第二加密信息为第二网络设备与终端设备建立初次网络连接时协商得到的。具体的协商过程可以参考上述第一网络设备向第一网络设备的协商过程,不予赘述。
可选地,第一网络设备也可以对第二加密信息进行解密,得到第一用户账号,存储第一标识和第一用户账号。
可选地,第二网络设备可以将第一标识和第二加密信息上传至云端服务器中,实现同步云存储。
可选地,第二网络设备也可以指示第一网络设备从云端服务器获取第一标识和第二加密信息。则第一网络设备可以从云端服务器中获取第一标识和第二加密信息。
在第一网络设备获取并存储了第一标识和第一用户账号,第一网络设备可以与终端设备建立网络连接。例如,第一网络设备接收终端设备发送的第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备;在第一标识通过验证的情况下,第一网络设备与终端设备建立第一连接,第一连接用于第一网络设备与终端设备建立网络连接。关于在终端设备的网络连接断开的情况下,第一网络设备与终端设备建立网络连接的过程,可以参考上述第一网络设备与终端设备建立网络连接的过程(步骤240至步骤2130)的阐述,不予赘述。
在发生更换网络设备,在终端设备的网络连接断开的情况下,终端设备发送的第一连接请求中包括的第一标识通过第一网络设备的验证,则表明使用第一用户账号的终端设备具有第一连接权限,终端设备与第一网络设备之间能够建立第一连接,则终端设备基于第一连接自动连接网络设备,实现终端设备的自动重连。如此,提升了终端设备的重连效率。
上述主要从方法的角度对本申请实施例提供的方案进行了介绍。可以理解的是,为了实现上述功能,计算机设备包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
上文中结合图2至图4,详细描述了根据本申请实施例所提供的网络重连方法,下面将结合图5和图6,描述根据本申请实施例所提供的终端设备的重连装置。
图5为本申请提供的一种终端设备的重连装置的结构示意图。这些终端设备的重连装置可以用于实现上述方法实施例中第一网络设备的功能,因此也能实现上述方法实施例所具备的有益效果。
如图5所示,终端设备的重连装置500包括通信模块510和连接模块520。
其中,通信模块510,用于在终端设备的网络连接断开的情况下,接收终端设备发送的第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备。连接模块520,用于在第一标识通过验证的情况下,第一网络设备与终端设备建立第一连接,第一连接用于第一网络设备与终端设备建立网络连接。
可选的,第一连接为星闪连接,第一网络设备和终端设备支持星闪通信协议。
可选的,上述通信模块510还用于:通过第一连接接收终端设备发送的网络配置请求,网络配置请求包括第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;在第一用户账号通过验证的情况下,向终端设备发送第一配置信息,第一配置信息是对终端设备的网络连接的网络名称和网络密码加密得到的;接收终端设备发送的网络连接请求,与终端设备建立网络连接。
可选地,上述装置还包括验证模块530,用于在第一用户账号与第一网络设备存储的用户账号相同的情况下,确定第一用户账号通过验证。
可选的,终端设备的网络连接为第二网络设备与终端设备的网络连接,上述通信模块510还用于:接收并存储第一标识和第二加密信息,第二加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备,第一标识和第二加密信息为第二网络设备与终端设备协商得到的。
在另一种可能的实现方式中,上述装置还包括协商模块,用于在终端设备初次建立网络连接的情况下,生成第一标识和第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;向终端设备发送第一标识和第一加密信息。
在另一种可能的实现方式中,第一网络设备存储有与第一用户账号相关联的一个或多个标识;第一用户账号用于登录终端设备,上述验证模块530还用于在一个或多个标识中包括第一标识的情况下,确定第一标识通过验证。
在另一种可能的实现方式中,上述通信模块510还用于:在第一标识通过验证的情况下,向终端设备发送第一连接响应,第一连接响应用于指示第一连接请求中的第一标识通过了验证。
在另一种可能的实现方式中,第一网络设备和终端设备建立网络连接之后,上述通信模块510还用于:向终端设备指示信息,指示信息用于指示将第一标识更新为第二标识。
在另一种可能的实现方式中,上述终端设备的网络连接断开,包括:网络密码变更、第一网络设备掉电或终端设备掉电、第一网络设备与终端设备的网络断开中至少一种情况。
可选的,上述终端设备的重连装置500还可以包括存储模块540。存储模块540可以对应上述方法实施例中用于存储与第一用户账号相关联的一个或多个标识等。
图6为本申请提供的另一种终端设备的重连装置的结构示意图。这些终端设备的重连装置可以用于实现上述方法实施例中终端设备的功能,因此也能实现上述方法实施例所具备的有益效果。
如图6所示,终端设备的重连装置600包括通信模块610和连接模块620。
其中,通信模块610用于在终端设备的网络连接断开的情况下,发送第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备。连接模块620用于终端设备和第一网络设备建立第一连接,第一连接用于指示终端设备与第一网络设备建立网络连接。
可选的,上述第一连接为星闪连接,第一网络设备和终端设备支持星闪通信协议。
可选的,上述通信模块610还用于:通过第一连接向第一网络设备发送网络配置请求,网络配置请求包括第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备;接收第一网络设备发送的第一配置信息,第一配置信息是第一网络设备对终端设备的网络连接的网络名称和网络密码加密得到的;向第一网络设备发送网络连接请求,连接模块用于根据第一配置信息与第一网络设备建立网络连接。
可选的,连接模块620根据第一配置信息与第一网络设备建立网络连接时,具体用于:对第一配置信息进行解密,得到网络名称和网络密码;根据网络名称和网络密码与第一网络设备建立网络连接。
可选的,上述通信模块610还用于:在终端设备初次建立网络连接的情况下,接收第一标识和第一加密信息,第一加密信息是对第一用户账号加密得到的,第一用户账号用于登录终端设备。
可选的,上述通信模块610还用于:接收第一网络设备发送的第一连接响应,第一连接响应用于指示第一连接请求中的第一标识通过了验证。
可选的,上述通信模块610还用于:接收第一网络设备发送的指示信息,指示信息用于指示将第一标识更新为第二标识;将第一标识更新为第二标识。
可选的,上述终端设备的网络连接断开,包括:网络密码变更、第一网络设备掉电或终端设备掉电、第一网络设备与终端设备的网络断开中至少一种情况。
可选的,上述终端设备的重连装置600还可以包括存储模块630。存储模块630可以对应上述方法实施例中用于存储第一标识等。
应理解的是,根据本申请实施例的终端设备的重连装置500和终端设备的重连装置600可对应于执行本申请实施例中描述的方法,并且终端设备的重连装置500和终端设备的重连装置600中的各个单元的上述和其它操作和/或功能分别为了实现图2中的各个方法的相应流程,为了简洁,在此不再赘述。
本申请实施例还提供一种网络设备,图7为本申请提供的一种网络设备的结构示意图。如图7所示,网络设备700包括处理器710、总线720、存储器730、内存单元750(也可以称为主存(main memory))和通信接口740。处理器710、存储器730、内存单元750和通信接口740通过总线720相连。
应理解,在本实施例中,处理器710可以是CPU,该处理器710还可以是其他通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者是任何常规的处理器等。
通信接口740用于实现网络设备700与外部设备或器件的通信。在本实施例中,通信接口740用于与其他网络设备或者控制器进行数据交互。
总线720可以包括一通路,用于在上述组件(如处理器710、内存单元750和存储器730)之间传送信息。总线720除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线720。总线720可以是快捷外围部件互连标准(Peripheral Component Interconnect Express,PCIe)总线,或扩展工业标准结构(extended industry standard architecture,EISA)总线、统一总线(unified bus,Ubus或UB)、计算机快速链接(compute express link,CXL)、缓存一致互联协议(cache coherent interconnect for accelerators,CCIX)等。
作为一个示例,网络设备700可以包括多个处理器。处理器可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的计算单元。处理器710可以实现在终端设备的网络连接断开的情况下,接收终端设备发送的第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备。在第一标识通过验证的情况下,第一网络设备与终端设备建立第一连接,第一连接用于第一网络设备与终端设备建立网络连接。
值得说明的是,图7中仅以网络设备700包括1个处理器710和1个存储器730为例,此处,处理器710和存储器730分别用于指示一类器件或设备,具体实施例中,可以根据业务需求确定每种类型的器件或设备的数量。
内存单元750可以对应上述方法实施例中用于存储与第一用户账号相关联的一个或多个标识等。内存单元750可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(doubledata date SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存单元总线随机存取存储器(direct rambus RAM,DR RAM)。
存储器730用于存储与第一用户账号相关联的一个或多个标识等,可以是固态硬盘或机械硬盘。
应理解,根据本实施例的网络设备700可对应于本实施例中的终端设备的重连装置500,并且终端设备的重连装置500的各个模块的上述和其它操作和/或功能分别为了实现图2中的相应流程,为了简洁,在此不再过多赘述。
本实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于网络设备中。当然,处理器和存储介质也可以作为分立组件存在于网络设备或终端设备中。
本申请实施例还提供了一种终端设备,终端设备可以包括但不限于如图1所示的摄像头、微波炉、空调、电冰箱以及电热水器等智能家居产品。图8为本申请提供的一种终端设备的结构示意图,如图8所示,终端设备800包括处理器810、总线820、存储器830、内存单元850(也可以称为主存(main memory))和通信接口840。处理器810、存储器830、内存单元850和通信接口840通过总线820相连。各个部件的功能描述可以参考上述图7中所阐述的内容,此处不再赘述。
其中,处理器810可以实现在终端设备的网络连接断开的情况下,发送第一连接请求,第一连接请求用于建立第一连接,第一连接请求包括第一标识,第一标识用于指示终端设备;终端设备和第一网络设备建立第一连接,第一连接用于指示终端设备与第一网络设备建立网络连接。
存储器830用于存储第一标识等,可以是固态硬盘或机械硬盘。
应理解,根据本实施例的控制器800可对应于本实施例中的终端设备的重连装置600,并且终端设备的重连装置600的各个模块的上述和其它操作和/或功能分别为了实现图2中的相应流程,为了简洁,在此不再赘述。
本申请还提供一种芯片系统,该芯片系统包括处理器,用于实现上述方法中数据处理单元的功能。在一种可能的设计中,所述芯片系统还包括存储器,用于保存程序指令和/或数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘(digital video disc,DVD);还可以是半导体介质,例如,固态硬盘(solid state drive,SSD)。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (25)

  1. 一种网络重连方法,其特征在于,所述方法由第一网络设备执行,所述方法包括:
    在终端设备的网络连接断开的情况下,接收所述终端设备发送的第一连接请求,所述第一连接请求用于建立第一连接,所述第一连接请求包括第一标识,所述第一标识用于指示所述终端设备;
    在所述第一标识通过验证的情况下,所述第一网络设备与所述终端设备建立第一连接,所述第一连接用于所述第一网络设备与所述终端设备建立网络连接。
  2. 根据权利要求1所述的方法,其特征在于,所述第一连接为星闪连接,所述第一网络设备和所述终端设备支持星闪通信协议。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    通过所述第一连接接收所述终端设备发送的网络配置请求,所述网络配置请求包括第一加密信息,所述第一加密信息是对第一用户账号加密得到的,所述第一用户账号用于登录所述终端设备;
    在所述第一用户账号通过验证的情况下,向所述终端设备发送第一配置信息,所述第一配置信息是对所述终端设备的网络连接的网络名称和网络密码加密得到的;
    接收所述终端设备发送的网络连接请求,与所述终端设备建立网络连接。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    解密所述第一加密信息,得到所述第一用户账号;
    在所述第一用户账号与所述第一网络设备存储的用户账号相同的情况下,确定所述第一用户账号通过验证。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述终端设备的网络连接为第二网络设备与所述终端设备的网络连接,所述方法还包括:
    接收并存储所述第一标识和第二加密信息,所述第二加密信息是对第一用户账号加密得到的,所述第一用户账号用于登录所述终端设备,所述第一标识和所述第二加密信息为所述第二网络设备与所述终端设备协商得到的。
  6. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:
    在所述终端设备初次建立网络连接的情况下,生成所述第一标识和第一加密信息,所述第一加密信息是对第一用户账号加密得到的,所述第一用户账号用于登录所述终端设备;
    向所述终端设备发送所述第一标识和所述第一加密信息。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述第一网络设备存储有与第一用户账号相关联的一个或多个标识,所述第一用户账号用于登录所述终端设备,所述方法还包括:
    在所述一个或多个标识中包括所述第一标识的情况下,确定所述第一标识通过验证。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述方法还包括:
    在所述第一标识通过验证的情况下,向所述终端设备发送第一连接响应,所述第一连接响应用于指示所述第一连接请求中的所述第一标识通过了验证。
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述第一网络设备和所述终端设备建立网络连接之后,所述方法还包括:
    向所述终端设备指示信息,所述指示信息用于指示将所述第一标识更新为第二标识。
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述终端设备的网络连接断开,包括:
    网络密码变更、所述第一网络设备掉电或所述终端设备掉电、所述第一网络设备与所述终端设备的网络断开中至少一种情况。
  11. 一种网络重连方法,其特征在于,所述方法由终端设备执行,所述方法包括:
    在所述终端设备的网络连接断开的情况下,发送第一连接请求,所述第一连接请求用于建立第一连接,所述第一连接请求包括第一标识,所述第一标识用于指示所述终端设备;
    所述终端设备和第一网络设备建立所述第一连接,所述第一连接用于所述终端设备与所述第一网络设备建立网络连接。
  12. 根据权利要求11所述的方法,其特征在于,所述第一连接为星闪连接,所述第一网络设备和所述终端设备支持星闪通信协议。
  13. 根据权利要求11或12所述的方法,其特征在于,所述方法还包括:
    通过所述第一连接向所述第一网络设备发送网络配置请求,所述网络配置请求包括第一加密信息,所述第一加密信息是对第一用户账号加密得到的,所述第一用户账号用于登录所述终端设备;
    接收所述第一网络设备发送的第一配置信息,所述第一配置信息是所述第一网络设备对所述终端设备的网络连接的网络名称和网络密码加密得到的;
    向所述第一网络设备发送网络连接请求,根据所述第一配置信息与所述第一网络设备建立网络连接。
  14. 根据权利要求13所述的方法,其特征在于,根据所述第一配置信息与所述第一网络设备建立网络连接,包括:
    对所述第一配置信息进行解密,得到所述网络名称和所述网络密码;
    根据所述网络名称和所述网络密码与所述第一网络设备建立网络连接。
  15. 根据权利要求11-14中任一项所述的方法,其特征在于,所述方法还包括:
    在所述终端设备初次建立网络连接的情况下,接收所述第一标识和第一加密信息,所述第一加密信息是对第一用户账号加密得到的,所述第一用户账号用于登录所述终端设备。
  16. 根据权利要求11-15中任一项所述的方法,其特征在于,所述方法还包括:
    接收所述第一网络设备发送的第一连接响应,所述第一连接响应用于指示所述第一连接请求中的所述第一标识通过了验证。
  17. 根据权利要求11-16中任一项所述的方法,其特征在于,所述方法还包括:
    接收所述第一网络设备发送的指示信息,所述指示信息用于指示将所述第一标识更新为第二标识;
    将所述第一标识更新为所述第二标识。
  18. 根据权利要求11-17中任一项所述的方法,其特征在于,所述终端设备的网络连接断开,包括:
    网络密码变更、所述第一网络设备掉电或所述终端设备掉电、所述第一网络设备与所述终端设备的网络断开中至少一种情况。
  19. 一种网络设备,其特征在于,所述网络设备包括执行上述权利要求1-10中任一项所述的方法的操作步骤的模块。
  20. 一种终端设备,其特征在于,所述终端设备包括执行上述权利要求11-18中任一项所述的方法的操作步骤的模块。
  21. 一种网络设备,其特征在于,包括存储器和处理器,所述存储器用于存储一组计算机指令;当所述处理器执行所述一组计算机指令时,执行上述权利要求1-10中任一项所述的方法的操作步骤。
  22. 一种终端设备,其特征在于,包括存储器和处理器,所述存储器用于存储一组计算机指令;当所述处理器执行所述一组计算机指令时,执行上述权利要求11-18中任一项所述的方法的操作步骤。
  23. 一种通信系统,其特征在于,所述通信系统包括网络设备和终端设备,所述网络设备用于执行上述权利要求1-10中任一项所述的方法的操作步骤,所述终端设备用于执行上述权利要求11-18中任一项所述的方法的操作步骤。
  24. 一种可读存储介质,其特征在于,所述可读存储介质中存储有指令,当所述指令在设备上被运行时,使得所述设备执行如权利要求1-18中任一项所述的方法。
  25. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当所述计算机程序在设备上被运行时,使得所述设备执行如权利要求1-18中任一项所述的方法。
PCT/CN2025/080577 2024-06-29 2025-03-04 网络重连方法、装置、设备及通信系统 Pending WO2026001066A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410868900.1A CN121240260A (zh) 2024-06-29 2024-06-29 网络重连方法、装置、设备及通信系统
CN202410868900.1 2024-06-29

Publications (1)

Publication Number Publication Date
WO2026001066A1 true WO2026001066A1 (zh) 2026-01-02

Family

ID=98151836

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/080577 Pending WO2026001066A1 (zh) 2024-06-29 2025-03-04 网络重连方法、装置、设备及通信系统

Country Status (2)

Country Link
CN (1) CN121240260A (zh)
WO (1) WO2026001066A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151010A (zh) * 2018-08-09 2019-01-04 北京小米移动软件有限公司 网络连接方法、装置和存储介质
CN111247836A (zh) * 2018-07-20 2020-06-05 Oppo广东移动通信有限公司 会话管理方法、终端设备和网络设备
WO2023284835A1 (zh) * 2021-07-11 2023-01-19 惠州Tcl云创科技有限公司 入网方法、电子设备及计算机可读存储介质
CN116132983A (zh) * 2021-11-15 2023-05-16 中国移动通信有限公司研究院 接入认证方法、装置、终端及核心网

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111247836A (zh) * 2018-07-20 2020-06-05 Oppo广东移动通信有限公司 会话管理方法、终端设备和网络设备
CN109151010A (zh) * 2018-08-09 2019-01-04 北京小米移动软件有限公司 网络连接方法、装置和存储介质
WO2023284835A1 (zh) * 2021-07-11 2023-01-19 惠州Tcl云创科技有限公司 入网方法、电子设备及计算机可读存储介质
CN116132983A (zh) * 2021-11-15 2023-05-16 中国移动通信有限公司研究院 接入认证方法、装置、终端及核心网

Also Published As

Publication number Publication date
CN121240260A (zh) 2025-12-30

Similar Documents

Publication Publication Date Title
US11665536B2 (en) System and method for providing a seamless and secure access to management and monitoring systems
US9438566B2 (en) Method and system for negotiation based on IKE messages
JP6491745B2 (ja) 仮想ネットワーク機能プールと制御エンティティとの間におけるインターフェース・エレメントのための方法、およびシステム
US7809354B2 (en) Detecting address spoofing in wireless network environments
US9774580B2 (en) Mesh network with personal pre-shared keys
EP3535926B1 (en) System, method and devices for mka negotiation between the devices
US10187478B2 (en) Dynamic detection of inactive virtual private network clients
CN106961334A (zh) 控制器和附件之间的安全无线通信
US9049012B2 (en) Secured cryptographic communication system
CN108781110B (zh) 用于通过通信网络中继数据的系统和方法
CN101729543A (zh) 利用异地Socks5技术改善移动SSL VPN性能的方法
US11108824B2 (en) Wireless communication method, device and system, wireless communication equipment and recording medium
CN115460562A (zh) 安全可信的点对点离线通信系统和方法
WO2026001066A1 (zh) 网络重连方法、装置、设备及通信系统
WO2018010561A1 (zh) 一种接入核心网的控制方法及装置
KR101340913B1 (ko) 데이터 전송의 연결성을 갖기 위한 패킷 전송방법 및 이를 구현하기 위한 장치 및 시스템
CN112804268A (zh) 一种同步方法、第一设备、第二设备和同步系统
KR20170007215A (ko) 네트워크 경로를 관리하는 방법 및 이를 수행하는 네트워크 엔티티
CN112511265B (zh) 一种bfd报文长度切换的方法、装置及储存介质
WO2011035514A1 (zh) 一种基于隧道技术的三元鉴别可扩展方法及其系统
WO2019141135A1 (zh) 支持无线网络切换的可信服务管理方法以及装置
CN121585715A (zh) 物联网设备连接方法和物联网设备
CN119316921A (zh) 一种通信方法、电子设备和可读存储介质
KR20240114494A (ko) 사물인터넷 환경에서의 보안 통신 장치
CN120224339A (zh) 逆变器的通信方法、光伏发电系统的通信方法及系统

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: 25824461

Country of ref document: EP

Kind code of ref document: A1