Network reconnection method and apparatus, device, and communication system
By automatically establishing a StarFlash connection when the network connection of a terminal device is lost, the problem of low reconnection efficiency of terminal devices is solved, and automated and efficient network reconnection is achieved.
Patent Information
- Application Number
- PCT/CN2025/080577
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-29
- Filing Date
- 2025-03-04
- Publication Date
- 2026-01-02
AI Technical Summary
When a terminal device experiences a network connection failure, it requires manual intervention to re-establish the network connection, resulting in low reconnection efficiency.
When the network connection of the terminal device is disconnected, the first network device receives and verifies the first identifier in the first connection request sent by the terminal device. If the verification is successful, a Star Flash connection is automatically established, thereby enabling the terminal device to automatically reconnect.
It improves the reconnection efficiency of terminal devices, simplifies the operation process, reduces manual intervention, and enhances the automation and security of network connections.
Smart Images

Figure CN2025080577_02012026_PF_FP_ABST
Abstract
Description
Network reconnection method, apparatus, device and communication system
[0001] The present application claims priority to the Chinese patent application No. 202410868900.1, filed on June 29, 2024, and entitled "Network reconnection method, apparatus, device and communication system", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the technical field of Internet of Things, and in particular to a network reconnection method, apparatus, device and communication system. BACKGROUND
[0003] Currently, a terminal device (such as an Internet of Things device: smart door lock, refrigerator, air conditioner and other smart home products) can establish a network connection with a network device (such as a router), and a user can use the terminal device to operate and manage the terminal device. When the network connection of the terminal device is abnormal, the terminal device cannot reconnect to the network. Usually, the terminal device is manually controlled to turn on Bluetooth or a hotspot, and after searching for the terminal device, the terminal device is controlled to reestablish a network connection with the router. However, this reconnection method of the terminal device relies on manual operation and is relatively cumbersome, resulting in low reconnection efficiency of the terminal device. SUMMARY
[0004] The present application provides a network reconnection method, apparatus, device and communication system, which solves the problem of low reconnection efficiency of the terminal device.
[0005] In a first aspect, the present application provides a network reconnection method, which is performed by a first network device, and the method comprises: receiving a first connection request sent by a terminal device in a case where a network connection of the terminal device is disconnected, the first connection request being used to establish a first connection, and the first connection request comprising a first identifier, the first identifier being used to indicate the terminal device. In a case where the first identifier is verified, the first network device establishes the first connection with the terminal device, and the first connection is used to establish a network connection between the first network device and the terminal device.
[0006] Compared with the client controlling the terminal device to reestablish a network connection based on manual operation of the terminal device, in the method provided in the present application, in a case where the network connection of the terminal device is disconnected, the first identifier included in the first connection request sent by the terminal device is verified by the first network device, which indicates that the terminal device using the first user account has the first connection permission, and the first connection can be established between the terminal device and the first network device. Therefore, the terminal device automatically connects to the network device based on the first connection, thereby realizing automatic reconnection of the terminal device. In this way, the reconnection efficiency of the terminal device is improved.
[0007] In a possible implementation, the first connection is a StarFlash connection, and the first network device and the terminal device support a StarFlash communication protocol.
[0008] In this way, the first identity in the first connection request is verified by the first network device, and the first network device can start a StarFlash communication service, and a StarFlash connection can be established between the terminal device and the first network device. Subsequently, the terminal device can automatically connect to the first network device through the StarFlash connection, the automatic reconnection of the terminal device is realized, and the reconnection efficiency of the terminal device is improved.
[0009] In another possible implementation, the method further includes: receiving a network configuration request sent by the terminal device through the first connection, the network configuration request including the first encrypted information, the first encrypted information being obtained by encrypting the first user account, the first user account being used to log in the terminal device; in a case where the first user account is verified, sending the terminal device the first configuration information, the first configuration information being obtained by encrypting a network name and a network password of a network connection of the terminal device; receiving a network connection request sent by the terminal device, and establishing a network connection with the terminal device.
[0010] In another possible implementation, the method further includes: decrypting the first encrypted information to obtain the first user account; and in a case where the first user account is the same as a user account stored by the first network device, determining that the first user account is verified.
[0011] In another possible implementation, the network connection of the terminal device is a network connection between the second network device and the terminal device, and the method further includes: receiving and storing the first identity and second encrypted information, the second encrypted information being obtained by encrypting the first user account, the first user account being used to log in the terminal device, and the first identity and the second encrypted information being obtained by negotiation between the second network device and the terminal device.
[0012] In another possible implementation, the method further includes: in a case where the terminal device initially establishes a network connection, generating the first identity and the first encrypted information, the first encrypted information being obtained by encrypting the first user account, the first user account being used to log in the terminal device; and sending the terminal device the first identity and the first encrypted information.
[0013] After the network connection is disconnected, the first identity can verify whether the terminal device has StarFlash communication permission when the terminal device and the network device establish a network connection again. The first encrypted information can verify the identity of the terminal device when the terminal device and the network device establish a network connection again, so as to improve the security of the network connection, ensure the network security, and prevent network attacks.
[0014] In another possible implementation, 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.
[0015] In another possible implementation, 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.
[0016] In the same application scenario (such as a smart home scenario), 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.
[0017] In another possible implementation, after the first network device and the terminal device establish a network connection, 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.
[0018] In another possible implementation, 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.
[0019] Secondly, 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.
[0020] In one possible implementation, the first connection is a StarScan connection, and the first network device and the terminal device support the StarScan communication protocol.
[0021] In a possible implementation, the method further includes: sending a network configuration request to the first network device through the first connection, the network configuration request including the first encrypted information, the first encrypted information being encrypted from the first user account, the first user account being used to log in the terminal device; receiving the first configuration information sent by the first network device, the first configuration information being encrypted from the network name and the network password of the network connection of the terminal device by the first network device; and sending a network connection request to the first network device, and establishing the network connection with the first network device according to the first configuration information.
[0022] In a possible implementation, the method further includes: sending a network configuration request to the first network device through the first connection, the network configuration request including the first encrypted information, the first encrypted information being encrypted from the first user account, the first user account being used to log in the terminal device; receiving the first configuration information sent by the first network device, the first configuration information being encrypted from the network name and the network password of the network connection of the terminal device by the first network device; and sending a network connection request to the first network device, and establishing the network connection with the first network device according to the first configuration information.
[0023] In a possible implementation, the method further includes: in the case that the terminal device establishes the network connection for the first time, receiving the first identifier and the first encrypted information, the first encrypted information being encrypted from the first user account, the first user account being used to log in the terminal device.
[0024] In a possible implementation, the method further includes: receiving the first connection response sent by the first network device, the first connection response being used to indicate that the first identifier in the first connection request passes the verification.
[0025] In a possible implementation, the method further includes: receiving the indication information sent by the first network device, the indication information being used to indicate that the first identifier is updated to the second identifier; and updating the first identifier to the second identifier.
[0026] In a possible implementation, the network connection of the terminal device is disconnected, including at least one of the following: the network password is changed, the first network device is powered off or the terminal device is powered off, and the network between the first network device and the terminal device is disconnected.
[0027] In a possible implementation, the network connection of the terminal device is disconnected, including at least one of the following: the network password is changed, the first network device is powered off or the terminal device is powered off, and the network between the first network device and the terminal device is disconnected.
[0028] In a possible implementation, the first connection is a star flash connection, and the first network device and the terminal device support a star flash communication protocol.
[0029] In a possible implementation, the communication module is further configured to: receive, through the first connection, a network configuration request sent by the terminal device, the network configuration request comprising the first encryption information, the first encryption information being obtained by encrypting the first user account, the first user account being used to log in the terminal device; in a case where the first user account is verified, send, to the terminal device, the first configuration information, the first configuration information being obtained by encrypting a network name and a network password of the network connection of the terminal device; and receive a network connection request sent by the terminal device, and establish the network connection with the terminal device.
[0030] In a possible implementation, the device further comprises a verification module configured to determine that the first user account is verified in a case where the first user account is the same as the user account stored by the first network device.
[0031] In a possible implementation, the network connection of the terminal device is a network connection between the second network device and the terminal device, and the communication module is further configured to: receive and store the first identifier and the second encryption information, the second encryption information being obtained by encrypting the first user account, the first user account being used to log in the terminal device, and the first identifier and the second encryption information being obtained by negotiation between the second network device and the terminal device.
[0032] In a possible implementation, the device further comprises a negotiation module configured to, in a case where the terminal device establishes the network connection for the first time, generate the first identifier and the first encryption information, the first encryption information being obtained by encrypting the first user account, the first user account being used to log in the terminal device; and send, to the terminal device, the first identifier and the first encryption information.
[0033] In a possible implementation, the first network device stores one or more identifiers associated with the first user account, the first user account being used to log in the terminal device, and the verification module is further configured to determine that the first identifier is verified in a case where the first identifier is included in the one or more identifiers.
[0034] In a possible implementation, the communication module is further configured to: in a case where the first identifier is verified, send, to the terminal device, a first connection response, the first connection response being used to indicate that the first identifier in the first connection request is verified.
[0035] In a possible implementation, after the first network device and the terminal device establish the network connection, the communication module is further configured to: send, to the terminal device, indication information, the indication information being used to indicate that the first identifier is updated to a second identifier.
[0036] In another possible implementation manner, the network connection disconnection of the terminal device includes at least one of the following: network password change, power-off of the first network device or the terminal device, and network disconnection of the first network device and the terminal device.
[0037] In a fourth aspect, the present application provides another reconnection apparatus of a terminal device, which is applied to the terminal device. The apparatus includes a communication module and a connection module. The communication module is configured to send a first connection request in the case of network connection disconnection of the terminal device, the first connection request being used to establish a first connection, and the first connection request including a first identifier used to indicate the terminal device. The connection module is configured to establish the first connection between the terminal device and the first network device, and the first connection is used to indicate that the terminal device establishes a network connection with the first network device.
[0038] In a possible implementation manner, the first connection is a star flash connection, and the first network device and the terminal device support a star flash communication protocol.
[0039] In another possible implementation manner, the communication module is further configured to: send a network configuration request to the first network device through the first connection, the network configuration request including first encryption information, the first encryption information being obtained by encrypting a first user account, and the first user account being used to log in the terminal device; receive first configuration information sent by the first network device, the first configuration information being obtained by the first network device encrypting a network name and a network password of the network connection of the terminal device; and send a network connection request to the first network device, and the connection module is configured to establish the network connection with the first network device according to the first configuration information.
[0040] In another possible implementation manner, when the connection module establishes the network connection with the first network device according to the first configuration information, the connection module is specifically configured to: decrypt the first configuration information to obtain the network name and the network password; and establish the network connection with the first network device according to the network name and the network password.
[0041] In another possible implementation manner, the communication module is further configured to: in the case of initial establishment of the network connection of the terminal device, receive the first identifier and the first encryption information, the first encryption information being obtained by encrypting the first user account, and the first user account being used to log in the terminal device.
[0042] In another possible implementation manner, the communication module is further configured to: receive a first connection response sent by the first network device, the first connection response being used to indicate that the first identifier in the first connection request passes the verification.
[0043] In another possible implementation manner, the communication module is further configured to: receive indication information sent by the first network device, the indication information being used to indicate that the first identifier is updated to a second identifier; and update the first identifier to the second identifier.
[0044] In another possible implementation, the network connection of the terminal device is disconnected, including at least one of the following: a network password is changed, the first network device is powered off or the terminal device is powered off, and the network connection between the first network device and the terminal device is disconnected.
[0045] In a fifth aspect, the present application provides a network device, which includes a processor and a memory. The memory is configured to store 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, the operation steps of the network reconnection method in the first aspect or any possible implementation of the first aspect are executed.
[0046] In a sixth aspect, the present application provides a terminal device, which includes a processor and a memory. The memory is configured to store 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, the operation steps of the network reconnection method in the second aspect or any possible implementation of the second aspect are executed.
[0047] In a seventh aspect, the present application provides a communication system, which includes a network device and a terminal device. The network device is configured to execute the operation steps of the network reconnection method in the first aspect or any possible implementation of the first aspect. The terminal device is configured to execute the operation steps of the network reconnection method in the second aspect or any possible implementation of the second aspect.
[0048] In an eighth aspect, the present application provides a computer readable storage medium, which includes computer software instructions. When the computer software instructions are run in a network device, the network device executes the operation steps of the network reconnection method in the first aspect or any possible implementation of the first aspect. Alternatively, when the computer software instructions are run in a terminal device, the terminal device executes the operation steps of the network reconnection method in the second aspect or any possible implementation of the second aspect.
[0049] In a ninth aspect, the present application provides a computer program product, which, when run on a network device, causes the network device to execute the operation steps of the network reconnection method in the first aspect or any possible implementation of the first aspect. Alternatively, when the computer program product is run on a terminal device, the terminal device executes the operation steps of the network reconnection method in the second aspect or any possible implementation of the second aspect.
[0050] The technical effects brought by any one of the designs in the third aspect to the ninth aspect can refer to the technical effects brought by the first aspect or the different designs in the first aspect, or can refer to the technical effects brought by the second aspect or the different designs in the second aspect, which will not be described here.
[0051] On the basis of the implementation manners of the above aspects, the application can be further combined to provide more implementation manners. BRIEF DESCRIPTION OF DRAWINGS
[0052] FIG. 1 is a structural schematic diagram of a communication system provided by the application;
[0053] FIG. 2 is a flow schematic diagram of a network reconnection method provided by the application;
[0054] FIG. 3 is a flow schematic diagram of reestablishing network connection between a network device and a terminal device provided by the application;
[0055] FIG. 4 is a flow schematic diagram of reestablishing network connection between a network device and a terminal device provided by the application;
[0056] FIG. 5 is a structural schematic diagram of a reconnection apparatus of a terminal device provided by the application;
[0057] FIG. 6 is a structural schematic diagram of another reconnection apparatus of a terminal device provided by the application;
[0058] FIG. 7 is a structural schematic diagram of a network device provided by the application;
[0059] FIG. 8 is a structural schematic diagram of a terminal device provided by the application. DETAILED DESCRIPTION
[0060] For the sake of clear and concise description of the following embodiments, first, the terms related to the application are briefly introduced:
[0061] Internet of Things (IoT) can be popularly understood as "Internet of Things", that is, connecting things with the Internet, and things with things exchange information and communicate through information transmission media to realize intelligent management of things. Internet of Things technology has been widely applied to daily life, for example, various smart home products in the home can be based on network interconnection, and users can remotely control the products through smart terminals or smart voice assistants.
[0062] Starlink is a new generation of short-range wireless connection technology, which integrates the advantages of Bluetooth and wireless fidelity (WIFI), aiming to provide users with anti-interference, low latency, high speed and high reliability wireless connection experience. Starlink can be applied to the field of Internet of Things technology, meet the demand of intelligent terminal, smart home, smart car and smart manufacturing terminal equipment for high-quality wireless communication, and provide more efficient and stable solutions for terminal equipment communication.
[0063] The terminal device (such as an Internet of Things device supporting Internet of Things technology) can establish a network connection with a network device, and a user can operate a client of the terminal device to manage the terminal device. However, in the case of sudden power failure, replacement of the network device, network password change, and power failure of the network device or the terminal device, the network connection between the terminal device and the network device is disconnected. In order to improve the user's experience of using the terminal device, it is necessary to restore the network connection in time, reconnect the terminal device to the network device, and reestablish the network connection between the terminal device and the network device.
[0064] In order to solve the problem of low reconnection efficiency of the terminal device, the present application provides a network reconnection method, which is executed by a first network device, and the method comprises: in the case that the network connection of the 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 the first connection request comprises a first identifier. In the case that the first identifier is verified, the first network device establishes a first connection with the terminal device, and the first connection is used to establish a network connection between the first network device and the terminal device.
[0065] Compared with manually controlling the terminal device through the client of the terminal device to reestablish the network connection. In the method provided by the embodiments of the present application, in the case that the network connection of the terminal device is disconnected, the first identifier included in the first connection request sent by the terminal device is verified by the first network device, which indicates that the terminal device using the first user account has the first connection permission, and the first connection can be established between the terminal device and the first network device. Therefore, the terminal device automatically connects the network device based on the first connection, and realizes the automatic reconnection of the terminal device. In this way, the reconnection efficiency of the terminal device is improved.
[0066] FIG. 1 is a structural schematic diagram of a communication system provided by the present application. As shown in FIG. 1, the communication system 100 includes a network device 110 and a terminal device 120. The network device 110 and the terminal device 120 communicate through wireless communication technology. For example, the network device 110 and the terminal device 120 support a Wireless Fidelity (Wi-Fi) protocol (such as 802.11a / b / g / n / ac / ax / be / bn) and a Starlink communication protocol. The network device 110 and the terminal device 120 can send wireless signals that meet the relevant regulations of the Wi-Fi protocol or the Starlink communication protocol.
[0067] The network device 110 includes a router. For example, in a smart home application scenario, the router can be a WIFI router commonly used in a home, which can provide a wireless network connection function and transmit wireless signals (such as WIFI signals) to the terminal device 120 through a wireless communication manner.
[0068] In a smart home application scenario, the terminal device 120 can include, but is not limited to, a camera, a microwave oven, an air conditioner, a refrigerator, an electric water heater, and other smart home products as shown in FIG. 1. The smart home products establish a network connection with the network device 110, can realize diversified smart functions, and help improve the comfort and convenience of the living environment.
[0069] The terminal device 120 has a networking function. When the terminal device 120 is started, it can receive wireless signals broadcast by the network device 110, discover available networks, establish a wireless network connection with the network device 110, and connect to the Internet through the network device 110. The terminal device 120 can be centrally managed by an Internet of Things cloud platform, which can provide services such as device running state recording and device fault diagnosis.
[0070] The network device 110 and the terminal device 120 establish a network connection in a network configuration manner, including but not limited to an access point (AP) connection network configuration, a Bluetooth connection network configuration, a code scanning connection network configuration, and a Starlink connection network configuration. The present application does not limit the network configuration manner when the terminal device 120 and the network device 110 initially establish a network connection. When the network connection between the terminal device 120 and the network device 110 is disconnected, the specific implementation manner of the terminal device disconnecting and reconnecting can refer to the content described in steps 210 to 2130 below.
[0071] The application scenarios of the system architecture and examples described in this application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the evolution of system architecture and the appearance of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0072] Next, the network reconnection method provided by the present application will be described in detail in combination with the drawings. FIG. 2 is a flowchart of a network reconnection method provided by the present application. Here, mainly taking the interaction between the network device 110 and the terminal device 120 in FIG. 1 to realize the automatic reconnection of the terminal device as an example for description. As shown in FIG. 2, the network reconnection method can include the following contents.
[0073] In some embodiments, when the terminal device and the network device initially establish a network connection, that is, when the terminal device and the network device perform network configuration negotiation, the terminal device and the network device can perform information negotiation, including but not limited to: a first user account, a first identifier, first encryption information, etc. The first user account is used to log in to the terminal device. The first identifier is used to indicate the terminal device. The first encryption information is obtained by encrypting the first user account.
[0074] As shown in FIG. 2, in the case that the terminal device initially establishes a network connection, the first network device can generate a first identifier and first encryption information in step 210, and the first network device sends the first identifier and the first encryption information to the terminal device in step 220. Accordingly, the first network device receives the first identifier and the first encryption information in step 230.
[0075] After the network connection of the terminal device is disconnected, the terminal device and the network device can reestablish a network connection according to the verification information negotiated between the terminal device and the network device. For example, based on the first identifier, it is verified whether the terminal device has the star flash communication authority. When the terminal device and the network device reestablish a network connection, the identity of the terminal device is verified based on the first encryption information, so as to improve the security of the network connection, ensure the network security, and prevent network attacks.
[0076] For example, a client for managing the network device can be installed in the terminal device (such as a mobile phone, a tablet computer, a notebook computer, etc.), and the client of the network device can provide the function of generating the first identifier and the first encryption information, and upload the first identifier and the first encryption information to a cloud server to realize the synchronization cloud storage.
[0077] After the network device generates the first identifier and the first encryption information, the network device needs to send the first identifier and the first encryption information to the terminal device, and the terminal device receives and stores the first identifier and the first encryption information. In this way, the network device and the terminal device can obtain the verification information negotiated when the initial network configuration is successful, which provides convenience for verification when the network configuration is performed again.
[0078] In a possible example, the network device can transmit the first identifier and the first encryption information to the terminal device based on an internet protocol (IP).
[0079] In another possible example, since the first identifier and the first encryption information are stored in the cloud server, the network device can instruct the cloud server to synchronize the first identifier and the first encryption information to the terminal device.
[0080] The process in which the terminal device establishes a network connection with the network device when the network connection of the terminal device is disconnected is described below. The following steps 240 to 270.
[0081] In step 240, when the network connection of the terminal device is disconnected, 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.
[0082] The network connection of the terminal device being disconnected includes at least one of the following: a network password being changed, the first network device being powered off or the terminal device being powered off, and the network between the first network device and the terminal device being disconnected.
[0083] For example, when the network password is changed, 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, the terminal device will fail to pass the identity verification, thereby causing the network connection to be disconnected.
[0084] For another example, the first network device or the terminal device is powered off, and the power-off cannot maintain the current network connection, thereby causing the network connection to be disconnected. The networking indicator light on the terminal device is turned off, which can indicate that the network connection is disconnected and the terminal device is offline. The network connection being disconnected causes the terminal device to fail to access the network, resulting in a networking failure.
[0085] For another example, the network between the terminal device and the first network device fails, and the network between the terminal device and the first network device is disconnected, thereby causing the network connection of the terminal device to be disconnected.
[0086] In some embodiments, the terminal device and the network device support a star flash communication protocol. After the terminal device detects that the network connection is disconnected, the terminal device can communicate with the network device based on the star flash communication protocol, and send a broadcast message, so that the terminal device and the network device transmit information required for establishing a network connection.
[0087] For example, the terminal device sends a first connection request based on the spark-link communication protocol, and the 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 spark-link connection. The first connection request includes a first identifier, which can be used to indicate the terminal device, and the first identifier includes but is not limited to a universally unique identifier (UUID).
[0088] The terminal device and the network device can be pre-configured with network parameters related to the spark-link communication to support the spark-link communication protocol. The network parameters can include but are not limited to a frequency band, a channel bandwidth, and a modulation and coding mode of the spark-link communication. In addition, the spark-link transmission rate, the spark-link transmission power, and the like can also be configured in the firmware of the terminal device.
[0089] For example, in the case that the network connection of the terminal device is disconnected, the terminal device can periodically send a spark-link broadcast message based on the spark-link communication protocol at a preset time interval. The spark-link broadcast message can be used to indicate that the terminal device waits to establish a spark-link connection with the first network device, and the first identifier field is carried in the spark-link broadcast message.
[0090] The spark-link broadcast message can include a header, a payload, a checksum, and a tail, and the first identifier field is usually encapsulated in the header, so that after the first network device receives the spark-link broadcast message sent by the terminal device, the first identifier field can be processed preferentially.
[0091] The above-mentioned spark-link communication protocol can include at least one of a spark-link basic (SLB) communication interface protocol and a spark-link low energy (SLE) communication interface protocol. The SLB communication interface protocol is mainly applied to network connection scenarios with high requirements for rate and stability, such as intelligent vehicles, smart homes, and intelligent terminal devices. The SLE communication interface protocol is mainly applied to low-power network connection scenarios, such as earphones, glasses, watches, and smart wearable devices. The SLB communication interface protocol and the SLE communication interface protocol can be used in combination to meet the diversified needs of network connection scenarios.
[0092] In the case that 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 refer to the following step 260.
[0093] In step 260, the first network device establishes a first connection with the terminal device in a case where the first identifier is verified. The first connection is used for the first network device to establish a network connection with the terminal device.
[0094] After the network connection of the terminal device is disconnected, the first network device can first establish the first connection with the terminal device, and the first connection is used for the first network device to establish a network connection with the terminal device. The establishment of the first connection is a basis for the first network device to reestablish a network connection with the terminal device, so as to implement automatic reconnection of the terminal device.
[0095] The first network device can store one or more identifiers associated with the first user account, for example, in a form of a list. The terminal device and the first network device have negotiated to use the first identifier as verification information for network disconnection and reconnection when establishing a network connection. For example, the first identifier can be a UUID negotiated by the terminal device and the first network device when initially establishing a network connection. The first network device can verify the first identifier in the first connection request according to the one or more identifiers.
[0096] The first network device can verify the first identifier in the first connection request sent by the terminal device based on the one or more identifiers stored by the first network device and associated with the first user account. In a case where the first identifier is included in the one or more identifiers, it is determined that the first identifier is verified.
[0097] For example, the first network device can compare each identifier in the one or more identifiers with the first identifier respectively. If any identifier in the one or more identifiers is the same as the first identifier, the first identifier passes the verification of the network device, indicating that the first identifier sent by the terminal device is verified successfully.
[0098] In a possible implementation, the first network device can directly compare each identifier in the one or more identifiers with the first identifier sent by the terminal device in a string. If the lengths of the strings of the two identifiers are equal, and the characters at each corresponding position in the strings are equal, the first identifier is included in the one or more identifiers, and the first identifier is verified.
[0099] In another possible implementation, the first identifier sent by the terminal device can be a first hash value encrypted by a hash encryption algorithm, and each identifier stored by the first network device can be a second hash value encrypted by the hash encryption algorithm. The first hash value is compared with the second hash value. If the first hash value is the same as the second hash value, the first identifier is included in the one or more identifiers, and it is determined that the first identifier passes the verification. Instead of comparing the first identifier itself, the hash values are compared, which can reduce the risk of illegal tampering of the user account and prevent user information leakage. In addition, the first identifier passing the verification can also ensure network security and prevent network attacks.
[0100] Optionally, as shown in FIG. 3, after the first identifier included in the first connection request passes the verification of the first network device, the first network device can 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 passes the verification.
[0101] For example, when the first connection is a star flash connection, the star flash communication service start identifier can be included in the first connection response. The first network device starts the star flash communication service, grants the terminal device the permission to perform star flash communication with the first network device, and the terminal device can access the star flash communication, and the first network device and the terminal device establish the star flash connection based on the star flash communication.
[0102] In this way, when the first identifier included in the first connection request passes the verification of the first network device, the first network device can start the star flash communication service, and the terminal device and the first network device can establish the star flash connection. In this way, the terminal device can automatically connect the first network device through the star flash connection in the future, realizes the automatic reconnection of the terminal device, and improves the reconnection efficiency of the terminal device.
[0103] The terminal devices in the same application scenario (for example, the smart home scenario) can be produced by different manufacturers, but the users using the terminal devices are unique. The first identifier can be used to indicate that the terminal device is associated with the user account, and the first network device can use a unified user account to perform authentication management on the terminal devices, without relying on the device information of the terminal devices. In addition, the first network device uses the unified user account to perform authentication management on the terminal devices, and even if the installation location of the terminal device is changed, the automatic reconnection capability of the terminal device will not be affected, which provides convenience for the reconnection of the terminal device and is also conducive to improving the reconnection efficiency of the terminal device.
[0104] After the first connection between the first network device and the terminal device is successfully established, the first network device and the terminal device can reestablish a network connection through the first connection to realize the network disconnection and reconnection of the terminal device. FIG. 3 is a flowchart of reestablishing a network connection between a network device and a terminal device according to an embodiment of the present application. The specific interaction process is described by the following steps 280 to 2130.
[0105] In step 280, the terminal device sends a network configuration request to the first network device. Correspondingly, in step 290, the first network device receives the network configuration request sent by the terminal device through the first connection.
[0106] The network configuration request can include first encryption information, which is obtained by encrypting the first user account, for example, by using a key algorithm to encrypt the first user account. The first encryption information can be used to ensure the security of the first user account and prevent attackers from illegally obtaining user information.
[0107] The key algorithm can include, but is not limited to, a message-digest algorithm 5 (MD5), a security hash algorithm 1 (SHA1), and a hash-based message authentication code (HMAC), etc. For example, the first user account is encrypted using SHA1 to obtain a first user account HASH value, which can be used as the first encryption information.
[0108] Optionally, the network configuration request can also include a timestamp mask. The timestamp mask can be used to indicate the time when the terminal device sends the network configuration request to the first network device. As a security mechanism, the timestamp mask can ensure the uniqueness of each communication between the terminal device and the first network device, and the first network device can identify invalid or expired network configuration requests to prevent security risks caused by replay attacks.
[0109] In step 2100, the first configuration information is sent to the terminal device if the first user account is verified. Correspondingly, in step 2110, the terminal device receives the first configuration information sent by the first network device.
[0110] In order to ensure that the first network device and the terminal device establish a secure network connection, the first network device can verify the first identity before starting the star flash communication service, and further, the first network device can also verify the first user account after receiving the network configuration request.
[0111] In some embodiments, the first network device can decrypt the first encrypted information in the network configuration request sent by the terminal device according to the same key algorithm, i.e., the key algorithm used when the terminal device encrypts the first user account, to obtain the first user account. In the case where the first user account is the same as the user account stored by the first network device during the network configuration negotiation, the first user account is determined to pass the verification.
[0112] For example, the first user account and the user account stored by the first network device are compared in string. If the string lengths of the two user accounts are equal, and the characters at each corresponding position in the string are equal, the first user account is the same as the user account stored by the first network device, and thus the first user account passes the verification.
[0113] In the case where the first user account passes the verification, the identity of the terminal device passes the verification of the network device, indicating that the first encrypted information sent by the terminal device passes the verification. After the first user account passes the verification, the first network device can send the first configuration information to the terminal device. The first configuration information can include a network name and a network password used by the terminal device to establish a network connection. Alternatively, the first configuration information is encrypted using a key algorithm, such as an encrypted WIFI name and WIFI password.
[0114] Step 2120, the first network device establishes a network connection with the terminal device.
[0115] After the terminal device receives the first configuration information, in order to establish a network connection with the first network device, the terminal device can send a network connection request to the first network device. Correspondingly, the first network device receives the network connection request sent by the terminal device. The first network device can send a network connection indication to the terminal device in response to the network connection request sent by the terminal device, indicating that the terminal device can establish a network connection with the first network device according to the first configuration information. In this way, the first network device and the terminal device reestablish a network connection.
[0116] Since the first configuration information received by the terminal device is encrypted by the first network device, the terminal device needs to use the same key algorithm as when the first configuration information is encrypted to decrypt the first configuration information, so as to obtain the network name and the network password. The terminal device reestablishes a network connection with the first network device according to the network name and the network password.
[0117] In some embodiments, after the first network device and the terminal device reestablish a network connection, the first network device can close the star flash communication service and release network resources in a timely manner.
[0118] Optionally, the first network device can also update the first identifier, update the first identifier to the second identifier, and upload the updated second identifier to the cloud server.
[0119] Optionally, the first network device can also send indication information to the terminal device (step 2130), and accordingly, the terminal device receives the network connection request sent by the first network device, indicates that the first identifier is updated to the second identifier, and the terminal device updates the first identifier to the second identifier. Thus, the updated second identifier is stored in the cloud server and the terminal device. If the network connection of the terminal device is disconnected with the first network device again subsequently, the terminal device reconnects to the network.
[0120] In the case that the network connection of the terminal device is disconnected, 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, and the first connection between the terminal device and the first network device can be established. Therefore, the terminal device automatically connects the network device based on the first connection, and realizes the automatic reconnection of the terminal device. In this way, the reconnection efficiency of the terminal device is improved.
[0121] In some possible implementation cases, after the terminal device initially establishes the network connection with the second network device, the network connection of the terminal device is disconnected, and the terminal device cannot establish the network connection with the second network device again. In this case, the network device is replaced, that is, the second network device is replaced by the first network device. In this case, the first connection between the replaced first network device and the terminal device is established, and the specific implementation method can also be referred to the following description. In an application scenario, the first network device and the second network device are located at different positions, and the coverage range of the first network device and the coverage range of the second network device are different. The terminal device is located in the coverage range of the second network device, and the terminal device and the second network device perform network configuration negotiation and establish the network connection. The terminal device moves, and the position of the terminal device can change. The terminal device moves out of the coverage range of the second network device, and the network connection between the terminal device and the second network device is disconnected. When the terminal device moves into the coverage range of the first network device, the terminal device can initiate the network reconnection to the first network device according to the network reconnection method provided in the present application, and establish the network connection with the first network device. The first network device and the second network device save and / or log in the same user account, and the terminal device establishes the network connection with the first network device and the second network device according to the user account.
[0122] For example, the router at home and the router at office save or / and log in the same user account. The user's mobile phone negotiates with the router at home for the first time and establishes a network connection. When the user's mobile phone moves out of the coverage of the router at home, the network connection between the user's mobile phone and the router at home is disconnected. If the user's mobile phone moves into the coverage of the router at office, the user's mobile phone does not need to negotiate with the router at office again in the case that the router at office and the user's mobile phone log in the same user account as the router at home. The user's mobile phone can initiate network reconnection to the router at office according to the network reconnection method provided in the present application, and establish a network connection with the router at office by verifying the mobile phone identifier (such as UUID) and the user account encryption information corresponding to the user account saved by the router at office. As shown in steps 410 and 420 and the description of steps 240 to 2130 in FIG. 4.
[0123] FIG. 4 is a flow diagram of another network reconnection method provided in an embodiment of the present application. The difference between the network reconnection method shown in FIG. 4 and the network reconnection methods shown in FIGS. 2 and 3 is that the terminal device establishes a primary network connection, and the terminal device and the second network device establish a primary network connection. In the case of changing the network device, the second network device sends the first identifier and the second encryption information to the first network device (step 410). Correspondingly, the first network device receives the first identifier and the second encryption information sent by the second network device, and stores the first identifier and the second encryption information (step 420). The second encryption information is encrypted from the first user account, the first user account is used to log in the terminal device, and the first identifier and the second encryption information are obtained by negotiation when the second network device and the terminal device establish the primary network connection. The specific negotiation process can refer to the negotiation process of the first network device to the first network device described above, and will not be described herein.
[0124] Optionally, the first network device can also decrypt the second encryption information to obtain the first user account, and store the first identifier and the first user account.
[0125] Optionally, the second network device can upload the first identifier and the second encryption information to the cloud server to realize synchronized cloud storage.
[0126] Optionally, the second network device can also instruct the first network device to obtain the first identifier and the second encryption information from the cloud server. Then, the first network device can obtain the first identifier and the second encryption information from the cloud server.
[0127] In a case where the first network device acquires and stores the first identifier and the first user account, 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, the first connection request is used to establish a first connection, the first connection request includes the first identifier, the first identifier is used to indicate the terminal device; in a case where the first identifier is verified, the first network device establishes the first connection with the terminal device, and the first connection is used to establish the network connection between the first network device and the terminal device. For the process in which the first network device establishes the network connection with the terminal device in a case where the network connection of the terminal device is disconnected, reference can be made to the description of the process (steps 240 to 2130) in which the first network device establishes the network connection with the terminal device, and details are not described herein again.
[0128] In a case where the network device is replaced, and the first identifier included in the first connection request sent by the terminal device is verified by the first network device in a case where the network connection of the terminal device is disconnected, it is indicated that the terminal device using the first user account has the first connection permission, and the first connection can be established between the terminal device and the first network device. Therefore, the terminal device automatically connects the network device based on the first connection, and automatic reconnection of the terminal device is realized. In this way, the reconnection efficiency of the terminal device is improved.
[0129] The above mainly describes the scheme provided by the embodiments of the present application from the perspective of the method. It can be understood that, in order to implement the above functions, the computer device includes a hardware structure and / or a software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed in the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0130] In the above, the network reconnection method provided by the embodiments of the present application is described in detail in combination with FIG. 2 to FIG. 4. In the following, the reconnection apparatus of the terminal device provided by the embodiments of the present application will be described in combination with FIG. 5 and FIG. 6.
[0131] FIG. 5 is a structural schematic diagram of a reconnection apparatus of a terminal device provided by the present application. The reconnection apparatus of the terminal device can be used to implement the functions of the first network device in the above method embodiments, and thus can also implement the beneficial effects possessed by the above method embodiments.
[0132] As shown in FIG. 5, the reconnection apparatus 500 of the terminal device includes a communication module 510 and a connection module 520.
[0133] The communication module 510 is configured to receive a first connection request sent by the terminal device in a case where a network connection of the terminal device is disconnected, the first connection request being used to establish a first connection, and the first connection request comprising a first identifier used to indicate the terminal device.
[0134] Optionally, the first connection is a Starlink connection, and the first network device and the terminal device support a Starlink communication protocol.
[0135] Optionally, the communication module 510 is further configured to receive a network configuration request sent by the terminal device through the first connection, the network configuration request comprising first encryption information, the first encryption information being obtained by encrypting a first user account, the first user account being used to log in the terminal device; in a case where the first user account is verified, send first configuration information to the terminal device, the first configuration information being obtained by encrypting a network name and a network password of the network connection of the terminal device; and receive a network connection request sent by the terminal device, and establish a network connection with the terminal device.
[0136] Optionally, the device further comprises a verification module 530 configured to determine that the first user account is verified in a case where the first user account is the same as a user account stored by the first network device.
[0137] Optionally, the network connection of the terminal device is a network connection between a second network device and the terminal device, and the communication module 510 is further configured to receive and store the first identifier and second encryption information, the second encryption information being obtained by encrypting the first user account, the first user account being used to log in the terminal device, and the first identifier and the second encryption information being obtained by negotiation between the second network device and the terminal device.
[0138] In another possible implementation manner, the device further comprises a negotiation module configured to generate the first identifier and first encryption information in a case where the terminal device initially establishes the network connection, the first encryption information being obtained by encrypting a first user account, the first user account being used to log in the terminal device; and send the first identifier and the first encryption information to the terminal device.
[0139] In another possible implementation manner, the first network device stores one or more identifiers associated with the first user account, the first user account being used to log in the terminal device, and the verification module 530 is further configured to determine that the first identifier is verified in a case where the first identifier is included in the one or more identifiers.
[0140] In a possible implementation, the communication module 510 is further configured to: in a case where the first identifier is verified, send a first connection response to the terminal device, the first connection response being used to indicate that the first identifier in the first connection request is verified.
[0141] In a possible implementation, after the first network device and the terminal device establish the network connection, 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 is updated to the second identifier.
[0142] In a possible implementation, the network connection of the terminal device is disconnected, including at least one of the following: network password change, power-off of the first network device or the terminal device, network disconnection of the first network device and the terminal device.
[0143] Optionally, the reconnection apparatus 500 of the terminal device can further include a storage module 540. The storage module 540 can be used to store one or more identifiers associated with the first user account and the like.
[0144] FIG. 6 is a structural schematic diagram of another reconnection apparatus of a terminal device provided in the present application. The reconnection apparatus of the terminal device can be used to implement the functions of the terminal device in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments.
[0145] As shown in FIG. 6, the reconnection apparatus 600 of the terminal device includes a communication module 610 and a connection module 620.
[0146] The communication module 610 is configured to, in a case where the network connection of the terminal device is disconnected, send 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 connection module 620 is configured to establish the first connection of the terminal device and the first network device, the first connection being used to indicate that the terminal device and the first network device establish a network connection.
[0147] Optionally, the first connection is a Starlink connection, and the first network device and the terminal device support a Starlink communication protocol.
[0148] Optionally, the communication module 610 is further configured to: send a network configuration request to the first network device through the first connection, the network configuration request including first encryption information, the first encryption information being obtained by encrypting a first user account, the first user account being used to log in the terminal device; receive first configuration information sent by the first network device, the first configuration information being obtained by the first network device encrypting a network name and a network password of the network connection of the terminal device; and send a network connection request to the first network device, the connection module being configured to establish the network connection with the first network device according to the first configuration information.
[0149] Optionally, the connection module 620 is configured to, when establishing the network connection with the first network device according to the first configuration information, decrypt the first configuration information to obtain a network name and a network password, and establish the network connection with the first network device according to the network name and the network password.
[0150] Optionally, the communication module 610 is further configured to, in a case where the terminal device initially establishes the network connection, receive the first identifier and the first encrypted information, the first encrypted information being obtained by encrypting the first user account, and the first user account being used to log in the terminal device.
[0151] Optionally, the communication module 610 is further configured to receive the first connection response sent by the first network device, the first connection response being used to indicate that the first identifier in the first connection request passes the verification.
[0152] Optionally, the communication module 610 is further configured to receive the indication information sent by the first network device, the indication information being used to indicate that the first identifier is updated to the second identifier, and update the first identifier to the second identifier.
[0153] Optionally, the network connection of the terminal device is disconnected, including at least one of the following: the network password is changed, the first network device is powered off or the terminal device is powered off, and the network between the first network device and the terminal device is disconnected.
[0154] Optionally, the reconnection apparatus 600 of the terminal device can further include a storage module 630. The storage module 630 can be used to store the first identifier and the like according to the method embodiments.
[0155] It should be understood that the reconnection apparatus 500 of the terminal device and the reconnection apparatus 600 of the terminal device according to the embodiments of the present application can correspond to the execution of the methods described in the embodiments of the present application, and the above and other operations and / or functions of each unit in the reconnection apparatus 500 of the terminal device and the reconnection apparatus 600 of the terminal device are respectively used to implement the corresponding flow of each method in FIG. 2, and for brevity, will not be described here.
[0156] The embodiments of the present application also provide a network device, and FIG. 7 is a structural schematic diagram of a network device provided by the embodiments of the present application. As shown in FIG. 7, the network device 700 includes a processor 710, a bus 720, a memory 730, a memory unit 750 (which can also be referred to as a main memory), and a communication interface 740. The processor 710, the memory 730, the memory unit 750, and the communication interface 740 are connected through the bus 720.
[0157] It should be understood that in this embodiment, the processor 710 can be a CPU, and 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.
[0158] The communication interface 740 is configured to realize communication between the network device 700 and external devices or instruments. In this embodiment, the communication interface 740 is configured to interact with other network devices or controllers.
[0159] The bus 720 can include a path for transmitting information between the above-mentioned components (such as the processor 710, the memory unit 750 and the storage 730). In addition to the data bus, the bus 720 can also include a power bus, a control bus and a status signal bus, etc. However, for the purpose of clear illustration, various buses are marked as the bus 720 in the figure. The bus 720 can 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.
[0160] As an example, the network device 700 can include multiple processors. The processor can be a multi-CPU processor. Here, the processor can refer to one or more devices, circuits, and / or computing units for processing data (such as computer program instructions). The processor 710 can receive a first connection request sent by a terminal device in a case where a network connection of the terminal device is disconnected, 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. In a case where the first identifier is verified, the first network device establishes the first connection with the terminal device, the first connection being used to establish a network connection between the first network device and the terminal device.
[0161] It should be noted that in FIG. 7, only the network device 700 includes 1 processor 710 and 1 storage 730 as an example, and here, the processor 710 and the storage 730 are respectively used to indicate a type of device or instrument. In specific embodiments, the number of each type of device or instrument can be determined according to business needs.
[0162] The memory unit 750 can correspond to the one or more identifiers associated with the first user account in the above method embodiments. The memory unit 750 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example and not limitation, many forms of RAM can be used, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous dynamic RAM (SDRAM), double data rate synchronous dynamic RAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0163] The memory 730 is used to store one or more identifiers associated with the first user account, etc., and can be a solid state disk or a mechanical hard disk.
[0164] It should be understood that the network device 700 according to the present embodiment can correspond to the reconnection apparatus 500 of the terminal device in the present embodiment, and the above and other operations and / or functions of each module of the reconnection apparatus 500 of the terminal device are respectively implemented for the corresponding flow in FIG. 2, and for the sake of brevity, will not be repeated here.
[0165] The method steps in the embodiments can be implemented by hardware, or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically EPROM (EEPROM), a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor, so that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a network device. Of course, the processor and the storage medium can also exist as discrete components in a network device or a terminal device.
[0166] The embodiments of the present application also provide a terminal device, which can include, but is not limited to, smart home products such as a camera, a microwave oven, an air conditioner, a refrigerator, and an electric water heater, as shown in FIG. 1. FIG. 8 is a structural schematic diagram of a terminal device provided by the present application. As shown in FIG. 8, the terminal device 800 includes a processor 810, a bus 820, a storage 830, a memory unit 850 (which can also be referred to as main memory), and a communication interface 840. The processor 810, the storage 830, the memory unit 850, and the communication interface 840 are connected through the bus 820. The function descriptions of the various components can refer to the descriptions in FIG. 7, which will not be repeated here.
[0167] The processor 810 can send a first connection request in a case where a network connection of the terminal device is disconnected, 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 establish the first connection, the first connection being used to indicate that the terminal device and the first network device establish a network connection.
[0168] The storage 830 is used to store the first identifier and the like, and can be a solid state disk or a mechanical disk.
[0169] It should be understood that the controller 800 according to the present embodiment can correspond to the reconnection apparatus 600 of the terminal device in the present embodiment, and the above and other operations and / or functions of the respective modules of the reconnection apparatus 600 of the terminal device are described herein for brevity, respectively for implementing the corresponding flows in FIG. 2.
[0170] The present application also provides a chip system, which comprises a processor for implementing the function of the data processing unit in the above method. In a possible design, the chip system further comprises a memory for storing program instructions and / or data. The chip system can be composed of a chip, or can comprise a chip and other discrete devices.
[0171] In the above embodiments, all or some of the processes or functions can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or some of the processes or functions can be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When loaded and executed by a computer, all or some of the processes or functions described in the embodiments of the present application are performed. The computer can be a general purpose computer, a special purpose computer, a computer network, a network device, a user equipment or other programmable apparatus. The computer program or instructions can be stored in a computer readable storage medium, or transferred from one computer readable storage medium to another, for example, the computer program or instructions can be transferred from one website site, computer, server or data center to another website site, computer, server or data center through wired or wireless manner. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center and the like integrated with one or more available media. The available media can be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape; an optical medium, such as a digital video disc (digital video disc, DVD); and a semiconductor medium, such as a solid state drive (solid state drive, SSD).
[0172] The above describes only the specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A network reconnection method, characterized in that, The method is performed by a first network device, and the method includes: When the network connection of the terminal device is disconnected, a first connection request is received from the terminal device. 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. 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.
2. The method according to claim 1, characterized in that, The first connection is a StarFlash connection, and the first network device and the terminal device support the StarFlash communication protocol.
3. The method according to claim 1 or 2, characterized in that, The method further includes: The network configuration request sent by the terminal device is received through the first connection. The network configuration request includes first encrypted information, which is obtained by encrypting a first user account. The first user account is used to log in to the terminal device. If the first user account is verified, first configuration information is sent to the terminal device. The first configuration information is obtained by encrypting the network name and network password of the network connection of the terminal device. Receive a network connection request sent by the terminal device and establish a network connection with the terminal device.
4. The method according to claim 3, characterized in that, The method further includes: Decrypt the first encrypted information to obtain the first user account; If the first user account is the same as the user account stored in the first network device, the first user account is determined to have passed verification.
5. The method according to any one of claims 1-4, characterized in that, The network connection of the terminal device is a network connection between the second network device and the terminal device, and the method further includes: The system receives and stores the first identifier and the 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 by negotiation between the second network device and the terminal device.
6. The method according to any one of claims 1-4, characterized in that, The method further includes: When the terminal device establishes a network connection for the first time, the first identifier and the first encrypted information are generated. The first encrypted information is obtained by encrypting the first user account, which is used to log in to the terminal device. The first identifier and the first encrypted information are sent to the terminal device.
7. The method according to any one of claims 1-6, characterized in that, The first network device stores one or more identifiers associated with a first user account, the first user account being 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, the first identifier is determined to be verified.
8. The method according to any one of claims 1-7, characterized in that, The method further includes: If the first identifier is verified, a first connection response is sent to the terminal device, the first connection response indicating that the first identifier in the first connection request has been verified.
9. The method according to any one of claims 1-8, characterized in that, After the first network device and the terminal device establish a network connection, the method further includes: The terminal device is given an instruction message, which instructs the first identifier to be updated to the second identifier.
10. The method according to any one of claims 1-9, characterized in that, The network connection of the terminal device is disconnected, including: The network password is changed, the first network device or the terminal device loses power, or the network connection between the first network device and the terminal device is lost.
11. A network reconnection method, characterized in that, The method is executed by a terminal device, and the method includes: When the network connection of the terminal device is disconnected, a first connection request is sent. 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 the first connection, and the first connection is used for the terminal device to establish a network connection with the first network device.
12. The method according to claim 11, characterized in that, The first connection is a StarFlash connection, and the first network device and the terminal device support the StarFlash communication protocol.
13. The method according to claim 11 or 12, characterized in that, The method further includes: A network configuration request is sent to the first network device through the first connection. The network configuration request includes first encrypted information, which is obtained by encrypting a first user account. The first user account is used to log in to the terminal device. The device receives first configuration information sent by the first network device, wherein the first configuration information is obtained by the first network device encrypting the network name and network password of the network connection of the terminal device. Send a network connection request to the first network device and establish a network connection with the first network device according to the first configuration information.
14. The method according to claim 13, characterized in that, Establishing a network connection with the first network device based on the first configuration information includes: Decrypt the first configuration information to obtain the network name and the network password; Establish a network connection with the first network device based on the network name and the network password.
15. The method according to any one of claims 11-14, characterized in that, The method further includes: When the terminal device establishes a network connection for the first time, it receives the first identifier and the first encrypted information, wherein the first encrypted information is obtained by encrypting the first user account, and the first user account is used to log in to the terminal device.
16. The method according to any one of claims 11-15, characterized in that, The method further includes: The system receives 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.
17. The method according to any one of claims 11-16, characterized in that, The method further includes: Receive indication information sent by the first network device, the indication information being used to indicate that the first identifier be updated to the second identifier; Update the first identifier to the second identifier.
18. The method according to any one of claims 11-17, characterized in that, The network connection of the terminal device is disconnected, including: The network password is changed, the first network device or the terminal device loses power, or the network connection between the first network device and the terminal device is lost.
19. A network device, characterized in that, The network device includes a module that performs the operational steps of the method according to any one of claims 1-10.
20. A terminal device, characterized in that, The terminal device includes a module that performs the operation steps of the method according to any one of claims 11-18.
21. A network device, characterized in that, It includes a memory and a processor, the memory being used to store a set of computer instructions; when the processor executes the set of computer instructions, it performs the operational steps of the method according to any one of claims 1-10.
22. A terminal device, characterized in that, It includes a memory and a processor, the memory being used to store a set of computer instructions; when the processor executes the set of computer instructions, it performs the operational steps of the method according to any one of claims 11-18.
23. A communication system, characterized in that, The communication system includes a network device and a terminal device. The network device is used to perform the operation steps of the method according to any one of claims 1-10, and the terminal device is used to perform the operation steps of the method according to any one of claims 11-18.
24. A readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed on the device, cause the device to perform the method as described in any one of claims 1-18.
25. A computer program product, characterized in that, The computer program product includes a computer program that, when run on a device, causes the device to perform the method as described in any one of claims 1-18.
Citation Information
Patent Citations
Network connection method and device and storage medium
CN109151010A
Session management method, terminal device and network device
CN111247836A
Access authentication method and device, terminal and core network
CN116132983A
Network access method, electronic device, and computer-readable storage medium
WO2023284835A1